PageSourceSearch

https://doctorsagainstgenocide.org/assets/index-DUDK3EaU.js

js doctorsagainstgenocide.org collected 2026-09-25 18:40:09 UTC 910,840 bytes, 319 lines download raw bytes

vendor: 5,319 bytes, line 1
1function xj(e,a){for(var s=0;s<a.length;s++){const o=a[s];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in e)){const h=Object.getOwnPropertyDescriptor(o,c);h&&Object.defineProperty(e,c,h.get?h:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const u of h.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function s(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(c){if(c.ep)return;c.ep=!0;const h=s(c);fetch(c.href,h)}})();function vj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xu={exports:{}},Eo={};var Sb;function wj(){if(Sb)return Eo;Sb=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(o,c,h){var u=null;if(h!==void 0&&(u=""+h),c.key!==void 0&&(u=""+c.key),"key"in c){h={};for(var p in c)p!=="key"&&(h[p]=c[p])}else h=c;return c=h.ref,{$$typeof:e,type:o,key:u,ref:c!==void 0?c:null,props:h}}return Eo.Fragment=a,Eo.jsx=s,Eo.jsxs=s,Eo}var Ab;function Sj(){return Ab||(Ab=1,Xu.exports=wj()),Xu.exports}var r=Sj(),Zu={exports:{}},Do={},eh={exports:{}},th={};var jb;function Aj(){return jb||(jb=1,(function(e){function a(P,B){var F=P.length;P.push(B);e:for(;0<F;){var ae=F-1>>>1,k=P[ae];if(0<c(k,B))P[ae]=B,P[F]=k,F=ae;else break e}}function s(P){return P.length===0?null:P[0]}function o(P){if(P.length===0)return null;var B=P[0],F=P.pop();if(F!==B){P[0]=F;e:for(var ae=0,k=P.length,Y=k>>>1;ae<Y;){var ee=2*(ae+1)-1,te=P[ee],le=ee+1,ye=P[le];if(0>c(te,F))le<k&&0>c(ye,te)?(P[ae]=ye,P[le]=F,ae=le):(P[ae]=te,P[ee]=F,ae=ee);else if(le<k&&0>c(ye,F))P[ae]=ye,P[le]=F,ae=le;else break e}}return B}function c(P,B){var F=P.sortIndex-B.sortIndex;return F!==0?F:P.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;e.unstable_now=function(){return h.now()}}else{var u=Date,p=u.now();e.unstable_now=function(){return u.now()-p}}var m=[],g=[],y=1,b=null,v=3,S=!1,j=!1,N=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function O(P){for(var B=s(g);B!==null;){if(B.callback===null)o(g);else if(B.startTime<=P)o(g),B.sortIndex=B.expirationTime,a(m,B);else break;B=s(g)}}function G(P){if(N=!1,O(P),!j)if(s(m)!==null)j=!0,_||(_=!0,Z());else{var B=s(g);B!==null&&ue(G,B.startTime-P)}}var _=!1,H=-1,D=5,J=-1;function W(){return C?!0:!(e.unstable_now()-J<D)}function X(){if(C=!1,_){var P=e.unstable_now();J=P;var B=!0;try{e:{j=!1,N&&(N=!1,E(H),H=-1),S=!0;var F=v;try{t:{for(O(P),b=s(m);b!==null&&!(b.expirationTime>P&&W());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,v=b.priorityLevel;var k=ae(b.expirationTime<=P);if(P=e.unstable_now(),typeof k=="function"){b.callback=k,O(P),B=!0;break t}b===s(m)&&o(m),O(P)}else o(m);b=s(m)}if(b!==null)B=!0;else{var Y=s(g);Y!==null&&ue(G,Y.startTime-P),B=!1}}break e}finally{b=null,v=F,S=!1}B=void 0}}finally{B?Z():_=!1}}}var Z;if(typeof R=="function")Z=function(){R(X)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ne=me.port2;me.port1.onmessage=X,Z=function(){ne.postMessage(null)}}else Z=function(){T(X,0)};function ue(P,B){H=T(function(){P(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(P){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var F=v;v=B;try{return P()}finally{v=F}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(P,B){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var F=v;v=P;try{return B()}finally{v=F}},e.unstable_scheduleCallback=function(P,B,F){var ae=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ae+F:ae):F=ae,P){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=F+k,P={id:y++,callback:B,priorityLevel:P,startTime:F,expirationTime:k,sortIndex:-1},F>ae?(P.sortIndex=F,a(g,P),s(m)===null&&P===s(g)&&(N?(E(H),H=-1):N=!0,ue(G,F-ae))):(P.sortIndex=k,a(m,P),j||S||(j=!0,_||(_=!0,Z()))),P},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(P){var B=v;return function(){var F=v;v=B;try{return P.apply(this,arguments)}finally{v=F}}}})(th)),th}var Nb;function jj(){return Nb||(Nb=1,eh.exports=Aj()),eh.exports}
vendor: 5,225 bytes, line 1
1var nh={exports:{}},we={};var kb;function Nj(){if(kb)return we;kb=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),u=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,N={};function C(k,Y,ee){this.props=k,this.context=Y,this.refs=N,this.updater=ee||S}C.prototype.isReactComponent={},C.prototype.setState=function(k,Y){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Y,"setState")},C.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=C.prototype;function E(k,Y,ee){this.props=k,this.context=Y,this.refs=N,this.updater=ee||S}var R=E.prototype=new T;R.constructor=E,j(R,C.prototype),R.isPureReactComponent=!0;var O=Array.isArray,G={H:null,A:null,T:null,S:null,V:null},_=Object.prototype.hasOwnProperty;function H(k,Y,ee,te,le,ye){return ee=ye.ref,{$$typeof:e,type:k,key:Y,ref:ee!==void 0?ee:null,props:ye}}function D(k,Y){return H(k.type,Y,void 0,void 0,void 0,k.props)}function J(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function W(k){var Y={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return Y[ee]})}var X=/\/+/g;function Z(k,Y){return typeof k=="object"&&k!==null&&k.key!=null?W(""+k.key):Y.toString(36)}function me(){}function ne(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(me,me):(k.status="pending",k.then(function(Y){k.status==="pending"&&(k.status="fulfilled",k.value=Y)},function(Y){k.status==="pending"&&(k.status="rejected",k.reason=Y)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function ue(k,Y,ee,te,le){var ye=typeof k;(ye==="undefined"||ye==="boolean")&&(k=null);var se=!1;if(k===null)se=!0;else switch(ye){case"bigint":case"string":case"number":se=!0;break;case"object":switch(k.$$typeof){case e:case a:se=!0;break;case y:return se=k._init,ue(se(k._payload),Y,ee,te,le)}}if(se)return le=le(k),se=te===""?"."+Z(k,0):te,O(le)?(ee="",se!=null&&(ee=se.replace(X,"$&/")+"/"),ue(le,Y,ee,"",function(ze){return ze})):le!=null&&(J(le)&&(le=D(le,ee+(le.key==null||k&&k.key===le.key?"":(""+le.key).replace(X,"$&/")+"/")+se)),Y.push(le)),1;se=0;var We=te===""?".":te+":";if(O(k))for(var ke=0;ke<k.length;ke++)te=k[ke],ye=We+Z(te,ke),se+=ue(te,Y,ee,ye,le);else if(ke=v(k),typeof ke=="function")for(k=ke.call(k),ke=0;!(te=k.next()).done;)te=te.value,ye=We+Z(te,ke++),se+=ue(te,Y,ee,ye,le);else if(ye==="object"){if(typeof k.then=="function")return ue(ne(k),Y,ee,te,le);throw Y=String(k),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return se}function P(k,Y,ee){if(k==null)return k;var te=[],le=0;return ue(k,te,"","",function(ye){return Y.call(ee,ye,le++)}),te}function B(k){if(k._status===-1){var Y=k._result;Y=Y(),Y.then(function(ee){(k._status===0||k._status===-1)&&(k._status=1,k._result=ee)},function(ee){(k._status===0||k._status===-1)&&(k._status=2,k._result=ee)}),k._status===-1&&(k._status=0,k._result=Y)}if(k._status===1)return k._result.default;throw k._result}var F=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function ae(){}return we.Children={map:P,forEach:function(k,Y,ee){P(k,function(){Y.apply(this,arguments)},ee)},count:function(k){var Y=0;return P(k,function(){Y++}),Y},toArray:function(k){return P(k,function(Y){return Y})||[]},only:function(k){if(!J(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},we.Component=C,we.Fragment=s,we.Profiler=c,we.PureComponent=E,we.StrictMode=o,we.Suspense=m,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,we.__COMPILER_RUNTIME={__proto__:null,c:function(k){return G.H.useMemoCache(k)}},we.cache=function(k){return function(){return k.apply(null,arguments)}},we.cloneElement=function(k,Y,ee){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var te=j({},k.props),le=k.key,ye=void 0;if(Y!=null)for(se in Y.ref!==void 0&&(ye=void 0),Y.key!==void 0&&(le=""+Y.key),Y)!_.call(Y,se)||se==="
1key"||se==="__self"||se==="__source"||se==="ref"&&Y.ref===void 0||(te[se]=Y[se]);var se=arguments.length-2;if(se===1)te.children=ee;else if(1<se){for(var We=Array(se),ke=0;ke<se;ke++)We[ke]=arguments[ke+2];te.children=We}return H(k.type,le,void 0,void 0,ye,te)},we.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:h,_context:k},k},we.createElement=function(k,Y,ee){var te,le={},ye=null;if(Y!=null)for(te in Y.key!==void 0&&(ye=""+Y.key),Y)_.call(Y,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(le[te]=Y[te]);var se=arguments.length-2;if(se===1)le.children=ee;else if(1<se){for(var We=Array(se),ke=0;ke<se;ke++)We[ke]=arguments[ke+2];le.children=We}if(k&&k.defaultProps)for(te in se=k.defaultProps,se)le[te]===void 0&&(le[te]=se[te]);return H(k,ye,void 0,void 0,null,le)},we.createRef=function(){return{current:null}},we.forwardRef=function(k){return{$$typeof:p,render:k}},we.isValidElement=J,we.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:B}},we.memo=function(k,Y){return{$$typeof:g,type:k,compare:Y===void 0?null:Y}},we.startTransition=function(k){var Y=G.T,ee={};G.T=ee;try{var te=k(),le=G.S;le!==null&&le(ee,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(ae,F)}catch(ye){F(ye)}finally{G.T=Y}},we.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},we.use=function(k){return G.H.use(k)},we.useActionState=function(k,Y,ee){return G.H.useActionState(k,Y,ee)},we.useCallback=function(k,Y){return G.H.useCallback(k,Y)},we.useContext=function(k){return G.H.useContext(k)},we.useDebugValue=function(){},we.useDeferredValue=function(k,Y){return G.H.useDeferredValue(k,Y)},we.useEffect=function(k,Y,ee){var te=G.H;if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return te.useEffect(k,Y)},we.useId=function(){return G.H.useId()},we.useImperativeHandle=function(k,Y,ee){return G.H.useImperativeHandle(k,Y,ee)},we.useInsertionEffect=function(k,Y){return G.H.useInsertionEffect(k,Y)},we.useLayoutEffect=function(k,Y){return G.H.useLayoutEffect(k,Y)},we.useMemo=function(k,Y){return G.H.useMemo(k,Y)},we.useOptimistic=function(k,Y){return G.H.useOptimistic(k,Y)},we.useReducer=function(k,Y,ee){return G.H.useReducer(k,Y,ee)},we.useRef=function(k){return G.H.useRef(k)},we.useState=function(k){return G.H.useState(k)},we.useSyncExternalStore=function(k,Y,ee){return G.H.useSyncExternalStore(k,Y,ee)},we.useTransition=function(){return G.H.useTransition()},we.version="19.1.0",we}var Cb;function yc(){return Cb||(Cb=1,nh.exports=Nj()),nh.exports}var ah={exports:{}},jt={};var Tb;function kj(){if(Tb)return jt;Tb=1;var e=yc();function a(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(m,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:m,containerInfo:g,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,jt.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return h(m,g,null,y)},jt.flushSync=function(m){var g=u.T,y=o.p;try{if(u.T=null,o.p=2,m)return m()}finally{u.T=g,o.p=y,o.d.f()}},jt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(m,g))},jt.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},jt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin),v=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:S}):y==="script"&&o.d.X(m,{crossOrigin:b,integrity:v,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},jt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=p(g.as,g.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(m)},jt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin);o.d.L(m,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},jt.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=p(g.as,g.crossOrigin);o.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(m)},jt.requestFormReset=function(m){o.d.r(m)},jt.unstable_batchedUpdates=function(m,g){return m(g)},jt.useFormState=function(m,g,y){return u.H.useFormState(m,g,y)},jt.useFormStatus=function(){return u.H.useHostTransitionStatus()},jt.version="19.1.0",jt}var zb;function Kx(){if(zb)return ah.exports;zb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),ah.exports=kj(),ah.exports}var Eb;function Cj(){if(Eb)return Do;Eb=1;var e=jj(),a=yc(),s=Kx();function o(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function u(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function p(t){if(h(t)!==t)throw Error(o(188))}function m(t){var n=t.alternate;if(!n){if(n=h(t),n===null)throw Error(o(188));return n!==t?null:t}for(var i=t,l=n;;){var d=i.return;if(d===null)break;var f=d.alternate;if(f===null){if(l=d.return,l!==null){i=l;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===i)return p(d),t;if(f===l)return p(d),n;f=f.sibling}throw Error(o(188))}if(i.return!==l.return)i=d,l=f;else{for(var x=!1,A=d.child;A;){if(A===i){x=!0,i=d,l=f;break}if(A===l){x=!0,l=d,i=f;break}A=A.sibling}if(!x){for(A=f.child;A;){if(A===i){x=!0,i=f,l=d;break}if(A===l){x=!0,l=f,i=d;break}A=A.sibling}if(!x)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:n}function g(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=g(t),n!==null)return n;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function Z(t){return t===null||typeof t!="object"?null:(t=X&&t[X]||t["@@iterator"],typeof t=="function"?t:null)}var me=Symbol.for("react.client.reference");function ne(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===me?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case C:return"Profiler";case N:return"StrictMode";case G:return"Suspense";case _:return"SuspenseList";case J:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case S:return"Portal";case R:return(t.displayName||"Context")+".Provider";case E:return(t._context.displayName||"Context")+".Consumer";case O:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case D:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}var ue=Array.isArray,P=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ae=[],k=-1;function Y(t){return{current:t}}function ee(t){0>k||(t.current=ae[k],ae[k]=null,k--)}function te(t,n){k++,ae[k]=t.current,t.current=n}var le=Y(null),ye=Y(null),se=Y(null),We=Y(null);function ke(t,n){switch(te(se,n),te(ye,t),te(le,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Jy(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Jy(n),t=Qy(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ee(le),te(le,t)}function ze(){ee(le),ee(ye),ee(se)}function Dt(t){t.memoizedState!==null&&te(We,t);var n=le.current,i=Qy(n,t.type);n!==i&&(te(ye,t),te(le,i))}function Lt(t){ye.current===t&&(ee(le),ee(ye)),We.current===t&&(ee(We),No._currentValue=F)}var Xt=Object.prototype.hasOwnProperty,Zt=e.unstable_scheduleCallback,wt=e.unstable_cancelCallback,Lc=e.unstable_shouldYield,Hc=e.unstable_requestPaint,en=e.unstable_now,Ic=e.unstable_getCurrentPriorityLevel,ie=e.unstable_ImmediatePriority,De=e.unstable_UserBlockingPriority,Me=e.unstable_NormalPriority,Ln=e.unstable_LowPriority,Fa=e.unstable_IdlePriority,Ds=e.log,nS=e.unstable_setDisableYieldValue,Rs=null,Ht=null;function la(t){if(typeof Ds=="function"&&nS(t),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(Rs,t)}catch{}}var It=Math.clz32?Math.clz32:sS,aS=Math.log,iS=Math.LN2;function sS(t){return t>>>=0,t===0?32:31-(aS(t)/iS|0)|0}var rr=256,lr=4194304;function qa(t){var n=t&42;if(n!==0)return n;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;
vendor: 12,718 bytes, lines 1-8
1case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function cr(t,n,i){var l=t.pendingLanes;if(l===0)return 0;var d=0,f=t.suspendedLanes,x=t.pingedLanes;t=t.warmLanes;var A=l&134217727;return A!==0?(l=A&~f,l!==0?d=qa(l):(x&=A,x!==0?d=qa(x):i||(i=A&~t,i!==0&&(d=qa(i))))):(A=l&~f,A!==0?d=qa(A):x!==0?d=qa(x):i||(i=l&~t,i!==0&&(d=qa(i)))),d===0?0:n!==0&&n!==d&&(n&f)===0&&(f=d&-d,i=n&-n,f>=i||f===32&&(i&4194048)!==0)?n:d}function Ms(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function oS(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mm(){var t=rr;return rr<<=1,(rr&4194048)===0&&(rr=256),t}function Om(){var t=lr;return lr<<=1,(lr&62914560)===0&&(lr=4194304),t}function _c(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Os(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function rS(t,n,i,l,d,f){var x=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var A=t.entanglements,z=t.expirationTimes,I=t.hiddenUpdates;for(i=x&~i;0<i;){var K=31-It(i),Q=1<<K;A[K]=0,z[K]=-1;var V=I[K];if(V!==null)for(I[K]=null,K=0;K<V.length;K++){var q=V[K];q!==null&&(q.lane&=-536870913)}i&=~Q}l!==0&&Pm(t,l,0),f!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=f&~(x&~n))}function Pm(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var l=31-It(n);t.entangledLanes|=n,t.entanglements[l]=t.entanglements[l]|1073741824|i&4194090}function Gm(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var l=31-It(i),d=1<<l;d&n|t[l]&n&&(t[l]|=n),i&=~d}}function Bc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Vc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Um(){var t=B.p;return t!==0?t:(t=window.event,t===void 0?32:gb(t.type))}function lS(t,n){var i=B.p;try{return B.p=t,n()}finally{B.p=i}}var ca=Math.random().toString(36).slice(2),St="__reactFiber$"+ca,Rt="__reactProps$"+ca,ki="__reactContainer$"+ca,Fc="__reactEvents$"+ca,cS="__reactListeners$"+ca,dS="__reactHandles$"+ca,Lm="__reactResources$"+ca,Ps="__reactMarker$"+ca;function qc(t){delete t[St],delete t[Rt],delete t[Fc],delete t[cS],delete t[dS]}function Ci(t){var n=t[St];if(n)return n;for(var i=t.parentNode;i;){if(n=i[ki]||i[St]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=tb(t);t!==null;){if(i=t[St])return i;t=tb(t)}return n}t=i,i=t.parentNode}return null}function Ti(t){if(t=t[St]||t[ki]){var n=t.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return t}return null}function Gs(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(o(33))}function zi(t){var n=t[Lm];return n||(n=t[Lm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ct(t){t[Ps]=!0}var Hm=new Set,Im={};function Wa(t,n){Ei(t,n),Ei(t+"Capture",n)}function Ei(t,n){for(Im[t]=n,t=0;t<n.length;t++)Hm.add(n[t])}var uS=RegExp("^[: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]*$"),_m={},Bm={};function hS(t){return Xt.call(Bm,t)?!0:Xt.call(_m,t)?!1:uS.test(t)?Bm[t]=!0:(_m[t]=!0,!1)}function dr(t,n,i){if(hS(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function ur(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function Hn(t,n,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+l)}}var Wc,Vm;function Di(t){if(Wc===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Wc=n&&n[1]||"",Vm=-1<i.stack.indexOf(`
2    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3`+Wc+t+Vm}var Yc=!1;function Kc(t,n){if(!t||Yc)return"";Yc=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(q){var V=q}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(q){V=q}t.call(Q.prototype)}}else{try{throw Error()}catch(q){V=q}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&V&&typeof q.stack=="string")return[q.stack,V.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),x=f[0],A=f[1];if(x&&A){var z=x.split(`
4`),I=A.split(`
5`);for(d=l=0;l<z.length&&!z[l].includes("DetermineComponentFrameRoot");)l++;for(;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;if(l===z.length||d===I.length)for(l=z.length-1,d=I.length-1;1<=l&&0<=d&&z[l]!==I[d];)d--;for(;1<=l&&0<=d;l--,d--)if(z[l]!==I[d]){if(l!==1||d!==1)do if(l--,d--,0>d||z[l]!==I[d]){var K=`
6`+z[l].replace(" at new "," at ");return t.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",t.displayName)),K}while(1<=l&&0<=d);break}}}finally{Yc=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Di(i):""}function fS(t){switch(t.tag){case 26:case 27:case 5:return Di(t.type);case 16:return Di("Lazy");case 13:return Di("Suspense");case 19:return Di("SuspenseList");case 0:case 15:return Kc(t.type,!1);case 11:return Kc(t.type.render,!1);case 1:return Kc(t.type,!0);case 31:return Di("Activity");default:return""}}function Fm(t){try{var n="";do n+=fS(t),t=t.return;while(t);return n}catch(i){return`
7Error generating stack: `+i.message+`
8`+i.stack}}function tn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qm(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function mS(t){var n=qm(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),l=""+t[n];if(!t.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,f=i.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return d.call(this)},set:function(x){l=""+x,f.call(this,x)}}),Object.defineProperty(t,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function hr(t){t._valueTracker||(t._valueTracker=mS(t))}function Wm(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),l="";return t&&(l=qm(t)?t.checked?"true":"false":t.value),t=l,t!==i?(n.setValue(t),!0):!1}function fr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var pS=/[\n"\\]/g;function nn(t){return t.replace(pS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function $c(t,n,i,l,d,f,x,A){t.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.type=x:t.removeAttribute("type"),n!=null?x==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+tn(n)):t.value!==""+tn(n)&&(t.value=""+tn(n)):x!=="submit"&&x!=="reset"||t.removeAttribute("value"),n!=null?Jc(t,x,tn(n)):i!=null?Jc(t,x,tn(i)):l!=null&&t.removeAttribute("value"),d==null&&f!=null&&(t.defaultChecked=!!f),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+tn(A):t.removeAttribute("name")}function Ym(t,n,i,l,d,f,x,A){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),n!=null||i!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;i=i!=null?""+tn(i):"",n=n!=null?""+tn(n):i,A||n===t.value||(t.value=n),t.defaultValue=n}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=A?t.checked:!!l,t.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.name=x)}function Jc(t,n,i){n==="number"&&fr(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ri(t,n,i,l){if(t=t.options,n){n={};for(var d=0;d<i.length;d++)n["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=n.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&l&&(t[i].defaultSelected=!0)}else{for(i=""+tn(i),n=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,l&&(t[d].defaultSelected=!0);return}n!==null||t[d].disabled||(n=t[d])}n!==null&&(n.selected=!0)}}function Km(t,n,i){if(n!=null&&(n=""+tn(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+tn(i):""}function $m(t,n,i,l){if(n==null){if(l!=null){if(i!=null)throw Error(o(92));if(ue(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),n=i}i=tn(n),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l)}function Mi(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var gS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jm(t,n,i){var l=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":l?t.setProperty(n,i):typeof i!="number"||i===0||gS.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function Qm(t,n,i){if(n!=null&&typeof n!="object")throw Error(o(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var d in n)l=n[d],n.hasOwnProperty(d)&&i[d]!==l&&Jm(t,d,l)}else for(var f in n)n.hasOwnProperty(f)&&Jm(t,f,n[f])}function Qc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 yS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function mr(t){return bS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Xc=null;function Zc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oi=null,Pi=null;function Xm(t){var n=Ti(t);if(n&&(t=n.stateNode)){var i=t[Rt]||null;e:switch(t=n.stateNode,n.type){case"input":if($c(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+nn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var l=i[n];if(l!==t&&l.form===t.form){var d=l[Rt]||null;if(!d)throw Error(o(90));$c(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<i.length;n++)l=i[n],l.form===t.form&&Wm(l)}break e;case"textarea":Km(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Ri(t,!!i.multiple,n,!1)}}}var ed=!1;function Zm(t,n,i){if(ed)return t(n,i);ed=!0;try{var l=t(n);return l}finally{if(ed=!1,(Oi!==null||Pi!==null)&&(Zr(),Oi&&(n=Oi,t=Pi,Pi=Oi=null,Xm(n),t)))for(n=0;n<t.length;n++)Xm(t[n])}}function Us(t,n){var i=t.stateNode;if(i===null)return null;var l=i[Rt]||null;if(l===null)return null;i=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,n,typeof i));return i}var In=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=!1;if(In)try{var Ls={};Object.defineProperty(Ls,"passive",{get:function(){td=!0}}),window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{td=!1}var da=null,nd=null,pr=null;function ep(){if(pr)return pr;var t,n=nd,i=n.length,l,d="value"in da?da.value:da.textContent,f=d.length;for(t=0;t<i&&n[t]===d[t];t++);var x=i-t;for(l=1;l<=x&&n[i-l]===d[f-l];l++);return pr=d.slice(t,1<l?1-l:void 0)}function gr(t){var n=t.keyCode;
vendor: 5,892 bytes, line 8
8return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function yr(){return!0}function tp(){return!1}function Mt(t){function n(i,l,d,f,x){this._reactName=i,this._targetInst=d,this.type=l,this.nativeEvent=f,this.target=x,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(i=t[A],this[A]=i?i(f):f[A]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?yr:tp,this.isPropagationStopped=tp,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=yr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=yr)},persist:function(){},isPersistent:yr}),n}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},br=Mt(Ya),Hs=y({},Ya,{view:0,detail:0}),xS=Mt(Hs),ad,id,Is,xr=y({},Hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:od,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Is&&(Is&&t.type==="mousemove"?(ad=t.screenX-Is.screenX,id=t.screenY-Is.screenY):id=ad=0,Is=t),ad)},movementY:function(t){return"movementY"in t?t.movementY:id}}),np=Mt(xr),vS=y({},xr,{dataTransfer:0}),wS=Mt(vS),SS=y({},Hs,{relatedTarget:0}),sd=Mt(SS),AS=y({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),jS=Mt(AS),NS=y({},Ya,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),kS=Mt(NS),CS=y({},Ya,{data:0}),ap=Mt(CS),TS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zS={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"},ES={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DS(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=ES[t])?!!n[t]:!1}function od(){return DS}var RS=y({},Hs,{key:function(t){if(t.key){var n=TS[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=gr(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?zS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:od,charCode:function(t){return t.type==="keypress"?gr(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?gr(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),MS=Mt(RS),OS=y({},xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ip=Mt(OS),PS=y({},Hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:od}),GS=Mt(PS),US=y({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),LS=Mt(US),HS=y({},xr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),IS=Mt(HS),_S=y({},Ya,{newState:0,oldState:0}),BS=Mt(_S),VS=[9,13,27,32],rd=In&&"CompositionEvent"in window,_s=null;In&&"documentMode"in document&&(_s=document.documentMode);var FS=In&&"TextEvent"in window&&!_s,sp=In&&(!rd||_s&&8<_s&&11>=_s),op=" ",rp=!1;function lp(t,n){switch(t){case"keyup":return VS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Gi=!1;function qS(t,n){switch(t){case"compositionend":return cp(n);case"keypress":return n.which!==32?null:(rp=!0,op);case"textInput":return t=n.data,t===op&&rp?null:t;default:return null}}function WS(t,n){if(Gi)return t==="compositionend"||!rd&&lp(t,n)?(t=ep(),pr=nd=da=null,Gi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return sp&&n.locale!=="ko"?null:n.data;default:return null}}var YS={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 dp(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!YS[t.type]:n==="textarea"}function up(t,n,i,l){Oi?Pi?Pi.push(l):Pi=[l]:Oi=l,n=sl(n,"onChange"),0<n.length&&(i=new br("onChange","change",null,i,l),t.push({event:i,listeners:n}))}var Bs=null,Vs=null;function KS(t){qy(t,0)}function vr(t){var n=Gs(t);if(Wm(n))return t}function hp(t,n){if(t==="change")return n}var fp=!1;if(In){var ld;if(In){var cd="oninput"in document;if(!cd){var mp=document.createElement("div");mp.setAttribute("oninput","return;"),cd=typeof mp.oninput=="function"}ld=cd}else ld=!1;fp=ld&&(!document.documentMode||9<document.documentMode)}function pp(){Bs&&(Bs.detachEvent("onpropertychange",gp),Vs=Bs=null)}function gp(t){if(t.propertyName==="value"&&vr(Vs)){var n=[];
vendor: 99,890 bytes, line 8
8up(n,Vs,t,Zc(t)),Zm(KS,n)}}function $S(t,n,i){t==="focusin"?(pp(),Bs=n,Vs=i,Bs.attachEvent("onpropertychange",gp)):t==="focusout"&&pp()}function JS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vr(Vs)}function QS(t,n){if(t==="click")return vr(n)}function XS(t,n){if(t==="input"||t==="change")return vr(n)}function ZS(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var _t=typeof Object.is=="function"?Object.is:ZS;function Fs(t,n){if(_t(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),l=Object.keys(n);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var d=i[l];if(!Xt.call(n,d)||!_t(t[d],n[d]))return!1}return!0}function yp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function bp(t,n){var i=yp(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=n&&l>=n)return{node:i,offset:n-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=yp(i)}}function xp(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?xp(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function vp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=fr(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=fr(t.document)}return n}function dd(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var eA=In&&"documentMode"in document&&11>=document.documentMode,Ui=null,ud=null,qs=null,hd=!1;function wp(t,n,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;hd||Ui==null||Ui!==fr(l)||(l=Ui,"selectionStart"in l&&dd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),qs&&Fs(qs,l)||(qs=l,l=sl(ud,"onSelect"),0<l.length&&(n=new br("onSelect","select",null,n,i),t.push({event:n,listeners:l}),n.target=Ui)))}function Ka(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Li={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionrun:Ka("Transition","TransitionRun"),transitionstart:Ka("Transition","TransitionStart"),transitioncancel:Ka("Transition","TransitionCancel"),transitionend:Ka("Transition","TransitionEnd")},fd={},Sp={};In&&(Sp=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function $a(t){if(fd[t])return fd[t];if(!Li[t])return t;var n=Li[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in Sp)return fd[t]=n[i];return t}var Ap=$a("animationend"),jp=$a("animationiteration"),Np=$a("animationstart"),tA=$a("transitionrun"),nA=$a("transitionstart"),aA=$a("transitioncancel"),kp=$a("transitionend"),Cp=new Map,md="abort auxClick beforeToggle 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(" ");md.push("scrollEnd");function mn(t,n){Cp.set(t,n),Wa(n,[t])}var Tp=new WeakMap;function an(t,n){if(typeof t=="object"&&t!==null){var i=Tp.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Fm(n)},Tp.set(t,n),n)}return{value:t,source:n,stack:Fm(n)}}var sn=[],Hi=0,pd=0;function wr(){for(var t=Hi,n=pd=Hi=0;n<t;){var i=sn[n];sn[n++]=null;var l=sn[n];sn[n++]=null;var d=sn[n];sn[n++]=null;var f=sn[n];if(sn[n++]=null,l!==null&&d!==null){var x=l.pending;x===null?d.next=d:(d.next=x.next,x.next=d),l.pending=d}f!==0&&zp(i,d,f)}}function Sr(t,n,i,l){sn[Hi++]=t,sn[Hi++]=n,sn[Hi++]=i,sn[Hi++]=l,pd|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function gd(t,n,i,l){return Sr(t,n,i,l),Ar(t)}function Ii(t,n){return Sr(t,null,null,n),Ar(t)}function zp(t,n,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var d=!1,f=t.return;f!==null;)f.childLanes|=i,l=f.alternate,l!==null&&(l.childLanes|=i),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(d=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,d&&n!==null&&(d=31-It(i),t=f.hiddenUpdates,l=t[d],l===null?t[d]=[n]:l.push(n),n.lane=i|536870912),f):null}function Ar(t){if(50<yo)throw yo=0,Su=null,Error(o(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var _i={};function iA(t,n,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(t,n,i,l){return new iA(t,n,i,l)}function yd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function _n(t,n){var i=t.alternate;return i===null?(i=Bt(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Ep(t,n){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function jr(t,n,i,l,d,f){var x=0;if(l=t,typeof t=="function")yd(t)&&(x=1);else if(typeof t=="string")x=oj(t,i,le.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case J:return t=Bt(31,i,n,d),t.elementType=J,t.lanes=f,t;case j:return Ja(i.children,d,f,n);case N:x=8,d|=24;break;case C:return t=Bt(12,i,n,d|2),t.elementType=C,t.lanes=f,t;case G:return t=Bt(13,i,n,d),t.elementType=G,t.lanes=f,t;case _:return t=Bt(19,i,n,d),t.elementType=_,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:case R:x=10;break e;case E:x=9;break e;case O:x=11;break e;case H:x=14;break e;case D:x=16,l=null;break e}x=29,i=Error(o(130,t===null?"null":typeof t,"")),l=null}return n=Bt(x,i,n,d),n.elementType=t,n.type=l,n.lanes=f,n}function Ja(t,n,i,l){return t=Bt(7,t,l,n),t.lanes=i,t}function bd(t,n,i){return t=Bt(6,t,null,n),t.lanes=i,t}function xd(t,n,i){return n=Bt(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Bi=[],Vi=0,Nr=null,kr=0,on=[],rn=0,Qa=null,Bn=1,Vn="";function Xa(t,n){Bi[Vi++]=kr,Bi[Vi++]=Nr,Nr=t,kr=n}function Dp(t,n,i){on[rn++]=Bn,on[rn++]=Vn,on[rn++]=Qa,Qa=t;var l=Bn;t=Vn;var d=32-It(l)-1;l&=~(1<<d),i+=1;var f=32-It(n)+d;if(30<f){var x=d-d%5;f=(l&(1<<x)-1).toString(32),l>>=x,d-=x,Bn=1<<32-It(n)+d|i<<d|l,Vn=f+t}else Bn=1<<f|i<<d|l,Vn=t}function vd(t){t.return!==null&&(Xa(t,1),Dp(t,1,0))}function wd(t){for(;t===Nr;)Nr=Bi[--Vi],Bi[Vi]=null,kr=Bi[--Vi],Bi[Vi]=null;for(;t===Qa;)Qa=on[--rn],on[rn]=null,Vn=on[--rn],on[rn]=null,Bn=on[--rn],on[rn]=null}var Nt=null,Ke=null,Oe=!1,Za=null,An=!1,Sd=Error(o(519));function ei(t){var n=Error(o(418,""));throw Ks(an(n,t)),Sd}function Rp(t){var n=t.stateNode,i=t.type,l=t.memoizedProps;switch(n[St]=t,n[Rt]=l,i){case"dialog":Te("cancel",n),Te("close",n);break;case"iframe":case"object":case"embed":Te("load",n);break;case"video":case"audio":for(i=0;i<xo.length;i++)Te(xo[i],n);break;case"source":Te("error",n);break;case"img":case"image":case"link":Te("error",n),Te("load",n);break;case"details":Te("toggle",n);break;case"input":Te("invalid",n),Ym(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),hr(n);break;case"select":Te("invalid",n);break;case"textarea":Te("invalid",n),$m(n,l.value,l.defaultValue,l.children),hr(n)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||l.suppressHydrationWarning===!0||$y(n.textContent,i)?(l.popover!=null&&(Te("beforetoggle",n),Te("toggle",n)),l.onScroll!=null&&Te("scroll",n),l.onScrollEnd!=null&&Te("scrollend",n),l.onClick!=null&&(n.onclick=ol),n=!0):n=!1,n||ei(t)}function Mp(t){for(Nt=t.return;Nt;)switch(Nt.tag){case 5:case 13:An=!1;return;case 27:case 3:An=!0;return;default:Nt=Nt.return}}function Ws(t){if(t!==Nt)return!1;if(!Oe)return Mp(t),Oe=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Lu(t.type,t.memoizedProps)),i=!i),i&&Ke&&ei(t),Mp(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(n===0){Ke=gn(t.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;t=t.nextSibling}Ke=null}}else n===27?(n=Ke,ka(t.type)?(t=Bu,Bu=null,Ke=t):Ke=n):Ke=Nt?gn(t.stateNode.nextSibling):null;return!0}function Ys(){Ke=Nt=null,Oe=!1}function Op(){var t=Za;return t!==null&&(Gt===null?Gt=t:Gt.push.apply(Gt,t),Za=null),t}function Ks(t){Za===null?Za=[t]:Za.push(t)}var Ad=Y(null),ti=null,Fn=null;function ua(t,n,i){te(Ad,n._currentValue),n._currentValue=i}function qn(t){t._currentValue=Ad.current,ee(Ad)}function jd(t,n,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),t===i)break;t=t.return}}function Nd(t,n,i,l){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var f=d.dependencies;if(f!==null){var x=d.child;f=f.firstContext;e:for(;f!==null;){var A=f;f=d;for(var z=0;z<n.length;z++)if(A.context===n[z]){f.lanes|=i,A=f.alternate,A!==null&&(A.lanes|=i),jd(f.return,i,t),l||(x=null);break e}f=A.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(o(341));x.lanes|=i,f=x.alternate,f!==null&&(f.lanes|=i),jd(x,i,t),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===t){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function $s(t,n,i,l){t=null;for(var d=n,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(o(387));if(x=x.memoizedProps,x!==null){var A=d.type;_t(d.pendingProps.value,x.value)||(t!==null?t.push(A):t=[A])}}else if(d===We.current){if(x=d.alternate,x===null)throw Error(o(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(No):t=[No])}d=d.return}t!==null&&Nd(n,t,i,l),n.flags|=262144}function Cr(t){for(t=t.firstContext;t!==null;){if(!_t(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ni(t){ti=t,Fn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function At(t){return Pp(ti,t)}function Tr(t,n){return ti===null&&ni(t),Pp(t,n)}function Pp(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Fn===null){if(t===null)throw Error(o(308));Fn=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Fn=Fn.next=n;return i}var sA=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},oA=e.unstable_scheduleCallback,rA=e.unstable_NormalPriority,at={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kd(){return{controller:new sA,data:new Map,refCount:0}}function Js(t){t.refCount--,t.refCount===0&&oA(rA,function(){t.controller.abort()})}var Qs=null,Cd=0,Fi=0,qi=null;function lA(t,n){if(Qs===null){var i=Qs=[];Cd=0,Fi=zu(),qi={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Cd++,n.then(Gp,Gp),n}function Gp(){if(--Cd===0&&Qs!==null){qi!==null&&(qi.status="fulfilled");var t=Qs;Qs=null,Fi=0,qi=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function cA(t,n){var i=[],l={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){l.status="fulfilled",l.value=n;for(var d=0;d<i.length;d++)(0,i[d])(n)},function(d){for(l.status="rejected",l.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),l}var Up=P.S;P.S=function(t,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&lA(t,n),Up!==null&&Up(t,n)};var ai=Y(null);function Td(){var t=ai.current;return t!==null?t:Fe.pooledCache}function zr(t,n){n===null?te(ai,ai.current):te(ai,n.pool)}function Lp(){var t=Td();return t===null?null:{parent:at._currentValue,pool:t}}var Xs=Error(o(460)),Hp=Error(o(474)),Er=Error(o(542)),zd={then:function(){}};function Ip(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Dr(){}function _p(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Dr,Dr),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Vp(t),t;default:if(typeof n.status=="string")n.then(Dr,Dr);else{if(t=Fe,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=n,t.status="pending",t.then(function(l){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=l}},function(l){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Vp(t),t}throw Zs=n,Xs}}var Zs=null;function Bp(){if(Zs===null)throw Error(o(459));var t=Zs;return Zs=null,t}function Vp(t){if(t===Xs||t===Er)throw Error(o(483))}var ha=!1;function Ed(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dd(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function fa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ma(t,n,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Ge&2)!==0){var d=l.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n,n=Ar(t),zp(t,null,i),n}return Sr(t,l,n,i),Ar(t)}function eo(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var l=n.lanes;l&=t.pendingLanes,i|=l,n.lanes=i,Gm(t,i)}}function Rd(t,n){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var d=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};f===null?d=f=x:f=f.next=x,i=i.next}while(i!==null);f===null?d=f=n:f=f.next=n}else d=f=n;i={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var Md=!1;function to(){if(Md){var t=qi;if(t!==null)throw t}}function no(t,n,i,l){Md=!1;var d=t.updateQueue;ha=!1;var f=d.firstBaseUpdate,x=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var z=A,I=z.next;z.next=null,x===null?f=I:x.next=I,x=z;var K=t.alternate;K!==null&&(K=K.updateQueue,A=K.lastBaseUpdate,A!==x&&(A===null?K.firstBaseUpdate=I:A.next=I,K.lastBaseUpdate=z))}if(f!==null){var Q=d.baseState;x=0,K=I=z=null,A=f;do{var V=A.lane&-536870913,q=V!==A.lane;if(q?(Ee&V)===V:(l&V)===V){V!==0&&V===Fi&&(Md=!0),K!==null&&(K=K.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var ve=t,be=A;V=n;var Ie=i;switch(be.tag){case 1:if(ve=be.payload,typeof ve=="function"){Q=ve.call(Ie,Q,V);break e}Q=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=be.payload,V=typeof ve=="function"?ve.call(Ie,Q,V):ve,V==null)break e;Q=y({},Q,V);break e;case 2:ha=!0}}V=A.callback,V!==null&&(t.flags|=64,q&&(t.flags|=8192),q=d.callbacks,q===null?d.callbacks=[V]:q.push(V))}else q={lane:V,tag:A.tag,payload:A.payload,callback:A.callback,next:null},K===null?(I=K=q,z=Q):K=K.next=q,x|=V;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;q=A,A=q.next,q.next=null,d.lastBaseUpdate=q,d.shared.pending=null}}while(!0);K===null&&(z=Q),d.baseState=z,d.firstBaseUpdate=I,d.lastBaseUpdate=K,f===null&&(d.shared.lanes=0),Sa|=x,t.lanes=x,t.memoizedState=Q}}function Fp(t,n){if(typeof t!="function")throw Error(o(191,t));t.call(n)}function qp(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Fp(i[t],n)}var Wi=Y(null),Rr=Y(0);function Wp(t,n){t=Xn,te(Rr,t),te(Wi,n),Xn=t|n.baseLanes}function Od(){te(Rr,Xn),te(Wi,Wi.current)}function Pd(){Xn=Rr.current,ee(Wi),ee(Rr)}var pa=0,Ae=null,Le=null,et=null,Mr=!1,Yi=!1,ii=!1,Or=0,ao=0,Ki=null,dA=0;function Qe(){throw Error(o(321))}function Gd(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!_t(t[i],n[i]))return!1;return!0}function Ud(t,n,i,l,d,f){return pa=f,Ae=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,P.H=t===null||t.memoizedState===null?zg:Eg,ii=!1,f=i(l,d),ii=!1,Yi&&(f=Kp(n,i,l,d)),Yp(t),f}function Yp(t){P.H=Ir;var n=Le!==null&&Le.next!==null;if(pa=0,et=Le=Ae=null,Mr=!1,ao=0,Ki=null,n)throw Error(o(300));t===null||dt||(t=t.dependencies,t!==null&&Cr(t)&&(dt=!0))}function Kp(t,n,i,l){Ae=t;var d=0;do{if(Yi&&(Ki=null),ao=0,Yi=!1,25<=d)throw Error(o(301));if(d+=1,et=Le=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}P.H=yA,f=n(i,l)}while(Yi);return f}function uA(){var t=P.H,n=t.useState()[0];return n=typeof n.then=="function"?io(n):n,t=t.useState()[0],(Le!==null?Le.memoizedState:null)!==t&&(Ae.flags|=1024),n}function Ld(){var t=Or!==0;return Or=0,t}function Hd(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function Id(t){if(Mr){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Mr=!1}pa=0,et=Le=Ae=null,Yi=!1,ao=Or=0,Ki=null}function Ot(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Ae.memoizedState=et=t:et=et.next=t,et}function tt(){if(Le===null){var t=Ae.alternate;t=t!==null?t.memoizedState:null}else t=Le.next;var n=et===null?Ae.memoizedState:et.next;if(n!==null)et=n,Le=t;else{if(t===null)throw Ae.alternate===null?Error(o(467)):Error(o(310));Le=t,t={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},et===null?Ae.memoizedState=et=t:et=et.next=t}return et}function _d(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function io(t){var n=ao;return ao+=1,Ki===null&&(Ki=[]),t=_p(Ki,t,n),n=Ae,(et===null?n.memoizedState:et.next)===null&&(n=n.alternate,P.H=n===null||n.memoizedState===null?zg:Eg),t}function Pr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return io(t);if(t.$$typeof===R)return At(t)}throw Error(o(438,String(t)))}function Bd(t){var n=null,i=Ae.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var l=Ae.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=_d(),Ae.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),l=0;l<t;l++)i[l]=W;return n.index++,i}function Wn(t,n){return typeof n=="function"?n(t):n}function Gr(t){var n=tt();return Vd(n,Le,t)}function Vd(t,n,i){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var d=t.baseQueue,f=l.pending;if(f!==null){if(d!==null){var x=d.next;d.next=f.next,f.next=x}n.baseQueue=d=f,l.pending=null}if(f=t.baseState,d===null)t.memoizedState=f;else{n=d.next;var A=x=null,z=null,I=n,K=!1;do{var Q=I.lane&-536870913;if(Q!==I.lane?(Ee&Q)===Q:(pa&Q)===Q){var V=I.revertLane;if(V===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),Q===Fi&&(K=!0);else if((pa&V)===V){I=I.next,V===Fi&&(K=!0);continue}else Q={lane:0,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(A=z=Q,x=f):z=z.next=Q,Ae.lanes|=V,Sa|=V;Q=I.action,ii&&i(f,Q),f=I.hasEagerState?I.eagerState:i(f,Q)}else V={lane:Q,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(A=z=V,x=f):z=z.next=V,Ae.lanes|=Q,Sa|=Q;I=I.next}while(I!==null&&I!==n);if(z===null?x=f:z.next=A,!_t(f,t.memoizedState)&&(dt=!0,K&&(i=qi,i!==null)))throw i;t.memoizedState=f,t.baseState=x,t.baseQueue=z,l.lastRenderedState=f}return d===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Fd(t){var n=tt(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var l=i.dispatch,d=i.pending,f=n.memoizedState;if(d!==null){i.pending=null;var x=d=d.next;do f=t(f,x.action),x=x.next;while(x!==d);_t(f,n.memoizedState)||(dt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),i.lastRenderedState=f}return[f,l]}function $p(t,n,i){var l=Ae,d=tt(),f=Oe;if(f){if(i===void 0)throw Error(o(407));i=i()}else i=n();var x=!_t((Le||d).memoizedState,i);x&&(d.memoizedState=i,dt=!0),d=d.queue;var A=Xp.bind(null,l,d,t);if(so(2048,8,A,[t]),d.getSnapshot!==n||x||et!==null&&et.memoizedState.tag&1){if(l.flags|=2048,$i(9,Ur(),Qp.bind(null,l,d,i,n),null),Fe===null)throw Error(o(349));f||(pa&124)!==0||Jp(l,n,i)}return i}function Jp(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Ae.updateQueue,n===null?(n=_d(),Ae.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function Qp(t,n,i,l){n.value=i,n.getSnapshot=l,Zp(n)&&eg(t)}function Xp(t,n,i){return i(function(){Zp(n)&&eg(t)})}function Zp(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!_t(t,i)}catch{return!0}}function eg(t){var n=Ii(t,2);n!==null&&Yt(n,t,2)}function qd(t){var n=Ot();if(typeof t=="function"){var i=t;if(t=i(),ii){la(!0);try{i()}finally{la(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:t},n}function tg(t,n,i,l){return t.baseState=i,Vd(t,Le,typeof l=="function"?l:Wn)}function hA(t,n,i,l,d){if(Hr(t))throw Error(o(485));if(t=n.action,t!==null){var f={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){f.listeners.push(x)}};P.T!==null?i(!0):f.isTransition=!1,l(f),i=n.pending,i===null?(f.next=n.pending=f,ng(n,f)):(f.next=i.next,n.pending=i.next=f)}}function ng(t,n){var i=n.action,l=n.payload,d=t.state;if(n.isTransition){var f=P.T,x={};P.T=x;try{var A=i(d,l),z=P.S;z!==null&&z(x,A),ag(t,n,A)}catch(I){Wd(t,n,I)}finally{P.T=f}}else try{f=i(d,l),ag(t,n,f)}catch(I){Wd(t,n,I)}}function ag(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){ig(t,n,l)},function(l){return Wd(t,n,l)}):ig(t,n,i)}function ig(t,n,i){n.status="fulfilled",n.value=i,sg(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,ng(t,i)))}function Wd(t,n,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=i,sg(n),n=n.next;while(n!==l)}t.action=null}function sg(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function og(t,n){return n}function rg(t,n){if(Oe){var i=Fe.formState;if(i!==null){e:{var l=Ae;if(Oe){if(Ke){t:{for(var d=Ke,f=An;d.nodeType!==8;){if(!f){d=null;break t}if(d=gn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){Ke=gn(d.nextSibling),l=d.data==="F!";break e}}ei(l)}l=!1}l&&(n=i[0])}}return i=Ot(),i.memoizedState=i.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:og,lastRenderedState:n},i.queue=l,i=kg.bind(null,Ae,l),l.dispatch=i,l=qd(!1),f=Qd.bind(null,Ae,!1,l.queue),l=Ot(),d={state:n,dispatch:null,action:t,pending:null},l.queue=d,i=hA.bind(null,Ae,d,f,i),d.dispatch=i,l.memoizedState=t,[n,i,!1]}function lg(t){var n=tt();return cg(n,Le,t)}function cg(t,n,i){if(n=Vd(t,n,og)[0],t=Gr(Wn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=io(n)}catch(x){throw x===Xs?Er:x}else l=n;n=tt();var d=n.queue,f=d.dispatch;return i!==n.memoizedState&&(Ae.flags|=2048,$i(9,Ur(),fA.bind(null,d,i),null)),[l,f,t]}function fA(t,n){t.action=n}function dg(t){var n=tt(),i=Le;if(i!==null)return cg(n,i,t);tt(),n=n.memoizedState,i=tt();var l=i.queue.dispatch;return i.memoizedState=t,[n,l,!1]}function $i(t,n,i,l){return t={tag:t,create:i,deps:l,inst:n,next:null},n=Ae.updateQueue,n===null&&(n=_d(),Ae.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,n.lastEffect=t),t}function Ur(){return{destroy:void 0,resource:void 0}}function ug(){return tt().memoizedState}function Lr(t,n,i,l){var d=Ot();l=l===void 0?null:l,Ae.flags|=t,d.memoizedState=$i(1|n,Ur(),i,l)}function so(t,n,i,l){var d=tt();l=l===void 0?null:l;var f=d.memoizedState.inst;Le!==null&&l!==null&&Gd(l,Le.memoizedState.deps)?d.memoizedState=$i(n,f,i,l):(Ae.flags|=t,d.memoizedState=$i(1|n,f,i,l))}function hg(t,n){Lr(8390656,8,t,n)}function fg(t,n){so(2048,8,t,n)}function mg(t,n){return so(4,2,t,n)}function pg(t,n){return so(4,4,t,n)}function gg(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function yg(t,n,i){i=i!=null?i.concat([t]):null,so(4,4,gg.bind(null,n,t),i)}function Yd(){}function bg(t,n){var i=tt();n=n===void 0?null:n;var l=i.memoizedState;return n!==null&&Gd(n,l[1])?l[0]:(i.memoizedState=[t,n],t)}function xg(t,n){var i=tt();n=n===void 0?null:n;var l=i.memoizedState;if(n!==null&&Gd(n,l[1]))return l[0];if(l=t(),ii){la(!0);try{t()}finally{la(!1)}}return i.memoizedState=[l,n],l}function Kd(t,n,i){return i===void 0||(pa&1073741824)!==0?t.memoizedState=n:(t.memoizedState=i,t=Sy(),Ae.lanes|=t,Sa|=t,i)}function vg(t,n,i,l){return _t(i,n)?i:Wi.current!==null?(t=Kd(t,i,l),_t(t,n)||(dt=!0),t):(pa&42)===0?(dt=!0,t.memoizedState=i):(t=Sy(),Ae.lanes|=t,Sa|=t,n)}function wg(t,n,i,l,d){var f=B.p;B.p=f!==0&&8>f?f:8;var x=P.T,A={};P.T=A,Qd(t,!1,n,i);try{var z=d(),I=P.S;if(I!==null&&I(A,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var K=cA(z,l);oo(t,n,K,Wt(t))}else oo(t,n,l,Wt(t))}catch(Q){oo(t,n,{then:function(){},status:"rejected",reason:Q},Wt())}finally{B.p=f,P.T=x}}function mA(){}function $d(t,n,i,l){if(t.tag!==5)throw Error(o(476));var d=Sg(t).queue;wg(t,d,n,F,i===null?mA:function(){return Ag(t),i(l)})}function Sg(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:F},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Ag(t){var n=Sg(t).next.queue;oo(t,n,{},Wt())}function Jd(){return At(No)}function jg(){return tt().memoizedState}function Ng(){return tt().memoizedState}function pA(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=Wt();t=fa(i);var l=ma(n,t,i);l!==null&&(Yt(l,n,i),eo(l,n,i)),n={cache:kd()},t.payload=n;return}n=n.return}}function gA(t,n,i){var l=Wt();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Hr(t)?Cg(n,i):(i=gd(t,n,i,l),i!==null&&(Yt(i,t,l),Tg(i,n,l)))}function kg(t,n,i){var l=Wt();oo(t,n,i,l)}function oo(t,n,i,l){var d={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Hr(t))Cg(n,d);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var x=n.lastRenderedState,A=f(x,i);if(d.hasEagerState=!0,d.eagerState=A,_t(A,x))return Sr(t,n,d,0),Fe===null&&wr(),!1}catch{}if(i=gd(t,n,d,l),i!==null)return Yt(i,t,l),Tg(i,n,l),!0}return!1}function Qd(t,n,i,l){if(l={lane:2,revertLane:zu(),action:l,hasEagerState:!1,eagerState:null,next:null},Hr(t)){if(n)throw Error(o(479))}else n=gd(t,i,l,2),n!==null&&Yt(n,t,2)}function Hr(t){var n=t.alternate;return t===Ae||n!==null&&n===Ae}function Cg(t,n){Yi=Mr=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function Tg(t,n,i){if((i&4194048)!==0){var l=n.lanes;l&=t.pendingLanes,i|=l,n.lanes=i,Gm(t,i)}}var Ir={readContext:At,use:Pr,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe},zg={readContext:At,use:Pr,useCallback:function(t,n){return Ot().memoizedState=[t,n===void 0?null:n],t},useContext:At,useEffect:hg,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,Lr(4194308,4,gg.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Lr(4194308,4,t,n)},useInsertionEffect:function(t,n){Lr(4,2,t,n)},useMemo:function(t,n){var i=Ot();n=n===void 0?null:n;var l=t();if(ii){la(!0);try{t()}finally{la(!1)}}return i.memoizedState=[l,n],l},useReducer:function(t,n,i){var l=Ot();if(i!==void 0){var d=i(n);if(ii){la(!0);try{i(n)}finally{la(!1)}}}else d=n;return l.memoizedState=l.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},l.queue=t,t=t.dispatch=gA.bind(null,Ae,t),[l.memoizedState,t]},useRef:function(t){var n=Ot();return t={current:t},n.memoizedState=t},useState:function(t){t=qd(t);var n=t.queue,i=kg.bind(null,Ae,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:Yd,useDeferredValue:function(t,n){var i=Ot();return Kd(i,t,n)},useTransition:function(){var t=qd(!1);return t=wg.bind(null,Ae,t.queue,!0,!1),Ot().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var l=Ae,d=Ot();if(Oe){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),Fe===null)throw Error(o(349));(Ee&124)!==0||Jp(l,n,i)}d.memoizedState=i;var f={value:i,getSnapshot:n};return d.queue=f,hg(Xp.bind(null,l,f,t),[t]),l.flags|=2048,$i(9,Ur(),Qp.bind(null,l,f,i,n),null),i},useId:function(){var t=Ot(),n=Fe.identifierPrefix;if(Oe){var i=Vn,l=Bn;i=(l&~(1<<32-It(l)-1)).toString(32)+i,n="«"+n+"R"+i,i=Or++,0<i&&(n+="H"+i.toString(32)),n+="»"}else i=dA++,n="«"+n+"r"+i.toString(32)+"»";return t.memoizedState=n},useHostTransitionStatus:Jd,useFormState:rg,useActionState:rg,useOptimistic:function(t){var n=Ot();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Qd.bind(null,Ae,!0,i),i.dispatch=n,[t,n]},useMemoCache:Bd,useCacheRefresh:function(){return Ot().memoizedState=pA.bind(null,Ae)}},Eg={readContext:At,use:Pr,useCallback:bg,useContext:At,useEffect:fg,useImperativeHandle:yg,useInsertionEffect:mg,useLayoutEffect:pg,useMemo:xg,useReducer:Gr,useRef:ug,useState:function(){return Gr(Wn)},useDebugValue:Yd,useDeferredValue:function(t,n){var i=tt();return vg(i,Le.memoizedState,t,n)},useTransition:function(){var t=Gr(Wn)[0],n=tt().memoizedState;return[typeof t=="boolean"?t:io(t),n]},useSyncExternalStore:$p,useId:jg,useHostTransitionStatus:Jd,useFormState:lg,useActionState:lg,useOptimistic:function(t,n){var i=tt();return tg(i,Le,t,n)},useMemoCache:Bd,useCacheRefresh:Ng},yA={readContext:At,use:Pr,useCallback:bg,useContext:At,useEffect:fg,useImperativeHandle:yg,useInsertionEffect:mg,useLayoutEffect:pg,useMemo:xg,useReducer:Fd,useRef:ug,useState:function(){return Fd(Wn)},useDebugValue:Yd,useDeferredValue:function(t,n){var i=tt();return Le===null?Kd(i,t,n):vg(i,Le.memoizedState,t,n)},useTransition:function(){var t=Fd(Wn)[0],n=tt().memoizedState;return[typeof t=="boolean"?t:io(t),n]},useSyncExternalStore:$p,useId:jg,useHostTransitionStatus:Jd,useFormState:dg,useActionState:dg,useOptimistic:function(t,n){var i=tt();return Le!==null?tg(i,Le,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Bd,useCacheRefresh:Ng},Ji=null,ro=0;function _r(t){var n=ro;return ro+=1,Ji===null&&(Ji=[]),_p(Ji,t,n)}function lo(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Br(t,n){throw n.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(n),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Dg(t){var n=t._init;return n(t._payload)}function Rg(t){function n(U,M){if(t){var L=U.deletions;L===null?(U.deletions=[M],U.flags|=16):L.push(M)}}function i(U,M){if(!t)return null;for(;M!==null;)n(U,M),M=M.sibling;return null}function l(U){for(var M=new Map;U!==null;)U.key!==null?M.set(U.key,U):M.set(U.index,U),U=U.sibling;return M}function d(U,M){return U=_n(U,M),U.index=0,U.sibling=null,U}function f(U,M,L){return U.index=L,t?(L=U.alternate,L!==null?(L=L.index,L<M?(U.flags|=67108866,M):L):(U.flags|=67108866,M)):(U.flags|=1048576,M)}function x(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function A(U,M,L,$){return M===null||M.tag!==6?(M=bd(L,U.mode,$),M.return=U,M):(M=d(M,L),M.return=U,M)}function z(U,M,L,$){var ce=L.type;return ce===j?K(U,M,L.props.children,$,L.key):M!==null&&(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===D&&Dg(ce)===M.type)?(M=d(M,L.props),lo(M,L),M.return=U,M):(M=jr(L.type,L.key,L.props,null,U.mode,$),lo(M,L),M.return=U,M)}function I(U,M,L,$){return M===null||M.tag!==4||M.stateNode.containerInfo!==L.containerInfo||M.stateNode.implementation!==L.implementation?(M=xd(L,U.mode,$),M.return=U,M):(M=d(M,L.children||[]),M.return=U,M)}function K(U,M,L,$,ce){return M===null||M.tag!==7?(M=Ja(L,U.mode,$,ce),M.return=U,M):(M=d(M,L),M.return=U,M)}function Q(U,M,L){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=bd(""+M,U.mode,L),M.return=U,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case v:return L=jr(M.type,M.key,M.props,null,U.mode,L),lo(L,M),L.return=U,L;case S:return M=xd(M,U.mode,L),M.return=U,M;case D:var $=M._init;return M=$(M._payload),Q(U,M,L)}if(ue(M)||Z(M))return M=Ja(M,U.mode,L,null),M.return=U,M;if(typeof M.then=="function")return Q(U,_r(M),L);if(M.$$typeof===R)return Q(U,Tr(U,M),L);Br(U,M)}return null}function V(U,M,L,$){var ce=M!==null?M.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ce!==null?null:A(U,M,""+L,$);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case v:return L.key===ce?z(U,M,L,$):null;case S:return L.key===ce?I(U,M,L,$):null;case D:return ce=L._init,L=ce(L._payload),V(U,M,L,$)}if(ue(L)||Z(L))return ce!==null?null:K(U,M,L,$,null);if(typeof L.then=="function")return V(U,M,_r(L),$);if(L.$$typeof===R)return V(U,M,Tr(U,L),$);Br(U,L)}return null}function q(U,M,L,$,ce){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return U=U.get(L)||null,A(M,U,""+$,ce);if(typeof $=="object"&&$!==null){switch($.$$typeof){case v:return U=U.get($.key===null?L:$.key)||null,z(M,U,$,ce);case S:return U=U.get($.key===null?L:$.key)||null,I(M,U,$,ce);case D:var Ne=$._init;return $=Ne($._payload),q(U,M,L,$,ce)}if(ue($)||Z($))return U=U.get(L)||null,K(M,U,$,ce,null);if(typeof $.then=="function")return q(U,M,L,_r($),ce);if($.$$typeof===R)return q(U,M,L,Tr(M,$),ce);Br(M,$)}return null}function ve(U,M,L,$){for(var ce=null,Ne=null,ge=M,xe=M=0,ht=null;ge!==null&&xe<L.length;xe++){ge.index>xe?(ht=ge,ge=null):ht=ge.sibling;var Re=V(U,ge,L[xe],$);if(Re===null){ge===null&&(ge=ht);break}t&&ge&&Re.alternate===null&&n(U,ge),M=f(Re,M,xe),Ne===null?ce=Re:Ne.sibling=Re,Ne=Re,ge=ht}if(xe===L.length)return i(U,ge),Oe&&Xa(U,xe),ce;if(ge===null){for(;xe<L.length;xe++)ge=Q(U,L[xe],$),ge!==null&&(M=f(ge,M,xe),Ne===null?ce=ge:Ne.sibling=ge,Ne=ge);return Oe&&Xa(U,xe),ce}for(ge=l(ge);xe<L.length;xe++)ht=q(ge,U,xe,L[xe],$),ht!==null&&(t&&ht.alternate!==null&&ge.delete(ht.key===null?xe:ht.key),M=f(ht,M,xe),Ne===null?ce=ht:Ne.sibling=ht,Ne=ht);return t&&ge.forEach(function(Da){return n(U,Da)}),Oe&&Xa(U,xe),ce}function be(U,M,L,$){if(L==null)throw Error(o(151));for(var ce=null,Ne=null,ge=M,xe=M=0,ht=null,Re=L.next();ge!==null&&!Re.done;xe++,Re=L.next()){ge.index>xe?(ht=ge,ge=null):ht=ge.sibling;var Da=V(U,ge,Re.value,$);if(Da===null){ge===null&&(ge=ht);break}t&&ge&&Da.alternate===null&&n(U,ge),M=f(Da,M,xe),Ne===null?ce=Da:Ne.sibling=Da,Ne=Da,ge=ht}if(Re.done)return i(U,ge),Oe&&Xa(U,xe),ce;if(ge===null){for(;!Re.done;xe++,Re=L.next())Re=Q(U,Re.value,$),Re!==null&&(M=f(Re,M,xe),Ne===null?ce=Re:Ne.sibling=Re,Ne=Re);return Oe&&Xa(U,xe),ce}for(ge=l(ge);!Re.done;xe++,Re=L.next())Re=q(ge,U,xe,Re.value,$),Re!==null&&(t&&Re.alternate!==null&&ge.delete(Re.key===null?xe:Re.key),M=f(Re,M,xe),Ne===null?ce=Re:Ne.sibling=Re,Ne=Re);return t&&ge.forEach(function(bj){return n(U,bj)}),Oe&&Xa(U,xe),ce}function Ie(U,M,L,$){if(typeof L=="object"&&L!==null&&L.type===j&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case v:e:{for(var ce=L.key;M!==null;){if(M.key===ce){if(ce=L.type,ce===j){if(M.tag===7){i(U,M.sibling),$=d(M,L.props.children),$.return=U,U=$;break e}}else if(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===D&&Dg(ce)===M.type){i(U,M.sibling),$=d(M,L.props),lo($,L),$.return=U,U=$;break e}i(U,M);break}else n(U,M);M=M.sibling}L.type===j?($=Ja(L.props.children,U.mode,$,L.key),$.return=U,U=$):($=jr(L.type,L.key,L.props,null,U.mode,$),lo($,L),$.return=U,U=$)}return x(U);case S:e:{for(ce=L.key;M!==null;){if(M.key===ce)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){i(U,M.sibling),$=d(M,L.children||[]),$.return=U,U=$;break e}else{i(U,M);break}else n(U,M);M=M.sibling}$=xd(L,U.mode,$),$.return=U,U=$}return x(U);case D:return ce=L._init,L=ce(L._payload),Ie(U,M,L,$)}if(ue(L))return ve(U,M,L,$);if(Z(L)){if(ce=Z(L),typeof ce!="function")throw Error(o(150));return L=ce.call(L),be(U,M,L,$)}if(typeof L.then=="function")return Ie(U,M,_r(L),$);if(L.$$typeof===R)return Ie(U,M,Tr(U,L),$);Br(U,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(i(U,M.sibling),$=d(M,L),$.return=U,U=$):(i(U,M),$=bd(L,U.mode,$),$.return=U,U=$),x(U)):i(U,M)}return function(U,M,L,$){try{ro=0;var ce=Ie(U,M,L,$);return Ji=null,ce}catch(ge){if(ge===Xs||ge===Er)throw ge;var Ne=Bt(29,ge,null,U.mode);return Ne.lanes=$,Ne.return=U,Ne}}}var Qi=Rg(!0),Mg=Rg(!1),ln=Y(null),jn=null;function ga(t){var n=t.alternate;te(it,it.current&1),te(ln,t),jn===null&&(n===null||Wi.current!==null||n.memoizedState!==null)&&(jn=t)}function Og(t){if(t.tag===22){if(te(it,it.current),te(ln,t),jn===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(jn=t)}}else ya()}function ya(){te(it,it.current),te(ln,ln.current)}function Yn(t){ee(ln),jn===t&&(jn=null),ee(it)}var it=Y(0);function Vr(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||_u(i)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Xd(t,n,i,l){n=t.memoizedState,i=i(l,n),i=i==null?n:y({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Zd={enqueueSetState:function(t,n,i){t=t._reactInternals;var l=Wt(),d=fa(l);d.payload=n,i!=null&&(d.callback=i),n=ma(t,d,l),n!==null&&(Yt(n,t,l),eo(n,t,l))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var l=Wt(),d=fa(l);d.tag=1,d.payload=n,i!=null&&(d.callback=i),n=ma(t,d,l),n!==null&&(Yt(n,t,l),eo(n,t,l))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=Wt(),l=fa(i);l.tag=2,n!=null&&(l.callback=n),n=ma(t,l,i),n!==null&&(Yt(n,t,i),eo(n,t,i))}};function Pg(t,n,i,l,d,f,x){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,f,x):n.prototype&&n.prototype.isPureReactComponent?!Fs(i,l)||!Fs(d,f):!0}function Gg(t,n,i,l){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,l),n.state!==t&&Zd.enqueueReplaceState(n,n.state,null)}function si(t,n){var i=n;if("ref"in n){i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}if(t=t.defaultProps){i===n&&(i=y({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}var Fr=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Ug(t){Fr(t)}function Lg(t){console.error(t)}function Hg(t){Fr(t)}function qr(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function Ig(t,n,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function eu(t,n,i){return i=fa(i),i.tag=3,i.payload={element:null},i.callback=function(){qr(t,n)},i}function _g(t){return t=fa(t),t.tag=3,t}function Bg(t,n,i,l){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var f=l.value;t.payload=function(){return d(f)},t.callback=function(){Ig(n,i,l)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(t.callback=function(){Ig(n,i,l),typeof d!="function"&&(Aa===null?Aa=new Set([this]):Aa.add(this));var A=l.stack;this.componentDidCatch(l.value,{componentStack:A!==null?A:""})})}function bA(t,n,i,l,d){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=i.alternate,n!==null&&$s(n,i,d,!0),i=ln.current,i!==null){switch(i.tag){case 13:return jn===null?ju():i.alternate===null&&$e===0&&($e=3),i.flags&=-257,i.flags|=65536,i.lanes=d,l===zd?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([l]):n.add(l),ku(t,l,d)),!1;case 22:return i.flags|=65536,l===zd?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([l]):i.add(l)),ku(t,l,d)),!1}throw Error(o(435,i.tag))}return ku(t,l,d),ju(),!1}if(Oe)return n=ln.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,l!==Sd&&(t=Error(o(422),{cause:l}),Ks(an(t,i)))):(l!==Sd&&(n=Error(o(423),{cause:l}),Ks(an(n,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,l=an(l,i),d=eu(t.stateNode,l,d),Rd(t,d),$e!==4&&($e=2)),!1;var f=Error(o(520),{cause:l});if(f=an(f,i),go===null?go=[f]:go.push(f),$e!==4&&($e=2),n===null)return!0;l=an(l,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=eu(i.stateNode,l,t),Rd(i,t),!1;case 1:if(n=i.type,f=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Aa===null||!Aa.has(f))))return i.flags|=65536,d&=-d,i.lanes|=d,d=_g(d),Bg(d,t,i,l),Rd(i,d),!1}i=i.return}while(i!==null);return!1}var Vg=Error(o(461)),dt=!1;function ft(t,n,i,l){n.child=t===null?Mg(n,null,i,l):Qi(n,t.child,i,l)}function Fg(t,n,i,l,d){i=i.render;var f=n.ref;if("ref"in l){var x={};for(var A in l)A!=="ref"&&(x[A]=l[A])}else x=l;return ni(n),l=Ud(t,n,i,x,f,d),A=Ld(),t!==null&&!dt?(Hd(t,n,d),Kn(t,n,d)):(Oe&&A&&vd(n),n.flags|=1,ft(t,n,l,d),n.child)}function qg(t,n,i,l,d){if(t===null){var f=i.type;return typeof f=="function"&&!yd(f)&&f.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=f,Wg(t,n,f,l,d)):(t=jr(i.type,null,l,n,n.mode,d),t.ref=n.ref,t.return=n,n.child=t)}if(f=t.child,!lu(t,d)){var x=f.memoizedProps;if(i=i.compare,i=i!==null?i:Fs,i(x,l)&&t.ref===n.ref)return Kn(t,n,d)}return n.flags|=1,t=_n(f,l),t.ref=n.ref,t.return=n,n.child=t}function Wg(t,n,i,l,d){if(t!==null){var f=t.memoizedProps;if(Fs(f,l)&&t.ref===n.ref)if(dt=!1,n.pendingProps=l=f,lu(t,d))(t.flags&131072)!==0&&(dt=!0);else return n.lanes=t.lanes,Kn(t,n,d)}return tu(t,n,i,l,d)}function Yg(t,n,i){var l=n.pendingProps,d=l.children,f=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=f!==null?f.baseLanes|i:i,t!==null){for(d=n.child=t.child,f=0;d!==null;)f=f|d.lanes|d.childLanes,d=d.sibling;n.childLanes=f&~l}else n.childLanes=0,n.child=null;return Kg(t,n,l,i)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&zr(n,f!==null?f.cachePool:null),f!==null?Wp(n,f):Od(),Og(n);else return n.lanes=n.childLanes=536870912,Kg(t,n,f!==null?f.baseLanes|i:i,i)}else f!==null?(zr(n,f.cachePool),Wp(n,f),ya(),n.memoizedState=null):(t!==null&&zr(n,null),Od(),ya());return ft(t,n,d,i),n.child}function Kg(t,n,i,l){var d=Td();return d=d===null?null:{parent:at._currentValue,pool:d},n.memoizedState={baseLanes:i,cachePool:d},t!==null&&zr(n,null),Od(),Og(n),t!==null&&$s(t,n,l,!0),null}function Wr(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(n.flags|=4194816)}}function tu(t,n,i,l,d){return ni(n),i=Ud(t,n,i,l,void 0,d),l=Ld(),t!==null&&!dt?(Hd(t,n,d),Kn(t,n,d)):(Oe&&l&&vd(n),n.flags|=1,ft(t,n,i,d),n.child)}function $g(t,n,i,l,d,f){return ni(n),n.updateQueue=null,i=Kp(n,l,i,d),Yp(t),l=Ld(),t!==null&&!dt?(Hd(t,n,f),Kn(t,n,f)):(Oe&&l&&vd(n),n.flags|=1,ft(t,n,i,f),n.child)}function Jg(t,n,i,l,d){if(ni(n),n.stateNode===null){var f=_i,x=i.contextType;typeof x=="object"&&x!==null&&(f=At(x)),f=new i(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Zd,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},Ed(n),x=i.contextType,f.context=typeof x=="object"&&x!==null?At(x):_i,f.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(Xd(n,i,x,l),f.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(x=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),x!==f.state&&Zd.enqueueReplaceState(f,f.state,null),no(n,l,f,d),to(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(t===null){f=n.stateNode;var A=n.memoizedProps,z=si(i,A);f.props=z;var I=f.context,K=i.contextType;x=_i,typeof K=="object"&&K!==null&&(x=At(K));var Q=i.getDerivedStateFromProps;K=typeof Q=="function"||typeof f.getSnapshotBeforeUpdate=="function",A=n.pendingProps!==A,K||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(A||I!==x)&&Gg(n,f,l,x),ha=!1;var V=n.memoizedState;f.state=V,no(n,l,f,d),to(),I=n.memoizedState,A||V!==I||ha?(typeof Q=="function"&&(Xd(n,i,Q,l),I=n.memoizedState),(z=ha||Pg(n,i,z,l,V,I,x))?(K||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=I),f.props=l,f.state=I,f.context=x,l=z):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{f=n.stateNode,Dd(t,n),x=n.memoizedProps,K=si(i,x),f.props=K,Q=n.pendingProps,V=f.context,I=i.contextType,z=_i,typeof I=="object"&&I!==null&&(z=At(I)),A=i.getDerivedStateFromProps,(I=typeof A=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x!==Q||V!==z)&&Gg(n,f,l,z),ha=!1,V=n.memoizedState,f.state=V,no(n,l,f,d),to();var q=n.memoizedState;x!==Q||V!==q||ha||t!==null&&t.dependencies!==null&&Cr(t.dependencies)?(typeof A=="function"&&(Xd(n,i,A,l),q=n.memoizedState),(K=ha||Pg(n,i,K,l,V,q,z)||t!==null&&t.dependencies!==null&&Cr(t.dependencies))?(I||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,q,z),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,q,z)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||x===t.memoizedProps&&V===t.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&V===t.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=q),f.props=l,f.state=q,f.context=z,l=K):(typeof f.componentDidUpdate!="function"||x===t.memoizedProps&&V===t.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&V===t.memoizedState||(n.flags|=1024),l=!1)}return f=l,Wr(t,n),l=(n.flags&128)!==0,f||l?(f=n.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,t!==null&&l?(n.child=Qi(n,t.child,null,d),n.child=Qi(n,null,i,d)):ft(t,n,i,d),n.memoizedState=f.state,t=n.child):t=Kn(t,n,d),t}function Qg(t,n,i,l){return Ys(),n.flags|=256,ft(t,n,i,l),n.child}var nu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function au(t){return{baseLanes:t,cachePool:Lp()}}function iu(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=cn),t}function Xg(t,n,i){var l=n.pendingProps,d=!1,f=(n.flags&128)!==0,x;if((x=f)||(x=t!==null&&t.memoizedState===null?!1:(it.current&2)!==0),x&&(d=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,t===null){if(Oe){if(d?ga(n):ya(),Oe){var A=Ke,z;if(z=A){e:{for(z=A,A=An;z.nodeType!==8;){if(!A){A=null;break e}if(z=gn(z.nextSibling),z===null){A=null;break e}}A=z}A!==null?(n.memoizedState={dehydrated:A,treeContext:Qa!==null?{id:Bn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},z=Bt(18,null,null,0),z.stateNode=A,z.return=n,n.child=z,Nt=n,Ke=null,z=!0):z=!1}z||ei(n)}if(A=n.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return _u(A)?n.lanes=32:n.lanes=536870912,null;Yn(n)}return A=l.children,l=l.fallback,d?(ya(),d=n.mode,A=Yr({mode:"hidden",children:A},d),l=Ja(l,d,i,null),A.return=n,l.return=n,A.sibling=l,n.child=A,d=n.child,d.memoizedState=au(i),d.childLanes=iu(t,x,i),n.memoizedState=nu,l):(ga(n),su(n,A))}if(z=t.memoizedState,z!==null&&(A=z.dehydrated,A!==null)){if(f)n.flags&256?(ga(n),n.flags&=-257,n=ou(t,n,i)):n.memoizedState!==null?(ya(),n.child=t.child,n.flags|=128,n=null):(ya(),d=l.fallback,A=n.mode,l=Yr({mode:"visible",children:l.children},A),d=Ja(d,A,i,null),d.flags|=2,l.return=n,d.return=n,l.sibling=d,n.child=l,Qi(n,t.child,null,i),l=n.child,l.memoizedState=au(i),l.childLanes=iu(t,x,i),n.memoizedState=nu,n=d);else if(ga(n),_u(A)){if(x=A.nextSibling&&A.nextSibling.dataset,x)var I=x.dgst;x=I,l=Error(o(419)),l.stack="",l.digest=x,Ks({value:l,source:null,stack:null}),n=ou(t,n,i)}else if(dt||$s(t,n,i,!1),x=(i&t.childLanes)!==0,dt||x){if(x=Fe,x!==null&&(l=i&-i,l=(l&42)!==0?1:Bc(l),l=(l&(x.suspendedLanes|i))!==0?0:l,l!==0&&l!==z.retryLane))throw z.retryLane=l,Ii(t,l),Yt(x,t,l),Vg;A.data==="$?"||ju(),n=ou(t,n,i)}else A.data==="$?"?(n.flags|=192,n.child=t.child,n=null):(t=z.treeContext,Ke=gn(A.nextSibling),Nt=n,Oe=!0,Za=null,An=!1,t!==null&&(on[rn++]=Bn,on[rn++]=Vn,on[rn++]=Qa,Bn=t.id,Vn=t.overflow,Qa=n),n=su(n,l.children),n.flags|=4096);return n}return d?(ya(),d=l.fallback,A=n.mode,z=t.child,I=z.sibling,l=_n(z,{mode:"hidden",children:l.children}),l.subtreeFlags=z.subtreeFlags&65011712,I!==null?d=_n(I,d):(d=Ja(d,A,i,null),d.flags|=2),d.return=n,l.return=n,l.sibling=d,n.child=l,l=d,d=n.child,A=t.child.memoizedState,A===null?A=au(i):(z=A.cachePool,z!==null?(I=at._currentValue,z=z.parent!==I?{parent:I,pool:I}:z):z=Lp(),A={baseLanes:A.baseLanes|i,cachePool:z}),d.memoizedState=A,d.childLanes=iu(t,x,i),n.memoizedState=nu,l):(ga(n),i=t.child,t=i.sibling,i=_n(i,{mode:"visible",children:l.children}),i.return=n,i.sibling=null,t!==null&&(x=n.deletions,x===null?(n.deletions=[t],n.flags|=16):x.push(t)),n.child=i,n.memoizedState=null,i)}function su(t,n){return n=Yr({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Yr(t,n){return t=Bt(22,t,null,n),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function ou(t,n,i){return Qi(n,t.child,null,i),t=su(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function Zg(t,n,i){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n),jd(t.return,n,i)}function ru(t,n,i,l,d){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:d}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=i,f.tailMode=d)}function ey(t,n,i){var l=n.pendingProps,d=l.revealOrder,f=l.tail;if(ft(t,n,l.children,i),l=it.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Zg(t,i,n);else if(t.tag===19)Zg(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(te(it,l),d){case"forwards":for(i=n.child,d=null;i!==null;)t=i.alternate,t!==null&&Vr(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=n.child,n.child=null):(d=i.sibling,i.sibling=null),ru(n,!1,d,i,f);break;case"backwards":for(i=null,d=n.child,n.child=null;d!==null;){if(t=d.alternate,t!==null&&Vr(t)===null){n.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}ru(n,!0,i,null,f);break;case"together":ru(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Kn(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),Sa|=n.lanes,(i&n.childLanes)===0)if(t!==null){if($s(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(o(153));if(n.child!==null){for(t=n.child,i=_n(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=_n(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function lu(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Cr(t)))}function xA(t,n,i){switch(n.tag){case 3:ke(n,n.stateNode.containerInfo),ua(n,at,t.memoizedState.cache),Ys();break;case 27:case 5:Dt(n);break;case 4:ke(n,n.stateNode.containerInfo);break;case 10:ua(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(ga(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Xg(t,n,i):(ga(n),t=Kn(t,n,i),t!==null?t.sibling:null);ga(n);break;case 19:var d=(t.flags&128)!==0;if(l=(i&n.childLanes)!==0,l||($s(t,n,i,!1),l=(i&n.childLanes)!==0),d){if(l)return ey(t,n,i);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),te(it,it.current),l)break;return null;case 22:case 23:return n.lanes=0,Yg(t,n,i);case 24:ua(n,at,t.memoizedState.cache)}return Kn(t,n,i)}function ty(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)dt=!0;else{if(!lu(t,i)&&(n.flags&128)===0)return dt=!1,xA(t,n,i);dt=(t.flags&131072)!==0}else dt=!1,Oe&&(n.flags&1048576)!==0&&Dp(n,kr,n.index);switch(n.lanes=0,n.tag){case 16:e:{t=n.pendingProps;var l=n.elementType,d=l._init;if(l=d(l._payload),n.type=l,typeof l=="function")yd(l)?(t=si(l,t),n.tag=1,n=Jg(null,n,l,t,i)):(n.tag=0,n=tu(null,n,l,t,i));else{if(l!=null){if(d=l.$$typeof,d===O){n.tag=11,n=Fg(null,n,l,t,i);break e}else if(d===H){n.tag=14,n=qg(null,n,l,t,i);break e}}throw n=ne(l)||l,Error(o(306,n,""))}}return n;case 0:return tu(t,n,n.type,n.pendingProps,i);case 1:return l=n.type,d=si(l,n.pendingProps),Jg(t,n,l,d,i);case 3:e:{if(ke(n,n.stateNode.containerInfo),t===null)throw Error(o(387));l=n.pendingProps;var f=n.memoizedState;d=f.element,Dd(t,n),no(n,l,null,i);var x=n.memoizedState;if(l=x.cache,ua(n,at,l),l!==f.cache&&Nd(n,[at],i,!0),to(),l=x.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=Qg(t,n,l,i);break e}else if(l!==d){d=an(Error(o(424)),n),Ks(d),n=Qg(t,n,l,i);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ke=gn(t.firstChild),Nt=n,Oe=!0,Za=null,An=!0,i=Mg(n,null,l,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ys(),l===d){n=Kn(t,n,i);break e}ft(t,n,l,i)}n=n.child}return n;case 26:return Wr(t,n),t===null?(i=sb(n.type,null,n.pendingProps,null))?n.memoizedState=i:Oe||(i=n.type,t=n.pendingProps,l=rl(se.current).createElement(i),l[St]=n,l[Rt]=t,pt(l,i,t),ct(l),n.stateNode=l):n.memoizedState=sb(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Dt(n),t===null&&Oe&&(l=n.stateNode=nb(n.type,n.pendingProps,se.current),Nt=n,An=!0,d=Ke,ka(n.type)?(Bu=d,Ke=gn(l.firstChild)):Ke=d),ft(t,n,n.pendingProps.children,i),Wr(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Oe&&((d=l=Ke)&&(l=YA(l,n.type,n.pendingProps,An),l!==null?(n.stateNode=l,Nt=n,Ke=gn(l.firstChild),An=!1,d=!0):d=!1),d||ei(n)),Dt(n),d=n.type,f=n.pendingProps,x=t!==null?t.memoizedProps:null,l=f.children,Lu(d,f)?l=null:x!==null&&Lu(d,x)&&(n.flags|=32),n.memoizedState!==null&&(d=Ud(t,n,uA,null,null,i),No._currentValue=d),Wr(t,n),ft(t,n,l,i),n.child;case 6:return t===null&&Oe&&((t=i=Ke)&&(i=KA(i,n.pendingProps,An),i!==null?(n.stateNode=i,Nt=n,Ke=null,t=!0):t=!1),t||ei(n)),null;case 13:return Xg(t,n,i);case 4:return ke(n,n.stateNode.containerInfo),l=n.pendingProps,t===null?n.child=Qi(n,null,l,i):ft(t,n,l,i),n.child;case 11:return Fg(t,n,n.type,n.pendingProps,i);case 7:return ft(t,n,n.pendingProps,i),n.child;case 8:return ft(t,n,n.pendingProps.children,i),n.child;case 12:return ft(t,n,n.pendingProps.children,i),n.child;case 10:return l=n.pendingProps,ua(n,n.type,l.value),ft(t,n,l.children,i),n.child;case 9:return d=n.type._context,l=n.pendingProps.children,ni(n),d=At(d),l=l(d),n.flags|=1,ft(t,n,l,i),n.child;case 14:return qg(t,n,n.type,n.pendingProps,i);case 15:return Wg(t,n,n.type,n.pendingProps,i);case 19:return ey(t,n,i);case 31:return l=n.pendingProps,i=n.mode,l={mode:l.mode,children:l.children},t===null?(i=Yr(l,i),i.ref=n.ref,n.child=i,i.return=n,n=i):(i=_n(t.child,l),i.ref=n.ref,n.child=i,i.return=n,n=i),n;case 22:return Yg(t,n,i);case 24:return ni(n),l=At(at),t===null?(d=Td(),d===null&&(d=Fe,f=kd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=i),d=f),n.memoizedState={parent:l,cache:d},Ed(n),ua(n,at,d)):((t.lanes&i)!==0&&(Dd(t,n),no(n,null,null,i),to()),d=t.memoizedState,f=n.memoizedState,d.parent!==l?(d={parent:l,cache:l},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),ua(n,at,l)):(l=f.cache,ua(n,at,l),l!==d.cache&&Nd(n,[at],i,!0))),ft(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function $n(t){t.flags|=4}function ny(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!db(n)){if(n=ln.current,n!==null&&((Ee&4194048)===Ee?jn!==null:(Ee&62914560)!==Ee&&(Ee&536870912)===0||n!==jn))throw Zs=zd,Hp;t.flags|=8192}}function Kr(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Om():536870912,t.lanes|=n,ts|=n)}function co(t,n){if(!Oe)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ye(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(n)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=l,t.childLanes=i,n}function vA(t,n,i){var l=n.pendingProps;switch(wd(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(n),null;case 1:return Ye(n),null;case 3:return i=n.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),qn(at),ze(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Ws(n)?$n(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Op())),Ye(n),null;case 26:return i=n.memoizedState,t===null?($n(n),i!==null?(Ye(n),ny(n,i)):(Ye(n),n.flags&=-16777217)):i?i!==t.memoizedState?($n(n),Ye(n),ny(n,i)):(Ye(n),n.flags&=-16777217):(t.memoizedProps!==l&&$n(n),Ye(n),n.flags&=-16777217),null;case 27:Lt(n),i=se.current;var d=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==l&&$n(n);else{if(!l){if(n.stateNode===null)throw Error(o(166));return Ye(n),null}t=le.current,Ws(n)?Rp(n):(t=nb(d,l,i),n.stateNode=t,$n(n))}return Ye(n),null;case 5:if(Lt(n),i=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==l&&$n(n);else{if(!l){if(n.stateNode===null)throw Error(o(166));return Ye(n),null}if(t=le.current,Ws(n))Rp(n);else{switch(d=rl(se.current),t){case 1:t=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=d.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?d.createElement(i,{is:l.is}):d.createElement(i)}}t[St]=n,t[Rt]=l;e:for(d=n.child;d!==null;){if(d.tag===5||d.tag===6)t.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===n)break e;for(;d.sibling===null;){if(d.return===null||d.return===n)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}n.stateNode=t;e:switch(pt(t,i,l),i){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&$n(n)}}return Ye(n),n.flags&=-16777217,null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==l&&$n(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(o(166));if(t=se.current,Ws(n)){if(t=n.stateNode,i=n.memoizedProps,l=null,d=Nt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}t[St]=n,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||$y(t.nodeValue,i)),t||ei(n)}else t=rl(t).createTextNode(l),t[St]=n,n.stateNode=t}return Ye(n),null;case 13:if(l=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=Ws(n),l!==null&&l.dehydrated!==null){if(t===null){if(!d)throw Error(o(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[St]=n}else Ys(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ye(n),d=!1}else d=Op(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(Yn(n),n):(Yn(n),null)}if(Yn(n),(n.flags&128)!==0)return n.lanes=i,n;if(i=l!==null,t=t!==null&&t.memoizedState!==null,i){l=n.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==d&&(l.flags|=2048)}return i!==t&&i&&(n.child.flags|=8192),Kr(n,n.updateQueue),Ye(n),null;case 4:return ze(),t===null&&Mu(n.stateNode.containerInfo),Ye(n),null;case 10:return qn(n.type),Ye(n),null;case 19:if(ee(it),d=n.memoizedState,d===null)return Ye(n),null;if(l=(n.flags&128)!==0,f=d.rendering,f===null)if(l)co(d,!1);else{if($e!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(f=Vr(t),f!==null){for(n.flags|=128,co(d,!1),t=f.updateQueue,n.updateQueue=t,Kr(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)Ep(i,t),i=i.sibling;return te(it,it.current&1|2),n.child}t=t.sibling}d.tail!==null&&en()>Qr&&(n.flags|=128,l=!0,co(d,!1),n.lanes=4194304)}else{if(!l)if(t=Vr(f),t!==null){if(n.flags|=128,l=!0,t=t.updateQueue,n.updateQueue=t,Kr(n,t),co(d,!0),d.tail===null&&d.tailMode==="hidden"&&!f.alternate&&!Oe)return Ye(n),null}else 2*en()-d.renderingStartTime>Qr&&i!==536870912&&(n.flags|=128,l=!0,co(d,!1),n.lanes=4194304);d.isBackwards?(f.sibling=n.child,n.child=f):(t=d.last,t!==null?t.sibling=f:n.child=f,d.last=f)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=en(),n.sibling=null,t=it.current,te(it,l?t&1|2:t&1),n):(Ye(n),null);case 22:case 23:return Yn(n),Pd(),l=n.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(i&536870912)!==0&&(n.flags&128)===0&&(Ye(n),n.subtreeFlags&6&&(n.flags|=8192)):Ye(n),i=n.updateQueue,i!==null&&Kr(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==i&&(n.flags|=2048),t!==null&&ee(ai),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),qn(at),Ye(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function wA(t,n){switch(wd(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return qn(at),ze(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Lt(n),null;case 13:if(Yn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Ys()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return ee(it),null;case 4:return ze(),null;case 10:return qn(n.type),null;case 22:case 23:return Yn(n),Pd(),t!==null&&ee(ai),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return qn(at),null;case 25:return null;default:return null}}function ay(t,n){switch(wd(n),n.tag){case 3:qn(at),ze();break;case 26:case 27:case 5:Lt(n);break;case 4:ze();break;case 13:Yn(n);break;case 19:ee(it);break;case 10:qn(n.type);break;case 22:case 23:Yn(n),Pd(),t!==null&&ee(ai);break;case 24:qn(at)}}function uo(t,n){try{var i=n.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var d=l.next;i=d;do{if((i.tag&t)===t){l=void 0;var f=i.create,x=i.inst;l=f(),x.destroy=l}i=i.next}while(i!==d)}}catch(A){_e(n,n.return,A)}}function ba(t,n,i){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var f=d.next;l=f;do{if((l.tag&t)===t){var x=l.inst,A=x.destroy;if(A!==void 0){x.destroy=void 0,d=n;var z=i,I=A;try{I()}catch(K){_e(d,z,K)}}}l=l.next}while(l!==f)}}catch(K){_e(n,n.return,K)}}function iy(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{qp(n,i)}catch(l){_e(t,t.return,l)}}}function sy(t,n,i){i.props=si(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){_e(t,n,l)}}function ho(t,n){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(d){_e(t,n,d)}}function Nn(t,n){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(d){_e(t,n,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){_e(t,n,d)}else i.current=null}function oy(t){var n=t.type,i=t.memoizedProps,l=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(d){_e(t,t.return,d)}}function cu(t,n,i){try{var l=t.stateNode;BA(l,t.type,i,n),l[Rt]=n}catch(d){_e(t,t.return,d)}}function ry(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ka(t.type)||t.tag===4}function du(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ry(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ka(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function uu(t,n,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=ol));else if(l!==4&&(l===27&&ka(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(uu(t,n,i),t=t.sibling;t!==null;)uu(t,n,i),t=t.sibling}function $r(t,n,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(l!==4&&(l===27&&ka(t.type)&&(i=t.stateNode),t=t.child,t!==null))for($r(t,n,i),t=t.sibling;t!==null;)$r(t,n,i),t=t.sibling}function ly(t){var n=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);pt(n,l,i),n[St]=t,n[Rt]=i}catch(f){_e(t,t.return,f)}}var Jn=!1,Xe=!1,hu=!1,cy=typeof WeakSet=="function"?WeakSet:Set,ut=null;function SA(t,n){if(t=t.containerInfo,Gu=fl,t=vp(t),dd(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var d=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var x=0,A=-1,z=-1,I=0,K=0,Q=t,V=null;t:for(;;){for(var q;Q!==i||d!==0&&Q.nodeType!==3||(A=x+d),Q!==f||l!==0&&Q.nodeType!==3||(z=x+l),Q.nodeType===3&&(x+=Q.nodeValue.length),(q=Q.firstChild)!==null;)V=Q,Q=q;for(;;){if(Q===t)break t;if(V===i&&++I===d&&(A=x),V===f&&++K===l&&(z=x),(q=Q.nextSibling)!==null)break;Q=V,V=Q.parentNode}Q=q}i=A===-1||z===-1?null:{start:A,end:z}}else i=null}i=i||{start:0,end:0}}else i=null;for(Uu={focusedElem:t,selectionRange:i},fl=!1,ut=n;ut!==null;)if(n=ut,t=n.child,(n.subtreeFlags&1024)!==0&&t!==null)t.return=n,ut=t;else for(;ut!==null;){switch(n=ut,f=n.alternate,t=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,i=n,d=f.memoizedProps,f=f.memoizedState,l=i.stateNode;try{var ve=si(i.type,d,i.elementType===i.type);t=l.getSnapshotBeforeUpdate(ve,f),l.__reactInternalSnapshotBeforeUpdate=t}catch(be){_e(i,i.return,be)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)Iu(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Iu(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=n.sibling,t!==null){t.return=n.return,ut=t;break}ut=n.return}}function dy(t,n,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:xa(t,i),l&4&&uo(5,i);break;case 1:if(xa(t,i),l&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(x){_e(i,i.return,x)}else{var d=si(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(d,n,t.__reactInternalSnapshotBeforeUpdate)}catch(x){_e(i,i.return,x)}}l&64&&iy(i),l&512&&ho(i,i.return);break;case 3:if(xa(t,i),l&64&&(t=i.updateQueue,t!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{qp(t,n)}catch(x){_e(i,i.return,x)}}break;case 27:n===null&&l&4&&ly(i);case 26:case 5:xa(t,i),n===null&&l&4&&oy(i),l&512&&ho(i,i.return);break;case 12:xa(t,i);break;case 13:xa(t,i),l&4&&fy(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=DA.bind(null,i),$A(t,i))));break;case 22:if(l=i.memoizedState!==null||Jn,!l){n=n!==null&&n.memoizedState!==null||Xe,d=Jn;var f=Xe;Jn=l,(Xe=n)&&!f?va(t,i,(i.subtreeFlags&8772)!==0):xa(t,i),Jn=d,Xe=f}break;case 30:break;default:xa(t,i)}}function uy(t){var n=t.alternate;n!==null&&(t.alternate=null,uy(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&qc(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var qe=null,Pt=!1;function Qn(t,n,i){for(i=i.child;i!==null;)hy(t,n,i),i=i.sibling}function hy(t,n,i){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Rs,i)}catch{}switch(i.tag){case 26:Xe||Nn(i,n),Qn(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Xe||Nn(i,n);var l=qe,d=Pt;ka(i.type)&&(qe=i.stateNode,Pt=!1),Qn(t,n,i),wo(i.stateNode),qe=l,Pt=d;break;case 5:Xe||Nn(i,n);case 6:if(l=qe,d=Pt,qe=null,Qn(t,n,i),qe=l,Pt=d,qe!==null)if(Pt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(i.stateNode)}catch(f){_e(i,n,f)}else try{qe.removeChild(i.stateNode)}catch(f){_e(i,n,f)}break;case 18:qe!==null&&(Pt?(t=qe,eb(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),zo(t)):eb(qe,i.stateNode));break;case 4:l=qe,d=Pt,qe=i.stateNode.containerInfo,Pt=!0,Qn(t,n,i),qe=l,Pt=d;break;case 0:case 11:case 14:case 15:Xe||ba(2,i,n),Xe||ba(4,i,n),Qn(t,n,i);break;case 1:Xe||(Nn(i,n),l=i.stateNode,typeof l.componentWillUnmount=="function"&&sy(i,n,l)),Qn(t,n,i);break;case 21:Qn(t,n,i);break;case 22:Xe=(l=Xe)||i.memoizedState!==null,Qn(t,n,i),Xe=l;break;default:Qn(t,n,i)}}function fy(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{zo(t)}catch(i){_e(n,n.return,i)}}function AA(t){switch(t.tag){case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new cy),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new cy),n;default:throw Error(o(435,t.tag))}}function fu(t,n){var i=AA(t);n.forEach(function(l){var d=RA.bind(null,t,l);i.has(l)||(i.add(l),l.then(d,d))})}function Vt(t,n){var i=n.deletions;if(i!==null)for(var l=0;l<i.length;l++){var d=i[l],f=t,x=n,A=x;e:for(;A!==null;){switch(A.tag){case 27:if(ka(A.type)){qe=A.stateNode,Pt=!1;break e}break;case 5:qe=A.stateNode,Pt=!1;break e;case 3:case 4:qe=A.stateNode.containerInfo,Pt=!0;break e}A=A.return}if(qe===null)throw Error(o(160));hy(f,x,d),qe=null,Pt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)my(n,t),n=n.sibling}var pn=null;function my(t,n){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Vt(n,t),Ft(t),l&4&&(ba(3,t,t.return),uo(3,t),ba(5,t,t.return));break;case 1:Vt(n,t),Ft(t),l&512&&(Xe||i===null||Nn(i,i.return)),l&64&&Jn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var d=pn;if(Vt(n,t),Ft(t),l&512&&(Xe||i===null||Nn(i,i.return)),l&4){var f=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){e:{l=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Ps]||f[St]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(l),d.head.insertBefore(f,d.querySelector("head > title"))),pt(f,l,i),f[St]=t,ct(f),l=f;break e;case"link":var x=lb("link","href",d).get(l+(i.href||""));if(x){for(var A=0;A<x.length;A++)if(f=x[A],f.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&f.getAttribute("rel")===(i.rel==null?null:i.rel)&&f.getAttribute("title")===(i.title==null?null:i.title)&&f.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(A,1);break t}}f=d.createElement(l),pt(f,l,i),d.head.appendChild(f);break;case"meta":if(x=lb("meta","content",d).get(l+(i.content||""))){for(A=0;A<x.length;A++)if(f=x[A],f.getAttribute("content")===(i.content==null?null:""+i.content)&&f.getAttribute("name")===(i.name==null?null:i.name)&&f.getAttribute("property")===(i.property==null?null:i.property)&&f.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&f.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(A,1);break t}}f=d.createElement(l),pt(f,l,i),d.head.appendChild(f);break;default:throw Error(o(468,l))}f[St]=t,ct(f),l=f}t.stateNode=l}else cb(d,t.type,t.stateNode);else t.stateNode=rb(d,l,t.memoizedProps);else f!==l?(f===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):f.count--,l===null?cb(d,t.type,t.stateNode):rb(d,l,t.memoizedProps)):l===null&&t.stateNode!==null&&cu(t,t.memoizedProps,i.memoizedProps)}break;case 27:Vt(n,t),Ft(t),l&512&&(Xe||i===null||Nn(i,i.return)),i!==null&&l&4&&cu(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Vt(n,t),Ft(t),l&512&&(Xe||i===null||Nn(i,i.return)),t.flags&32){d=t.stateNode;try{Mi(d,"")}catch(q){_e(t,t.return,q)}}l&4&&t.stateNode!=null&&(d=t.memoizedProps,cu(t,d,i!==null?i.memoizedProps:d)),l&1024&&(hu=!0);break;case 6:if(Vt(n,t),Ft(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(q){_e(t,t.return,q)}}break;case 3:if(dl=null,d=pn,pn=ll(n.containerInfo),Vt(n,t),pn=d,Ft(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{zo(n.containerInfo)}catch(q){_e(t,t.return,q)}hu&&(hu=!1,py(t));break;case 4:l=pn,pn=ll(t.stateNode.containerInfo),Vt(n,t),Ft(t),pn=l;break;case 12:Vt(n,t),Ft(t);break;case 13:Vt(n,t),Ft(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xu=en()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fu(t,l)));break;case 22:d=t.memoizedState!==null;var z=i!==null&&i.memoizedState!==null,I=Jn,K=Xe;if(Jn=I||d,Xe=K||z,Vt(n,t),Xe=K,Jn=I,Ft(t),l&8192)e:for(n=t.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(i===null||z||Jn||Xe||oi(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){z=i=n;try{if(f=z.stateNode,d)x=f.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{A=z.stateNode;var Q=z.memoizedProps.style,V=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;A.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(q){_e(z,z.return,q)}}}else if(n.tag===6){if(i===null){z=n;try{z.stateNode.nodeValue=d?"":z.memoizedProps}catch(q){_e(z,z.return,q)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,fu(t,i))));break;case 19:Vt(n,t),Ft(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fu(t,l)));break;case 30:break;case 21:break;default:Vt(n,t),Ft(t)}}function Ft(t){var n=t.flags;if(n&2){try{for(var i,l=t.return;l!==null;){if(ry(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var d=i.stateNode,f=du(t);$r(t,f,d);break;case 5:var x=i.stateNode;i.flags&32&&(Mi(x,""),i.flags&=-33);var A=du(t);$r(t,A,x);break;case 3:case 4:var z=i.stateNode.containerInfo,I=du(t);uu(t,I,z);break;default:throw Error(o(161))}}catch(K){_e(t,t.return,K)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function py(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;py(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function xa(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)dy(t,n.alternate,n),n=n.sibling}function oi(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:ba(4,n,n.return),oi(n);break;case 1:Nn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&sy(n,n.return,i),oi(n);break;case 27:wo(n.stateNode);case 26:case 5:Nn(n,n.return),oi(n);break;case 22:n.memoizedState===null&&oi(n);break;case 30:oi(n);break;default:oi(n)}t=t.sibling}}function va(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,d=t,f=n,x=f.flags;switch(f.tag){case 0:case 11:case 15:va(d,f,i),uo(4,f);break;case 1:if(va(d,f,i),l=f,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(I){_e(l,l.return,I)}if(l=f,d=l.updateQueue,d!==null){var A=l.stateNode;try{var z=d.shared.hiddenCallbacks;if(z!==null)for(d.shared.hiddenCallbacks=null,d=0;d<z.length;d++)Fp(z[d],A)}catch(I){_e(l,l.return,I)}}i&&x&64&&iy(f),ho(f,f.return);break;case 27:ly(f);case 26:case 5:va(d,f,i),i&&l===null&&x&4&&oy(f),ho(f,f.return);break;case 12:va(d,f,i);break;case 13:va(d,f,i),i&&x&4&&fy(d,f);break;case 22:f.memoizedState===null&&va(d,f,i),ho(f,f.return);break;case 30:break;default:va(d,f,i)}n=n.sibling}}function mu(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Js(i))}function pu(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Js(t))}function kn(t,n,i,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)gy(t,n,i,l),n=n.sibling}function gy(t,n,i,l){var d=n.flags;switch(n.tag){case 0:case 11:case 15:kn(t,n,i,l),d&2048&&uo(9,n);break;case 1:kn(t,n,i,l);break;case 3:kn(t,n,i,l),d&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Js(t)));break;case 12:if(d&2048){kn(t,n,i,l),t=n.stateNode;try{var f=n.memoizedProps,x=f.id,A=f.onPostCommit;typeof A=="function"&&A(x,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(z){_e(n,n.return,z)}}else kn(t,n,i,l);break;case 13:kn(t,n,i,l);break;case 23:break;case 22:f=n.stateNode,x=n.alternate,n.memoizedState!==null?f._visibility&2?kn(t,n,i,l):fo(t,n):f._visibility&2?kn(t,n,i,l):(f._visibility|=2,Xi(t,n,i,l,(n.subtreeFlags&10256)!==0)),d&2048&&mu(x,n);break;case 24:kn(t,n,i,l),d&2048&&pu(n.alternate,n);break;default:kn(t,n,i,l)}}function Xi(t,n,i,l,d){for(d=d&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var f=t,x=n,A=i,z=l,I=x.flags;switch(x.tag){case 0:case 11:case 15:Xi(f,x,A,z,d),uo(8,x);break;case 23:break;case 22:var K=x.stateNode;x.memoizedState!==null?K._visibility&2?Xi(f,x,A,z,d):fo(f,x):(K._visibility|=2,Xi(f,x,A,z,d)),d&&I&2048&&mu(x.alternate,x);break;case 24:Xi(f,x,A,z,d),d&&I&2048&&pu(x.alternate,x);break;default:Xi(f,x,A,z,d)}n=n.sibling}}function fo(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,l=n,d=l.flags;switch(l.tag){case 22:fo(i,l),d&2048&&mu(l.alternate,l);break;case 24:fo(i,l),d&2048&&pu(l.alternate,l);break;default:fo(i,l)}n=n.sibling}}var mo=8192;function Zi(t){if(t.subtreeFlags&mo)for(t=t.child;t!==null;)yy(t),t=t.sibling}function yy(t){switch(t.tag){case 26:Zi(t),t.flags&mo&&t.memoizedState!==null&&lj(pn,t.memoizedState,t.memoizedProps);break;case 5:Zi(t);break;case 3:case 4:var n=pn;pn=ll(t.stateNode.containerInfo),Zi(t),pn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=mo,mo=16777216,Zi(t),mo=n):Zi(t));break;default:Zi(t)}}function by(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function po(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];ut=l,vy(l,t)}by(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xy(t),t=t.sibling}function xy(t){switch(t.tag){case 0:case 11:case 15:po(t),t.flags&2048&&ba(9,t,t.return);break;case 3:po(t);break;case 12:po(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,Jr(t)):po(t);break;default:po(t)}}function Jr(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];ut=l,vy(l,t)}by(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:ba(8,n,n.return),Jr(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Jr(n));break;default:Jr(n)}t=t.sibling}}function vy(t,n){for(;ut!==null;){var i=ut;switch(i.tag){case 0:case 11:case 15:ba(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Js(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,ut=l;else e:for(i=t;ut!==null;){l=ut;var d=l.sibling,f=l.return;if(uy(l),l===i){ut=null;break e}if(d!==null){d.return=f,ut=d;break e}ut=f}}}var jA={getCacheForType:function(t){var n=At(at),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i}},NA=typeof WeakMap=="function"?WeakMap:Map,Ge=0,Fe=null,Ce=null,Ee=0,Ue=0,qt=null,wa=!1,es=!1,gu=!1,Xn=0,$e=0,Sa=0,ri=0,yu=0,cn=0,ts=0,go=null,Gt=null,bu=!1,xu=0,Qr=1/0,Xr=null,Aa=null,mt=0,ja=null,ns=null,as=0,vu=0,wu=null,wy=null,yo=0,Su=null;function Wt(){if((Ge&2)!==0&&Ee!==0)return Ee&-Ee;if(P.T!==null){var t=Fi;return t!==0?t:zu()}return Um()}function Sy(){cn===0&&(cn=(Ee&536870912)===0||Oe?Mm():536870912);var t=ln.current;return t!==null&&(t.flags|=32),cn}function Yt(t,n,i){(t===Fe&&(Ue===2||Ue===9)||t.cancelPendingCommit!==null)&&(is(t,0),Na(t,Ee,cn,!1)),Os(t,i),((Ge&2)===0||t!==Fe)&&(t===Fe&&((Ge&2)===0&&(ri|=i),$e===4&&Na(t,Ee,cn,!1)),Cn(t))}function Ay(t,n,i){if((Ge&6)!==0)throw Error(o(327));var l=!i&&(n&124)===0&&(n&t.expiredLanes)===0||Ms(t,n),d=l?TA(t,n):Nu(t,n,!0),f=l;do{if(d===0){es&&!l&&Na(t,n,0,!1);break}else{if(i=t.current.alternate,f&&!kA(i)){d=Nu(t,n,!1),f=!1;continue}if(d===2){if(f=n,t.errorRecoveryDisabledLanes&f)var x=0;else x=t.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var A=t;d=go;var z=A.current.memoizedState.isDehydrated;if(z&&(is(A,x).flags|=256),x=Nu(A,x,!1),x!==2){if(gu&&!z){A.errorRecoveryDisabledLanes|=f,ri|=f,d=4;break e}f=Gt,Gt=d,f!==null&&(Gt===null?Gt=f:Gt.push.apply(Gt,f))}d=x}if(f=!1,d!==2)continue}}if(d===1){is(t,0),Na(t,n,0,!0);break}e:{switch(l=t,f=d,f){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:Na(l,n,cn,!wa);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(d=xu+300-en(),10<d)){if(Na(l,n,cn,!wa),cr(l,0,!0)!==0)break e;l.timeoutHandle=Xy(jy.bind(null,l,i,Gt,Xr,bu,n,cn,ri,ts,wa,f,2,-0,0),d);break e}jy(l,i,Gt,Xr,bu,n,cn,ri,ts,wa,f,0,-0,0)}}break}while(!0);Cn(t)}function jy(t,n,i,l,d,f,x,A,z,I,K,Q,V,q){if(t.timeoutHandle=-1,Q=n.subtreeFlags,(Q&8192||(Q&16785408)===16785408)&&(jo={stylesheets:null,count:0,unsuspend:rj},yy(n),Q=cj(),Q!==null)){t.cancelPendingCommit=Q(Dy.bind(null,t,n,f,i,l,d,x,A,z,K,1,V,q)),Na(t,f,x,!I);return}Dy(t,n,f,i,l,d,x,A,z)}function kA(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var d=i[l],f=d.getSnapshot;d=d.value;try{if(!_t(f(),d))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Na(t,n,i,l){n&=~yu,n&=~ri,t.suspendedLanes|=n,t.pingedLanes&=~n,l&&(t.warmLanes|=n),l=t.expirationTimes;for(var d=n;0<d;){var f=31-It(d),x=1<<f;l[f]=-1,d&=~x}i!==0&&Pm(t,i,n)}function Zr(){return(Ge&6)===0?(bo(0),!1):!0}function Au(){if(Ce!==null){if(Ue===0)var t=Ce.return;else t=Ce,Fn=ti=null,Id(t),Ji=null,ro=0,t=Ce;for(;t!==null;)ay(t.alternate,t),t=t.return;Ce=null}}function is(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,FA(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Au(),Fe=t,Ce=i=_n(t.current,null),Ee=n,Ue=0,qt=null,wa=!1,es=Ms(t,n),gu=!1,ts=cn=yu=ri=Sa=$e=0,Gt=go=null,bu=!1,(n&8)!==0&&(n|=n&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=n;0<l;){var d=31-It(l),f=1<<d;n|=t[d],l&=~f}return Xn=n,wr(),i}function Ny(t,n){Ae=null,P.H=Ir,n===Xs||n===Er?(n=Bp(),Ue=3):n===Hp?(n=Bp(),Ue=4):Ue=n===Vg?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,qt=n,Ce===null&&($e=1,qr(t,an(n,t.current)))}function ky(){var t=P.H;return P.H=Ir,t===null?Ir:t}function Cy(){var t=P.A;return P.A=jA,t}function ju(){$e=4,wa||(Ee&4194048)!==Ee&&ln.current!==null||(es=!0),(Sa&134217727)===0&&(ri&134217727)===0||Fe===null||Na(Fe,Ee,cn,!1)}function Nu(t,n,i){var l=Ge;Ge|=2;var d=ky(),f=Cy();(Fe!==t||Ee!==n)&&(Xr=null,is(t,n)),n=!1;var x=$e;e:do try{if(Ue!==0&&Ce!==null){var A=Ce,z=qt;switch(Ue){case 8:Au(),x=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(n=!0);var I=Ue;if(Ue=0,qt=null,ss(t,A,z,I),i&&es){x=0;break e}break;default:I=Ue,Ue=0,qt=null,ss(t,A,z,I)}}CA(),x=$e;break}catch(K){Ny(t,K)}while(!0);return n&&t.shellSuspendCounter++,Fn=ti=null,Ge=l,P.H=d,P.A=f,Ce===null&&(Fe=null,Ee=0,wr()),x}function CA(){for(;Ce!==null;)Ty(Ce)}function TA(t,n){var i=Ge;Ge|=2;var l=ky(),d=Cy();Fe!==t||Ee!==n?(Xr=null,Qr=en()+500,is(t,n)):es=Ms(t,n);e:do try{if(Ue!==0&&Ce!==null){n=Ce;var f=qt;t:switch(Ue){case 1:Ue=0,qt=null,ss(t,n,f,1);break;case 2:case 9:if(Ip(f)){Ue=0,qt=null,zy(n);break}n=function(){Ue!==2&&Ue!==9||Fe!==t||(Ue=7),Cn(t)},f.then(n,n);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:Ip(f)?(Ue=0,qt=null,zy(n)):(Ue=0,qt=null,ss(t,n,f,7));break;case 5:var x=null;switch(Ce.tag){case 26:x=Ce.memoizedState;case 5:case 27:var A=Ce;if(!x||db(x)){Ue=0,qt=null;var z=A.sibling;if(z!==null)Ce=z;else{var I=A.return;I!==null?(Ce=I,el(I)):Ce=null}break t}}Ue=0,qt=null,ss(t,n,f,5);break;case 6:Ue=0,qt=null,ss(t,n,f,6);break;case 8:Au(),$e=6;break e;default:throw Error(o(462))}}zA();break}catch(K){Ny(t,K)}while(!0);return Fn=ti=null,P.H=l,P.A=d,Ge=i,Ce!==null?0:(Fe=null,Ee=0,wr(),$e)}function zA(){for(;Ce!==null&&!Lc();)Ty(Ce)}function Ty(t){var n=ty(t.alternate,t,Xn);t.memoizedProps=t.pendingProps,n===null?el(t):Ce=n}function zy(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=$g(i,n,n.pendingProps,n.type,void 0,Ee);break;case 11:n=$g(i,n,n.pendingProps,n.type.render,n.ref,Ee);break;case 5:Id(n);default:ay(i,n),n=Ce=Ep(n,Xn),n=ty(i,n,Xn)}t.memoizedProps=t.pendingProps,n===null?el(t):Ce=n}function ss(t,n,i,l){Fn=ti=null,Id(n),Ji=null,ro=0;var d=n.return;try{if(bA(t,d,n,i,Ee)){$e=1,qr(t,an(i,t.current)),Ce=null;return}}catch(f){if(d!==null)throw Ce=d,f;$e=1,qr(t,an(i,t.current)),Ce=null;return}n.flags&32768?(Oe||l===1?t=!0:es||(Ee&536870912)!==0?t=!1:(wa=t=!0,(l===2||l===9||l===3||l===6)&&(l=ln.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ey(n,t)):el(n)}function el(t){var n=t;do{if((n.flags&32768)!==0){Ey(n,wa);return}t=n.return;var i=vA(n.alternate,n,Xn);if(i!==null){Ce=i;return}if(n=n.sibling,n!==null){Ce=n;return}Ce=n=t}while(n!==null);$e===0&&($e=5)}function Ey(t,n){do{var i=wA(t.alternate,t);if(i!==null){i.flags&=32767,Ce=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){Ce=t;return}Ce=t=i}while(t!==null);$e=6,Ce=null}function Dy(t,n,i,l,d,f,x,A,z){t.cancelPendingCommit=null;do tl();while(mt!==0);if((Ge&6)!==0)throw Error(o(327));if(n!==null){if(n===t.current)throw Error(o(177));if(f=n.lanes|n.childLanes,f|=pd,rS(t,i,f,x,A,z),t===Fe&&(Ce=Fe=null,Ee=0),ns=n,ja=t,as=i,vu=f,wu=d,wy=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,MA(Me,function(){return Gy(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=P.T,P.T=null,d=B.p,B.p=2,x=Ge,Ge|=4;try{SA(t,n,i)}finally{Ge=x,B.p=d,P.T=l}}mt=1,Ry(),My(),Oy()}}function Ry(){if(mt===1){mt=0;var t=ja,n=ns,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=P.T,P.T=null;var l=B.p;B.p=2;var d=Ge;Ge|=4;try{my(n,t);var f=Uu,x=vp(t.containerInfo),A=f.focusedElem,z=f.selectionRange;if(x!==A&&A&&A.ownerDocument&&xp(A.ownerDocument.documentElement,A)){if(z!==null&&dd(A)){var I=z.start,K=z.end;if(K===void 0&&(K=I),"selectionStart"in A)A.selectionStart=I,A.selectionEnd=Math.min(K,A.value.length);else{var Q=A.ownerDocument||document,V=Q&&Q.defaultView||window;if(V.getSelection){var q=V.getSelection(),ve=A.textContent.length,be=Math.min(z.start,ve),Ie=z.end===void 0?be:Math.min(z.end,ve);!q.extend&&be>Ie&&(x=Ie,Ie=be,be=x);var U=bp(A,be),M=bp(A,Ie);if(U&&M&&(q.rangeCount!==1||q.anchorNode!==U.node||q.anchorOffset!==U.offset||q.focusNode!==M.node||q.focusOffset!==M.offset)){var L=Q.createRange();L.setStart(U.node,U.offset),q.removeAllRanges(),be>Ie?(q.addRange(L),q.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),q.addRange(L))}}}}for(Q=[],q=A;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<Q.length;A++){var $=Q[A];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}fl=!!Gu,Uu=Gu=null}finally{Ge=d,B.p=l,P.T=i}}t.current=n,mt=2}}function My(){if(mt===2){mt=0;var t=ja,n=ns,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=P.T,P.T=null;var l=B.p;B.p=2;var d=Ge;Ge|=4;try{dy(t,n.alternate,n)}finally{Ge=d,B.p=l,P.T=i}}mt=3}}function Oy(){if(mt===4||mt===3){mt=0,Hc();var t=ja,n=ns,i=as,l=wy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?mt=5:(mt=0,ns=ja=null,Py(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(Aa=null),Vc(i),n=n.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Rs,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=P.T,d=B.p,B.p=2,P.T=null;try{for(var f=t.onRecoverableError,x=0;x<l.length;x++){var A=l[x];f(A.value,{componentStack:A.stack})}}finally{P.T=n,B.p=d}}(as&3)!==0&&tl(),Cn(t),d=t.pendingLanes,(i&4194090)!==0&&(d&42)!==0?t===Su?yo++:(yo=0,Su=t):yo=0,bo(0)}}function Py(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Js(n)))}function tl(t){return Ry(),My(),Oy(),Gy()}function Gy(){if(mt!==5)return!1;var t=ja,n=vu;vu=0;var i=Vc(as),l=P.T,d=B.p;try{B.p=32>i?32:i,P.T=null,i=wu,wu=null;var f=ja,x=as;if(mt=0,ns=ja=null,as=0,(Ge&6)!==0)throw Error(o(331));var A=Ge;if(Ge|=4,xy(f.current),gy(f,f.current,x,i),Ge=A,bo(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Rs,f)}catch{}return!0}finally{B.p=d,P.T=l,Py(t,n)}}function Uy(t,n,i){n=an(i,n),n=eu(t.stateNode,n,2),t=ma(t,n,2),t!==null&&(Os(t,2),Cn(t))}function _e(t,n,i){if(t.tag===3)Uy(t,t,i);else for(;n!==null;){if(n.tag===3){Uy(n,t,i);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Aa===null||!Aa.has(l))){t=an(i,t),i=_g(2),l=ma(n,i,2),l!==null&&(Bg(i,l,n,t),Os(l,2),Cn(l));break}}n=n.return}}function ku(t,n,i){var l=t.pingCache;if(l===null){l=t.pingCache=new NA;var d=new Set;l.set(n,d)}else d=l.get(n),d===void 0&&(d=new Set,l.set(n,d));d.has(i)||(gu=!0,d.add(i),t=EA.bind(null,t,n,i),n.then(t,t))}function EA(t,n,i){var l=t.pingCache;l!==null&&l.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Fe===t&&(Ee&i)===i&&($e===4||$e===3&&(Ee&62914560)===Ee&&300>en()-xu?(Ge&2)===0&&is(t,0):yu|=i,ts===Ee&&(ts=0)),Cn(t)}function Ly(t,n){n===0&&(n=Om()),t=Ii(t,n),t!==null&&(Os(t,n),Cn(t))}function DA(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Ly(t,i)}function RA(t,n){var i=0;switch(t.tag){case 13:var l=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(n),Ly(t,i)}function MA(t,n){return Zt(t,n)}var nl=null,os=null,Cu=!1,al=!1,Tu=!1,li=0;function Cn(t){t!==os&&t.next===null&&(os===null?nl=os=t:os=os.next=t),al=!0,Cu||(Cu=!0,PA())}function bo(t,n){if(!Tu&&al){Tu=!0;do for(var i=!1,l=nl;l!==null;){if(t!==0){var d=l.pendingLanes;if(d===0)var f=0;else{var x=l.suspendedLanes,A=l.pingedLanes;f=(1<<31-It(42|t)+1)-1,f&=d&~(x&~A),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(i=!0,By(l,f))}else f=Ee,f=cr(l,l===Fe?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||Ms(l,f)||(i=!0,By(l,f));l=l.next}while(i);Tu=!1}}function OA(){Hy()}function Hy(){al=Cu=!1;var t=0;li!==0&&(VA()&&(t=li),li=0);for(var n=en(),i=null,l=nl;l!==null;){var d=l.next,f=Iy(l,n);f===0?(l.next=null,i===null?nl=d:i.next=d,d===null&&(os=i)):(i=l,(t!==0||(f&3)!==0)&&(al=!0)),l=d}bo(t)}function Iy(t,n){for(var i=t.suspendedLanes,l=t.pingedLanes,d=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var x=31-It(f),A=1<<x,z=d[x];z===-1?((A&i)===0||(A&l)!==0)&&(d[x]=oS(A,n)):z<=n&&(t.expiredLanes|=A),f&=~A}if(n=Fe,i=Ee,i=cr(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===n&&(Ue===2||Ue===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&wt(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Ms(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(l!==null&&wt(l),Vc(i)){case 2:case 8:i=De;break;case 32:i=Me;break;case 268435456:i=Fa;break;default:i=Me}return l=_y.bind(null,t),i=Zt(i,l),t.callbackPriority=n,t.callbackNode=i,n}return l!==null&&l!==null&&wt(l),t.callbackPriority=2,t.callbackNode=null,2}function _y(t,n){if(mt!==0&&mt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(tl()&&t.callbackNode!==i)return null;var l=Ee;return l=cr(t,t===Fe?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Ay(t,l,n),Iy(t,en()),t.callbackNode!=null&&t.callbackNode===i?_y.bind(null,t):null)}function By(t,n){if(tl())return null;Ay(t,n,!0)}function PA(){qA(function(){(Ge&6)!==0?Zt(ie,OA):Hy()})}function zu(){return li===0&&(li=Mm()),li}function Vy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:mr(""+t)}function Fy(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function GA(t,n,i,l,d){if(n==="submit"&&i&&i.stateNode===d){var f=Vy((d[Rt]||null).action),x=l.submitter;x&&(n=(n=x[Rt]||null)?Vy(n.formAction):x.getAttribute("formAction"),n!==null&&(f=n,x=null));var A=new br("action","action",null,l,d);t.push({event:A,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(li!==0){var z=x?Fy(d,x):new FormData(d);$d(i,{pending:!0,data:z,method:d.method,action:f},null,z)}}else typeof f=="function"&&(A.preventDefault(),z=x?Fy(d,x):new FormData(d),$d(i,{pending:!0,data:z,method:d.method,action:f},f,z))},currentTarget:d}]})}}for(var Eu=0;Eu<md.length;Eu++){var Du=md[Eu],UA=Du.toLowerCase(),LA=Du[0].toUpperCase()+Du.slice(1);mn(UA,"on"+LA)}mn(Ap,"onAnimationEnd"),mn(jp,"onAnimationIteration"),mn(Np,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(tA,"onTransitionRun"),mn(nA,"onTransitionStart"),mn(aA,"onTransitionCancel"),mn(kp,"onTransitionEnd"),Ei("onMouseEnter",["mouseout","mouseover"]),Ei("onMouseLeave",["mouseout","mouseover"]),Ei("onPointerEnter",["pointerout","pointerover"]),Ei("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focu
8sin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xo="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(" "),HA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xo));function qy(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],d=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var x=l.length-1;0<=x;x--){var A=l[x],z=A.instance,I=A.currentTarget;if(A=A.listener,z!==f&&d.isPropagationStopped())break e;f=A,d.currentTarget=I;try{f(d)}catch(K){Fr(K)}d.currentTarget=null,f=z}else for(x=0;x<l.length;x++){if(A=l[x],z=A.instance,I=A.currentTarget,A=A.listener,z!==f&&d.isPropagationStopped())break e;f=A,d.currentTarget=I;try{f(d)}catch(K){Fr(K)}d.currentTarget=null,f=z}}}}function Te(t,n){var i=n[Fc];i===void 0&&(i=n[Fc]=new Set);var l=t+"__bubble";i.has(l)||(Wy(n,t,2,!1),i.add(l))}function Ru(t,n,i){var l=0;n&&(l|=4),Wy(i,t,l,n)}var il="_reactListening"+Math.random().toString(36).slice(2);function Mu(t){if(!t[il]){t[il]=!0,Hm.forEach(function(i){i!=="selectionchange"&&(HA.has(i)||Ru(i,!1,t),Ru(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[il]||(n[il]=!0,Ru("selectionchange",!1,n))}}function Wy(t,n,i,l){switch(gb(n)){case 2:var d=hj;break;case 8:d=fj;break;default:d=Yu}i=d.bind(null,n,i,t),d=void 0,!td||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),l?d!==void 0?t.addEventListener(n,i,{capture:!0,passive:d}):t.addEventListener(n,i,!0):d!==void 0?t.addEventListener(n,i,{passive:d}):t.addEventListener(n,i,!1)}function Ou(t,n,i,l,d){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var A=l.stateNode.containerInfo;if(A===d)break;if(x===4)for(x=l.return;x!==null;){var z=x.tag;if((z===3||z===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;A!==null;){if(x=Ci(A),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){l=f=x;continue e}A=A.parentNode}}l=l.return}Zm(function(){var I=f,K=Zc(i),Q=[];e:{var V=Cp.get(t);if(V!==void 0){var q=br,ve=t;switch(t){case"keypress":if(gr(i)===0)break e;case"keydown":case"keyup":q=MS;break;case"focusin":ve="focus",q=sd;break;case"focusout":ve="blur",q=sd;break;case"beforeblur":case"afterblur":q=sd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=np;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=wS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=GS;break;case Ap:case jp:case Np:q=jS;break;case kp:q=LS;break;case"scroll":case"scrollend":q=xS;break;case"wheel":q=IS;break;case"copy":case"cut":case"paste":q=kS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ip;break;case"toggle":case"beforetoggle":q=BS}var be=(n&4)!==0,Ie=!be&&(t==="scroll"||t==="scrollend"),U=be?V!==null?V+"Capture":null:V;be=[];for(var M=I,L;M!==null;){var $=M;if(L=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||L===null||U===null||($=Us(M,U),$!=null&&be.push(vo(M,$,L))),Ie)break;M=M.return}0<be.length&&(V=new q(V,ve,null,i,K),Q.push({event:V,listeners:be}))}}if((n&7)===0){e:{if(V=t==="mouseover"||t==="pointerover",q=t==="mouseout"||t==="pointerout",V&&i!==Xc&&(ve=i.relatedTarget||i.fromElement)&&(Ci(ve)||ve[ki]))break e;if((q||V)&&(V=K.window===K?K:(V=K.ownerDocument)?V.defaultView||V.parentWindow:window,q?(ve=i.relatedTarget||i.toElement,q=I,ve=ve?Ci(ve):null,ve!==null&&(Ie=h(ve),be=ve.tag,ve!==Ie||be!==5&&be!==27&&be!==6)&&(ve=null)):(q=null,ve=I),q!==ve)){if(be=np,$="onMouseLeave",U="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(be=ip,$="onPointerLeave",U="onPointerEnter",M="pointer"),Ie=q==null?V:Gs(q),L=ve==null?V:Gs(ve),V=new be($,M+"leave",q,i,K),V.target=Ie,V.relatedTarget=L,$=null,Ci(K)===I&&(be=new be(U,M+"enter",ve,i,K),be.target=L,be.relatedTarget=Ie,$=be),Ie=$,q&&ve)t:{for(be=q,U=ve,M=0,L=be;L;L=rs(L))M++;for(L=0,$=U;$;$=rs($))L++;for(;0<M-L;)be=rs(be),M--;for(;0<L-M;)U=rs(U),L--;for(;M--;){if(be===U||U!==null&&be===U.alternate)break t;be=rs(be),U=rs(U)}be=null}else be=null;q!==null&&Yy(Q,V,q,be,!1),ve!==null&&Ie!==null&&Yy(Q,Ie,ve,be,!0)}}
vendor: 5,204 bytes, lines 8-9
8e:{if(V=I?Gs(I):window,q=V.nodeName&&V.nodeName.toLowerCase(),q==="select"||q==="input"&&V.type==="file")var ce=hp;else if(dp(V))if(fp)ce=XS;else{ce=JS;var Ne=$S}else q=V.nodeName,!q||q.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?I&&Qc(I.elementType)&&(ce=hp):ce=QS;if(ce&&(ce=ce(t,I))){up(Q,ce,i,K);break e}Ne&&Ne(t,V,I),t==="focusout"&&I&&V.type==="number"&&I.memoizedProps.value!=null&&Jc(V,"number",V.value)}switch(Ne=I?Gs(I):window,t){case"focusin":(dp(Ne)||Ne.contentEditable==="true")&&(Ui=Ne,ud=I,qs=null);break;case"focusout":qs=ud=Ui=null;break;case"mousedown":hd=!0;break;case"contextmenu":case"mouseup":case"dragend":hd=!1,wp(Q,i,K);break;case"selectionchange":if(eA)break;case"keydown":case"keyup":wp(Q,i,K)}var ge;if(rd)e:{switch(t){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Gi?lp(t,i)&&(xe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(xe="onCompositionStart");xe&&(sp&&i.locale!=="ko"&&(Gi||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Gi&&(ge=ep()):(da=K,nd="value"in da?da.value:da.textContent,Gi=!0)),Ne=sl(I,xe),0<Ne.length&&(xe=new ap(xe,t,null,i,K),Q.push({event:xe,listeners:Ne}),ge?xe.data=ge:(ge=cp(i),ge!==null&&(xe.data=ge)))),(ge=FS?qS(t,i):WS(t,i))&&(xe=sl(I,"onBeforeInput"),0<xe.length&&(Ne=new ap("onBeforeInput","beforeinput",null,i,K),Q.push({event:Ne,listeners:xe}),Ne.data=ge)),GA(Q,t,I,i,K)}qy(Q,n)})}function vo(t,n,i){return{instance:t,listener:n,currentTarget:i}}function sl(t,n){for(var i=n+"Capture",l=[];t!==null;){var d=t,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Us(t,i),d!=null&&l.unshift(vo(t,d,f)),d=Us(t,n),d!=null&&l.push(vo(t,d,f))),t.tag===3)return l;t=t.return}return[]}function rs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Yy(t,n,i,l,d){for(var f=n._reactName,x=[];i!==null&&i!==l;){var A=i,z=A.alternate,I=A.stateNode;if(A=A.tag,z!==null&&z===l)break;A!==5&&A!==26&&A!==27||I===null||(z=I,d?(I=Us(i,f),I!=null&&x.unshift(vo(i,I,z))):d||(I=Us(i,f),I!=null&&x.push(vo(i,I,z)))),i=i.return}x.length!==0&&t.push({event:n,listeners:x})}var IA=/\r\n?/g,_A=/\u0000|\uFFFD/g;function Ky(t){return(typeof t=="string"?t:""+t).replace(IA,`
9`).replace(_A,"")}function $y(t,n){return n=Ky(n),Ky(t)===n}function ol(){}function He(t,n,i,l,d,f){switch(i){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Mi(t,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Mi(t,""+l);break;case"className":ur(t,"class",l);break;case"tabIndex":ur(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ur(t,i,l);break;case"style":Qm(t,l,f);break;case"data":if(n!=="object"){ur(t,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=mr(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(i==="formAction"?(n!=="input"&&He(t,n,"name",d.name,d,null),He(t,n,"formEncType",d.formEncType,d,null),He(t,n,"formMethod",d.formMethod,d,null),He(t,n,"formTarget",d.formTarget,d,null)):(He(t,n,"encType",d.encType,d,null),He(t,n,"method",d.method,d,null),He(t,n,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=mr(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=ol);break;case"onScroll":l!=null&&Te("scroll",t);break;case"onScrollEnd":l!=null&&Te("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(d.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=mr(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Te("beforetoggle",t),Te("toggle",t),dr(t,"popover",l);break;case"xlinkActuate":Hn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Hn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Hn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Hn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Hn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Hn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Hn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Hn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Hn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":dr(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=yS.get(i)||i,dr(t,i,l))}}function Pu(t,n,i,l,d,f){switch(i){case"style":Qm(t,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(d.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof l=="string"?Mi(t,l):(typeof l=="number"||typeof l=="bigint")&&Mi(t,""+l);break;case"onScroll":l!=null&&Te("scroll",t);break;case"onScrollEnd":l!=null&&Te("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ol);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Im.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),n=i.slice(2,d?i.length-7:void 0),f=t[Rt]||null,f=f!=null?f[i]:null,typeof f=="function"&&t.removeEventListener(n,f,d),typeof l=="function")){typeof f!="function"&&f!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,l,d);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):dr(t,i,l)}}}function pt(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",t),Te("load",t);var l=!1,d=!1,f;for(f in i)if(i.hasOwnProperty(f)){var x=i[f];if(x!=null)switch(f){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:He(t,n,f,x,i,null)}}d&&He(t,n,"srcSet",i.srcSet,i,null),l&&He(t,n,"src",i.src,i,null);return;case"input":Te("invalid",t);var A=f=x=d=null,z=null,I=null;for(l in i)if(i.hasOwnProperty(l)){var K=i[l];if(K!=null)switch(l){case"name":d=K;break;case"type":x=K;break;case"checked":z=K;break;case"defaultChecked":I=K;break;case"value":f=K;break;case"defaultValue":A=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(o(137,n));break;default:He(t,n,l,K,i,null)}}Ym(t,f,A,z,I,x,d,!1),hr(t);return;case"select":Te("invalid",t),l=x=f=null;for(d in i)if(i.hasOwnProperty(d)&&(A=i[d],A!=null))switch(d){case"value":f=A;break;case"defaultValue":x=A;break;case"multiple":l=A;default:He(t,n,d,A,i,null)}n=f,i=x,t.multiple=!!l,n!=null?Ri(t,!!l,n,!1):i!=null&&Ri(t,!!l,i,!0);return;case"textarea":Te("invalid",t),f=d=l=null;for(x in i)if(i.hasOwnProperty(x)&&(A=i[x],A!=null))switch(x){case"value":l=A;break;case"defaultValue":d=A;break;case"children":f=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(91));break;default:He(t,n,x,A,i,null)}$m(t,l,d,f),hr(t);return;case"option":for(z in i)i.hasOwnProperty(z)&&(l=i[z],l!=null)&&(z==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":He(t,n,z,l,i,null));return;case"dialog":Te("beforetoggle",t),Te("toggle",t),Te("cancel",t),Te("close",t);break;case"iframe":case"object":Te("load",t);break;case"video":case"audio":for(l=0;l<xo.length;l++)Te(xo[l],t);break;case"image":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"embed":case"source":case"link":Te("error",t),Te("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in i)if(i.hasOwnProperty(I)&&(l=i[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:He(t,n,I,l,i,null)}return;default:if(Qc(n)){for(K in i)i.hasOwnProperty(K)&&(l=i[K],l!==void 0&&Pu(t,n,K,l,i,void 0));return}}for(A in i)i.hasOwnProperty(A)&&(l=i[A],l!=null&&He(t,n,A,l,i,null))}function BA(t,n,i,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,x=null,A=null,z=null,I=null,K=null;for(q in i){var Q=i[q];if(i.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":z=Q;default:l.hasOwnProperty(q)||He(t,n,q,null,l,Q)}}for(var V in l){var q=l[V];if(Q=i[V],l.hasOwnProperty(V)&&(q!=null||Q!=null))switch(V){case"type":f=q;break;case"name":d=q;break;case"checked":I=q;break;case"defaultChecked":K=q;break;case"value":x=q;break;case"defaultValue":A=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,n));break;default:q!==Q&&He(t,n,V,q,l,Q)}}$c(t,x,A,z,I,K,f,d);return;case"select":q=x=A=V=null;for(f in i)if(z=i[f],i.hasOwnProperty(f)&&z!=null)switch(f){case"value":break;case"multiple":q=z;default:l.hasOwnProperty(f)||He(t,n,f,null,l,z)}for(d in l)if(f=l[d],z=i[d],l.hasOwnProperty(d)&&(f!=null||z!=null))switch(d){case"value":V=f;break;case"defaultValue":A=f;break;case"multiple":x=f;default:f!==z&&He(t,n,d,f,l,z)}n=A,i=x,l=q,V!=null?Ri(t,!!i,V,!1):!!l!=!!i&&(n!=null?Ri(t,!!i,n,!0):Ri(t,!!i,i?[]:"",!1));return;case"textarea":q=V=null;for(A in i)if(d=i[A],i.hasOwnProperty(A)&&d!=null&&!l.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:He(t,n,A,null,l,d)}for(x in l)if(d=l[x],f=i[x],l.hasOwnProperty(x)&&(d!=null||f!=null))switch(x){case"value":V=d;break;case"defaultValue":q=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:d!==f&&He(t,n,x,d,l,f)}Km(t,V,q);return;case"option":for(var ve in i)V=i[ve],i.hasOwnProperty(ve)&&V!=null&&!l.hasOwnProperty(ve)&&(ve==="selected"?t.selected=!1:He(t,n,ve,null,l,V));for(z in l)V=l[z],q=i[z],l.hasOwnProperty(z)&&V!==q&&(V!=null||q!=null)&&(z==="selected"?t.selected=V&&typeof V!="function"&&typeof V!="symbol":He(t,n,z,V,l,q));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in i)V=i[be],i.hasOwnProperty(be)&&V!=null&&!l.hasOwnProperty(be)&&He(t,n,be,null,l,V);for(I in l)if(V=l[I],q=i[I],l.hasOwnProperty(I)&&V!==q&&(V!=null||q!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,n));break;default:He(t,n,I,V,l,q)}return;default:if(Qc(n)){for(var Ie in i)V=i[Ie],i.hasOwnProperty(Ie)&&V!==void 0&&!l.hasOwnProperty(Ie)&&Pu(t,n,Ie,void 0,l,V);for(K in l)V=l[K],q=i[K],!l.hasOwnProperty(K)||V===q||V===void 0&&q===void 0||Pu(t,n,K,V,l,q);return}}for(var U in i)V=i[U],i.hasOwnProperty(U)&&V!=null&&!l.hasOwnProperty(U)&&He(t,n,U,null,l,V);
vendor: 6,413 bytes, line 9
9for(Q in l)V=l[Q],q=i[Q],!l.hasOwnProperty(Q)||V===q||V==null&&q==null||He(t,n,Q,V,l,q)}var Gu=null,Uu=null;function rl(t){return t.nodeType===9?t:t.ownerDocument}function Jy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qy(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Lu(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Hu=null;function VA(){var t=window.event;return t&&t.type==="popstate"?t===Hu?!1:(Hu=t,!0):(Hu=null,!1)}var Xy=typeof setTimeout=="function"?setTimeout:void 0,FA=typeof clearTimeout=="function"?clearTimeout:void 0,Zy=typeof Promise=="function"?Promise:void 0,qA=typeof queueMicrotask=="function"?queueMicrotask:typeof Zy<"u"?function(t){return Zy.resolve(null).then(t).catch(WA)}:Xy;function WA(t){setTimeout(function(){throw t})}function ka(t){return t==="head"}function eb(t,n){var i=n,l=0,d=0;do{var f=i.nextSibling;if(t.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"){if(0<l&&8>l){i=l;var x=t.ownerDocument;if(i&1&&wo(x.documentElement),i&2&&wo(x.body),i&4)for(i=x.head,wo(i),x=i.firstChild;x;){var A=x.nextSibling,z=x.nodeName;x[Ps]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&x.rel.toLowerCase()==="stylesheet"||i.removeChild(x),x=A}}if(d===0){t.removeChild(f),zo(n);return}d--}else i==="$"||i==="$?"||i==="$!"?d++:l=i.charCodeAt(0)-48;else l=0;i=f}while(i);zo(n)}function Iu(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Iu(i),qc(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function YA(t,n,i,l){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ps])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=gn(t.nextSibling),t===null)break}return null}function KA(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=gn(t.nextSibling),t===null))return null;return t}function _u(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function $A(t,n){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")n();else{var l=function(){n(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function gn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return t}var Bu=null;function tb(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return t;n--}else i==="/$"&&n++}t=t.previousSibling}return null}function nb(t,n,i){switch(n=rl(i),t){case"html":if(t=n.documentElement,!t)throw Error(o(452));return t;case"head":if(t=n.head,!t)throw Error(o(453));return t;case"body":if(t=n.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function wo(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);qc(t)}var dn=new Map,ab=new Set;function ll(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Zn=B.d;B.d={f:JA,r:QA,D:XA,C:ZA,L:ej,m:tj,X:aj,S:nj,M:ij};function JA(){var t=Zn.f(),n=Zr();return t||n}function QA(t){var n=Ti(t);n!==null&&n.tag===5&&n.type==="form"?Ag(n):Zn.r(t)}var ls=typeof document>"u"?null:document;function ib(t,n,i){var l=ls;if(l&&typeof n=="string"&&n){var d=nn(n);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),ab.has(d)||(ab.add(d),t={rel:t,crossOrigin:i,href:n},l.querySelector(d)===null&&(n=l.createElement("link"),pt(n,"link",t),ct(n),l.head.appendChild(n)))}}function XA(t){Zn.D(t),ib("dns-prefetch",t,null)}function ZA(t,n){Zn.C(t,n),ib("preconnect",t,n)}function ej(t,n,i){Zn.L(t,n,i);var l=ls;if(l&&t&&n){var d='link[rel="preload"][as="'+nn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+nn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+nn(i.imageSizes)+'"]')):d+='[href="'+nn(t)+'"]';var f=d;switch(n){case"style":f=cs(t);break;case"script":f=ds(t)}dn.has(f)||(t=y({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),dn.set(f,t),l.querySelector(d)!==null||n==="style"&&l.querySelector(So(f))||n==="script"&&l.querySelector(Ao(f))||(n=l.createElement("link"),pt(n,"link",t),ct(n),l.head.appendChild(n)))}}function tj(t,n){Zn.m(t,n);var i=ls;if(i&&t){var l=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+nn(l)+'"][href="'+nn(t)+'"]',f=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ds(t)}if(!dn.has(f)&&(t=y({rel:"modulepreload",href:t},n),dn.set(f,t),i.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ao(f)))return}l=i.createElement("link"),pt(l,"link",t),ct(l),i.head.appendChild(l)}}}function nj(t,n,i){Zn.S(t,n,i);var l=ls;if(l&&t){var d=zi(l).hoistableStyles,f=cs(t);n=n||"default";var x=d.get(f);if(!x){var A={loading:0,preload:null};if(x=l.querySelector(So(f)))A.loading=5;
vendor: 5,847 bytes, line 9
9else{t=y({rel:"stylesheet",href:t,"data-precedence":n},i),(i=dn.get(f))&&Vu(t,i);var z=x=l.createElement("link");ct(z),pt(z,"link",t),z._p=new Promise(function(I,K){z.onload=I,z.onerror=K}),z.addEventListener("load",function(){A.loading|=1}),z.addEventListener("error",function(){A.loading|=2}),A.loading|=4,cl(x,n,l)}x={type:"stylesheet",instance:x,count:1,state:A},d.set(f,x)}}}function aj(t,n){Zn.X(t,n);var i=ls;if(i&&t){var l=zi(i).hoistableScripts,d=ds(t),f=l.get(d);f||(f=i.querySelector(Ao(d)),f||(t=y({src:t,async:!0},n),(n=dn.get(d))&&Fu(t,n),f=i.createElement("script"),ct(f),pt(f,"link",t),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(d,f))}}function ij(t,n){Zn.M(t,n);var i=ls;if(i&&t){var l=zi(i).hoistableScripts,d=ds(t),f=l.get(d);f||(f=i.querySelector(Ao(d)),f||(t=y({src:t,async:!0,type:"module"},n),(n=dn.get(d))&&Fu(t,n),f=i.createElement("script"),ct(f),pt(f,"link",t),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(d,f))}}function sb(t,n,i,l){var d=(d=se.current)?ll(d):null;if(!d)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=cs(i.href),i=zi(d).hoistableStyles,l=i.get(n),l||(l={type:"style",instance:null,count:0,state:null},i.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=cs(i.href);var f=zi(d).hoistableStyles,x=f.get(t);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,x),(f=d.querySelector(So(t)))&&!f._p&&(x.instance=f,x.state.loading=5),dn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},dn.set(t,i),f||sj(d,t,i,x.state))),n&&l===null)throw Error(o(528,""));return x}if(n&&l!==null)throw Error(o(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ds(i),i=zi(d).hoistableScripts,l=i.get(n),l||(l={type:"script",instance:null,count:0,state:null},i.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function cs(t){return'href="'+nn(t)+'"'}function So(t){return'link[rel="stylesheet"]['+t+"]"}function ob(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function sj(t,n,i,l){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=t.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),pt(n,"link",i),ct(n),t.head.appendChild(n))}function ds(t){return'[src="'+nn(t)+'"]'}function Ao(t){return"script[async]"+t}function rb(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var l=t.querySelector('style[data-href~="'+nn(i.href)+'"]');if(l)return n.instance=l,ct(l),l;var d=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ct(l),pt(l,"style",d),cl(l,i.precedence,t),n.instance=l;case"stylesheet":d=cs(i.href);var f=t.querySelector(So(d));if(f)return n.state.loading|=4,n.instance=f,ct(f),f;l=ob(i),(d=dn.get(d))&&Vu(l,d),f=(t.ownerDocument||t).createElement("link"),ct(f);var x=f;return x._p=new Promise(function(A,z){x.onload=A,x.onerror=z}),pt(f,"link",l),n.state.loading|=4,cl(f,i.precedence,t),n.instance=f;case"script":return f=ds(i.src),(d=t.querySelector(Ao(f)))?(n.instance=d,ct(d),d):(l=i,(d=dn.get(f))&&(l=y({},i),Fu(l,d)),t=t.ownerDocument||t,d=t.createElement("script"),ct(d),pt(d,"link",l),t.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,cl(l,i.precedence,t));return n.instance}function cl(t,n,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,f=d,x=0;x<l.length;x++){var A=l[x];if(A.dataset.precedence===n)f=A;else if(f!==d)break}f?f.parentNode.insertBefore(t,f.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function Vu(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Fu(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var dl=null;function lb(t,n,i){if(dl===null){var l=new Map,d=dl=new Map;d.set(i,l)}else d=dl,l=d.get(i),l||(l=new Map,d.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var f=i[d];if(!(f[Ps]||f[St]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var x=f.getAttribute(n)||"";x=t+x;var A=l.get(x);A?A.push(f):l.set(x,[f])}}return l}function cb(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function oj(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(t=n.disabled,typeof n.precedence=="string"&&t==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function db(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var jo=null;function rj(){}function lj(t,n,i){if(jo===null)throw Error(o(475));var l=jo;
vendor: 7,630 bytes, line 9
9if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var d=cs(i.href),f=t.querySelector(So(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=ul.bind(l),t.then(l,l)),n.state.loading|=4,n.instance=f,ct(f);return}f=t.ownerDocument||t,i=ob(i),(d=dn.get(d))&&Vu(i,d),f=f.createElement("link"),ct(f);var x=f;x._p=new Promise(function(A,z){x.onload=A,x.onerror=z}),pt(f,"link",i),n.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=ul.bind(l),t.addEventListener("load",n),t.addEventListener("error",n))}}function cj(){if(jo===null)throw Error(o(475));var t=jo;return t.stylesheets&&t.count===0&&qu(t,t.stylesheets),0<t.count?function(n){var i=setTimeout(function(){if(t.stylesheets&&qu(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i)}}:null}function ul(){if(this.count--,this.count===0){if(this.stylesheets)qu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var hl=null;function qu(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,hl=new Map,n.forEach(dj,t),hl=null,ul.call(t))}function dj(t,n){if(!(n.state.loading&4)){var i=hl.get(t);if(i)var l=i.get(null);else{i=new Map,hl.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var x=d[f];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),l=x)}l&&i.set(null,l)}d=n.instance,x=d.getAttribute("data-precedence"),f=i.get(x)||l,f===l&&i.set(null,d),i.set(x,d),this.count++,l=ul.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),f?f.parentNode.insertBefore(d,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),n.state.loading|=4}}var No={$$typeof:R,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function uj(t,n,i,l,d,f,x,A){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_c(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_c(0),this.hiddenUpdates=_c(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function ub(t,n,i,l,d,f,x,A,z,I,K,Q){return t=new uj(t,n,i,x,A,z,I,Q),n=1,f===!0&&(n|=24),f=Bt(3,null,null,n),t.current=f,f.stateNode=t,n=kd(),n.refCount++,t.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:i,cache:n},Ed(f),t}function hb(t){return t?(t=_i,t):_i}function fb(t,n,i,l,d,f){d=hb(d),l.context===null?l.context=d:l.pendingContext=d,l=fa(n),l.payload={element:i},f=f===void 0?null:f,f!==null&&(l.callback=f),i=ma(t,l,n),i!==null&&(Yt(i,t,n),eo(i,t,n))}function mb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function Wu(t,n){mb(t,n),(t=t.alternate)&&mb(t,n)}function pb(t){if(t.tag===13){var n=Ii(t,67108864);n!==null&&Yt(n,t,67108864),Wu(t,67108864)}}var fl=!0;function hj(t,n,i,l){var d=P.T;P.T=null;var f=B.p;try{B.p=2,Yu(t,n,i,l)}finally{B.p=f,P.T=d}}function fj(t,n,i,l){var d=P.T;P.T=null;var f=B.p;try{B.p=8,Yu(t,n,i,l)}finally{B.p=f,P.T=d}}function Yu(t,n,i,l){if(fl){var d=Ku(l);if(d===null)Ou(t,n,l,ml,i),yb(t,l);else if(pj(d,t,n,i,l))l.stopPropagation();else if(yb(t,l),n&4&&-1<mj.indexOf(t)){for(;d!==null;){var f=Ti(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var x=qa(f.pendingLanes);if(x!==0){var A=f;for(A.pendingLanes|=2,A.entangledLanes|=2;x;){var z=1<<31-It(x);A.entanglements[1]|=z,x&=~z}Cn(f),(Ge&6)===0&&(Qr=en()+500,bo(0))}}break;case 13:A=Ii(f,2),A!==null&&Yt(A,f,2),Zr(),Wu(f,2)}if(f=Ku(l),f===null&&Ou(t,n,l,ml,i),f===d)break;d=f}d!==null&&l.stopPropagation()}else Ou(t,n,l,null,i)}}function Ku(t){return t=Zc(t),$u(t)}var ml=null;function $u(t){if(ml=null,t=Ci(t),t!==null){var n=h(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=u(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return ml=t,null}function gb(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ic()){case ie:return 2;case De:return 8;case Me:case Ln:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Ju=!1,Ca=null,Ta=null,za=null,ko=new Map,Co=new Map,Ea=[],mj="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".split(" ");function yb(t,n){switch(t){case"focusin":case"focusout":Ca=null;break;case"dragenter":case"dragleave":Ta=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":ko.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Co.delete(n.pointerId)}}function To(t,n,i,l,d,f){return t===null||t.nativeEvent!==f?(t={blockedOn:n,domEventName:i,eventSystemFlags:l,nativeEvent:f,targetContainers:[d]},n!==null&&(n=Ti(n),n!==null&&pb(n)),t):(t.eventSystemFlags|=l,n=t.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),t)}function pj(t,n,i,l,d){switch(n){case"focusin":return Ca=To(Ca,t,n,i,l,d),!0;case"dragenter":return Ta=To(Ta,t,n,i,l,d),!0;case"mouseover":return za=To(za,t,n,i,l,d),!0;case"pointerover":var f=d.pointerId;return ko.set(f,To(ko.get(f)||null,t,n,i,l,d)),!0;case"gotpointercapture":return f=d.pointerId,Co.set(f,To(Co.get(f)||null,t,n,i,l,d)),!0}return!1}function bb(t){var n=Ci(t.target);if(n!==null){var i=h(n);if(i!==null){if(n=i.tag,n===13){if(n=u(i),n!==null){t.blockedOn=n,lS(t.priority,function(){if(i.tag===13){var l=Wt();l=Bc(l);var d=Ii(i,l);d!==null&&Yt(d,i,l),Wu(i,l)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function pl(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;
9){var i=Ku(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Xc=l,i.target.dispatchEvent(l),Xc=null}else return n=Ti(i),n!==null&&pb(n),t.blockedOn=i,!1;n.shift()}return!0}function xb(t,n,i){pl(t)&&i.delete(n)}function gj(){Ju=!1,Ca!==null&&pl(Ca)&&(Ca=null),Ta!==null&&pl(Ta)&&(Ta=null),za!==null&&pl(za)&&(za=null),ko.forEach(xb),Co.forEach(xb)}function gl(t,n){t.blockedOn===n&&(t.blockedOn=null,Ju||(Ju=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,gj)))}var yl=null;function vb(t){yl!==t&&(yl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){yl===t&&(yl=null);for(var n=0;n<t.length;n+=3){var i=t[n],l=t[n+1],d=t[n+2];if(typeof l!="function"){if($u(l||i)===null)continue;break}var f=Ti(i);f!==null&&(t.splice(n,3),n-=3,$d(f,{pending:!0,data:d,method:i.method,action:l},l,d))}}))}function zo(t){function n(z){return gl(z,t)}Ca!==null&&gl(Ca,t),Ta!==null&&gl(Ta,t),za!==null&&gl(za,t),ko.forEach(n),Co.forEach(n);for(var i=0;i<Ea.length;i++){var l=Ea[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Ea.length&&(i=Ea[0],i.blockedOn===null);)bb(i),i.blockedOn===null&&Ea.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var d=i[l],f=i[l+1],x=d[Rt]||null;if(typeof f=="function")x||vb(i);else if(x){var A=null;if(f&&f.hasAttribute("formAction")){if(d=f,x=f[Rt]||null)A=x.formAction;else if($u(d)!==null)continue}else A=x.action;typeof A=="function"?i[l+1]=A:(i.splice(l,3),l-=3),vb(i)}}}function Qu(t){this._internalRoot=t}bl.prototype.render=Qu.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(o(409));var i=n.current,l=Wt();fb(i,l,t,n,null,null)},bl.prototype.unmount=Qu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;fb(t.current,2,null,t,null,null),Zr(),n[ki]=null}};function bl(t){this._internalRoot=t}bl.prototype.unstable_scheduleHydration=function(t){if(t){var n=Um();t={blockedOn:null,target:t,priority:n};for(var i=0;i<Ea.length&&n!==0&&n<Ea[i].priority;i++);Ea.splice(i,0,t),i===0&&bb(t)}};var wb=a.version;if(wb!=="19.1.0")throw Error(o(527,wb,"19.1.0"));B.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(n),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var yj={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xl.isDisabled&&xl.supportsFiber)try{Rs=xl.inject(yj),Ht=xl}catch{}}return Do.createRoot=function(t,n){if(!c(t))throw Error(o(299));var i=!1,l="",d=Ug,f=Lg,x=Hg,A=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(A=n.unstable_transitionCallbacks)),n=ub(t,1,!1,null,null,i,l,d,f,x,A,null),t[ki]=n.current,Mu(t),new Qu(n)},Do.hydrateRoot=function(t,n,i){if(!c(t))throw Error(o(299));var l=!1,d="",f=Ug,x=Lg,A=Hg,z=null,I=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(z=i.unstable_transitionCallbacks),i.formState!==void 0&&(I=i.formState)),n=ub(t,1,!0,n,i??null,l,d,f,x,A,z,I),n.context=hb(null),i=n.current,l=Wt(),l=Bc(l),d=fa(l),d.callback=null,ma(i,d,l),i=l,n.current.lanes=i,Os(n,i),Cn(n),t[ki]=n.current,Mu(t),new bl(n)},Do.version="19.1.0",Do}var Db;function Tj(){if(Db)return Zu.exports;Db=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),Zu.exports=Cj(),Zu.exports}var zj=Tj();function Ej(e,a){if(e instanceof RegExp)return{keys:!1,pattern:e};var s,o,c,h,u=[],p="",m=e.split("/");for(m[0]||m.shift();c=m.shift();)s=c[0],s==="*"?(u.push(s),p+=c[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(o=c.indexOf("?",1),h=c.indexOf(".",1),u.push(c.substring(1,~o?o:~h?h:c.length)),p+=~o&&!~h?"(?:/([^/]+?))?":"/([^/]+?)",~h&&(p+=(~o?"?":"")+"\\"+c.substring(h))):p+="/"+c;return{keys:u,pattern:new RegExp("^"+p+(a?"(?=$|/)":"/?$"),"i")}}var w=yc();const un=vj(w),kf=xj({__proto__:null,default:un},[w]);
9var ih={exports:{}},sh={};var Rb;function Dj(){if(Rb)return sh;Rb=1;var e=yc();function a(b,v){return b===v&&(b!==0||1/b===1/v)||b!==b&&v!==v}var s=typeof Object.is=="function"?Object.is:a,o=e.useState,c=e.useEffect,h=e.useLayoutEffect,u=e.useDebugValue;function p(b,v){var S=v(),j=o({inst:{value:S,getSnapshot:v}}),N=j[0].inst,C=j[1];return h(function(){N.value=S,N.getSnapshot=v,m(N)&&C({inst:N})},[b,S,v]),c(function(){return m(N)&&C({inst:N}),b(function(){m(N)&&C({inst:N})})},[b]),u(S),S}function m(b){var v=b.getSnapshot;b=b.value;try{var S=v();return!s(b,S)}catch{return!0}}function g(b,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:p;return sh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,sh}var Mb;function Rj(){return Mb||(Mb=1,ih.exports=Dj()),ih.exports}var Mj=Rj();const Oj=kf.useInsertionEffect,Pj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$x=Pj?w.useLayoutEffect:w.useEffect,Gj=Oj||$x,Cf=e=>{const a=w.useRef([e,(...s)=>a[0](...s)]).current;return Gj(()=>{a[0]=e}),a[1]},Uj="popstate",Tf="pushState",zf="replaceState",Lj="hashchange",Ob=[Uj,Tf,zf,Lj],Hj=e=>{for(const a of Ob)addEventListener(a,e);return()=>{for(const a of Ob)removeEventListener(a,e)}},Jx=(e,a)=>Mj.useSyncExternalStore(Hj,e,a),Pb=()=>location.search,Ij=({ssrSearch:e}={})=>Jx(Pb,e!=null?()=>e:Pb),Gb=()=>location.pathname,_j=({ssrPath:e}={})=>Jx(Gb,e!=null?()=>e:Gb),Bj=(e,{replace:a=!1,state:s=null}={})=>history[a?zf:Tf](s,"",e),Vj=(e={})=>[_j(e),Bj],Ub=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ub]>"u"){for(const e of[Tf,zf]){const a=history[e];history[e]=function(){const s=a.apply(this,arguments),o=new Event(e);return o.arguments=arguments,dispatchEvent(o),s}}Object.defineProperty(window,Ub,{value:!0})}const Fj=(e,a)=>a.toLowerCase().indexOf(e.toLowerCase())?"~"+a:a.slice(e.length)||"/",Qx=(e="")=>e==="/"?"":e,qj=(e,a)=>e[0]==="~"?e.slice(1):Qx(a)+e,Wj=(e="",a)=>Fj(Lb(Qx(e)),Lb(a)),Lb=e=>{try{return decodeURI(e)}catch{return e}},Xx={hook:Vj,searchHook:Ij,parser:Ej,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,a,s)=>e(a,s)},Zx=w.createContext(Xx),ji=()=>w.useContext(Zx),ev={},tv=w.createContext(ev),Yj=()=>w.useContext(tv),Xo=e=>{const[a,s]=e.hook(e);return[Wj(e.base,a),Cf((o,c)=>e.aroundNav(s,qj(o,e.base),c))]},nv=()=>Xo(ji()),Ef=(e,a,s,o)=>{const{pattern:c,keys:h}=a instanceof RegExp?{keys:!1,pattern:a}:e(a||"*",o),u=c.exec(s)||[],[p,...m]=u;return p!==void 0?[!0,(()=>{const g=h!==!1?Object.fromEntries(h.map((b,v)=>[b,m[v]])):u.groups;let y={...m};return g&&Object.assign(y,g),y})(),...o?[p]:[]]:[!1,null]},Hb=e=>Ef(ji().parser,e,nv()[0]),av=({children:e,...a})=>{const s=ji(),o=a.hook?Xx:s;let c=o;const[h,u=a.ssrSearch??""]=a.ssrPath?.split("?")??[];h&&(a.ssrSearch=u,a.ssrPath=h),a.hrefs=a.hrefs??a.hook?.hrefs,a.searchHook=a.searchHook??a.hook?.searchHook;let p=w.useRef({}),m=p.current,g=m;for(let y in o){const b=y==="base"?o[y]+(a[y]??""):a[y]??o[y];m===g&&b!==g[y]&&(p.current=g={...g}),g[y]=b,(b!==o[y]||b!==c[y])&&(c=g)}return w.createElement(Zx.Provider,{value:c,children:e})},Ib=({children:e,component:a},s)=>a?w.createElement(a,{params:s}):typeof e=="function"?e(s):e,Kj=e=>{let a=w.useRef(ev);const s=a.current;return a.current=Object.keys(e).length!==Object.keys(s).length||Object.entries(e).some(([o,c])=>c!==s[o])?e:s},fe=({path:e,nest:a,match:s,...o})=>{const c=ji(),[h]=Xo(c),[u,p,m]=s??Ef(c.parser,e,h,a),g=Kj({...Yj(),...p});if(!u)return null;const y=m?w.createElement(av,{base:m},Ib(o,g)):Ib(o,g);return w.createElement(tv.Provider,{value:g,children:y})},Pe=w.forwardRef((e,a)=>{const s=ji(),[o,c]=Xo(s),{to:h="",href:u=h,onClick:p,asChild:m,children:g,className:y,replace:b,state:v,transition:S,...j}=e,N=Cf(T=>{T.ctrlKey||T.metaKey||T.altKey||T.shiftKey||T.button!==0||(p?.(T),T.defaultPrevented||(T.preventDefault(),c(u,e)))}),C=s.hrefs(u[0]==="~"?u.slice(1):s.base+u,s);return m&&w.isValidElement(g)?w.cloneElement(g,{onClick:N,href:C}):w.createElement("a",{...j,onClick:N,href:C,className:y?.call?y(o===u):y,children:g,ref:a})}),iv=e=>Array.isArray(e)?e.flatMap(a=>iv(a&&a.type===w.Fragment?a.props.children:a)):[e],$j=({children:e,location:a})=>{const s=ji(),[o]=Xo(s);for(const c of iv(e)){let h=0;if(w.isValidElement(c)&&(h=Ef(s.parser,c.props.path,a||o,c.props.nest))[0])return w.cloneElement(c,{match:h})}return null},Ro=e=>{const{to:a,href:s=a}=e,o=ji(),[,c]=Xo(o),h=Cf(()=>c(a||s,e)),{ssrContext:u}=o;return $x(()=>{h()},[]),u&&(u.redirectTo=a),null};var Ns=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Jj=class extends Ns{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const a=()=>e();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 23,349 bytes, line 9
9this.listeners.forEach(a=>{a(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Df=new Jj,Qj={setTimeout:(e,a)=>setTimeout(e,a),clearTimeout:e=>clearTimeout(e),setInterval:(e,a)=>setInterval(e,a),clearInterval:e=>clearInterval(e)},Xj=class{#e=Qj;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,a){return this.#e.setTimeout(e,a)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,a){return this.#e.setInterval(e,a)}clearInterval(e){this.#e.clearInterval(e)}},pi=new Xj;function Zj(e){setTimeout(e,0)}var eN=typeof window>"u"||"Deno"in globalThis;function Ct(){}function tN(e,a){return typeof e=="function"?e(a):e}function Ph(e){return typeof e=="number"&&e>=0&&e!==1/0}function sv(e,a){return Math.max(e+(a||0)-Date.now(),0)}function Oa(e,a){return typeof e=="function"?e(a):e}function Kt(e,a){return typeof e=="function"?e(a):e}function _b(e,a){const{type:s="all",exact:o,fetchStatus:c,predicate:h,queryKey:u,stale:p}=e;if(u){if(o){if(a.queryHash!==Rf(u,a.options))return!1}else if(!Fo(a.queryKey,u))return!1}if(s!=="all"){const m=a.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof p=="boolean"&&a.isStale()!==p||c&&c!==a.state.fetchStatus||h&&!h(a))}function Bb(e,a){const{exact:s,status:o,predicate:c,mutationKey:h}=e;if(h){if(!a.options.mutationKey)return!1;if(s){if(Si(a.options.mutationKey)!==Si(h))return!1}else if(!Fo(a.options.mutationKey,h))return!1}return!(o&&a.state.status!==o||c&&!c(a))}function Rf(e,a){return(a?.queryKeyHashFn||Si)(e)}function Si(e){return JSON.stringify(e,(a,s)=>Gh(s)?Object.keys(s).sort().reduce((o,c)=>(o[c]=s[c],o),{}):s)}function Fo(e,a){return e===a?!0:typeof e!=typeof a?!1:e&&a&&typeof e=="object"&&typeof a=="object"?Object.keys(a).every(s=>Fo(e[s],a[s])):!1}var nN=Object.prototype.hasOwnProperty;function ov(e,a,s=0){if(e===a)return e;if(s>500)return a;const o=Vb(e)&&Vb(a);if(!o&&!(Gh(e)&&Gh(a)))return a;const h=(o?e:Object.keys(e)).length,u=o?a:Object.keys(a),p=u.length,m=o?new Array(p):{};let g=0;for(let y=0;y<p;y++){const b=o?y:u[y],v=e[b],S=a[b];if(v===S){m[b]=v,(o?y<h:nN.call(e,b))&&g++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){m[b]=S;continue}const j=ov(v,S,s+1);m[b]=j,j===v&&g++}return h===p&&g===h?e:m}function Ql(e,a){if(!a||Object.keys(e).length!==Object.keys(a).length)return!1;for(const s in e)if(e[s]!==a[s])return!1;return!0}function Vb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gh(e){if(!Fb(e))return!1;const a=e.constructor;if(a===void 0)return!0;const s=a.prototype;return!(!Fb(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fb(e){return Object.prototype.toString.call(e)==="[object Object]"}function aN(e){return new Promise(a=>{pi.setTimeout(a,e)})}function Uh(e,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,a):s.structuralSharing!==!1?ov(e,a):a}function iN(e,a,s=0){const o=[...e,a];return s&&o.length>s?o.slice(1):o}function sN(e,a,s=0){const o=[a,...e];return s&&o.length>s?o.slice(0,-1):o}var Mf=Symbol();function rv(e,a){return!e.queryFn&&a?.initialPromise?()=>a.initialPromise:!e.queryFn||e.queryFn===Mf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Of(e,a){return typeof e=="function"?e(...a):!!e}function oN(e,a,s){let o=!1,c;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(c??=a(),o||(o=!0,c.aborted?s():c.addEventListener("abort",s,{once:!0})),c)}),e}var qo=(()=>{let e=()=>eN;return{isServer(){return e()},setIsServer(a){e=a}}})();function Lh(){let e,a;const s=new Promise((c,h)=>{e=c,a=h});s.status="pending",s.catch(()=>{});function o(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{o({status:"fulfilled",value:c}),e(c)},s.reject=c=>{o({status:"rejected",reason:c}),a(c)},s}var rN=Zj;function lN(){let e=[],a=0,s=p=>{p()},o=p=>{p()},c=rN;const h=p=>{a?e.push(p):c(()=>{s(p)})},u=()=>{const p=e;e=[],p.length&&c(()=>{o(()=>{p.forEach(m=>{s(m)})})})};return{batch:p=>{let m;a++;try{m=p()}finally{a--,a||u()}return m},batchCalls:p=>(...m)=>{h(()=>{p(...m)})},schedule:h,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{c=p}}}var rt=lN(),cN=class extends Ns{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const a=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#e}},Xl=new cN;function dN(e){return Math.min(1e3*2**e,3e4)}function lv(e){return(e??"online")==="online"?Xl.isOnline():!0}var Hh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function cv(e){let a=!1,s=0,o;const c=Lh(),h=()=>c.status!=="pending",u=N=>{if(!h()){const C=new Hh(N);v(C),e.onCancel?.(C)}},p=()=>{a=!0},m=()=>{a=!1},g=()=>Df.isFocused()&&(e.networkMode==="always"||Xl.isOnline())&&e.canRun(),y=()=>lv(e.networkMode)&&e.canRun(),b=N=>{h()||(o?.(),c.resolve(N))},v=N=>{h()||(o?.(),c.reject(N))},S=()=>new Promise(N=>{o=C=>{(h()||g())&&N(C)},e.onPause?.()}).then(()=>{o=void 0,h()||e.onContinue?.()}),j=()=>{if(h())return;let N;const C=s===0?e.initialPromise:void 0;try{N=C??e.fn()}catch(T){N=Promise.reject(T)}Promise.resolve(N).then(b).catch(T=>{if(h())return;const E=e.retry??(qo.isServer()?0:3),R=e.retryDelay??dN,O=typeof R=="function"?R(s,T):R,G=E===!0||typeof E=="number"&&s<E||typeof E=="function"&&E(s,T);if(a||!G){v(T);return}s++,e.onFail?.(s,T),aN(O).then(()=>g()?void 0:S()).then(()=>{a?v(T):j()})})};return{promise:c,status:()=>c.status,cancel:u,continue:()=>(o?.(),c),cancelRetry:p,continueRetry:m,canStart:y,start:()=>(y()?j():S().then(j),c)}}var dv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ph(this.gcTime)&&(this.#e=pi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qo.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(pi.clearTimeout(this.#e),this.#e=void 0)}};function uN(e){return{onFetch:(a,s)=>{const o=a.options,c=a.fetchOptions?.meta?.fetchMore?.direction,h=a.state.data?.pages||[],u=a.state.data?.pageParams||[];let p={pages:[],pageParams:[]},m=0;const g=async()=>{let y=!1;const b=j=>{oN(j,()=>a.signal,()=>y=!0)},v=rv(a.options,a.fetchOptions),S=async(j,N,C)=>{if(y)return Promise.reject(a.signal.reason);if(N==null&&j.pages.length)return Promise.resolve(j);const E=(()=>{const _={client:a.client,queryKey:a.queryKey,pageParam:N,direction:C?"backward":"forward",meta:a.options.meta};return b(_),_})(),R=await v(E),{maxPages:O}=a.options,G=C?sN:iN;return{pages:G(j.pages,R,O),pageParams:G(j.pageParams,N,O)}};if(c&&h.length){const j=c==="backward",N=j?hN:qb,C={pages:h,pageParams:u},T=N(o,C);p=await S(C,T,j)}else{const j=e??h.length;do{const N=m===0?u[0]??o.initialPageParam:qb(o,p);if(m>0&&N==null)break;p=await S(p,N),m++}while(m<j)}return p};a.options.persister?a.fetchFn=()=>a.options.persister?.(g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s):a.fetchFn=g}}}function qb(e,{pages:a,pageParams:s}){const o=a.length-1;return a.length>0?e.getNextPageParam(a[o],a,s[o],s):void 0}function hN(e,{pages:a,pageParams:s}){return a.length>0?e.getPreviousPageParam?.(a[0],a,s[0],s):void 0}var fN=class extends dv{#e;#t;#n;#a;#s;#i;#r;#o;constructor(e){super(),this.#o=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#a=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Yb(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#r,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=Yb(this.options);a.data!==void 0&&(this.setState(Wb(a.data,a.dataUpdatedAt)),this.#t=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(e,a){const s=Uh(this.state.data,e,this.options);return this.#l({data:s,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),s}setState(e){this.#l({type:"setState",state:e})}cancel(e){const a=this.#i?.promise;return this.#i?.cancel(e),a?a.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Kt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Oa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sv(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(a=>a!==e),this.observers.length||(this.#i&&(this.#o||this.#d()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#d(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,a){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},c=()=>{const m=rv(this.options,a),y=(()=>{const b={client:this.#s,queryKey:this.queryKey,meta:this.meta};return o(b),b})();return this.#o=!1,this.options.persister?this.options.persister(m,y,this):m(y)},u=(()=>{const m={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:c};return o(m),m})();(this.#e==="infinite"?uN(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#l({type:"fetch",meta:u.fetchOptions?.meta}),this.#i=cv({initialPromise:a?.initialPromise,fn:u.fetchFn,onCancel:m=>{m instanceof Hh&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(m,g)=>{this.#l({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#a.config.onSuccess?.(m,this),this.#a.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Hh){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#l({type:"error",error:m}),this.#a.config.onError?.(m,this),this.#a.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#l(e){const a=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...uv(s.data,this.options),fetchMeta:e.meta??null};case"success":const o={...s,...Wb(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?o:void 0,o;case"error":const c=e.error;return{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=a(this.state),rt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function uv(e,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lv(a.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Wb(e,a){return{data:e,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Yb(e){const a=typeof e.initialData=="function"?e.initialData():e.initialData,s=a!==void 0,o=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var mN=class extends Ns{constructor(e,a){super(),this.options=a,this.#e=e,this.#o=null,this.#r=Lh(),this.bindMethods(),this.setOptions(a)}#e;#t=void 0;#n=void 0;#a=void 0;#s;#i;#r;#o;#d;#l;#m;#u;#h;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Kb(this.#t,this.options)?this.#f():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ih(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ih(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const a=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),a._defaulted&&!Ql(this.options,a)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&$b(this.#t,s,this.options,a)&&this.#f(),this.updateResult(),o&&(this.#t!==s||Kt(this.options.enabled,this.#t)!==Kt(a.enabled,this.#t)||Oa(this.options.staleTime,this.#t)!==Oa(a.staleTime,this.#t))&&this.#g();const c=this.#y();o&&(this.#t!==s||Kt(this.options.enabled,this.#t)!==Kt(a.enabled,this.#t)||c!==this.#c)&&this.#b(c)}getOptimisticResult(e){const a=this.#e.getQueryCache().build(this.#e,e),s=this.createResult(a,e);return gN(this,s)&&(this.#a=s,this.#i=this.options,this.#s=this.#t.state),s}getCurrentResult(){return this.#a}trackResult(e,a){return new Proxy(e,{get:(s,o)=>(this.trackProp(o),a?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const a=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,a);return s.fetch().then(()=>this.createResult(s,a))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(e){this.#S();let a=this.#t.fetch(this.options,e);return e?.throwOnError||(a=a.catch(Ct)),a}#g(){this.#v();const e=Oa(this.options.staleTime,this.#t);if(qo.isServer()||this.#a.isStale||!Ph(e))return;const s=sv(this.#a.dataUpdatedAt,e)+1;this.#u=pi.setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#w(),this.#c=e,!(qo.isServer()||Kt(this.options.enabled,this.#t)===!1||!Ph(this.#c)||this.#c===0)&&(this.#h=pi.setInterval(()=>{(this.options.refetchIntervalInBackground||Df.isFocused())&&this.#f()},this.#c))}#x(){this.#g(),this.#b(this.#y())}#v(){this.#u!==void 0&&(pi.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#h!==void 0&&(pi.clearInterval(this.#h),this.#h=void 0)}createResult(e,a){const s=this.#t,o=this.options,c=this.#a,h=this.#s,u=this.#i,m=e!==s?e.state:this.#n,{state:g}=e;let y={...g},b=!1,v;if(a._optimisticResults){const D=this.hasListeners(),J=!D&&Kb(e,a),W=D&&$b(e,s,a,o);(J||W)&&(y={...y,...uv(g.data,e.options)}),a._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:j,status:N}=y;v=y.data;let C=!1;if(a.placeholderData!==void 0&&v===void 0&&N==="pending"){let D;c?.isPlaceholderData&&a.placeholderData===u?.placeholderData?(D=c.data,C=!0):D=typeof a.placeholderData=="function"?a.placeholderData(this.#m?.state.data,this.#m):a.placeholderData,D!==void 0&&(N="success",v=Uh(c?.data,D,a),b=!0)}if(a.select&&v!==void 0&&!C)if(c&&v===h?.data&&a.select===this.#d)v=this.#l;else try{this.#d=a.select,v=a.select(v),v=Uh(c?.data,v,a),this.#l=v,this.#o=null}catch(D){this.#o=D}this.#o&&(S=this.#o,v=this.#l,j=Date.now(),N="error");const T=y.fetchStatus==="fetching",E=N==="pending",R=N==="error",O=E&&T,G=v!==void 0,H={status:N,fetchStatus:y.fetchStatus,isPending:E,isSuccess:N==="success",isError:R,isInitialLoading:O,isLoading:O,data:v,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:T,isRefetching:T&&!E,isLoadingError:R&&!G,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:R&&G,isStale:Pf(e,a),refetch:this.refetch,promise:this.#r,isEnabled:Kt(a.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=H.data!==void 0,J=H.status==="error"&&!D,W=me=>{J?me.reject(H.error):D&&me.resolve(H.data)},X=()=>{const me=this.#r=H.promise=Lh();W(me)},Z=this.#r;switch(Z.status){case"pending":e.queryHash===s.queryHash&&W(Z);break;case"fulfilled":(J||H.data!==Z.value)&&X();break;case"rejected":(!J||H.error!==Z.reason)&&X();break}}return H}updateResult(){const e=this.#a,a=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#i=this.options,this.#s.data!==void 0&&(this.#m=this.#t),Ql(a,e))return;this.#a=a;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!this.#p.size)return!0;const h=new Set(c??this.#p);return this.options.throwOnError&&h.add("error"),Object.keys(this.#a).some(u=>{const p=u;return this.#a[p]!==e[p]&&h.has(p)})};this.#A({listeners:s()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const a=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(a?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#A(e){rt.batch(()=>{e.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function pN(e,a){return Kt(a.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Kt(a.retryOnMount,e)===!1)}function Kb(e,a){return pN(e,a)||e.state.data!==void 0&&Ih(e,a,a.refetchOnMount)}function Ih(e,a,s){if(Kt(a.enabled,e)!==!1&&Oa(a.staleTime,e)!=="static"){const o=typeof s=="function"?s(e):s;return o==="always"||o!==!1&&Pf(e,a)}return!1}function $b(e,a,s,o){return(e!==a||Kt(o.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&Pf(e,s)}function Pf(e,a){return Kt(a.enabled,e)!==!1&&e.isStaleByTime(Oa(a.staleTime,e))}function gN(e,a){return!Ql(e.getCurrentResult(),a)}var yN=class extends dv{#e;#t;#n;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||hv(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(a=>a!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const a=()=>{this.#s({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=cv({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,u)=>{this.#s({type:"failed",failureCount:h,error:u})},onPause:()=>{this.#s({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",c=!this.#a.canStart();try{if(o)a();else{this.#s({type:"pending",variables:e,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,s);const u=await this.options.onMutate?.(e,s);u!==this.state.context&&this.#s({type:"pending",context:u,variables:e,isPaused:c})}const h=await this.#a.start();return await this.#n.config.onSuccess?.(h,e,this.state.context,this,s),await this.options.onSuccess?.(h,e,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,e,this.state.context,s),this.#s({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,e,this.state.context,this,s)}catch(u){Promise.reject(u)}try{await this.options.onError?.(h,e,this.state.context,s)}catch(u){Promise.reject(u)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,h,e,this.state.context,s)}catch(u){Promise.reject(u)}throw this.#s({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#s(e){const a=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};
9case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=a(this.state),rt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function hv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bN=class extends Ns{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,a,s){const o=new yN({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(a),state:s});return this.add(o),o}add(e){this.#e.add(e);const a=vl(e);if(typeof a=="string"){const s=this.#t.get(a);s?s.push(e):this.#t.set(a,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const a=vl(e);if(typeof a=="string"){const s=this.#t.get(a);if(s)if(s.length>1){const o=s.indexOf(e);o!==-1&&s.splice(o,1)}else s[0]===e&&this.#t.delete(a)}}this.notify({type:"removed",mutation:e})}canRun(e){const a=vl(e);if(typeof a=="string"){const o=this.#t.get(a)?.find(c=>c.state.status==="pending");return!o||o===e}else return!0}runNext(e){const a=vl(e);return typeof a=="string"?this.#t.get(a)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){rt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const a={exact:!0,...e};return this.getAll().find(s=>Bb(a,s))}findAll(e={}){return this.getAll().filter(a=>Bb(e,a))}notify(e){rt.batch(()=>{this.listeners.forEach(a=>{a(e)})})}resumePausedMutations(){const e=this.getAll().filter(a=>a.state.isPaused);return rt.batch(()=>Promise.all(e.map(a=>a.continue().catch(Ct))))}};function vl(e){return e.options.scope?.id}var xN=class extends Ns{#e;#t=void 0;#n;#a;constructor(a,s){super(),this.#e=a,this.setOptions(s),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const s=this.options;this.options=this.#e.defaultMutationOptions(a),Ql(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&Si(s.mutationKey)!==Si(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#s(),this.#i(a)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#i()}mutate(a,s){return this.#a=s,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(a)}#s(){const a=this.#n?.state??hv();this.#t={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#i(a){rt.batch(()=>{if(this.#a&&this.hasListeners()){const s=this.#t.variables,o=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#a.onSuccess?.(a.data,s,o,c)}catch(h){Promise.reject(h)}try{this.#a.onSettled?.(a.data,null,s,o,c)}catch(h){Promise.reject(h)}}else if(a?.type==="error"){try{this.#a.onError?.(a.error,s,o,c)}catch(h){Promise.reject(h)}try{this.#a.onSettled?.(void 0,a.error,s,o,c)}catch(h){Promise.reject(h)}}}this.listeners.forEach(s=>{s(this.#t)})})}},vN=class extends Ns{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,a,s){const o=a.queryKey,c=a.queryHash??Rf(o,a);let h=this.get(c);return h||(h=new fN({client:e,queryKey:o,queryHash:c,options:e.defaultQueryOptions(a),state:s,defaultOptions:e.getQueryDefaults(o)}),this.add(h)),h}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const a=this.#e.get(e.queryHash);a&&(e.destroy(),a===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){rt.batch(()=>
vendor: 4,961 bytes, line 9
9{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const a={exact:!0,...e};return this.getAll().find(s=>_b(a,s))}findAll(e={}){const a=this.getAll();return Object.keys(e).length>0?a.filter(s=>_b(e,s)):a}notify(e){rt.batch(()=>{this.listeners.forEach(a=>{a(e)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wN=class{#e;#t;#n;#a;#s;#i;#r;#o;constructor(e={}){this.#e=e.queryCache||new vN,this.#t=e.mutationCache||new bN,this.#n=e.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=Df.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Xl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const a=this.defaultQueryOptions({queryKey:e});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(e){const a=this.defaultQueryOptions(e),s=this.#e.build(this,a),o=s.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(Oa(a.staleTime,s))&&this.prefetchQuery(a),Promise.resolve(o))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:a,state:s})=>{const o=s.data;return[a,o]})}setQueryData(e,a,s){const o=this.defaultQueryOptions({queryKey:e}),h=this.#e.get(o.queryHash)?.state.data,u=tN(a,h);if(u!==void 0)return this.#e.build(this,o).setData(u,{...s,manual:!0})}setQueriesData(e,a,s){return rt.batch(()=>this.#e.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,a,s)]))}getQueryState(e){const a=this.defaultQueryOptions({queryKey:e});return this.#e.get(a.queryHash)?.state}removeQueries(e){const a=this.#e;rt.batch(()=>{a.findAll(e).forEach(s=>{a.remove(s)})})}resetQueries(e,a){const s=this.#e;return rt.batch(()=>(s.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},a)))}cancelQueries(e,a={}){const s={revert:!0,...a},o=rt.batch(()=>this.#e.findAll(e).map(c=>c.cancel(s)));return Promise.all(o).then(Ct).catch(Ct)}invalidateQueries(e,a={}){return rt.batch(()=>(this.#e.findAll(e).forEach(s=>{s.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},a)))}refetchQueries(e,a={}){const s={...a,cancelRefetch:a.cancelRefetch??!0},o=rt.batch(()=>this.#e.findAll(e).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let h=c.fetch(void 0,s);return s.throwOnError||(h=h.catch(Ct)),c.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(Ct)}fetchQuery(e){const a=this.defaultQueryOptions(e);a.retry===void 0&&(a.retry=!1);const s=this.#e.build(this,a);return s.isStaleByTime(Oa(a.staleTime,s))?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ct).catch(Ct)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Xl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,a){this.#a.set(Si(e),{queryKey:e,defaultOptions:a})}getQueryDefaults(e){const a=[...this.#a.values()],s={};return a.forEach(o=>{Fo(e,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(e,a){this.#s.set(Si(e),{mutationKey:e,defaultOptions:a})}getMutationDefaults(e){const a=[...this.#s.values()],s={};return a.forEach(o=>{Fo(e,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const a={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return a.queryHash||(a.queryHash=Rf(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Mf&&(a.enabled=!1),a}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},fv=w.createContext(void 0),mv=e=>{const a=w.useContext(fv);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},SN=({client:e,children:a})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(fv.Provider,{value:e,children:a})),pv=w.createContext(!1),AN=()=>w.useContext(pv);pv.Provider;function jN(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
9var NN=w.createContext(jN()),kN=()=>w.useContext(NN),CN=(e,a,s)=>{const o=s?.state.error&&typeof e.throwOnError=="function"?Of(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||o)&&(a.isReset()||(e.retryOnMount=!1))},TN=e=>{w.useEffect(()=>{e.clearReset()},[e])},zN=({result:e,errorResetBoundary:a,throwOnError:s,query:o,suspense:c})=>e.isError&&!a.isReset()&&!e.isFetching&&o&&(c&&e.data===void 0||Of(s,[e.error,o])),EN=e=>{if(e.suspense){const s=c=>c==="static"?c:Math.max(c??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...c)=>s(o(...c)):s(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},DN=(e,a)=>e.isLoading&&e.isFetching&&!a,RN=(e,a)=>e?.suspense&&a.isPending,Jb=(e,a,s)=>a.fetchOptimistic(e).catch(()=>{s.clearReset()});function MN(e,a,s){const o=AN(),c=kN(),h=mv(),u=h.defaultQueryOptions(e);h.getDefaultOptions().queries?._experimental_beforeQuery?.(u);const p=h.getQueryCache().get(u.queryHash),m=e.subscribed!==!1;u._optimisticResults=o?"isRestoring":m?"optimistic":void 0,EN(u),CN(u,c,p),TN(c);const g=!h.getQueryCache().get(u.queryHash),[y]=w.useState(()=>new a(h,u)),b=y.getOptimisticResult(u),v=!o&&m;if(w.useSyncExternalStore(w.useCallback(S=>{const j=v?y.subscribe(rt.batchCalls(S)):Ct;return y.updateResult(),j},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),w.useEffect(()=>{y.setOptions(u)},[u,y]),RN(u,b))throw Jb(u,y,c);if(zN({result:b,errorResetBoundary:c,throwOnError:u.throwOnError,query:p,suspense:u.suspense}))throw b.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(u,b),u.experimental_prefetchInRender&&!qo.isServer()&&DN(b,o)&&(g?Jb(u,y,c):p?.promise)?.catch(Ct).finally(()=>{y.updateResult()}),u.notifyOnChangeProps?b:y.trackResult(b)}function ON(e,a){return MN(e,mN)}function bc(e,a){const s=mv(),[o]=w.useState(()=>new xN(s,e));w.useEffect(()=>{o.setOptions(e)},[o,e]);const c=w.useSyncExternalStore(w.useCallback(u=>o.subscribe(rt.batchCalls(u)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=w.useCallback((u,p)=>{o.mutate(u,p).catch(Ct)},[o]);if(c.error&&Of(o.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:h,mutateAsync:c.mutate}}const PN=1,GN=1e6;let oh=0;function UN(){return oh=(oh+1)%Number.MAX_SAFE_INTEGER,oh.toString()}const rh=new Map,Qb=e=>{if(rh.has(e))return;const a=setTimeout(()=>{rh.delete(e),Ho({type:"REMOVE_TOAST",toastId:e})},GN);rh.set(e,a)},LN=(e,a)=>{switch(a.type){case"ADD_TOAST":return{...e,toasts:[a.toast,...e.toasts].slice(0,PN)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(s=>s.id===a.toast.id?{...s,...a.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=a;return s?Qb(s):e.toasts.forEach(o=>{Qb(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return a.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==a.toastId)}}},Ll=[];let Hl={toasts:[]};function Ho(e){Hl=LN(Hl,e),Ll.forEach(a=>{a(Hl)})}function HN({...e}){const a=UN(),s=c=>Ho({type:"UPDATE_TOAST",toast:{...c,id:a}}),o=()=>Ho({type:"DISMISS_TOAST",toastId:a});return Ho({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:c=>{c||o()}}}),{id:a,dismiss:o,update:s}}function IN(){const[e,a]=w.useState(Hl);return w.useEffect(()=>(Ll.push(a),()=>{const s=Ll.indexOf(a);s>-1&&Ll.splice(s,1)}),[e]),{...e,toast:HN,dismiss:s=>Ho({type:"DISMISS_TOAST",toastId:s})}}var xc=Kx();function lt(e,a,{checkForDefaultPrevented:s=!0}={}){return function(c){if(e?.(c),s===!1||!c.defaultPrevented)return a?.(c)}}function Xb(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function _N(...e){return a=>{let s=!1;const o=e.map(c=>{const h=Xb(c,a);return!s&&typeof h=="function"&&(s=!0),h});if(s)return()=>{for(let c=0;c<o.length;c++){const h=o[c];typeof h=="function"?h():Xb(e[c],null)}}}}function vn(...e){return w.useCallback(_N(...e),e)}function vc(e,a=[]){let s=[];function o(h,u){const p=w.createContext(u);p.displayName=h+"Context";const m=s.length;s=[...s,u];const g=b=>{const{scope:v,children:S,...j}=b,N=v?.[e]?.[m]||p,C=w.useMemo(()=>j,Object.values(j));return r.jsx(N.Provider,{value:C,children:S})};g.displayName=h+"Provider";function y(b,v){const S=v?.[e]?.[m]||p,j=w.useContext(S);if(j)return j;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${h}\``)}return[g,y]}const c=()=>{const h=s.map(u=>w.createContext(u));return function(p){const m=p?.[e]||h;return w.useMemo(()=>({[`__scope${e}`]:{...p,[e]:m}}),[p,m])}};return c.scopeName=e,[o,BN(c,...a)]}function BN(...e){const a=e[0];if(e.length===1)return a;const s=()=>{const o=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(h){const u=o.reduce((p,{useScope:m,scopeName:g})=>{const b=m(h)[`__scope${g}`];return{...p,...b}},{});return w.useMemo(()=>({[`__scope${a.scopeName}`]:u}),[u])}};return s.scopeName=a.scopeName,s}function Zl(e){const a=w.forwardRef((s,o)=>{let{children:c,...h}=s,u=null,p=!1;const m=[];
9Zb(c)&&typeof wl=="function"&&(c=wl(c._payload)),w.Children.forEach(c,v=>{if(KN(v)){p=!0;const S=v;let j="child"in S.props?S.props.child:S.props.children;Zb(j)&&typeof wl=="function"&&(j=wl(j._payload)),u=qN(S,j),m.push(u?.props?.children)}else m.push(v)}),u?u=w.cloneElement(u,void 0,m):!p&&w.Children.count(c)===1&&w.isValidElement(c)&&(u=c);const g=u?YN(u):void 0,y=vn(o,g);if(!u){if(c||c===0)throw new Error(p?XN(e):QN(e));return c}const b=WN(h,u.props??{});return u.type!==w.Fragment&&(b.ref=o?y:g),w.cloneElement(u,b)});return a.displayName=`${e}.Slot`,a}var VN=Zl("Slot"),gv=Symbol.for("radix.slottable");function FN(e){const a=s=>"child"in s?s.children(s.child):s.children;return a.displayName=`${e}.Slottable`,a.__radixId=gv,a}var qN=(e,a)=>{if("child"in e.props){const s=e.props.child;return w.isValidElement(s)?w.cloneElement(s,void 0,e.props.children(s.props.children)):null}return w.isValidElement(a)?a:null};function WN(e,a){const s={...a};for(const o in a){const c=e[o],h=a[o];/^on[A-Z]/.test(o)?c&&h?s[o]=(...p)=>{const m=h(...p);return c(...p),m}:c&&(s[o]=c):o==="style"?s[o]={...c,...h}:o==="className"&&(s[o]=[c,h].filter(Boolean).join(" "))}return{...e,...s}}function YN(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function KN(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gv}var $N=Symbol.for("react.lazy");function Zb(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===$N&&"_payload"in e&&JN(e._payload)}function JN(e){return typeof e=="object"&&e!==null&&"then"in e}var QN=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,XN=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,wl=kf[" use ".trim().toString()];function ZN(e){const a=e+"CollectionProvider",[s,o]=vc(a),[c,h]=s(a,{collectionRef:{current:null},itemMap:new Map}),u=N=>{const{scope:C,children:T}=N,E=w.useRef(null),R=w.useRef(new Map).current;return r.jsx(c,{scope:C,itemMap:R,collectionRef:E,children:T})};u.displayName=a;const p=e+"CollectionSlot",m=Zl(p),g=w.forwardRef((N,C)=>{const{scope:T,children:E}=N,R=h(p,T),O=vn(C,R.collectionRef);return r.jsx(m,{ref:O,children:E})});g.displayName=p;const y=e+"CollectionItemSlot",b="data-radix-collection-item",v=Zl(y),S=w.forwardRef((N,C)=>{const{scope:T,children:E,...R}=N,O=w.useRef(null),G=vn(C,O),_=h(y,T);return w.useEffect(()=>(_.itemMap.set(O,{ref:O,...R}),()=>{_.itemMap.delete(O)})),r.jsx(v,{[b]:"",ref:G,children:E})});S.displayName=y;function j(N){const C=h(e+"CollectionConsumer",N);return w.useCallback(()=>{const E=C.collectionRef.current;if(!E)return[];const R=Array.from(E.querySelectorAll(`[${b}]`));return Array.from(C.itemMap.values()).sort((_,H)=>R.indexOf(_.ref.current)-R.indexOf(H.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:u,Slot:g,ItemSlot:S},j,o]}var ek=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ut=ek.reduce((e,a)=>{const s=Zl(`Primitive.${a}`),o=w.forwardRef((c,h)=>{const{asChild:u,...p}=c,m=u?s:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(m,{...p,ref:h})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{});function yv(e,a){e&&xc.flushSync(()=>e.dispatchEvent(a))}function Ga(e){const a=w.useRef(e);return w.useEffect(()=>{a.current=e}),w.useMemo(()=>((...s)=>a.current?.(...s)),[])}function tk(e,a=globalThis?.document){const s=Ga(e);w.useEffect(()=>{const o=c=>{c.key==="Escape"&&s(c)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[s,a])}var nk="DismissableLayer",_h="dismissableLayer.update",ak="dismissableLayer.pointerDownOutside",ik="dismissableLayer.focusOutside",e0,bv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gf=w.forwardRef((e,a)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:h,onInteractOutside:u,onDismiss:p,...m}=e,g=w.useContext(bv),[y,b]=w.useState(null),v=y?.ownerDocument??globalThis?.document,[,S]=w.useState({}),j=vn(a,H=>b(H)),N=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=N.indexOf(C),E=y?N.indexOf(y):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,O=E>=T,G=ok(H=>{const D=H.target,J=[...g.branches].some(W=>W.contains(D));!O||J||(c?.(H),u?.(H),H.defaultPrevented||p?.())},v),_=rk(H=>{const D=H.target;[...g.branches].some(W=>W.contains(D))||(h?.(H),u?.(H),H.defaultPrevented||p?.())},v);return tk(H=>{E===g.layers.size-1&&(o?.(H),!H.defaultPrevented&&p&&(H.preventDefault(),p()))},v),w.useEffect(()=>{if(y)return s&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(e0=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),t0(),()=>{s&&(g.layersWithOutsidePointerEventsDisabled.delete(y),g.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=e0))}},[y,v,s,g]),w.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),t0())},[y,g]),w.useEffect(()=>{const H=()=>S({});return document.addEventListener(_h,H),()=>document.removeEventListener(_h,H)},[]),r.jsx(Ut.div,{...m,ref:j,style:{pointerEvents:R?O?"auto":"none":void 0,...e.style},onFocusCapture:lt(e.onFocusCapture,_.onFocusCapture),onBlurCapture:lt(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:lt(e.onPointerDownCapture,G.onPointerDownCapture)})});Gf.displayName=nk;var sk="DismissableLayerBranch",xv=w.forwardRef((e,a)=>{const s=w.useContext(bv),o=w.useRef(null),c=vn(a,o);return w.useEffect(()=>{const h=o.current;if(h)return s.branches.add(h),()=>{s.branches.delete(h)}},[s.branches]),r.jsx(Ut.div,{...e,ref:c})});xv.displayName=sk;function ok(e,a=globalThis?.document){const s=Ga(e),o=w.useRef(!1),c=w.useRef(()=>{});return w.useEffect(()=>{const h=p=>
vendor: 4,285 bytes, line 9
9{if(p.target&&!o.current){let m=function(){vv(ak,s,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=m,a.addEventListener("click",c.current,{once:!0})):m()}else a.removeEventListener("click",c.current);o.current=!1},u=window.setTimeout(()=>{a.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(u),a.removeEventListener("pointerdown",h),a.removeEventListener("click",c.current)}},[a,s]),{onPointerDownCapture:()=>o.current=!0}}function rk(e,a=globalThis?.document){const s=Ga(e),o=w.useRef(!1);return w.useEffect(()=>{const c=h=>{h.target&&!o.current&&vv(ik,s,{originalEvent:h},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,s]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function t0(){const e=new CustomEvent(_h);document.dispatchEvent(e)}function vv(e,a,s,{discrete:o}){const c=s.originalEvent.target,h=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:s});a&&c.addEventListener(e,a,{once:!0}),o?yv(c,h):c.dispatchEvent(h)}var lk=Gf,ck=xv,aa=globalThis?.document?w.useLayoutEffect:()=>{},dk="Portal",Uf=w.forwardRef((e,a)=>{const{container:s,...o}=e,[c,h]=w.useState(!1);aa(()=>h(!0),[]);const u=s||c&&globalThis?.document?.body;return u?xc.createPortal(r.jsx(Ut.div,{...o,ref:a}),u):null});Uf.displayName=dk;function uk(e,a){return w.useReducer((s,o)=>a[s][o]??s,e)}var wc=e=>{const{present:a,children:s}=e,o=hk(a),c=typeof s=="function"?s({present:o.isPresent}):w.Children.only(s),h=fk(o.ref,mk(c));return typeof s=="function"||o.isPresent?w.cloneElement(c,{ref:h}):null};wc.displayName="Presence";function hk(e){const[a,s]=w.useState(),o=w.useRef(null),c=w.useRef(e),h=w.useRef("none"),u=e?"mounted":"unmounted",[p,m]=uk(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const g=Sl(o.current);h.current=p==="mounted"?g:"none"},[p]),aa(()=>{const g=o.current,y=c.current;if(y!==e){const v=h.current,S=Sl(g);e?m("MOUNT"):S==="none"||g?.display==="none"?m("UNMOUNT"):m(y&&v!==S?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,m]),aa(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,b=S=>{const N=Sl(o.current).includes(CSS.escape(S.animationName));if(S.target===a&&N&&(m("ANIMATION_END"),!c.current)){const C=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=C)})}},v=S=>{S.target===a&&(h.current=Sl(o.current))};return a.addEventListener("animationstart",v),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",v),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else m("ANIMATION_END")},[a,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:w.useCallback(g=>{o.current=g?getComputedStyle(g):null,s(g)},[])}}function n0(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function fk(...e){const a=w.useRef(e);return a.current=e,w.useCallback(s=>{const o=a.current;let c=!1;const h=o.map(u=>{const p=n0(u,s);return!c&&typeof p=="function"&&(c=!0),p});if(c)return()=>{for(let u=0;u<h.length;u++){const p=h[u];typeof p=="function"?p():n0(o[u],null)}}},[])}function Sl(e){return e?.animationName||"none"}function mk(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var pk=kf[" useInsertionEffect ".trim().toString()]||aa;function gk({prop:e,defaultProp:a,onChange:s=()=>{},caller:o}){const[c,h,u]=yk({defaultProp:a,onChange:s}),p=e!==void 0,m=p?e:c;{const y=w.useRef(e!==void 0);w.useEffect(()=>{const b=y.current;b!==p&&console.warn(`${o} is changing from ${b?"controlled":"uncontrolled"} to ${p?"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.`),y.current=p},[p,o])}const g=w.useCallback(y=>
9{if(p){const b=bk(y)?y(e):y;b!==e&&u.current?.(b)}else h(y)},[p,e,h,u]);return[m,g]}function yk({defaultProp:e,onChange:a}){const[s,o]=w.useState(e),c=w.useRef(s),h=w.useRef(a);return pk(()=>{h.current=a},[a]),w.useEffect(()=>{c.current!==s&&(h.current?.(s),c.current=s)},[s,c]),[s,o,h]}function bk(e){return typeof e=="function"}var xk=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"}),vk="VisuallyHidden",Sc=w.forwardRef((e,a)=>r.jsx(Ut.span,{...e,ref:a,style:{...xk,...e.style}}));Sc.displayName=vk;var wk=Sc,Lf="ToastProvider",[Hf,Sk,Ak]=ZN("Toast"),[wv]=vc("Toast",[Ak]),[jk,Ac]=wv(Lf),Sv=e=>{const{__scopeToast:a,label:s="Notification",duration:o=5e3,swipeDirection:c="right",swipeThreshold:h=50,announcerContainer:u,children:p}=e,[m,g]=w.useState(null),[y,b]=w.useState(0),v=w.useRef(!1),S=w.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Lf}\`. Expected non-empty \`string\`.`),r.jsx(Hf.Provider,{scope:a,children:r.jsx(jk,{scope:a,label:s,duration:o,swipeDirection:c,swipeThreshold:h,toastCount:y,viewport:m,onViewportChange:g,onToastAdd:w.useCallback(()=>b(j=>j+1),[]),onToastRemove:w.useCallback(()=>b(j=>j-1),[]),isFocusedToastEscapeKeyDownRef:v,isClosePausedRef:S,announcerContainer:u,children:p})})};Sv.displayName=Lf;var Av="ToastViewport",Nk=["F8"],Bh="toast.viewportPause",Vh="toast.viewportResume",jv=w.forwardRef((e,a)=>{const{__scopeToast:s,hotkey:o=Nk,label:c="Notifications ({hotkey})",...h}=e,u=Ac(Av,s),p=Sk(s),m=w.useRef(null),g=w.useRef(null),y=w.useRef(null),b=w.useRef(null),v=vn(a,b,u.onViewportChange),S=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=u.toastCount>0;w.useEffect(()=>{const C=T=>{o.length!==0&&o.every(R=>T[R]||T.code===R)&&b.current?.focus()};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[o]),w.useEffect(()=>{const C=m.current,T=b.current;if(j&&C&&T){const E=()=>{if(!u.isClosePausedRef.current){const _=new CustomEvent(Bh);T.dispatchEvent(_),u.isClosePausedRef.current=!0}},R=()=>{if(u.isClosePausedRef.current){const _=new CustomEvent(Vh);T.dispatchEvent(_),u.isClosePausedRef.current=!1}},O=_=>{!C.contains(_.relatedTarget)&&R()},G=()=>{C.contains(document.activeElement)||R()};return C.addEventListener("focusin",E),C.addEventListener("focusout",O),C.addEventListener("pointermove",E),C.addEventListener("pointerleave",G),window.addEventListener("blur",E),window.addEventListener("focus",R),()=>{C.removeEventListener("focusin",E),C.removeEventListener("focusout",O),C.removeEventListener("pointermove",E),C.removeEventListener("pointerleave",G),window.removeEventListener("blur",E),window.removeEventListener("focus",R)}}},[j,u.isClosePausedRef]);const N=w.useCallback(({tabbingDirection:C})=>{const E=p().map(R=>{const O=R.ref.current,G=[O,...Lk(O)];return C==="forwards"?G:G.reverse()});return(C==="forwards"?E.reverse():E).flat()},[p]);return w.useEffect(()=>{const C=b.current;if(C){const T=E=>{const R=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!R){const G=document.activeElement,_=E.shiftKey;if(E.target===C&&_){g.current?.focus();return}const J=N({tabbingDirection:_?"backwards":"forwards"}),W=J.findIndex(X=>X===G);lh(J.slice(W+1))?E.preventDefault():_?g.current?.focus():y.current?.focus()}};return C.addEventListener("keydown",T),()=>C.removeEventListener("keydown",T)}},[p,N]),r.jsxs(ck,{ref:m,role:"region","aria-label":c.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:j?void 0:"none"},children:[j&&r.jsx(Fh,{ref:g,onFocusFromOutsideViewport:()=>{const C=N({tabbingDirection:"forwards"});lh(C)}}),r.jsx(Hf.Slot,{scope:s,children:r.jsx(Ut.ol,{tabIndex:-1,...h,ref:v})}),j&&r.jsx(Fh,{ref:y,onFocusFromOutsideViewport:()=>{const C=N({tabbingDirection:"backwards"});lh(C)}})]})});jv.displayName=Av;var Nv="ToastFocusProxy",Fh=w.forwardRef((e,a)=>{const{__scopeToast:s,onFocusFromOutsideViewport:o,...c}=e,h=Ac(Nv,s);return r.jsx(Sc,{tabIndex:0,...c,ref:a,style:{position:"fixed"},onFocus:u=>{const p=u.relatedTarget;!h.viewport?.contains(p)&&o()}})});Fh.displayName=Nv;var Zo="Toast",kk="toast.swipeStart",Ck="toast.swipeMove",Tk="toast.swipeCancel",zk="toast.swipeEnd",kv=w.forwardRef((e,a)=>{const{forceMount:s,open:o,defaultOpen:c,onOpenChange:h,...u}=e,[p,m]=gk({prop:o,defaultProp:c??!0,onChange:h,caller:Zo});return r.jsx(wc,{present:s||p,children:r.jsx(Rk,{open:p,...u,ref:a,onClose:()=>m(!1),onPause:Ga(e.onPause),onResume:Ga(e.onResume),onSwipeStart:lt(e.onSwipeStart,g=>{g.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:lt(e.onSwipeMove,g=>{const{x:y,y:b}=g.detail.delta;g.currentTarget.setAttribute("data-swipe","move"),g.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),g.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${b}px`)}),onSwipeCancel:lt(e.onSwipeCancel,g=>{g.currentTarget.setAttribute("data-swipe","cancel"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),g.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:lt(e.onSwipeEnd,g=>{const{x:y,y:b}=g.detail.delta;g.currentTarget.setAttribute("data-swipe","end"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),g.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),g.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${b}px`),m(!1)})})})});kv.displayName=Zo;var[Ek,Dk]=wv(Zo,{onClose(){}}),Rk=w.forwardRef((e,a)=>{const{__scopeToast:s,type:o="foreground",duration:c,open:h,onClose:u,onEscapeKeyDown:p,onPause:m,onResume:g,onSwipeStart:y,onSwipeMove:b,onSwipeCancel:v,onSwipeEnd:S,...j}=e,N=Ac(Zo,s),[C,T]=w.useState(null),E=vn(a,ne=>T(ne)),R=w.useRef(null),O=w.useRef(null),G=c||N.duration,_=w.useRef(0),H=w.useRef(G),D=w.useRef(0),{onToastAdd:J,onToastRemove:W}=N,X=Ga(()=>{C?.contains(document.activeElement)&&N.viewport?.focus(),u()}),Z=w.useCallback(ne=>
9{!ne||ne===1/0||(window.clearTimeout(D.current),_.current=new Date().getTime(),D.current=window.setTimeout(X,ne))},[X]);w.useEffect(()=>{const ne=N.viewport;if(ne){const ue=()=>{Z(H.current),g?.()},P=()=>{const B=new Date().getTime()-_.current;H.current=H.current-B,window.clearTimeout(D.current),m?.()};return ne.addEventListener(Bh,P),ne.addEventListener(Vh,ue),()=>{ne.removeEventListener(Bh,P),ne.removeEventListener(Vh,ue)}}},[N.viewport,G,m,g,Z]),w.useEffect(()=>{h&&!N.isClosePausedRef.current&&Z(G)},[h,G,N.isClosePausedRef,Z]),w.useEffect(()=>(J(),()=>W()),[J,W]);const me=w.useMemo(()=>C?Mv(C):null,[C]);return N.viewport?r.jsxs(r.Fragment,{children:[me&&r.jsx(Mk,{__scopeToast:s,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:me}),r.jsx(Ek,{scope:s,onClose:X,children:xc.createPortal(r.jsx(Hf.ItemSlot,{scope:s,children:r.jsx(lk,{asChild:!0,onEscapeKeyDown:lt(p,()=>{N.isFocusedToastEscapeKeyDownRef.current||X(),N.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(Ut.li,{tabIndex:0,"data-state":h?"open":"closed","data-swipe-direction":N.swipeDirection,...j,ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:lt(e.onKeyDown,ne=>{ne.key==="Escape"&&(p?.(ne.nativeEvent),ne.nativeEvent.defaultPrevented||(N.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:lt(e.onPointerDown,ne=>{ne.button===0&&(R.current={x:ne.clientX,y:ne.clientY})}),onPointerMove:lt(e.onPointerMove,ne=>{if(!R.current)return;const ue=ne.clientX-R.current.x,P=ne.clientY-R.current.y,B=!!O.current,F=["left","right"].includes(N.swipeDirection),ae=["left","up"].includes(N.swipeDirection)?Math.min:Math.max,k=F?ae(0,ue):0,Y=F?0:ae(0,P),ee=ne.pointerType==="touch"?10:2,te={x:k,y:Y},le={originalEvent:ne,delta:te};B?(O.current=te,Al(Ck,b,le,{discrete:!1})):a0(te,N.swipeDirection,ee)?(O.current=te,Al(kk,y,le,{discrete:!1}),ne.target.setPointerCapture(ne.pointerId)):(Math.abs(ue)>ee||Math.abs(P)>ee)&&(R.current=null)}),onPointerUp:lt(e.onPointerUp,ne=>{const ue=O.current,P=ne.target;if(P.hasPointerCapture(ne.pointerId)&&P.releasePointerCapture(ne.pointerId),O.current=null,R.current=null,ue){const B=ne.currentTarget,F={originalEvent:ne,delta:ue};a0(ue,N.swipeDirection,N.swipeThreshold)?Al(zk,S,F,{discrete:!0}):Al(Tk,v,F,{discrete:!0}),B.addEventListener("click",ae=>ae.preventDefault(),{once:!0})}})})})}),N.viewport)})]}):null}),Mk=e=>{const{__scopeToast:a,children:s,...o}=e,c=Ac(Zo,a),[h,u]=w.useState(!1),[p,m]=w.useState(!1);return Gk(()=>u(!0)),w.useEffect(()=>{const g=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(g)},[]),p?null:r.jsx(Uf,{asChild:!0,container:c.announcerContainer||void 0,children:r.jsx(Sc,{...o,children:h&&r.jsxs(r.Fragment,{children:[c.label," ",s]})})})},Ok="ToastTitle",Cv=w.forwardRef((e,a)=>{const{__scopeToast:s,...o}=e;return r.jsx(Ut.div,{...o,ref:a})});Cv.displayName=Ok;var Pk="ToastDescription",Tv=w.forwardRef((e,a)=>{const{__scopeToast:s,...o}=e;return r.jsx(Ut.div,{...o,ref:a})});Tv.displayName=Pk;var zv="ToastAction",Ev=w.forwardRef((e,a)=>{const{altText:s,...o}=e;return s.trim()?r.jsx(Rv,{altText:s,asChild:!0,children:r.jsx(If,{...o,ref:a})}):(console.error(`Invalid prop \`altText\` supplied to \`${zv}\`. Expected non-empty \`string\`.`),null)});Ev.displayName=zv;var Dv="ToastClose",If=w.forwardRef((e,a)=>{const{__scopeToast:s,...o}=e,c=Dk(Dv,s);return r.jsx(Rv,{asChild:!0,children:r.jsx(Ut.button,{type:"button",...o,ref:a,onClick:lt(e.onClick,c.onClose)})})});If.displayName=Dv;var Rv=w.forwardRef((e,a)=>{const{__scopeToast:s,altText:o,...c}=e;return r.jsx(Ut.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...c,ref:a})});function Mv(e){const a=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&a.push(o.textContent),Uk(o)){const c=o.ariaHidden||o.hidden||o.style.display==="none",h=o.dataset.radixToastAnnounceExclude==="";if(!c)if(h){const u=o.dataset.radixToastAnnounceAlt;u&&a.push(u)}else a.push(...Mv(o))}}),a}function Al(e,a,s,{discrete:o}){const c=s.originalEvent.currentTarget,h=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:s});a&&c.addEventListener(e,a,{once:!0}),o?yv(c,h):c.dispatchEvent(h)}var a0=(e,a,s=0)=>{const o=Math.abs(e.x),c=Math.abs(e.y),h=o>c;return a==="left"||a==="right"?h&&o>s:!h&&c>s};function Gk(e=()=>{}){const a=Ga(e);aa(()=>{let s=0,o=0;return s=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(a)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(o)}},[a])}
vendor: 5,501 bytes, line 9
9function Uk(e){return e.nodeType===e.ELEMENT_NODE}function Lk(e){const a=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)a.push(s.currentNode);return a}function lh(e){const a=document.activeElement;return e.some(s=>s===a?!0:(s.focus(),document.activeElement!==a))}var Hk=Sv,Ov=jv,Pv=kv,Gv=Cv,Uv=Tv,Lv=Ev,Hv=If;function Iv(e){var a,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var c=e.length;for(a=0;a<c;a++)e[a]&&(s=Iv(e[a]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function _v(){for(var e,a,s=0,o="",c=arguments.length;s<c;s++)(e=arguments[s])&&(a=Iv(e))&&(o&&(o+=" "),o+=a);return o}const i0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,s0=_v,Bv=(e,a)=>s=>{var o;if(a?.variants==null)return s0(e,s?.class,s?.className);const{variants:c,defaultVariants:h}=a,u=Object.keys(c).map(g=>{const y=s?.[g],b=h?.[g];if(y===null)return null;const v=i0(y)||i0(b);return c[g][v]}),p=s&&Object.entries(s).reduce((g,y)=>{let[b,v]=y;return v===void 0||(g[b]=v),g},{}),m=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((g,y)=>{let{class:b,className:v,...S}=y;return Object.entries(S).every(j=>{let[N,C]=j;return Array.isArray(C)?C.includes({...h,...p}[N]):{...h,...p}[N]===C})?[...g,b,v]:g},[]);return s0(e,u,m,s?.class,s?.className)};const Ik=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_k=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,s,o)=>o?o.toUpperCase():s.toLowerCase()),o0=e=>{const a=_k(e);return a.charAt(0).toUpperCase()+a.slice(1)},Vv=(...e)=>e.filter((a,s,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===s).join(" ").trim(),Bk=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var Vk={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"};const Fk=w.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:h,iconNode:u,...p},m)=>w.createElement("svg",{ref:m,...Vk,width:a,height:a,stroke:e,strokeWidth:o?Number(s)*24/Number(a):s,className:Vv("lucide",c),...!h&&!Bk(p)&&{"aria-hidden":"true"},...p},[...u.map(([g,y])=>w.createElement(g,y)),...Array.isArray(h)?h:[h]]));const he=(e,a)=>{const s=w.forwardRef(({className:o,...c},h)=>w.createElement(Fk,{ref:h,iconNode:a,className:Vv(`lucide-${Ik(o0(e))}`,`lucide-${e}`,o),...c}));return s.displayName=o0(e),s};const qk=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Wk=he("activity",qk);const Yk=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],Kk=he("arrow-down-to-line",Yk);const $k=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ec=he("arrow-left",$k);const Jk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ze=he("arrow-right",Jk);const Qk=[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]],Xk=he("arrow-up-to-line",Qk);const Zk=[["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"}]],_f=he("book-open",Zk);const eC=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],vs=he("building-2",eC);const tC=[["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"}]],nC=he("calendar-days",tC);const aC=[["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"}]],Pa=he("calendar",aC);const iC=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],sC=he("camera",iC);const oC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fv=he("check",oC);const rC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bi=he("chevron-down",rC);const lC=[["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"}]],Bf=he("circle-alert",lC);const cC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ua=he("circle-check",cC);const dC=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],uC=he("circle-check-big",dC);
9const hC=[["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"}]],fC=he("clipboard-list",hC);const mC=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],qv=he("clock",mC);const pC=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],jc=he("cloud-upload",pC);const gC=[["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"}]],Wv=he("copy",gC);const yC=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],na=he("download",yC);const bC=[["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"}]],yt=he("external-link",bC);const xC=[["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"}]],Il=he("file-text",xC);const vC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Vf=he("film",vC);const wC=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],r0=he("flag",wC);const SC=[["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"}]],Ff=he("globe",SC);const AC=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],Yv=he("heart-handshake",AC);const jC=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],tc=he("heart",jC);const NC=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],kC=he("image-plus",NC);const CC=[["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"}]],TC=he("image",CC);const zC=[["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"}]],EC=he("lightbulb",zC);const DC=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],RC=he("list",DC);const MC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],bt=he("loader-circle",MC);const OC=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Nc=he("log-out",OC);const PC=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],qh=he("mail",PC);const GC=[["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"}]],Kv=he("map-pin",GC);const UC=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],$v=he("megaphone",UC);const LC=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],HC=he("menu",LC);const IC=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Jv=he("mic",IC);const _C=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["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-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}
9],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],xi=he("newspaper",_C);const BC=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],fs=he("play",BC);const VC=[["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"}]],kc=he("refresh-cw",VC);const FC=[["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"}]],ch=he("rotate-ccw",FC);const qC=[["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"}]],WC=he("save",qC);const YC=[["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"}]],Qv=he("shield-check",YC);const KC=[["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"}]],$C=he("shield",KC);const JC=[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]],Xv=he("shirt",JC);const QC=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Zv=he("shopping-bag",QC);const XC=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],ZC=he("smartphone",XC);const eT=[["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"}]],tT=he("star",eT);const nT=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],aT=he("stethoscope",nT);const iT=[["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"}]],sT=he("target",iT);const oT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],qf=he("trash-2",oT);const rT=[["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"}]],ew=he("triangle-alert",rT);const lT=[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]],cT=he("tv",lT);const dT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],l0=he("user-plus",dT);const uT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Cc=he("users",uT);const hT=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Wo=he("video",hT);const fT=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],mT=he("volume-2",fT);const pT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 6,730 bytes, line 9
9],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oa=he("x",pT);const gT=[["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"}]],yT=he("youtube",gT);const bT=[["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"}]],xT=he("zap",bT),vT=(e,a)=>{const s=new Array(e.length+a.length);for(let o=0;o<e.length;o++)s[o]=e[o];for(let o=0;o<a.length;o++)s[e.length+o]=a[o];return s},wT=(e,a)=>({classGroupId:e,validator:a}),tw=(e=new Map,a=null,s)=>({nextPart:e,validators:a,classGroupId:s}),nc="-",c0=[],ST="arbitrary..",AT=e=>{const a=NT(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return jT(u);const p=u.split(nc),m=p[0]===""&&p.length>1?1:0;return nw(p,m,a)},getConflictingClassGroupIds:(u,p)=>{if(p){const m=o[u],g=s[u];return m?g?vT(g,m):m:g||c0}return s[u]||c0}}},nw=(e,a,s)=>{if(e.length-a===0)return s.classGroupId;const c=e[a],h=s.nextPart.get(c);if(h){const g=nw(e,a+1,h);if(g)return g}const u=s.validators;if(u===null)return;const p=a===0?e.join(nc):e.slice(a).join(nc),m=u.length;for(let g=0;g<m;g++){const y=u[g];if(y.validator(p))return y.classGroupId}},jT=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),s=a.indexOf(":"),o=a.slice(0,s);return o?ST+o:void 0})(),NT=e=>{const{theme:a,classGroups:s}=e;return kT(s,a)},kT=(e,a)=>{const s=tw();for(const o in e){const c=e[o];Wf(c,s,o,a)}return s},Wf=(e,a,s,o)=>{const c=e.length;for(let h=0;h<c;h++){const u=e[h];CT(u,a,s,o)}},CT=(e,a,s,o)=>{if(typeof e=="string"){TT(e,a,s);return}if(typeof e=="function"){zT(e,a,s,o);return}ET(e,a,s,o)},TT=(e,a,s)=>{const o=e===""?a:aw(a,e);o.classGroupId=s},zT=(e,a,s,o)=>{if(DT(e)){Wf(e(o),a,s,o);return}a.validators===null&&(a.validators=[]),a.validators.push(wT(s,e))},ET=(e,a,s,o)=>{const c=Object.entries(e),h=c.length;for(let u=0;u<h;u++){const[p,m]=c[u];Wf(m,aw(a,p),s,o)}},aw=(e,a)=>{let s=e;const o=a.split(nc),c=o.length;for(let h=0;h<c;h++){const u=o[h];let p=s.nextPart.get(u);p||(p=tw(),s.nextPart.set(u,p)),s=p}return s},DT=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,RT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,s=Object.create(null),o=Object.create(null);const c=(h,u)=>{s[h]=u,a++,a>e&&(a=0,o=s,s=Object.create(null))};return{get(h){let u=s[h];if(u!==void 0)return u;if((u=o[h])!==void 0)return c(h,u),u},set(h,u){h in s?s[h]=u:c(h,u)}}},Wh="!",d0=":",MT=[],u0=(e,a,s,o,c)=>({modifiers:e,hasImportantModifier:a,baseClassName:s,maybePostfixModifierPosition:o,isExternal:c}),OT=e=>{const{prefix:a,experimentalParseClassName:s}=e;let o=c=>{const h=[];let u=0,p=0,m=0,g;const y=c.length;for(let N=0;N<y;N++){const C=c[N];if(u===0&&p===0){if(C===d0){h.push(c.slice(m,N)),m=N+1;continue}if(C==="/"){g=N;continue}}C==="["?u++:C==="]"?u--:C==="("?p++:C===")"&&p--}const b=h.length===0?c:c.slice(m);let v=b,S=!1;b.endsWith(Wh)?(v=b.slice(0,-1),S=!0):b.startsWith(Wh)&&(v=b.slice(1),S=!0);const j=g&&g>m?g-m:void 0;return u0(h,S,v,j)};if(a){const c=a+d0,h=o;o=u=>u.startsWith(c)?h(u.slice(c.length)):u0(MT,!1,u,void 0,!0)}if(s){const c=o;o=h=>s({className:h,parseClassName:c})}return o},PT=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((s,o)=>{a.set(s,1e6+o)}),s=>{const o=[];let c=[];for(let h=0;h<s.length;h++){const u=s[h],p=u[0]==="[",m=a.has(u);p||m?(c.length>0&&(c.sort(),o.push(...c),c=[]),o.push(u)):c.push(u)}return c.length>0&&(c.sort(),o.push(...c)),o}},GT=e=>({cache:RT(e.cacheSize),parseClassName:OT(e),sortModifiers:PT(e),postfixLookupClassGroupIds:UT(e),...AT(e)}),UT=e=>{const a=Object.create(null),s=e.postfixLookupClassGroups;if(s)for(let o=0;o<s.length;o++)a[s[o]]=!0;return a},LT=/\s+/,HT=(e,a)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:h,postfixLookupClassGroupIds:u}=a,p=[],m=e.trim().split(LT);let g="";for(let y=m.length-1;y>=0;y-=1){const b=m[y],{isExternal:v,modifiers:S,hasImportantModifier:j,baseClassName:N,maybePostfixModifierPosition:C}=s(b);if(v){g=b+(g.length>0?" "+g:g);continue}let T=!!C,E;if(T){const H=N.substring(0,C);E=o(H);const D=E&&u[E]?o(N):void 0;D&&D!==E&&(E=D,T=!1)}else E=o(N);if(!E){if(!T){g=b+(g.length>0?" "+g:g);continue}if(E=o(N),!E){g=b+(g.length>0?" "+g:g);continue}T=!1}const R=S.length===0?"":S.length===1?S[0]:h(S).join(":"),O=j?R+Wh:R,G=O+E;if(p.indexOf(G)>-1)continue;p.push(G);const _=c(E,T);for(let H=0;H<_.length;++H){const D=_[H];p.push(O+D)}g=b+(g.length>0?" "+g:g)}return g},IT=(...e)=>{let a=0,s,o,c="";for(;a<e.length;)(s=e[a++])&&(o=iw(s))&&(c&&(c+=" "),c+=o);return c},iw=e=>{if(typeof e=="string")return e;let a,s="";for(let o=0;o<e.length;o++)e[o]&&(a=iw(e[o]))&&(s&&(s+=" "),s+=a);return s},_T=(e,...a)=>{let s,o,c,h;const u=m=>{const g=a.reduce((y,b)=>b(y),e());return s=GT(g),o=s.cache.get,c=s.cache.set,h=p,p(m)},p=m=>{const g=o(m);if(g)return g;const y=HT(m,s);return c(m,y),y};return h=u,(...m)=>h(IT(...m))},BT=[],st=e=>{const a=s=>s[e]||BT;return a.isThemeGetter=!0,a},sw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ow=/^\((?:(\w[\w-]*):)?(.+)\)$/i,VT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,FT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qT=/\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$/,WT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ra=e=>VT.test(e),je=e=>!!e&&!Number.isNaN(Number(e)),Tn=e=>!!e&&Number.isInteger(Number(e)),dh=e=>e.endsWith("%")&&je(e.slice(0,-1)),ea=e=>FT.test(e),rw=()=>!0,$T=e=>qT.test(e)&&!WT.test(e),Yf=()=>!1,JT=e=>YT.test(e),QT=e=>KT.test(e),XT=e=>!oe(e)&&!re(e),ZT=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),e4=e=>Ba(e,dw,Yf),oe=e=>sw.test(e),ci=e=>Ba(e,uw,$T),h0=e=>Ba(e,l4,je),t4=e=>Ba(e,fw,rw),n4=e=>Ba(e,hw,Yf),f0=e=>Ba(e,lw,Yf),a4=e=>Ba(e,cw,QT),jl=e=>Ba(e,mw,JT),re=e=>ow.test(e),Mo=e=>Ni(e,uw),i4=e=>Ni(e,hw),m0=e=>Ni(e,lw),s4=e=>Ni(e,dw),o4=e=>Ni(e,cw),Nl=e=>Ni(e,mw,!0),r4=e=>Ni(e,fw,!0),Ba=(e,a,s)=>{const o=sw.exec(e);return o?o[1]?a(o[1]):s(o[2]):!1},Ni=(e,a,s=!1)=>{const o=ow.exec(e);return o?o[1]?a(o[1]):s:!1},lw=e=>e==="position"||e==="percentage",cw=e=>e==="image"||e==="url",dw=e=>e==="length"||e==="size"||e==="bg-size",uw=e=>e==="length",l4=e=>e==="number",hw=e=>
vendor: 8,816 bytes, line 9
9e==="family-name",fw=e=>e==="number"||e==="weight",mw=e=>e==="shadow",c4=()=>{const e=st("color"),a=st("font"),s=st("text"),o=st("font-weight"),c=st("tracking"),h=st("leading"),u=st("breakpoint"),p=st("container"),m=st("spacing"),g=st("radius"),y=st("shadow"),b=st("inset-shadow"),v=st("text-shadow"),S=st("drop-shadow"),j=st("blur"),N=st("perspective"),C=st("aspect"),T=st("ease"),E=st("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...O(),re,oe],_=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],D=()=>[re,oe,m],J=()=>[Ra,"full","auto",...D()],W=()=>[Tn,"none","subgrid",re,oe],X=()=>["auto",{span:["full",Tn,re,oe]},Tn,re,oe],Z=()=>[Tn,"auto",re,oe],me=()=>["auto","min","max","fr",re,oe],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...D()],B=()=>[Ra,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],F=()=>[Ra,"screen","full","dvw","lvw","svw","min","max","fit",...D()],ae=()=>[Ra,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],k=()=>[e,re,oe],Y=()=>[...O(),m0,f0,{position:[re,oe]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",s4,e4,{size:[re,oe]}],le=()=>[dh,Mo,ci],ye=()=>["","none","full",g,re,oe],se=()=>["",je,Mo,ci],We=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ze=()=>[je,dh,m0,f0],Dt=()=>["","none",j,re,oe],Lt=()=>["none",je,re,oe],Xt=()=>["none",je,re,oe],Zt=()=>[je,re,oe],wt=()=>[Ra,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ea],breakpoint:[ea],color:[rw],container:[ea],"drop-shadow":[ea],ease:["in","out","in-out"],font:[XT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ea],shadow:[ea],spacing:["px",je],text:[ea],"text-shadow":[ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ra,oe,re,C]}],container:["container"],"container-type":[{"@container":["","normal","size",re,oe]}],"container-named":[ZT],columns:[{columns:[je,oe,re,p]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:G()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{"inset-s":J(),start:J()}],end:[{"inset-e":J(),end:J()}],"inset-bs":[{"inset-bs":J()}],"inset-be":[{"inset-be":J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[Tn,"auto",re,oe]}],basis:[{basis:[Ra,"full","auto",p,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Ra,"auto","initial","none",oe]}],grow:[{grow:["",je,re,oe]}],shrink:[{shrink:["",je,re,oe]}],order:[{order:[Tn,"first","last","none",re,oe]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[p,"screen",...B()]}],"min-w":[{"min-w":[p,"screen","none",...B()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[u]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",s,Mo,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,r4,t4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dh,oe]}],"font-family":[{font:[i4,n4,a]}],"font-features":[{"font-features":[oe]}],"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:[c,re,oe]}],"line-clamp":[{"line-clamp":[je,"none",re,h0]}],leading:[{leading:[h,...D()]}],"list-image":[{"list-image":["none",re,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,oe]}],"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:[...We(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",re,ci]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[je,"auto",re,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"tab-size":[{tab:[Tn,re,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,oe]}],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",re,oe]}],"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:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tn,re,oe],radial:["",re,oe],conic:[Tn,re,oe]},o4,a4]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:le()}
vendor: 7,429 bytes, line 9
9],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:ye()}],"rounded-s":[{"rounded-s":ye()}],"rounded-e":[{"rounded-e":ye()}],"rounded-t":[{"rounded-t":ye()}],"rounded-r":[{"rounded-r":ye()}],"rounded-b":[{"rounded-b":ye()}],"rounded-l":[{"rounded-l":ye()}],"rounded-ss":[{"rounded-ss":ye()}],"rounded-se":[{"rounded-se":ye()}],"rounded-ee":[{"rounded-ee":ye()}],"rounded-es":[{"rounded-es":ye()}],"rounded-tl":[{"rounded-tl":ye()}],"rounded-tr":[{"rounded-tr":ye()}],"rounded-br":[{"rounded-br":ye()}],"rounded-bl":[{"rounded-bl":ye()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...We(),"hidden","none"]}],"divide-style":[{divide:[...We(),"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-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":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:[...We(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,re,oe]}],"outline-w":[{outline:["",je,Mo,ci]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",y,Nl,jl]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",b,Nl,jl]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[je,ci]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",v,Nl,jl]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[je,re,oe]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":ze()}],"mask-image-linear-to-pos":[{"mask-linear-to":ze()}],"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":ze()}],"mask-image-t-to-pos":[{"mask-t-to":ze()}],"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":ze()}],"mask-image-r-to-pos":[{"mask-r-to":ze()}],"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":ze()}],"mask-image-b-to-pos":[{"mask-b-to":ze()}],"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":ze()}],"mask-image-l-to-pos":[{"mask-l-to":ze()}],"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":ze()}],"mask-image-x-to-pos":[{"mask-x-to":ze()}],"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":ze()}],"mask-image-y-to-pos":[{"mask-y-to":ze()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[re,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ze()}],"mask-image-radial-to-pos":[{"mask-radial-to":ze()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ze()}],"mask-image-conic-to-pos":[{"mask-conic-to":ze()}],"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:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,oe]}],filter:[{filter:["","none",re,oe]}],blur:[{blur:Dt()}],brightness:[{brightness:[je,re,oe]}],contrast:[{contrast:[je,re,oe]}],"drop-shadow":[{"drop-shadow":["","none",S,Nl,jl]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",je,re,oe]}],"hue-rotate":[{"hue-rotate":[je,re,oe]}],invert:[{invert:["",je,re,oe]}],saturate:[{saturate:[je,re,oe]}],sepia:[{sepia:["",je,re,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",re,oe]}],"backdrop-blur":[{"backdrop-blur":Dt()}],"backdrop-brightness":[{"backdrop-brightness":[je,re,oe]}],"backdrop-contrast":[{"backdrop-contrast":[je,re,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,re,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,re,oe]}],"backdrop-invert":[{"backdrop-invert":["",je,re,oe]}],"backdrop-opacity":[{"backdrop-opacity":[je,re,oe]}],"backdrop-saturate":[{"backdrop-saturate":[je,re,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,re,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",re,oe]}],ease:[{ease:["linear","initial",T,re,oe]}],delay:[{delay:[je,re,oe]}],animate:[{animate:["none",E,re,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,re,oe]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Lt()}],"rotate-x":[{"rotate-x":Lt()}],"rotate-y":[{"rotate-y":Lt()}],"rotate-z":[{"rotate-z":Lt()}],scale:[{scale:Xt()}],"scale-x":[{"scale-x":Xt()}],"scale-y":[{"scale-y":Xt()}],"scale-z":[{"scale-z":Xt()}],"scale-3d":["scale-3d"],skew:[{skew:Zt()}],"skew-x":[{"skew-x":Zt()}],"skew-y":[{"skew-y":Zt()}],transform:[{transform:[re,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wt()}],"translate-x":[{"translate-x":wt()}],"translate-y":[{"translate-y":wt()}],"translate-z":[{"translate-z":wt()}],"translate-none":["translate-none"],zoom:[{zoom:[Tn,re,oe]}],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}
9],"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",re,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",re,oe]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[je,Mo,ci,h0]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},d4=_T(c4);function Et(...e){return d4(_v(e))}const u4=Hk,pw=w.forwardRef(({className:e,...a},s)=>r.jsx(Ov,{ref:s,className:Et("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...a}));pw.displayName=Ov.displayName;const h4=Bv("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"}}),gw=w.forwardRef(({className:e,variant:a,...s},o)=>r.jsx(Pv,{ref:o,className:Et(h4({variant:a}),e),...s}));gw.displayName=Pv.displayName;const f4=w.forwardRef(({className:e,...a},s)=>r.jsx(Lv,{ref:s,className:Et("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",e),...a}));f4.displayName=Lv.displayName;const yw=w.forwardRef(({className:e,...a},s)=>r.jsx(Hv,{ref:s,className:Et("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 6,187 bytes, line 9
9/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",e),"toast-close":"",...a,children:r.jsx(oa,{className:"h-4 w-4"})}));yw.displayName=Hv.displayName;const bw=w.forwardRef(({className:e,...a},s)=>r.jsx(Gv,{ref:s,className:Et("text-sm font-semibold",e),...a}));bw.displayName=Gv.displayName;const xw=w.forwardRef(({className:e,...a},s)=>r.jsx(Uv,{ref:s,className:Et("text-sm opacity-90",e),...a}));xw.displayName=Uv.displayName;function m4(){const{toasts:e}=IN();return r.jsxs(u4,{children:[e.map(function({id:a,title:s,description:o,action:c,...h}){return r.jsxs(gw,{...h,children:[r.jsxs("div",{className:"grid gap-1",children:[s&&r.jsx(bw,{children:s}),o&&r.jsx(xw,{children:o})]}),c,r.jsx(yw,{})]},a)}),r.jsx(pw,{})]})}const p4=["top","right","bottom","left"],La=Math.min,$t=Math.max,ac=Math.round,kl=Math.floor,Rn=e=>({x:e,y:e}),g4={left:"right",right:"left",bottom:"top",top:"bottom"};function Yh(e,a,s){return $t(e,La(a,s))}function ia(e,a){return typeof e=="function"?e(a):e}function sa(e){return e.split("-")[0]}function ks(e){return e.split("-")[1]}function Kf(e){return e==="x"?"y":"x"}function $f(e){return e==="y"?"height":"width"}function Dn(e){const a=e[0];return a==="t"||a==="b"?"y":"x"}function Jf(e){return Kf(Dn(e))}function y4(e,a,s){s===void 0&&(s=!1);const o=ks(e),c=Jf(e),h=$f(c);let u=c==="x"?o===(s?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[h]>a.floating[h]&&(u=ic(u)),[u,ic(u)]}function b4(e){const a=ic(e);return[Kh(e),a,Kh(a)]}function Kh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const p0=["left","right"],g0=["right","left"],x4=["top","bottom"],v4=["bottom","top"];function w4(e,a,s){switch(e){case"top":case"bottom":return s?a?g0:p0:a?p0:g0;case"left":case"right":return a?x4:v4;default:return[]}}function S4(e,a,s,o){const c=ks(e);let h=w4(sa(e),s==="start",o);return c&&(h=h.map(u=>u+"-"+c),a&&(h=h.concat(h.map(Kh)))),h}function ic(e){const a=sa(e);return g4[a]+e.slice(a.length)}function A4(e){return{top:0,right:0,bottom:0,left:0,...e}}function vw(e){return typeof e!="number"?A4(e):{top:e,right:e,bottom:e,left:e}}function sc(e){const{x:a,y:s,width:o,height:c}=e;return{width:o,height:c,top:s,left:a,right:a+o,bottom:s+c,x:a,y:s}}function y0(e,a,s){let{reference:o,floating:c}=e;const h=Dn(a),u=Jf(a),p=$f(u),m=sa(a),g=h==="y",y=o.x+o.width/2-c.width/2,b=o.y+o.height/2-c.height/2,v=o[p]/2-c[p]/2;let S;switch(m){case"top":S={x:y,y:o.y-c.height};break;case"bottom":S={x:y,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y:b};break;case"left":S={x:o.x-c.width,y:b};break;default:S={x:o.x,y:o.y}}switch(ks(a)){case"start":S[u]-=v*(s&&g?-1:1);break;case"end":S[u]+=v*(s&&g?-1:1);break}return S}async function j4(e,a){var s;a===void 0&&(a={});const{x:o,y:c,platform:h,rects:u,elements:p,strategy:m}=e,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:v=!1,padding:S=0}=ia(a,e),j=vw(S),C=p[v?b==="floating"?"reference":"floating":b],T=sc(await h.getClippingRect({element:(s=await(h.isElement==null?void 0:h.isElement(C)))==null||s?C:C.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(p.floating)),boundary:g,rootBoundary:y,strategy:m})),E=b==="floating"?{x:o,y:c,width:u.floating.width,height:u.floating.height}:u.reference,R=await(h.getOffsetParent==null?void 0:h.getOffsetParent(p.floating)),O=await(h.isElement==null?void 0:h.isElement(R))?await(h.getScale==null?void 0:h.getScale(R))||{x:1,y:1}:{x:1,y:1},G=sc(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:E,offsetParent:R,strategy:m}):E);return{top:(T.top-G.top+j.top)/O.y,bottom:(G.bottom-T.bottom+j.bottom)/O.y,left:(T.left-G.left+j.left)/O.x,right:(G.right-T.right+j.right)/O.x}}const N4=50,k4=async(e,a,s)=>{const{placement:o="bottom",strategy:c="absolute",middleware:h=[],platform:u}=s,p=u.detectOverflow?u:{...u,detectOverflow:j4},m=await(u.isRTL==null?void 0:u.isRTL(a));let g=await u.getElementRects({reference:e,floating:a,strategy:c}),{x:y,y:b}=y0(g,o,m),v=o,S=0;const j={};for(let N=0;N<h.length;N++){const C=h[N];if(!C)continue;const{name:T,fn:E}=C,{x:R,y:O,data:G,reset:_}=await E({x:y,y:b,initialPlacement:o,placement:v,strategy:c,middlewareData:j,rects:g,platform:p,elements:{reference:e,floating:a}});y=R??y,b=O??b,j[T]={...j[T],...G},_&&S<N4&&(S++,typeof _=="object"&&(_.placement&&(v=_.placement),_.rects&&(g=_.rects===!0?await u.getElementRects({reference:e,floating:a,strategy:c}):_.rects),{x:y,y:b}=y0(g,v,m)),N=-1)}return{x:y,y:b,placement:v,strategy:c,middlewareData:j}},C4=e=>({name:"arrow",options:e,async fn(a){const{x:s,y:o,placement:c,rects:h,platform:u,elements:p,middlewareData:m}=a,{element:g,padding:y=0}=ia(e,a)||{};if(g==null)return{};const b=vw(y),v={x:s,y:o},S=Jf(c),j=$f(S),N=await u.getDimensions(g),C=S==="y",T=C?"top":"left",E=C?"bottom":"right",R=C?"clientHeight":"clientWidth",O=h.reference[j]+h.reference[S]-v[S]-h.floating[j],G=v[S]-h.reference[S],_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let H=_?_[R]:0;(!H||!await(u.isElement==null?void 0:u.isElement(_)))&&(H=p.floating[R]||h.floating[j]);const D=O/2-G/2,J=H/2-N[j]/2-1,W=La(b[T],J),X=La(b[E],J),Z=W,me=H-N[j]-X,ne=H/2-N[j]/2+D,ue=Yh(Z,ne,me),P=!m.arrow&&ks(c)!=null&&ne!==ue&&h.reference[j]/2-(ne<Z?W:X)-N[j]/2<0,B=P?ne<Z?ne-Z:ne-me:0;return{[S]:v[S]+B,data:{[S]:ue,centerOffset:ne-ue-B,...P&&{alignmentOffset:B}},reset:P}}}),T4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(a){var s,o;const{placement:c,middlewareData:h,rects:u,initialPlacement:p,platform:m,elements:g}=a,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:v,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:N=!0,...C}=ia(e,a);if((s=h.arrow)!=null&&s.alignmentOffset)return{};const T=sa(c),E=Dn(p),R=sa(p)===p,O=await(m.isRTL==null?void 0:m.isRTL(g.floating)),G=v||(R||!N?[ic(p)]:b4(p)
vendor: 4,560 bytes, line 9
9),_=j!=="none";!v&&_&&G.push(...S4(p,N,j,O));const H=[p,...G],D=await m.detectOverflow(a,C),J=[];let W=((o=h.flip)==null?void 0:o.overflows)||[];if(y&&J.push(D[T]),b){const ne=y4(c,u,O);J.push(D[ne[0]],D[ne[1]])}if(W=[...W,{placement:c,overflows:J}],!J.every(ne=>ne<=0)){var X,Z;const ne=(((X=h.flip)==null?void 0:X.index)||0)+1,ue=H[ne];if(ue&&(!(b==="alignment"?E!==Dn(ue):!1)||W.every(F=>Dn(F.placement)===E?F.overflows[0]>0:!0)))return{data:{index:ne,overflows:W},reset:{placement:ue}};let P=(Z=W.filter(B=>B.overflows[0]<=0).sort((B,F)=>B.overflows[1]-F.overflows[1])[0])==null?void 0:Z.placement;if(!P)switch(S){case"bestFit":{var me;const B=(me=W.filter(F=>{if(_){const ae=Dn(F.placement);return ae===E||ae==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(ae=>ae>0).reduce((ae,k)=>ae+k,0)]).sort((F,ae)=>F[1]-ae[1])[0])==null?void 0:me[0];B&&(P=B);break}case"initialPlacement":P=p;break}if(c!==P)return{reset:{placement:P}}}return{}}}};function b0(e,a){return{top:e.top-a.height,right:e.right-a.width,bottom:e.bottom-a.height,left:e.left-a.width}}function x0(e){return p4.some(a=>e[a]>=0)}const z4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(a){const{rects:s,platform:o}=a,{strategy:c="referenceHidden",...h}=ia(e,a);switch(c){case"referenceHidden":{const u=await o.detectOverflow(a,{...h,elementContext:"reference"}),p=b0(u,s.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:x0(p)}}}case"escaped":{const u=await o.detectOverflow(a,{...h,altBoundary:!0}),p=b0(u,s.floating);return{data:{escapedOffsets:p,escaped:x0(p)}}}default:return{}}}}},ww=new Set(["left","top"]);async function E4(e,a){const{placement:s,platform:o,elements:c}=e,h=await(o.isRTL==null?void 0:o.isRTL(c.floating)),u=sa(s),p=ks(s),m=Dn(s)==="y",g=ww.has(u)?-1:1,y=h&&m?-1:1,b=ia(a,e);let{mainAxis:v,crossAxis:S,alignmentAxis:j}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return p&&typeof j=="number"&&(S=p==="end"?j*-1:j),m?{x:S*y,y:v*g}:{x:v*g,y:S*y}}const D4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(a){var s,o;const{x:c,y:h,placement:u,middlewareData:p}=a,m=await E4(a,e);return u===((s=p.offset)==null?void 0:s.placement)&&(o=p.arrow)!=null&&o.alignmentOffset?{}:{x:c+m.x,y:h+m.y,data:{...m,placement:u}}}}},R4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(a){const{x:s,y:o,placement:c,platform:h}=a,{mainAxis:u=!0,crossAxis:p=!1,limiter:m={fn:T=>{let{x:E,y:R}=T;return{x:E,y:R}}},...g}=ia(e,a),y={x:s,y:o},b=await h.detectOverflow(a,g),v=Dn(sa(c)),S=Kf(v);let j=y[S],N=y[v];if(u){const T=S==="y"?"top":"left",E=S==="y"?"bottom":"right",R=j+b[T],O=j-b[E];j=Yh(R,j,O)}if(p){const T=v==="y"?"top":"left",E=v==="y"?"bottom":"right",R=N+b[T],O=N-b[E];N=Yh(R,N,O)}const C=m.fn({...a,[S]:j,[v]:N});return{...C,data:{x:C.x-s,y:C.y-o,enabled:{[S]:u,[v]:p}}}}}},M4=function(e){return e===void 0&&(e={}),{options:e,fn(a){const{x:s,y:o,placement:c,rects:h,middlewareData:u}=a,{offset:p=0,mainAxis:m=!0,crossAxis:g=!0}=ia(e,a),y={x:s,y:o},b=Dn(c),v=Kf(b);let S=y[v],j=y[b];const N=ia(p,a),C=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(m){const R=v==="y"?"height":"width",O=h.reference[v]-h.floating[R]+C.mainAxis,G=h.reference[v]+h.reference[R]-C.mainAxis;S<O?S=O:S>G&&(S=G)}if(g){var T,E;const R=v==="y"?"width":"height",O=ww.has(sa(c)),G=h.reference[b]-h.floating[R]+(O&&((T=u.offset)==null?void 0:T[b])||0)+(O?0:C.crossAxis),_=h.reference[b]+h.reference[R]+(O?0:((E=u.offset)==null?void 0:E[b])||0)-(O?C.crossAxis:0);j<G?j=G:j>_&&(j=_)}return{[v]:S,[b]:j}}}},O4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(a){var s,o;const{placement:c,rects:h,platform:u,elements:p}=a,{apply:m=()=>{},...g}=ia(e,a),y=await u.detectOverflow(a,g),b=sa(c),v=ks(c),S=Dn(c)==="y",{width:j,height:N}=h.floating;let C,T;b==="top"||b==="bottom"?(C=b,T=v===(await(u.isRTL==null?void 0:u.isRTL(p.floating))?"start":"end")?"left":"right"):(T=b,C=v==="end"?"top":"bottom");const E=N-y.top-y.bottom,R=j-y.left-y.right,O=La(N-y[C],E),G=La(j-y[T],R),_=!a.middlewareData.shift;let H=O,D=G;if((s=a.middlewareData.shift)!=null&&s.enabled.x&&(D=R),(o=a.middlewareData.shift)!=null&&o.enabled.y&&(H=E),_&&!v){const W=$t(y.left,0),X=$t(y.right,0),Z=$t(y.top,0),me=$t(y.bottom,0);S?D=j-2*(W!==0||X!==0?W+X:$t(y.left,y.right)):H=N-2*(Z!==0||me!==0?Z+me:$t(y.top,y.bottom))}await m({...a,availableWidth:D,availableHeight:H});const J=await u.getDimensions(p.floating);
9return j!==J.width||N!==J.height?{reset:{rects:!0}}:{}}}};function Tc(){return typeof window<"u"}function Cs(e){return Sw(e)?(e.nodeName||"").toLowerCase():"#document"}function Jt(e){var a;return(e==null||(a=e.ownerDocument)==null?void 0:a.defaultView)||window}function Un(e){var a;return(a=(Sw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:a.documentElement}function Sw(e){return Tc()?e instanceof Node||e instanceof Jt(e).Node:!1}function wn(e){return Tc()?e instanceof Element||e instanceof Jt(e).Element:!1}function ra(e){return Tc()?e instanceof HTMLElement||e instanceof Jt(e).HTMLElement:!1}function v0(e){return!Tc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Jt(e).ShadowRoot}function er(e){const{overflow:a,overflowX:s,overflowY:o,display:c}=Sn(e);return/auto|scroll|overlay|hidden|clip/.test(a+o+s)&&c!=="inline"&&c!=="contents"}function P4(e){return/^(table|td|th)$/.test(Cs(e))}function zc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const G4=/transform|translate|scale|rotate|perspective|filter/,U4=/paint|layout|strict|content/,di=e=>!!e&&e!=="none";let uh;function Qf(e){const a=wn(e)?Sn(e):e;return di(a.transform)||di(a.translate)||di(a.scale)||di(a.rotate)||di(a.perspective)||!Xf()&&(di(a.backdropFilter)||di(a.filter))||G4.test(a.willChange||"")||U4.test(a.contain||"")}function L4(e){let a=Ha(e);for(;ra(a)&&!ws(a);){if(Qf(a))return a;if(zc(a))return null;a=Ha(a)}return null}function Xf(){return uh==null&&(uh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),uh}function ws(e){return/^(html|body|#document)$/.test(Cs(e))}function Sn(e){return Jt(e).getComputedStyle(e)}function Ec(e){return wn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ha(e){if(Cs(e)==="html")return e;const a=e.assignedSlot||e.parentNode||v0(e)&&e.host||Un(e);return v0(a)?a.host:a}function Aw(e){const a=Ha(e);return ws(a)?e.ownerDocument?e.ownerDocument.body:e.body:ra(a)&&er(a)?a:Aw(a)}function Yo(e,a,s){var o;a===void 0&&(a=[]),s===void 0&&(s=!0);const c=Aw(e),h=c===((o=e.ownerDocument)==null?void 0:o.body),u=Jt(c);if(h){const p=$h(u);return a.concat(u,u.visualViewport||[],er(c)?c:[],p&&s?Yo(p):[])}else return a.concat(c,Yo(c,[],s))}function $h(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jw(e){const a=Sn(e);let s=parseFloat(a.width)||0,o=parseFloat(a.height)||0;const c=ra(e),h=c?e.offsetWidth:s,u=c?e.offsetHeight:o,p=ac(s)!==h||ac(o)!==u;return p&&(s=h,o=u),{width:s,height:o,$:p}}function Zf(e){return wn(e)?e:e.contextElement}function bs(e){const a=Zf(e);if(!ra(a))return Rn(1);const s=a.getBoundingClientRect(),{width:o,height:c,$:h}=jw(a);let u=(h?ac(s.width):s.width)/o,p=(h?ac(s.height):s.height)/c;return(!u||!Number.isFinite(u))&&(u=1),(!p||!Number.isFinite(p))&&(p=1),{x:u,y:p}}const H4=Rn(0);function Nw(e){const a=Jt(e);return!Xf()||!a.visualViewport?H4:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function I4(e,a,s){return a===void 0&&(a=!1),!s||a&&s!==Jt(e)?!1:a}function Ai(e,a,s,o){a===void 0&&(a=!1),s===void 0&&(s=!1);const c=e.getBoundingClientRect(),h=Zf(e);let u=Rn(1);a&&(o?wn(o)&&(u=bs(o)):u=bs(e));const p=I4(h,s,o)?Nw(h):Rn(0);let m=(c.left+p.x)/u.x,g=(c.top+p.y)/u.y,y=c.width/u.x,b=c.height/u.y;if(h){const v=Jt(h),S=o&&wn(o)?Jt(o):o;let j=v,N=$h(j);for(;N&&o&&S!==j;){const C=bs(N),T=N.getBoundingClientRect(),E=Sn(N),R=T.left+(N.clientLeft+parseFloat(E.paddingLeft))*C.x,O=T.top+(N.clientTop+parseFloat(E.paddingTop))*C.y;m*=C.x,g*=C.y,y*=C.x,b*=C.y,m+=R,g+=O,j=Jt(N),N=$h(j)}}return sc({width:y,height:b,x:m,y:g})}function Dc(e,a){const s=Ec(e).scrollLeft;return a?a.left+s:Ai(Un(e)).left+s}function kw(e,a){const s=e.getBoundingClientRect(),o=s.left+a.scrollLeft-Dc(e,s),c=s.top+a.scrollTop;return{x:o,y:c}}function _4(e){let{elements:a,rect:s,offsetParent:o,strategy:c}=e;const h=c==="fixed",u=Un(o),p=a?zc(a.floating):!1;if(o===u||p&&h)return s;let m={scrollLeft:0,scrollTop:0},g=Rn(1);const y=Rn(0),b=ra(o);if((b||!b&&!h)&&((Cs(o)!=="body"||er(u))&&(m=Ec(o)),b)){const S=Ai(o);g=bs(o),y.x=S.x+o.clientLeft,y.y=S.y+o.clientTop}const v=u&&!b&&!h?kw(u,m):Rn(0);return{width:s.width*g.x,height:s.height*g.y,x:s.x*g.x-m.scrollLeft*g.x+y.x+v.x,y:s.y*g.y-m.scrollTop*g.y+y.y+v.y}}function B4(e){return Array.from(e.getClientRects())}function V4(e){const a=Un(e),s=Ec(e),o=e.ownerDocument.body,c=$t(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),h=$t(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight);let u=-s.scrollLeft+Dc(e);const p=-s.scrollTop;return Sn(o).direction==="rtl"&&(u+=$t(a.clientWidth,o.clientWidth)-c),{width:c,height:h,x:u,y:p}}const w0=25;
vendor: 4,157 bytes, line 9
9function F4(e,a){const s=Jt(e),o=Un(e),c=s.visualViewport;let h=o.clientWidth,u=o.clientHeight,p=0,m=0;if(c){h=c.width,u=c.height;const y=Xf();(!y||y&&a==="fixed")&&(p=c.offsetLeft,m=c.offsetTop)}const g=Dc(o);if(g<=0){const y=o.ownerDocument,b=y.body,v=getComputedStyle(b),S=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,j=Math.abs(o.clientWidth-b.clientWidth-S);j<=w0&&(h-=j)}else g<=w0&&(h+=g);return{width:h,height:u,x:p,y:m}}function q4(e,a){const s=Ai(e,!0,a==="fixed"),o=s.top+e.clientTop,c=s.left+e.clientLeft,h=ra(e)?bs(e):Rn(1),u=e.clientWidth*h.x,p=e.clientHeight*h.y,m=c*h.x,g=o*h.y;return{width:u,height:p,x:m,y:g}}function S0(e,a,s){let o;if(a==="viewport")o=F4(e,s);else if(a==="document")o=V4(Un(e));else if(wn(a))o=q4(a,s);else{const c=Nw(e);o={x:a.x-c.x,y:a.y-c.y,width:a.width,height:a.height}}return sc(o)}function Cw(e,a){const s=Ha(e);return s===a||!wn(s)||ws(s)?!1:Sn(s).position==="fixed"||Cw(s,a)}function W4(e,a){const s=a.get(e);if(s)return s;let o=Yo(e,[],!1).filter(p=>wn(p)&&Cs(p)!=="body"),c=null;const h=Sn(e).position==="fixed";let u=h?Ha(e):e;for(;wn(u)&&!ws(u);){const p=Sn(u),m=Qf(u);!m&&p.position==="fixed"&&(c=null),(h?!m&&!c:!m&&p.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||er(u)&&!m&&Cw(e,u))?o=o.filter(y=>y!==u):c=p,u=Ha(u)}return a.set(e,o),o}function Y4(e){let{element:a,boundary:s,rootBoundary:o,strategy:c}=e;const u=[...s==="clippingAncestors"?zc(a)?[]:W4(a,this._c):[].concat(s),o],p=S0(a,u[0],c);let m=p.top,g=p.right,y=p.bottom,b=p.left;for(let v=1;v<u.length;v++){const S=S0(a,u[v],c);m=$t(S.top,m),g=La(S.right,g),y=La(S.bottom,y),b=$t(S.left,b)}return{width:g-b,height:y-m,x:b,y:m}}function K4(e){const{width:a,height:s}=jw(e);return{width:a,height:s}}function $4(e,a,s){const o=ra(a),c=Un(a),h=s==="fixed",u=Ai(e,!0,h,a);let p={scrollLeft:0,scrollTop:0};const m=Rn(0);function g(){m.x=Dc(c)}if(o||!o&&!h)if((Cs(a)!=="body"||er(c))&&(p=Ec(a)),o){const S=Ai(a,!0,h,a);m.x=S.x+a.clientLeft,m.y=S.y+a.clientTop}else c&&g();h&&!o&&c&&g();const y=c&&!o&&!h?kw(c,p):Rn(0),b=u.left+p.scrollLeft-m.x-y.x,v=u.top+p.scrollTop-m.y-y.y;return{x:b,y:v,width:u.width,height:u.height}}function hh(e){return Sn(e).position==="static"}function A0(e,a){if(!ra(e)||Sn(e).position==="fixed")return null;if(a)return a(e);let s=e.offsetParent;return Un(e)===s&&(s=s.ownerDocument.body),s}function Tw(e,a){const s=Jt(e);if(zc(e))return s;if(!ra(e)){let c=Ha(e);for(;c&&!ws(c);){if(wn(c)&&!hh(c))return c;c=Ha(c)}return s}let o=A0(e,a);for(;o&&P4(o)&&hh(o);)o=A0(o,a);return o&&ws(o)&&hh(o)&&!Qf(o)?s:o||L4(e)||s}const J4=async function(e){const a=this.getOffsetParent||Tw,s=this.getDimensions,o=await s(e.floating);return{reference:$4(e.reference,await a(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Q4(e){return Sn(e).direction==="rtl"}const X4={convertOffsetParentRelativeRectToViewportRelativeRect:_4,getDocumentElement:Un,getClippingRect:Y4,getOffsetParent:Tw,getElementRects:J4,getClientRects:B4,getDimensions:K4,getScale:bs,isElement:wn,isRTL:Q4};function zw(e,a){return e.x===a.x&&e.y===a.y&&e.width===a.width&&e.height===a.height}function Z4(e,a){let s=null,o;const c=Un(e);function h(){var p;clearTimeout(o),(p=s)==null||p.disconnect(),s=null}function u(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),h();const g=e.getBoundingClientRect(),{left:y,top:b,width:v,height:S}=g;if(p||a(),!v||!S)return;const j=kl(b),N=kl(c.clientWidth-(y+v)),C=kl(c.clientHeight-(b+S)),T=kl(y),R={rootMargin:-j+"px "+-N+"px "+-C+"px "+-T+"px",threshold:$t(0,La(1,m))||1};let O=!0;function G(_){const H=_[0].intersectionRatio;if(H!==m){if(!O)return u();H?u(!1,H):o=setTimeout(()=>{u(!1,1e-7)},1e3)}H===1&&!zw(g,e.getBoundingClientRect())&&u(),O=!1}try{s=new IntersectionObserver(G,{...R,root:c.ownerDocument})}catch{s=new IntersectionObserver(G,R)}s.observe(e)}return u(!0),h}function ez(e,a,s,o){o===void 0&&(o={});const{ancestorScroll:c=!0,ancestorResize:h=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=o,g=Zf(e),y=c||h?[...g?Yo(g):[],...a?Yo(a):[]]:[];
vendor: 4,331 bytes, line 9
9y.forEach(T=>{c&&T.addEventListener("scroll",s,{passive:!0}),h&&T.addEventListener("resize",s)});const b=g&&p?Z4(g,s):null;let v=-1,S=null;u&&(S=new ResizeObserver(T=>{let[E]=T;E&&E.target===g&&S&&a&&(S.unobserve(a),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(a)})),s()}),g&&!m&&S.observe(g),a&&S.observe(a));let j,N=m?Ai(e):null;m&&C();function C(){const T=Ai(e);N&&!zw(N,T)&&s(),N=T,j=requestAnimationFrame(C)}return s(),()=>{var T;y.forEach(E=>{c&&E.removeEventListener("scroll",s),h&&E.removeEventListener("resize",s)}),b?.(),(T=S)==null||T.disconnect(),S=null,m&&cancelAnimationFrame(j)}}const tz=D4,nz=R4,az=T4,iz=O4,sz=z4,j0=C4,oz=M4,rz=(e,a,s)=>{const o=new Map,c={platform:X4,...s},h={...c.platform,_c:o};return k4(e,a,{...c,platform:h})};var lz=typeof document<"u",cz=function(){},_l=lz?w.useLayoutEffect:cz;function oc(e,a){if(e===a)return!0;if(typeof e!=typeof a)return!1;if(typeof e=="function"&&e.toString()===a.toString())return!0;let s,o,c;if(e&&a&&typeof e=="object"){if(Array.isArray(e)){if(s=e.length,s!==a.length)return!1;for(o=s;o--!==0;)if(!oc(e[o],a[o]))return!1;return!0}if(c=Object.keys(e),s=c.length,s!==Object.keys(a).length)return!1;for(o=s;o--!==0;)if(!{}.hasOwnProperty.call(a,c[o]))return!1;for(o=s;o--!==0;){const h=c[o];if(!(h==="_owner"&&e.$$typeof)&&!oc(e[h],a[h]))return!1}return!0}return e!==e&&a!==a}function Ew(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function N0(e,a){const s=Ew(e);return Math.round(a*s)/s}function fh(e){const a=w.useRef(e);return _l(()=>{a.current=e}),a}function dz(e){e===void 0&&(e={});const{placement:a="bottom",strategy:s="absolute",middleware:o=[],platform:c,elements:{reference:h,floating:u}={},transform:p=!0,whileElementsMounted:m,open:g}=e,[y,b]=w.useState({x:0,y:0,strategy:s,placement:a,middlewareData:{},isPositioned:!1}),[v,S]=w.useState(o);oc(v,o)||S(o);const[j,N]=w.useState(null),[C,T]=w.useState(null),E=w.useCallback(F=>{F!==_.current&&(_.current=F,N(F))},[]),R=w.useCallback(F=>{F!==H.current&&(H.current=F,T(F))},[]),O=h||j,G=u||C,_=w.useRef(null),H=w.useRef(null),D=w.useRef(y),J=m!=null,W=fh(m),X=fh(c),Z=fh(g),me=w.useCallback(()=>{if(!_.current||!H.current)return;const F={placement:a,strategy:s,middleware:v};X.current&&(F.platform=X.current),rz(_.current,H.current,F).then(ae=>{const k={...ae,isPositioned:Z.current!==!1};ne.current&&!oc(D.current,k)&&(D.current=k,xc.flushSync(()=>{b(k)}))})},[v,a,s,X,Z]);_l(()=>{g===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,b(F=>({...F,isPositioned:!1})))},[g]);const ne=w.useRef(!1);_l(()=>(ne.current=!0,()=>{ne.current=!1}),[]),_l(()=>{if(O&&(_.current=O),G&&(H.current=G),O&&G){if(W.current)return W.current(O,G,me);me()}},[O,G,me,W,J]);const ue=w.useMemo(()=>({reference:_,floating:H,setReference:E,setFloating:R}),[E,R]),P=w.useMemo(()=>({reference:O,floating:G}),[O,G]),B=w.useMemo(()=>{const F={position:s,left:0,top:0};if(!P.floating)return F;const ae=N0(P.floating,y.x),k=N0(P.floating,y.y);return p?{...F,transform:"translate("+ae+"px, "+k+"px)",...Ew(P.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:ae,top:k}},[s,p,P.floating,y.x,y.y]);return w.useMemo(()=>({...y,update:me,refs:ue,elements:P,floatingStyles:B}),[y,me,ue,P,B])}const uz=e=>{function a(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:e,fn(s){const{element:o,padding:c}=typeof e=="function"?e(s):e;return o&&a(o)?o.current!=null?j0({element:o.current,padding:c}).fn(s):{}:o?j0({element:o,padding:c}).fn(s):{}}}},hz=(e,a)=>{const s=tz(e);return{name:s.name,fn:s.fn,options:[e,a]}},fz=(e,a)=>{const s=nz(e);return{name:s.name,fn:s.fn,options:[e,a]}},mz=(e,a)=>({fn:oz(e).fn,options:[e,a]}),pz=(e,a)=>{const s=az(e);return{name:s.name,fn:s.fn,options:[e,a]}},gz=(e,a)=>{const s=iz(e);return{name:s.name,fn:s.fn,options:[e,a]}},yz=(e,a)=>{const s=sz(e);return{name:s.name,fn:s.fn,options:[e,a]}},bz=(e,a)=>{const s=uz(e);return{name:s.name,fn:s.fn,options:[e,a]}};var xz="Arrow",Dw=w.forwardRef((e,a)=>{const{children:s,width:o=10,height:c=5,...h}=e;return r.jsx(Ut.svg,{...h,ref:a,width:o,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?s:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});Dw.displayName=xz;var vz=Dw;function wz(e){const[a,s]=w.useState(void 0);return aa(()=>
9{if(e){s({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const h=c[0];let u,p;if("borderBoxSize"in h){const m=h.borderBoxSize,g=Array.isArray(m)?m[0]:m;u=g.inlineSize,p=g.blockSize}else u=e.offsetWidth,p=e.offsetHeight;s({width:u,height:p})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else s(void 0)},[e]),a}var Rw="Popper",[Mw,Ow]=vc(Rw),[dO,Pw]=Mw(Rw),Gw="PopperAnchor",Uw=w.forwardRef((e,a)=>{const{__scopePopper:s,virtualRef:o,...c}=e,h=Pw(Gw,s),u=w.useRef(null),p=h.onAnchorChange,m=w.useCallback(j=>{u.current=j,j&&p(j)},[p]),g=vn(a,m),y=w.useRef(null);w.useEffect(()=>{if(!o)return;const j=y.current;y.current=o.current,j!==y.current&&p(y.current)});const b=h.placementState&&tm(h.placementState),v=b?.[0],S=b?.[1];return o?null:r.jsx(Ut.div,{"data-radix-popper-side":v,"data-radix-popper-align":S,...c,ref:g})});Uw.displayName=Gw;var em="PopperContent",[Sz,Az]=Mw(em),Lw=w.forwardRef((e,a)=>{const{__scopePopper:s,side:o="bottom",sideOffset:c=0,align:h="center",alignOffset:u=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:g,collisionPadding:y=0,sticky:b="partial",hideWhenDetached:v=!1,updatePositionStrategy:S="optimized",onPlaced:j,...N}=e,C=Pw(em,s),[T,E]=w.useState(null),R=vn(a,ke=>E(ke)),[O,G]=w.useState(null),_=wz(O),H=_?.width??0,D=_?.height??0,J=o+(h!=="center"?"-"+h:""),W=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},X=g?Array.isArray(g)?g:[g]:void 0,Z=X!==void 0&&X.length>0,me={padding:W,boundary:X?.filter(Nz),altBoundary:Z},{refs:ne,floatingStyles:ue,placement:P,isPositioned:B,middlewareData:F}=dz({strategy:"fixed",placement:J,whileElementsMounted:(...ke)=>ez(...ke,{animationFrame:S==="always"}),elements:{reference:C.anchor}
vendor: 5,254 bytes, line 9
9,middleware:[hz({mainAxis:c+D,alignmentAxis:u}),m&&fz({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?mz():void 0,...me}),m&&pz({...me}),gz({...me,apply:({elements:ke,rects:ze,availableWidth:Dt,availableHeight:Lt})=>{const{width:Xt,height:Zt}=ze.reference,wt=ke.floating.style;wt.setProperty("--radix-popper-available-width",`${Dt}px`),wt.setProperty("--radix-popper-available-height",`${Lt}px`),wt.setProperty("--radix-popper-anchor-width",`${Xt}px`),wt.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),O&&bz({element:O,padding:p}),kz({arrowWidth:H,arrowHeight:D}),v&&yz({strategy:"referenceHidden",...me})]}),ae=C.setPlacementState;aa(()=>(ae(P),()=>{ae(void 0)}),[P,ae]);const[k,Y]=tm(P),ee=Ga(j);aa(()=>{B&&ee?.()},[B,ee]);const te=F.arrow?.x,le=F.arrow?.y,ye=F.arrow?.centerOffset!==0,[se,We]=w.useState();return aa(()=>{T&&We(window.getComputedStyle(T).zIndex)},[T]),r.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:B?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(Sz,{scope:s,placedSide:k,placedAlign:Y,onArrowChange:G,arrowX:te,arrowY:le,shouldHideArrow:ye,children:r.jsx(Ut.div,{"data-side":k,"data-align":Y,...N,ref:R,style:{...N.style,animation:B?void 0:"none"}})})})});Lw.displayName=em;var Hw="PopperArrow",jz={top:"bottom",right:"left",bottom:"top",left:"right"},Iw=w.forwardRef(function(a,s){const{__scopePopper:o,...c}=a,h=Az(Hw,o),u=jz[h.placedSide];return r.jsx("span",{ref:h.onArrowChange,style:{position:"absolute",left:h.arrowX,top:h.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[h.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[h.placedSide],visibility:h.shouldHideArrow?"hidden":void 0},children:r.jsx(vz,{...c,ref:s,style:{...c.style,display:"block"}})})});Iw.displayName=Hw;function Nz(e){return e!==null}var kz=e=>({name:"transformOrigin",options:e,fn(a){const{placement:s,rects:o,middlewareData:c}=a,u=c.arrow?.centerOffset!==0,p=u?0:e.arrowWidth,m=u?0:e.arrowHeight,[g,y]=tm(s),b={start:"0%",center:"50%",end:"100%"}[y],v=(c.arrow?.x??0)+p/2,S=(c.arrow?.y??0)+m/2;let j="",N="";return g==="bottom"?(j=u?b:`${v}px`,N=`${-m}px`):g==="top"?(j=u?b:`${v}px`,N=`${o.floating.height+m}px`):g==="right"?(j=`${-m}px`,N=u?b:`${S}px`):g==="left"&&(j=`${o.floating.width+m}px`,N=u?b:`${S}px`),{data:{x:j,y:N}}}});function tm(e){const[a,s="center"]=e.split("-");return[a,s]}var Cz=Uw,Tz=Lw,zz=Iw,[Rc]=vc("Tooltip",[Ow]),nm=Ow(),_w="TooltipProvider",Ez=700,k0="tooltip.open",[Dz,Bw]=Rc(_w),Vw=e=>{const{__scopeTooltip:a,delayDuration:s=Ez,skipDelayDuration:o=300,disableHoverableContent:c=!1,children:h}=e,u=w.useRef(!0),p=w.useRef(!1),m=w.useRef(0);return w.useEffect(()=>{const g=m.current;return()=>window.clearTimeout(g)},[]),r.jsx(Dz,{scope:a,isOpenDelayedRef:u,delayDuration:s,onOpen:w.useCallback(()=>{o<=0||(window.clearTimeout(m.current),u.current=!1)},[o]),onClose:w.useCallback(()=>{o<=0||(window.clearTimeout(m.current),m.current=window.setTimeout(()=>u.current=!0,o))},[o]),isPointerInTransitRef:p,onPointerInTransitChange:w.useCallback(g=>{p.current=g},[]),disableHoverableContent:c,children:h})};Vw.displayName=_w;var Fw="Tooltip",[uO,tr]=Rc(Fw),Jh="TooltipTrigger",Rz=w.forwardRef((e,a)=>{const{__scopeTooltip:s,...o}=e,c=tr(Jh,s),h=Bw(Jh,s),u=nm(s),p=w.useRef(null),m=vn(a,p,c.onTriggerChange),g=w.useRef(!1),y=w.useRef(!1),b=w.useCallback(()=>g.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),r.jsx(Cz,{asChild:!0,...u,children:r.jsx(Ut.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...o,ref:m,onPointerMove:lt(e.onPointerMove,v=>{v.pointerType!=="touch"&&!y.current&&!h.isPointerInTransitRef.current&&(c.onTriggerEnter(),y.current=!0)}),onPointerLeave:lt(e.onPointerLeave,()=>{c.onTriggerLeave(),y.current=!1}),onPointerDown:lt(e.onPointerDown,()=>{c.open&&c.onClose(),g.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:lt(e.onFocus,()=>{g.current||c.onOpen()}),onBlur:lt(e.onBlur,c.onClose),onClick:lt(e.onClick,c.onClose)})})});Rz.displayName=Jh;var am="TooltipPortal",[Mz,Oz]=Rc(am,{forceMount:void 0}),qw=e=>{const{__scopeTooltip:a,forceMount:s,children:o,container:c}=e,h=tr(am,a);return r.jsx(Mz,{scope:a,forceMount:s,children:r.jsx(wc,{present:s||h.open,children:r.jsx(Uf,{asChild:!0,container:c,children:o})})})};qw.displayName=am;var Ss="TooltipContent",Ww=w.forwardRef((e,a)=>{const s=Oz(Ss,e.__scopeTooltip),{forceMount:o=s.forceMount,side:c="top",...h}=e,u=tr(Ss,e.__scopeTooltip);return r.jsx(wc,{present:o||u.open,children:u.disableHoverableContent?r.jsx(Yw,{side:c,...h,ref:a}):r.jsx(Pz,{side:c,...h,ref:a})})}),Pz=w.forwardRef((e,a)=>{const s=tr(Ss,e.__scopeTooltip),o=Bw(Ss,e.__scopeTooltip),c=w.useRef(null),h=vn(a,c),[u,p]=w.useState(null),{trigger:m,onClose:g}=s,y=c.current,{onPointerInTransitChange:b}=o,v=w.useCallback(()=>{p(null),b(!1)},[b]),S=w.useCallback((j,N)=>
vendor: 4,111 bytes, line 9
9{const C=j.currentTarget,T={x:j.clientX,y:j.clientY},E=Iz(T,C.getBoundingClientRect()),R=_z(T,E),O=Bz(N.getBoundingClientRect()),G=Fz([...R,...O]);p(G),b(!0)},[b]);return w.useEffect(()=>()=>v(),[v]),w.useEffect(()=>{if(m&&y){const j=C=>S(C,y),N=C=>S(C,m);return m.addEventListener("pointerleave",j),y.addEventListener("pointerleave",N),()=>{m.removeEventListener("pointerleave",j),y.removeEventListener("pointerleave",N)}}},[m,y,S,v]),w.useEffect(()=>{if(u){const j=N=>{const C=N.target,T={x:N.clientX,y:N.clientY},E=m?.contains(C)||y?.contains(C),R=!Vz(T,u);E?v():R&&(v(),g())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[m,y,u,g,v]),r.jsx(Yw,{...e,ref:h})}),[Gz,Uz]=Rc(Fw,{isInside:!1}),Lz=FN("TooltipContent"),Yw=w.forwardRef((e,a)=>{const{__scopeTooltip:s,children:o,"aria-label":c,onEscapeKeyDown:h,onPointerDownOutside:u,...p}=e,m=tr(Ss,s),g=nm(s),{onClose:y}=m;return w.useEffect(()=>(document.addEventListener(k0,y),()=>document.removeEventListener(k0,y)),[y]),w.useEffect(()=>{if(m.trigger){const b=v=>{v.target instanceof Node&&v.target.contains(m.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[m.trigger,y]),r.jsx(Gf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:h,onPointerDownOutside:u,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:r.jsxs(Tz,{"data-state":m.stateAttribute,...g,...p,ref:a,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(Lz,{children:o}),r.jsx(Gz,{scope:s,isInside:!0,children:r.jsx(wk,{id:m.contentId,role:"tooltip",children:c||o})})]})})});Ww.displayName=Ss;var Kw="TooltipArrow",Hz=w.forwardRef((e,a)=>{const{__scopeTooltip:s,...o}=e,c=nm(s);return Uz(Kw,s).isInside?null:r.jsx(zz,{...c,...o,ref:a})});Hz.displayName=Kw;function Iz(e,a){const s=Math.abs(a.top-e.y),o=Math.abs(a.bottom-e.y),c=Math.abs(a.right-e.x),h=Math.abs(a.left-e.x);switch(Math.min(s,o,c,h)){case h:return"left";case c:return"right";case s:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function _z(e,a,s=5){const o=[];switch(a){case"top":o.push({x:e.x-s,y:e.y+s},{x:e.x+s,y:e.y+s});break;case"bottom":o.push({x:e.x-s,y:e.y-s},{x:e.x+s,y:e.y-s});break;case"left":o.push({x:e.x+s,y:e.y-s},{x:e.x+s,y:e.y+s});break;case"right":o.push({x:e.x-s,y:e.y-s},{x:e.x-s,y:e.y+s});break}return o}function Bz(e){const{top:a,right:s,bottom:o,left:c}=e;return[{x:c,y:a},{x:s,y:a},{x:s,y:o},{x:c,y:o}]}function Vz(e,a){const{x:s,y:o}=e;let c=!1;for(let h=0,u=a.length-1;h<a.length;u=h++){const p=a[h],m=a[u],g=p.x,y=p.y,b=m.x,v=m.y;y>o!=v>o&&s<(b-g)*(o-y)/(v-y)+g&&(c=!c)}return c}function Fz(e){const a=e.slice();return a.sort((s,o)=>s.x<o.x?-1:s.x>o.x?1:s.y<o.y?-1:s.y>o.y?1:0),qz(a)}function qz(e){if(e.length<=1)return e.slice();const a=[];for(let o=0;o<e.length;o++){const c=e[o];for(;a.length>=2;){const h=a[a.length-1],u=a[a.length-2];if((h.x-u.x)*(c.y-u.y)>=(h.y-u.y)*(c.x-u.x))a.pop();else break}a.push(c)}a.pop();const s=[];for(let o=e.length-1;o>=0;o--){const c=e[o];for(;s.length>=2;){const h=s[s.length-1],u=s[s.length-2];if((h.x-u.x)*(c.y-u.y)>=(h.y-u.y)*(c.x-u.x))s.pop();else break}s.push(c)}return s.pop(),a.length===1&&s.length===1&&a[0].x===s[0].x&&a[0].y===s[0].y?a:a.concat(s)}var Wz=Vw,Yz=qw,$w=Ww;const Kz=Wz,$z=w.forwardRef(({className:e,sideOffset:a=4,...s},o)=>r.jsx(Yz,{children:r.jsx($w,{ref:o,sideOffset:a,className:Et("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
9de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...s})}));$z.displayName=$w.displayName;const Jw=w.forwardRef(({className:e,...a},s)=>r.jsx("div",{ref:s,className:Et("rounded-xl border bg-card text-card-foreground shadow",e),...a}));Jw.displayName="Card";const Jz=w.forwardRef(({className:e,...a},s)=>r.jsx("div",{ref:s,className:Et("flex flex-col space-y-1.5 p-6",e),...a}));Jz.displayName="CardHeader";const Qz=w.forwardRef(({className:e,...a},s)=>r.jsx("div",{ref:s,className:Et("font-semibold leading-none tracking-tight",e),...a}));Qz.displayName="CardTitle";const Xz=w.forwardRef(({className:e,...a},s)=>r.jsx("div",{ref:s,className:Et("text-sm text-muted-foreground",e),...a}));Xz.displayName="CardDescription";const Qw=w.forwardRef(({className:e,...a},s)=>r.jsx("div",{ref:s,className:Et("p-6 pt-0",e),...a}));Qw.displayName="CardContent";const Zz=w.forwardRef(({className:e,...a},s)=>r.jsx("div",{ref:s,className:Et("flex items-center p-6 pt-0",e),...a}));Zz.displayName="CardFooter";function eE(){return r.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:r.jsx(Jw,{className:"w-full max-w-md mx-4",children:r.jsxs(Qw,{className:"pt-6",children:[r.jsxs("div",{className:"flex mb-4 gap-2",children:[r.jsx(Bf,{className:"h-8 w-8 text-red-500"}),r.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),r.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}const im=w.createContext({});function sm(e){const a=w.useRef(null);return a.current===null&&(a.current=e()),a.current}const tE=typeof window<"u",Xw=tE?w.useLayoutEffect:w.useEffect,Mc=w.createContext(null);function om(e,a){e.indexOf(a)===-1&&e.push(a)}function rc(e,a){const s=e.indexOf(a);s>-1&&e.splice(s,1)}const On=(e,a,s)=>s>a?a:s<e?e:s;let rm=()=>{};const Ia={},Zw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),e2=e=>typeof e=="object"&&e!==null,t2=e=>/^0[^.\s]+$/u.test(e);function n2(e){let a;return()=>(a===void 0&&(a=e()),a)}const fn=e=>e,nr=(...e)=>e.reduce((a,s)=>o=>s(a(o))),Ko=(e,a,s)=>{const o=a-e;return o?(s-e)/o:1};class lm{constructor(){this.subscriptions=[]}add(a){return om(this.subscriptions,a),()=>rc(this.subscriptions,a)}notify(a,s,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](a,s,o);else for(let h=0;h<c;h++){const u=this.subscriptions[h];u&&u(a,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qt=e=>e*1e3,hn=e=>e/1e3,a2=(e,a)=>a?e*(1e3/a):0,i2=(e,a,s)=>(((1-3*s+3*a)*e+(3*s-6*a))*e+3*a)*e,nE=1e-7,aE=12;function iE(e,a,s,o,c){let h,u,p=0;do u=a+(s-a)/2,h=i2(u,o,c)-e,h>0?s=u:a=u;while(Math.abs(h)>nE&&++p<aE);return u}function ar(e,a,s,o){if(e===a&&s===o)return fn;const c=h=>iE(h,0,1,e,s);return h=>h===0||h===1?h:i2(c(h),a,o)}const s2=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2,o2=e=>a=>1-e(1-a),r2=ar(.33,1.53,.69,.99),cm=o2(r2),l2=s2(cm),c2=e=>e>=1?1:(e*=2)<1?.5*cm(e):.5*(2-Math.pow(2,-10*(e-1))),dm=e=>1-Math.sin(Math.acos(e)),d2=o2(dm),u2=s2(dm),sE=ar(.42,0,1,1),oE=ar(0,0,.58,1),h2=ar(.42,0,.58,1),rE=e=>Array.isArray(e)&&typeof e[0]!="number",f2=e=>Array.isArray(e)&&typeof e[0]=="number",lE={linear:fn,easeIn:sE,easeInOut:h2,easeOut:oE,circIn:dm,circInOut:u2,circOut:d2,backIn:cm,backInOut:l2,backOut:r2,anticipate:c2},cE=e=>typeof e=="string",C0=e=>{if(f2(e)){rm(e.length===4);const[a,s,o,c]=e;return ar(a,s,o,c)}else if(cE(e))return lE[e];return e},Cl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function dE(e,a){let s=new Set,o=new Set,c=!1,h=!1;const u=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function m(y){u.has(y)&&(g.schedule(y),e()),y(p)}const g={schedule:(y,b=!1,v=!1)=>{const j=v&&c?s:o;return b&&u.add(y),j.add(y),y},cancel:y=>{o.delete(y),u.delete(y)},process:y=>{if(p=y,c){h=!0;return}c=!0;const b=s;s=o,o=b,s.forEach(m),s.clear(),c=!1,h&&(h=!1,g.process(y))}};return g}const uE=40;function m2(e,a){let s=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>s=!0,u=Cl.reduce((R,O)=>(R[O]=dE(h),R),{}),{setup:p,read:m,resolveKeyframes:g,preUpdate:y,update:b,preRender:v,render:S,postRender:j}=u,N=()=>{const R=Ia.useManualTiming,O=R?c.timestamp:performance.now();s=!1,R||(c.delta=o?1e3/60:Math.max(Math.min(O-c.timestamp,uE),1)),c.timestamp=O,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),y.process(c),b.process(c),v.process(c),S.process(c),j.process(c),c.isProcessing=!1,s&&a&&(o=!1,e(N))},C=()=>{s=!0,o=!0,c.isProcessing||e(N)};return{schedule:Cl.reduce((R,O)=>{const G=u[O];return R[O]=(_,H=!1,D=!1)=>(s||C(),G.schedule(_,H,D)),R},{}),cancel:R=>{for(let O=0;O<Cl.length;O++)u[Cl[O]].cancel(R)},state:c,steps:u}}const{schedule:Ve,cancel:_a,state:gt,steps:mh}=m2(typeof requestAnimationFrame<"u"?requestAnimationFrame:fn,!0);let Bl;function hE(){Bl=void 0}const Tt={now:()=>(Bl===void 0&&Tt.set(gt.isProcessing||Ia.useManualTiming?gt.timestamp:performance.now()),Bl),set:e=>{Bl=e,queueMicrotask(hE)}},p2=e=>a=>
vendor: 25,074 bytes, line 9
9typeof a=="string"&&a.startsWith(e),g2=p2("--"),fE=p2("var(--"),um=e=>fE(e)?mE.test(e.split("/*")[0].trim()):!1,mE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ts={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$o={...Ts,transform:e=>On(0,1,e)},Tl={...Ts,default:1},Io=e=>Math.round(e*1e5)/1e5,hm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pE(e){return e==null}const gE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fm=(e,a)=>s=>!!(typeof s=="string"&&gE.test(s)&&s.startsWith(e)||a&&!pE(s)&&Object.prototype.hasOwnProperty.call(s,a)),y2=(e,a,s)=>o=>{if(typeof o!="string")return o;const[c,h,u,p]=o.match(hm);return{[e]:parseFloat(c),[a]:parseFloat(h),[s]:parseFloat(u),alpha:p!==void 0?parseFloat(p):1}},yE=e=>On(0,255,e),ph={...Ts,transform:e=>Math.round(yE(e))},gi={test:fm("rgb","red"),parse:y2("red","green","blue"),transform:({red:e,green:a,blue:s,alpha:o=1})=>"rgba("+ph.transform(e)+", "+ph.transform(a)+", "+ph.transform(s)+", "+Io($o.transform(o))+")"};function bE(e){let a="",s="",o="",c="";return e.length>5?(a=e.substring(1,3),s=e.substring(3,5),o=e.substring(5,7),c=e.substring(7,9)):(a=e.substring(1,2),s=e.substring(2,3),o=e.substring(3,4),c=e.substring(4,5),a+=a,s+=s,o+=o,c+=c),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Qh={test:fm("#"),parse:bE,transform:gi.transform},ir=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),ta=ir("deg"),Mn=ir("%"),de=ir("px"),xE=ir("vh"),vE=ir("vw"),z0={...Mn,parse:e=>Mn.parse(e)/100,transform:e=>Mn.transform(e*100)},ms={test:fm("hsl","hue"),parse:y2("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:s,alpha:o=1})=>"hsla("+Math.round(e)+", "+Mn.transform(Io(a))+", "+Mn.transform(Io(s))+", "+Io($o.transform(o))+")"},nt={test:e=>gi.test(e)||Qh.test(e)||ms.test(e),parse:e=>gi.test(e)?gi.parse(e):ms.test(e)?ms.parse(e):Qh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gi.transform(e):ms.transform(e),getAnimatableNone:e=>{const a=nt.parse(e);return a.alpha=0,nt.transform(a)}},wE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function SE(e){return isNaN(e)&&typeof e=="string"&&(e.match(hm)?.length||0)+(e.match(wE)?.length||0)>0}const b2="number",x2="color",AE="var",jE="var(",E0="${}",NE=/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 As(e){const a=e.toString(),s=[],o={color:[],number:[],var:[]},c=[];let h=0;const p=a.replace(NE,m=>(nt.test(m)?(o.color.push(h),c.push(x2),s.push(nt.parse(m))):m.startsWith(jE)?(o.var.push(h),c.push(AE),s.push(m)):(o.number.push(h),c.push(b2),s.push(parseFloat(m))),++h,E0)).split(E0);return{values:s,split:p,indexes:o,types:c}}function kE(e){return As(e).values}function v2({split:e,types:a}){const s=e.length;return o=>{let c="";for(let h=0;h<s;h++)if(c+=e[h],o[h]!==void 0){const u=a[h];u===b2?c+=Io(o[h]):u===x2?c+=nt.transform(o[h]):c+=o[h]}return c}}function CE(e){return v2(As(e))}const TE=e=>typeof e=="number"?0:nt.test(e)?nt.getAnimatableNone(e):e,zE=(e,a)=>typeof e=="number"?a?.trim().endsWith("/")?e:0:TE(e);function EE(e){const a=As(e);return v2(a)(a.values.map((o,c)=>zE(o,a.split[c])))}const xn={test:SE,parse:kE,createTransformer:CE,getAnimatableNone:EE};function gh(e,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(a-e)*6*s:s<1/2?a:s<2/3?e+(a-e)*(2/3-s)*6:e}function DE({hue:e,saturation:a,lightness:s,alpha:o}){e/=360,a/=100,s/=100;let c=0,h=0,u=0;if(!a)c=h=u=s;else{const p=s<.5?s*(1+a):s+a-s*a,m=2*s-p;c=gh(m,p,e+1/3),h=gh(m,p,e),u=gh(m,p,e-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(u*255),alpha:o}}function lc(e,a){return s=>s>0?a:e}const Be=(e,a,s)=>e+(a-e)*s,yh=(e,a,s)=>{const o=e*e,c=s*(a*a-o)+o;return c<0?0:Math.sqrt(c)},RE=[Qh,gi,ms],ME=e=>RE.find(a=>a.test(e));function D0(e){const a=ME(e);if(!a)return!1;let s=a.parse(e);return a===ms&&(s=DE(s)),s}const R0=(e,a)=>{const s=D0(e),o=D0(a);if(!s||!o)return lc(e,a);const c={...s};return h=>(c.red=yh(s.red,o.red,h),c.green=yh(s.green,o.green,h),c.blue=yh(s.blue,o.blue,h),c.alpha=Be(s.alpha,o.alpha,h),gi.transform(c))},Xh=new Set(["none","hidden"]);function OE(e,a){return Xh.has(e)?s=>s<=0?e:a:s=>s>=1?a:e}function PE(e,a){return s=>Be(e,a,s)}function mm(e){return typeof e=="number"?PE:typeof e=="string"?um(e)?lc:nt.test(e)?R0:LE:Array.isArray(e)?w2:typeof e=="object"?nt.test(e)?R0:GE:lc}function w2(e,a){const s=[...e],o=s.length,c=e.map((h,u)=>mm(h)(h,a[u]));return h=>{for(let u=0;u<o;u++)s[u]=c[u](h);return s}}function GE(e,a){const s={...e,...a},o={};for(const c in s)e[c]!==void 0&&a[c]!==void 0&&(o[c]=mm(e[c])(e[c],a[c]));return c=>{for(const h in o)s[h]=o[h](c);return s}}function UE(e,a){const s=[],o={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const h=a.types[c],u=e.indexes[h][o[h]],p=e.values[u]??0;s[c]=p,o[h]++}return s}const LE=(e,a)=>{const s=xn.createTransformer(a),o=As(e),c=As(a);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Xh.has(e)&&!c.values.length||Xh.has(a)&&!o.values.length?OE(e,a):nr(w2(UE(o,c),c.values),s):lc(e,a)};function S2(e,a,s){return typeof e=="number"&&typeof a=="number"&&typeof s=="number"?Be(e,a,s):mm(e)(e,a)}const HE=e=>{const a=({timestamp:s})=>e(s);return{start:(s=!0)=>Ve.update(a,s),stop:()=>_a(a),now:()=>gt.isProcessing?gt.timestamp:Tt.now()}},A2=(e,a,s=10)=>{let o="";const c=Math.max(Math.round(a/s),2);for(let h=0;h<c;h++)o+=Math.round(e(h/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},cc=2e4;function pm(e){let a=0;const s=50;let o=e.next(a);for(;!o.done&&a<cc;)a+=s,o=e.next(a);return a>=cc?1/0:a}function IE(e,a=100,s){const o=s({...e,keyframes:[0,a]}),c=Math.min(pm(o),cc);return{type:"keyframes",ease:h=>o.next(c*h).value/a,duration:hn(c)}}const Je={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};function Zh(e,a){return e*Math.sqrt(1-a*a)}const _E=12;function BE(e,a,s){let o=s;for(let c=1;c<_E;c++)o=o-e(o)/a(o);return o}const bh=.001;function VE({duration:e=Je.duration,bounce:a=Je.bounce,velocity:s=Je.velocity,mass:o=Je.mass}){let c,h,u=1-a;u=On(Je.minDamping,Je.maxDamping,u),e=On(Je.minDuration,Je.maxDuration,hn(e)),u<1?(c=g=>{const y=g*u,b=y*e,v=y-s,S=Zh(g,u),j=Math.exp(-b);return bh-v/S*j},h=g=>{const b=g*u*e,v=b*s+s,S=Math.pow(u,2)*Math.pow(g,2)*e,j=Math.exp(-b),N=Zh(Math.pow(g,2),u);return(-c(g)+bh>0?-1:1)*((v-S)*j)/N}):(c=g=>{const y=Math.exp(-g*e),b=(g-s)*e+1;return-bh+y*b},h=g=>{const y=Math.exp(-g*e),b=(s-g)*(e*e);return y*b});const p=5/e,m=BE(c,h,p);if(e=Qt(e),isNaN(m))return{stiffness:Je.stiffness,damping:Je.damping,duration:e};{const g=Math.pow(m,2)*o;return{stiffness:g,damping:u*2*Math.sqrt(o*g),duration:e}}}const FE=["duration","bounce"],qE=["stiffness","damping","mass"];function M0(e,a){return a.some(s=>e[s]!==void 0)}function WE(e){let a={velocity:Je.velocity,stiffness:Je.stiffness,damping:Je.damping,mass:Je.mass,isResolvedFromDuration:!1,...e};if(!M0(e,qE)&&M0(e,FE))if(a.velocity=0,e.visualDuration){const s=e.visualDuration,o=2*Math.PI/(s*1.2),c=o*o,h=2*On(.05,1,1-(e.bounce||0))*Math.sqrt(c);a={...a,mass:Je.mass,stiffness:c,damping:h}}else{const s=VE({...e,velocity:0});a={...a,...s,mass:Je.mass},a.isResolvedFromDuration=!0}return a}function dc(e=Je.visualDuration,a=Je.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e;let{restSpeed:o,restDelta:c}=s;const h=s.keyframes[0],u=s.keyframes[s.keyframes.length-1],p={done:!1,value:h},{stiffness:m,damping:g,mass:y,duration:b,velocity:v,isResolvedFromDuration:S}=WE({...s,velocity:-hn(s.velocity||0)}),j=v||0,N=g/(2*Math.sqrt(m*y)),C=u-h,T=hn(Math.sqrt(m/y)),E=Math.abs(C)<5;o||(o=E?Je.restSpeed.granular:Je.restSpeed.default),c||(c=E?Je.restDelta.granular:Je.restDelta.default);let R,O,G,_,H,D;if(N<1)G=Zh(T,N),_=(j+N*T*C)/G,R=W=>{const X=Math.exp(-N*T*W);return u-X*(_*Math.sin(G*W)+C*Math.cos(G*W))},H=N*T*_+C*G,D=N*T*C-_*G,O=W=>Math.exp(-N*T*W)*(H*Math.sin(G*W)+D*Math.cos(G*W));else if(N===1){R=X=>u-Math.exp(-T*X)*(C+(j+T*C)*X);const W=j+T*C;O=X=>Math.exp(-T*X)*(T*W*X-j)}else{const W=T*Math.sqrt(N*N-1);R=ne=>{const ue=Math.exp(-N*T*ne),P=Math.min(W*ne,300);return u-ue*((j+N*T*C)*Math.sinh(P)+W*C*Math.cosh(P))/W};const X=(j+N*T*C)/W,Z=N*T*X-C*W,me=N*T*C-X*W;O=ne=>{const ue=Math.exp(-N*T*ne),P=Math.min(W*ne,300);return ue*(Z*Math.sinh(P)+me*Math.cosh(P))}}const J={calculatedDuration:S&&b||null,velocity:W=>Qt(O(W)),next:W=>{if(!S&&N<1){const Z=Math.exp(-N*T*W),me=Math.sin(G*W),ne=Math.cos(G*W),ue=u-Z*(_*me+C*ne),P=Qt(Z*(H*me+D*ne));return p.done=Math.abs(P)<=o&&Math.abs(u-ue)<=c,p.value=p.done?u:ue,p}const X=R(W);if(S)p.done=W>=b;else{const Z=Qt(O(W));p.done=Math.abs(Z)<=o&&Math.abs(u-X)<=c}return p.value=p.done?u:X,p},toString:()=>{const W=Math.min(pm(J),cc),X=A2(Z=>J.next(W*Z).value,W,30);return W+"ms "+X},toTransition:()=>{}};return J}dc.applyToOptions=e=>{const a=IE(e,100,dc);return e.ease=a.ease,e.duration=Qt(a.duration),e.type="keyframes",e};const YE=5;function j2(e,a,s){const o=Math.max(a-YE,0);return a2(s-e(o),a-o)}function ef({keyframes:e,velocity:a=0,power:s=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:u,min:p,max:m,restDelta:g=.5,restSpeed:y}){const b=e[0],v={done:!1,value:b},S=D=>p!==void 0&&D<p||m!==void 0&&D>m,j=D=>p===void 0?m:m===void 0||Math.abs(p-D)<Math.abs(m-D)?p:m;let N=s*a;const C=b+N,T=u===void 0?C:u(C);T!==C&&(N=T-b);const E=D=>-N*Math.exp(-D/o),R=D=>T+E(D),O=D=>{const J=E(D),W=R(D);v.done=Math.abs(J)<=g,v.value=v.done?T:W};let G,_;const H=D=>{S(v.value)&&(G=D,_=dc({keyframes:[v.value,j(v.value)],velocity:j2(R,D,v.value),damping:c,stiffness:h,restDelta:g,restSpeed:y}))};return H(0),{calculatedDuration:null,next:D=>{let J=!1;return!_&&G===void 0&&(J=!0,O(D),H(D)),G!==void 0&&D>=G?_.next(D-G):(!J&&O(D),v)}}}function KE(e,a,s){const o=[],c=s||Ia.mix||S2,h=e.length-1;for(let u=0;u<h;u++){let p=c(e[u],e[u+1]);if(a){const m=Array.isArray(a)?a[u]||fn:a;p=nr(m,p)}o.push(p)}return o}function $E(e,a,{clamp:s=!0,ease:o,mixer:c}={}){const h=e.length;if(rm(h===a.length),h===1)return()=>a[0];if(h===2&&a[0]===a[1])return()=>a[1];const u=e[0]===e[1];e[0]>e[h-1]&&(e=[...e].reverse(),a=[...a].reverse());const p=KE(a,o,c),m=p.length,g=y=>{if(u&&y<e[0])return a[0];let b=0;if(m>1)for(;b<e.length-2&&!(y<e[b+1]);b++);const v=Ko(e[b],e[b+1],y);return p[b](v)};return s?y=>g(On(e[0],e[h-1],y)):g}function JE(e,a){const s=e[e.length-1];for(let o=1;o<=a;o++){const c=Ko(0,a,o);e.push(Be(s,1,c))}}function QE(e){const a=[0];return JE(a,e.length-1),a}function XE(e,a){return e.map(s=>s*a)}function ZE(e,a){return e.map(()=>a||h2).splice(0,e.length-1)}function _o({duration:e=300,keyframes:a,times:s,ease:o="easeInOut"}){const c=rE(o)?o.map(C0):C0(o),h={done:!1,value:a[0]},u=XE(s&&s.length===a.length?s:QE(a),e),p=$E(u,a,{ease:Array.isArray(c)?c:ZE(a,c)});return{calculatedDuration:e,next:m=>(h.value=p(m),h.done=m>=e,h)}}const eD=e=>e!==null;function Oc(e,{repeat:a,repeatType:s="loop"},o,c=1){const h=e.filter(eD),p=c<0||a&&s!=="loop"&&a%2===1?0:h.length-1;return!p||o===void 0?h[p]:o}const tD={decay:ef,inertia:ef,tween:_o,keyframes:_o,spring:dc};function N2(e){typeof e.type=="string"&&(e.type=tD[e.type])}class gm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const nD=e=>e/100;class uc extends gm{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==Tt.now()&&this.tick(Tt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;N2(a);const{type:s=_o,repeat:o=0,repeatDelay:c=0,repeatType:h,velocity:u=0}=a;let{keyframes:p}=a;const m=s||_o;m!==_o&&typeof p[0]!="number"&&(this.mixKeyframes=nr(nD,S2(p[0],p[1])),p=[0,100]);const g=m({...a,keyframes:p});h==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...p].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=pm(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=g}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:o,totalDuration:c,mixKeyframes:h,mirroredGenerator:u,resolvedDuration:p,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:y,repeat:b,repeatType:v,repeatDelay:S,type:j,onUpdate:N,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-c/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const T=this.currentTime-g*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?T<0:T>c;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let R=this.currentTime,O=o;if(b){const D=Math.min(this.currentTime,c)/p;let J=Math.floor(D),W=D%1;!W&&D>=1&&(W=1),W===1&&J--,J=Math.min(J,b+1),J%2&&(v==="reverse"?(W=1-W,S&&(W-=S/p)):v==="mirror"&&(O=u)),R=On(0,1,W)*p}let G;E?(this.delayState.value=y[0],G=this.delayState):G=O.next(R),h&&!E&&(G.value=h(G.value));let{done:_}=G;!E&&m!==null&&(_=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return H&&j!==ef&&(G.value=Oc(y,this.options,C,this.speed)),N&&N(G.value),H&&this.finish(),G}then(a,s){return this.finished.then(a,s)}get duration(){return hn(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+hn(a)}get time(){return hn(this.currentTime)}set time(a){a=Qt(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){const a=this.currentTime;if(a<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(a);const s=this.generator.next(a).value;return j2(o=>this.generator.next(o).value,a,s)}get speed(){return this.playbackSpeed}set speed(a){const s=this.playbackSpeed!==a;s&&this.driver&&this.updateTime(Tt.now()),this.playbackSpeed=a,s&&this.driver&&(this.time=hn(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=HE,startTime:s}=this.options;this.driver||(this.driver=a(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Tt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function aD(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}const yi=e=>e*180/Math.PI,tf=e=>{const a=yi(Math.atan2(e[1],e[0]));return nf(a)},iD={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tf,rotateZ:tf,skewX:e=>yi(Math.atan(e[1])),skewY:e=>yi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nf=e=>(e=e%360,e<0&&(e+=360),e),O0=tf,P0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),G0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),sD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:P0,scaleY:G0,scale:e=>(P0(e)+G0(e))/2,rotateX:e=>nf(yi(Math.atan2(e[6],e[5]))),rotateY:e=>nf(yi(Math.atan2(-e[2],e[0]))),rotateZ:O0,rotate:O0,skewX:e=>yi(Math.atan(e[4])),skewY:e=>yi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function af(e){return e.includes("scale")?1:0}function sf(e,a){if(!e||e==="none")return af(a);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(s)o=sD,c=s;else{const p=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=iD,c=p}if(!c)return af(a);const h=o[a],u=c[1].split(",").map(rD);return typeof h=="function"?h(u):u[h]}const oD=(e,a)=>{const{transform:s="none"}=getComputedStyle(e);return sf(s,a)};function rD(e){return parseFloat(e.trim())}const zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Es=new Set([...zs,"pathRotation"]),U0=e=>e===Ts||e===de,lD=new Set(["x","y","z"]),cD=zs.filter(e=>!lD.has(e));function dD(e){const a=[];return cD.forEach(s=>{const o=e.getValue(s);o!==void 0&&(a.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),a}const Ma={width:({x:e},{paddingLeft:a="0",paddingRight:s="0",boxSizing:o})=>{const c=e.max-e.min;return o==="border-box"?c:c-parseFloat(a)-parseFloat(s)},height:({y:e},{paddingTop:a="0",paddingBottom:s="0",boxSizing:o})=>{const c=e.max-e.min;return o==="border-box"?c:c-parseFloat(a)-parseFloat(s)},top:(e,{top:a})=>parseFloat(a),left:(e,{left:a})=>parseFloat(a),bottom:({y:e},{top:a})=>parseFloat(a)+(e.max-e.min),right:({x:e},{left:a})=>parseFloat(a)+(e.max-e.min),x:(e,{transform:a})=>sf(a,"x"),y:(e,{transform:a})=>sf(a,"y")};Ma.translateX=Ma.x;Ma.translateY=Ma.y;const vi=new Set;let of=!1,rf=!1,lf=!1;function k2(){if(rf){const e=Array.from(vi).filter(o=>o.needsMeasurement),a=new Set(e.map(o=>o.element)),s=new Map;a.forEach(o=>{const c=dD(o);c.length&&(s.set(o,c),o.render())}),e.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const c=s.get(o);c&&c.forEach(([h,u])=>{o.getValue(h)?.set(u)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}rf=!1,of=!1,vi.forEach(e=>e.complete(lf)),vi.clear()}function C2(){vi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rf=!0)})}function uD(){lf=!0,C2(),k2(),lf=!1}class ym{constructor(a,s,o,c,h,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=o,this.motionValue=c,this.element=h,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(vi.add(this),of||(of=!0,Ve.read(C2),Ve.resolveKeyframes(k2))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:o,motionValue:c}=this;if(a[0]===null){const h=c?.get(),u=a[a.length-1];if(h!==void 0)a[0]=h;else if(o&&s){const p=o.readValue(s,u);p!=null&&(a[0]=p)}a[0]===void 0&&(a[0]=u),c&&h===void 0&&c.set(a[0])}aD(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),vi.delete(this)}cancel(){this.state==="scheduled"&&(vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const hD=e=>e.startsWith("--");function T2(e,a,s){hD(a)?e.style.setProperty(a,s):e.style[a]=s}const fD={};function z2(e,a){const s=n2(e);return()=>fD[a]??s()}const mD=z2(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),E2=z2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Lo=([e,a,s,o])=>`cubic-bezier(${e}, ${a}, ${s}, ${o})`,L0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lo([0,.65,.55,1]),circOut:Lo([.55,0,1,.45]),backIn:Lo([.31,.01,.66,-.59]),backOut:Lo([.33,1.53,.69,.99])};function D2(e,a){if(e)return typeof e=="function"?E2()?A2(e,a):"ease-out":f2(e)?Lo(e):Array.isArray(e)?e.map(s=>D2(s,a)||L0.easeOut):L0[e]}function pD(e,a,s,{delay:o=0,duration:c=300,repeat:h=0,repeatType:u="loop",ease:p="easeOut",times:m}={},g=void 0){const y={[a]:s};m&&(y.offset=m);const b=D2(p,c);Array.isArray(b)&&(y.easing=b);const v={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:u==="reverse"?"alternate":"normal"};return g&&(v.pseudoElement=g),e.animate(y,v)}function R2(e){return typeof e=="function"&&"applyToOptions"in e}function gD({type:e,...a}){return R2(e)&&E2()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class M2 extends gm{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:s,name:o,keyframes:c,pseudoElement:h,allowFlatten:u=!1,finalKeyframe:p,onComplete:m}=a;this.isPseudoElement=!!h,this.allowFlatten=u,this.options=a,rm(typeof a.type!="string");const g=gD(a);this.animation=pD(s,o,c,g,h),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const y=Oc(c,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(y),T2(s,o,y),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const a=this.options?.element;!this.isPseudoElement&&a?.isConnected&&this.animation.commitStyles?.()}get duration(){const a=this.animation.effect?.getComputedTiming?.().duration||0;return hn(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+hn(a)}get time(){return hn(Number(this.animation.currentTime)||0)}set time(a){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Qt(a),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,rangeStart:s,rangeEnd:o,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&mD()?(this.animation.timeline=a,s&&(this.animation.rangeStart=s),o&&(this.animation.rangeEnd=o),fn):c(this)}}const O2={anticipate:c2,backInOut:l2,circInOut:u2};function yD(e){return e in O2}function bD(e){typeof e.ease=="string"&&yD(e.ease)&&(e.ease=O2[e.ease])}const xh=10;class xD extends M2{constructor(a){bD(a),N2(a),super(a),a.startTime!==void 0&&a.autoplay!==!1&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:o,onComplete:c,element:h,...u}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const p=new uc({...u,autoplay:!1}),m=Math.max(xh,Tt.now()-this.startTime),g=On(0,xh,m-xh),y=p.sample(m).value,{name:b}=this.options;h&&b&&T2(h,b,y),s.setWithVelocity(p.sample(Math.max(0,m-g)).value,y,g),p.stop()}}const H0=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xn.test(e)||e==="0")&&!e.startsWith("url("));function vD(e){const a=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==a)return!0}function wD(e,a,s,o){const c=e[0];if(c===null)return!1;if(a==="display"||a==="visibility")return!0;const h=e[e.length-1],u=H0(c,a),p=H0(h,a);return!u||!p?!1:vD(e)||(s==="spring"||R2(s))&&o}function cf(e){e.duration=0,e.type="keyframes"}const P2=new Set(["opacity","clipPath","filter","transform"]),SD=/^(?:
9oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function AD(e){for(let a=0;a<e.length;a++)if(typeof e[a]=="string"&&SD.test(e[a]))return!0;return!1}const jD=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ND=n2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function kD(e){const{motionValue:a,name:s,repeatDelay:o,repeatType:c,damping:h,type:u,keyframes:p}=e;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:y}=a.owner.getProps();return ND()&&s&&(P2.has(s)||jD.has(s)&&AD(p))&&(s!=="transform"||!y)&&!g&&!o&&c!=="mirror"&&h!==0&&u!=="inertia"}const CD=40;class TD extends gm{constructor({autoplay:a=!0,delay:s=0,type:o="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:u="loop",keyframes:p,name:m,motionValue:g,element:y,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Tt.now();const v={autoplay:a,delay:s,type:o,repeat:c,repeatDelay:h,repeatType:u,name:m,motionValue:g,element:y,...b},S=y?.KeyframeResolver||ym;this.keyframeResolver=new S(p,(j,N,C)=>this.onKeyframesResolved(j,N,v,!C),m,g,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,o,c){this.keyframeResolver=void 0;const{name:h,type:u,velocity:p,delay:m,isHandoff:g,onUpdate:y}=o;this.resolvedAt=Tt.now();let b=!0;wD(a,h,u,p)||(b=!1,(Ia.instantAnimations||!m)&&y?.(Oc(a,o,s)),a[0]=a[a.length-1],cf(o),o.repeat=0);const S={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>CD?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:a},j=b&&!g&&kD(S),N=S.motionValue?.owner?.current;let C;if(j)try{C=new xD({...S,element:N})}catch{C=new uc(S)}else C=new uc(S);C.finished.then(()=>{this.notifyFinished()}).catch(fn),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uD()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function G2(e,a,s,o=0,c=1){const h=Array.from(e).sort((g,y)=>g.sortNodePosition(y)).indexOf(a),u=e.size,p=(u-1)*o;return typeof s=="function"?s(h,u):c===1?h*o:p-h*o}const I0=30,zD=e=>!isNaN(parseFloat(e));class ED{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=Tt.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=Tt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=zD(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new lm);const o=this.events[a].add(s);return a==="change"?()=>{o(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>I0)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,I0);return a2(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(s),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function js(e,a){return new ED(e,a)}function U2(e,a){if(e?.inherit&&a){const{inherit:s,...o}=e;return{...a,...o}}return e}function bm(e,a){const s=e?.[a]??e?.default??e;return s!==e?U2(s,e):s}const DD={type:"spring",stiffness:500,damping:25,restSpeed:10},RD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MD={type:"keyframes",duration:.8},OD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PD=(e,{keyframes:a})=>a.length>2?MD:Es.has(e)?e.startsWith("scale")?RD(a[1]):DD:OD,GD=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function UD(e){for(const a in e)if(!GD.has(a))return!0;return!1}const xm=(e,a,s,o={},c,h)=>u=>{const p=bm(o,e)||{},m=p.delay||o.delay||0;let{elapsed:g=0}=o;g=g-Qt(m);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...p,delay:-g,onUpdate:v=>{a.set(v),p.onUpdate&&p.onUpdate(v)},onComplete:()=>{u(),p.onComplete&&p.onComplete()},name:e,motionValue:a,element:h?void 0:c};UD(p)||Object.assign(y,PD(e,y)),y.duration&&(y.duration=Qt(y.duration)),y.repeatDelay&&(y.repeatDelay=Qt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(cf(y),y.delay===0&&(b=!0)),(Ia.instantAnimations||Ia.skipAnimations||c?.shouldSkipAnimations||p.skipAnimations)&&(b=!0,cf(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,b&&!h&&a.get()!==void 0){const v=Oc(y.keyframes,p);if(v!==void 0){Ve.update(()=>{y.onUpdate(v),y.onComplete()});return}}return p.isSync?new uc(y):new TD(y)},LD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function HD(e){const a=LD.exec(e);if(!a)return[,];const[,s,o,c]=a;return[`--${s??o}`,c]}function L2(e,a,s=1){const[o,c]=HD(e);if(!o)return;const h=window.getComputedStyle(a).getPropertyValue(o);if(h){const u=h.trim();return Zw(u)?parseFloat(u):u}return um(c)?L2(c,a,s+1):c}function _0(e){const a=[{},{}];
vendor: 57,541 bytes, line 9
9return e?.values.forEach((s,o)=>{a[0][o]=s.get(),a[1][o]=s.getVelocity()}),a}function vm(e,a,s,o){if(typeof a=="function"){const[c,h]=_0(o);a=a(s!==void 0?s:e.custom,c,h)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){const[c,h]=_0(o);a=a(s!==void 0?s:e.custom,c,h)}return a}function wi(e,a,s){const o=e.getProps();return vm(o,a,s!==void 0?s:o.custom,e)}const H2=new Set(["width","height","top","left","right","bottom",...zs]),df=e=>Array.isArray(e);function ID(e,a,s){e.hasValue(a)?e.getValue(a).set(s):e.addValue(a,js(s))}function _D(e){return df(e)?e[e.length-1]||0:e}function BD(e,a){const s=wi(e,a);let{transitionEnd:o={},transition:c={},...h}=s||{};h={...h,...o};for(const u in h){const p=_D(h[u]);ID(e,u,p)}}const xt=e=>!!(e&&e.getVelocity);function VD(e){return!!(xt(e)&&e.add)}function uf(e,a){const s=e.getValue("willChange");if(VD(s))return s.add(a);if(!s&&Ia.WillChange){const o=new Ia.WillChange("auto");e.addValue("willChange",o),o.add(a)}}function wm(e){return e.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const FD="framerAppearId",I2="data-"+wm(FD);function _2(e){return e.props[I2]}function qD({protectedKeys:e,needsAnimating:a},s){const o=e.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,o}function B2(e,a,{delay:s=0,transitionOverride:o,type:c}={}){let{transition:h,transitionEnd:u,...p}=a;const m=e.getDefaultTransition();h=h?U2(h,m):m;const g=h?.reduceMotion,y=h?.skipAnimations;o&&(h=o);const b=[],v=c&&e.animationState&&e.animationState.getState()[c],S=h?.path;S&&S.animateVisualElement(e,p,h,s,b);for(const j in p){const N=e.getValue(j,e.latestValues[j]??null),C=p[j];if(C===void 0||v&&qD(v,j))continue;const T={delay:s,...bm(h||{},j)};y&&(T.skipAnimations=!0);const E=N.get();if(E!==void 0&&!N.isAnimating()&&!Array.isArray(C)&&C===E&&!T.velocity){Ve.update(()=>N.set(C));continue}let R=!1;if(window.MotionHandoffAnimation){const _=_2(e);if(_){const H=window.MotionHandoffAnimation(_,j,Ve);H!==null&&(T.startTime=H,R=!0)}}uf(e,j);const O=g??e.shouldReduceMotion;N.start(xm(j,N,C,O&&H2.has(j)?{type:!1}:T,e,R));const G=N.animation;G&&b.push(G)}if(u){const j=()=>Ve.update(()=>{u&&BD(e,u)});b.length?Promise.all(b).then(j):j()}return b}function hf(e,a,s={}){const o=wi(e,a,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:c=e.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(c=s.transitionOverride);const h=o?()=>Promise.all(B2(e,o,s)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:b}=c;return WD(e,a,m,g,y,b,s)}:()=>Promise.resolve(),{when:p}=c;if(p){const[m,g]=p==="beforeChildren"?[h,u]:[u,h];return m().then(()=>g())}else return Promise.all([h(),u(s.delay)])}function WD(e,a,s=0,o=0,c=0,h=1,u){const p=[];for(const m of e.variantChildren)m.notify("AnimationStart",a),p.push(hf(m,a,{...u,delay:s+(typeof o=="function"?0:o)+G2(e.variantChildren,m,o,c,h)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(p)}function YD(e,a,s={}){e.notify("AnimationStart",a);let o;if(Array.isArray(a)){const c=a.map(h=>hf(e,h,s));o=Promise.all(c)}else if(typeof a=="string")o=hf(e,a,s);else{const c=typeof a=="function"?wi(e,a,s.custom):a;o=Promise.all(B2(e,c,s))}return o.then(()=>{e.notify("AnimationComplete",a)})}const KD={test:e=>e==="auto",parse:e=>e},V2=e=>a=>a.test(e),F2=[Ts,de,Mn,ta,vE,xE,KD],B0=e=>F2.find(V2(e));function $D(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||t2(e):!0}const JD=new Set(["brightness","contrast","saturate","opacity"]);function QD(e){const[a,s]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;const[o]=s.match(hm)||[];if(!o)return e;const c=s.replace(o,"");let h=JD.has(a)?1:0;return o!==s&&(h*=100),a+"("+h+c+")"}const XD=/\b([a-z-]*)\(.*?\)/gu,ff={...xn,getAnimatableNone:e=>{const a=e.match(XD);return a?a.map(QD).join(" "):e}},mf={...xn,getAnimatableNone:e=>{const a=xn.parse(e);return xn.createTransformer(e)(a.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},V0={...Ts,transform:Math.round},ZD={rotate:ta,pathRotation:ta,rotateX:ta,rotateY:ta,rotateZ:ta,scale:Tl,scaleX:Tl,scaleY:Tl,scaleZ:Tl,skew:ta,skewX:ta,skewY:ta,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:$o,originX:z0,originY:z0,originZ:de},hc={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,inset:de,insetBlock:de,insetBlockStart:de,insetBlockEnd:de,insetInline:de,insetInlineStart:de,insetInlineEnd:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,paddingBlock:de,paddingBlockStart:de,paddingBlockEnd:de,paddingInline:de,paddingInlineStart:de,paddingInlineEnd:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,marginBlock:de,marginBlockStart:de,marginBlockEnd:de,marginInline:de,marginInlineStart:de,marginInlineEnd:de,fontSize:de,backgroundPositionX:de,backgroundPositionY:de,...ZD,zIndex:V0,fillOpacity:$o,strokeOpacity:$o,numOctaves:V0},e5={...hc,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:ff,WebkitFilter:ff,mask:mf,WebkitMask:mf},q2=e=>e5[e],t5=new Set([ff,mf]);function W2(e,a){let s=q2(e);return t5.has(s)||(s=xn),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const n5=new Set(["auto","none","0"]);function a5(e,a,s){let o=0,c;for(;o<e.length&&!c;){const h=e[o];typeof h=="string"&&!n5.has(h)&&As(h).values.length&&(c=e[o]),o++}if(c&&s)for(const h of a)e[h]=W2(s,c)}class i5 extends ym{constructor(a,s,o,c,h){super(a,s,o,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let b=a[y];if(typeof b=="string"&&(b=b.trim(),um(b))){const v=L2(b,s.current);v!==void 0&&(a[y]=v),y===a.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!H2.has(o)||a.length!==2)return;const[c,h]=a,u=B0(c),p=B0(h),m=T0(c),g=T0(h);if(m!==g&&Ma[o]){this.needsMeasurement=!0;return}if(u!==p)if(U0(u)&&U0(p))for(let y=0;y<a.length;y++){const b=a[y];typeof b=="string"&&(a[y]=parseFloat(b))}else Ma[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,o=[];for(let c=0;c<a.length;c++)(a[c]===null||$D(a[c]))&&o.push(c);o.length&&a5(a,o,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ma[o](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&a.getValue(o,c).jump(c,!1)}measureEndState(){const{element:a,name:s,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const c=a.getValue(s);c&&c.jump(this.measuredOrigin,!1);const h=o.length-1,u=o[h];o[h]=Ma[s](a.measureViewportBox(),window.getComputedStyle(a.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,m])=>{a.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function Y2(e,a,s){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const c=s?.[e]??o.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e).filter(o=>o!=null)}const pf=(e,a)=>a&&typeof e=="number"?a.transform(e):e;function Vl(e){return e2(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Sm}=m2(queueMicrotask,!1),bn={x:!1,y:!1};function K2(){return bn.x||bn.y}function s5(e){return e==="x"||e==="y"?bn[e]?null:(bn[e]=!0,()=>{bn[e]=!1}):bn.x||bn.y?null:(bn.x=bn.y=!0,()=>{bn.x=bn.y=!1})}function $2(e,a){const s=Y2(e),o=new AbortController,c={passive:!0,...a,signal:o.signal};return[s,c,()=>o.abort()]}function o5(e){return!(e.pointerType==="touch"||K2())}function r5(e,a,s={}){const[o,c,h]=$2(e,s);return o.forEach(u=>{let p=!1,m=!1,g;const y=()=>{u.removeEventListener("pointerleave",j)},b=C=>{g&&(g(C),g=void 0),y()},v=C=>{p=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),m&&(m=!1,b(C))},S=()=>{p=!0,window.addEventListener("pointerup",v,c),window.addEventListener("pointercancel",v,c)},j=C=>{if(C.pointerType!=="touch"){if(p){m=!0;return}b(C)}},N=C=>{if(!o5(C))return;m=!1;const T=a(u,C);typeof T=="function"&&(g=T,u.addEventListener("pointerleave",j,c))};u.addEventListener("pointerenter",N,c),u.addEventListener("pointerdown",S,c)}),h}const J2=(e,a)=>a?e===a?!0:J2(e,a.parentElement):!1,Am=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,l5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function c5(e){return l5.has(e.tagName)||e.isContentEditable===!0}const d5=new Set(["INPUT","SELECT","TEXTAREA"]);function u5(e){return d5.has(e.tagName)||e.isContentEditable===!0}const Fl=new WeakSet;function F0(e){return a=>{a.key==="Enter"&&e(a)}}function vh(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const h5=(e,a)=>{const s=e.currentTarget;if(!s)return;const o=F0(()=>{if(Fl.has(s))return;vh(s,"down");const c=F0(()=>{vh(s,"up")}),h=()=>vh(s,"cancel");s.addEventListener("keyup",c,a),s.addEventListener("blur",h,a)});s.addEventListener("keydown",o,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),a)};function q0(e){return Am(e)&&!K2()}const W0=new WeakSet;function f5(e,a,s={}){const[o,c,h]=$2(e,s),u=p=>{const m=p.currentTarget;if(!q0(p)||W0.has(p))return;Fl.add(m),s.stopPropagation&&W0.add(p);const g=a(m,p),y=(S,j)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",v),Fl.has(m)&&Fl.delete(m),q0(S)&&typeof g=="function"&&g(S,{success:j})},b=S=>{y(S,m===window||m===document||s.useGlobalTarget||J2(m,S.target))},v=S=>{y(S,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",v,c)};return o.forEach(p=>{(s.useGlobalTarget?window:p).addEventListener("pointerdown",u,c),Vl(p)&&(p.addEventListener("focus",g=>h5(g,c)),!c5(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),h}function jm(e){return e2(e)&&"ownerSVGElement"in e}const ql=new WeakMap;let Wl;const Q2=(e,a,s)=>(o,c)=>c&&c[0]?c[0][e+"Size"]:jm(o)&&"getBBox"in o?o.getBBox()[a]:o[s],m5=Q2("inline","width","offsetWidth"),p5=Q2("block","height","offsetHeight");function g5({target:e,borderBoxSize:a}){ql.get(e)?.forEach(s=>{s(e,{get width(){return m5(e,a)},get height(){return p5(e,a)}})})}function y5(e){e.forEach(g5)}function b5(){typeof ResizeObserver>"u"||(Wl=new ResizeObserver(y5))}function x5(e,a){Wl||b5();const s=Y2(e);return s.forEach(o=>{let c=ql.get(o);c||(c=new Set,ql.set(o,c)),c.add(a),Wl?.observe(o)}),()=>{s.forEach(o=>{const c=ql.get(o);c?.delete(a),c?.size||Wl?.unobserve(o)})}}const Yl=new Set;let ps;function v5(){ps=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Yl.forEach(a=>a(e))},window.addEventListener("resize",ps)}function w5(e){return Yl.add(e),ps||v5(),()=>{Yl.delete(e),!Yl.size&&typeof ps=="function"&&(window.removeEventListener("resize",ps),ps=void 0)}}function Y0(e,a){return typeof e=="function"?w5(e):x5(e,a)}function S5(e){return jm(e)&&e.tagName==="svg"}const A5=[...F2,nt,xn],j5=e=>A5.find(V2(e)),K0=()=>({translate:0,scale:1,origin:0,originPoint:0}),gs=()=>({x:K0(),y:K0()}),$0=()=>({min:0,max:0}),ot=()=>({x:$0(),y:$0()}),N5=new WeakMap;function Pc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jo(e){return typeof e=="string"||Array.isArray(e)}const Nm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],km=["initial",...Nm];function Gc(e){return Pc(e.animate)||km.some(a=>Jo(e[a]))}function X2(e){return!!(Gc(e)||e.variants)}function k5(e,a,s){for(const o in a){const c=a[o],h=s[o];if(xt(c))e.addValue(o,c);else if(xt(h))e.addValue(o,js(c,{owner:e}));else if(h!==c)if(e.hasValue(o)){const u=e.getValue(o);u.liveStyle===!0?u.jump(c):u.hasAnimated||u.set(c)}else{const u=e.getStaticValue(o);e.addValue(o,js(u!==void 0?u:c,{owner:e}))}}for(const o in s)a[o]===void 0&&e.removeValue(o);return a}const gf={current:null},Z2={current:!1},C5=typeof window<"u";function T5(){if(Z2.current=!0,!!C5)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),a=()=>gf.current=e.matches;e.addEventListener("change",a),a()}else gf.current=!1}const J0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let fc={};function e1(e){fc=e}function z5(){return fc}class E5{scrapeMotionValuesFromProps(a,s,o){return{}}constructor({parent:a,props:s,presenceContext:o,reducedMotionConfig:c,skipAnimations:h,blockInitialAnimation:u,visualState:p},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ym,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 S=Tt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Ve.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=y,this.parent=a,this.props=s,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=h,this.options=m,this.blockInitialAnimation=!!u,this.isControllingVariants=Gc(s),this.isVariantNode=X2(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:b,...v}=this.scrapeMotionValuesFromProps(s,{},this);for(const S in v){const j=v[S];g[S]!==void 0&&xt(j)&&j.set(g[S])}}mount(a){if(this.hasBeenMounted)for(const s in this.initialValues)this.values.get(s)?.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=a,N5.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Z2.current||T5(),this.shouldReduceMotion=gf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),_a(this.notifyUpdate),_a(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const s=this.features[a];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),s.accelerate&&P2.has(a)&&this.current instanceof HTMLElement){const{factory:u,keyframes:p,times:m,ease:g,duration:y}=s.accelerate,b=new M2({element:this.current,name:a,keyframes:p,times:m,ease:g,duration:Qt(y)}),v=u(b);this.valueSubscriptions.set(a,()=>{v(),b.cancel()});return}const o=Es.has(a);o&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",u=>{this.latestValues[a]=u,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{c(),h&&h()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in fc){const s=fc[a];if(!s)continue;const{isEnabled:o,Feature:c}=s;if(!this.features[a]&&c&&o(this.props)&&(this.features[a]=new c(this)),this.features[a]){const h=this.features[a];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ot()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<J0.length;o++){const c=J0[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,u=a[h];u&&(this.propEventSubscriptions[c]=this.on(c,u))}this.prevMotionValues=k5(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const o=this.values.get(a);s!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&s!==void 0&&(o=js(s===null?void 0:s,{owner:this}),this.addValue(a,o)),o}readValue(a,s){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(Zw(o)||t2(o))?o=parseFloat(o):!j5(o)&&xn.test(s)&&(o=W2(a,s)),this.setBaseTarget(a,xt(o)?o.get():o)),xt(o)?o.get():o}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const h=vm(this.props,s,this.presenceContext?.custom);h&&(o=h[a])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,a);return c!==void 0&&!xt(c)?c:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new lm),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Sm.render(this.render)}}class t1 extends E5{constructor(){super(...arguments),this.KeyframeResolver=i5}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){const o=a.style;return o?o[s]:void 0}removeValueFromRenderState(a,{vars:s,style:o}){delete s[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;xt(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class Va{constructor(a){this.isMounted=!1,this.node=a}update(){}}function n1({top:e,left:a,right:s,bottom:o}){return{x:{min:a,max:s},y:{min:e,max:o}}}function D5({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function R5(e,a){if(!a)return e;const s=a({x:e.left,y:e.top}),o=a({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function wh(e){return e===void 0||e===1}function yf({scale:e,scaleX:a,scaleY:s}){return!wh(e)||!wh(a)||!wh(s)}function mi(e){return yf(e)||a1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a1(e){return Q0(e.x)||Q0(e.y)}function Q0(e){return e&&e!=="0%"}function mc(e,a,s){const o=e-s,c=a*o;return s+c}function X0(e,a,s,o,c){return c!==void 0&&(e=mc(e,c,o)),mc(e,s,o)+a}function bf(e,a=0,s=1,o,c){e.min=X0(e.min,a,s,o,c),e.max=X0(e.max,a,s,o,c)}function i1(e,{x:a,y:s}){bf(e.x,a.translate,a.scale,a.originPoint),bf(e.y,s.translate,s.scale,s.originPoint)}const Z0=.999999999999,ex=1.0000000000001;function M5(e,a,s,o=!1){const c=s.length;if(!c)return;a.x=a.y=1;let h,u;for(let p=0;p<c;p++){h=s[p],u=h.projectionDelta;const{visualElement:m}=h.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(En(e.x,-h.scroll.offset.x),En(e.y,-h.scroll.offset.y)),u&&(a.x*=u.x.scale,a.y*=u.y.scale,i1(e,u)),o&&mi(h.latestValues)&&Kl(e,h.latestValues,h.layout?.layoutBox))}a.x<ex&&a.x>Z0&&(a.x=1),a.y<ex&&a.y>Z0&&(a.y=1)}function En(e,a){e.min+=a,e.max+=a}function tx(e,a,s,o,c=.5){const h=Be(e.min,e.max,c);bf(e,a,s,h,o)}function nx(e,a){return typeof e=="string"?parseFloat(e)/100*(a.max-a.min):e}function Kl(e,a,s){const o=s??e;tx(e.x,nx(a.x,o.x),a.scaleX,a.scale,a.originX),tx(e.y,nx(a.y,o.y),a.scaleY,a.scale,a.originY)}function s1(e,a){return n1(R5(e.getBoundingClientRect(),a))}function O5(e,a,s){const o=s1(e,s),{scroll:c}=a;return c&&(En(o.x,c.offset.x),En(o.y,c.offset.y)),o}const P5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G5=zs.length;function U5(e,a,s){let o="",c=!0;for(let u=0;u<G5;u++){const p=zs[u],m=e[p];if(m===void 0)continue;let g=!0;if(typeof m=="number")g=m===(p.startsWith("scale")?1:0);else{const y=parseFloat(m);g=p.startsWith("scale")?y===1:y===0}if(!g||s){const y=pf(m,hc[p]);if(!g){c=!1;const b=P5[p]||p;o+=`${b}(${y}) `}s&&(a[p]=y)}}const h=e.pathRotation;return h&&(c=!1,o+=`rotate(${pf(h,hc.pathRotation)}) `),o=o.trim(),s?o=s(a,c?"":o):c&&(o="none"),o}function Cm(e,a,s){const{style:o,vars:c,transformOrigin:h}=e;let u=!1,p=!1;for(const m in a){const g=a[m];if(Es.has(m)){u=!0;continue}else if(g2(m)){c[m]=g;continue}else{const y=pf(g,hc[m]);m.startsWith("origin")?(p=!0,h[m]=y):o[m]=y}}if(a.transform||(u||s?o.transform=U5(a,e.transform,s):o.transform&&(o.transform="none")),p){const{originX:m="50%",originY:g="50%",originZ:y=0}=h;o.transformOrigin=`${m} ${g} ${y}`}}function o1(e,{style:a,vars:s},o,c){const h=e.style;let u;for(u in a)h[u]=a[u];c?.applyProjectionStyles(h,o);for(u in s)h.setProperty(u,s[u])}function ax(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}const Oo={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const s=ax(e,a.target.x),o=ax(e,a.target.y);return`${s}% ${o}%`}},L5={correct:(e,{treeScale:a,projectionDelta:s})=>{const o=e,c=xn.parse(e);if(c.length>5)return o;const h=xn.createTransformer(e),u=typeof c[0]!="number"?1:0,p=s.x.scale*a.x,m=s.y.scale*a.y;c[0+u]/=p,c[1+u]/=m;const g=Be(p,m,.5);return typeof c[2+u]=="number"&&(c[2+u]/=g),typeof c[3+u]=="number"&&(c[3+u]/=g),h(c)}},xf={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:L5};function r1(e,{layout:a,layoutId:s}){return Es.has(e)||e.startsWith("origin")||(a||s!==void 0)&&(!!xf[e]||e==="opacity")}function Tm(e,a,s){const o=e.style,c=a?.style,h={};if(!o)return h;for(const u in o)(xt(o[u])||c&&xt(c[u])||r1(u,e)||s?.getValue(u)?.liveStyle!==void 0)&&(h[u]=o[u]);return h}function H5(e){return window.getComputedStyle(e)}class I5 extends t1{constructor(){super(...arguments),this.type="html",this.renderInstance=o1}readValueFromInstance(a,s){if(Es.has(s))return this.projection?.isProjecting?af(s):oD(a,s);{const o=H5(a),c=(g2(s)?o.getPropertyValue(s):o[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:s}){return s1(a,s)}build(a,s,o){Cm(a,s,o.transformTemplate)}scrapeMotionValuesFromProps(a,s,o){return Tm(a,s,o)}}const _5={offset:"stroke-dashoffset",array:"stroke-dasharray"},B5={offset:"strokeDashoffset",array:"strokeDasharray"};function V5(e,a,s=1,o=0,c=!0){e.pathLength=1;const h=c?_5:B5;e[h.offset]=`${-o}`,e[h.array]=`${a} ${s}`}const F5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function l1(e,{attrX:a,attrY:s,attrScale:o,pathLength:c,pathSpacing:h=1,pathOffset:u=0,...p},m,g,y){if(Cm(e,p,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:v}=e;b.transform&&(v.transform=b.transform,delete b.transform),(v.transform||b.transformOrigin)&&(v.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),v.transform&&(v.transformBox=y?.transformBox??"fill-box",delete b.transformBox);for(const S of F5)b[S]!==void 0&&(v[S]=b[S],delete b[S]);a!==void 0&&(b.x=a),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),c!==void 0&&V5(b,c,h,u,!1)}const c1=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"]),d1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function q5(e,a,s,o){o1(e,a,void 0,o);for(const c in a.attrs)e.setAttribute(c1.has(c)?c:wm(c),a.attrs[c])}function u1(e,a,s){const o=Tm(e,a,s);for(const c in e)if(xt(e[c])||xt(a[c])){const h=zs.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[h]=e[c]}return o}class W5 extends t1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ot}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Es.has(s)){const o=q2(s);return o&&o.default||0}return s=c1.has(s)?s:wm(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,o){return u1(a,s,o)}build(a,s,o){l1(a,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,s,o,c){q5(a,s,o,c)}mount(a){this.isSVGTag=d1(a.tagName),super.mount(a)}}const Y5=km.length;function h1(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?h1(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const a={};for(let s=0;s<Y5;s++){const o=km[s],c=e.props[o];(Jo(c)||c===!1)&&(a[o]=c)}return a}function f1(e,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==e.length)return!1;for(let o=0;o<s;o++)if(a[o]!==e[o])return!1;return!0}const K5=[...Nm].reverse(),$5=Nm.length;function J5(e){return a=>Promise.all(a.map(({animation:s,options:o})=>YD(e,s,o)))}function Q5(e){let a=J5(e),s=ix(),o=!0,c=!1;const h=g=>(y,b)=>{const v=wi(e,b,g==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:S,transitionEnd:j,...N}=v;y={...y,...N,...j}}return y};function u(g){a=g(e)}function p(g){const{props:y}=e,b=h1(e.parent)||{},v=[],S=new Set;let j={},N=1/0;for(let T=0;T<$5;T++){const E=K5[T],R=s[E],O=y[E]!==void 0?y[E]:b[E],G=Jo(O),_=E===g?R.isActive:null;_===!1&&(N=T);let H=O===b[E]&&O!==y[E]&&G;if(H&&(o||c)&&e.manuallyAnimateOnMount&&(H=!1),R.protectedKeys={...j},!R.isActive&&_===null||!O&&!R.prevProp||Pc(O)||typeof O=="boolean")continue;if(E==="exit"&&R.isActive&&_!==!0){R.prevResolvedValues&&(j={...j,...R.prevResolvedValues});continue}const D=X5(R.prevProp,O);let J=D||E===g&&R.isActive&&!H&&G||T>N&&G,W=!1;const X=Array.isArray(O)?O:[O];let Z=X.reduce(h(E),{});_===!1&&(Z={});const{prevResolvedValues:me={}}=R,ne={...me,...Z},ue=F=>{J=!0,S.has(F)&&(W=!0,S.delete(F)),R.needsAnimating[F]=!0;const ae=e.getValue(F);ae&&(ae.liveStyle=!1)};for(const F in ne){const ae=Z[F],k=me[F];if(j.hasOwnProperty(F))continue;let Y=!1;df(ae)&&df(k)?Y=!f1(ae,k)||D:Y=ae!==k,Y?ae!=null?ue(F):S.add(F):ae!==void 0&&S.has(F)?ue(F):R.protectedKeys[F]=!0}R.prevProp=O,R.prevResolvedValues=Z,R.isActive&&(j={...j,...Z}),(o||c)&&e.blockInitialAnimation&&(J=!1);const P=H&&D;J&&(!P||W)&&v.push(...X.map(F=>{const ae={type:E};if(typeof F=="string"&&(o||c)&&!P&&e.manuallyAnimateOnMount&&e.parent){const{parent:k}=e,Y=wi(k,F);if(k.enteringChildren&&Y){const{delayChildren:ee}=Y.transition||{};ae.delay=G2(k.enteringChildren,e,ee)}}return{animation:F,options:ae}}))}if(S.size){const T={};if(typeof y.initial!="boolean"){const E=wi(e,Array.isArray(y.initial)?y.initial[0]:y.initial);E&&E.transition&&(T.transition=E.transition)}S.forEach(E=>{const R=e.getBaseTarget(E),O=e.getValue(E);O&&(O.liveStyle=!0),T[E]=R??null}),v.push({animation:T})}let C=!!v.length;return o&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(C=!1),o=!1,c=!1,C?a(v):Promise.resolve()}function m(g,y){if(s[g].isActive===y)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(g,y)),s[g].isActive=y;const b=p(g);for(const v in s)s[v].protectedKeys={};return b}return{animateChanges:p,setActive:m,setAnimateFunction:u,getState:()=>s,reset:()=>{s=ix(),c=!0}}}function X5(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!f1(a,e):!1}function ui(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ix(){return{animate:ui(!0),whileInView:ui(),whileHover:ui(),whileTap:ui(),whileDrag:ui(),whileFocus:ui(),exit:ui()}}function vf(e,a){e.min=a.min,e.max=a.max}function yn(e,a){vf(e.x,a.x),vf(e.y,a.y)}function sx(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}const m1=1e-4,Z5=1-m1,e3=1+m1,p1=.01,t3=0-p1,n3=0+p1;function zt(e){return e.max-e.min}function a3(e,a,s){return Math.abs(e-a)<=s}function ox(e,a,s,o=.5){e.origin=o,e.originPoint=Be(a.min,a.max,e.origin),e.scale=zt(s)/zt(a),e.translate=Be(s.min,s.max,e.origin)-e.originPoint,(e.scale>=Z5&&e.scale<=e3||isNaN(e.scale))&&(e.scale=1),(e.translate>=t3&&e.translate<=n3||isNaN(e.translate))&&(e.translate=0)}function Bo(e,a,s,o){ox(e.x,a.x,s.x,o?o.originX:void 0),ox(e.y,a.y,s.y,o?o.originY:void 0)}function rx(e,a,s,o=0){const c=o?Be(s.min,s.max,o):s.min;e.min=c+a.min,e.max=e.min+zt(a)}function i3(e,a,s,o){rx(e.x,a.x,s.x,o?.x),rx(e.y,a.y,s.y,o?.y)}function lx(e,a,s,o=0){const c=o?Be(s.min,s.max,o):s.min;e.min=a.min-c,e.max=e.min+zt(a)}function pc(e,a,s,o){lx(e.x,a.x,s.x,o?.x),lx(e.y,a.y,s.y,o?.y)}function cx(e,a,s,o,c){return e-=a,e=mc(e,1/s,o),c!==void 0&&(e=mc(e,1/c,o)),e}function s3(e,a=0,s=1,o=.5,c,h=e,u=e){if(Mn.test(a)&&(a=parseFloat(a),a=Be(u.min,u.max,a/100)-u.min),typeof a!="number")return;let p=Be(h.min,h.max,o);e===h&&(p-=a),e.min=cx(e.min,a,s,p,c),e.max=cx(e.max,a,s,p,c)}function dx(e,a,[s,o,c],h,u){s3(e,a[s],a[o],a[c],a.scale,h,u)}const o3=["x","scaleX","originX"],r3=["y","scaleY","originY"];function ux(e,a,s,o){dx(e.x,a,o3,s?s.x:void 0,o?o.x:void 0),dx(e.y,a,r3,s?s.y:void 0,o?o.y:void 0)}function hx(e){return e.translate===0&&e.scale===1}function g1(e){return hx(e.x)&&hx(e.y)}function fx(e,a){return e.min===a.min&&e.max===a.max}function l3(e,a){return fx(e.x,a.x)&&fx(e.y,a.y)}function mx(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function y1(e,a){return mx(e.x,a.x)&&mx(e.y,a.y)}function px(e){return zt(e.x)/zt(e.y)}function gx(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}function zn(e){return[e("x"),e("y")]}function c3(e,a,s){let o="";const c=e.x.translate/a.x,h=e.y.translate/a.y,u=s?.z||0;if((c||h||u)&&(o=`translate3d(${c}px, ${h}px, ${u}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:g,rotate:y,pathRotation:b,rotateX:v,rotateY:S,skewX:j,skewY:N}=s;g&&(o=`perspective(${g}px) ${o}`),y&&(o+=`rotate(${y}deg) `),b&&(o+=`rotate(${b}deg) `),v&&(o+=`rotateX(${v}deg) `),S&&(o+=`rotateY(${S}deg) `),j&&(o+=`skewX(${j}deg) `),N&&(o+=`skewY(${N}deg) `)}const p=e.x.scale*a.x,m=e.y.scale*a.y;return(p!==1||m!==1)&&(o+=`scale(${p}, ${m})`),o||"none"}const b1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],d3=b1.length,yx=e=>typeof e=="string"?parseFloat(e):e,bx=e=>typeof e=="number"||de.test(e);function u3(e,a,s,o,c,h){c?(e.opacity=Be(0,s.opacity??1,h3(o)),e.opacityExit=Be(a.opacity??1,0,f3(o))):h&&(e.opacity=Be(a.opacity??1,s.opacity??1,o));for(let u=0;u<d3;u++){const p=b1[u];let m=xx(a,p),g=xx(s,p);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||bx(m)===bx(g)?(e[p]=Math.max(Be(yx(m),yx(g),o),0),(Mn.test(g)||Mn.test(m))&&(e[p]+="%")):e[p]=g}(a.rotate||s.rotate)&&(e.rotate=Be(a.rotate||0,s.rotate||0,o))}function xx(e,a){return e[a]!==void 0?e[a]:e.borderRadius}const h3=x1(0,.5,d2),f3=x1(.5,.95,fn);function x1(e,a,s){return o=>o<e?0:o>a?1:s(Ko(e,a,o))}function m3(e,a,s){const o=xt(e)?e:js(e);return o.start(xm("",o,a,s)),o.animation}function Qo(e,a,s,o={passive:!0}){return e.addEventListener(a,s,o),()=>e.removeEventListener(a,s)}const p3=(e,a)=>e.depth-a.depth;class g3{constructor(){this.children=[],this.isDirty=!1}add(a){om(this.children,a),this.isDirty=!0}remove(a){rc(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(p3),this.isDirty=!1,this.children.forEach(a)}}function y3(e,a){const s=Tt.now(),o=({timestamp:c})=>{const h=c-s;h>=a&&(_a(o),e(h-a))};return Ve.setup(o,!0),()=>_a(o)}function $l(e){return xt(e)?e.get():e}class b3{constructor(){this.members=[]}add(a){om(this.members,a);for(let s=this.members.length-1;s>=0;s--){const o=this.members[s];if(o===a||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(rc(this.members,o),o.unmount())}a.scheduleRender()}remove(a){if(rc(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){for(let s=this.members.indexOf(a)-1;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(a,s){const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.updateSnapshot(),a.scheduleRender();const{layoutDependency:c}=o.options,{layoutDependency:h}=a.options;(c===void 0||c!==h)&&(a.resumeFrom=o,s&&(o.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),a.root?.isUpdating&&(a.isLayoutDirty=!0)),a.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{a.options.onExitComplete?.(),a.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Sh=["","X","Y","Z"],x3=1e3;let v3=0;function Ah(e,a,s,o){const{latestValues:c}=a;c[e]&&(s[e]=c[e],a.setStaticValue(e,0),o&&(o[e]=0))}function v1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:a}=e.options;if(!a)return;const s=_2(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:h}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",Ve,!(c||h))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&v1(o)}function w1({attachResizeListener:e,defaultParent:a,measureScroll:s,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(u={},p=a?.()){this.id=v3++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(A3),this.nodes.forEach(z3),this.nodes.forEach(E3),this.nodes.forEach(j3)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new g3)}addEventListener(u,p){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new lm),this.eventHandlers.get(u).add(p)}notifyListeners(u,...p){const m=this.eventHandlers.get(u);m&&m.notify(...p)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=jm(u)&&!S5(u),this.instance=u;const{layoutId:p,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||p)&&(this.isLayoutDirty=!0),e){let y,b=0;const v=()=>this.root.updateBlockedByResize=!1;Ve.read(()=>{b=window.innerWidth}),e(u,()=>{const S=window.innerWidth;S!==b&&(b=S,this.root.updateBlockedByResize=!0,y&&y(),y=y3(v,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach(Sx)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||g.getDefaultTransition()||P3,{onLayoutAnimationStart:N,onLayoutAnimationComplete:C}=g.getProps(),T=!this.targetLayout||!y1(this.targetLayout,S),E=!b&&v;if(this.options.layoutRoot||this.resumeFrom||E||b&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...bm(j,"layout"),onPlay:N,onComplete:C};(g.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(y,E,R.path)}else b||Sx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_a(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(D3),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&v1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:p,layout:m}=this.options;if(p===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const m=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),m&&this.nodes.forEach(k3),this.nodes.forEach(vx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(wx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(C3),this.nodes.forEach(T3),this.nodes.forEach(w3),this.nodes.forEach(S3)):this.nodes.forEach(wx),this.clearAllSnapshots();const p=Tt.now();gt.delta=On(0,1e3/60,p-gt.timestamp),gt.timestamp=p,gt.isProcessing=!0,mh.update.process(gt),mh.preRender.process(gt),mh.render.process(gt),gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(N3),this.sharedNodes.forEach(R3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zt(this.snapshot.measuredBox.x)&&!zt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ot()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(p=!1),p&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!g1(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;u&&this.instance&&(p||mi(this.latestValues)||y)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const p=this.measurePageBox();let m=this.removeElementScroll(p);return u&&(m=this.removeTransform(m)),G3(m),{animationId:this.root.animationId,measuredBox:p,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return ot();const p=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(U3))){const{scroll:g}=this.root;g&&(En(p.x,g.offset.x),En(p.y,g.offset.y))}return p}removeElementScroll(u){const p=ot();if(yn(p,u),this.scroll?.wasRoot)return p;for(let m=0;m<this.path.length;m++){const g=this.path[m],{scroll:y,options:b}=g;g!==this.root&&y&&b.layoutScroll&&(y.wasRoot&&yn(p,u),En(p.x,y.offset.x),En(p.y,y.offset.y))}return p}applyTransform(u,p=!1,m){const g=m||ot();yn(g,u);for(let y=0;y<this.path.length;y++){const b=this.path[y];!p&&b.options.layoutScroll&&b.scroll&&b!==b.root&&(En(g.x,-b.scroll.offset.x),En(g.y,-b.scroll.offset.y)),mi(b.latestValues)&&Kl(g,b.latestValues,b.layout?.layoutBox)}return mi(this.latestValues)&&Kl(g,this.latestValues,this.layout?.layoutBox),g}removeTransform(u){const p=ot();yn(p,u);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!mi(g.latestValues))continue;let y;g.instance&&(yf(g.latestValues)&&g.updateSnapshot(),y=ot(),yn(y,g.measurePageBox())),ux(p,g.latestValues,g.snapshot?.layoutBox,y)}return mi(this.latestValues)&&ux(p,this.latestValues),p}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==p;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=gt.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ot(),this.targetWithTransforms=ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i3(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):yn(this.target,this.layout.layoutBox),i1(this.target,this.targetDelta)):yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||yf(this.parent.latestValues)||a1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,p,m){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ot(),this.relativeTargetOrigin=ot(),pc(this.relativeTargetOrigin,p,m,this.options.layoutAnchor||void 0),yn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const u=this.getLead(),p=!!this.resumingFrom||this!==u;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===gt.timestamp&&(m=!1),m)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;yn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,v=this.treeScale.y;M5(this.layoutCorrected,this.treeScale,this.path,p),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ot());const{target:S}=u;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sx(this.prevProjectionDelta.x,this.projectionDelta.x),sx(this.prevProjectionDelta.y,this.projectionDelta.y)),Bo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==v||!gx(this.projectionDelta.x,this.prevProjectionDelta.x)||!gx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gs(),this.projectionDelta=gs(),this.projectionDeltaWithTransform=gs()}setAnimationOrigin(u,p=!1,m){const g=this.snapshot,y=g?g.latestValues:{},b={...this.latestValues},v=gs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=ot(),j=g?g.source:void 0,N=this.layout?this.layout.source:void 0,C=j!==N,T=this.getStack(),E=!T||T.members.length<=1,R=!!(C&&!E&&this.options.crossfade===!0&&!this.path.some(O3));this.animationProgress=0;let O;const G=m?.interpolateProjection(u);this.mixTargetDelta=_=>{const H=_/1e3,D=G?.(H);D?(v.x.translate=D.x,v.x.scale=Be(u.x.scale,1,H),v.x.origin=u.x.origin,v.x.originPoint=u.x.originPoint,v.y.translate=D.y,v.y.scale=Be(u.y.scale,1,H),v.y.origin=u.y.origin,v.y.originPoint=u.y.originPoint):(Ax(v.x,u.x,H),Ax(v.y,u.y,H)),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pc(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),M3(this.relativeTarget,this.relativeTargetOrigin,S,H),O&&l3(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=ot()),yn(O,this.relativeTarget)),C&&(this.animationValues=b,u3(b,y,this.latestValues,H,R,E)),D&&D.rotate!==void 0&&(this.animationValues||(this.animationValues=b),this.animationValues.pathRotation=D.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=H},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_a(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{Jl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=js(0)),this.motionValue.jump(0,!1),this.currentAnimation=m3(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),u.onUpdate&&u.onUpdate(p)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(x3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:y}=u;if(!(!p||!m||!g)){if(this!==u&&this.layout&&g&&S1(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||ot();const b=zt(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+b;const v=zt(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+v}yn(p,m),Kl(p,y),Bo(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(u,p){this.sharedNodes.has(u)||this.sharedNodes.set(u,new b3),this.sharedNodes.get(u).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let p=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&Ah("z",u,g,this.animationValues);for(let y=0;y<Sh.length;y++)Ah(`rotate${Sh[y]}`,u,g,this.animationValues),Ah(`skew${Sh[y]}`,u,g,this.animationValues);u.render();for(const y in g)u.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);u.scheduleRender()}applyProjectionStyles(u,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=$l(p?.pointerEvents)||"",u.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=$l(p?.pointerEvents)||""),this.hasProjected&&!mi(this.latestValues)&&(u.transform=m?m({},""):"none",this.hasProjected=!1);return}u.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=c3(this.projectionDeltaWithTransform,this.treeScale,y);m&&(b=m(y,b)),u.transform=b;const{x:v,y:S}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,g.animationValues?u.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:u.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const j in xf){if(y[j]===void 0)continue;const{correct:N,applyTo:C,isCSSVariable:T}=xf[j],E=b==="none"?y[j]:N(y[j],g);if(C){const R=C.length;for(let O=0;O<R;O++)u[C[O]]=E}else T?this.options.visualElement.renderState.vars[j]=E:u[j]=E}this.options.layoutId&&(u.pointerEvents=g===this?$l(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(vx),this.root.sharedNodes.clear()}}}function w3(e){e.updateLayout()}function S3(e){const a=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:c}=e.options,h=a.source!==e.layout.source;if(c==="size")zn(y=>{const b=h?a.measuredBox[y]:a.layoutBox[y],v=zt(b);b.min=s[y].min,b.max=b.min+v});else if(c==="x"||c==="y"){const y=c==="x"?"y":"x";vf(h?a.measuredBox[y]:a.layoutBox[y],s[y])}else S1(c,a.layoutBox,s)&&zn(y=>{const b=h?a.measuredBox[y]:a.layoutBox[y],v=zt(s[y]);b.max=b.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+v)});const u=gs();Bo(u,s,a.layoutBox);const p=gs();h?Bo(p,e.applyTransform(o,!0),a.measuredBox):Bo(p,s,a.layoutBox);const m=!g1(u);let g=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:b,layout:v}=y;if(b&&v){const S=e.options.layoutAnchor||void 0,j=ot();pc(j,a.layoutBox,b.layoutBox,S);const N=ot();pc(N,s,v.layoutBox,S),y1(j,N)||(g=!0),y.options.layoutRoot&&(e.relativeTarget=N,e.relativeTargetOrigin=j,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:p,layoutDelta:u,hasLayoutChanged:m,hasRelativeLayoutChanged:g})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function A3(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function j3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function N3(e){e.clearSnapshot()}function vx(e){e.clearMeasurements()}function k3(e){e.isLayoutDirty=!0,e.updateLayout()}function wx(e){e.isLayoutDirty=!1}function C3(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function T3(e){const{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function z3(e){e.resolveTargetDelta()}function E3(e){e.calcProjection()}
9function D3(e){e.resetSkewAndRotation()}function R3(e){e.removeLeadSnapshot()}function Ax(e,a,s){e.translate=Be(a.translate,0,s),e.scale=Be(a.scale,1,s),e.origin=a.origin,e.originPoint=a.originPoint}function jx(e,a,s,o){e.min=Be(a.min,s.min,o),e.max=Be(a.max,s.max,o)}function M3(e,a,s,o){jx(e.x,a.x,s.x,o),jx(e.y,a.y,s.y,o)}function O3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const P3={duration:.45,ease:[.4,0,.1,1]},Nx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kx=Nx("applewebkit/")&&!Nx("chrome/")?Math.round:fn;function Cx(e){e.min=kx(e.min),e.max=kx(e.max)}function G3(e){Cx(e.x),Cx(e.y)}function S1(e,a,s){return e==="position"||e==="preserve-aspect"&&!a3(px(a),px(s),.2)}function U3(e){return e!==e.root&&e.scroll?.wasRoot}const L3=w1({attachResizeListener:(e,a)=>Qo(e,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),jh={current:void 0},A1=w1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jh.current){const e=new L3({});e.mount(window),e.setOptions({layoutScroll:!0}),jh.current=e}return jh.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),zm=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Tx(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function H3(...e){return a=>{let s=!1;const o=e.map(c=>{const h=Tx(c,a);return!s&&typeof h=="function"&&(s=!0),h});if(s)return()=>{for(let c=0;c<o.length;c++){const h=o[c];typeof h=="function"?h():Tx(e[c],null)}}}}function I3(...e){return w.useCallback(H3(...e),e)}class _3 extends w.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(Vl(s)&&a.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=s.offsetParent,c=Vl(o)&&o.offsetWidth||0,h=Vl(o)&&o.offsetHeight||0,u=getComputedStyle(s),p=this.props.sizeRef.current;p.height=parseFloat(u.height),p.width=parseFloat(u.width),p.top=s.offsetTop,p.left=s.offsetLeft,p.right=c-p.width-p.left,p.bottom=h-p.height-p.top,p.direction=u.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function B3({children:e,isPresent:a,anchorX:s,anchorY:o,root:c,pop:h}){const u=w.useId(),p=w.useRef(null),m=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=w.useContext(zm),y=e.props?.ref??e?.ref,b=I3(p,y);return w.useInsertionEffect(()=>{const{width:v,height:S,top:j,left:N,right:C,bottom:T,direction:E}=m.current;if(a||h===!1||!p.current||!v||!S)return;const R=E==="rtl",O=s==="left"?R?`right: ${C}`:`left: ${N}`:R?`left: ${N}`:`right: ${C}`,G=o==="bottom"?`bottom: ${T}`:`top: ${j}`;p.current.dataset.motionPopId=u;const _=document.createElement("style");g&&(_.nonce=g);const H=c??document.head;return H.appendChild(_),_.sheet&&_.sheet.insertRule(`
10          [data-motion-pop-id="${u}"] {
11            position: absolute !important;
12            width: ${v}px !important;
13            height: ${S}px !important;
14            ${O}px !important;
15            ${G}px !important;
16          }
17        `),()=>{p.current?.removeAttribute("data-motion-pop-id"),H.contains(_)&&H.removeChild(_)}},[a]),r.jsx(_3,{isPresent:a,childRef:p,sizeRef:m,pop:h,children:h===!1?e:w.cloneElement(e,{ref:b})})}const V3=({children:e,initial:a,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:h,mode:u,anchorX:p,anchorY:m,root:g})=>{const y=sm(F3),b=w.useId();let v=!0,S=w.useMemo(()=>(v=!1,{id:b,initial:a,isPresent:s,custom:c,onExitComplete:j=>{y.set(j,!0);for(const N of y.values())if(!N)return;o&&o()},register:j=>(y.set(j,!1),()=>y.delete(j))}),[s,y,o]);return h&&v&&(S={...S}),w.useMemo(()=>{y.forEach((j,N)=>y.set(N,!1))},[s]),w.useEffect(()=>{!s&&!y.size&&o&&o()},[s]),e=r.jsx(B3,{pop:u==="popLayout",isPresent:s,anchorX:p,anchorY:m,root:g,children:e}),r.jsx(Mc.Provider,{value:S,children:e})};function F3(){return new Map}function j1(e=!0){const a=w.useContext(Mc);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:c}=a,h=w.useId();w.useEffect(()=>{if(e)return c(h)},[e]);const u=w.useCallback(()=>e&&o&&o(h),[h,o,e]);return!s&&o?[!1,u]:[!0]}const zl=e=>e.key||"";function zx(e){const a=[];
vendor: 3,105 bytes, line 17
17return w.Children.forEach(e,s=>{w.isValidElement(s)&&a.push(s)}),a}const ys=({children:e,custom:a,initial:s=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:h="sync",propagate:u=!1,anchorX:p="left",anchorY:m="top",root:g})=>{const[y,b]=j1(u),v=w.useMemo(()=>zx(e),[e]),S=u&&!y?[]:v.map(zl),j=w.useRef(!0),N=w.useRef(v),C=sm(()=>new Map),T=w.useRef(new Set),[E,R]=w.useState(v),[O,G]=w.useState(v);Xw(()=>{j.current=!1,N.current=v;for(let D=0;D<O.length;D++){const J=zl(O[D]);S.includes(J)?(C.delete(J),T.current.delete(J)):C.get(J)!==!0&&C.set(J,!1)}},[O,S.length,S.join("-")]);const _=[];if(v!==E){let D=[...v];for(let J=0;J<O.length;J++){const W=O[J],X=zl(W);S.includes(X)||(D.splice(J,0,W),_.push(W))}return h==="wait"&&_.length&&(D=_),G(zx(D)),R(v),null}const{forceRender:H}=w.useContext(im);return r.jsx(r.Fragment,{children:O.map(D=>{const J=zl(D),W=u&&!y?!1:v===O||S.includes(J),X=()=>{if(T.current.has(J))return;if(C.has(J))T.current.add(J),C.set(J,!0);else return;let Z=!0;C.forEach(me=>{me||(Z=!1)}),Z&&(H?.(),G(N.current),u&&b?.(),o&&o())};return r.jsx(V3,{isPresent:W,initial:!j.current||s?void 0:!1,custom:a,presenceAffectsLayout:c,mode:h,root:g,onExitComplete:W?void 0:X,anchorX:p,anchorY:m,children:D},J)})})},N1=w.createContext({strict:!1}),Ex={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"]};let Dx=!1;function q3(){if(Dx)return;const e={};for(const a in Ex)e[a]={isEnabled:s=>Ex[a].some(o=>!!s[o])};e1(e),Dx=!0}function k1(){return q3(),z5()}function W3(e){const a=k1();for(const s in e)a[s]={...a[s],...e[s]};e1(a)}const Y3=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","propagate","ignoreStrict","viewport"]);function gc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Y3.has(e)}let C1=e=>!gc(e);function K3(e){typeof e=="function"&&(C1=a=>a.startsWith("on")?!gc(a):e(a))}try{K3(require("@emotion/is-prop-valid").default)}catch{}function $3(e,a,s){const o={};for(const c in e)c==="values"&&typeof e.values=="object"||xt(e[c])||(C1(c)||s===!0&&gc(c)||!a&&!gc(c)||e.draggable&&c.startsWith("onDrag"))&&(o[c]=e[c]);return o}const Uc=w.createContext({});function J3(e,a){if(Gc(e)){const{initial:s,animate:o}=e;return{initial:s===!1||Jo(s)?s:void 0,animate:Jo(o)?o:void 0}}return e.inherit!==!1?a:{}}function Q3(e){const{initial:a,animate:s}
vendor: 23,973 bytes, line 17
17=J3(e,w.useContext(Uc));return w.useMemo(()=>({initial:a,animate:s}),[Rx(a),Rx(s)])}function Rx(e){return Array.isArray(e)?e.join(" "):e}const Em=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function T1(e,a,s){for(const o in a)!xt(a[o])&&!r1(o,s)&&(e[o]=a[o])}function X3({transformTemplate:e},a){return w.useMemo(()=>{const s=Em();return Cm(s,a,e),Object.assign({},s.vars,s.style)},[a])}function Z3(e,a){const s=e.style||{},o={};return T1(o,s,e),Object.assign(o,X3(e,a)),o}function eR(e,a){const s={},o=Z3(e,a);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=o,s}const z1=()=>({...Em(),attrs:{}});function tR(e,a,s,o){const c=w.useMemo(()=>{const h=z1();return l1(h,a,d1(o),e.transformTemplate,e.style),{...h.attrs,style:{...h.style}}},[a]);if(e.style){const h={};T1(h,e.style,e),c.style={...h,...c.style}}return c}const nR=["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 Dm(e){return typeof e!="string"||e.includes("-")?!1:!!(nR.indexOf(e)>-1||/[A-Z]/u.test(e))}function aR(e,a,s,{latestValues:o},c,h=!1,u){const m=(u??Dm(e)?tR:eR)(a,o,c,e),g=$3(a,typeof e=="string",h),y=e!==w.Fragment?{...g,...m,ref:s}:{},{children:b}=a,v=w.useMemo(()=>xt(b)?b.get():b,[b]);return w.createElement(e,{...y,children:v})}function iR({scrapeMotionValuesFromProps:e,createRenderState:a},s,o,c){return{latestValues:sR(s,o,c,e),renderState:a()}}function sR(e,a,s,o){const c={},h=o(e,{});for(const v in h)c[v]=$l(h[v]);let{initial:u,animate:p}=e;const m=Gc(e),g=X2(e);a&&g&&!m&&e.inherit!==!1&&(u===void 0&&(u=a.initial),p===void 0&&(p=a.animate));let y=s?s.initial===!1:!1;y=y||u===!1;const b=y?p:u;if(b&&typeof b!="boolean"&&!Pc(b)){const v=Array.isArray(b)?b:[b];for(let S=0;S<v.length;S++){const j=vm(e,v[S]);if(j){const{transitionEnd:N,transition:C,...T}=j;for(const E in T){let R=T[E];if(Array.isArray(R)){const O=y?R.length-1:0;R=R[O]}R!==null&&(c[E]=R)}for(const E in N)c[E]=N[E]}}}return c}const E1=e=>(a,s)=>{const o=w.useContext(Uc),c=w.useContext(Mc),h=()=>iR(e,a,o,c);return s?h():sm(h)},oR=E1({scrapeMotionValuesFromProps:Tm,createRenderState:Em}),rR=E1({scrapeMotionValuesFromProps:u1,createRenderState:z1}),lR=Symbol.for("motionComponentSymbol");function cR(e,a,s){const o=w.useRef(s);w.useInsertionEffect(()=>{o.current=s});const c=w.useRef(null);return w.useCallback(h=>{h&&e.onMount?.(h),a&&(h?a.mount(h):a.unmount());const u=o.current;if(typeof u=="function")if(h){const p=u(h);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):u(h);else u&&(u.current=h)},[a])}const D1=w.createContext({});function hs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function dR(e,a,s,o,c,h){const{visualElement:u}=w.useContext(Uc),p=w.useContext(N1),m=w.useContext(Mc),g=w.useContext(zm),y=g.reducedMotion,b=g.skipAnimations,v=w.useRef(null),S=w.useRef(!1);o=o||p.renderer,!v.current&&o&&(v.current=o(e,{visualState:a,parent:u,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:h}),S.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const j=v.current,N=w.useContext(D1);j&&!j.projection&&c&&(j.type==="html"||j.type==="svg")&&uR(v.current,s,c,N);const C=w.useRef(!1);w.useInsertionEffect(()=>{j&&C.current&&j.update(s,m)});const T=s[I2],E=w.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return Xw(()=>{S.current=!0,j&&(C.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),E.current&&j.animationState&&j.animationState.animateChanges())}),w.useEffect(()=>{j&&(!E.current&&j.animationState&&j.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),E.current=!1),j.enteringChildren=void 0)}),j}function uR(e,a,s,o){const{layoutId:c,layout:h,drag:u,dragConstraints:p,layoutScroll:m,layoutRoot:g,layoutAnchor:y,layoutCrossfade:b}=a;e.projection=new s(e.latestValues,a["data-framer-portal-id"]?void 0:R1(e.parent)),e.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!u||p&&hs(p),visualElement:e,animationType:typeof h=="string"?h:"both",initialPromotionConfig:o,crossfade:b,layoutScroll:m,layoutRoot:g,layoutAnchor:y})}function R1(e){if(e)return e.options.allowProjection!==!1?e.projection:R1(e.parent)}function Nh(e,{forwardMotionProps:a=!1,type:s}={},o,c){o&&W3(o);const h=s?s==="svg":Dm(e),u=h?rR:oR;function p(g,y){let b;const v={...w.useContext(zm),...g,layoutId:hR(g)},{isStatic:S}=v,j=Q3(g),N=u(g,S);if(!S&&typeof window<"u"){fR();const C=mR(v);b=C.MeasureLayout,j.visualElement=dR(e,N,v,c,C.ProjectionNode,h)}return r.jsxs(Uc.Provider,{value:j,children:[b&&j.visualElement?r.jsx(b,{visualElement:j.visualElement,...v}):null,aR(e,g,cR(N,j.visualElement,y),N,S,a,h)]})}p.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=w.forwardRef(p);return m[lR]=e,m}function hR({layoutId:e}){const a=w.useContext(im).id;return a&&e!==void 0?a+"-"+e:e}function fR(e,a){w.useContext(N1).strict}function mR(e){const a=k1(),{drag:s,layout:o}=a;if(!s&&!o)return{};const c={...s,...o};return{MeasureLayout:s?.isEnabled(e)||o?.isEnabled(e)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function pR(e,a){if(typeof Proxy>"u")return Nh;const s=new Map,o=(h,u)=>Nh(h,u,e,a),c=(h,u)=>o(h,u);return new Proxy(c,{get:(h,u)=>u==="create"?o:(s.has(u)||s.set(u,Nh(u,void 0,e,a)),s.get(u))})}const gR=(e,a)=>a.isSVG??Dm(e)?new W5(a):new I5(a,{allowProjection:e!==w.Fragment});class yR extends Va{constructor(a){super(a),a.animationState||(a.animationState=Q5(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Pc(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let bR=0;class xR extends Va{constructor(){super(...arguments),this.id=bR++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;if(a&&o===!1){if(this.isExitComplete){const{initial:h,custom:u}=this.node.getProps();if(typeof h=="string"||typeof h=="object"&&h!==null&&!Array.isArray(h)){const p=wi(this.node,h,u);if(p){const{transition:m,transitionEnd:g,...y}=p;for(const b in y)this.node.getValue(b)?.jump(y[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!a);s&&!a&&c.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const vR={animation:{Feature:yR},exit:{Feature:xR}};function sr(e){return{point:{x:e.pageX,y:e.pageY}}}const wR=e=>a=>Am(a)&&e(a,sr(a));function Vo(e,a,s,o){return Qo(e,a,wR(s),o)}const M1=({current:e})=>e?e.ownerDocument.defaultView:null,Mx=(e,a)=>Math.abs(e-a);function SR(e,a){const s=Mx(e.x,a.x),o=Mx(e.y,a.y);return Math.sqrt(s**2+o**2)}const Ox=new Set(["auto","scroll"]);class O1{constructor(a,s,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:u=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=El(this.lastRawMoveEventInfo,this.transformPagePoint));const S=kh(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,N=SR(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!N)return;const{point:C}=S,{timestamp:T}=gt;this.history.push({...C,timestamp:T});const{onStart:E,onMove:R}=this.handlers;j||(E&&E(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,S)},this.handlePointerMove=(S,j)=>{this.lastMoveEvent=S,this.lastRawMoveEventInfo=j,this.lastMoveEventInfo=El(j,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(S,j)=>{this.end();const{onEnd:N,onSessionEnd:C,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=kh(S.type==="pointercancel"?this.lastMoveEventInfo:El(j,this.transformPagePoint),this.history);this.startEvent&&N&&N(S,E),C&&C(S,E)},!Am(a))return;this.dragSnapToOrigin=h,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=u,this.contextWindow=c||window;const m=sr(a),g=El(m,this.transformPagePoint),{point:y}=g,{timestamp:b}=gt;this.history=[{...y,timestamp:b}];const{onSessionStart:v}=s;v&&v(a,kh(g,this.history)),this.removeListeners=nr(Vo(this.contextWindow,"pointermove",this.handlePointerMove),Vo(this.contextWindow,"pointerup",this.handlePointerUp),Vo(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(a){let s=a.parentElement;for(;s;){const o=getComputedStyle(s);(Ox.has(o.overflowX)||Ox.has(o.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const s=this.scrollPositions.get(a);if(!s)return;const o=a===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},h={x:c.x-s.x,y:c.y-s.y};h.x===0&&h.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(a,c),Ve.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_a(this.updatePoint)}}function El(e,a){return a?{point:a(e.point)}:e}function Px(e,a){return{x:e.x-a.x,y:e.y-a.y}}function kh({point:e},a){return{point:e,delta:Px(e,P1(a)),offset:Px(e,AR(a)),velocity:jR(a,.1)}}function AR(e){return e[0]}function P1(e){return e[e.length-1]}function jR(e,a){if(e.length<2)return{x:0,y:0};let s=e.length-1,o=null;const c=P1(e);for(;s>=0&&(o=e[s],!(c.timestamp-o.timestamp>Qt(a)));)s--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&c.timestamp-o.timestamp>Qt(a)*2&&(o=e[1]);const h=hn(c.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const u={x:(c.x-o.x)/h,y:(c.y-o.y)/h};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function NR(e,{min:a,max:s},o){return a!==void 0&&e<a?e=o?Be(a,e,o.min):Math.max(e,a):s!==void 0&&e>s&&(e=o?Be(s,e,o.max):Math.min(e,s)),e}function Gx(e,a,s){return{min:a!==void 0?e.min+a:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function kR(e,{top:a,left:s,bottom:o,right:c}){return{x:Gx(e.x,s,c),y:Gx(e.y,a,o)}}function Ux(e,a){let s=a.min-e.min,o=a.max-e.max;return a.max-a.min<e.max-e.min&&([s,o]=[o,s]),{min:s,max:o}}function CR(e,a){return{x:Ux(e.x,a.x),y:Ux(e.y,a.y)}}function TR(e,a){let s=.5;const o=zt(e),c=zt(a);return c>o?s=Ko(a.min,a.max-o,e.min):o>c&&(s=Ko(e.min,e.max-c,a.min)),On(0,1,s)}function zR(e,a){const s={};return a.min!==void 0&&(s.min=a.min-e.min),a.max!==void 0&&(s.max=a.max-e.min),s}const wf=.35;function ER(e=wf){return e===!1?e=0:e===!0&&(e=wf),{x:Lx(e,"left","right"),y:Lx(e,"top","bottom")}}function Lx(e,a,s){return{min:Hx(e,a),max:Hx(e,s)}}function Hx(e,a){return typeof e=="number"?e:e[a]||0}const DR=new WeakMap;class RR{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ot(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{s&&this.snapToCursor(sr(b).point),this.stopAnimation()},u=(b,v)=>{const{drag:S,dragPropagation:j,onDragStart:N}=this.getProps();if(S&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=s5(S),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zn(T=>{let E=this.getAxisMotionValue(T).get()||0;if(Mn.test(E)){const{projection:R}=this.visualElement;if(R&&R.layout){const O=R.layout.layoutBox[T];O&&(E=zt(O)*(parseFloat(E)/100))}}this.originPoint[T]=E}),N&&Ve.update(()=>N(b,v),!1,!0),uf(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},p=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v;const{dragPropagation:S,dragDirectionLock:j,onDirectionLock:N,onDrag:C}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:T}=v;if(j&&this.currentDirection===null){this.currentDirection=OR(T),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",v.point,T),this.updateAxis("y",v.point,T),this.visualElement.render(),C&&Ve.update(()=>C(b,v),!1,!0)},m=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v,this.stop(b,v),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new O1(a,{onSessionStart:h,onStart:u,onMove:p,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:M1(this.visualElement),element:this.visualElement.current})}stop(a,s){const o=a||this.latestPointerEvent,c=s||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!o)return;const{velocity:u}=c;this.startAnimation(u);const{onDragEnd:p}=this.getProps();p&&Ve.postRender(()=>p(o,c))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,s,o){const{drag:c}=this.getProps();if(!o||!Dl(a,c,this.currentDirection))return;const h=this.getAxisMotionValue(a);let u=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(u=NR(u,this.constraints[a],this.elastic[a])),h.set(u)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;a&&hs(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=kR(o.layoutBox,a):this.constraints=!1,this.elastic=ER(s),c!==this.constraints&&!hs(a)&&o&&this.constraints&&!this.hasMutatedConstraints&&zn(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=zR(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!hs(a))return!1;const o=a.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;c.root&&(c.root.scroll=void 0,c.root.updateScroll());const h=O5(o,c.root,this.visualElement.getTransformPagePoint());let u=CR(c.layout.layoutBox,h);if(s){const p=s(D5(u));this.hasMutatedConstraints=!!p,p&&(u=n1(p))}return u}startAnimation(a){const{drag:s,dragMomentum:o,dragElastic:c,dragTransition:h,dragSnapToOrigin:u,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=zn(y=>{if(!Dl(y,s,this.currentDirection))return;let b=m&&m[y]||{};(u===!0||u===y)&&(b={min:0,max:0});const v=c?200:1e6,S=c?40:1e7,j={type:"inertia",velocity:o?a[y]:0,bounceStiffness:v,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(y,j)});return Promise.all(g).then(p)}startAxisValueAnimation(a,s){const o=this.getAxisMotionValue(a);return uf(this.visualElement,a),o.start(xm(a,o,0,s,this.visualElement,!1))}stopAnimation(){zn(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,c=this.visualElement.getProps()[s];return c||this.visualElement.getValue(a,this.visualElement.latestValues[a]??0)}snapToCursor(a){zn(s=>{const{drag:o}=this.getProps();if(!Dl(s,o,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(s);if(c&&c.layout){const{min:u,max:p}=c.layout.layoutBox[s],m=h.get()||0;h.set(a[s]-Be(u,p,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!hs(s)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};zn(u=>{const p=this.getAxisMotionValue(u);if(p&&this.constraints!==!1){const m=p.get();c[u]=TR({min:m,max:m},this.constraints[u])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),zn(u=>{if(!Dl(u,a,null))return;const p=this.getAxisMotionValue(u),{min:m,max:g}=this.constraints[u];p.set(Be(m,g,c[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;DR.set(this.visualElement,this);const a=this.visualElement.current,s=Vo(a,"pointerdown",g=>{const{drag:y,dragListener:b=!0}=this.getProps(),v=g.target,S=v!==a&&u5(v);y&&b&&!S&&this.start(g)});let o;const c=()=>{const{dragConstraints:g}=this.getProps();hs(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),o||(o=MR(a,g.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,u=h.addEventListener("measure",c);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),Ve.read(c);const p=Qo(window,"resize",()=>this.scalePositionWithinConstraints()),m=h.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(zn(b=>{const v=this.getAxisMotionValue(b);v&&(this.originPoint[b]+=g[b].translate,v.set(v.get()+g[b].translate))}),this.visualElement.render())}));return()=>{p(),s(),u(),m&&m(),o&&o()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:u=wf,dragMomentum:p=!0}=a;return{...a,drag:s,dragDirectionLock:o,dragPropagation:c,dragConstraints:h,dragElastic:u,dragMomentum:p}}}function Ix(e){let a=!0;return()=>{if(a){a=!1;return}e()}}function MR(e,a,s){const o=Y0(e,Ix(s)),c=Y0(a,Ix(s));return()=>{o(),c()}}function Dl(e,a,s){return(a===!0||a===e)&&(s===null||s===e)}function OR(e,a=10){let s=null;return Math.abs(e.y)>a?s="y":Math.abs(e.x)>a&&(s="x"),s}class PR extends Va{constructor(a){super(a),this.removeGroupControls=fn,this.removeListeners=fn,this.controls=new RR(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fn}update(){const{dragControls:a}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};a!==s&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ch=e=>(a,s)=>{e&&Ve.update(()=>e(a,s),!1,!0)};class GR extends Va{constructor(){super(...arguments),this.removePointerDownListener=fn}onPointerDown(a){this.session=new O1(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:M1(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Ch(a),onStart:Ch(s),onMove:Ch(o),onEnd:(h,u)=>{delete this.session,c&&Ve.postRender(()=>c(h,u))}}}mount(){this.removePointerDownListener=Vo(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Th=!1;class UR extends w.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o,layoutId:c}=this.props,{projection:h}=a;h&&(s.group&&s.group.add(h),o&&o.register&&c&&o.register(h),Th&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:o,drag:c,isPresent:h}=this.props,{projection:u}=o;return u&&(u.isPresent=h,a.layoutDependency!==s&&u.setOptions({...u.options,layoutDependency:s}),Th=!0,c||a.layoutDependency!==s||s===void 0||a.isPresent!==h?u.willUpdate():this.safeToRemove(),a.isPresent!==h&&(h?u.promote():u.relegate()||Ve.postRender(()=>{const p=u.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:a,layoutAnchor:s}=this.props,{projection:o}=a;o&&(o.options.layoutAnchor=s,o.root.didUpdate(),Sm.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:c}=a;Th=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function G1(e){const[a,s]=j1(),o=w.useContext(im);return r.jsx(UR,{...e,layoutGroup:o,switchLayoutGroup:w.useContext(D1),isPresent:a,safeToRemove:s})}const LR={pan:{Feature:GR},drag:{Feature:PR,ProjectionNode:A1,MeasureLayout:G1}};function _x(e,a,s){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,h=o[c];h&&Ve.postRender(()=>h(a,sr(a)))}class HR extends Va{mount(){const{current:a}=this.node;a&&(this.unmount=r5(a,(s,o)=>(_x(this.node,o,"Start"),c=>_x(this.node,c,"End"))))}unmount(){}}class IR extends Va{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=nr(Qo(this.node.current,"focus",()=>this.onFocus()),Qo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Bx(e,a,s){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),h=o[c];h&&Ve.postRender(()=>h(a,sr(a)))}class _R extends Va{mount(){const{current:a}=this.node;if(!a)return;
17const{globalTapTarget:s,propagate:o}=this.node.props;this.unmount=f5(a,(c,h)=>(Bx(this.node,h,"Start"),(u,{success:p})=>Bx(this.node,u,p?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:o?.tap===!1})}unmount(){}}const Sf=new WeakMap,zh=new WeakMap,BR=e=>{const a=Sf.get(e.target);a&&a(e)},VR=e=>{e.forEach(BR)};function FR({root:e,...a}){const s=e||document;zh.has(s)||zh.set(s,{});const o=zh.get(s),c=JSON.stringify(a);return o[c]||(o[c]=new IntersectionObserver(VR,{root:e,...a})),o[c]}function qR(e,a,s){const o=FR(a);return Sf.set(e,s),o.observe(e),()=>{Sf.delete(e),o.unobserve(e)}}const WR={some:0,all:1};class YR extends Va{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:a={}}=this.node.getProps(),{root:s,margin:o,amount:c="some",once:h}=a,u={root:s?s.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:WR[c]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,h&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:b}=this.node.getProps(),v=g?y:b;v&&v(m)};this.stopObserver=qR(this.node.current,u,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(KR(a,s))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function KR({viewport:e={}},{viewport:a={}}={}){return s=>e[s]!==a[s]}const $R={inView:{Feature:YR},tap:{Feature:_R},focus:{Feature:IR},hover:{Feature:HR}},JR={layout:{ProjectionNode:A1,MeasureLayout:G1}},QR={...vR,...$R,...LR,...JR},pe=pR(QR,gR),XR=Bv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground shadow-sm border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),vt=w.forwardRef(({className:e,variant:a,size:s,asChild:o=!1,...c},h)=>{const u=o?VN:"button";return r.jsx(u,{className:Et(XR({variant:a,size:s,className:e})),ref:h,...c})});vt.displayName="Button";const Rm="https://www.zeffy.com/en-US/donation-form/the-freedom-campaign",U1="/freedom-campaign.webp?v=20260922-3",Vx="dag-freedom-campaign-popup-v2";function ZR(){const[e,a]=w.useState(!1);return e?null:r.jsxs("div",{className:"relative overflow-hidden border-b-2 border-black bg-[#ef492f] text-white",children:[r.jsx("div",{className:"absolute inset-0 opacity-10 [background-image:repeating-linear-gradient(135deg,transparent_0,transparent_12px,#000_12px,#000_14px)]"}),r.jsxs("div",{className:"relative mx-auto flex min-h-12 max-w-7xl items-center justify-center gap-2 px-11 py-2 text-center sm:gap-4 lg:px-12",children:[r.jsx("p",{className:"text-xs font-black uppercase leading-tight tracking-wide sm:text-sm",children:"The Freedom Campaign: Help us raise $5 million for Gaza’s children and healthcare"}),r.jsx("a",{href:Rm,target:"_blank",rel:"noopener noreferrer",className:"shrink-0 rounded-sm bg-white px-3 py-1.5 text-xs font-black uppercase text-black shadow-[3px_3px_0_#111] transition-transform hover:-translate-y-0.5",children:"Donate now"}),r.jsx("button",{type:"button",onClick:()=>a(!0),className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/80 transition-colors hover:text-white","aria-label":"Dismiss Freedom Campaign alert",children:r.jsx(oa,{className:"h-4 w-4"})})]})]})}function eM(){return r.jsxs("section",{id:"freedom-campaign",className:"relative overflow-hidden border-y-4 border-black bg-[#f4f0e9] px-5 py-10 sm:px-6 lg:px-12 lg:py-14",children:[r.jsx("div",{className:"absolute right-0 top-0 h-52 w-52 translate-x-1/3 -translate-y-1/3 rounded-full bg-[#ef492f]/15"}),r.jsxs("div",{className:"relative mx-auto grid max-w-7xl items-center gap-8 lg:grid-cols-[0.82fr_1.18fr] lg:gap-14",children:[r.jsx("div",{className:"mx-auto w-full max-w-[430px] overflow-hidden rounded-sm border-4 border-black bg-white shadow-[12px_12px_0_#ef492f]",children:r.jsx("img",{src:U1,alt:"The Freedom Campaign: $5 million for Gaza children and healthcare",className:"h-auto w-full"})}),r.jsxs("div",{children:[r.jsxs("div",{className:"mb-5 inline-flex items-center gap-2 bg-black px-3 py-2 text-xs font-black uppercase tracking-[0.18em] text-white",children:[r.jsx(ew,{className:"h-4 w-4 text-[#ef492f]"}),"Urgent fundraising campaign"]}),r.jsx("p",{className:"font-black uppercase tracking-[0.14em] text-[#c93420]",children:"Doctors Against Genocide"}),r.jsxs("h2",{className:"mt-2 max-w-4xl text-5xl uppercase leading-[0.9] text-black sm:text-6xl lg:text-7xl",style:{fontFamily:"Impact, 'Arial Narrow', Arial, sans-serif"},children:["The ",r.jsx("span",{className:"text-[#ef492f]",children:"Freedom"})," Campaign"]}),r.jsx("div",{className:"my-6 h-1.5 w-28 bg-[#ef492f]"}),r.jsx("p",{className:"max-w-2xl text-lg font-semibold leading-relaxed text-zinc-800 sm:text-xl",children:"Inspired by Macklemore and Ms. Rachel each donating $1 million in support of Palestine, Doctors Against Genocide is calling on our community to help build a $5 million fund for Gaza’s children and healthcare."}),r.jsx("div",{className:"mt-7 w-full max-w-xl border-2 border-black bg-white p-3 shadow-[4px_4px_0_#111]",children:r.jsx("div",{className:"relative w-full overflow-hidden pt-[120px]",children:r.jsx("iframe",{title:"Freedom Campaign donation progress powered by Zeffy",src:"https://www.zeffy.com/embed/thermometer/the-freedom-campaign",className:"absolute inset-0 h-[120px] w-full border-0",loading:"lazy"})})}),r.jsxs("a",{href:Rm,target:"_blank",rel:"noopener noreferrer",className:"mt-7 inline-flex w-full max-w-xl items-center justify-center gap-3 bg-[#ef492f] px-7 py-5 text-lg font-black uppercase tracking-wide text-white shadow-[6px_6px_0_#111] transition-transform hover:-translate-y-1",children:[r.jsx(Yv,{className:"h-6 w-6"}),"Donate to the Freedom Campaign",r.jsx(Ze,{className:"h-5 w-5"})]}),r.jsx("p",{className:"mt-4 text-sm font-semibold text-zinc-600",children:"Donations to the Freedom Campaign are securely processed by Zeffy."})]})]})]})}function tM(){const[e,a]=w.useState(!1),s=w.useRef(null);
17w.useEffect(()=>{if(sessionStorage.getItem(Vx))return;const c=window.setTimeout(()=>a(!0),700);return()=>window.clearTimeout(c)},[]),w.useEffect(()=>{if(!e)return;s.current?.focus();const c=h=>{h.key==="Escape"&&o()};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e]);const o=()=>{sessionStorage.setItem(Vx,"1"),a(!1)};return e?r.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/85 p-3 backdrop-blur-sm sm:p-6",onClick:o,role:"dialog","aria-modal":"true","aria-labelledby":"freedom-campaign-popup-title",children:r.jsxs("div",{className:"relative grid max-h-[94dvh] w-full max-w-4xl overflow-auto border-4 border-black bg-[#f4f0e9] shadow-[10px_10px_0_#ef492f] md:grid-cols-[0.78fr_1.22fr]",onClick:c=>c.stopPropagation(),children:[r.jsx("button",{type:"button",onClick:o,className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black text-white transition-colors hover:bg-zinc-800","aria-label":"Close Freedom Campaign alert",children:r.jsx(oa,{className:"h-5 w-5"})}),r.jsx("div",{className:"flex items-start justify-center overflow-hidden bg-[#f4f0e9]",children:r.jsx("img",{src:U1,alt:"",className:"h-auto w-full object-contain object-top"})}),r.jsxs("div",{className:"flex flex-col justify-center p-6 sm:p-8 md:p-10",children:[r.jsxs("h2",{id:"freedom-campaign-popup-title",className:"text-4xl uppercase leading-[0.9] text-black sm:text-5xl",style:{fontFamily:"Impact, 'Arial Narrow', Arial, sans-serif"},children:["Help build a ",r.jsx("span",{className:"text-[#ef492f]",children:"$5 million"})," ","lifeline for Gaza"]}),r.jsx("p",{className:"mt-5 text-base font-semibold leading-relaxed text-zinc-700",children:"Inspired by Macklemore and Ms. Rachel each donating $1 million in support of Palestine, DAG is asking our community to help build a $5 million fund for Gaza’s children and healthcare."}),r.jsxs("a",{ref:s,href:Rm,target:"_blank",rel:"noopener noreferrer",onClick:o,className:"mt-6 inline-flex items-center justify-center gap-2 bg-[#ef492f] px-6 py-4 text-base font-black uppercase tracking-wide text-white shadow-[5px_5px_0_#111] transition-transform hover:-translate-y-0.5",children:["Donate now",r.jsx(Ze,{className:"h-5 w-5"})]}),r.jsx("button",{type:"button",onClick:o,className:"mt-5 text-sm font-bold text-zinc-500 underline underline-offset-4 hover:text-black",children:"Continue to the website"})]})]})}):null}function Pn(){const[e,a]=w.useState(!1),[s,o]=w.useState(!1),[c,h]=w.useState(!1),u=w.useRef(null),p=w.useRef(null);w.useEffect(()=>{const g=()=>a(window.scrollY>20);return window.addEventListener("scroll",g),()=>window.removeEventListener("scroll",g)},[]),w.useEffect(()=>{const g=y=>{u.current&&!u.current.contains(y.target)&&h(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]),w.useLayoutEffect(()=>{const g=p.current;if(!g)return;const y=()=>document.documentElement.style.setProperty("--app-header-h",`${g.offsetHeight}px`);y();const b=new ResizeObserver(y);return b.observe(g),window.addEventListener("resize",y),()=>{b.disconnect(),window.removeEventListener("resize",y)}},[]);const m=[{name:"Home",href:"/"},{name:"Education",href:"/education"},{name:"Advocacy",href:"/advocacy"},{name:"Community Support",href:"/community-support"},{name:"Get Involved",href:"/get-involved"}];return r.jsxs("header",{ref:p,className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${e?"bg-black/95 backdrop-blur-sm shadow-md":"bg-black"}`,children:[r.jsx(ZR,{}),r.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12 flex items-center justify-between py-4",children:[r.jsx("a",{href:"/",className:"flex-shrink-0","data-testid":"link-home",children:r.jsx("img",{src:"/dag-logo-tight.png",alt:"Doctors Against Genocide Logo",className:"h-12 w-auto"})}),r.jsxs("nav",{className:"hidden md:flex items-center gap-8",children:[m.map(g=>r.jsx(Pe,{href:g.href,className:"text-sm font-medium text-white hover:text-primary transition-colors","data-testid":`link-nav-${g.name.toLowerCase().replace(/\s+/g,"-")}`,children:g.name},g.name)),r.jsxs("div",{className:"relative",ref:u,children:[r.jsxs("button",{onClick:()=>h(!c),className:"flex items-center gap-1 text-sm font-medium text-white hover:text-primary transition-colors","data-testid":"link-nav-about",children:["About",r.jsx(bi,{className:`w-3.5 h-3.5 transition-transform duration-200 ${c?"rotate-180":""}`})]}),c&&r.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 mt-3 w-48 bg-zinc-900 border border-zinc-800 rounded-xl shadow-xl overflow-hidden z-50",children:r.jsx(Pe,{href:"/about",onClick:()=>h(!1),className:"flex items-center gap-3 px-4 py-3 text-sm text-zinc-300 hover:bg-zinc-800 hover:text-white transition-colors",children:"About DAG"})})]}),r.jsx(Pe,{href:"/store",children:r.jsx(vt,{variant:"outline",className:"border-white/30 text-white hover:bg-white/10 font-semibold px-4 py-2 h-auto rounded-md",children:"Store"})}),r.jsx(Pe,{href:"/community-support",children:r.jsx(vt,{className:"bg-primary hover:bg-primary/90 text-white font-semibold px-6 py-2 h-auto rounded-md","data-testid":"button-nav-donate",children:"Donate Now"})})]}),r.jsx("button",{className:"md:hidden text-white p-2",onClick:()=>o(!s),"data-testid":"button-mobile-menu",children:s?r.jsx(oa,{size:24}):r.jsx(HC,{size:24})})]}),s&&r.jsx("div",{className:"md:hidden absolute top-full left-0 w-full bg-zinc-900 shadow-xl border-t border-zinc-800",children:r.jsxs("div",{className:"flex flex-col px-6 py-4 space-y-4",children:[m.map(g=>r.jsx(Pe,{href:g.href,className:"text-white hover:text-primary py-2 border-b border-zinc-800",onClick:()=>o(!1),children:g.name},g.name)),r.jsx(Pe,{href:"/about",className:"text-white hover:text-primary py-2 border-b border-zinc-800",onClick:()=>o(!1),children:"About"}),r.jsx(Pe,{href:"/store",onClick:()=>o(!1),children:r.jsx(vt,{variant:"outline",className:"border-white/30 text-white w-full mt-2",children:"DAG Store"})}),r.jsx(Pe,{href:"/community-support",onClick:()=>o(!1),children:r.jsx(vt,{className:"bg-primary hover:bg-primary/90 text-white font-semibold w-full",children:"Donate Now"})})]})})]})}const Po={name:"Doctors Against Genocide",ein:"99-1395585",copyright:"2026",footerBlurb:"A global coalition of healthcare professionals standing against atrocities, advocating for justice, and supporting affected communities worldwide."},hi={badge:"Global Health Coalition",headline:"Doctors",headlineAccent:"Against Genocide",subheadline:"A global coalition of healthcare professionals standing against atrocities, advocating for justice, and supporting affected communities worldwide.",primaryButtonText:"Join Our Coalition",secondaryButtonText:"Learn More",stats:[{value:"20,000+",label:"Healthcare Workers"},{value:"6 Regions",label:"Gaza · West Bank · Lebanon · Sudan · Congo · Rohingya"}
17,{value:"20+",label:"Active Community Support Projects"},{value:"6+",label:"Medical Points · 2 Hospital Rebuilds"}]},Rl={description:"We believe that knowledge is the first line of defense against atrocities. By educating healthcare professionals and the broader public, we build a global network capable of recognizing the early warning signs of genocide and equipped to respond effectively.",resources:[{tag:"GUIDE",title:"Medical Definition of Genocide",description:"A public health and medical framework for recognizing genocide as a societal disease, enabling early detection, prevention, and accountability.",link:"/education/medical-genocide",image:"/dag-medical-def-genocide-cover.svg"},{tag:"CLINICAL GUIDE",title:"Refeeding Syndrome: A Crisis in Gaza",description:"A clinical guide on the deadly complication that threatens starving populations when food aid is reintroduced too quickly. Prepared by Dr. Nashat Imran. Available in English and Arabic.",link:"/education/refeeding-syndrome",image:"/dag-refeeding-syndrome-cover.svg"},{tag:"GUIDE",title:"Sick From Genocide: FAQs",description:"How does living through or witnessing genocide affect physical and mental health? Answers for patients, providers, and advocates.",link:"/education/sick-from-genocide",image:"/dag-sick-from-genocide.jpg"},{tag:"GUIDE",title:"Anti-Palestinian Racism",description:"How anti-Palestinian racism silences healthcare workers and communities — and what DAG is doing to combat it.",link:"/education/anti-palestinian-racism",image:"/dag-doctor-smiling.jpg"},{tag:"WEBINAR",title:"Webinars",description:"Recorded DAG educational webinars — frontline doctors, legal experts, and public health professionals on genocide, medicine, and accountability.",link:"/education/webinars",image:"/dag-doctors-smiling-indoor.jpg"}],reports:[{date:"August 2026",title:"Israeli Attacks Against Palestinian Agriculture and Farmers",excerpt:"Documented agricultural losses in the West Bank, their effects on food security and health, and the legal context.",link:"/education/palestinian-agriculture-report",external:!1,download:!0,downloadLink:"/palestinian-agriculture-report-2026.pdf?v=20260823-booklet-navigation-v6",source:"DAG · Report",image:"/palestinian-agriculture-report-cover.png?v=20260823-cover-photo"},{date:"January 2025",title:"Healthcare Workers as Human Rights Defenders: A Medical Perspective on Israel's Genocide Enablement Apparatus in Gaza and Abroad",excerpt:"Submitted to the UN Special Rapporteur on the Right to Health. Documents Israel's two-pronged genocide enablement apparatus — the systematic destruction of Gaza's healthcare sector, and the repression of healthcare workers in Western institutions — and proposes a medical definition of genocide.",link:"/education/un-health-report",external:!1,download:!0,downloadLink:"/dag-healthcare-workers-un-report.pdf",source:"DAG · UN Submission",image:"/dag-un-health-report-cover.svg"},{date:"2025",title:"Rodent Infestation, Water Crisis & Public Health Risks in Gaza Displacement Camps",excerpt:"DAG field assessment across 398 displacement camps in central and southern Gaza. Findings: 98% of households report rodents inside shelters, 96.3% report food contamination, 61.7% lack safe drinking water. A documented environmental health emergency.",link:"/dag-research-gaza-environmental-health.pdf",external:!0,download:!0,source:"DAG Field Research",image:"/dag-gaza-research-cover.svg"},{date:"May 2026",title:"General Health Situation in Gaza",excerpt:"A medical and humanitarian briefing on the collapse of Gaza's health system — fatalities, destroyed hospitals and diagnostic equipment, dialysis losses, amputations, mental health, nutrition, WASH, education, food security, and humanitarian access. Presented by Dr. Yousef Abu Reish.",link:"/dag-gaza-health-situation-presentation.pdf",external:!0,download:!0,source:"Dr. Yousef Abu Reish · DAG",image:"/dag-doctor-podium.jpg"},{date:"June 2025",title:"Starving a Generation: Israel's Famine Campaign Targeting Palestinian Children in Gaza",excerpt:"DCIP & DAG joint report. 33 documented child cases, 58+ deaths confirmed since March 2025 blockade. Grounded in first-hand accounts, international law, and DAG's medical analysis of starvation's developmental impact on children.",link:"/education/starving-a-generation",external:!1,download:!0,downloadLink:"/dag-starving-a-generation.pdf",source:"DCIP · DAG",image:"/dag-starving-a-generation-cover.svg"},{date:"Ongoing",title:"Gaza Fact Sheet",excerpt:"Essential verified facts on casualties, destroyed hospitals, and denied humanitarian access — for clinicians, advocates, and policymakers.",link:"/education/gaza-fact-sheet",external:!1,image:"/dag-advocate-camera.jpg"},{date:"August 2025",title:"Starving a Generation: Israel Weaponizing Starvation as a Tool of Genocide",excerpt:"DCI-Palestine report documenting Israel's deliberate weaponization of starvation against Gaza's civilian population, indicting the use of hunger as a tool of genocide.",link:"https://www.dci-palestine.org/starving_a_generation_report_indicts_israel_for_weaponizing_starvation_as_a_tool_of_genocide",external:!0,source:"DCI-Palestine",image:"/gaza-war-wikimedia.jpg"}
17,{date:"2024",title:"The Shadow Economy and Price Inflation in Wars",excerpt:"DAG webinar examining how military sieges and blockades create shadow economies and extreme price inflation that weaponize the market itself against civilian populations — with direct medical consequences.",link:"/education/economy-of-genocide",external:!1,image:"/gaza-market-old-city.jpg"}],events:[{type:"CONFERENCE",date:"November 13–15, 2026",title:"3rd Annual Doctors Against Genocide Conference",description:"Explore the featured talks and speakers from the November 13–15 gathering.",link:"https://www.zeffy.com/en-US/ticketing/3rd-annual-doctors-against-genocide-conference",source:"Doctors Against Genocide",image:"/dag-conference-2026.png?v=20260829-collage",cta:"Register now",featured:!0,hideDescription:!0},{type:"VIDEO",date:"Featured Presentation",title:"How Public Health Research Supports Accountability for Israeli War Crimes in Gaza",description:"Dr. Yara M. Asi presents how public health research can document harm and support accountability, drawing on a research team including Weeam Hammoudeh, Bram Wispelwey, Osama Tanous, and David Mills.",link:"https://youtu.be/NwRFGJHZYf0",embedUrl:"https://www.youtube.com/embed/NwRFGJHZYf0?si=MVL2szuL9Mj-WAFS",source:"Dr. Yara M. Asi · Doctors Against Genocide",youtubeId:"NwRFGJHZYf0",cta:"Watch presentation"},{type:"TALK",date:"June 19-22, 2026",title:'"It is a Betrayal of our Oath to Stay Silent": The Role of the Medical Community in Genocide Prevention and Human Rights',description:"Members of our team present at the International Association for Reconciliation Studies (IARS) World Congress on the role of healthcare workers in preventing genocide and defending human rights. The session makes the case that staying silent betrays the medical oath, and that accountability is central to prevention: documenting atrocities, protecting patients and health workers, and ensuring those responsible for attacks on healthcare are held to account.",link:"https://www.iars-world.de/",source:"IARS World Congress · Nicosia, Cyprus",featured:!0},{type:"PANEL",date:"May 17, 2024",title:"1948–2024: The Ongoing Palestinian Nakba",description:"UN UNISPAL panel discussion held in New York examining 76 years of Palestinian displacement, ongoing dispossession, and the path toward accountability.",link:"https://www.un.org/unispal/panel-discussion-1948-2024-the-ongoing-palestinian-nakba-new-york-17-may-2024/",source:"United Nations · UNISPAL",image:"/un-unispal-nakba-panel.jpg"},{type:"VIDEO",date:"CSW68 · 2024",title:"Invisible Struggles and Bravehearts: Being a Woman in Palestine",description:"UN CSW68 Side Event exploring the lived experiences of Palestinian women amid ongoing conflict, displacement, and occupation.",link:"https://webtv.un.org/en/asset/k16/k16qn5pv44",source:"UN Web TV",image:"/un-csw68-thumbnail.jpg"},{type:"PODCAST",date:"2024",title:"Practicing Medicine Under Occupation",description:"Doctors Against Genocide featured on the Sumud Podcast, discussing the harrowing medical realities of delivering healthcare under military occupation in Gaza.",link:"https://www.youtube.com/watch?v=xB6EeKevw3M",source:"Sumud Podcast · YouTube",youtubeId:"xB6EeKevw3M"},{type:"TALK",date:"2024",title:"Genocide is a Public Health Catastrophe",description:"Dr. Karameh Kuemmerle delivers a powerful address at the Palestine Museum US on why genocide must be recognized and responded to as a public health emergency.",link:"https://www.youtube.com/watch?v=y9b_KF5eel8",source:"Palestine Museum US · YouTube",youtubeId:"y9b_KF5eel8"},{type:"VIDEO",date:"2024–2025",title:"A Year in Review",description:"DAG's annual year-in-review video — a look back at advocacy milestones, congressional visits, community campaigns, and the work that defined the past year.",link:"https://www.youtube.com/watch?v=W84KJhkEfWM",source:"DAG · YouTube",youtubeId:"W84KJhkEfWM"}]},fi={sectionTitle:"Advocacy + Action",description:"We mobilize the collective voice of the medical community to influence policy, demand accountability, and protect vulnerable populations.",campaigns:[{title:"DAG Day on the Hill — Leave-Behind (July 22)",status:"RESOURCE",urgent:!1,description:"DAG's leave-behind packet for the July 22 advocacy day — the briefing of medical evidence and policy demands shared with legislators. Download, print, and bring it to your own meetings.",actionLink:"/dag-leave-behind-july-22-advocacy-day.pdf",downloadLink:"/dag-leave-behind-july-22-advocacy-day.pdf"},{title:"DAG Day on the Hill — Leave-Behind (June 11)",status:"RESOURCE",urgent:!1,description:"DAG's leave-behind packet for Day on the Hill — the briefing of medical evidence and policy demands shared with legislators on June 11. Download, print, and bring it to your own meetings.",actionLink:"/dag-leave-behind-june-11-advocacy-day.pdf",downloadLink:"/dag-leave-behind-june-11-advocacy-day.pdf"},{title:"West Bank Genocide: Urgent Statement",status:"URGENT",urgent:!0,description:"Settler terror, a massacre at Tel, demolitions across East Jerusalem, and the storming of Al-Aqsa. DAG's July 24 statement demands UN protection, sanctions, and an immediate arms embargo.",actionLink:"/statements/west-bank-annexation"},{title:"Protect Dr. Abu Safiya",status:"URGENT",urgent:!0,description:"Credible reports document torture, denial of medical care, and a catastrophic decline in Dr. Hussam Abu Safiya's condition in Israeli custody. Demand his immediate protection and release.",actionLink:"/statements/release-dr-abu-safiya"},{title:"Free Them All: 18 Detained Doctors Posters",status:"URGENT",urgent:!0,description:"18 print-ready posters honoring Gaza's detained and killed doctors, including Dr. Hussam Abu Safiya. Download the set, print it, and bring the detained doctors to your rally, vigil, or hospital action.",actionLink:"/statements/release-dr-abu-safiya",downloadLink:"/dag-free-them-all-posters.pdf"},{title:"Free Gaza Doctors",status:"URGENT",urgent:!0,description:"Demanding the immediate release of Dr. Hussam Abu Safiya and all detained Palestinian healthcare workers held by Israeli forces.",actionLink:"/actions/free-gaza-doctors"},{title:"End Genocide Prescription",status:"URGENT",urgent:!0,description:"A medical call to action: sign DAG's prescription calling on world leaders and medical associations to name and stop the genocide in Gaza.",actionLink:"/actions/end-genocide-prescription"},{title:"Bread Not Bombs Campaign",status:"ONGOING",urgent:!1,description:"Demanding that food be allowed into Gaza immediately. No child should die of starvation while the world watches. Add your name.",actionLink:"/actions/bread-not-bombs"},{title:"No Child A Target",status:"ONGOING",urgent:!1,description:"Advocating to end the deliberate targeting of children in Gaza and hold perpetrators accountable under international law.",actionLink:"/actions/no-child-a-target"},{title:"Petition Medical Associations",status:"ONGOING",urgent:!1,description:"Urging medical associations worldwide to speak out against the genocide in Gaza and the targeting of healthcare infrastru
17cture.",actionLink:"/actions/petition-medical-associations"},{title:"Not Another Child, Not Another Hospital",status:"ONGOING",urgent:!1,description:"Inviting medical institutions to take a long-overdue stand against genocide. Over 5,000 signatories and 40+ healthcare organizations have endorsed this letter campaign.",actionLink:"/actions/not-another-hospital"},{title:"Gaza Fact Sheet — U.S. Policy Edition",status:"UPDATED JULY 2025",urgent:!1,description:"8 concrete Congressional actions to end U.S. complicity — from the Block the Bombs Act to the Global Magnitsky Act. Paired with verified humanitarian data. Share with your representatives.",actionLink:"/actions/gaza-fact-sheet-us"},{title:"Gaza Fact Sheet — Canadian Policy Edition",status:"UPDATED JULY 2025",urgent:!1,description:"8 Canadian policy demands for Parliament: arms embargo, Genocide Convention enforcement, and accountability for war crimes. Backed by verified humanitarian data. Share with your MP.",actionLink:"/actions/gaza-fact-sheet-canada"},{title:"Signs & Print Outs",status:"TOOLKIT",urgent:!1,description:"Download and print all DAG advocacy materials: the Free Them All detained doctors poster set, vinyl banners, Bread Not Bombs signs, humanitarian aid signs, and pop-up clinic playcards.",actionLink:"/actions/signs-and-print-outs"}],events:[{date:"August 28, 2026",title:"1,055 Days of Bombardment and Killing: When Healthcare Becomes a Casualty",type:"Presentation",description:"A 63-slide presentation by Dr. Ahmad Al-Farra on the human and medical toll of the war on Gaza.",cta:"View presentation",link:"/education/ahmad-elfarra-presentation",image:"/ahmad-elfarra-presentation-cover.jpg"},{date:"November 13–15, 2026",title:"3rd Annual Doctors Against Genocide Conference",type:"Conference",description:"Join doctors, researchers, and organizers for three days of talks, connection, and collective action.",cta:"Register now",link:"https://www.zeffy.com/en-US/ticketing/3rd-annual-doctors-against-genocide-conference",featured:!0},{date:"Sep 24",title:"1,000 White Coats on the Hill — Washington, D.C.",type:"Mobilization",link:"https://actionnetwork.org/forms/1000-white-coats-on-the-hill-september-24-2026/",featured:!0},{date:"Jul 22",title:"DAG Advocacy Day on the Hill — Washington, D.C.",type:"Advocacy Day",link:"https://actionnetwork.org/forms/july-22nd-day-on-the-hill-sign-up-form/"},{date:"TBD",title:"Bread Not Bombs Campaign Action",type:"Campaign",link:"/actions/bread-not-bombs"}],press:[{type:"PRESS",date:"August 16, 2026",title:"Media Advisory: West Bank Olive Trees Under Attack",excerpt:"Israeli military orders threaten thousands of olive trees across more than 200 dunums in the Jenin area weeks before harvest, putting Palestinian livelihoods and community health at immediate risk.",link:"/statements/west-bank-olive-trees-media-advisory",source:"Doctors Against Genocide",image:"/palestinian-agriculture-report-media/media-07.png"},{type:"PRESS",date:"April 17, 2026",title:"Health Workers Call for Release of Palestinian Prisoners",excerpt:"Healthcare workers and DAG advocates hold a press conference demanding the immediate release of Palestinian medical personnel and prisoners held without charge.",link:"https://www.cpac.ca/headline-politics/episode/health-workers-call-for-release-of-palestinian-prisoners--april-17-2026?id=244bf98b-2909-415c-a0ea-3c9ef4e6fb09",source:"CPAC · Headline Politics",image:"/cpac-health-workers-2026.jpg"},{type:"PRESS",date:"2025",title:"Advocates Hold News Conference on Human Right Abuses in Gaza",excerpt:"DAG advocates join a national news conference to speak out on documented human rights violations and the systematic destruction of healthcare in Gaza.",link:"https://www.cpac.ca/headline-politics/episode/advocates-hold-news-conference-on-human-right-abuses-in-gaza?id=86ffbb9b-9397-4fdd-b1eb-9048e9cca950",source:"CPAC · Headline Politics",image:"/cpac-news-conference-2025.jpg"},{type:"BRIEFING",date:"2025",title:"Urgent Press Briefing: Destruction of Healthcare in Gaza",excerpt:"An urgent press briefing bringing together healthcare professionals and advocates to document and respond to the ongoing destruction of Gaza's medical infrastru
17cture.",link:"https://www.youtube.com/watch?v=eKZ7eWaduf0",source:"YouTube",youtubeId:"eKZ7eWaduf0"},{type:"OP-ED",date:"2024",title:"'In Pursuit of Peace,' Palestinians Founded Doctors Against Genocide",excerpt:"Common Dreams op-ed exploring the origins and mission of Doctors Against Genocide, co-founded by Palestinian-American physicians committed to medical advocacy.",link:"https://www.commondreams.org/opinion/doctors-against-genocide",source:"Common Dreams",image:"/commondreams-dag.jpg"}],policyStatements:[{title:"Genocide Against Indigenous Peoples: Land, Birth, and Medicine",date:"August 10, 2026",excerpt:"On the International Day of the World's Indigenous Peoples, DAG names settler colonial genocide as a medical emergency — from Palestine to Turtle Island — and calls for protection of health workers, land return as a health intervention, and accountability for medicine's complicity.",link:"/statements/indigenous-peoples-day-2026",featured:!0},{title:"Dr. Hussam Abu Safiya Must Be Protected Immediately",date:"July 5, 2026",excerpt:"DAG is alarmed by credible reports of a catastrophic deterioration in Dr. Hussam Abu Safiya's condition in Israeli custody, including repeated beatings, torture, and denial of medical care. We demand his immediate protection and release.",link:"/statements/release-dr-abu-safiya",featured:!1},{title:"West Bank Genocide: Urgent Statement",date:"July 24, 2026",excerpt:"DAG condemns settler terror, the massacre at Tel, and the Israeli government's systematic annexation of the West Bank through ethnic cleansing, demolitions, and assault on Al-Aqsa. We demand UN protection, sanctions, and an immediate arms embargo.",link:"/statements/west-bank-annexation",featured:!1},{title:"National Appeal to Trump",date:"January 2025",excerpt:"An open letter from Doctors Against Genocide calling on the administration to end U.S. complicity in the Gaza genocide and restore humanitarian aid immediately.",link:"/statements/national-appeal-to-trump",featured:!1},{title:"Genocide Is a Public Health Emergency",date:"February 2025",excerpt:"DAG declares that genocide, ethnic cleansing, and forced displacement are urgent public health crises, and condemns Trump's call for forced displacement of Palestinians.",link:"/statements/forced-displacement",featured:!1},{title:"DAG Statement on the Ceasefire in Gaza",date:"January 2025",excerpt:"Doctors Against Genocide welcomes the ceasefire while reaffirming 10 demands — including release of Dr. Hussam Abu Safiya, reparations, ending the occupation, and ICC/ICJ support.",link:"/statements/ceasefire-in-gaza",featured:!1},{title:"Urgent Call to Protect Kamal Adwan Hospital",date:"December 2024",excerpt:"DAG's December 2024 appeal to President-Elect Trump to intervene and stop the ongoing bombardment of Kamal Adwan Hospital in besieged northern Gaza.",link:"/statements/protect-kamal-adwan",featured:!1},{title:"International Children's Day: A Graveyard for Children",date:"November 20, 2024",excerpt:"DAG documents pedicide and medicide in Gaza: over 20,000 children killed, the largest cohort of pediatric amputees in history, and 2,200+ healthcare workers killed.",link:"/statements/international-childrens-day",featured:!1},{title:"Statement on Israeli Attacks on Humanitarian Workers",date:"April 4, 2024",excerpt:"DAG responds to the killing of seven World Central Kitchen aid workers and the cascading suspension of humanitarian operations across Gaza.",link:"/statements/attacks-on-aid-workers",featured:!1},{title:'Statement on the "Flour Massacre"',date:"March 2024",excerpt:"DAG responds to the killing of at least 112 Palestinians shot by Israeli forces while seeking flour aid — and the deaths of 6 children from malnutrition at Kamal Adwan and al-Shifa the same day.",link:"/statements/flour-massacre",featured:!1},{title:"Statement on Starvation Genocide",date:"February 2024",excerpt:"DAG draws on the Council of Europe's recognition of the Holodomor to name the deliberate weaponization of starvation against Gaza — and details the severe medical consequences.",link:"/statements/starvation-genocide",featured:!1},{title:"Statement on ICJ Ruling in South Africa v. Israel",date:"January 26, 2024",excerpt:"The ICJ found Israel is plausibly committing genocide. DAG calls for a permanent ceasefire and thanks South Africa for leading this landmark case.",link:"/statements/icj-ruling",featured:!1},{title:"Statement on War Crimes at Nasser Hospital",date:"February 21, 2024",excerpt:"DAG condemns the Israeli Army raid on Nasser Hospital: 71 medical personnel abducted, 150 patients removed, ICU patients killed after power was cut.",link:"/statements/nasser
17-hospital",featured:!1}]},kt={sectionTitle:"Community Support & Fundraising",description:"Standing with communities facing genocide and mass atrocities.",highlightText:"100% of donations go directly to medical aid and community support.",featured:{title:"Donate to Doctors Against Genocide",description:"Make a general donation to support our work where it is needed most. Your gift powers education, advocacy, community support, and rebuilding of healthcare systems for communities facing genocide.",image:"/dag-general-fund-zeffy.png",thermometerUrl:"https://www.zeffy.com/embed/thermometer/2026-dag-base-donations",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/2026-dag-base-donations",buttonText:"Donate Now"},campaigns:[{region:"URGENT · PALESTINE 🇵🇸",title:"The Freedom Campaign",raised:0,goal:0,thermometerUrl:"https://www.zeffy.com/embed/thermometer/the-freedom-campaign",description:"Inspired by Macklemore and Ms. Rachel each donating $1 million in support of Palestine, Doctors Against Genocide is calling on our community to help raise $5 million for Gaza's children and healthcare.",image:"/freedom-campaign.webp?v=20260922-3",cardColor:"bg-[#f4f0e9]",donateLink:"https://www.zeffy.com/en-US/donation-form/the-freedom-campaign",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/the-freedom-campaign",buttonText:"Donate to the Freedom Campaign"},{region:"PALESTINE 🇵🇸",title:"Support Gaza's Future Doctors",raised:0,goal:0,thermometerUrl:"https://www.zeffy.com/embed/thermometer/support-gazas-future-doctors-a-joint-campaign-by-doctors-against-genocide-and-the-samir-foundation",description:"A joint campaign by Doctors Against Genocide and the Samir Foundation to support the next generation of Palestinian medical professionals.",image:"/gaza-future-doctors-zeffy.jpg",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/support-gazas-future-doctors-a-joint-campaign-by-doctors-against-genocide-and-the-samir-foundation",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/support-gazas-future-doctors-a-joint-campaign-by-doctors-against-genocide-and-the-samir-foundation",buttonText:"Donate Now"},{region:"PALESTINE 🇵🇸",title:"Rebuild Al-Shifa: 140-Bed Hospital Extension in Gaza City",raised:716834,goal:737e3,thermometerUrl:"https://www.zeffy.com/embed/thermometer/rebuild-al-shifa-help-us-build-a-140-bed-hospital-extension-in-the-heart-of-gaza-city",description:"Al-Shifa Hospital, once the beating heart of Gaza's healthcare system, now stands in ruins. We are building a 140-bed field hospital extension with 2 operating rooms and full infrastructure — to restore care where no other options remain.",image:"/al-shifa-rebuild-zeffy.jpg",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/rebuild-al-shifa-help-us-build-a-140-bed-hospital-extension-in-the-heart-of-gaza-city",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/rebuild-al-shifa-help-us-build-a-140-bed-hospital-extension-in-the-heart-of-gaza-city",buttonText:"Donate Now"},{region:"PALESTINE 🇵🇸",title:"Help Us Rebuild Kamal Adwan Hospital",raised:155880,goal:25e4,thermometerUrl:"https://www.zeffy.com/embed/thermometer/help-us-rebuild-kamal-adwan-hospital",description:"Kamal Adwan Hospital in northern Gaza has been repeatedly attacked and is barely functioning. Help us restore critical medical infrastructure and bring healthcare back to the families who desperately need it.",image:"/kamal-adwan-zeffy.png",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/help-us-rebuild-kamal-adwan-hospital",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/help-us-rebuild-kamal-adwan-hospital",buttonText:"Donate Now"},{region:"CONGO 🇨🇩",title:"Support Congo Ubuntu Foundation",raised:19229,goal:3e4,thermometerUrl:"https://www.zeffy.com/embed/thermometer/support-congo-ubuntu-foundation-our-partners-in-the-congo",description:"The Congo Ubuntu Foundation is our partner on the ground in the Democratic Republic of Congo — delivering medical care, food, and psychosocial support to communities devastated by ongoing conflict and mass displacement.",image:"/congo-campaign-zeffy.jpg",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/support-congo-ubuntu-foundation-our-partners-in-the-congo",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/support-congo-ubuntu-foundation-our-partners-in-the-congo",buttonText:"Donate Now"},{region:"LEBANON 🇱🇧",title:"Emergency Care for Lebanon",raised:0,goal:0,thermometerUrl:"https://www.zeffy.com/embed/thermometer/emergency-care-for-lebanon-dag-x-aub-medical-response",description:"A joint campaign by DAG and the American University of Beirut (AUB) Medical Center to deliver emergency medical response in Lebanon.",image:"/lebanon-emergency-zeffy.png",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/emergency-care-for-lebanon-dag-x-aub-medical-response",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/emergency-care-for-lebanon-dag-x-aub-medical-response",buttonText:"Donate Now"},{region:"SUDAN 🇸🇩",title:"Lifeline for Sudan",raised:14499,goal:1e5,thermometerUrl:"https://www.zeffy.com/embed/thermometer/lifeline-for-el-fasher",description:"Sudan is facing one of the world's worst humanitarian crises — entire communities under siege, medical supplies running out, and civilians trapped by ongoing war. Your support is a lifeline for those who remain.",image:"/el-fasher-campaign-zeffy.jpg",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/lifeline-for-el-fasher",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/lifeline-for-el-fasher",buttonText:"Donate Now"},{region:"PALESTINE 🇵🇸",title:"Support Visually Impaired Families in Gaza",raised:0,goal:0,thermometerUrl:"https://www.zeffy.com/embed/thermometer/support-visually-impaired-families-in-gaza",description:"A DAG campaign to provide support for visually impaired families in Gaza facing acute shortages of medical care and assistive resources.",image:"/visually-impaired-gaza-zeffy.jpg",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/support-visually-impaired-families-in-gaza",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/support-visually-impaired-families-in-gaza",buttonText:"Donate Now"},{region:"PALESTINE 🇵🇸",title:"Stand With Families Who Have Nothing Left",raised:69678,goal:1e5,thermometerUrl:"https://www.zeffy.com/embed/thermometer/this-thanksgiving-stand-with-families-who-have-nothing-left",description:"Families in Gaza have lost everything — their homes, their livelihoods, their loved one
17s. Your donation delivers emergency food, clean water, and essential supplies to those with nowhere else to turn.",image:"/thanksgiving-zeffy.jpg",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/this-thanksgiving-stand-with-families-who-have-nothing-left",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/this-thanksgiving-stand-with-families-who-have-nothing-left",buttonText:"Donate Now"},{region:"ROHINGYA 🇲🇲",title:"Education for Rohingya Graduates",raised:3015,goal:5e3,thermometerUrl:"https://www.zeffy.com/embed/thermometer/help-us-support-education-efforts-for-rohingya-graduates",description:"Rohingya students are among the most displaced people on earth — yet they are determined to learn. We are partnering with the Rohingya Graduation for Hope Institution to fund education and skills for youth survivors.",image:"/rohingya-education-campaign.jpg",cardColor:"bg-zinc-800",donateLink:"https://www.zeffy.com/en-US/donation-form/help-us-support-education-efforts-for-rohingya-graduates",embedUrl:"https://www.zeffy.com/en-US/embed/donation-form/help-us-support-education-efforts-for-rohingya-graduates",buttonText:"Donate Now"}],generalFund:{buttonText:"Support DAG's Mission",note:"Your donation to Doctors Against Genocide is tax-deductible. EIN: 99-1395585",link:"#community-support"}},Eh={sectionTitle:"Who We Are",mission:["Doctors Against Genocide (DAG) is a global coalition of healthcare professionals who use their moral authority to speak out against genocide, war crimes, and mass atrocities.","We believe that the oath to protect human life does not stop at the clinic doors. When populations are systematically targeted, when medical infrastructure is weaponized, and when access to care is denied, medical neutrality requires active intervention.","Our members leverage their unique position to document atrocities, advocate for policy interventions, and provide direct support to fellow healthcare workers operating in the world's most dangerous environments."],values:[{name:"Integrity",icon:"ShieldCheck"},{name:"Accountability",icon:"Target"},{name:"Compassion",icon:"HeartHandshake"},{name:"Courage",icon:"Zap"}]},us={sectionTitle:"Get Involved",description:"Your voice and actions matter. Join our coalition to stand against atrocities and support those on the front lines.",options:[{title:"Join DAG",description:"Add your name to our growing coalition of medical professionals, students, and allies. Receive urgent action alerts and advocacy opportunities.",buttonText:"Join DAG",buttonLink:"/join/dag"},{title:"Join the MAAG",description:"The Medical Alliance Against Genocide invites medical organizations, associations, and institutions to join DAG in coordinated advocacy and data sharing. Add your organization's voice to the movement.",buttonText:"Join the MAAG",buttonLink:"/join/maag"},{title:"Donate",description:"Your donation funds emergency medical aid for Gaza and sustains our global advocacy. 100% goes directly to relief operations. Tax-deductible.",buttonText:"Donate Now",buttonLink:"/community-support",highlighted:!0},{title:"Collaborate With Us",description:"Have an idea, event, partnership, or skills to volunteer? We welcome suggestions and collaborations from healthcare workers, organizers, students, and allies. Reach out to share what you can bring to the movement.",buttonText:"Get in Touch",buttonLink:"mailto:[email protected]?subject=Collaboration%20%2F%20Volunteer%20Inquiry"}],newsletter:{title:"Stay Informed",description:"Subscribe to our newsletter for urgent action alerts, campaign updates, and medical resources.",actionNetworkUrl:"https://actionnetwork.org/forms/join-our-coalition-7"}},xs={twitter:"https://x.com/docstopgenocide",instagram:"https://www.instagram.com/doctorsagainstgenocide/",facebook:"https://www.facebook.com/p/Doctors-Against-Genocide-61554502266273/"},Ml={aboutDag:[{label:"Our Mission",href:"/#about"},{label:"Join DAG",href:"https://actionnetwork.org/forms/join-our-coalition-7/"},{label:"Join the MAAG",href:"https://docs.google.com/forms/d/e/1FAIpQLScrJzrTJS1QAN4VxmLlYuJljwXrch7fIkboOA6yV7K_V5XWGw/viewform"},{label:"Create a DAG Chapter",href:"/join/chapter"},{label:"Contact Us",href:"mailto:[email protected]"}],resources:[{label:"Education Resources",href:"/education/medical-genocide"},{label:"Gaza Fact Sheet",href:"/education/gaza-fact-sheet"},{label:"Medical Resources",href:"/education/refeeding-syndrome"},{label:"Statements",href:"/statements/ceasefire-in-gaza"},{label:"DAG Store",href:"/store"}],connect:[{label:"Twitter / X",href:xs.twitter},{label:"Instagram",href:xs.instagram},{label:"Facebook",href:xs.facebook}],legal:[{label:"Privacy Policy",href:"#"},{label:"Terms of Service",href:"#"}]},nM=[r.jsx(Cc,{className:"h-6 w-6 text-primary mb-3"},"u"),r.jsx(Ff,{className:"h-6 w-6 text-primary mb-3"},"g"),r.jsx(Wk,{className:"h-6 w-6 text-primary mb-3"}
17,"a"),r.jsx(tc,{className:"h-6 w-6 text-primary mb-3"},"h")];function aM(){return r.jsxs("section",{className:"relative min-h-[100dvh] w-full flex items-center bg-black pt-28 overflow-hidden",children:[r.jsxs("div",{className:"absolute inset-0 z-0",children:[r.jsx("img",{src:"/dag-capitol-rally-banner.jpg",alt:"Doctors Against Genocide large rally with End Genocide banner in front of the US Capitol",className:"w-full h-full object-cover object-center opacity-90"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black via-black/40 to-transparent"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-transparent to-transparent h-full w-full"})]}),r.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 lg:px-12 w-full pt-10 md:pt-0",children:[r.jsxs("div",{className:"max-w-3xl",children:[r.jsxs(pe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[r.jsxs("div",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-900/50 px-3 py-1 text-sm text-zinc-300 backdrop-blur-md mb-6",children:[r.jsx("span",{className:"flex h-2 w-2 rounded-full bg-primary mr-2"}),hi.badge]}),r.jsxs("h1",{className:"text-5xl md:text-6xl lg:text-7xl text-white leading-tight mb-6",style:{fontFamily:"Impact, 'Arial Narrow', Arial, sans-serif",fontWeight:400,letterSpacing:"0.01em",textTransform:"uppercase"},children:[hi.headline," ",r.jsx("br",{className:"hidden md:block"}),r.jsx("span",{className:"text-primary",children:hi.headlineAccent})]})]}),r.jsxs(pe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:[r.jsx("p",{className:"text-lg md:text-xl text-zinc-300 mb-10 leading-relaxed max-w-2xl",children:hi.subheadline}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-16",children:[r.jsx("a",{href:"https://actionnetwork.org/forms/join-our-coalition-7/",target:"_blank",rel:"noopener noreferrer","data-testid":"button-hero-join",children:r.jsx(vt,{size:"lg",className:"bg-transparent border-2 border-white text-white hover:bg-white hover:text-black font-semibold text-lg h-14 px-8 w-full",children:hi.primaryButtonText})}),r.jsxs(vt,{size:"lg",className:"bg-primary hover:bg-primary/90 text-white font-semibold text-lg h-14 px-8",onClick:()=>document.getElementById("about")?.scrollIntoView({behavior:"smooth"}),"data-testid":"button-hero-learn",children:[hi.secondaryButtonText," ",r.jsx(Ze,{className:"ml-2 h-5 w-5"})]})]})]})]}),r.jsx(pe.div,{className:"grid grid-cols-2 md:grid-cols-4 gap-6 md:gap-10 border-t border-zinc-800 pt-10 mt-10 md:mt-20",initial:{opacity:0}
17,animate:{opacity:1},transition:{duration:1,delay:.6},children:hi.stats.map((e,a)=>r.jsxs("div",{className:"flex flex-col",children:[nM[a],r.jsx("span",{className:"text-3xl font-bold text-white font-serif-heading",children:e.value}),r.jsx("span",{className:"text-zinc-400 text-sm font-medium mt-1",children:e.label})]},a))})]})]})}const iM={GUIDE:r.jsx(_f,{className:"h-4 w-4"}),TRAINING:r.jsx(Il,{className:"h-4 w-4"}),COURSE:r.jsx(Wo,{className:"h-4 w-4"}),REPORT:r.jsx(na,{className:"h-4 w-4"})},Ol={CONFERENCE:r.jsx(Pa,{className:"h-4 w-4"}),PANEL:r.jsx(Pa,{className:"h-4 w-4"}),VIDEO:r.jsx(cT,{className:"h-4 w-4"}),PODCAST:r.jsx(Jv,{className:"h-4 w-4"}),TALK:r.jsx(Wo,{className:"h-4 w-4"})},sM={CONFERENCE:"bg-red-50 text-red-700",PANEL:"bg-blue-50 text-blue-700",VIDEO:"bg-purple-50 text-purple-700",PODCAST:"bg-green-50 text-green-700",TALK:"bg-amber-50 text-amber-700"};function oM(e){return`https://img.youtube.com/vi/${e}/hqdefault.jpg`}function L1(){const[e,a]=w.useState("guides"),s=[{id:"guides",label:"Guides"},{id:"reports",label:"Reports"},{id:"events",label:"Events & Talks"}];return r.jsx("section",{id:"education",className:"py-20 px-6 lg:px-12 bg-[#f5f3ef]",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"flex flex-col gap-6 mb-12",children:[r.jsxs("div",{children:[r.jsxs("h2",{className:"text-3xl md:text-4xl font-bold font-serif-heading mb-3",children:["Education +"," ",r.jsxs("span",{className:"relative",children:["Awareness",r.jsx("span",{className:"absolute bottom-0 left-0 w-full h-1 bg-primary rounded-full"})]})]}),r.jsx("p",{className:"text-zinc-600 max-w-xl text-base",children:Rl.description}),r.jsxs("a",{href:"https://us06web.zoom.us/webinar/register/WN_aUUzycRDSwaem750Nc6iFg#/registration",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 mt-5 bg-primary text-white font-semibold px-5 py-3 rounded-lg hover:bg-primary/90 transition-colors","data-testid":"link-webinar-register",children:[r.jsx(Wo,{className:"w-4 h-4"})," Register for the Webinar"]})]}),r.jsx("div",{className:"flex rounded-xl border border-zinc-200 bg-white overflow-x-auto self-start",children:s.map(o=>r.jsx("button",{onClick:()=>a(o.id),className:`px-5 py-3 text-sm font-semibold transition-colors whitespace-nowrap border-b-2 ${e===o.id?"border-primary text-primary bg-primary/5":"border-transparent text-zinc-600 hover:text-zinc-900"}`,children:o.label},o.id))})]}),r.jsxs(ys,{mode:"wait",children:[e==="guides"&&r.jsx(pe.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.28},className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:Rl.resources.map((o,c)=>r.jsxs(Pe,{href:o.link,className:"bg-white rounded-xl shadow-sm border border-zinc-100 overflow-hidden flex flex-col hover:-translate-y-1 transition-transform group","data-testid":`link-resource-${c}`,children:[o.image&&r.jsx("div",{className:"h-44 overflow-hidden",children:r.jsx("img",{src:o.image,alt:o.title,className:"w-full h-full object-cover object-center group-hover:scale-105 transition-transform duration-500"})}),r.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-bold text-primary tracking-wider mb-3",children:[iM[o.tag]??r.jsx(_f,{className:"h-4 w-4"}),o.tag]}),r.jsx("h4",{className:"text-lg font-bold mb-2 text-zinc-900 group-hover:text-primary transition-colors leading-snug",children:o.title}),r.jsx("p",{className:"text-zinc-600 text-sm mb-4 flex-1",children:o.description}),r.jsxs("span",{className:"inline-flex items-center text-primary font-medium text-sm",children:["Access Resource ",r.jsx(Ze,{className:"w-4 h-4 ml-1"})]})]})]},c))},"guides"),e==="reports"&&r.jsx(pe.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.28},className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:Rl.reports.map((o,c)=>{const h=!!o.download,u=o.source,p=o.downloadLink,m=r.jsxs(r.Fragment,{children:[o.image&&r.jsxs("div",{className:"h-44 overflow-hidden relative",children:[r.jsx("img",{src:o.image,alt:o.title,className:"w-full h-full object-cover object-center group-hover:scale-105 transition-transform duration-500"}),u&&r.jsx("span",{className:"absolute top-3 right-3 text-xs font-bold bg-white/90 text-zinc-700 px-2.5 py-1 rounded-full shadow-sm",children:u}),h&&r.jsxs("span",{className:"absolute top-3 left-3 inline-flex items-center gap-1 text-xs font-bold bg-primary text-white px-2.5 py-1 rounded-full shadow-sm",children:[r.jsx(na,{className:"w-3 h-3"})," PDF"]})]}),r.jsxs("div",{className:"p-6 flex flex-col flex-1 border-l-4 border-l-primary",children:[r.jsx("span",{className:"text-xs text-zinc-400 font-medium mb-2",children:o.date}),r.jsx("h4",{className:"text-base font-bold mb-3 text-zinc-900 group-hover:text-primary transition-colors flex-1 leading-snug",children:o.title}),r.jsx("p",{className:"text-zinc-600 text-sm mb-4 line-clamp-3",children:o.excerpt})]})]});return h?r.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-zinc-100 overflow-hidden flex flex-col group hover:-translate-y-1 transition-transform h-full",children:[m,r.jsxs("div",{className:"px-6 pb-6 flex gap-3 mt-auto",children:[r.jsxs("a",{href:o.link,target:"_blank",rel:"noopener noreferrer",className:"flex-1 inline-flex items-center justify-center gap-1.5 border border-zinc-200 rounded-lg py-2 text-sm font-medium text-zinc-700 hover:border-primary hover:text-primary transition-colors",children:[r.jsx(yt,{className:"w-3.5 h-3.5"})," Read Report"]}),r.jsxs("a",{href:p??o.link,download:!0,target:"_blank",rel:"noopener noreferrer",className:"flex-1 inline-flex items-center justify-center gap-1.5 bg-primary text-white rounded-lg py-2 text-sm font-medium hover:bg-primary/90 transition-colors",children:[r.jsx(na,{className:"w-3.5 h-3.5"})," Download"]})]})]},c):o.external?r.jsxs("a",{href:o.link,target:"_blank",rel:"noopener noreferrer",className:"bg-white rounded-xl shadow-sm border border-zinc-100 overflow-hidden flex flex-col hover:-translate-y-1 transition-transform group h-full","data-testid":`link-report-${c}`,children:[m,r.jsx("div",{className:"px-6 pb-6 mt-auto",children:r.jsxs("span",{className:"inline-flex items-center text-zinc-900 font-medium text-sm group-hover:text-primary transition-colors",children:[r.jsx(yt,{className:"w-4 h-4 mr-2"})," Read Article"]})})]},c):r.jsxs(Pe,{href:o.link,className:"bg-white rounded-xl shadow-sm border border-zinc-100 overflow-hidden flex flex-col hover:-translate-y-1 transition-transform group h-full","data-testid":`link-report-${c}`,children:[m,r.jsx("div",{className:"px-6 pb-6 mt-auto",children:r.jsxs("span",{className:"inline-flex items-center text-zinc-900 font-medium text-sm group-hover:text-primary transition-colors",children:[r.jsx(Ze,{className:"w-4 h-4 mr-2"})," Read Report"]})})]},c)})},"reports"),e==="events"&&r.jsx(pe.div,{initial:{opacity:0,y:12}
17,animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.28},className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:Rl.events.map((o,c)=>{const h=o.youtubeId?oM(o.youtubeId):o.image,u=!!o.youtubeId,p=!!o.featured,m=o.image,g=o.cta,y=o.embedUrl,b=!!o.hideTitle,v=!!o.hideDescription;return y?r.jsxs("article",{className:"rounded-xl overflow-hidden flex flex-col bg-white shadow-sm border border-zinc-100",children:[r.jsx("div",{className:"relative aspect-video overflow-hidden bg-zinc-950",children:r.jsx("iframe",{src:y,title:o.title,className:"absolute inset-0 w-full h-full",loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}),r.jsxs("div",{className:"flex flex-col flex-1 p-5",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[r.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-bold px-2 py-0.5 rounded-full bg-purple-50 text-purple-700",children:[Ol[o.type]??r.jsx(Wo,{className:"h-4 w-4"}),o.type]}),r.jsx("span",{className:"text-xs font-medium text-zinc-400",children:o.source})]}),r.jsx("span",{className:"text-xs font-semibold mb-1 text-zinc-400",children:o.date}),r.jsx("h4",{className:"font-bold text-zinc-900 leading-snug text-base",children:o.title}),r.jsx("p",{className:"text-sm leading-relaxed mt-2 text-zinc-500",children:o.description}),r.jsxs("a",{href:o.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex self-start items-center font-semibold text-sm text-primary mt-4",children:[g??"Watch on YouTube"," ",r.jsx(yt,{className:"w-3.5 h-3.5 ml-1.5"})]})]})]},c):r.jsx("a",{href:o.link,target:"_blank",rel:"noopener noreferrer",className:`rounded-xl overflow-hidden flex flex-col hover:-translate-y-1 transition-transform group ${p?"md:col-span-2 border border-zinc-200 shadow-lg":"bg-white shadow-sm border border-zinc-100"}`,children:p?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"bg-zinc-950 text-white px-5 py-2.5 text-xs font-bold uppercase tracking-[0.18em] flex items-center gap-2",children:[Ol[o.type]??r.jsx(Pa,{className:"h-4 w-4"}),o.type==="CONFERENCE"?"Registration Open":"Upcoming Presentation"]}),r.jsxs("div",{className:"relative flex-1 min-h-[320px] md:aspect-[8/3] md:min-
17h-0",children:[r.jsx("img",{src:m??"/iars-medical-team.png",alt:o.title,className:"absolute inset-0 w-full h-full object-cover object-center group-hover:scale-105 transition-transform duration-700"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/55 via-black/10 to-transparent"}),r.jsxs("div",{className:"relative z-10 flex flex-col h-full p-6 md:p-9",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[r.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-bold px-2.5 py-0.5 rounded-full bg-white text-zinc-950",children:[Ol[o.type]??r.jsx(Pa,{className:"h-4 w-4"}),o.type]}),r.jsx("span",{className:"text-xs font-medium text-white/80",children:o.source})]}),!b&&r.jsxs("div",{className:"absolute left-0 top-1/2 max-w-[min(90%,34rem)] -translate-y-1/2 border-l-4 border-white/80 bg-black/65 px-5 py-4 shadow-xl backdrop-blur-[1px] md:px-7 md:py-5",children:[r.jsx("h4",{className:"font-bold text-white leading-snug text-2xl md:text-3xl max-w-3xl font-[Calibri,'Trebuchet_MS',sans-serif]",children:o.title}),r.jsx("span",{className:"mt-3 block text-xs font-bold text-white uppercase tracking-[0.16em]",children:o.date})]}),!v&&r.jsx("p",{className:"mt-auto max-w-3xl text-sm md:text-base leading-relaxed text-white/90",children:o.description}),r.jsxs("span",{className:"inline-flex items-center font-semibold text-sm text-white group-hover:text-zinc-200 transition-colors mt-auto",children:[g??"Learn More"," ",r.jsx(yt,{className:"w-3.5 h-3.5 ml-1.5"})]})]})]})]}):r.jsxs(r.Fragment,{children:[h&&r.jsxs("div",{className:"relative h-48 overflow-hidden bg-zinc-900",children:[r.jsx("img",{src:h,alt:o.title,className:"w-full h-full object-cover object-center group-hover:scale-105 transition-transform duration-500 opacity-90"}),u&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:r.jsx("div",{className:"w-14 h-14 bg-white/90 rounded-full flex items-center justify-center shadow-lg group-hover:scale-110 transition-transform",children:r.jsx(fs,{className:"w-6 h-6 text-primary fill-primary ml-1"})})}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 to-transparent"})]}),r.jsxs("div",{className:"flex flex-col flex-1 p-5",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[r.jsxs("span",{className:`inline-flex items-center gap-1 text-xs font-bold px-2 py-0.5 rounded-full ${sM[o.type]??"bg-zinc-100 text-zinc-600"}`,children:[Ol[o.type]??r.jsx(Pa,{className:"h-4 w-4"}),o.type]}),r.jsx("span",{className:"text-xs font-medium text-zinc-400",children:o.source})]}),r.jsx("span",{className:"text-xs font-semibold mb-1 text-zinc-400",children:o.date}),r.jsx("h4",{className:"font-bold text-zinc-900 transition-colors mb-2 leading-snug flex-1 text-base group-hover:text-primary",children:o.title}),r.jsx("p",{className:"text-sm leading-relaxed mb-4 text-zinc-500 line-clamp-2",children:o.description}),r.jsxs("span",{className:"inline-flex items-center font-semibold text-sm text-primary",children:[g??(u?"Watch / View":"View Event")," ",r.jsx(yt,{className:"w-3.5 h-3.5 ml-1.5"})]})]})]})},c)})},"events")]})]})})}const rM="https://www.youtube.com/embed/GteZ9iIK16E?autoplay=1&rel=0",lM="https://www.einpresswire.com/article/923825155/reporting-live-from-gaza-and-the-west-bank-senior-sector-officials-alongside-global-medical-and-human-rights-leaders",cM="/dag-presser-speakers.jpg?v=20260703b";function H1(){const[e,a]=w.useState(0),[s,o]=w.useState("statements"),[c,h]=w.useState(!1),[u,p]=w.useState(!1),[m,g]=w.useState(!1),[y,b]=w.useState(!1),v=w.useRef(null);return w.useEffect(()=>{window.location.hash==="#briefing"&&o("briefing"),window.location.hash==="#events"&&o("events")},[]),r.jsx("section",{id:"advocacy",className:"py-20 px-6 lg:px-12 bg-white",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[r.jsxs("h2",{className:"text-3xl md:text-4xl font-bold font-serif-heading mb-4 inline-block relative",children:[fi.sectionTitle,r.jsx("span",{className:"absolute -bottom-2 left-0 w-full h-1 bg-primary rounded-full"})]}),r.jsx("p",{className:"text-zinc-600 max-w-2xl mx-auto mt-6 text-base",children:fi.description})]}),r.jsx(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"border border-zinc-200 rounded-2xl overflow-hidden mb-12",children:fi.campaigns.map((S,j)=>{const N=e===j;return r.jsxs("div",{className:`border-b border-zinc-200 last:border-0 ${S.urgent&&N?"bg-primary/5":""}`,children:[r.jsxs("button",{className:"w-full flex items-center gap-4 px-6 py-4 text-left hover:bg-zinc-50 transition-colors group",onClick:()=>a(N?null:j),"data-testid":`accordion-campaign-${j}`,children:[r.jsxs("span",{className:`flex-shrink-0 inline-flex items-center text-xs font-bold px-2.5 py-1 rounded ${S.urgent?"bg-primary/10 text-primary":"bg-zinc-100 text-zinc-600"}`,children:[S.urgent&&r.jsx(Bf,{className:"w-3 h-3 mr-1"}),S.status]}),r.jsx("span",{className:"font-semibold text-zinc-900 flex-grow text-base group-hover:text-primary transition-colors",children:S.title}),r.jsx(bi,{className:`w-5 h-5 text-zinc-400 flex-shrink-0 transition-transform duration-200 ${N?"rotate-180":""}`})]}),r.jsx(ys,{initial:!1,children:N&&r.jsx(pe.div,{initial:{height:0,opacity:0}
17,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25},className:"overflow-hidden",children:r.jsxs("div",{className:"px-6 pb-6 pt-2 flex flex-col sm:flex-row items-start sm:items-center gap-6",children:[r.jsx("p",{className:"text-zinc-600 text-sm leading-relaxed flex-grow",children:S.description}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 flex-shrink-0",children:[S.downloadLink&&r.jsx(vt,{asChild:!0,variant:"default",className:"bg-primary hover:bg-primary/90 text-white","data-testid":`button-advocacy-download-${j}`,children:r.jsxs("a",{href:S.downloadLink,download:!0,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(na,{className:"w-4 h-4 mr-2"})," Download PDF"]})}),S.actionLink!==S.downloadLink&&r.jsx(vt,{asChild:!0,variant:S.urgent?"default":"outline",className:S.urgent?"bg-primary hover:bg-primary/90 text-white":"","data-testid":`button-advocacy-action-${j}`,children:r.jsx(Pe,{href:S.actionLink,children:"Take Action"})})]})]})},"content")})]},j)})}),r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"grid grid-cols-3 gap-4 mb-12",children:[r.jsx("div",{className:"rounded-xl overflow-hidden",children:r.jsx("img",{src:"/dag-end-genocide-capitol.jpg",alt:"DAG End Genocide banner held by doctors in front of the US Capitol",className:"w-full h-52 object-cover object-center"})}),r.jsx("div",{className:"rounded-xl overflow-hidden",children:r.jsx("img",{src:"/dag-not-another-child.jpg",alt:"DAG doctors marching with Not Another Child Not Another Hospital banner",className:"w-full h-52 object-cover object-center"})}),r.jsx("div",{className:"rounded-xl overflow-hidden",children:r.jsx("img",{src:"/dag-union-station-rally.jpg",alt:"Large DAG rally at Union Station with End Genocide banner and peace signs",className:"w-full h-52 object-cover object-center"})})]}),r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[r.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[r.jsxs("div",{className:"flex rounded-xl border border-zinc-200 bg-zinc-50 overflow-hidden",children:[r.jsxs("button",{onClick:()=>o("events"),className:`flex items-center gap-2 px-5 py-2.5 text-sm font-semibold transition-colors ${s==="events"?"bg-primary text-white":"text-zinc-600 hover:text-zinc-900"}`,children:[r.jsx(Ff,{className:"w-4 h-4"})," Events"]}),r.jsxs("button",{onClick:()=>o("statements"),className:`flex items-center gap-2 px-5 py-2.5 text-sm font-semibold transition-colors ${s==="statements"?"bg-primary text-white":"text-zinc-600 hover:text-zinc-900"}`,children:[r.jsx(Il,{className:"w-4 h-4"})," Statements"]}),r.jsxs("button",{onClick:()=>o("press"),className:`flex items-center gap-2 px-5 py-2.5 text-sm font-semibold transition-colors ${s==="press"?"bg-primary text-white":"text-zinc-600 hover:text-zinc-900"}`,children:[r.jsx(xi,{className:"w-4 h-4"})," Press & Media"]}),r.jsxs("button",{onClick:()=>o("briefing"),className:`flex items-center gap-2 px-5 py-2.5 text-sm font-semibold transition-colors ${s==="briefing"?"bg-primary text-white":"text-zinc-600 hover:text-zinc-900"}`,children:[r.jsx(Kv,{className:"w-4 h-4"})," Field Reports"]})]}),s==="briefing"&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-primary/10 text-primary text-xs font-bold px-2.5 py-1 rounded-full",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),"Updated Aug 3"]})]}),r.jsxs(ys,{mode:"wait",children:[s==="events"&&r.jsx(pe.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.22},className:"space-y-3",children:fi.events.map((S,j)=>S.featured?r.jsxs("div",{className:"rounded-xl overflow-hidden border border-primary/30 bg-zinc-950 shadow-sm",children:[r.jsxs("div",{className:"bg-primary px-5 py-3 flex items-center gap-3",children:[r.jsxs("div",{className:"text-center min-w-[48px]",children:[r.jsx("div",{className:"text-[11px] font-bold text-white/70 uppercase tracking-wide leading-none",children:S.date.split(" ")[0]}),r.jsx("div",{className:"text-2xl font-black text-white leading-none mt-0.5",children:S.date.split(" ")[1]})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-[11px] font-bold text-white/70 uppercase tracking-widest mb-0.5",children:S.t
17ype}),r.jsx("h4",{className:"text-white font-black text-base leading-tight",children:S.title})]})]}),r.jsxs("div",{className:"px-5 py-4 space-y-2",children:[r.jsx("p",{className:"text-zinc-300 text-sm leading-relaxed",children:"description"in S?S.description:"Health workers descend on Congress. Sign up as an individual or bring your organization to endorse and coordinate."}),S.type==="Mobilization"?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 pt-1",children:[r.jsxs("a",{href:S.link,target:"_blank",rel:"noopener noreferrer",className:"flex-1 inline-flex items-center justify-center gap-1.5 bg-primary hover:bg-primary/90 text-white font-bold text-sm px-4 py-2.5 rounded-lg transition-colors",children:["Sign up as individual",r.jsx(Ze,{className:"w-3.5 h-3.5"})]}),r.jsx(Pe,{href:"/events/white-coats-on-the-hill#org-form",className:"flex-1 inline-flex items-center justify-center gap-1.5 bg-zinc-800 hover:bg-zinc-700 text-white font-bold text-sm px-4 py-2.5 rounded-lg transition-colors border border-zinc-700",children:"Organization sign up / endorse"})]}),r.jsxs(Pe,{href:"/events/white-coats-on-the-hill",className:"inline-flex items-center gap-1 text-xs text-zinc-400 hover:text-white transition-colors pt-1",children:["View full event page ",r.jsx(Ze,{className:"w-3 h-3"})]})]}):r.jsxs("a",{href:S.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex w-full sm:w-auto items-center justify-center gap-1.5 bg-primary hover:bg-primary/90 text-white font-bold text-sm px-4 py-2.5 rounded-lg transition-colors",children:["cta"in S?S.cta:"Register now",r.jsx(Ze,{className:"w-3.5 h-3.5"})]})]})]},j):r.jsxs("a",{href:S.link,className:"flex border border-zinc-200 rounded-xl overflow-hidden hover:border-primary transition-colors cursor-pointer group","data-testid":`link-event-${j}`,children:[r.jsxs("div",{className:"bg-zinc-100 px-6 py-4 flex flex-col items-center justify-center border-r border-zinc-200 group-hover:bg-primary/5 transition-colors min-w-[72px]",children:[r.jsx("span",{className:"text-sm font-bold text-zinc-500 group-hover:text-primary",children:S.date.split(" ")[0]}),r.jsx("span",{className:"text-xl font-black text-zinc-900 group-hover:text-primary",children:S.date.split(" ")[1]})]}),r.jsxs("div",{className:"p-4 flex flex-col justify-center flex-grow",children:[r.jsx("span",{className:"text-xs font-bold text-primary mb-1",children:S.type}),r.jsx("h4",{className:"text-base font-bold text-zinc-900 group-hover:text-primary transition-colors",children:S.title})]}),r.jsx("div",{className:"px-4 flex items-center justify-center text-zinc-400 group-hover:text-primary",children:r.jsx(Ze,{className:"w-5 h-5"})})]},j))},"events"),s==="statements"&&r.jsx(pe.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.22},className:"space-y-5",children:fi.policyStatements.map((S,j)=>{const N=fi.policyStatements.length-j;return r.jsxs("div",{className:`border-l-4 ${S.featured?"border-primary":"border-zinc-300"} pl-6 py-2`,children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[r.jsxs("span",{className:"text-[11px] font-bold text-zinc-400 uppercase tracking-widest",children:["#",N]}),S.date&&r.jsxs("span",{className:"text-[11px] text-zinc-400",children:["· ",S.date]}),S.featured&&r.jsx("span",{className:"text-[11px] font-bold text-primary uppercase tracking-wide bg-primary/10 px-2 py-0.5 rounded-full",children:"New"})]}),r.jsx("h4",{className:"text-lg font-bold text-zinc-900 mb-2",children:S.title}),r.jsx("p",{className:"text-zinc-600 text-sm mb-3",children:S.excerpt}),r.jsx(Pe,{href:S.link,className:"text-primary text-sm font-medium hover:underline","data-testid":`link-policy-${j}`,children:"Read Full Statement"})]},j)})},"statements"),s==="briefing"&&r.jsxs(pe.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.22},className:"space-y-6",children:[r.jsxs("div",{className:"border-l-4 border-primary pl-5 py-1",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx(Pa,{className:"w-4 h-4 text-primary"}),r.jsx("span",{className:"text-xs font-bold text-primary uppercase tracking-wide",children:"Field Report — August 3, 2026"})]}),r.jsx("h3",{className:"text-xl font-bold text-zinc-900 font-serif-heading",children:"Occupied West Bank"}),r.jsx("p",{className:"text-zinc-500 text-sm mt-0.5",children:"Settler attacks, demolitions, movement restrictions"})]}),[{title:"1. Attacks on people",items:["Al-Mughayyir (Ramallah) — Settler gang attempted to assault a farmer picking cucumbers; tried to break into a farm before residents confronted and forced them out. Israeli forces subsequently entered the village.","Marj 
17Sia' (east of Ramallah) — Mr. Abu Aseed al-Na'san assaulted by settlers.","Between Beita and Aqraba (south of Nablus) — Basman Sidqi Bani Fadel injured in settler gang attack.","Al-Mahtoush Bedouin community (east of Jerusalem) — Attacks by 'Hilltop Youth' settler gang on residents near their homes.","Abu Fazza' community (Karamilo outpost, east of Ramallah) — Settlers destroyed stone terrace walls (sanasel) to gain access to residents' dwellings; part of sustained daily harassment aimed at forcing the family out."]},{title:"2. Demolitions",items:["Kafr Malik — House under construction demolished. Adjacent horse stable also destroyed. Separately, Ghassan Hnaini's prefab shelter was demolished.","Beit Dajan (Beit Furik plain) — Large tracked bulldozer, four military jeeps, and a civilian vehicle arrived at a house adjacent to a settler outpost; demolition appeared imminent at time of reporting."]},{title:"3. Outpost establishment & expansion",items:["Umm Safa, Wadi al-Zaytoun — New tent added to outpost; heavy movement by settler gangs at the recently established outpost on the southern side.","Qabalan, Ein al-Qasab — Settlers pouring concrete on Area B land inside the outpost.","Al-Mas'udiya (pastoral outpost) — Settlers hung dead sheep carcasses on the perimeter fence of Abu al-Abd Istitiya's house and blocked the access road to the property."]},{title:"4. Land, crops & property",items:["Jabal Ein Ayna, al-Khasf area — Settlers set fire to olive groves; the area had been bulldozed earlier the same evening.","Silwad — Settlers scattered metal debris on the access road to the municipal landfill; recurring attacks on the municipality's garbage truck.","Northwest Sinjil, Gharaba area (Area B) — Settler gangs drove flocks onto privately owned Palestinian land, harassing and intimidating farmers.","West of al-Mughayyir, Shaab al-Lawz — Provocative patrols by settler gangs close to residents' homes.","East of Idhna (west of Hebron) — Tear gas and stun grenades fired at farmers and landowners on their own land."]},{title:"5. Movement restrictions",items:["Ein Siniya checkpoint — Severe congestion and traffic paralysis; reported as part of routine daily harassment."]},{title:"6. Arrests",items:["Marj Sia' plain (east of Ramallah) — Israeli occupation forces detained two young men, Zaid Salim Turki and Mohammed Salim Turki, from inside their farm in the plain between al-Mughayyir and Abu Falah — the same farm where a child was previously shot and wounded by settlers."]}].map((S,j)=>r.jsxs("div",{children:[r.jsx("h4",{className:"text-sm font-bold text-zinc-900 uppercase tracking-wide mb-2",children:S.title}),r.jsx("ul",{className:"space-y-2",children:S.items.map((N,C)=>r.jsxs("li",{className:"flex gap-3 text-sm text-zinc-600 leading-relaxed",children:[r.jsx("span",{className:"mt-1.5 w-1.5 h-1.5 rounded-full bg-primary/60 flex-shrink-0"}),N]},C))})]},j)),r.jsxs("div",{children:[r.jsx("h4",{className:"text-sm font-bold text-zinc-900 uppercase tracking-wide mb-3",children:"Field Documentation"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[{src:"/briefings/2026-08-03/injured-farmer.jpg",caption:"Farmer injured in settler attack"},{src:"/briefings/2026-08-03/olive-grove-fire.jpg",caption:"Olive groves set ablaze — Jabal Ein Ayna"},{src:"/briefings/2026-08-03/sheep-carcass-1.jpg",caption:"Dead livestock hung on fence — Al-Mas'udiya"},{src:"/briefings/2026-08-03/sheep-carcass-2.jpg",caption:"Al-Mas'udiya perimeter fence"},{src:"/briefings/2026-08-03/scene-afternoon-1.jpg",caption:"West Bank field documentation"},{src:"/briefings/2026-08-03/scene-afternoon-2.jpg",caption:"West Bank field documentation"}].map((S,j)=>r.jsx("div",{className:"rounded-xl overflow-hidden bg-zinc-100 group",children:r.jsxs("div",{className:"relative aspect-[3/4] overflow-hidden",children:[r.jsx("img",{src:S.src,alt:S.caption,className:"w-full h-full object-cover object-center group-hover:scale-105 transition-transform duration-500"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),r.jsx("p",{className:"absolute bottom-0 left-0 right-0 px-3 py-2 text-white text-xs leading-tight",children:S.caption})]})}
17,j))})]}),r.jsx("p",{className:"text-xs text-zinc-400 border-t border-zinc-100 pt-4",children:"Source: Field monitoring network. Report date: August 3, 2026."})]},"briefing"),s==="press"&&r.jsx(pe.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.22},className:"space-y-8",children:r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:fi.press.map((S,j)=>{const N=S.youtubeId?`https://img.youtube.com/vi/${S.youtubeId}/hqdefault.jpg`:S.image,C=!!S.youtubeId,T={PRESS:"bg-red-50 text-red-700",BRIEFING:"bg-orange-50 text-orange-700","OP-ED":"bg-teal-50 text-teal-700"},E={PRESS:r.jsx(xi,{className:"h-3.5 w-3.5"}),BRIEFING:r.jsx(Il,{className:"h-3.5 w-3.5"}),"OP-ED":r.jsx(Il,{className:"h-3.5 w-3.5"})};return r.jsxs("a",{href:S.link,target:"_blank",rel:"noopener noreferrer",className:"bg-zinc-50 border border-zinc-200 rounded-xl overflow-hidden flex flex-col hover:-translate-y-1 hover:border-primary transition-all group",children:[N&&r.jsxs("div",{className:"relative h-48 overflow-hidden bg-zinc-900",children:[r.jsx("img",{src:N,alt:S.title,className:"w-full h-full object-cover object-center group-hover:scale-105 transition-transform duration-500 opacity-90"}),C&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:r.jsx("div",{className:"w-14 h-14 bg-white/90 rounded-full flex items-center justify-center shadow-lg group-hover:scale-110 transition-transform",children:r.jsx(fs,{className:"w-6 h-6 text-primary fill-primary ml-1"})})}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 to-transparent"})]}),r.jsxs("div",{className:"p-5 flex flex-col flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[r.jsxs("span",{className:`inline-flex items-center gap-1 text-xs font-bold px-2 py-0.5 rounded-full ${T[S.type]??"bg-zinc-100 text-zinc-600"}`,children:[E[S.type]??r.jsx(xi,{className:"h-3.5 w-3.5"}),S.type]}),r.jsx("span",{className:"text-xs text-zinc-400 font-medium",children:S.source})]}),r.jsx("span",{className:"text-xs text-zinc-400 font-medium mb-1",children:S.date}),r.jsx("h4",{className:"text-base font-bold text-zinc-900 group-hover:text-primary transition-colors mb-2 leading-snug flex-1",children:S.title}),r.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-4 line-clamp-2",children:S.excerpt}),r.jsxs("span",{className:"inline-flex items-center text-primary font-medium text-sm",children:["View Coverage ",r.jsx(yt,{className:"w-3.5 h-3.5 ml-1.5"})]})]})]},j)})})},"press")]})]}),r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mt-10 border border-zinc-200 rounded-2xl overflow-hidden",children:[r.jsxs("button",{onClick:()=>p(!u),className:"w-full flex items-center justify-between px-6 py-4 hover:bg-zinc-50 transition-colors group text-left","aria-expanded":u,children:[r.jsxs("span",{className:"flex items-center gap-3",children:[r.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-primary",children:"Press Conference"}),r.jsx("span",{className:"font-semibold text-zinc-800 group-hover:text-primary transition-colors",children:"July 22, 2026 — DAG Advocacy Day, Capitol Hill"})]}),r.jsx(bi,{className:`w-5 h-5 text-zinc-400 flex-shrink-0 transition-transform duration-200 ${u?"rotate-180":""}`})]}),r.jsx(ys,{initial:!1,children:u&&r.jsx(pe.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25},className:"overflow-hidden",children:r.jsxs("div",{className:"px-6 pb-6 pt-2 bg-zinc-950 text-white",children:[r.jsx("p",{className:"text-zinc-400 text-sm mb-5",children:"Physicians, surgeons, healthcare workers, and human rights leaders speak live from Capitol Hill."}),r.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3",children:[{num:1,videoId:"2gg3eMgXLus"},{num:2,videoId:"h9Ee70GNjlM"},{num:3,videoId:"JjS6oeN-jzM"},{num:4,videoId:"VBly7TeIRDI"},{num:5,videoId:"WRjxC1hw_O0"}].map(S=>r.jsxs("article",{className:"flex flex-col rounded-xl overflow-hidden border border-zinc-800 bg-black/40",children:[r.jsxs("div",{className:"relative aspect-video bg-zinc-900",children:[r.jsx("img",{src:`https://img.youtube.com/vi/${S.videoId}/mqdefault.jpg`,alt:`Speaker ${S.num}`,className:"w-full h-full object-cover opacity-80"}),r.jsx("a",{href:`https://www.youtube.com/watch?v=${S.videoId}`,target:"_blank",rel:"noopener noreferrer",className:"absolute inset-0 flex items-center justify-center bg-black/30 hover:bg-black/10 transition-colors","aria-label":`Watch speaker ${S.num}`,children:r.jsx("span",{className:"flex items-center justify-center w-9 h-9 rounded-full bg-primary/90 text-white shadow-lg hover:scale-110 transition-transform",children:r.jsx(fs,{className:"w-4 h-4 ml-0.5",fill:"currentColor"})})})]}),r.jsx("div",{className:"px-3 py-2",children:r.jsx("span",{className:"font-mono text-xs font-bold text-primary",children:S.num})})]},S.num))})]})},"july22press")})]}),r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mt-10 border border-zinc-200 rounded-2xl overflow-hidden",children:[r.jsxs("button",{onClick:()=>h(!c),className:"w-full flex items-center justify-between px-6 py-4 hover:bg-zinc-50 transition-colors group text-left","aria-expanded":c,children:[r.jsxs("span",{className:"flex items-center gap-3",children:[r.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-primary",children:"Archive"}),r.jsx("span",{className:"font-semibold text-zinc-800 group-hover:text-primary transition-colors",children:"1,000 Days of Genocide — Bear Witness"})]}),r.jsx(bi,{className:`w-5 h-5 text-zinc-400 flex-shrink-0 transition-transform duration-200 ${c?"rotate-180":""}`})]}),r.jsx(ys,{initial:!1,children:c&&r.jsx(pe.div,{initial:{height:0,opacity:0}
17,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25},className:"overflow-hidden",children:r.jsxs("div",{className:"px-6 pb-6 pt-2 bg-zinc-950 text-white",children:[r.jsx("p",{className:"text-zinc-400 text-sm mb-5",children:"A short film and a simultaneous worldwide press conference — marking 1,000 days of genocide in Gaza."}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[r.jsxs("article",{className:"flex flex-col rounded-xl overflow-hidden border border-zinc-800 bg-black/40",children:[r.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4 pb-3",children:[r.jsx(Vf,{className:"w-4 h-4 text-primary"}),r.jsx("span",{className:"text-xs uppercase tracking-wider text-zinc-300 font-semibold",children:"Short Film · 2:45"})]}),r.jsxs("div",{className:"relative aspect-video bg-black",children:[r.jsx("video",{ref:v,src:"/dag-1000-days-genocide.mp4",poster:"/dag-1000-days-genocide-poster.jpg",controls:m,preload:"metadata",playsInline:!0,className:"w-full h-full object-contain bg-black"}),!m&&r.jsx("button",{type:"button",onClick:()=>{g(!0),v.current?.play().catch(()=>{})},className:"group absolute inset-0 flex items-center justify-center bg-black/30 hover:bg-black/15 transition-colors","aria-label":"Play the film One Thousand Days of Genocide",children:r.jsx("span",{className:"flex items-center justify-center w-14 h-14 rounded-full bg-primary/90 text-white shadow-lg transition-transform group-hover:scale-110",children:r.jsx(fs,{className:"w-7 h-7 ml-1",fill:"currentColor"})})})]}),r.jsxs("div",{className:"p-4",children:[r.jsx("h4",{className:"font-bold text-sm mb-0.5",children:"One Thousand Days of Genocide"}),r.jsx("p",{className:"text-xs text-zinc-400",children:"Hear from Gaza, not about Gaza."})]})]}),r.jsxs("article",{className:"flex flex-col rounded-xl overflow-hidden border border-zinc-800 bg-black/40",children:[r.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4 pb-3",children:[r.jsx(yT,{className:"w-4 h-4 text-primary"}),r.jsx("span",{className:"text-xs uppercase tracking-wider text-zinc-300 font-semibold",children:"Press Conference · Live Replay"})]}),r.jsx("div",{className:"relative aspect-video bg-black",children:y?r.jsx("iframe",{src:rM,title:"1,000 Days of Genocide press conference replay",className:"absolute inset-0 w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):r.jsxs("button",{type:"button",onClick:()=>b(!0),className:"group absolute inset-0","aria-label":"Play the press conference replay",children:[r.jsx("img",{src:cM,alt:"1,000 Days of Genocide press conference speakers",loading:"lazy",className:"w-full h-full object-cover"}),r.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/30 group-hover:bg-black/15 transition-colors",children:r.jsx("span",{className:"flex items-center justify-center w-14 h-14 rounded-full bg-primary/90 text-white shadow-lg transition-transform group-hover:scale-110",children:r.jsx(fs,{className:"w-7 h-7 ml-1",fill:"currentColor"})})})]})}),r.jsxs("div",{className:"p-4 flex flex-col flex-1",children:[r.jsx("h4",{className:"font-bold text-sm mb-0.5",children:"Press Conference Replay"}),r.jsx("p",{className:"text-xs text-zinc-400 mb-3",children:"Simultaneous press conferences, streamed live worldwide."}),r.jsxs("a",{href:lM,target:"_blank",rel:"noopener noreferrer",className:"mt-auto inline-flex items-center gap-1 text-xs text-zinc-400 hover:text-white underline underline-offset-4 transition-colors w-fit",children:["Read the press release ",r.jsx(yt,{className:"w-3 h-3"})]})]})]})]})]})},"archive")})]})]})})}function dM({isOpen:e,onClose:a,embedUrl:s,title:o}){return w.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),w.useEffect(()=>{const c=h=>{h.key==="Escape"&&a()};return e&&window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e,a]),e?r.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":o,children:[r.jsx("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm",onClick:a}),r.jsxs("div",{className:"relative z-10 w-full max-w-2xl bg-white rounded-2xl shadow-2xl overflow-hidden flex flex-col max-h-[90vh]",children:[r.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-zinc-100 bg-white flex-shrink-0",children:[r.jsx("h2",{className:"text-lg font-bold text-zinc-900 leading-tight pr-4",children:o}),r.jsx("button",{onClick:a,className:"flex-shrink-0 w-8 h-8 flex items-center justify-center rounded-full bg-zinc-100 hover:bg-zinc-200 transition-colors text-zinc-700","aria-label":"Close",children:r.jsx(oa,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"flex-1 overflow-hidden",children:r.jsx("iframe",{src:s,title:o,className:"w-full h-full min-h-[600px] border-0",allow:"payment",loading:"lazy"})})]})]}):null}function I1(){const[e,a]=w.useState(null),s=kt.campaigns.find(o=>o.title==="The Freedom Campaign");return r.jsxs("section",{id:"community-support",className:"py-24 px-6 lg:px-12 bg-[#f5f3ef]",children:[r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-serif-heading mb-6",children:kt.sectionTitle}),r.jsxs("p",{className:"text-lg text-zinc-600 max-w-3xl mx-auto",children:[kt.description," ",r.jsx("strong",{className:"text-zinc-900 block mt-2 text-xl",children:kt.highlightText})]})]}),s?r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mb-12 overflow-hidden rounded-sm border-2 border-[#ef492f] bg-white shadow-[8px_8px_0_#111] md:grid md:grid-cols-[minmax(300px,0.8fr)_1.2fr]",children:[r.jsx("div",{className:"relative flex min-h-[300px] items-start justify-center bg-[#f4f0e9] md:min-
17h-[480px]",children:r.jsx("img",{src:s.image,alt:s.title,loading:"lazy",decoding:"async",className:"h-auto w-full object-contain object-top"})}),r.jsxs("div",{className:"flex flex-col p-7 md:p-10",children:[r.jsx("span",{className:"mb-4 inline-flex w-fit bg-black px-3 py-1.5 text-[11px] font-black uppercase tracking-[0.16em] text-white",children:"Urgent campaign · Palestine"}),r.jsx("h3",{className:"mb-3 font-serif-heading text-3xl font-bold leading-tight text-zinc-900 md:text-4xl",children:s.title}),r.jsx("p",{className:"mb-6 flex-grow text-base leading-relaxed text-zinc-600 md:text-lg",children:s.description}),r.jsx("div",{className:"mb-6 border-2 border-black bg-white p-3",children:r.jsx("iframe",{title:`${s.title} fundraising thermometer`,src:s.thermometerUrl,style:{border:0,width:"100%",height:"120px",display:"block"},loading:"lazy"})}),r.jsx(vt,{className:"h-14 w-full rounded-none bg-[#ef492f] text-base font-black uppercase tracking-wide text-white shadow-[4px_4px_0_#111] hover:bg-[#d83d27]",onClick:()=>a({title:s.title,embedUrl:s.embedUrl}),"data-testid":"button-donate-freedom-campaign",children:s.buttonText})]})]}):null,r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"relative mb-12 rounded-2xl overflow-hidden border-2 border-primary bg-[#0a0a0a] text-white shadow-xl",children:[r.jsxs(r.Fragment,{children:[r.jsx("img",{src:kt.featured.image,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:"absolute inset-0 w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#0a0a0a]/95 via-[#0a0a0a]/85 to-[#E73924]/55"})]}),r.jsxs("div",{className:"relative p-8 md:p-12 flex flex-col md:flex-row md:items-center gap-8",children:[r.jsxs("div",{className:"flex-grow",children:[r.jsxs("span",{className:"inline-flex items-center gap-2 text-primary text-xs font-bold tracking-widest uppercase mb-4",children:[r.jsx(tc,{className:"w-4 h-4 fill-primary"}),"Featured · Give Where It Is Needed Most"]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold font-serif-heading mb-3 leading-tight",children:kt.featured.title}),r.jsx("p",{className:"text-zinc-300 leading-relaxed max-w-2xl mb-6",children:kt.featured.description}),r.jsx("div",{className:"bg-white/95 rounded-lg p-4 max-w-2xl",children:r.jsx("iframe",{title:"Donation form powered by Zeffy",src:kt.featured.thermometerUrl,style:{border:0,width:"100%",height:"120px",display:"block"},loading:"lazy"})})]}),r.jsx("div",{className:"flex-shrink-0 w-full md:w-auto",children:r.jsx(vt,{size:"lg",className:"bg-primary hover:bg-primary/90 text-white font-bold h-14 px-10 text-lg w-full md:w-auto",onClick:()=>a({title:kt.featured.title,embedUrl:kt.featured.embedUrl}),"data-testid":"button-donate-featured",children:kt.featured.buttonText})})]})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-20",children:kt.campaigns.filter(o=>o.title!=="The Freedom Campaign").map((o,c)=>{const h=o.goal>0,u=o.title==="The Freedom Campaign",p=h?Math.min(100,Math.round(o.raised/o.goal*100)):0;return r.jsxs(pe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:c*.1},className:`bg-white overflow-hidden transition-shadow flex flex-col ${u?"md:col-span-2 lg:col-span-3 rounded-sm border-2 border-[#ef492f] shadow-[8px_8px_0_#111] md:grid md:grid-cols-[minmax(300px,0.8fr)_1.2fr]":"rounded-xl border border-zinc-100 shadow-md hover:shadow-lg"}`,children:[r.jsxs("div",{className:`w-full relative ${o.cardColor||"bg-zinc-800"} ${u?"h-auto min-h-[300px] md:min-h-[480px]":"h-48"}`,children:[o.image?r.jsx("img",{src:o.image,alt:o.title,loading:"lazy",decoding:"async",className:`w-full h-full ${u?"object-contain object-top":"object-cover"}`}):r.jsx("div",{className:"w-full h-full flex items-center justify-center opacity-30",children:r.jsx(tc,{className:"w-16 h-16 text-white"})}),u?null:r.jsx("div",{className:"absolute top-4 left-4 bg-white/90 backdrop-blur text-xs font-bold px-3 py-1 rounded text-zinc-900",children:o.region})]}),r.jsxs("div",{className:`flex flex-col flex-grow ${u?"p-7 md:p-10":"p-6"}`,children:[u?r.jsx("span",{className:"mb-4 inline-flex w-fit bg-black px-3 py-1.5 text-[11px] font-black uppercase tracking-[0.16em] text-white",children:"Urgent campaign · Palestine"}):null,r.jsx("h3",{className:`font-bold text-zinc-900 mb-3 leading-tight ${u?"text-3xl md:text-4xl font-serif-heading":"text-xl"}`,children:o.title}),r.jsx("p",{className:`text-zinc-600 mb-6 flex-grow ${u?"text-base md:text-lg leading-relaxed":"text-sm"}`,children:o.description}),"thermometerUrl"in o&&o.thermometerUrl?r.jsx("div",{className:`mb-6 ${u?"border-2 border-black bg-white p-3":""}`,children:r.jsx("iframe",{title:`${o.title} fundraising thermometer`,src:o.thermometerUrl,style:{border:0,width:"100%",height:"120px",display:"block"},loading:"lazy"})}):h?r.jsxs("div",{className:"mb-6",children:[r.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[r.jsx("span",{className:"font-bold text-zinc-900",children:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}
17).format(o.raised)}),r.jsxs("span",{className:"text-zinc-500",children:["of ",new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(o.goal)]})]}),r.jsx("div",{className:"w-full bg-zinc-100 rounded-full h-2.5 mb-2 overflow-hidden",children:r.jsx(pe.div,{className:"bg-primary h-2.5 rounded-full",initial:{width:0},whileInView:{width:`${p}%`},viewport:{once:!0},transition:{duration:1,delay:.5}})}),r.jsxs("div",{className:"text-xs text-zinc-500",children:[p,"% Funded"]})]}):null,r.jsx(vt,{className:`w-full text-white ${u?"h-14 rounded-none bg-[#ef492f] text-base font-black uppercase tracking-wide shadow-[4px_4px_0_#111] hover:bg-[#d83d27]":"bg-primary hover:bg-primary/90"}`,onClick:()=>a({title:o.title,embedUrl:o.embedUrl}),"data-testid":`button-donate-${o.region.split(" ")[0].toLowerCase()}`,children:o.buttonText})]})]},c)})}),r.jsxs("div",{className:"text-center",children:[r.jsx(vt,{asChild:!0,variant:"outline",size:"lg",className:"border-2 border-primary text-primary hover:bg-primary/5 font-bold h-14 px-8 text-lg","data-testid":"button-donate-general",children:r.jsx("a",{href:kt.generalFund.link,children:kt.generalFund.buttonText})}),r.jsx("p",{className:"text-sm text-zinc-500 mt-4",children:kt.generalFund.note})]})]}),r.jsx(dM,{isOpen:!!e,onClose:()=>a(null),embedUrl:e?.embedUrl??"",title:e?.title??""})]})}const uM={ShieldCheck:r.jsx(Qv,{className:"w-6 h-6 text-primary mb-3"}),Target:r.jsx(sT,{className:"w-6 h-6 text-primary mb-3"}),HeartHandshake:r.jsx(Yv,{className:"w-6 h-6 text-primary mb-3"}),Zap:r.jsx(xT,{className:"w-6 h-6 text-primary mb-3"}),Star:r.jsx(tT,{className:"w-6 h-6 text-primary mb-3"}),Globe:r.jsx(Ff,{className:"w-6 h-6 text-primary mb-3"})};function _1(){return r.jsx("section",{id:"about",className:"py-24 px-6 lg:px-12 bg-black text-white",children:r.jsx("div",{className:"max-w-7xl mx-auto",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 mb-20",children:[r.jsxs(pe.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-serif-heading mb-8",children:Eh.sectionTitle}),r.jsx("div",{className:"space-y-6 text-zinc-300 text-lg leading-relaxed",children:Eh.mission.map((e,a)=>r.jsx("p",{children:e},a))}),r.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-6 mt-12",children:Eh.values.map((e,a)=>r.jsxs("div",{className:"flex flex-col",children:[uM[e.icon]??r.jsx(Qv,{className:"w-6 h-6 text-primary mb-3"}),r.jsx("span",{className:"font-bold text-sm tracking-wide",children:e.name})]},a))})]}),r.jsxs(pe.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"flex flex-col justify-center gap-4",children:[r.jsx("div",{className:"rounded-xl overflow-hidden border border-zinc-800",children:r.jsx("img",{src:"/dag-gillibrand-office.jpg",alt:"DAG delegation group photo at Senator Kirsten Gillibrand's office on Capitol Hill",className:"w-full h-64 object-cover object-center"})}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsx("div",{className:"rounded-xl overflow-hidden border border-zinc-800",children:r.jsx("img",{src:"/dag-pressley-office.jpg",alt:"DAG doctors meeting with Representative Ayanna Pressley's office",className:"w-full h-40 object-cover object-top"})}),r.jsx("div",{className:"rounded-xl overflow-hidden border border-zinc-800",children:r.jsx("img",{src:"/dag-fundraiser-community.jpg",alt:"DAG members at the New York fundraiser event",className:"w-full h-40 object-cover object-top"})})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4 mt-2",children:[r.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-5",children:[r.jsx("div",{className:"text-primary text-3xl font-bold font-serif-heading mb-1",children:"20,000+"}),r.jsx("div",{className:"text-zinc-400 text-sm",children:"Healthcare professionals in our coalition"})]}),r.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-5",children:[r.jsx("div",{className:"text-primary text-3xl font-bold font-serif-heading mb-1",children:"6 Regions"}),r.jsx("div",{className:"text-zinc-400 text-sm",children:"Gaza, West Bank, Lebanon, Sudan, Congo & Rohingya"})]})]})]})]})})})}const B1=w.forwardRef(({className:e,type:a,...s},o)=>r.jsx("input",{type:a,className:Et("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...s}));B1.displayName="Input";const hM=[r.jsx($C,{className:"w-8 h-8 text-primary"}),r.jsx(Cc,{className:"w-8 h-8 text-primary"}),r.jsx(vs,{className:"w-8 h-8 text-primary"}),r.jsx(EC,{className:"w-8 h-8 text-primary"})];function V1(){const[e,a]=w.useState(""),[s,o]=w.useState(!1);function c(h){h.preventDefault();const p=`${us.newsletter.actionNetworkUrl}?email=${encodeURIComponent(e)}`;window.open(p,"_blank","noopener,noreferrer"),o(!0)}return r.jsx("section",{id:"get-involved",className:"py-24 px-6 lg:px-12 bg-white",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-serif-heading mb-6",children:us.sectionTitle}),r.jsx("p",{className:"text-lg text-zinc-600 max-w-2xl mx-auto",children:us.description})]}),r.jsxs(pe.div,{initial:{opacity:0,scale:.98},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6},className:"relative w-full h-72 md:h-96 rounded-2xl overflow-hidden mb-14 shadow-xl",children:[r.jsx("img",{src:"/dag-healthcare-rally.jpg",alt:"DAG healthcare professionals rallying for justice",className:"w-full h-full object-cover object-center"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/10 to-transparent"}),r.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-8",children:r.jsx("p",{className:"text-white text-lg md:text-2xl font-bold font-serif-heading max-w-2xl",children:"Stand with healthcare professionals demanding justice worldwide."})})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8 mb-20",children:us.options.map((h,u)=>r.jsxs(pe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:u*.1},className:`rounded-xl p-8 text-center flex flex-col items-center h-full ${h.highlighted?"bg-primary/5 border border-primary/20":"bg-zinc-50 border border-zinc-100"}`,children:[r.jsx("div",{className:"w-16 h-16 bg-white rounded-full flex items-center justify-center shadow-sm mb-6",children:hM[u]}),r.jsx("h3",{className:"text-xl font-bold text-zinc-900 mb-4",children:h.title}),r.jsx("p",{className:"text-zinc-600 mb-8 flex-grow",children:h.description}),h.buttonLink.startsWith("/")&&!h.buttonLink.includes("#")?r.jsx(Pe,{href:h.buttonLink,className:"w-full",children:r.jsx(vt,{className:`w-full font-semibold ${h.highlighted?"bg-primary hover:bg-primary/90 text-white":"border-zinc-300 hover:bg-zinc-100"}`,variant:h.highlighted?"default":"outline","data-testid":`button-involved-${u}`,children:h.buttonText})}):r.jsx("a",{href:h.buttonLink,target:"_blank",rel:"noopener noreferrer",className:"w-full",children:r.jsx(vt,{className:`w-full font-semibold ${h.highlighted?"bg-primary hover:bg-primary/90 text-white":"border-zinc-300 hover:bg-zinc-100"}`,variant:h.highlighted?"default":"outline","data-testid":`button-involved-${u}`,children:h.buttonText})})]},u))}),r.jsxs("div",{className:"bg-black text-white rounded-2xl p-10 md:p-16 text-center max-w-4xl mx-auto 
17shadow-2xl",children:[r.jsx("h3",{className:"text-2xl md:text-3xl font-bold font-serif-heading mb-4",children:us.newsletter.title}),r.jsx("p",{className:"text-zinc-400 mb-8 max-w-lg mx-auto",children:us.newsletter.description}),s?r.jsxs("div",{className:"flex flex-col items-center gap-3 max-w-md mx-auto mb-12 py-4",children:[r.jsx(uC,{className:"w-10 h-10 text-primary"}),r.jsx("p",{className:"text-white font-semibold text-lg",children:"You're being redirected to complete your signup."}),r.jsx("button",{className:"text-zinc-400 text-sm underline hover:text-white transition-colors",onClick:()=>o(!1),children:"Enter a different email"})]}):r.jsxs("form",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto mb-12",onSubmit:c,children:[r.jsx(B1,{type:"email",placeholder:"Enter your email address",value:e,onChange:h=>a(h.target.value),className:"bg-zinc-900 border-zinc-700 text-white focus-visible:ring-primary h-12",required:!0,"data-testid":"input-newsletter-email"}),r.jsx(vt,{type:"submit",className:"bg-primary hover:bg-primary/90 text-white font-bold h-12 px-8","data-testid":"button-newsletter-subscribe",children:"Subscribe"})]}),r.jsxs("div",{className:"flex justify-center gap-6",children:[r.jsx("a",{href:xs.twitter,className:"text-zinc-400 hover:text-white transition-colors","aria-label":"Twitter","data-testid":"link-social-twitter",children:r.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:r.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 24.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),r.jsx("a",{href:xs.instagram,className:"text-zinc-400 hover:text-white transition-colors","aria-label":"Instagram","data-testid":"link-social-instagram",children:r.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:r.jsx("path",{fillRule:"evenodd",d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z",clipRule:"evenodd"})})}),r.jsx("a",{href:xs.facebook,className:"text-zinc-400 hover:text-white transition-colors","aria-label":"Facebook","data-testid":"link-social-facebook",children:r.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:r.jsx("path",{fillRule:"evenodd",d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987
17h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z",clipRule:"evenodd"})})})]})]})]})})}const Af="[email protected]",fM=`mailto:${Af}?subject=Media%20Inquiry%20%E2%80%94%20Doctors%20Against%20Genocide`;function F1(){return r.jsx("section",{id:"media",className:"py-20 px-6 lg:px-12 bg-white",children:r.jsx("div",{className:"max-w-5xl mx-auto",children:r.jsx(pe.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"bg-zinc-900 text-white rounded-2xl p-10 md:p-14 shadow-xl border-t-4 border-t-primary",children:r.jsxs("div",{className:"flex flex-col md:flex-row gap-10 items-start",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("div",{className:"w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center",children:r.jsx(Jv,{className:"w-8 h-8 text-primary"})})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-primary font-semibold uppercase tracking-wider text-sm mb-3",children:"Media Inquiries"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-serif-heading mb-5 leading-tight",children:"Journalists, producers, and editors — we're available to speak."}),r.jsx("p",{className:"text-zinc-300 text-base md:text-lg leading-relaxed mb-8 max-w-3xl",children:"Doctors Against Genocide physicians and healthcare workers are available for interviews, expert commentary, op-eds, panels, podcasts, and background briefings on the medical dimensions of genocide, the destruction of healthcare systems in Palestine, Sudan, Congo and beyond, famine and pediatric starvation, the targeting of medical workers, and the U.S. policy landscape. Reach out for quotes, on-record interviews, or to request a clinician for broadcast or print."}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-8",children:[r.jsxs("div",{className:"bg-zinc-800/60 rounded-lg p-4 flex gap-3 items-start",children:[r.jsx(xi,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-white text-sm mb-1",children:"What we can speak to"}),r.jsx("p",{className:"text-zinc-400 text-sm leading-relaxed",children:"Field reports from Gaza, healthcare under siege, medical ethics, pediatric and maternal health, displacement, and international humanitarian law."})]})]}),r.jsxs("div",{className:"bg-zinc-800/60 rounded-lg p-4 flex gap-3 items-start",children:[r.jsx(qh,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-white text-sm mb-1",children:"How to reach us"}),r.jsx("p",{className:"text-zinc-400 text-sm leading-relaxed",children:"Email with your outlet, deadline, topic, and format (interview, written quote, op-ed, broadcast). We respond as quickly as possible."})]})]})]}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 items-start sm:items-center",children:[r.jsx("a",{href:fM,children:r.jsxs(vt,{className:"bg-primary hover:bg-primary/90 text-white font-bold h-12 px-8","data-testid":"button-media-contact",children:[r.jsx(qh,{className:"w-4 h-4 mr-2"}),"Contact the Media Team"]})}),r.jsx("a",{href:`mailto:${Af}`,className:"text-zinc-400 hover:text-white text-sm transition-colors",children:Af})]})]})]})})})})}const Fx=r.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4",children:r.jsx("path",{d:"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"})}),mM=r.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4",children:r.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 
170-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})});function pM(){const[e,a]=w.useState([]);return w.useEffect(()=>{fetch("/api/youtube").then(s=>s.json()).then(s=>a((s.videos??[]).slice(0,3))).catch(()=>{})},[]),r.jsx("div",{id:"social",className:"border-t border-zinc-200 bg-zinc-950 px-6 lg:px-12 py-10",children:r.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-8",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"inline-flex items-center justify-center w-7 h-7 rounded-full bg-[#FF0000] text-white",children:Fx}),r.jsx("span",{className:"text-white font-semibold text-sm",children:"YouTube"})]}),r.jsxs("a",{href:"https://www.youtube.com/@doctorsagainstgenocide",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white text-xs flex items-center gap-1 transition-colors",children:["View channel ",r.jsx(yt,{className:"w-3 h-3"})]})]}),r.jsx("div",{className:"grid grid-cols-3 gap-2",children:e.length>0?e.map(s=>r.jsxs("a",{href:`https://www.youtube.com/shorts/${s.videoId}`,target:"_blank",rel:"noopener noreferrer",className:"group relative block rounded-xl overflow-hidden bg-zinc-900 border border-zinc-800",style:{aspectRatio:"9/16"},title:s.title,children:[r.jsx("img",{src:`https://i.ytimg.com/vi/${s.videoId}/maxresdefault.jpg`,alt:s.title,className:"w-full h-full object-cover opacity-90 group-hover:opacity-100 transition-opacity",onError:o=>{const c=o.currentTarget;c.src.includes("maxresdefault")&&(c.src=`https://i.ytimg.com/vi/${s.videoId}/hqdefault.jpg`)}}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
17parent to-transparent"}),r.jsx("div",{className:"absolute bottom-2 left-0 right-0 flex justify-center",children:r.jsx("div",{className:"w-8 h-8 rounded-full bg-[#FF0000] flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow",children:r.jsx("svg",{viewBox:"0 0 24 24",fill:"white",className:"w-4 h-4 ml-0.5",children:r.jsx("path",{d:"M8 5v14l11-7z"})})})})]},s.videoId)):Array.from({length:3}).map((s,o)=>r.jsx("div",{className:"rounded-xl bg-zinc-900 border border-zinc-800 animate-pulse",style:{aspectRatio:"9/16"}},o))}),r.jsxs("a",{href:"https://www.youtube.com/@DoctorsAgainstGenocide/shorts",target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-2 text-white text-xs font-semibold px-4 py-2 rounded-lg bg-[#FF0000] hover:bg-red-700 transition-colors",children:[Fx," Watch Shorts ",r.jsx(yt,{className:"w-3 h-3"})]})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"inline-flex items-center justify-center w-7 h-7 rounded-lg text-white",style:{background:"radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%)"},children:mM}),r.jsx("span",{className:"text-white font-semibold text-sm",children:"Instagram"})]}),r.jsxs("a",{href:"https://www.instagram.com/doctorsagainstgenocide/",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white text-xs flex items-center gap-1 transition-colors",children:["View profile ",r.jsx(yt,{className:"w-3 h-3"})]})]}),r.jsx("div",{className:"rounded-xl border border-zinc-800 overflow-hidden",style:{height:220},children:r.jsx("iframe",{src:"https://www.instagram.com/doctorsagainstgenocide/embed/",className:"w-full border-0",style:{height:500,marginTop:-60,pointerEvents:"none"},scrolling:"no",loading:"lazy",title:"Doctors Against Genocide Instagram feed"})}),r.jsxs("a",{href:"https://www.instagram.com/doctorsagainstgenocide/",target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-2 text-white text-xs font-semibold px-4 py-2 rounded-lg",style:{background:"radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%)"},children:["Follow @doctorsagainstgenocide ",r.jsx(yt,{className:"w-3 h-3"})]})]})]})})}function gM(e){try{const a=new Date(e);return isNaN(a.getTime())?e:a.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return e}}function yM(e,a){if(a)return a;try{return new URL(e).hostname.replace("www.","")}catch{return"News"}}function bM(){const[e,a]=w.useState([]),[s,o]=w.useState(!0),[c,h]=w.useState(!1);return w.useEffect(()=>{fetch("/api/news").then(u=>u.json()).then(u=>{a(u.articles??[]),o(!1)}).catch(()=>{h(!0),o(!1)})},[]),r.jsx("section",{id:"in-the-news",className:"py-24 px-6 lg:px-12 bg-[#f5f3ef]",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14",children:[r.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[r.jsx(xi,{className:"w-5 h-5 text-primary"}),r.jsx("span",{className:"text-primary text-sm font-medium uppercase tracking-widest",children:"Press & Media"})]}),r.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-serif-heading text-zinc-900 mb-4",children:"In the News"}),r.jsx("p",{className:"text-zinc-600 max-w-2xl mx-auto",children:"Real-time coverage of Doctors Against Genocide — press mentions, conference appearances, and official press releases."})]}),s&&r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:Array.from({length:8}).map((u,p)=>r.jsxs("div",{className:"bg-white rounded-xl p-6 animate-pulse space-y-3 border border-zinc-100",children:[r.jsx("div",{className:"h-3 bg-zinc-200 rounded w-1/3"}),r.jsx("div",{className:"h-4 bg-zinc-200 rounded w-full"}),r.jsx("div",{className:"h-4 bg-zinc-200 rounded w-4/5"}),r.jsx("div",{className:"h-3 bg-zinc-200 rounded w-1/4"})]},p))}),c&&r.jsxs("div",{className:"text-center py-16 text-zinc-500",children:[r.jsx(xi,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),r.jsx("p",{children:"Couldn't load news right now. Try refreshing."})]}),!s&&!c&&e.length===0&&r.jsxs("div",{className:"text-center py-16 text-zinc-500",children:[r.jsx(xi,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),r.jsx("p",{children:"No news articles found at this time."})]}),!s&&!c&&e.length>0&&r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map((u,p)=>r.jsxs(pe.a,{href:u.link,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:p*.05},className:"group bg-white rounded-xl p-6 border border-zinc-100 hover:border-primary/30 hover:shadow-md transition-all flex flex-col gap-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-xs font-bold text-primary uppercase tracking-wide truncate max-w-[75%]",children:yM(u.link,u.source)}),r.jsx(yt,{className:"w-3.5 h-3.5 text-zinc-400 group-hover:text-primary transition-colors flex-shrink-0"})]}),r.jsx("p",{className:"text-zinc-900 font-semibold text-sm leading-snug group-hover:text-primary transition-colors line-clamp-3 flex-grow",children:u.title}),r.jsxs("div",{className:"flex items-center gap-1.5 text-zinc-400 text-xs mt-auto",children:[r.jsx(qv,{className:"w-3 h-3"}),gM(u.pubDate)]})]},p))}),r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"mt-14 text-center",children:[r.jsx("p",{className:"text-zinc-500 text-sm mb-3",children:"Are you a journalist or media outlet?"}),r.jsx("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 text-primary font-semibold hover:underline",children:"Contact our press team →"})]})]})})}const xM="https://us06web.zoom.us/webinar/register/WN_aUUzycRDSwaem750Nc6iFg#/registration",vM="Hear Directly from Frontline Doctors",wM="Every Sunday at 12 PM — live briefings with physicians working inside war zones, genocide survivors, and global health experts. These are not just updates. They are calls to action.";function SM(e){return`/api/storage/objects${e.replace(/^\/objects/,"")}`}function AM(){const[e,a]=w.useState(null);w.useEffect(()=>{fetch("/api/webinar-config").then(p=>p.ok?p.json():null).then(p=>{p&&a(p)}).catch(()=>{})},[]);const s=e?.imageObjectPath?SM(e.imageObjectPath):"/dag-weekly-webinar.jpg?v=4",o=e?.imageObjectPath?"Weekly webinar guest speakers":"Weekly webinar guest speakers Dr. Nadera Shakhoub-Kevorkian and Dr. Kavita Algu — Updates on Jerusalem and West Bank with a live screening of SUMUD — Sunday Aug 2 2026",c=e?.title??vM,h=e?.subtitle??wM,u=e?.registrationUrl??xM;return r.jsxs("section",{id:"weekly-webinar",className:"relative bg-primary overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 20% 50%, white 1px, transparent 1px), radial-gradient(circle at 80% 20%, white 1px, transparent 1px)",backgroundSize:"40px 40px"}}),r.jsx("div",{className:"absolute right-0 top-0 h-full w-1/2 opacity-5",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewB
17ox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E")`}}),r.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-6 lg:px-12 py-10 lg:py-12",children:r.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-8 lg:gap-12",children:[r.jsxs(pe.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5},className:"flex-shrink-0 flex flex-col items-center gap-3",children:[r.jsx("div",{className:"relative w-64 md:w-72 aspect-video rounded-xl overflow-hidden border-2 border-white/30 shadow-xl",children:r.jsx("img",{src:s,alt:o,className:"w-full h-full object-cover",loading:"lazy"})}),r.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-white/20 text-white text-xs font-bold px-3 py-1.5 rounded-full uppercase tracking-wide",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-white animate-pulse inline-block"}),"Live Every Week"]})]}),r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"flex-1 text-center lg:text-left",children:[r.jsx("p",{className:"text-2xl md:text-3xl font-bold uppercase tracking-widest mb-3 text-primary drop-shadow-[0_0_12px_rgba(232,78,54,0.6)]",children:"Weekly Webinar Series"}),r.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white font-serif-heading leading-tight mb-4",children:c}),r.jsx("p",{className:"text-white/80 text-lg max-w-2xl mx-auto lg:mx-0 mb-6 leading-relaxed",children:h}),r.jsxs("div",{className:"flex flex-wrap items-center gap-4 justify-center lg:justify-start mb-2",children:[r.jsxs("div",{className:"flex items-center gap-2 text-white/80 text-sm",children:[r.jsx(Pa,{className:"w-4 h-4 text-white"}),"Every Sunday"]}),r.jsxs("div",{className:"flex items-center gap-2 text-white/80 text-sm",children:[r.jsx(qv,{className:"w-4 h-4 text-white"}),"12:00 PM ET"]}),r.jsxs("div",{className:"flex items-center gap-2 text-white/80 text-sm",children:[r.jsx(Cc,{className:"w-4 h-4 text-white"}),"Free & Open to All"]})]})]}),r.jsxs(pe.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"flex-shrink-0 flex flex-col items-center gap-4",children:[r.jsxs("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-3 bg-white text-primary font-bold text-lg px-8 py-4 rounded-xl hover:bg-zinc-100 transition-all shadow-xl hover:shadow-2xl hover:-translate-y-0.5 active:translate-y-0",children:["Register Now",r.jsx(Ze,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]}),r.jsx("p",{className:"text-white/60 text-xs text-center max-w-[200px]",children:"No cost. No commitment. Just truth from the frontlines."})]})]})})]})}const jM="https://dagshops.com/collections/free-dr-hussam-abu-safiya",NM=[{name:"#FreeDrAbuSafiya Solidarity Tee",image:"/shop/abu-tee.jpg"},{name:"#Free Dr. Hussam Protest Tee",image:"/shop/abu-protest-tee.jpg"},{name:"Free Dr. Abu Safiya Tote Bag",image:"/shop/abu-tote.jpg"},{name:"Free Dr. Abu Safiya Sticker",image:"/shop/abu-sticker.jpg"}];function kM(){return r.jsx("section",{id:"shop",className:"bg-[#f5f3ef] py-12",children:r.jsx("div",{className:"max-w-5xl mx-auto px-6 lg:px-12",children:r.jsxs(pe.a,{href:jM,target:"_blank",rel:"noopener noreferrer","data-testid":"link-shop-abu-safiya",initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"group flex flex-col sm:flex-row items-center gap-6 bg-white rounded-xl border border-zinc-200 p-5 hover:border-primary/40 transition-colors",children:[r.jsx("div",{className:"flex -space-x-3 shrink-0",children:NM.map(e=>r.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden border-2 border-white bg-zinc-100 shadow-sm",children:r.jsx("img",{src:e.image,alt:e.name,loading:"lazy",className:"w-full h-full object-cover"})},e.name))}),r.jsxs("div",{className:"flex-1 text-center sm:text-left",children:[r.jsx("p",{className:"text-[11px] font-bold uppercase tracking-widest text-primary mb-1",children:"Wear the Cause"}),r.jsx("h2",{className:"text-lg font-bold text-zinc-900 font-serif-heading leading-tight",children:"Free Dr. Abu Safiya Collection"}),r.jsx("p",{className:"text-zinc-500 text-sm",children:"Every purchase funds the campaign for his release."})]}),r.jsxs("span",{className:"shrink-0 inline-flex items-center gap-2 text-primary font-bold text-sm",children:["Shop the Collection",r.jsx(Ze,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]})})})}function Pl({href:e,className:a,children:s}){return e.startsWith("/")||e.startsWith("#")?r.jsx(Pe,{href:e,className:a,children:s}):r.jsx("a",{href:e,target:e.startsWith("mailto:")?void 0:"_blank",rel:"noopener noreferrer",className:a,children:s})}function Gn(){return r.jsx("footer",{className:"bg-black pt-16 pb-8 border-t border-zinc-900 text-white",children:r.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-12 mb-12",children:[r.jsxs("div",{className:"col-span-1 md:col-span-1",children:[r.jsx("img",{src:"/dag-logo-tight.png",alt:"Doctors Against Genocide",className:"h-12 w-auto mb-6"}),r.jsx("p",{className:"text-zinc-400 text-sm leading-relaxed mb-6",children:Po.footerBlurb}),r.jsxs("p",{className:"text-xs text-zinc-500",children:[Po.name," is a registered 501(c)(3) nonprofit organization.",r.jsx("br",{}),"EIN: ",Po.ein]})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-lg mb-4 font-serif-heading",children:"About DAG"}),r.jsx("ul",{className:"space-y-3 text-sm text-zinc-400",children:Ml.aboutDag.map((e,a)=>r.jsx("li",{children:r.jsx(Pl,{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},a))})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-lg mb-4 font-serif-heading",children:"Resources"}),r.jsx("ul",{className:"space-y-3 text-sm text-zinc-400",children:Ml.resources.map((e,a)=>r.jsx("li",{children:r.jsx(Pl,{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},a))})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-lg mb-4 font-serif-heading",children:"Connect"}),r.jsx("ul",{className:"space-y-3 text-sm text-zinc-400",children:Ml.connect.map((e,a)=>r.jsx("li",{children:r.jsx(Pl,{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},a))})]})]}),r.jsxs("div",{className:"pt-8 border-t border-zinc-900 flex flex-col md:flex-row justify-between items-center text-xs text-zinc-500 gap-4",children:[r.jsxs("p",{children:["© ",Po.copyright," ",Po.name,". All rights reserved."]}),r.jsx("div",{className:"flex gap-6",children:Ml.legal.map((e,a)=>r.jsx(Pl,{href:e.href,className:"hover:text-zinc-300",children:e.label},a))})]})]})})}function q1({src:e,poster:a,title:s,className:o="relative aspect-video w-full rounded-xl overflow-hidden border border-zinc-200 shadow-sm bg-black"}){const c=un.useRef(null),[h,u]=un.useState(!0);un.useEffect(()=>{const m=c.current;if(!m)return;const g=new IntersectionObserver(([y])=>{y&&!y.isIntersecting&&!m.muted&&!m.paused&&m.pause()});return g.observe(m),()=>g.disconnect()},[]);const p=()=>{const m=c.current;m&&(m.muted=!1,m.volume=1,m.loop=!1,m.currentTime=0,m.play(),u(!1))};return r.jsxs("div",{className:o,children:[r.jsx("video",{ref:c,src:e,poster:a,controls:!0,playsInl
17ine:!0,autoPlay:!0,muted:!0,loop:!0,preload:"metadata","aria-label":s,className:"absolute inset-0 w-full h-full",onVolumeChange:m=>{const g=m.currentTarget;!g.muted&&g.volume>0&&u(!1)},"data-testid":"video-native-player"}),h&&r.jsxs("button",{onClick:p,className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 flex items-center gap-2.5 rounded-full bg-[#f5f3ef]/95 px-6 py-3.5 text-base font-semibold text-[#0a0a0a] shadow-2xl transition-transform hover:scale-105 focus:outline-none focus-visible:ring-4 focus-visible:ring-white/60","aria-label":"Play video from the beginning with sound","data-testid":"button-play-with-sound",children:[r.jsx(mT,{className:"w-5 h-5","aria-hidden":"true"}),"Play with sound"]})]})}const CM="/dag-elias-appeal.mp4",TM="/dag-elias-appeal-poster.jpg",zM="/statements/release-dr-abu-safiya",EM="/actions/free-gaza-doctors";function DM(){const e=w.useRef(null),[a,s]=w.useState(!1);w.useEffect(()=>{const c=e.current;if(!c)return;const h=new IntersectionObserver(([u])=>{u&&!u.isIntersecting&&!c.paused&&c.pause()});return h.observe(c),()=>h.disconnect()},[]);const o=()=>{const c=e.current;c&&(s(!0),c.play().catch(()=>{}))};return r.jsxs("section",{id:"urgent-appeal",className:"relative bg-black text-white py-20 px-6 lg:px-12 overflow-hidden border-t-4 border-t-primary",children:[r.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -top-32 -right-24 w-[30rem] h-[30rem] rounded-full bg-primary/20 blur-[120px]"}),r.jsxs("div",{className:"relative max-w-5xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-primary/15 border border-primary/40 px-4 py-1.5 mb-5",children:[r.jsx(ew,{className:"w-4 h-4 text-primary"}),r.jsx("span",{className:"text-xs uppercase tracking-[0.25em] text-primary font-semibold",children:"Urgent Appeal"})]}),r.jsx("h2",{className:"text-3xl md:text-5xl font-serif-heading font-bold mb-4 leading-tight",children:'"Intervene Before It Is Too Late"'}),r.jsx("p",{className:"text-zinc-300 max-w-2xl mx-auto leading-relaxed",children:"Elias Abu Safiya, son of the detained pediatrician Dr. Hussam Abu Safiya, appeals directly to the international community to act now to save his father's life."})]}),r.jsxs("div",{className:"relative aspect-video rounded-2xl overflow-hidden border border-zinc-800 bg-black shadow-2xl",children:[r.jsx("video",{ref:e,src:CM,poster:TM,controls:a,preload:"metadata",playsInline:!0,className:"w-full h-full object-contain bg-black","data-testid":"video-urgent-appeal"}),!a&&r.jsx("button",{type:"button",onClick:o,className:"group absolute inset-0 flex items-center justify-center bg-black/25 transition-colors hover:bg-black/10","aria-label":"Play the urgent appeal from Elias Abu Safiya","data-testid":"button-play-urgent-appeal",children:r.jsx("span",{className:"flex items-center justify-center w-16 h-16 md:w-20 md:h-20 rounded-full bg-primary/90 text-white shadow-lg transition-transform group-hover:scale-110",children:r.jsx(fs,{className:"w-8 h-8 md:w-9 md:h-9 ml-1",fill:"currentColor"})})})]}),r.jsx("div",{className:"mt-8 flex flex-col sm:flex-row items-center justify-center gap-4",children:r.jsxs(Pe,{href:zM,"data-testid":"link-appeal-statement",className:"inline-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-semibold text-white transition-colors hover:bg-primary/90",children:["Read the DAG statement on Dr. Abu Safiya",r.jsx(Ze,{className:"w-4 h-4"})]})}),r.jsxs("div",{className:"mt-16 pt-12 border-t border-zinc-800",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("span",{className:"text-xs uppercase tracking-[0.25em] text-primary font-semibold",children:"Honor. Demand accountability. Act."}),r.jsx("h3",{className:"mt-3 text-2xl md:text-4xl font-serif-heading font-bold leading-tight",children:"They Wore White Coats"}),r.jsx("p",{className:"mt-3 text-zinc-300 max-w-2xl mx-auto leading-relaxed",children:"We honor the doctors of Gaza abducted and killed in detention, and we demand accountability for these crimes. Every healthcare worker and ally must mobilize now to free Dr. Hussam Abu Safiya and all illegally detained Palestinian medics."})]}),r.jsx(q1,{src:"/video/they-wore-white-coats.mp4",poster:"/video/they-wore-white-coats-poster.jpg",title:"They Wore White Coats, an advocacy video honoring detained and killed Gaza doctors",className:"relative aspect-video rounded-2xl overflow-hidden border border-zinc-800 bg-black shadow-2xl"}),r.jsx("div",{className:"mt-8 flex flex-col sm:flex-row items-center justify-center gap-4",children:r.jsxs(Pe,{href:EM,"data-testid":"link-free-gaza-doctors",className:"inline-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-semibold text-white transition-colors hover:bg-primary/90",children:["Join the campaign to free detained doctors",r.jsx(Ze,{className:"w-4 h-4"})]})})]})]})]})}function Go({id:e,label:a,defaultOpen:s=!1,children:o,bg:c="bg-white"}){const[h,u]=w.useState(s);return r.jsxs("div",{id:e,className:`border-t border-zinc-200 ${c}`,children:[r.jsxs("button",{onClick:()=>u(!h),className:"w-full flex items-center justify-between px-6 lg:px-12 py-5 hover:bg-zinc-50 transition-colors group","aria-expanded":h,children:[r.jsx("span",{className:"font-bold text-lg text-zinc-900 group-hover:text-primary transition-colors",children:a}),r.jsx(bi,{className:`w-5 h-5 text-zinc-400 transition-transform duration-300 ${h?"rotate-180":""}`})]}),r.jsx(ys,{initial:!1,children:h&&r.jsx(pe.div,{initial:{height:0,opacity:0}
17,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:o},"content")})]})}function RM(){return r.jsxs("div",{className:"flex min-h-[100dvh] flex-col w-full bg-background font-sans text-foreground",children:[r.jsx(Pn,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx(aM,{}),r.jsx(eM,{}),r.jsxs("section",{className:"relative isolate min-h-[300px] overflow-hidden bg-zinc-950 text-white border-t-4 border-primary px-6 lg:px-12",children:[r.jsx("img",{src:"/dag-conference-2026.png?v=20260829-collage",alt:"","aria-hidden":"true",className:"absolute inset-0 -z-20 h-full w-full object-cover object-center"}),r.jsx("div",{className:"max-w-7xl mx-auto flex min-h-[300px] items-center py-8",children:r.jsxs("div",{className:"max-w-4xl rounded-2xl border border-white/30 bg-black/40 p-5 shadow-2xl backdrop-blur-[1px] sm:p-7",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[r.jsx("p",{className:"inline-flex items-center rounded-full bg-white px-3 py-1 text-zinc-950 font-bold text-xs uppercase tracking-[0.16em]",children:"Registration Open"}),r.jsx("span",{className:"text-sm font-semibold text-zinc-200",children:"November 13–15, 2026"})]}),r.jsx("h2",{className:"font-serif-heading text-3xl sm:text-4xl font-bold leading-tight max-w-3xl drop-shadow-[0_3px_8px_rgba(0,0,0,0.95)]",children:"3rd Annual Doctors Against Genocide Conference"}),r.jsx("p",{className:"mt-3 text-white text-base sm:text-lg leading-relaxed max-w-2xl drop-shadow-[0_2px_6px_rgba(0,0,0,0.95)]",children:"Join doctors, researchers, and organizers for three days of talks, connection, and collective action."}),r.jsxs("a",{href:"https://www.zeffy.com/en-US/ticketing/3rd-annual-doctors-against-genocide-conference",target:"_blank",rel:"noopener noreferrer",className:"mt-5 inline-flex shrink-0 items-center justify-center gap-2 bg-white hover:bg-zinc-200 text-zinc-950 font-bold text-base px-6 py-4 rounded-lg shadow-lg shadow-black/30 transition-colors",children:["Register for the 3rd Annual Conference ",r.jsx(Ze,{className:"w-4 h-4"})]})]})})]}),r.jsx(AM,{}),r.jsx(DM,{}),r.jsx(kM,{}),r.jsxs("section",{className:"relative text-white py-16 px-6 lg:px-12 overflow-hidden",id:"pillars",children:[r.jsx("img",{src:"/dag-pillars-bg.jpg",alt:"","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover object-center"}),r.jsx("div",{className:"absolute inset-0 bg-black/60"}),r.jsxs("div",{className:"relative max-w-7xl mx-auto",children:[r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-serif-heading font-bold mb-4",children:"Our Three Pillars"}),r.jsx("div",{className:"w-24 h-1 bg-primary mx-auto"})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[{icon:r.jsx(_f,{className:"w-7 h-7 text-primary"}),title:"Education",desc:"Empowering healthcare workers and the public with knowledge to recognize and respond to genocide.",href:"#education",cta:"Explore Resources",delay:.1},{icon:r.jsx($v,{className:"w-7 h-7 text-primary"}),title:"Advocacy",desc:"Amplifying medical voices to raise awareness, demand change, and hold perpetrators accountable.",href:"#advocacy",cta:"Take Action",delay:.2},{icon:r.jsx(tc,{className:"w-7 h-7 text-primary"}),title:"Community Support",desc:"Work with trusted partners on the ground to support communities facing genocide, displacement, and health system collapse, helping sustain medical care, food security, disability access, education, and frontline relief and human dignity.",href:"#community-support",cta:"Support Campaigns",delay:.3}].map(e=>r.jsxs(pe.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e.delay},className:"bg-zinc-900 border-t-4 border-t-primary rounded-xl p-7 flex flex-col group",children:[r.jsx("div",{className:"bg-zinc-800 w-14 h-14 rounded-full flex items-center justify-center mb-5 group-hover:bg-primary/20 transition-colors",children:e.icon}),r.jsx("h3",{className:"text-xl font-bold mb-3 font-serif-heading",children:e.title}),r.jsx("p",{className:"text-zinc-400 mb-6 flex-grow text-sm leading-relaxed",children:e.desc}),r.jsxs("a",{href:e.href,className:"inline-flex items-center text-primary font-medium hover:text-primary/80 transition-colors text-sm",children:[e.cta," ",r.jsx(Ze,{className:"w-4 h-4 ml-2"})]})]},e.title))})]})]}),r.jsx(L1,{}),r.jsx(H1,{}
17),r.jsx(Go,{id:"community-support",label:"Community Support",defaultOpen:!0,bg:"bg-[#f5f3ef]",children:r.jsx(I1,{})}),r.jsx(Go,{id:"news",label:"Latest News",bg:"bg-white",children:r.jsx(bM,{})}),r.jsx(pM,{}),r.jsx(Go,{id:"about",label:"About DAG",defaultOpen:!0,bg:"bg-[#f5f3ef]",children:r.jsx(_1,{})}),r.jsx(Go,{id:"get-involved",label:"Get Involved",defaultOpen:!0,bg:"bg-white",children:r.jsx(V1,{})}),r.jsx(Go,{id:"media",label:"Media Inquiries",defaultOpen:!0,bg:"bg-white",children:r.jsx(F1,{})})]}),r.jsx(Gn,{})]})}const MM=new Set([204,205,304]),OM="application/json, application/problem+json";function W1(e){return typeof Request<"u"&&e instanceof Request}function PM(e,a){return a?a.toUpperCase():W1(e)?e.method.toUpperCase():"GET"}function GM(e){return typeof URL<"u"&&e instanceof URL}function UM(e){return typeof e=="string"?e:GM(e)?e.toString():e.url}function LM(...e){const a=new Headers;for(const s of e)s&&new Headers(s).forEach((o,c)=>{a.set(c,o)});return a}function Y1(e){const a=e.get("content-type");return a?a.split(";",1)[0].trim().toLowerCase():null}function jf(e){return e==="application/json"||!!e?.endsWith("+json")}function K1(e){return!!(e&&(e.startsWith("text/")||e==="application/xml"||e==="text/xml"||e.endsWith("+xml")||e==="application/x-www-form-urlencoded"))}function $1(e,a){return!!(a==="HEAD"||MM.has(e.status)||e.headers.get("content-length")==="0"||e.body===null)}function J1(e){return e.charCodeAt(0)===65279?e.slice(1):e}function Q1(e){const a=e.trimStart();return a.startsWith("{")||a.startsWith("[")}function Uo(e,a){if(!e||typeof e!="object")return;const s=e[a];if(typeof s!="string")return;const o=s.trim();return o===""?void 0:o}function HM(e,a=300){return e.length>a?`${e.slice(0,a-1)}…`:e}function IM(e,a){const s=`HTTP ${e.status} ${e.statusText}`;if(typeof a=="string"){const u=a.trim();return u?`${s}: ${HM(u)}`:s}const o=Uo(a,"title"),c=Uo(a,"detail"),h=Uo(a,"message")??Uo(a,"error_description")??Uo(a,"error");return o&&c?`${s}: ${o} — ${c}`:c?`${s}: ${c}`:h?`${s}: ${h}`:o?`${s}: ${o}`:s}class _M extends Error{name="ApiError";status;statusText;data;headers;response;method;url;constructor(a,s,o){super(IM(a,s)),Object.setPrototypeOf(this,new.target.prototype),this.status=a.status,this.statusText=a.statusText,this.data=s,this.headers=a.headers,this.response=a,this.method=o.method,this.url=a.url||o.url}}class BM extends Error{name="ResponseParseError";status;statusText;headers;response;method;url;rawBody;cause;constructor(a,s,o,c){super(`Failed to parse response from ${c.method} ${a.url||c.url} (${a.status} ${a.statusText}) as JSON`),Object.setPrototypeOf(this,new.target.prototype),this.status=a.status,this.statusText=a.statusText,this.headers=a.headers,this.response=a,this.method=c.method,this.url=a.url||c.url,this.rawBody=s,this.cause=o}}async function VM(e,a){const s=await e.text(),o=J1(s);if(o.trim()==="")return null;try{return JSON.parse(o)}catch(c){throw new BM(e,s,c,a)}}async function FM(e,a){if($1(e,a))return null;const s=Y1(e.headers);if(s&&!jf(s)&&!K1(s))return typeof e.blob=="function"?e.blob():e.text();const o=await e.text(),c=J1(o);if(c.trim()==="")return null;if(jf(s)||Q1(c))try{return JSON.parse(c)}catch{return o}return o}function qM(e){const a=Y1(e.headers);return jf(a)?"json":K1(a)||a==null?"text":"blob"}async function WM(e,a,s){if($1(e,s.method))return null;
17switch(a==="auto"?qM(e):a){case"json":return VM(e,s);case"text":{const c=await e.text();return c===""?null:c}case"blob":if(typeof e.blob!="function")throw new TypeError('Blob responses are not supported in this runtime. Use responseType "json" or "text" instead.');return e.blob()}}async function or(e,a={}){e=e;const{responseType:s="auto",headers:o,...c}=a,h=PM(e,c.method);if(c.body!=null&&(h==="GET"||h==="HEAD"))throw new TypeError(`customFetch: ${h} requests cannot have a body.`);const u=LM(W1(e)?e.headers:void 0,o);typeof c.body=="string"&&!u.has("content-type")&&Q1(c.body)&&u.set("content-type","application/json"),s==="json"&&!u.has("accept")&&u.set("accept",OM);const p={method:h,url:UM(e)},m=await fetch(e,{...c,method:h,headers:u});if(!m.ok){const g=await FM(m,h);throw new _M(m,g,p)}return await WM(m,s,p)}const YM=()=>"/api/storage/uploads/request-url",KM=async(e,a)=>or(YM(),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(e)}),$M=e=>{const a=["requestUploadUrl"],{mutation:s,request:o}={mutation:{mutationKey:a},request:void 0};return{mutationFn:h=>{const{data:u}=h??{};return KM(u,o)},...s}},X1=e=>bc($M()),JM=()=>"/api/storage/uploads/request-video-url",QM=async(e,a)=>or(JM(),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(e)}),XM=e=>{const a=["requestVideoUploadUrl"],{mutation:s,request:o}={mutation:{mutationKey:a},request:void 0};return{mutationFn:h=>{const{data:u}=h??{};return QM(u,o)},...s}},ZM=e=>bc(XM()),e6=e=>{const a=new URLSearchParams;Object.entries(e||{}).forEach(([o,c])=>{c!==void 0&&a.append(o,c===null?"null":String(c))});const s=a.toString();return s.length>0?`/api/endorsements?${s}`:"/api/endorsements"},t6=async(e,a)=>or(e6(e),{...a,method:"GET"}),n6=e=>["/api/endorsements",...e?[e]:[]],a6=(e,a)=>{const{query:s,request:o}={};return{queryKey:s?.queryKey??n6(e),queryFn:({signal:u})=>t6(e,{signal:u,...o}),...s}};function Z1(e,a){const s=a6(e);return{...ON(s),queryKey:s.queryKey}}const i6=()=>"/api/endorsements",s6=async(e,a)=>or(i6(),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(e)}),o6=e=>{const a=["createEndorsement"],{mutation:s,request:o}={mutation:{mutationKey:a},request:void 0};return{mutationFn:h=>{const{data:u}=h??{};return s6(u,o)},...s}},eS=e=>bc(o6()),r6=()=>"/api/video-submissions",l6=async(e,a)=>or(r6(),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(e)}),c6=e=>{const a=["createVideoSubmission"],{mutation:s,request:o}={mutation:{mutationKey:a},request:void 0};return{mutationFn:h=>{const{data:u}=h??{};return l6(u,o)},...s}},d6=e=>bc(c6()),u6=5*1024*1024;function h6(e){return`/api/storage${e}`}function f6({statementSlug:e}){const{data:a}=Z1({statement:e}),s=eS(),o=X1(),[c,h]=w.useState(""),[u,p]=w.useState(""),[m,g]=w.useState(""),[y,b]=w.useState(null),[v,S]=w.useState(null),[j,N]=w.useState(!1),[C,T]=w.useState(null),[E,R]=w.useState(!1),O=w.useRef(null),G=a??[];function _(W){const X=W.target.files?.[0]??null;if(T(null),!X){H();return}if(!X.type.startsWith("image/")){T("Please choose an image file for the logo.");return}if(X.size>u6){T("Logo must be smaller than 5 MB.");return}b(X),S(URL.createObjectURL(X))}function H(){b(null),v&&URL.revokeObjectURL(v),S(null),O.current&&(O.current.value="")}async function D(W){const{uploadURL:X,objectPath:Z}=await o.mutateAsync({data:{name:W.name,size:W.size,contentType:W.type}});if(!(await fetch(X,{method:"PUT",headers:{"Content-Type":W.type},body:W})).ok)throw new Error("Logo upload failed. Please try again.");return Z}async function J(W){if(W.preventDefault(),T(null),!c.trim()||!u.trim()||!m.trim()){T("Organization name, authorized representative, and email are all required.");return}try{N(!0);let X;y&&(X=await D(y)),await s.mutateAsync({data:{statementSlug:e,organizationName:c.trim(),representativeName:u.trim(),email:m.trim(),...X?{logoObjectPath:X}:{}}}),R(!0),h(""),p(""),g(""),H()}catch(X){T(X instanceof Error?X.message:"Something went wrong. Please try again.")}finally{N(!1)}}return r.jsxs("section",{id:"endorse",className:"mt-16 pt-12 border-t border-zinc-200 scroll-mt-32",children:[r.jsxs("div",{className:"mb-14",children:[r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-2 font-serif-heading",children:"Endorsing Organizations"}),r.jsx("p",{className:"text-zinc-600 mb-8",children:G.length>0?`${G.length} organization${G.length===1?"":"s"} ${G.length===1?"has":"have"} endorsed this statement.`:"Be the first organization to endorse this statement."}),G.length>0?r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:G.map(W=>r.jsxs(pe.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"bg-white border border-zinc-200 rounded-xl p-5 shadow-sm flex items-center gap-4",children:[r.jsx("div",{className:"w-14 h-14 flex-shrink-0 rounded-lg bg-zinc-50 border border-zinc-100 flex items-center justify-center overflow-hidden",children:W.logoObjectPath?r.jsx("img",{src:h6(W.logoObjectPath),alt:`${W.organizationName} logo`,className:"w-full h-full object-contain"}):r.jsx(vs,{className:"w-6 h-6 text-zinc-400"})}),r.jsx("div",{className:"min-w-0",children:r.jsx("p",{className:"font-semibold text-zinc-900 leading-snug",children:W.organizationName})})]},W.id))}):r.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-dashed border-zinc-300 bg-zinc-50 px-6 py-8 text-zinc-500",children:[r.jsx(vs,{className:"w-6 h-6 flex-shrink-0 text-zinc-400"}),r.jsx("p",{className:"text-sm",children:"No organizations have endorsed this statement yet. Use the form below to add yours."})]})]}),r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-2 font-serif-heading",children:"Endorse This Statement"}),r.jsx("p",{className:"text-zinc-600 mb-6",children:"Medical associations, hospitals, universities, and healthcare institutions are invited to add their endorsement. Submissions are reviewed by Doctors Against Genocide before they appear here."}),E?r.jsxs("div",{className:"flex items-start gap-3 rounded-lg bg-primary/10 border border-primary/20 p-6",children:[r.jsx(Ua,{className:"w-6 h-6 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-zinc-900",children:"Thank y
17ou for your endorsement."}),r.jsx("p",{className:"text-zinc-600 text-sm mt-1",children:"Your submission has been received and will appear on this page once our team reviews and approves it."}),r.jsx("button",{type:"button",onClick:()=>R(!1),className:"mt-4 text-sm font-semibold text-primary hover:underline",children:"Submit another endorsement"})]})]}):r.jsxs("form",{onSubmit:J,className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"org-name",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Organization name ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{id:"org-name",type:"text",value:c,onChange:W=>h(W.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-zinc-900 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"e.g. Regional Medical Association"})]}),r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"rep-name",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Authorized representative ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{id:"rep-name",type:"text",value:u,onChange:W=>p(W.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-zinc-900 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"Full name and title of the person endorsing"})]}),r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"rep-email",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Contact email ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{id:"rep-email",type:"email",value:m,onChange:W=>g(W.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-zinc-900 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"[email protected]"}),r.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:"Your email is not publicly displayed. DAG may follow up to confirm your endorsement."})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Organization logo ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(optional)"})]}),v?r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-16 h-16 rounded-lg border border-zinc-200 bg-zinc-50 flex items-center justify-center overflow-hidden",children:r.jsx("img",{src:v,alt:"Logo preview",className:"w-full h-full object-contain"})}),r.jsxs("button",{type:"button",onClick:H,className:"inline-flex items-center gap-1.5 text-sm font-medium text-zinc-500 hover:text-primary transition",children:[r.jsx(oa,{className:"w-4 h-4"})," Remove"]})]}):r.jsxs("label",{htmlFor:"logo-upload",className:"flex items-center gap-3 rounded-lg border-2 border-dashed border-zinc-300 px-4 py-4 cursor-pointer hover:border-primary hover:bg-primary/5 transition",children:[r.jsx(jc,{className:"w-5 h-5 text-zinc-400"}),r.jsx("span",{className:"text-sm text-zinc-500",children:"Click to upload an image (PNG or JPG, up to 5 MB)"})]}),r.jsx("input",{id:"logo-upload",ref:O,type:"file",accept:"image/*",onChange:_,className:"hidden"})]}),C&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium",children:C}),r.jsx("button",{type:"submit",disabled:j,className:"inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 disabled:cursor-not-allowed text-white font-bold px-8 py-3 rounded-lg transition-colors",children:j?r.jsxs(r.Fragment,{children:[r.jsx(bt,{className:"w-4 h-4 animate-spin"})," Submitting..."]}):"Submit Endorsement"})]})]})]})}const m6=512*1024*1024;function p6(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`}function g6(e,a,s){return new Promise((o,c)=>{const h=new XMLHttpRequest;h.open("PUT",e),h.setRequestHeader("Content-Type",a.type),h.upload.onprogress=u=>{u.lengthComputable&&s(Math.round(u.loaded/u.total*100))},h.onload=()=>{h.status>=200&&h.status<300?o():c(new Error("Upload failed. Please try again."))},h.onerror=()=>c(new Error("Upload failed. Please check your connection and try again.")),h.send(a)})}function y6(){const e=ZM(),a=d6(),[s,o]=w.useState(""),[c,h]=w.useState(""),[u,p]=w.useState(null),[m,g]=w.useState(!1),[y,b]=w.useState(!1),[v,S]=w.useState(0),[j,N]=w.useState(null),[C,T]=w.useState(!1),E=w.useRef(null);
17function R(D){if(N(null),!!D){if(!D.type.startsWith("video/")){N("Please choose a video file (MP4, MOV, or similar).");return}if(D.size>m6){N("Video must be smaller than 512 MB. A phone video under 1.5 minutes is usually well below this.");return}p(D)}}function O(D){R(D.target.files?.[0]??null)}function G(D){D.preventDefault(),g(!1),R(D.dataTransfer.files?.[0]??null)}function _(){p(null),E.current&&(E.current.value="")}async function H(D){if(D.preventDefault(),N(null),!s.trim()){N("Please tell us your name.");return}if(!u){N("Please choose a video file to upload.");return}try{b(!0),S(0);const{uploadURL:J,objectPath:W}=await e.mutateAsync({data:{name:u.name,size:u.size,contentType:u.type}});await g6(J,u,S),await a.mutateAsync({data:{name:s.trim(),...c.trim()?{socialHandle:c.trim()}:{},videoObjectPath:W,fileName:u.name,fileSize:u.size,contentType:u.type}}),T(!0),o(""),h(""),_()}catch(J){N(J instanceof Error?J.message:"Something went wrong. Please try again.")}finally{b(!1),S(0)}}return r.jsxs("div",{children:[r.jsxs("div",{className:"mb-12",children:[r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-4 font-serif-heading",children:"Record your video"}),r.jsx("div",{className:"space-y-3",children:[{icon:ZC,text:"Keep it under 1.5 minutes, and record with your phone held upright in portrait mode."},{icon:aT,text:"Wear your scrubs or white coat if you are a healthcare worker."},{icon:$v,text:"Share your commitment to this action, demand the release of Dr. Abu Safiya, and invite others to join."}].map(({icon:D,text:J})=>r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-5 shadow-sm flex items-start gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:r.jsx(D,{className:"w-5 h-5 text-primary"})}),r.jsx("p",{className:"text-zinc-700 leading-relaxed",children:J})]},J))}),r.jsxs("div",{className:"mt-6 bg-white border border-zinc-200 rounded-xl p-6 shadow-sm",children:[r.jsx("p",{className:"text-sm font-bold text-zinc-500 uppercase tracking-wide mb-3",children:"Full script (about 1 minute, adapt freely)"}),r.jsxs("blockquote",{className:"border-l-4 border-primary pl-5 text-zinc-700 leading-relaxed space-y-3",children:[r.jsx("p",{children:'"Hello, my name is [name], and I am a [doctor / nurse / healthcare worker / supporter] from [place].'}),r.jsx("p",{children:"The people of Gaza have endured over 1,000 days of genocide. Healthcare workers have been targeted, killed, tortured, and illegally detained for far too long."}),r.jsx("p",{children:"Dr. Hussam Abu Safiya, pediatrician and director of Kamal Adwan Hospital, has been detained for over 560 days, and his life is under threat. He told his colleagues he did not see himself leaving detention alive. We refuse to let that happen."}),r.jsx("p",{children:"That is why I am joining Doctors Against Genocide on July 15 at noon, my local time, for the Hour of Global Solidarity, a rolling one hour action moving across the world, time zone by time zone."}),r.jsx("p",{children:"I demand the release of Dr. Abu Safiya and all detained healthcare workers."}),r.jsx("p",{children:"Everyone can give one hour. One hour to make our voices louder than repression. One hour to demand an end to genocide. One hour to hold our governments accountable."}),r.jsx("p",{children:'Join me on July 15. Free Dr. Abu Safiya. Free them all."'})]})]})]}),r.jsxs("div",{id:"upload",className:"scroll-mt-32",children:[r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-2 font-serif-heading",children:"Send us your video"}),r.jsx("p",{className:"text-zinc-600 mb-6",children:"We will share your videos on Instagram, X, YouTube, and LinkedIn to grow this movement. We act on July 15 and every day before and after, until every healthcare hostage is free."}),C?r.jsxs("div",{className:"flex items-start gap-3 rounded-lg bg-primary/10 border border-primary/20 p-6",children:[r.jsx(Ua,{className:"w-6 h-6 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-zinc-900",children:"Thank y
17ou for standing with humanity."}),r.jsx("p",{className:"text-zinc-600 text-sm mt-1",children:"Your video has been received. Our team will review it and share it on our channels as the campaign grows."}),r.jsx("button",{type:"button",onClick:()=>T(!1),className:"mt-4 text-sm font-semibold text-primary hover:underline",children:"Submit another video"})]})]}):r.jsxs("form",{onSubmit:H,className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"submitter-name",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Your name ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{id:"submitter-name",type:"text",value:s,onChange:D=>o(D.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-zinc-900 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"Full name"})]}),r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"social-handle",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Social media handle ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(optional)"})]}),r.jsx("input",{id:"social-handle",type:"text",value:c,onChange:D=>h(D.target.value),maxLength:200,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-zinc-900 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"e.g. @yourhandle on Instagram or X"}),r.jsx("p",{className:"text-xs text-zinc-500 mt-1.5",children:"Add your handle if you would like us to tag you or collab when we post your video."})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Your video ",r.jsx("span",{className:"text-primary",children:"*"})]}
17),u?r.jsxs("div",{className:"flex items-center gap-4 rounded-lg border border-zinc-200 bg-zinc-50 px-4 py-3",children:[r.jsx(Vf,{className:"w-6 h-6 text-primary flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm font-semibold text-zinc-900 truncate",children:u.name}),r.jsx("p",{className:"text-xs text-zinc-500",children:p6(u.size)})]}),!y&&r.jsxs("button",{type:"button",onClick:_,className:"inline-flex items-center gap-1.5 text-sm font-medium text-zinc-500 hover:text-primary transition flex-shrink-0",children:[r.jsx(oa,{className:"w-4 h-4"})," Remove"]})]}):r.jsxs("label",{htmlFor:"video-upload",onDragOver:D=>{D.preventDefault(),g(!0)},onDragLeave:()=>g(!1),onDrop:G,className:`flex flex-col items-center justify-center gap-3 rounded-lg border-2 border-dashed px-6 py-10 cursor-pointer transition ${m?"border-primary bg-primary/5":"border-zinc-300 hover:border-primary hover:bg-primary/5"}`,children:[r.jsx(jc,{className:"w-8 h-8 text-zinc-400"}),r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"text-sm font-semibold text-zinc-700",children:"Drop your video here, or tap to choose a file"}),r.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:"MP4, MOV, or any phone video, up to 512 MB"})]})]}),r.jsx("input",{id:"video-upload",ref:E,type:"file",accept:"video/*",onChange:O,className:"hidden"})]}),y&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between text-xs text-zinc-500 mb-1.5",children:[r.jsx("span",{children:v<100?"Uploading your video...":"Finishing up..."}),r.jsxs("span",{children:[v,"%"]})]}),r.jsx("div",{className:"h-2 rounded-full bg-zinc-200 overflow-hidden",children:r.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-300",style:{width:`${v}%`}})})]}),j&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium",children:j}),r.jsx("button",{type:"submit",disabled:y,className:"inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 disabled:cursor-not-allowed text-white font-bold px-8 py-3 rounded-lg transition-colors",children:y?r.jsxs(r.Fragment,{children:[r.jsx(bt,{className:"w-4 h-4 animate-spin"})," Uploading..."]}):"Submit Your Video"})]})]}),r.jsxs("div",{className:"mt-6 flex items-start gap-3 text-sm text-zinc-600",children:[r.jsx(qh,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("p",{children:["Trouble uploading? You can also email your video to"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary font-semibold hover:underline",children:"[email protected]"}),". If the file is too large to attach, send us a link."]})]})]})]})}const b6={"education/medical-genocide":{title:"Medical Definition of Genocide",subtitle:"A public health and medical framework for recognizing genocide as a societal disease — enabling early detection, prevention, and accountability.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Genocide as a Public Health Crisis",body:"Doctors Against Genocide proposes a medical and public health framework for understanding genocide — one that treats mass atrocities not merely as legal or political events, but as a societal disease requiring clinical recognition, early intervention, and systemic prevention. Just as medicine addresses disease before it becomes fatal, the global medical community must learn to identify and respond to genocide before irreversible harm is done."},{heading:"The Medical Definition",body:"Under this framework, genocide is defined as the systematic and intentional destruction of a group of people through acts that cause severe physical, psychological, or social harm — including mass killing, starvation, forced displacement, destruction of health infrastructure, and denial of medical care — with the intent to eliminate the group in whole or in part. This definition expands on the 1948 Genocide Convention to incorporate medical and humanitarian evidence as legally actionable proof of genocidal intent."},{heading:"A Dual-Intervention Paradigm",body:"The medical model of genocide prevention mirrors the dual approach used in domestic violence intervention — it must address both the victimized group and the perpetrating entity. Intervention requires:",type:"bullets",items:["Forcibly stopping the perpetrator from continuing acts of destruction","Ensuring protection, rehabilitation, and justice for the targeted group","Mobilizing international medical, logistical, and protective resources","Holding governments and entities accountable for acts contributing to genocide","Providing life-saving care and long-term recovery support to survivors"]},{heading:"The Need for an Independent International Medical Body",body:"DAG calls for the establishment of an independent international medical body with legal and executive authority — free from political interference and operating solely on humanitarian and medical principles. This body would be empowered to:",type:"bullets",items:["Monitor populations and use data-driven methods to i
17dentify early signs of genocide","Declare an impending or ongoing genocide based on medical and humanitarian evidence","Mobilize international resources and deploy protective interventions","Hold governments and non-state actors accountable for acts that facilitate genocide","Develop and implement prevention protocols to stop escalation before mass casualties occur"]},{heading:"Training Healthcare Workers for Early Detection",body:"Healthcare workers on the ground are often the first to witness evidence of mass atrocities — yet most lack training to recognize or report what they are seeing. DAG advocates for standardized medical education that democratizes knowledge of genocide recognition, disentangles trauma care from militaristic frameworks, and empowers doctors to independently and ethically raise credible alerts. Reducing genocide denial within healthcare institutions begins with education.",type:"callout"},{heading:"International Law Reform",body:"Current international laws, often bound by strict definitions of genocidal intent, must evolve to reflect the medical definition. Legal frameworks should align with public health principles — prioritizing rapid response, risk reduction, and proactive accountability rather than waiting for mass death to be proven after the fact. DAG is collaborating with experts in international law, genocide studies, medical ethics, education, and UN representatives to advance this definition and ensure its effectiveness."}],cta:{text:"Healthcare Workers as Human Rights Defenders",href:"/education/genocide-in-gaza"}},"education/refeeding-syndrome":{title:"Refeeding Syndrome: A Crisis in Gaza",subtitle:"A clinical guide for healthcare workers on one of the deadliest consequences of deliberate starvation. Prepared by Nashat Imran, M.D., FACP, FASN.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Download the Full Clinical Guide",body:"The complete Refeeding Syndrome clinical guide — prepared by Dr. Nashat Imran, M.D., FACP, FASN — is available as a free PDF download in English and Arabic.",type:"downloads",items:["Refeeding Syndrome (English PDF)|/dag-refeeding-syndrome-en.pdf","متلازمة إعادة التغذية (Arabic PDF)|/dag-refeeding-syndrome-ar.pdf"]},{heading:"What Is Refeeding Syndrome?",body:"Refeeding syndrome (RFS) is a potentially fatal complication that occurs when nutrition is reintroduced to severely malnourished or starved individuals too quickly. It is characterized by dangerous electrolyte shifts — particularly low phosphate, potassium, and magnesium — that can lead to cardiac arrest, respiratory failure, seizures, and death."},{heading:"Why It Is Critical in Gaza Right Now",body:"After months of deliberate food blockade, an entire population of 2.3 million people in Gaza is experiencing severe acute malnutrition. When humanitarian aid finally arr
17ives — or if it does — the instinct to feed people quickly may inadvertently trigger mass refeeding syndrome deaths. Healthcare workers distributing food aid must understand this risk.",type:"callout"},{heading:"Clinical Signs to Watch For",body:"Refeeding syndrome typically presents within 4 days of refeeding. Key warning signs include:",type:"bullets",items:["Muscle weakness, fatigue, and flaccid paralysis (hypophosphatemia)","Cardiac arrhythmias including ventricular fibrillation","Respiratory muscle failure requiring ventilation","Seizures and altered mental status","Edema and fluid overload","Hemolytic anemia"]},{heading:"Clinical Protocol",body:"The NICE (National Institute for Health and Care Excellence) guidelines recommend: identify high-risk patients (BMI < 16, minimal intake for > 5 days, significant weight loss); start feeding at no more than 10 kcal/kg/day; supplement phosphate, potassium, and magnesium prophylactically before and during refeeding; monitor electrolytes daily; and increase caloric intake slowly over 4–7 days only if labs remain stable."},{heading:"Special Considerations for Children",body:"Children are disproportionately vulnerable. Malnourished infants and children under 5 face higher mortality from RFS. WHO therapeutic feeding protocols (F-75, F-100 transition) must be strictly followed. Outpatient therapeutic feeding programs (OTP) should screen for electrolyte deficits before initiating. In field conditions without lab access, empirical phosphate supplementation is recommended."},{heading:"For Non-Clinical Responders",body:"If you are distributing food aid and cannot access clinical teams: do not give large amounts of high-calorie food to visibly emaciated individuals at once. Small, frequent, low-calorie meals are far safer. Oral rehydration salts and electrolyte supplements should accompany any food distribution to starving populations."}],cta:{text:"Read: Starving a Generation — Child Malnutrition in Gaza",href:"/education/starving-a-generation"}},"education/un-health-report":{title:"Healthcare Workers as Human Rights Defenders",subtitle:"A Medical Perspective on Israel's Genocide Enablement Apparatus in Gaza and Abroad — Submitted to the UN Special Rapporteur on the Right to Health, January 10, 2025.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Executive Summary",body:"This report, submitted to the UN Special Rapporteur on the Right to Health on 10 January 2025, outlines a two-pronged framework of Israel's Genocide Enablement Apparatus, which has accelerated the annihilation of Palestinian people since October 2023 through the Israeli-led destruction of the healthcare sector in Gaza, and the simultaneous repression of healthcare workers implemented by American, British, and Canadian medical and cultural institutions. The report also establishes a medical definition of genocide to support healthcare workers as key frontline protectors of the right to health and as meaningful actors in the early prevention of genocide.",type:"callout"},{heading:"Scope & Objectives",body:"The report responds to the Special Rapporteur's call to assess the rights of healthcare workers in conflict zones and their role in safeguarding the right to health. It:",type:"bullets",items:["Outlines Israel's Genocide Enablement Apparatus — the systematic targeting of Palestinian healthcare in Gaza and the suppression of healthcare workers by Western medical institutions","Describes the destruction of Gaza's health sector including killing, detention, and torture of Palestinian healthcare workers and restrictions on humanitarian access","Documents silencing, intimidation, and reprisals against healthcare workers in the US, UK, and Canada who advocated for Palestinian rights","Proposes a medical definition of genocide built from the lessons of the ongoing genocide in Gaza, recognizing it as a societal disease and public health threat"]},{heading:"The Genocide Enablement Apparatus in Gaza",body:"Drawing on hundreds of documented testimonials from Palestinian and international healthcare workers, the report finds that Israel's deliberate targeting of Palestinian healthcare infrastru
17cture and personnel since October 2023 has accelerated the annihilation of the Palestinian people. Key documented elements include:",type:"bullets",items:["Systematic destruction of hospitals, clinics, ambulances, and medical supply chains","Killing, arrest, detention, and torture of Palestinian physicians, nurses, and paramedics","Closure of the Rafah crossing, severely restricting medicines, blood supplies, and humanitarian aid","Forced evacuation of hospitals, leaving critically ill patients without care","Mass displacement creating unsanitary conditions and collapse of preventive health infrastructure","Trauma and severe psychological strain on surviving Palestinian healthcare workers"]},{heading:"The Apparatus in Western Medical Institutions",body:"Simultaneously, Western medical and cultural institutions in the US, UK, and Canada have engaged in widespread repression of healthcare workers who advocated for Palestinian rights. Healthcare workers who documented or spoke out against Israel's actions faced employment termination, harassment, censorship, and professional blacklisting. This suppression normalizes the targeting of healthcare workers and facilities, setting a dangerous global precedent."},{heading:"Medical Definition of Genocide",body:"The report establishes genocide as a societal disease with identifiable symptoms — including mass killings, systemic deprivation of essential resources, and the destruction of healthcare systems. A medical definition rooted in observable impacts on health and life empowers healthcare workers to act without waiting for political processes to establish legal intent. The report identifies healthcare workers as first responders to genocide, with a unique professional, legal, and moral obligation to name and respond to atrocities they witness.",type:"callout"},{heading:"Recommendations",body:"The report makes three core recommendations to the international community:",type:"bullets",items:["International adoption of a medical definition of genocide to prioritize prevention, risk reduction, and accountability","Establishment of an independent international medical body with authority to monitor early warning signs, mobilize resources, and hold perpetrators accountable for targeting healthcare systems","Amendment of International Humanitarian Law to define the repression of healthcare workers speaking out against genocide as a form of genocide incitement — a violation of the Genocide Convention (1948)"]},{heading:"Conclusion",body:"The report underscores the urgent need to protect healthcare systems and workers during conflict and amid genocidal violence. By adopting the frameworks outlined in this report and establishing an independent international medical body with executive powers, the global medical community can transform its response to atrocities against humanity — ensuring that mass violence and systemic racialized oppression are addressed with the urgency, precision, and authority they demand, safeguarding human life and dignity above all else."}],cta:{text:"Download the Full Report (PDF)",href:"/dag-healthcare-workers-un-report.pdf"}},"education/palestinian-agriculture-report":{title:"Israeli Attacks Against Palestinian Agriculture and Farmers",subtitle:"A report on health, food security, livelihoods and legal context in the West Bank, covering 2023 through mid-2026.",category:"Education",date:"August 2026",heroColor:"bg-zinc-900",heroImage:"/palestinian-agriculture-report-cover.png?v=20260823-cover-photo",sections:[{heading:"What the report shows",type:"bullets",items:["Approximately USD 257.9 million in documented direct agricultural losses in the West Bank, including East Jerusalem, from 1 January 2023 to 28 June 2026, according to Ministry of Agriculture inventories cited in the report.","398,168 trees recorded as cut, burned, uprooted or bulldozed across the source series, alongside reported damage to livestock, water systems, irrigation, beehives and agricultural infrastructure.","How land loss affects food security, water access, livelihoods, displacement and access to health care.","The 19 July 2024 ICJ Advisory Opinion, UN General Assembly Resolution ES-10/24, international humanitarian law protections, and the report’s analysis of how those sources apply."]}],cta:{text:"Download Full Report",href:"/palestinian-agriculture-report-2026.pdf?v=20260823-source-media-and-tables-v8"},viewerImages:Array.from({length:59},(e,a)=>`/palestinian-agriculture-report-pages/page-${String(a+1).padStart(2,"0")}.png?v=20260823-source-media-and-tables-v8`),viewerLinkMap:"/palestinian-agriculture-report-pages/links.json?v=20260823-source-media-and-tables-v8"},"education/ahmad-elfarra-presentation":{title:"1,055 Days of Bombardment and Killing: When Healthcare Becomes a Casualty",subtitle:"A presentation by Dr. Ahmad Al-Farra, Head of Pediatric and Maternity Building at Nasser Medical Complex.",category:"Education",date:"August 28, 2026",heroColor:"bg-zinc-900",heroImage:"/ahmad-elfarra-presentation-cover.jpg",sections:[{heading:"About the presentation",body:"The complete 63-slide presentation documents the human and medical toll of the war on Gaza, with particular attention to healthcare, children, women, starvation, and the long-term consequences of violence."},{heading:"Presentation files",type:"downloads",items:["View Full Presentation (PDF)|/ahmad-elfarra-1055-days.pdf?v=20260903-9","Download PowerPoint|/ahmad-elfarra-1055-days.pptx?v=20260903-9"]}],cta:{text:"View the Full Presentation (PDF)",href:"/ahmad-elfarra-1055-days.pdf?v=20260903-9"}},"education/sick-from-genocide":{title:"Sick From Genocide: FAQs",subtitle:"Answers for patients and healthcare providers on moral injury, sick leave, documentation, and mental health support.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"What does being 'Sick from Genocide' mean?",body:`Being "Sick from Genocide" reflects the immense moral injury, emotional trauma, and grief experienced by healthcare workers as we witness genocide and other human rights violations against patients and colleagues, such as those in Gaza. This is beyond upsetting — it is emotionally traumatizing and has significant psychological effects, including feelings of helplessness and outrage.
18
19These emotions are compounded by the knowledge that US tax dollars are supporting these atrocities. The only way to truly counteract this sickness is to end the genocide and implement an arms embargo. The moral injury and outrage we feel are immense. Healing from this complicated grief will take different forms depending on the person and the context. One way to combat the sickness of feeling helpless 
19is to take action, rather than merely resting at home. Being with others, engaging in advocacy, and staying active can be incredibly healing. These actions also send a powerful message that we will not remain silent or passive.`},{heading:"FAQs for Patients"},{heading:"How much sick leave can I take?",body:"1–14 days can be covered by a Doctor's Note. This may be paid or unpaid depending on your employer's policy. Many states have mandated minimum paid sick leave."},{heading:"What if my clinic/hospital requires a Doctor's Note for 1–2 days of Sick Leave?",body:"Consider what symptoms you are suffering from most and contact your specialist or primary care provider (PCP). If you need help finding a licensed clinician in your state to write a note, contact DAG at [email protected]."},{heading:"What if I need more than 1–2 days of Sick Leave?",body:"Contact your PCP, Employee Assistance Program (EAP), or other HR programs at your workplace."},{heading:"What should I do during Sick Leave?",body:'This depends on your needs. Some may find rest and self-care helpful, while others may benefit from connecting with others through healing circles, vigils, or prayer. Activities such as attending collective grieving events can provide emotional support. Since genocide is the cause of your sickness, participating in activities aimed at ending genocide — such as advocacy, awareness campaigns, or community action — can be the most healing and helpful. Remember, recovery is personal, and there is no "right" way to process your emotions.'},{heading:"Sample Scripts for Asking for Sick From Genocide Leave"},{heading:"Option 1",body:"I hope this message finds you well. I am feeling unwell today due to the emotional and physical toll from witnessing the ongoing genocide in Gaza including the targeting of fellow healthcare workers, and the displacement of patients. As a result, I am unable to work and kindly request a day off to recover. Thank you for your understanding.",type:"quote"},{heading:"Option 2",body:"I need to take a mental health day off. As a nurse and a human being, it's been overwhelming witnessing the ongoing genocide in Gaza and knowing that my tax dollars are funding such atrocities. I need this time to process and recharge so I can continue to care for others effectively. Thank you for understanding.",type:"quote"},{heading:"Option 3 (for trainees)",body:"Hi Chiefs, it's come to a point where I need to request medical sick leave. My people in Gaza continue to face genocide and I want to be the best I can for my patients and the program. Would you mind initiating a meeting with Dr [PD] and anyone else that needs to be there? Thank you for understanding.",type:"quote"},{heading:"FAQs for Doctors"},{heading:"What if I'm being asked to write a Sick Leave note for a patient?",body:`Write a brief dated letter on letterhead: "To Whom It May Concern: This letter confirms Mx. [Patient's Name] (DOB [Date of Birth]) cannot attend w
19ork/school on [Date] due to illness. Sincerely, [Your Name]."
20
21If you are interested in writing sick leave notes for people in your state, please contact DAG at [email protected].
22
23Employers are legally prohibited under the Americans with Disabilities Act (ADA) from asking about the nature of the illness. In practice, they almost never contact the physician for a 1–2 day sick leave note.`},{heading:"Should I include the diagnosis on a Sick Leave note?",body:"No. Including a diagnosis could violate HIPAA regulations. Employers are prohibited under the ADA from asking about the nature of a disability unless it affects the patient's ability to work."},{heading:"Can I provide additional documentation if requested by an employer?",body:"Yes, but only within the boundaries of HIPAA and ADA compliance. Provide only the information specifically requested by the employer, ensuring patient confidentiality is maintained."},{heading:"Can FMLA leave be used?",body:"Clinical judgment and an established doctor-patient relationship are needed when authorizing this. This is unlikely to be sought outside of those who have lost direct family members and may be suffering from more severe mental health consequences of bereavement and traumatic stress or caring for a family member who is suffering. The FMLA form will also ask about the date of return to work and recommendations for medical follow-up. More info: https://www.dol.gov/agencies/whd/fmla/mental-health"},{heading:"Key Points for Clinicians Writing Sick Leave Notes",body:"Know your clinic's policy regarding the establishment of a doctor-patient relationship for sick leave notes. Communicate clearly to potential clients whether you can provide an ongoing doctor-patient relationship or if your involvement is limited to writing the note.",type:"bullets",items:["Licensed healthcare practitioners such as MDs and DOs can write these notes; notes by practitioners with other licenses may be accepted depending on the employer","Some employers may accept notes from licensed therapists for mental health issues, but physician notes are generally required","If a patient's needs exceed your capacity to provide care, offer referrals to local mental health resources or the National Suicide and Crisis Lifeline (988)","Be aware of the added emotional burden on both the clinician and patients due to the traumatic stress of witnessing or being affected by genocide-related events"]},{heading:"ICD Codes to Consider",body:"Use your clinical judgment and discuss with the patient, particularly if they have a preexisting condition exacerbated by trauma.",type:"bullets",items:["F43.20 — Adjustment Disorder","Z73.0 — Burnout","Z65.4 — Victim of or exposure to crime, terrorism, or torture","Y36.90 — War operations","F43.9 — Trauma and Stressor-related Disorder","F43.0 — Acute Stress Disorder"]},{heading:"Assessing the Mental Health Impact of Genocide",body:`Witnessing genocide can trigger flare-ups of various medical conditions, especially in patients with comorbid PTSD. Physical symptoms may include insomnia, headaches, nausea, muscle tension, teeth grinding, exacerbations of chronic pain (e.g., back pain), fatigue, flare-ups of autoimmune conditions, GERD, asthma, depression, anxiety, diabetes, heart disease, or high blood pressure.
24
25Take a detailed history and physical with a focus on mental health symptoms, including:`,type:"bullets",items:["Anxiety, anger, depression","Lack of sleep, fatigue, fear","Panic attacks, flashbacks, night terrors","Feeling as if everything around you is collapsing","Obsession with the news; worry that relatives and friends will be killed","Survivor's guilt; lack of interest in everyday activities","Additional symptoms documented in Palestinian populations (Afana et al. 2018): hardship and suffering (mahana), low confidence and feeling astray (tayah), nervousness (asabiah), psychological pressure (daget nafsi), fear syndrome (khoufa), numbness or freezing of feelings (tabalud fe el masha'r)"]},{heading:"Resources for Physicians Experiencing Moral Injury",body:"Support networks, healing circles, and advocacy groups like DAG can offer resources to address moral injury and provide mental health support. Engage with these organizations to process and channel your emotions constructively. Channeling your energy into activities aimed at ending the genocide and supporting the victims can be most therapeutic.",type:"callout"},{heading:"If You Feel Morally Called to Be at Work",body:`Consider using the opportunity to gently raise awareness about the situation in Gaza with colleagues, for example:
26
27"I had a great holiday too, but it was devastating to hear that the last neonatal unit in North Gaza, Kamal Adwan Hospital, was bombed shortly after Christmas, and its operating rooms set on fire. The Israeli military claimed it was a Hamas stronghold, but they made a similar claim about Al-Shifa Hospital, which an independent Washington Post investigation disproved. The situation is heartbreaking. Many doctors with ties to the area are staying home today to grieve and recover. I almost stayed home too, but I wanted to be here to care for this patient. What do you think?"
28
29This approach invites conversation and reflection while fostering empathy, encouraging awareness, and maintaining professionalism in the workplace.`},{heading:"Contact",body:"For additional questions: [email protected] or [email protected]"}]},"education/genocide-in-gaza":{title:"Genocide in Gaza: A Medical and Legal Analysis",subtitle:"DAG's documentation of the systematic destruction of Gaza's healthcare infrastru
29cture and the legal framework for accountability.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"The Scale of Destruction",body:"Since October 7, 2023, Gaza's healthcare system has been methodically dismantled. As of 2025: over 34 hospitals have been raided, damaged, or destroyed; more than 700 healthcare workers have been killed — the highest healthcare worker death toll in any modern conflict; 11,000+ patients requiring specialized care outside Gaza have been denied exit; and the entire pharmaceutical supply chain has been blockaded."},{heading:"Documented Attacks on Medical Facilities",body:"The following represent a partial list of documented attacks on healthcare infrastructure:",type:"bullets",items:["Al-Shifa Hospital — raided twice; reduced to rubble; hundreds of patients and staff killed","Kamal Adwan Hospital — repeatedly shelled; director Dr. Hussam Abu Safiya arrested and detained","Al-Awda Hospital — surrounded and raided; staff arrested, patients left without care","Nasser Medical Complex — evacuated under fire; patients unable to move left behind","European Gaza Hospital — shelled while treating patients","Indonesian Hospital — sustained repeated airstrikes"]},{heading:"The Legal Case for Genocide",body:"South Africa's case before the International Court of Justice (ICJ), filed in December 2023, presented evidence of genocidal intent. In January 2024, the ICJ ordered provisional measures, finding it 'plausible' that Israel's actions constitute genocide. The court found sufficient evidence of a pattern of conduct consistent with the Genocide Convention's definition, including dehumanizing statements by officials, destruction of civilian infrastructure, and deliberately imposed conditions calculated to bring about physical destruction."},{heading:"What the Medical Evidence Shows",body:"Medical evidence goes beyond casualty counts. It documents:",type:"bullets",items:["Mass starvation as a weapon of war — over 90% of Gaza's population faces acute food insecurity (IPC Phase 3+)","Catastrophic rates of child malnutrition — over 95% of children under 2 in northern Gaza experience severe acute malnutrition","Infectious disease outbreaks from destroyed sanitation and water systems — cholera, hepatitis A, scabies","Psychological devastation — an estimated 1 million people experiencing trauma disorders","No functioning maternity wards in northern Gaza as of 2024 — pregnant women delivering without anesthesia or sterile supplies"]},{heading:"DAG's Position",body:"Doctors Against Genocide concludes, based on available medical and legal evidence, that the conditions imposed on the civilian population of Gaza meet the legal and moral threshold for genocide. We call on all medical associations, governments, and international bodies to name this genocide, pursue accountability, and immediately restore humanitarian access.",type:"callout"}],cta:{text:"Take Action: Sign the End Genocide Prescription",href:"/actions/end-genocide-prescription"}},"education/starving-a-generation":{title:"Starving a Generation: Israel's Famine Campaign Targeting Palestinian Children in Gaza",subtitle:"Defense for Children International – Palestine and Doctors Against Genocide joint report. June 24, 2025.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Read & Download the Full Report",body:"The complete report — including 33 documented child cases, legal analysis, and DAG's medical section on the developmental impacts of starvation — is available as a free PDF.",type:"downloads",items:["Download Full Report (PDF)|/dag-starving-a-generation.pdf"]},{heading:"Introduction",body:"Palestinian children in Gaza are starving. As of June 2025, the daily intake of food in Gaza has fallen below a survivable level. At least 58 Palestinian children have died of starvation since the beginning of the most recent blockade on March 2, 2025. This number is a colossal undercount — every child in Gaza is suffering from malnutrition and dehydration as Israel continues to block safe and abundant access to humanitarian aid. A child does not die of starvation by accident. It is one of the most preventable deaths on the planet.",type:"callout"},{heading:"Documented Intent",body:`Israeli authorities have deliberately weaponized access to food and water. On October 9, 2023, then-Defense Minister Yoav Gallant ordered a complete siege: "There will be no electricity, no food, no fuel, everything is closed." Israel's Minister of National Security stated that "not an ounce of humanitarian aid" should enter Gaza. For the 19 months that followed, Israeli decision makers ensured that Palestinians' access to food and potable water was withheld — through blocking aid convoys, destroying bakeries and flour mills, closing border crossings, and demolishing agricultural land.`},{heading:"Methodology",body:"This report is based on 33 cases collected by DCIP's field researchers in Gaza between October 7, 2023 and May 21, 2025. Nine of these children died — ranging from one week to 10 years old. Of the remaining 24 cases, 14 children are under one year of age, five are toddlers, and five are school-age. Five of the children have chronic diseases. DCIP researchers collected affidavits from child victims, parents, guardians, and eyewitnesses in accordance with UN standards, reviewing medical reports and interviewing doctors and medical staff where possible."},{heading:"Palestinian Child Fatalities from Starvation",body:`The first starvation death documented by DCIP field researchers was four-year-old Musab Salem Abu Asr, who died at Kamal Adwan Hospital on February 11, 2024. His mother said, "Because of the famine, Musab became a skeleton." On the morning of this report's publication, tw
29o-year-old Hasan Mahmoud Yousef Barbakh died of starvation — one day before his third birthday. "There is a complete lack of baby formula, clean drinking water, therapeutic nutrients, and hospitals capable of treating a malnourished child," his mother told DCIP.`},{heading:"Legal Analysis",body:"The deliberate blocking of food convoys, destruction of agricultural land, and closure of crossings to humanitarian shipments constitute the use of starvation as a weapon of war — prohibited by Article 54 of Additional Protocol I to the Geneva Conventions and explicitly named as a war crime under Article 8 of the Rome Statute. Using UN Special Rapporteur Michael Fakhri's definition of famine, this report asserts that Israeli forces and officials have carried out a starvation campaign in Gaza by design, specifically targeting an entire generation of Palestinian children with the intent to complete a campaign of genocide.",type:"callout"},{heading:"Medical & Developmental Impacts (DAG Medical Section)",body:"The Doctors Against Genocide medical team contributed a dedicated section on the medical, developmental, and psychological impacts of starvation on children. Severe acute malnutrition causes irreversible harm:",type:"bullets",items:["Permanent stunting of brain development in children under 2 — with lifelong cognitive deficits","Immune system collapse — children die of infections that would be minor in healthy children","Muscle wasting affecting the heart muscle (kwashiorkor, marasmus)","Blindness and corneal damage from vitamin A deficiency","Elevated risk of refeeding syndrome when food is reintroduced too quickly","Severe psychological trauma, PTSD, and developmental regression in surviving children","Intergenerational impact: children of starvation survivors face elevated rates of metabolic disease"]},{heading:"Conclusions & Demands",body:"This report calls on world leaders to take every action necessary to save Palestinian children's lives. Key demands include: immediate and unconditional lifting of Israel's blockade on Gaza; unrestricted humanitarian access for food, water, medicine, and medical personnel; international accountability for those responsible for the starvation campaign; and sustained therapeutic nutrition programs, including refeeding syndrome prevention protocols, funded at scale."}],cta:{text:"Support the Bread Not Bombs Campaign",href:"/actions/bread-not-bombs"}},"education/gaza-fact-sheet":{title:"Gaza Fact Sheet",subtitle:"Verified facts and figures for clinicians, advocates, and policymakers — updated July 2025.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Congressional Policy Recommendations",type:"bullets",body:"DAG urges U.S. legislators to take immediate action:",items:["Support H.Res. 473 — call for immediate, unrestricted humanitarian aid to Gaza and restoration of essential services.","Pass H.R. 3565 (Block the Bombs Act) — suspend arms transfers to Israel until verifiable compliance with international law is demonstrated.","Enforce Leahy Laws — prohibit U.S. assistance to Israeli military units credibly accused of gross human rights violations against hospitals, schools, and civilians.","Investigate U.S. nationals and contractors under the Genocide Accountability Act (18 U.S.C. § 1091) for complicity in operating the Gaza Humanitarian Foundation (GHF).","Sanction perpetrators through the Global Magnitsky Act — travel bans and asset freezes on those responsible for serious human rights abuses in Gaza.","Enforce the Arms Export Control Act and Foreign Assistance Act §502B — require State Department human rights reviews before future arms sales.","End U.S. obstruction of international justice — cease threatening, defunding, or sanctioning the ICC or ICJ.","Cut GHF funding; restore support to independent humanitarian agencies (UNRWA, WHO, UNICEF, MSF) and fund infrastructure rebuilding through civil society."]},{heading:"1. Attacks on Healthcare (as of July 2025)",type:"bullets",body:"",items:["1,580+ healthcare workers killed, with 697+ verified attacks on facilities (WHO).","Only 18 of Gaza's 36 hospitals remain partially functional: 12 with limited services, 7 emergency-only. 17 are non-operational.","Services including dialysis and neonatal care have fully collapsed.","Ambulances and MSF convoys were targeted; IDF acknowledged firing on rescue teams.","WHO calls this conflict the deadliest for healthcare workers in recent history."]},{heading:"2. Attacks on Women & Reproductive Health (as of March–June 2025)",type:"bullets",body:"",items:["By March 2025, only 5 maternity hospitals were still operating.","1 in 3 pregnancies is classified as high-risk; premature deliveries are rising.","Gaza's IVF center was destroyed; 4,000 embryos lost — a direct blow to reproductive continuity. The UN finds this amounts to genocidal acts under the Rome Statute and Genocide Convention.","Widespread shortages of contraception, hygiene products, and postnatal care.","UN and OHCHR documented sexual violence, forced nudity, and abuse during detentions.","Women are delivering without pain relief, electricity, or trained staff — many births occurring in tents or rubble."]},{heading:"3. Children: Casualties, Amputations & Orphans",type:"bullets",body:"Gaza is the deadliest place on earth to be a child (Save the Children).",items:["17,000+ children killed (≈27 per day, or one classroom of children per day) by July 9, 2025 — up from 15,000 by March 2025 (UNICEF).","34,000+ children reportedly injured; nearly one million children repeatedly displaced (UNICEF).","3,000–4,500 new child amputations recorded since the war began — the highest per-capita rate of child amputees in the world.","Save the Children reports peak rates of 10+ child amputations per day, with many children facing permanent disability due to lack of sanitation and medical equipment.","As of May 2025, only 9 prosthetics and orthotics technicians remain in all of Gaza, while 6,000 prosthetics are needed.","15,000–19,000 new orphans (both parents dead) per the International Rescue Committee. A new acronym — WCNSF (Wounded Child with No Surviving Family) — was created by Gaza medical staff to track these children."]},{heading:"4. Malnutrition & Famine Crisis",type:"bullets",body:"",items:["All of Gaza is classified as Emergency/IPC Phase 4 
29(May–September 2025): 1 million people in emergency food insecurity (IPC Phase 4); 470,000 in catastrophic food insecurity (IPC Phase 5).","UNICEF reports an average of 112 children per day requiring admission for acute malnutrition.","The number of children with severe acute malnutrition has surged 146% since February 2025; 71,000 children at risk, with 14,100 expected severe cases.","In June 2025, more than 5,800 children were diagnosed with malnutrition, including 1,000+ with severe acute malnutrition — a rise for the fourth consecutive month.","Nine out of ten children under 5 in Gaza are suffering from one or more infectious diseases."]},{heading:"5. Displacement & Infrastructure Collapse (as of July 2025)",type:"bullets",body:"",items:["Nearly 1.9 million people (≈90% of Gaza) have been displaced at least once; most have been displaced multiple times.","86% of the Gaza Strip is within Israeli-militarized zones or under displacement orders as of July 9, 2025.","Only 50% (18 of 36) of hospitals are partially functional.","92% (436,000) of housing units have been destroyed or damaged.","89% of water and sanitation units have been destroyed or damaged.","Less than 5% of cropland remains available for cultivation; 72% of the fishing fleet destroyed.","Families survive in makeshift tents, schools, and UNRWA shelters — often with less than 50 sq ft per person, far below humanitarian minimums."]},{heading:"6. Education System Collapse",type:"bullets",body:"",items:["2,308+ educational facilities — kindergartens through universities — have been destroyed; 60+ university buildings destroyed.","88.8% of schools will require full reconstruction or major rehabilitation.","16,019+ students and 703 educational staff killed; 23,913+ students and 3,015 teachers injured.","More than 400 schools have received direct hits as of May 2025; 95% of UNRWA schools serving as shelters were hit while occupied by displaced civilians.","UN experts classify this as 'scholasticide' — the systemic obliteration of education through destruction, detention, and killing of teachers, students, and staff."]},{heading:"7. Cultural & Religious Erasure (as of June 2025)",type:"bullets",body:"",items:["UNESCO has verified damage to 110 sites since October 7, 2023: 13 religious sites, 77 historical/artistic buildings, 3 museums/archives, 9 monuments, 7 archaeological sites.","More than half of all religious and cultural sites in Gaza have been damaged by Israeli attacks.","Israeli forces attacked religious sites serving as places of refuge, killing hundreds of civilians including women and children.","A UN Commission concluded these acts were deliberate and that Israeli forces should have planned operations to ensure no harm to known cultural sites.","UN Human Rights Council reports a systematic pattern of erasure of Palestinian history and identity — violations of the Hague Convention triggering calls for cultural genocide accountability."]},{heading:"8. Weaponization of Aid: The Gaza Humanitarian Foundation (GHF)",type:"callout",body:"Israel has imposed a near-complete blockade on Gaza since March 2, 2025. The GHF — a proxy entity operating under close coordination with the Israeli military and U.S. private military contractors — replaced 400 aid distribution points with just 4 militarized sites in Israeli-controlled zones. Since its implementation on May 28, 2025, over 500 Palestinians have been killed and nearly 4,000 wounded while trying to access food from GHF sites."},{heading:"",type:"bullets",body:"",items:["Haaretz reported IDF soldiers were ordered to shoot at unarmed crowds waiting for aid — even when they posed no threat — using machine guns, grenades, and mortars in an operation soldiers called 'Operation Salted Fish.'","Two anonymous U.S. contractors for UG Solutions told the Associated Press that 'bullets, stun grenades and pepper spray were used at nearly every distribution, even if there was no threat.'","The World Food Program's executive director Cindy McCain has repeatedly stated there is no evidence of Hamas looting or diversion of supplies — refuting the GHF's stated justification.","The Center for Constitutional Rights and 170+ NGOs have warned GHF and partners — including Boston Consulting Group (BCG) — of legal liability for complicity in collective punishment and starvation under the Geneva Conventions, Rome Statute, and Genocide Convention.","On June 26, 2025, the U.S. State Department approved $30 million in funding for the GHF, making U.S. taxpayers directly complicit in these deaths."]},{heading:"Sources",body:"WHO, UNICEF, UN OCHA (Humanitarian Situation Updates #286, #297, #304; Reported Impact Snapshot, July 9 2025), IPC Global Initiative (June 2025 Special Brief), Save the Children, UNRWA, UNESCO, OHCHR, UN Human Rights Council, International Rescue Committee, Haaretz, AP News, BBC, Reuters, Center for Constitutional Rights. Full citations available in the downloadable PDF."}],cta:{text:"Download the Full Gaza Fact Sheet (PDF)",href:"/dag-gaza-fact-sheet-july-2025.pdf"}}
29,"actions/free-gaza-doctors":{title:"Free Gaza Doctors",subtitle:"Demanding the immediate release of Dr. Hussam Abu Safiya and all detained Palestinian healthcare workers.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"Dr. Hussam Abu Safiya",body:"Dr. Hussam Abu Safiya is the director of Kamal Adwan Hospital in northern Gaza — one of the last functioning hospitals in the region during the height of the assault. Despite international protection for medical personnel under the Geneva Conventions, Dr. Abu Safiya was detained by Israeli forces in January 2025 while attempting to maintain hospital operations for thousands of patients."},{heading:"The Charges",body:"No credible charges have been publicly substantiated against Dr. Abu Safiya. He has been held without trial, without access to independent legal counsel, and without consular access — in violation of the International Covenant on Civil and Political Rights and the Geneva Conventions' protections for protected persons including medical personnel.",type:"callout"},{heading:"A Pattern, Not an Exception",body:"Dr. Abu Safiya is not alone. More than 400 healthcare workers have been illegally abducted by Israeli forces during the Gaza conflict, and over 80 remain illegally detained today. Many have reported torture, extended solitary confinement, and denial of medical care while in detention. Several have died in custody. This is a systematic pattern of targeting the medical profession as a weapon of war."},{heading:"What We Are Demanding",body:"Doctors Against Genocide demands:",type:"bullets",items:["The immediate and unconditional release of Dr. Hussam Abu Safiya","The release of all healthcare workers detained without credible charge","Full accountability for any mistreatment or torture of medical detainees","Access for international observers to all medical detainees","Respect for the Geneva Conventions' protections for medical personnel in all conflict zones"]},{heading:"Sign the Letter Campaign",body:"Doctors Against Genocide is leading letter campaigns to put pressure on decision makers to release Dr. Abu Safiya. Add your name to send the letter directly to officials, and share these campaigns widely. Every message counts, and healthcare professionals speaking as one are harder to ignore.",type:"links",items:["Sign the U.S. Letter Campaign|https://actionnetwork.org/letters/immediate-action-needed-palestinian-physician-tortured-for-557-days-imminent-risk-of-death/","Sign the Canada Letter Campaign|https://actionnetwork.org/letters/canada-immediate-action-needed-palestinian-physician-tortured-for-over-550-days-imminent-risk-of-death/"]},{heading:"Campaign Toolkit",body:"Access the full campaign brief and shareable materials to help spread the word.",type:"links",items:["Open the Campaign Document|https://docs.google.com/document/d/1m6y6jrhWti_TQUvKfVKdEa3YiJL0qRIFPR9ZBRKmhP8/edit?usp=sharing"]}],cta:{text:"Sign the U.S. Letter Campaign",href:"https://actionnetwork.org/letters/immediate-action-needed-palestinian-physician-tortured-for-557-days-imminent-risk-of-death/",note:"In the U.S., sign the U.S. letter campaign. In Canada, sign the Canada campaign above. Then share both widely to demand Dr. Abu Safiya's release."}},"actions/abu-safiya-letters":{title:"Letters to Free Dr. Hussam Abu Safiya",subtitle:"Ready-to-send letter templates and call scripts for U.S. and Canadian elected officials and medical associations. Personalize, then call, email, or mail them.",category:"Take Action",heroColor:"bg-zinc-900",sections:[{heading:"They Wore White Coats",body:"This film honors the Palestinian doctors detained and killed by Israel, including Dr. Abu Safiya. Watch it, then take action below.",type:"video",src:"/video/they-wore-white-coats.mp4",poster:"/video/they-wore-white-coats-poster.jpg"},{heading:"How to Use These Templates",body:"These are ready-to-send letters and call scripts you can personalize. Select the template that matches your recipient to expand it, then use the Copy button. Replace anything in square brackets with your own details. The more personal your message, the more weight it carries. Calling is the strongest, fastest action you can take: offices tally every call, and a flood of calls is hard to ignore. Each country's section includes a short phone script, so start there if you can. Each template includes the contact details for its recipient, and a full contact list is also at the bottom of this page."},{heading:"Wear the Campaign",body:"Show your solidarity and spread the word everywhere you go. Free Dr. Abu Safiya merch is available in the DAG shop, and every purchase supports our work.",type:"links",items:["Get Free Dr. Abu Safiya Merch|https://dagshops.com/collections/free-dr-hussam-abu-safiya"]},{heading:"Call the Foreign Affairs Committees",anchor:"call-committees",body:"These committees shape foreign policy in Washington and Ottawa, and their members can press directly for Dr. Abu Safiya's release. A short call is enough: give your name and profession, then ask them to use their position to secure the immediate release of Dr. Hussam Abu Safiya. Use the call scripts below as your guide. The full rosters with direct office numbers follow."},{heading:"U.S. House Foreign Affairs Committee",body:"Every member of the House Foreign Affairs Committee, with their Washington, D.C. office number:",type:"bullets",collapsible:!0,collapseLabel:"Show all 50 members",items:["Rep. Brian J. Mast (R-FL), Chair: (202) 225-3026","Rep. Gregory W. Meeks (D-NY), Ranking Member: (202) 225-3461","Rep. Christopher H. Smith (R-NJ): (202) 225-3765","Rep. Brad Sherman (D-CA): (202) 225-5911","Rep. Joe Wilson (R-SC): (202) 225-2452","Rep. William R. Keating (D-MA): (202) 225-3111","Rep. Michael T. McCaul (R-TX): (202) 225-2401","Rep. Ami Bera (D-CA): (202) 225-5716","Rep. Scott Perry (R-PA): (202) 225-5836","Rep. Joaquin Castro (D-TX): (202) 225-3236","Rep. Darrell Issa (R-CA): (202) 225-5672","Rep. Dina Titus (D-NV): (202) 225-5965","Rep. Tim Burchett (R-TN): (202) 225-5435","Rep. Ted Lieu (D-CA): (202) 225-3976","Rep. Andy Barr (R-KY): (202) 225-4706","Rep. Sara Jacobs (D-CA): (202) 225-2040","Rep. Ronny Jackson (R-TX): (202) 225-3706","Rep. Young Kim 
29(R-CA): (202) 225-4111","Rep. Greg Stanton (D-AZ): (202) 225-9888","Rep. Maria Elvira Salazar (R-FL): (202) 225-3931","Rep. Jared Moskowitz (D-FL): (202) 225-3001","Rep. Bill Huizenga (R-MI): (202) 225-4401","Rep. Jonathan L. Jackson (D-IL): (202) 225-4372","Rep. Aumua Amata Coleman Radewagen (R-AS): (202) 225-8577","Rep. Sydney Kamlager-Dove (D-CA): (202) 225-7084","Rep. Warren Davidson (R-OH): (202) 225-6205","Rep. Jim Costa (D-CA): (202) 225-3341","Rep. James R. Baird (R-IN): (202) 225-5037","Rep. Gabe Amo (D-RI): (202) 225-4911","Rep. Thomas H. Kean, Jr. (R-NJ): (202) 225-5361","Rep. Kweisi Mfume (D-MD): (202) 225-4741","Rep. Michael Lawler (R-NY): (202) 225-6506","Rep. Pramila Jayapal (D-WA): (202) 225-3106","Rep. Cory Mills (R-FL): (202) 225-4035","Rep. George Latimer (D-NY): (202) 225-2464","Rep. Keith Self (R-TX): (202) 225-4201","Rep. Johnny Olszewski, Jr. (D-MD): (202) 225-3061","Rep. Ryan K. Zinke (R-MT): (202) 225-5628","Rep. Julie Johnson (D-TX): (202) 225-2231","Rep. James C. Moylan (R-GU): (202) 225-1188","Rep. Sarah McBride (D-DE): (202) 225-4165","Rep. Anna Paulina Luna (R-FL): (202) 225-5961","Rep. Bradley Scott Schneider (D-IL): (202) 225-4835","Rep. Jefferson Shreve (R-IN): (202) 225-3021","Rep. Madeleine Dean (D-PA): (202) 225-4731","Rep. Sheri Biggs (R-SC): (202) 225-5301","Rep. Michael Baumgartner (R-WA): (202) 225-2006","Rep. Ryan Mackenzie (R-PA): (202) 225-6411","Rep. Randy Fine (R-FL): (202) 225-2706","Rep. Max L. Miller (R-OH): (202) 225-3876"]},{heading:"U.S. Senate Foreign Relations Committee",body:"Every member of the Senate Foreign Relations Committee, with their Washington, D.C. office number:",type:"bullets",collapsible:!0,collapseLabel:"Show all 22 members",items:["Sen. James E. Risch (R-ID), Chair: (202) 224-2752","Sen. Jeanne Shaheen (D-NH), Ranking Member: (202) 224-2841","Sen. Pete Ricketts (R-NE): (202) 224-4224","Sen. David McCormick (R-PA): (202) 224-6324","Sen. Steve Daines (R-MT): (202) 224-2651","Sen. Bill Hagerty (R-TN): (202) 224-4944","Sen. John Barrasso (R-WY): (202) 224-6441","Sen. Mike Lee (R-UT): (202) 224-5444","Sen. Rand Paul (R-KY): (202) 224-4343","Sen. Ted Cruz (R-TX): (202) 224-5922","Sen. Rick Scott (R-FL): (202) 224-5274","Sen. John R. Curtis (R-UT): (202) 224-5251","Sen. John Cornyn (R-TX): (202) 224-2934","Sen. Christopher A. Coons (D-DE): (202) 224-5042","Sen. Christopher Murphy (D-CT): (202) 224-4041","Sen. Tim Kaine (D-VA): (202) 224-4024","Sen. Jeff Merkley (D-OR): (202) 224-3753","Sen. Cory A. Booker (D-NJ): (202) 224-3224","Sen. Brian Schatz (D-HI): (202) 224-3934","Sen. Chris Van Hollen (D-MD): (202) 224-4654","Sen. Tammy Duckworth (D-IL): (202) 224-2854","Sen. Jacky Rosen (D-NV): (202) 224-6244"]},{heading:"Canada: Standing Committee on Foreign Affairs and International Development",body:"Key members of Canada's Foreign Affairs Committee (FAAE), with their Ottawa office numbers. The full roster is at ourcommons.ca/Committees/en/FAAE/Members.",type:"bullets",items:["Hon. Ahmed Hussen (Liberal, ON), Chair: (613) 995-0777","Hon. Michael D. Chong (Conservative, ON): (613) 992-4179","Alexis Brunelle-Duceppe (Bloc Quebecois, QC): (613) 992-2963"]},{heading:"United States",body:"Templates for U.S. elected officials and medical associations."},{type:"letter",heading:"Call Script: U.S. Representatives and Senators",caption:"Call the U.S. Capitol Switchboard at (202) 224-3121 and ask to be connected to your Representative or either Senator. Call three times to reach all three offices. Offices tally every call, so even a brief message counts.",contacts:["U.S. Capitol Switchboard (connects you to any Representative or Senator): (202) 224-3121.","Find your Representative and Senators at congress.gov/members/find-your-member; direct office numbers are on each member's .gov site."],items:["Watch the appeal from his son Elias|/#urgent-appeal","Read the Protect Dr. Abu Safiya statement|/statements/release-dr-abu-safiya"],body:`Hello, my name is [Your Name] and I am a constituent from [City, ZIP].
30
31I am calling to demand that [Representative/Senator Name] act now to save the life of Dr. Hussam Abu Safiya, a Palestinian pediatrician detained by the Israeli military without charge since December 27, 2024. His lawyer reports he has been severely tortured and may die in detention this week.
32
33I am asking the [Representative/Senator] to:
34• Publicly call for Dr. Abu Safiya's immediate release, along with all Palestinian healthcare workers held without charge
35• Raise his case directly with the State Department and the Israeli government this week
36
37His son Elias has issued a video appeal, and Doctors Against Genocide has published a full statement on his case; both are at doctorsagainstgenocide.org.
38
39Doctors must never be imprisoned or tortured for treating patients. May I have your name so I can follow up on the office's response? Thank y
39ou.`},{type:"letter",heading:"U.S. Representatives and Senators",subject:"Urgent: Dr. Hussam Abu Safiya May Die in Israeli Detention This Week. Immediate Action Needed",contacts:["Find your Representative and Senators at congress.gov/members/find-your-member. Congressional offices use the web contact form on each member's .gov site, filtered by your ZIP code.","U.S. Capitol Switchboard: (202) 224-3121."],items:["Sign the U.S. Letter Campaign|https://actionnetwork.org/letters/immediate-action-needed-palestinian-physician-tortured-for-557-days-imminent-risk-of-death/"],body:`Dear [Representative/Senator],
40
41I am writing with an urgent, time-sensitive request. Dr. Hussam Abu Safiya, a Palestinian pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained by the Israeli military without charge since December 27, 2024. His lawyer, who visited him in early July 2026, described his condition as showing signs of severe torture. He was badly beaten and losing consciousness during their meeting, and warned that his life is in imminent danger.
42
43He is not alone. More than 400 Palestinian healthcare workers have been illegally abducted since October 2023; according to Healthcare Workers Watch, over 80 remain in custody without charge and at least six have died in detention. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been tortured and interrogated to the point of a cardiac event requiring hospitalization. He has been denied his cardiac medication and has lost significant weight in detention.
44
45Dr. Adnan Al-Bursh, a well-known orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have described as death from torture.
46
47None of these men have been formally charged with any crime. Multiple UN experts, Amnesty International, Physicians for Human Rights Israel, and the International Committee of the Red Cross have called for their release and documented credible reports of torture, starvation, and denial of medical care, treatment that would violate the Geneva Conventions' protections for medical personnel.
48
49I am asking you to take concrete action now:
50• Publicly call for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
51• Raise this directly with the Israeli government and the State Department
52• Consider a floor statement or press conference given the urgency of Dr. Abu Safiya's condition
53
54I am available to answer questions or provide documentation. Given the immediate risk to Dr. Abu Safiya's life, I would appreciate a response as soon as possible.
55
56Respectfully,
57[Your name]
58[Your address, to confirm you are a constituent]`},{type:"letter",heading:"U.S. Medical Associations (Generic)",subject:"Urgent Call to Action: Palestinian Physicians Tortured and Dying in Israeli Detention",contacts:["AMA: contact page at ama-assn.org/contact-us.","AAFP: contact page at aafp.org/contact.html.","AAP: contact page at aap.org/en/pages/contact-us."],body:`Dear [Association/Organization Name],
59
60I am writing as a physician to urge [Association Name] to take immediate, public action on behalf of Palestinian healthcare workers being tortured and killed in Israeli detention, a crisis that strikes at the heart of medical neutrality and the protections our profession depends on.
61
62Dr. Hussam Abu Safiya, a pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for the "crime" of refusing to abandon his patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
63
64He is one of over 80 Palestinian healthcare workers currently held without charge, out of more than 400 illegally abducted since October 2023. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospitalization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
65
66Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
67
68These are not isolated incidents. The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers, a direct assault on the principle of medical neutrality that protects healthcare workers and patients in every conflict zone, including our own colleagues abroad.
69
70Medical associations have a professional and ethical obligation to defend the safety of healthcare workers performing their duties, regardless of where that threat comes from. Silence carries its own cost to that principle.
71
72I am asking [Association Name] to:
73• Issue a public statement calling for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
74• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence
75• Communicate directly with Israeli medical and governmental bodies, and with U.S. State Department contacts, urging intervention
76• Inform your membership of this crisis, given the direct threat it poses to physicians performing their duty of care
77
78Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action your organization can take this week.
79
80Respectfully,
81[Your name, credentials, affiliation]`},{type:"letter",heading:"American Medical Association (AMA)",subject:"Urgent Call to Action: Palestinian Physicians Tortured and Dying in Israeli Detention",contacts:["AMA: contact page at ama-assn.org/contact-us."],body:`Dear American Medical Association,
82
83I am writing as a physician to urge the AMA to take immediate, public action on behalf of Palestinian healthcare workers being tortured and killed in Israeli detention. The AMA's Code of Medical Ethics affirms that physicians must be permitted to provide care in armed conflict without interference, retribution, or threat, and that medical neutrality is a foundational principle our profession depends on everywhere it is threatened, not selectively.
84
85Dr. Hussam Abu Safiya, a pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for refusing to abandon his patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
86
87He is one of over 80 Palestinian healthcare workers currently held without charge, out of more than 400 illegally abducted since October 2023. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospital
87ization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
88
89Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
90
91The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers.
92
93I am asking the AMA to:
94• Issue a public statement calling for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
95• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence, of which the AMA is a member body
96• Communicate directly with Israeli medical associations and relevant governmental and State Department contacts
97• Inform AMA membership of this crisis as a matter of professional protection and ethics
98
99Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action the AMA can take this week.
100
101Respectfully,
102[Your name, credentials, affiliation]`},{type:"letter",heading:"American Academy of Family Physicians (AAFP)",subject:"Urgent Call to Action: Palestinian Physicians Tortured and Dying in Israeli Detention",contacts:["AAFP: contact page at aafp.org/contact.html."],body:`Dear American Academy of Family Physicians,
103
104I am writing as a fellow family physician to urge the AAFP to take immediate, public action on behalf of Palestinian healthcare workers being tortured and killed in Israeli detention. Family medicine is built on continuity of care and the physician's duty to the patient above all else, the very duty for which these colleagues are now imprisoned and tortured.
105
106Dr. Hussam Abu Safiya, a pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for refusing to abandon his patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
107
108He is one of over 80 Palestinian healthcare workers currently held without charge, out of more than 400 illegally abducted since October 2023. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospitalization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
109
110Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
111
112The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers.
113
114I am asking the AAFP to:
115• Issue a public statement calling for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
116• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence
117• Communicate directly with relevant governmental and State Department contacts
118• Inform AAFP membership of this crisis, given the direct threat it poses to physicians honoring their duty of care
119
120Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action the AAFP can take this week.
121
122Respectfully,
123[Your name, credentials, affiliation]`},{type:"letter",heading:"American Academy of Pediatrics (AAP)",subject:"Urgent Call to Action: A Pediatrician's Life Is at Risk in Israeli Detention This Week",contacts:["AAP: contact page at aap.org/en/pages/contact-us."],body:`Dear American Academy of Pediatrics,
124
125I am writing as a physician to urge the AAP to escalate its response on behalf of Dr. Hussam Abu Safiya, a Palestinian pediatrician whose life is reportedly in imminent danger this week. I recognize the AAP has previously called for information on his whereabouts and for his release. I am asking that this be renewed urgently and publicly, given how dire his condition has become.
126
127Dr. Abu Safiya, former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for refusing to abandon his pediatric patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
128
129He is one of over 80 Palestinian healthcare workers currently held without charge, out of more than 400 illegally abducted since October 2023. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospital
129ization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
130
131Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
132
133The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers, including this colleague, whose dedication to children under siege first drew the AAP's attention.
134
135I am asking the AAP to:
136• Renew and elevate its public call for Dr. Abu Safiya's immediate release, given the acute risk to his life this week
137• Extend that call to Dr. Al-Hams and all detained Palestinian healthcare workers
138• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence
139• Communicate directly with relevant governmental and State Department contacts
140
141Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action the AAP can take this week.
142
143Respectfully,
144[Your name, credentials, affiliation]`},{heading:"Canada",body:"Templates for Canadian Members of Parliament and medical associations."},{type:"letter",heading:"Call Script: Canadian Members of Parliament",caption:"Call your MP's Ottawa or constituency office directly (numbers are on their profile at ourcommons.ca/members), or call the House of Commons toll-free at 1-866-599-4999 to be connected. Offices log every call, so even a brief message counts.",contacts:["House of Commons switchboard (connects you to any MP): 1-866-599-4999 (toll-free) or 613-992-4793.","Your MP's direct Ottawa and constituency numbers: on their profile at ourcommons.ca/members.","Prime Minister's Office: 613-992-4211.","Global Affairs Canada enquiries: 1-800-267-8376."],items:["Watch the appeal from his son Elias|/#urgent-appeal","Read the Protect Dr. Abu Safiya statement|/statements/release-dr-abu-safiya"],body:`Hello, my name is [Your Name] and I am a constituent of [Riding Name].
145
146I am calling to demand that [MP Name] act now to save the life of Dr. Hussam Abu Safiya, a Palestinian pediatrician detained by the Israeli military without charge since December 27, 2024. His lawyer reports he has been severely tortured and may die in detention this week.
147
148I am asking the MP to:
149• Publicly call for Dr. Abu Safiya's immediate release, along with all Palestinian healthcare workers held without charge
150• Press the Minister of Foreign Affairs to raise his case formally with the Israeli government this week
151• Raise this urgently in the House of Commons
152
153His son Elias has issued a video appeal, and Doctors Against Genocide has published a full statement on his case; both are at doctorsagainstgenocide.org.
154
155Canada must defend the Geneva Conventions' protections for medical workers. May I have your name so I can follow up on the office's response? Thank you.`},{type:"letter",heading:"Canadian Members of Parliament",subject:"Urgent: Dr. Hussam Abu Safiya May Die in Israeli Detention This Week. Canada Must Act Now",caption:"To email or mail your MP directly, find them at ourcommons.ca/members by postal code; every MP's email is on their profile page. Mail to any MP at House of Commons, Ottawa, ON K1A 0A6 is postage-free. Consider CC'ing the Minister of Foreign Affairs and the Prime Minister's Office.",contacts:["Your MP: find yours at ourcommons.ca/members by postal code. Email format is [email protected], listed on each MP's profile page.","Minister of Foreign Affairs, Hon. Anita Anand: [email protected]. Office: 343-203-1851.","Prime Minister's Office: [email protected]. Phone: 613-992-4211.","Postage-free mail to any MP: House of Commons, Ottawa, ON K1A 0A6."],items:["Sign the Canada Letter Campaign|https://actionnetwork.org/letters/canada-immediate-action-needed-palestinian-physician-tortured-for-over-550-days-imminent-risk-of-death/"],body:`Dear [Mr./Ms./Dr.] [MP Last Name], MP,
156
157As a constituent of [Riding Name], I am writing with an urgent, time-sensitive request. Dr. Hussam Abu Safiya, a Palestinian pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained by the Israeli military without charge since December 27, 2024. His lawyer, who visited him in early July 2026, described his condition as showing signs of severe torture. He was badly beaten and losing consciousness during their meeting, and warned that his life is in imminent danger.
158
159He is not alone. More than 400 Palestinian healthcare workers have been illegally abducted since October 2023; according to Healthcare Workers Watch, over 80 remain in custody without charge and at least six have died in detention. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been tortured and interrogated to the point of a cardiac event requiring hospital
159ization. He has been denied his cardiac medication and has lost significant weight in detention.
160
161Dr. Adnan Al-Bursh, a well-known orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have described as death from torture.
162
163None of these men have been formally charged with any crime. Multiple UN experts, Amnesty International, Physicians for Human Rights Israel, and the International Committee of the Red Cross have called for their release and documented credible reports of torture, starvation, and denial of medical care, treatment that violates the Geneva Conventions' protections for medical personnel, conventions Canada is a party to and has long championed.
164
165I am asking you to take concrete action now:
166• Publicly call for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
167• Urge the Minister of Foreign Affairs and Global Affairs Canada to raise these cases directly and formally with the Israeli government, demanding urgent independent medical care and unrestricted access to legal counsel
168• Raise this in the House of Commons, through a member's statement, a question in Question Period, or a written question, given the urgency of Dr. Abu Safiya's condition
169• Press for Canada to raise these cases at the UN and in other multilateral forums, and to support accountability for violations of international humanitarian law against medical workers
170
171I am available to answer questions or provide documentation. Given the immediate risk to Dr. Abu Safiya's life, I would appreciate a response as soon as possible.
172
173Respectfully,
174[Your name]
175[Your address, to confirm you are a constituent]
176[City, Province, Postal Code]
177CC: Minister of Foreign Affairs; Prime Minister's Office (addresses in Contacts below)`},{type:"letter",heading:"Canadian Medical Associations (Generic)",subject:"Urgent Call to Action: Palestinian Physicians Tortured and Dying in Israeli Detention",contacts:["CMA: [email protected]; general inquiries via form at cma.ca/about-us/contact or 800-663-7336.","CFPC: contact form at cfpc.ca/en/contact-us or 1-800-387-6197.","CPS: [email protected] or 613-526-9397."],body:`Dear [Association/Organization Name],
178
179I am writing as a physician to urge [Association Name] to take immediate, public action on behalf of Palestinian healthcare workers being tortured and killed in Israeli detention, a crisis that strikes at the heart of medical neutrality and the protections our profession depends on.
180
181Dr. Hussam Abu Safiya, a pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for the "crime" of refusing to abandon his patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
182
183He is one of more than 400 Palestinian healthcare workers illegally abducted since October 2023, over 80 of whom remain in custody without charge. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospitalization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
184
185Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
186
187These are not isolated incidents. The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers, a direct assault on the principle of medical neutrality that protects healthcare workers and patients in every conflict zone, including our own colleagues abroad.
188
189Medical associations have a professional and ethical obligation to defend the safety of healthcare workers performing their duties, regardless of where that threat comes from. Silence carries its own cost to that principle.
190
191I am asking [Association Name] to:
192• Issue a public statement calling for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
193• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence
194• Communicate directly with Israeli medical and governmental bodies, and with Global Affairs Canada and the Minister of Foreign Affairs, urging intervention
195• Inform your membership of this crisis, given the direct threat it poses to physicians performing their duty of care
196
197Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action your organization can take this week.
198
199Respectfully,
200[Your name, credentials, affiliation]`},{type:"letter",heading:"Canadian Medical Association (CMA)",subject:"Urgent Call to Action: Palestinian Physicians Tortured and Dying in Israeli Detention",contacts:["CMA: [email protected]; general inquiries via form at cma.ca/about-us/contact or 800-663-7336.","Mail: 1410 Blair Towers Place, Suite 500, Ottawa ON K1J 9B9."],body:`Dear Canadian Medical Association,
201
202I am writing as a physician to urge the CMA to take immediate, public action on behalf of Palestinian healthcare workers being tortured and killed in Israeli detention. The CMA Code of Ethics and Professionalism affirms the physician's fundamental commitment to the well-being of the patient, and the CMA, as Canada's national voice for the medical profession and a member of the World Medical Association, has a duty to defend medical neutrality everywhere it is threatened, not selectively.
203
204Dr. Hussam Abu Safiya, a pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for refusing to abandon his patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
205
206He is one of more than 400 Palestinian healthcare workers illegally abducted since October 2023, over 80 of whom remain in custody without charge. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospital
206ization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
207
208Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
209
210The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers.
211
212I am asking the CMA to:
213• Issue a public statement calling for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
214• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence, of which the CMA is a member body
215• Communicate directly with Israeli medical associations, Global Affairs Canada, and the Minister of Foreign Affairs, urging intervention
216• Inform CMA membership of this crisis as a matter of professional protection and ethics
217
218Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action the CMA can take this week.
219
220Respectfully,
221[Your name, credentials, affiliation]`},{type:"letter",heading:"College of Family Physicians of Canada (CFPC)",subject:"Urgent Call to Action: Palestinian Physicians Tortured and Dying in Israeli Detention",contacts:["CFPC: contact form at cfpc.ca/en/contact-us or 1-800-387-6197.","Mail: 2630 Skymark Avenue, Suite 600, Mississauga ON L4W 5A4."],body:`Dear College of Family Physicians of Canada,
222
223I am writing as a fellow family physician to urge the CFPC to take immediate, public action on behalf of Palestinian healthcare workers being tortured and killed in Israeli detention. Family medicine is built on continuity of care and the physician's duty to the patient above all else, the very duty for which these colleagues are now imprisoned and tortured.
224
225Dr. Hussam Abu Safiya, a pediatrician and former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for refusing to abandon his patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
226
227He is one of more than 400 Palestinian healthcare workers illegally abducted since October 2023, over 80 of whom remain in custody without charge. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospitalization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
228
229Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
230
231The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers.
232
233I am asking the CFPC to:
234• Issue a public statement calling for the immediate release of Dr. Abu Safiya, Dr. Al-Hams, and all detained Palestinian healthcare workers
235• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence
236• Communicate directly with Global Affairs Canada and the Minister of Foreign Affairs
237• Inform CFPC membership of this crisis, given the direct threat it poses to physicians honoring their duty of care
238
239Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action the CFPC can take this week.
240
241Respectfully,
242[Your name, credentials, affiliation]`},{type:"letter",heading:"Canadian Paediatric Society (CPS)",subject:"Urgent Call to Action: A Pediatrician's Life Is at Risk in Israeli Detention This Week",contacts:["CPS: [email protected] or 613-526-9397.","Mail: 2305 St. Laurent Blvd., Suite 100, Ottawa ON K1G 4J8."],body:`Dear Canadian Paediatric Society,
243
244I am writing as a physician to urge the CPS to take urgent, public action on behalf of Dr. Hussam Abu Safiya, a Palestinian pediatrician whose life is reportedly in imminent danger this week. As "a voice for children and youth," the CPS is uniquely positioned to speak for a colleague imprisoned for refusing to abandon his pediatric patients.
245
246Dr. Abu Safiya, former director of Kamal Adwan Hospital in North Gaza, has been detained without charge since December 27, 2024, for refusing to abandon his pediatric patients during a hospital siege. His lawyer, after a recent visit, described visible signs of severe torture and warned that his life is in imminent danger this week.
247
248He is one of more than 400 Palestinian healthcare workers illegally abducted since October 2023, over 80 of whom remain in custody without charge. Dr. Marwan Al-Hams, director of field hospitals in Gaza, was abducted on July 21, 2025, and has reportedly been interrogated to the point of a cardiac event requiring hospital
248ization, only to be returned to detention afterward, denied his cardiac medication, and left to lose significant weight.
249
250Dr. Adnan Al-Bursh, a respected orthopedic surgeon, died in Ofer Prison in April 2024 under circumstances that human rights organizations have documented as death from torture.
251
252The World Health Organization, UN Special Rapporteurs, Amnesty International, and Physicians for Human Rights Israel have all documented systematic torture, starvation, and denial of medical care to detained Palestinian health workers, including this colleague, whose dedication to children under siege drew worldwide attention.
253
254I am asking the CPS to:
255• Issue a public call for Dr. Abu Safiya's immediate release, given the acute risk to his life this week
256• Extend that call to Dr. Al-Hams and all detained Palestinian healthcare workers
257• Formally invoke the World Medical Association's Declaration on the Protection of Health Workers in Situations of Violence
258• Communicate directly with Global Affairs Canada and the Minister of Foreign Affairs
259
260Given the urgency of Dr. Abu Safiya's condition, I would deeply appreciate a response and any action the CPS can take this week.
261
262Respectfully,
263[Your name, credentials, affiliation]`},{heading:"Where to Send Each Template",body:"Verified as of July 6, 2026. Where an organization only publishes a contact form, that is noted. Forms reach the same inboxes and count just as much."},{heading:"Canada, Government",type:"bullets",items:["Your MP: find yours at ourcommons.ca/members by postal code. Email format is [email protected], listed on each MP's profile page along with their Ottawa and constituency phone numbers.","House of Commons switchboard (connects you to any MP): 1-866-599-4999 (toll-free) or 613-992-4793.","Minister of Foreign Affairs, Hon. Anita Anand: [email protected]. Office: 343-203-1851.","Prime Minister's Office: [email protected]. Phone: 613-992-4211.","Global Affairs Canada: contact form at international.gc.ca. Enquiries: 1-800-267-8376."]},{heading:"Canada, Medical Associations",type:"bullets",items:["CMA (Canadian Medical Association): media at [email protected]; general inquiries via form at cma.ca/about-us/contact or 800-663-7336. Mail: 1410 Blair Towers Place, Suite 500, Ottawa ON K1J 9B9.","CFPC (College of Family Physicians of Canada): contact form at cfpc.ca/en/contact-us or 1-800-387-6197. Mail: 2630 Skymark Avenue, Suite 600, Mississauga ON L4W 5A4.","CPS (Canadian Paediatric Society): [email protected] or 613-526-9397. Mail: 2305 St. Laurent Blvd., Suite 100, Ottawa ON K1G 4J8."]},{heading:"United States, Government",type:"bullets",items:["Your Representative and Senators: find them at congress.gov/members/find-your-member. Congressional offices use web contact forms on each member's .gov site, filtered by constituent ZIP code.","U.S. Capitol Switchboard (connects you to any Representative or Senator): (202) 224-3121."]},{heading:"United States, Medical Associations",type:"bullets",items:["AMA: contact page at ama-assn.org/contact-us.","AAFP: contact page at aafp.org/contact.html.","AAP: contact page at aap.org/en/pages/contact-us."]},{heading:"Tips",type:"bullets",items:["Emails from a personal or professional address with your real name and location carry more weight than form blasts.","For associations, CC your provincial or state division too, for example the OMA or Doctors of BC. The CMA lists all provincial associations at cma.ca."]}],cta:{text:"Also Sign the Letter Campaigns",href:"/actions/free-gaza-doctors",note:"Sign the U.S. and Canada letter campaigns to add your name alongside your calls and letters."}},"actions/end-genocide-prescription":{title:"Prescription to End Genocide in Gaza",subtitle:"Issued by Doctors Against Genocide — in accordance with the Genocide Convention, the Geneva Conventions, and the Medical Definition of Genocide.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"Clinical Manifestations",body:"The following conditions have been documented and confirmed:",type:"bullets",items:["Forced mass starvation: 1.1 million children under siege; famine conditions confirmed (IPC data). Gaza is now the hungriest place on earth.","Total blockade of Gaza since March 2, 2025: No food, water, fuel, or medicine.","Systematic destruction of healthcare: All hospitals bombed, ambulances targeted, over 1,500 medical workers killed.","Mass displacement: 1.9 million civilians forcibly uprooted — 90% of Gaza's population.","Over 300,000 killed, 70% are women and children.","Global epicenter of child suffering: Highest number of orphans, amputees, and trauma victims on Earth.","Scholasticide: Erasure of all universities and majority of schools.","Public incitement to genocide by Israeli officials: Calls for total annihilation, forced expulsion, and ethnic cleansing."]},{heading:"Diagnosis: Live-Streamed Genocide",body:"A state-led campaign of mass extermination, starvation, and forced displacement — committed with impunity and in full violation of the Genocide Convention, Geneva Conventions, and international humanitarian law.",type:"callout"},{heading:"Prescription — United States",body:"As prescribing clinicians, Doctors Against Genocide prescribes the following for U.S. officials and institutions:",type:"bullets",items:["IMMEDIATE LIFT OF THE BLOCKADE: End the weaponization of food and medicine. Restore unrestr
263icted access to food, water, fuel, and essential medical supplies through established UN and humanitarian mechanisms.","UNRESTRICTED HUMANITARIAN ACCESS: Support S.Res 224 calling for the urgent delivery of humanitarian aid to address the needs of starving civilians in Gaza.","ENFORCE CEASEFIRE NOW: Implement UN Security Council Resolution 2728 (March 25, 2024) — immediate, unconditional ceasefire.","PROTECT HEALTHCARE UNDER INTERNATIONAL LAW: Enforce UNSCR 2286 (2016) and Geneva Conventions. Stop all attacks on healthcare infrastructure; prosecute violators.","IMPOSE FULL ARMS EMBARGO AND SANCTIONS: End all military assistance to the State of Israel. Cut off the weapons used in war crimes and mass civilian slaughter in accordance with the US Leahy Law. Apply targeted economic sanctions on officials and entities complicit in the genocide.","FEED THE CHILDREN, NOT THE WAR MACHINE: Launch emergency feeding and medical programs for every starving child. Their survival is non-negotiable.","ENFORCE THE GENOCIDE CONVENTION: Member States are legally obligated to prevent and punish genocide. Failure to act constitutes complicity."]},{heading:"Prescription — Canada",body:"As prescribing clinicians, Doctors Against Genocide prescribes the following for Canadian officials and institutions:",type:"bullets",items:["END THE SIEGE AND DELIVER AID: Immediate and unconditional lifting of the blockade on Gaza. Ensure full, unrestricted humanitarian access — food, water, fuel, and medical supplies must flow freely. Canada should send a diplomatic convoy to help break the siege and support the safe delivery of aid.","ENFORCE A PERMANENT CEASEFIRE: Support the implementation of UN Security Council Resolution 2728. Canada must push for an immediate, unconditional ceasefire and back international civilian protection missions.","STOP ARMING APARTHEID: Enact a full two-way arms embargo on Israel. End all military exports and security cooperation. Impose targeted sanctions on Israeli officials and institutions complicit in war crimes and genocide.","ENFORCE THE GENOCIDE CONVENTION: Canada is legally obligated to prevent and punish genocide. Failure to act is complicity. Refer perpetrators to the ICC, suspend state immunities, and prosecute.","HOLD CANADIANS ACCOUNTABLE: Investigate and prosecute Canadian citizens who have served in the Israeli Occupation Forces (IOF) for potential involvement in war crimes and crimes against humanity.","ENFORCE INTERNATIONAL LAW: Uphold the Geneva Conventions and UNSCR 2286. Protect healthcare, prosecute attacks on civilians and infrastructure, and refer perpetrators to the International Criminal Court.","RECOGNIZE PALESTINE, END COMPLICITY: Officially recognize the State of Palestine and cut all ties — financial, trade, academic, and cultural — with illegal Israeli settlements. Revoke charitable status for Canadian entities that support them.","DEFEND FREEDOM OF EXPRESSION IN CANADA: Reject anti-Palestinian racism and legislation that criminalizes protest or solidarity. Protect the right to speak out against Israeli apartheid and genocide."]},{heading:"We Are Healers",body:`We cannot be silent while healthcare is weaponized and patients are starved, bombed, and denied care.
264
265BREAD NOT BOMBS. LET THE CHILDREN EAT. END THE GENOCIDE.`,type:"callout"}],cta:{text:"Download — US Version (PDF)",href:"/prescription-end-genocide-us.pdf"},secondaryCta:{text:"Download — Canada Version (PDF)",href:"/prescription-end-genocide-canada.pdf"}},"actions/bread-not-bombs":{title:"Bread Not Bombs Campaign",subtitle:"Demanding that food be allowed into Gaza immediately. No child should die of starvation while the world watches.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"The Crisis",body:"As of 2025, the entire population of Gaza — 2.3 million people — faces acute food insecurity. In northern Gaza, famine conditions have been declared. Children are dying of starvation while fully loaded humanitarian aid convoys wait at border crossings that have been deliberately closed."},{heading:"This Is a Policy Choice",body:"Famine in Gaza is not a logistical problem. It is a policy decision. Border crossings have been closed by Israeli authorities. Aid convoys have been turned back. World Central Kitchen humanitarian workers were killed in an airstrike while delivering food. This is the deliberate use of starvation as a weapon of war — a war crime under international law.",type:"callout"},{heading:"What We Are Demanding",type:"bullets",body:"Bread Not Bombs demands:",items:["Immediate opening of all border crossings to humanitarian aid — with no restrictions","Safe passage guarantees for all humanitarian workers","Accountability for attacks on food aid convoys and humanitarian workers","An end to the destruction of agricultural land, water systems, and food storage","International monitoring of humanitarian access compliance"]},{heading:"How You Can Help",body:"Sign the campaign. Share it. Call your elected officials. Demand they use their influence to open the borders. And consider donating to DAG's Gaza food and medical aid fund — every dollar goes directly to communities in need."}],cta:{text:"Join the Bread Not Bombs Campaign",href:"https://actionnetwork.org/letters/bread-not-bombs-let-the-children-eat",note:"You will be taken to the Action Network letter campaign to sign and share."}},"actions/no-child-a-target":{title:"No Child A Target",subtitle:"Advocating to end the deliberate targeting of children in Gaza and hold perpetrators accountable under international law.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"The Numbers Are Unacceptable",body:"As of 2025, over 15,000 children have been killed in Gaza — the highest child death toll in any modern conflict. UNICEF has called Gaza 'the most dangerous place on earth to be a child.' These are not accidents. Pediatric wards, schools, and clearly-marked areas for displaced families have all been directly struck."},{heading:"What International Law Says",body:"The Convention on the Rights of the Child, ratified by nearly every n
265ation on earth, guarantees children the right to life and protection from armed conflict. The Rome Statute explicitly designates the intentional targeting of children as a war crime. The deliberate killing of children as a method of genocide — destroying the next generation — is recognized under the Genocide Convention.",type:"callout"},{heading:"What We Are Demanding",type:"bullets",body:"",items:["An immediate end to attacks on residential areas, schools, hospitals, and shelters where children are present","Independent international investigation of every documented child death","ICC prosecution of those responsible for the targeting of children","Full humanitarian access to provide food, medicine, and psychosocial support to surviving children","Restoration of schooling, play, and normalcy for all surviving children in Gaza"]}],cta:{text:"Add Your Name: No Child A Target",href:"https://actionnetwork.org/forms/one-thousand-white-coats-on-the-hill-doctors-against-genocide"}},"actions/sos-from-gaza":{title:"SOS From Gaza",subtitle:"Amplifying the voices of doctors still working inside Gaza — first-hand testimonies and urgent appeals to the world.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"Voices From Inside",body:"The SOS From Gaza campaign collects and amplifies testimony from physicians, nurses, paramedics, and humanitarian workers who are still operating inside the Gaza Strip. These are first-hand accounts of conditions the world needs to hear — from the people who have earned the right to speak."},{heading:"Why This Matters",body:"In conflicts, the first casualty is often truth. Governments restrict access, embed media, and shape narratives. The SOS From Gaza campaign exists to ensure that the testimony of medical professionals — who have international legal protection and professional standing — is heard, recorded, and protected from erasure."},{heading:"Take Action",body:"Use the form below to send your SOS — whether you are a healthcare worker with direct testimony, a clinician 
265who has treated Gaza patients, or a medical professional who wants to add their voice to the call. Every submission is documented and amplified through DAG's advocacy channels."}],cta:{text:"Send Your SOS",href:"https://secure.everyaction.com/v1/Forms/CdE8my-xo0exAmiFrkw1Tg2"}},"actions/petition-medical-associations":{title:"Petition Medical Associations",subtitle:"Urging medical associations worldwide to speak out against the genocide in Gaza and the targeting of healthcare infrastructure.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"Why Medical Associations Must Act",body:"National medical associations — the AMA, BMA, CMA, and their counterparts globally — represent hundreds of thousands of physicians. Their silence in the face of documented attacks on healthcare infrastructure and mass atrocities is not neutrality: it is tacit endorsement. These organizations have spoken before — on apartheid South Africa, on the use of chemical weapons — and they must speak again."},{heading:"What We Are Asking",type:"bullets",body:"Our petition to medical associations asks that they formally:",items:["Condemn the deliberate targeting of hospitals, healthcare workers, and ambulances in Gaza","Call for an immediate ceasefire to allow humanitarian medical access","Demand the release of all detained healthcare workers","Support referral to the International Criminal Court","Adopt a formal position recognizing the events in Gaza as medical genocide"]},{heading:"The Medical Community Has Spoken",body:"The Lancet has called for a ceasefire and published systematic analyses of the death toll in Gaza. The WHO has repeatedly condemned attacks on healthcare infrastructure. Leading medical journals have published documentation of the deliberate destruction of Gaza's health system. The professional silence of the largest national medical associations — particularly in the United States — is not a neutral position.",type:"callout"},{heading:"Join the Campaign",body:"Whether you are a medical student, a practicing physician, or a retired clinician — your signature matters. Forward this petition to your professional association. Bring it to your department. Ask your chief of medicine to endorse it. The weight of the medical profession, united, is a powerful force."}],cta:{text:"Sign the Mass General Hospital Petition",href:"https://actionnetwork.org/petitions/demand-mass-general-petition-remove-war-criminal-from-board-of-directors",note:"Demands Mass General Hospital remove a board member complicit in the genocide from their board of directors."}},"actions/not-another-hospital":{title:"Not Another Child, Not Another Hospital",subtitle:"A campaign inviting medical institutions to take a long-overdue stand against genocide.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"About the Campaign",body:'The "Not Another Child, Not Another Hospital" (NACNAH) campaign calls on healthcare workers around the world to organize vigils and hold press conferences in solidarity with hospitals and healthcare workers who have been targeted and violated during this genocide. Alongside these vigils, we are sending letters to our institutions urging them to take a formal stand. This ongoing campaign has over 5,000 signatories and has been endorsed by more than 40 healthcare advocacy groups and organizations.'},{heading:"What We Are Asking Institutions to Do",type:"bullets",body:"The letter asks healthcare institutions and medical leadership to formally advocate for the following:",items:["Stop the bombing of hospitals and the attacking of healthcare and aid workers","Call for the protection of children in Gaza and Lebanon","Call for an immediate and permanent ceasefire and an end to the ongoing genocide, to allow health operations to resume","Support a comprehensive and immediate embargo on weapons to Israel and divestment from Israel to stop the ethnic cleansing of civilians and the destruction of healthcare","Advocate for unrestricted humanitarian and medical access to Gaza","Establish healthcare education and training at your institution for patient-facing staff to provide informed care to patients affected by war crimes, crimes against humanity, and genocide"]},{heading:"Healthcare Organizations Have a Duty to Speak",body:"Hospitals and medical institutions have been bombed, raided, and shut down across Gaza. Healthcare workers have been killed, arrested, and tortured. The destruction of Gaza's healthcare system is not collateral damage — it is a documented strategy. Medical institutions that remain silent in the face of this evidence are not neutral; they are complicit. More than 40 healthcare advocacy groups have already endorsed this campaign. We are asking yours to join them.",type:"callout"},{heading:"How to Participate",body:"Sign the NACNAH letter that DAG will send to healthcare leaders every week until they take a stand against genocide. If you are a healthcare organization interested in co-signing this campaign, use the link below. The full letter text and campaign toolkit are also available."}],cta:{text:"Sign the NACNAH Letter",href:"https://ujoin.co/campaigns/3307/actions/public?action_id=4319",note:"Signs and submits via the campaign form"}},"actions/gaza-fact-sheet-us":{title:"Gaza Fact Sheet — U.S. Congressional Policy Edition",subtitle:"Eight concrete legislative actions for Congress to end U.S. complicity in the genocide in Gaza. July 2025.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"Download the Full Fact Sheet",body:"The complete U.S. edition — including all policy recommendations, humanitarian data, and source citations — is available as a free PDF.",type:"downloads",items:["Gaza Fact Sheet — U.S. Edition (PDF)|/dag-gaza-fact-sheet-us-2025.pdf"]},{heading:"Congressional Policy Recommendations",type:"bullets",body:"DAG calls on all Members of Congress to take the following concrete actions:",items:["Support H.Res. 473 — call for immediate, unrestr
265icted humanitarian aid, protection for aid workers, and restoration of food, water, healthcare, and shelter","Pass H.R. 3565 (Block the Bombs Act) — suspend arms transfers to Israel until verifiable compliance with international humanitarian law is demonstrated","Enforce the Leahy Laws — halt U.S. assistance to Israeli military units credibly accused of gross human rights violations, including attacks on hospitals and aid convoys","Investigate U.S. nationals and contractors for complicity in genocide under the Genocide Accountability Act (18 U.S.C. § 1091)","Sanction perpetrators through the Global Magnitsky Act — impose travel bans and asset freezes on individuals orchestrating the weaponization of aid in Gaza","Mandate human rights vetting under the Arms Export Control Act and Foreign Assistance Act §502B — condition future arms sales on compliance with international law","End U.S. obstruction of international justice — stop threatening, defunding, or sanctioning the ICC or ICJ, and do not shield any state from prosecution for crimes against humanity","Rebuild with justice: cut funding to the Gaza Humanitarian Foundation and its private U.S. partners; restore funding to UNRWA, WHO, UNICEF, and MSF"]},{heading:"Humanitarian Crisis Snapshot (July 2025)",type:"bullets",body:"Key verified figures:",items:["1,580+ healthcare workers killed; 697+ verified attacks on healthcare facilities (WHO: deadliest conflict for health workers in recent history)","Only 18 of 36 hospitals remain partially functional — dialysis and neonatal care have fully collapsed","17,000+ children killed by July 9, 2025 — approximately 27 per day","Gaza has the highest per-capita rate of child amputees in the world; Save the Children reports peak rates of 10+ child amputations per day",'15,000–19,000 new orphans (both parents dead) — IRC. Medical workers coined "WCNSF" (Wounded Child with No Surviving Family)',"112 children per day requiring admission for acute malnutrition (UNICEF); severe acute malnutrition surged 146% since February 2025","86% of the Gaza Strip within Israeli-militarized zones or under displacement orders as of July 9, 2025","92% of housing units (436,000) destroyed or damaged; 89% of water and sanitation units destroyed or damaged",'2,308+ educational facilities destroyed; UN experts classify this as "scholasticide"']},{heading:"Share This With Your Representatives",body:"Print this fact sheet, email it to your Congressional office, and bring it to town halls. Every verified fact in this document is sourced from WHO, UNICEF, IPC, and UN reports. Use the PDF download above to share a print-ready copy."}],cta:{text:"Find Your Representative",href:"https://www.house.gov/representatives/find-your-representative"}},"actions/gaza-fact-sheet-canada":{title:"Gaza Fact Sheet — Canadian Policy Edition",subtitle:"Eight parliamentary demands to end Canadian complicity in the genocide in Gaza. July 2025.",category:"Action",heroColor:"bg-zinc-900",sections:[{heading:"Download the Full Fact Sheet",body:"The complete Canadian edition — including all policy recommendations, humanitarian data, and source citations — is available as a free PDF.",type:"downloads",items:["Gaza Fact Sheet — Canada Edition (PDF)|/dag-gaza-fact-sheet-canada-2025.pdf"]},{heading:"Canadian Parliamentary Policy Demands",type:"bullets",body:"DAG calls on the Government of Canada and all Members of Parliament to take the following actions:",items:["End the siege and deliver aid — demand the immediate and unconditional lifting of the blockade; coordinate diplomatic convoys; back UN monitoring mechanisms under UNSC Resolutions 2720 and 2728","Enforce a permanent ceasefire — publicly endorse UNSC Resolution 2728 and support international civilian protection missions","Impose a full two-way arms embargo on Israel — cancel all export permits under EIPA, prohibit Israeli arms sales to Canada, and end all bilateral security cooperation and intelligence-sharing","Enforce the Genocide Convention — Canada is legally obligated to prevent genocide; support South Africa's ICJ case, acknowledge the risk of genocide in Gaza, and refer perpetrators to the ICC","Hold Canadians accountable for war crimes — investigate and prosecute Canadian citizens serving in the IOF under the Crimes Against Humanity and War Crimes Act (S.C. 2000, c. 24)","Enforce international humanitarian law — uphold the Geneva Conventions and UNSCR 2286; condemn and investigate attacks on hospitals, ambulances, and medical personnel","Recognize Palestine — officially recognize the State of Palestine; ban trade and financial ties with illegal Israeli settlements; revoke charitable status for organizations funding settlement expansion","Defend civil liberties — reject anti-Palestinian racism and the criminalization of protest; protect Canadians' right to engage in BDS as legitimate political expression under the Charter"]},{heading:"Humanitarian Crisis Snapshot (July 2025)",type:"bullets",body:"Key verified figures:",items:["1,580+ healthcare workers killed; 697+ verified attacks on healthcare facilities (WHO: deadliest conflict for health workers in recent history)","Only 18 of 36 hospitals remain partially functional — dialysis and neonatal care have fully collapsed","17,000+ children killed by July 9, 2025 — approximately 27 per day","Gaza has the highest per-capita rate of child amputees in the world; Save the Children reports peak rates of 10+ child amputations per day",'15,000–19,000 new orphans (both parents dead) — IRC. Medical workers coined "WCNSF" (Wounded Child with No Surviving Family)',"112 children per day requiring admission for acute malnutrition (UNICEF); severe acute malnutrition surged 146% since February 2025","86% of the Gaza Strip within Israeli-militarized zones or under displacement orders as of July 9, 2025","92% of housing units (436,000) destroyed or damaged; 89% of water and sanitation units destroyed or damaged",'2,308+ educational facilities destroyed; UN experts classify this as "scholasticide"']},{heading:"Share This With Your MP",body:"Print this fact sheet and bring it to your Member of Parliament's constituency office. Email it to your MP directly. Every fact is sourced from WHO, UNICEF, IPC, UN Human Rights Council, and ICC records. Use the PDF download above for a print-ready copy."}],cta:{text:"Find Your Member of Parliament",href:"https://www.ourcommons.ca/members/en"}},"join/dag":{title:"Join Doctors Against Genocide",subtitle:"Add your name to a global coalition of healthcare professionals standing against genocide and mass atrocities.",category:"Get Involved",heroColor:"bg-zinc-900",sections:[{heading:"Who Can Join",body:"DAG welcomes physicians, surgeons, nurses, pharmacists, dentists, mental health professionals, medical students, public health workers, healthcare administrators, and allied health professionals from anywhere in the world. You do not need to be a citizen of any particular country. You need only to share our commitment to human life and medical ethics."},{heading:"What Members Do",type:"bullets",body:"As a DAG member, you will:",items:["Receive urgent action alerts and campaign updates directly to your inbox","Be invited to join our weekly Sunday webinars with frontline doctors","Access exclusive educational resources and clinical guides","Connect with a global peer network of like-minded healthcare professionals","Have opportunities to speak, write, and organize within your community","Be counted — your membership strengthens every campaign DAG runs"]},{heading:"It's Free. It's Impactful.",body:"DAG membership carries no fee. Your contribution is your voice, your advocacy, and your professional standing. When 5,000 healthcare workers sign a letter, governments listen in ways they don't when 5,000 individual citizens do.",type:"callout"},{heading:"Ready to Join?",body:"Click the button below to complete the official DAG membership form. You will be added to our coalition, receive a welcome email with resources, and be invited to our next community call."}],cta:{text:"Join DAG — Complete the Membership Form",href:"https://actionnetwork.org/forms/join-our-coalition-7/"}},"join/maag":{title:"Join the Medical Alliance Against Genocide (MAAG)",subtitle:"DAG's alliance for medical organizations, associations, and institutions joining together against genocide.",category:"Get Involved",heroColor:"bg-zinc-900",sections:[{heading:"What Is the MAAG?",body:"The Medical Alliance Against Genocide (MAAG) is DAG's coalition for organizations — medical associations, institutions, hospitals, and professional bodies that join DAG in coordinated advocacy, data sharing, and public education on genocide prevention and response. It is the way other organizations partner with DAG to amplify the collective medical voice."},{heading:"MAAG vs. General DAG Membership",body:"General DAG membership is open to individual healthcare workers and allies. MAAG is for organizations and medical associations that want to join the alliance as a body — coordinating advocacy campaigns, sharing data and expertise, issuing joint statements, and amplifying collective medical impact across institutions.",type:"callout"},{heading:"What MAAG Member Organizations Do",type:"bullets",body:"",items:["Join DAG in coordinated advocacy campaigns and data sharing","Co-sign and circulate open letters on behalf of the medical community","Issue joint statements with DAG and partner organizations","Contribute medical expertise and resources to the alliance","Mobilize their members, hospital systems, and networks in advocacy","Participate in advocacy days including 1,000 White Coats on the Hill"]}
265,{heading:"Apply Today",body:"Organizations interested in joining the MAAG are reviewed by DAG's medical board. You will be asked to share your organization's details and describe your areas of advocacy and collaboration. The application takes approximately 10 minutes."}],cta:{text:"Apply to Join the MAAG",href:"https://docs.google.com/forms/d/e/1FAIpQLScrJzrTJS1QAN4VxmLlYuJljwXrch7fIkboOA6yV7K_V5XWGw/viewform"}},"join/chapter":{title:"Create a DAG Chapter",subtitle:"Bring Doctors Against Genocide to your city, hospital, or medical school.",category:"Get Involved",heroColor:"bg-zinc-900",sections:[{heading:"Why Start a Chapter?",body:"A DAG chapter brings the power of a global coalition into your local community. Hospital chapters are changing the culture of how healthcare institutions engage with genocide. Medical school chapters are shaping how the next generation of doctors understands their professional obligations. City chapters are organizing healthcare workers for advocacy days, vigils, and community education."},{heading:"What a Chapter Can Do",type:"bullets",body:"",items:["Organize local advocacy events, film screenings, and community forums","Engage your hospital or medical school leadership on human rights policy","Host DAG webinar watch parties and discussion groups","Represent DAG at local press and legislative meetings","Fundraise for DAG's humanitarian aid campaigns","Connect with other chapters in your region for joint actions"]},{heading:"How to Start",body:"Starting a chapter requires a minimum of five committed members and a chapter coordinator. DAG provides a full chapter toolkit including bylaws templates, talking points, media guidelines, social media assets, and direct support from the national DAG team. We will help you launch.",type:"callout"},{heading:"Chapter Types",type:"bullets",body:"We currently support three types of chapters:",items:["Hospital / Healthcare System Chapters — for staff and departments within an institution","Medical School / Residency Chapters — for students and trainees","City / Regional Chapters — for community-based organizing"]},{heading:"Ready to Start?",body:"Submit your chapter interest form on the official DAG website. A member of the DAG organizing team will c
265ontact you within 48 hours with your chapter toolkit and next steps."}],cta:{text:"Submit Your Chapter Interest Form",href:"https://actionnetwork.org/forms/application-to-create-a-local-doctors-against-genocide-dag-chapter"}},"statements/west-bank-olive-trees-media-advisory":{title:"Israel Threatens to Destroy Thousands of West Bank Olive Trees",subtitle:"Ahead of harvest — putting Palestinian livelihoods and community health at immediate risk.",category:"Media Advisory",date:"August 16, 2026",heroColor:"bg-zinc-900",sections:[{heading:"All Aspects of Palestinian Life Under Attack",body:"Israeli military orders threaten thousands of olive trees across more than 200 dunums in the Jenin area. The orders follow a documented and accelerating pattern that has already destroyed close to 400,000 Palestinian trees since 2023.",type:"callout"},{heading:"Interviews Available Immediately from the West Bank",type:"bullets",items:["Tayseer Sadaqa, former Mayor of Anza, a village in Jenin","Maysa Hawwash, Doctors Against Genocide"]},{heading:"Media Contact",body:"Gur Tsabar — [email protected] — +1 347.248.1390 cell, Signal, or WhatsApp."},{heading:"The Trees Are Part of a Larger Pattern",body:"Doctors Against Genocide is calling for the immediate cancellation of Israeli military orders threatening thousands of olive trees across more than 200 dunums in the Jenin-area villages of Anza, Ajjah, Arraba, Ya'bad and Marka, just weeks before the Palestinian olive harvest."},{body:"Landowners have received written notices in Hebrew ordering the removal of olive trees on their agricultural land, reportedly on the grounds that the trees obstruct visibility. Doctors Against Genocide is calling for the orders to be withdrawn in full."},{body:"The threatened destruction is not an isolated incident. Palestinian institutions have documented a sharp acceleration in Israeli orders requiring the removal of trees and crops from Palestinian land on stated security grounds."},{body:"The Colonization and Wall Resistance Commission recorded 47 such orders covering 1,613 dunums in 2025. In the first six months of 2026 alone, it recorded 49 orders covering 2,093 dunums."},{body:"The consequences extend far beyond a single harvest. Removing mature olive trees destroys food production, family income and the long-term productive capacity of the land. When land can no longer be cultivated, its abandonment can then be used as a basis for further restrictions and seizure."},{heading:"Jenin Is Already at the Centre of the Escalation",body:"The Jenin governorate has experienced a dramatic increase in agricultural destruction. Documented agricultural losses reached $6.5 million in all of 2025, but $17.7 million in the first six months of 2026 alone, driven overwhelmingly by the destruction of 23,149 olive trees."},{body:"Across the West Bank, documented direct agricultural losses reached $257.9 million between January 2023 and June 2026, while 398,168 trees were cut, burned, uprooted or bulldozed. The annual rate of tree destruction has increased roughly six-fold since 2023."},{body:"For Palestinian families, these losses are economic, environmental and health losses at once. More than 10 million olive trees are cultivated across the West Bank, and between 80,000 and 100,000 families depend on olives and olive oil for primary or secondary income. Mature olive trees can take decades to reach full production."},{body:"“These are not simply trees. They are food, income and the environmental foundation of entire communities. As physicians, we know that health is produced in the conditions where people live, not only in hospitals. For farming communities, land is itself a determinant of health.” — Doctors Against Genocide",type:"quote"},{heading:"The Destruction Is Happening Alongside Escalating Settler Violence",body:"The assault on agricultural livelihoods is occurring alongside a broader escalation in restrictions, settler violence and attacks on Palestinian civilian life across the West Bank."},{body:"The World Health Organization documented 233 attacks on health care in the West Bank in 2025, while UN OCHA has recorded more than 1,200 settler attacks causing casualties or property damage since the beginning of 2026. Forty-seven Palestinian communities have been entirely displaced since January 2023."},{body:"For Doctors Against Genocide, these developments cannot be separated. Restricting access to health care, attacking communities, destroying agricultural livelihoods and making land increasingly inaccessible all undermine the conditions necessary for Palestinian communities to remain healthy and remain on their land."},{heading:"The Destruction Is Unlawful",body:"The proposed destruction raise
265s serious violations of international humanitarian law, including the prohibition under Article 53 of the Fourth Geneva Convention on the destruction of private property in occupied territory except where absolutely necessary for military operations."},{body:"International humanitarian law also protects objects indispensable to civilian survival, including agricultural areas used to produce food. The International Court of Justice's July 2024 advisory opinion further affirmed the illegality of Israel's continued presence in the occupied Palestinian territory and the obligations of third states not to recognize or assist in maintaining that unlawful situation."},{heading:"Our Demands",type:"bullets",items:["Cancel the orders immediately. The threatened olive trees must not be destroyed.","Establish an immediate international presence in Anza, Ajjah, Arraba, Ya'bad and Marka and other threatened communities to document and help prevent the destruction.","Protect Palestinian farmers and the olive harvest, including through an international protective presence.","For third states to meet their legal obligations and take concrete measures to ensure they are not assisting in maintaining an unlawful situation."]},{heading:"Media: Visit Before the Trees Are Destroyed",body:"Doctors Against Genocide urges international journalists, human rights organizations and environmental organizations to visit the affected communities and document the situation now."},{body:"The window to prevent this destruction is open, but it is short.",type:"callout"}]},"statements/indigenous-peoples-day-2026":{title:"Genocide Against Indigenous Peoples: Land, Birth, and Medicine",subtitle:"Doctors Against Genocide marks the International Day of the World's Indigenous Peoples, August 10, 2026.",category:"Statement",date:"August 10, 2026",heroColor:"bg-zinc-900",sections:[{body:`Doctors Against Genocide marks the International Day of the World's Indigenous Peoples, observed by the United Nations under this year's theme, "Honouring Indigenous Midwives: Safeguarding Life and Well-being." We honor Indigenous midwives and birth workers. We also name what they have survived and what many are surviving now: settler colonial genocide, carried out through control of land, food systems, and health care.`},{heading:"The Structure Across Centuries",body:"The Genocide Convention names five acts. Three of them are obstetric, pediatric, and nutritional: conditions of life calculated to bring about physical destruction, measures intended to prevent births, and the forcible transfer of children. These describe what a state does to a people it intends to remove when it does not intend to be seen shooting them."},{body:"It is why settler colonial genocide reaches clinicians not as atrocity but as a health disparity, and why our profession has repeatedly failed to recognize what it was charting. The organizing purpose is the land. The settler wants the territory. The people already on it are what must be removed."},{heading:"Palestine",body:'The erasure begins in the language. The Balfour Declaration of 1917 promised a national home in Palestine to a people who did not live there, and named the overwhelming majority who did only as the "existing non-Jewish communities." In 1948, approximately 750,000 Palestinians were expelled and more than 400 villages destroyed. Property law then reclassified the refugees as absentees, place names were replaced, and forests were planted over the ruins. This is the second phase of every settler colonial genocide: destroying the evidence that the people were ever there.'},{body:"It has not stopped. OCHA has documented over 1,020 settler attacks across more than 230 Palestinian communities since January, displacing more than 2,200 people, over 1,000 of them children. Settler attacks now cause 55% of all Palestinian injuries in the West Bank. In Gaza, nearly three years of bombardment, siege, and starvation have killed over 72,000 Palestinians. WHO has documented 987 attacks on health care in the West Bank between October 2023 and May 2026, affecting 673 ambulances. Maternity units have operated 
265without power. Cesarean sections have been performed without anesthesia. Physicians have been killed, detained, and disappeared. In January 2024 the International Court of Justice found a plausible risk that Palestinians in Gaza face acts prohibited under the Genocide Convention. The case will take years. Our patients do not have years."},{heading:"Turtle Island",body:"The destruction of the buffalo was a starvation policy designed to force nations onto reservations. Children were taken to residential and boarding schools where thousands died, and where nutritional experiments were conducted on the hungry. A 1976 U.S. General Accounting Office review found that Indian Health Service facilities sterilized 3,406 Native women in three years, including women who were not lawfully consented. Canada's National Inquiry concluded in 2019 that the killings and disappearances of Indigenous women and girls constitute genocide."},{heading:"The Same Structure, Everywhere",body:"The Batwa, evicted from ancestral forest, and the communities above Congo's coltan and cobalt, where sexual violence is used systematically as a weapon and surgeons at Panzi Hospital repair what was inflicted deliberately. The Rohingya, whose statelessness means no legal access to a hospital and no registration of a birth. The Herero and Nama. The Yanomami, poisoned by illegal mining. The Papuans of West Papua. The Uyghurs. The Maya Ixil. The Yazidis of Sinjar. The Masalit of Darfur. The Mapuche, the Adivasi, the Ogoni, the Ainu, the Sámi, the Chamorro, the Kanaka Maoli. The Stolen Generations, taken under a doctrine that declared the land empty because the people on it did not count. The women of Greenland fitted with intrauterine devices without their knowledge. They tried to end all of these peoples. All of these peoples are still here."},{heading:"Our Own Record",body:"Medicine was invoked, exploited, or used as cover for acts that violated its fundamental principles in nearly every case above. Medical authority was used to legitimize the removals of children. Public health services were enlisted in sterilization campaigns. Ancestral remains taken without consent sit in our museums today. Hospitals are designated as targets. Ambulances are turned back. A profession that will not audit the ways its name, institutions, and authority have been misused has no standing to audit anyone else's. Silence from medicine has never been neutrality. It has been permission."},{heading:"We Demand",type:"bullets",items:["Protection of health workers, midwives, patients, and medical facilities under international humanitarian law, with no exceptions and no hierarchy of victims.","Unimpeded medical and humanitarian access to Gaza and the West Bank, and the immediate release of detained medical personnel.","Recognition of land return and territorial sovereignty as public health interventions, written into health policy.","Full funding of Indigenous health services and support for Indigenous-led midwifery and birthing on country.","Independent medical ethics and integrity committees within professional associations to investigate complicity in genocide, attacks on healthcare, and other grave violations, with suspension of bodies that participate, enable, justify, or remain willfully silent.","Integration of reproductive justice and the right of peoples to sustain families and future generations on their own land into WHO frameworks, recognizing forced displacement and reproductive destruction as public health issues.","Protection of health and humanitarian data from use in surveillance, military targeting, displacement, or mass violence, with accountability for technology companies whose tools contribute to such abuses.","Truth, accountability, and reparation for coerced sterilization and obstetric violence against Indigenous women, historical and ongoing."]},{body:"To every midwife working today in Gaza, in the West Bank, in Kivu, in Cox's Bazar, in Nunavut, in Sinjar, in West Papua, in Darfur, in Sápmi, and on Turtle Island: we see you, we stand with you, and we will keep saying your patients' names."},{body:"Land is a determinant of health. Sovereignty is a health intervention. Genocide is a medical emergency.",type:"callout"}]},"statements/release-dr-abu-safiya":{title:"The Life of Dr. Hussam Abu Safiya Is in Imminent Danger",subtitle:"An appeal for immediate international action.",category:"Emergency Statement",date:"July 5, 2026",heroColor:"bg-zinc-900",enableEndorsements:!0,sections:[{body:"Doctors Against Genocide (DAG) issues this emergency appeal because we believe the life of our colleague, Dr. Hussam Abu Safiya, is in imminent danger."},{body:"Dr. Hussam Abu Safiya is a Palestinian pediatrician and former Director of Kamal Adwan Hospital in North Gaza. On December 27, 2024, he was detained by Israeli authorities after refusing to abandon the children and patients under his care during the assault on his hospital. More than eighteen months later, he remains detained without formal criminal charges."},{body:"According to his attorney's recent visit and public reporting by Physicians for Human Rights Israel and international news organizations, Dr. Abu Safiya has suffered severe physical deterioration. He reportedly bears fresh injuries, is profou
265ndly weakened, struggles to breathe and speak, and has expressed fear that he will not survive his detention. His lawyer has warned that his life is in immediate danger."},{body:"“This is the last time you will see me. … They brought me here to kill me.”",attribution:"Dr. Hussam Abu Safiya, to his legal counsel",type:"quote"},{body:"This is not only a humanitarian emergency. It is a medical emergency.",type:"callout"},{body:"Healthcare workers are protected under international humanitarian law because they care for the sick and injured regardless of nationality, religion, or political affiliation. The reported torture, denial of medical care, and abuse of detained healthcare workers strike at the foundations of medicine itself. Human rights organizations and United Nations experts have documented serious allegations concerning the treatment of Palestinian detainees, including torture, denial of medical care, starvation, sexual violence, and deaths in custody. These allegations require urgent protection of detainees and independent investigation."},{body:"Dr. Abu Safiya is not the only one. At least 16 other doctors from Gaza remain detained illegally, and the bodies of two killed doctors have still not been released to their families. They are among more than 80 healthcare workers still held without charge, out of over 400 illegally abducted since October 2023."},{body:"There is still a narrow window to act. Recent judicial proceedings requiring the Israeli government to report on Dr. Abu Safiya's condition create an opportunity for urgent international engagement. Every government, medical association, hospital, university, humanitarian organization, and elected official with the ability to act should do so now."},{heading:"Doctors Against Genocide Calls For",type:"bullets",items:["Immediate proof of life.","Immediate independent medical evaluation and all necessary medical treatment.","Immediate and unrestricted access by his lawyer and the International Committee of the Red Cross.","Protection from torture and all cruel, inhuman, or degrading treatment.","The immediate release of Dr. Hussam Abu Safiya and all healthcare workers detained without due process consistent with international humanitarian law.","Independent investigation and accountability for alleged torture, deaths in custody, and other serious violations of international humanitarian and human rights law."]},{heading:"Hour of Global Solidarity: July 15, Noon Your Local Time",body:"Let us take a united stand together on July 15th to free all Palestinian hostages, starting with healthcare workers. Join the one-hour rolling global action: wherever you are, take one hour at noon your local time to call, write, post, and gather to demand the release of Dr. Hussam Abu Safiya and every detained healthcare worker. And do not wait for July 15. His life is in danger right now, so start calling and writing today."},{type:"image",src:"/dag-july15-solidarity.jpg",alt:"Hour of Global Solidarity poster: Free Dr. Hussam Abu Safiya, solidarity with healthcare workers in Israeli detention. July 15, noon your local time. One-hour rolling global actions. Doctors Against Genocide.",caption:"Hour of Global Solidarity, July 15 at noon your local time. Share this poster widely.",variant:"portrait"},{heading:"Print the Posters",body:"Bring the detained doctors to your rally, vigil, or hospital action. Download the full Free Them All poster set: 16 posters of doctors still held in Israeli detention, including Dr. Hussam Abu Safiya, and 2 memorial posters for Dr. Iyad Al-Rantisi and Dr. Adnan Al-Bursh, who died in Israeli custody. Each poster is print-ready at 12 x 18 inches. You can also browse all DAG print materials, including vinyl banners and protest signs, on the Signs & Print Outs page.",type:"downloads",items:["Free Them All Poster Set, 18 Posters (PDF, 12 x 18 in)|/dag-free-them-all-posters.pdf","Browse All Signs & Print Outs|/actions/signs-and-print-outs"]},{heading:"Write to Decision Makers",body:"Use our ready-to-send letter templates and call scripts for U.S. and Canadian elected officials and medical associations. Call, or personalize a letter and send it by email or mail.",type:"links",items:["Open the Letter-Writing Toolkit|/actions/abu-safiya-letters"]},{heading:"Wear the Campaign",body:"Show your solidarity and spread the word everywhere you go. Free Dr. Abu Safiya merch is available in the DAG shop, and every purchase supports our work.",type:"links",items:["Get Free Dr. Abu Safiya Merch|https://dagshops.com/collections/free-dr-hussam-abu-safiya"]},{body:"Dr. Hussam Abu Safiya remained beside his patients when it placed his own life at risk. Today, his own life depends on whether the international community acts with the same courage."},{heading:"Download & Share This Statement",body:"Download the full statement as a PDF to print, share, or send to legislators and medical associations.",type:"downloads",items:["Download Statement (PDF)|/statements/release-dr-abu-safiya.pdf?v=20260706d"]},{body:"This statement is open for endorsement by medical associations, hospitals, universities, healthcare institutions, and healthcare professionals worldwide.",type:"callout"}],cta:{text:"Print the Posters and Signs for Your Action",href:"/actions/signs-and-print-outs",note:"The Free Them All poster set, vinyl banners, protest signs, and more DAG print materials."}},"statements/west-bank-annexation":{title:"West Bank Genocide: Urgent Statement",subtitle:"An emergency statement by Doctors Against Genocide. July 24, 2026.",category:"Emergency Statement",date:"July 24, 2026",heroColor:"bg-zinc-900",enableEndorsements:!0,sections:[{body:"Doctors Against Genocide condemns the escalating genocidal conditions being imposed on Palestinians across the occupied West Bank."},{heading:"Annexation by Violence",body:"This is annexation by violence. [The UN Office for the Coordination of Humanitarian Affairs (OCHA) has documented over 1,020 settler attacks across more than 230 Palestinian communities since January](https://www.ochaopt.org/content/humanitarian-situation-update-352-west-bank), an average of six per day, displacing more than 2,200 people, over 1,000 of them children. The UN reports that settler attacks now cause 55% of all Palestinian injuries in the West Bank, with injuries rising from one every three days in 2020 to more than three every day in 2026. Meanwhile [Israel has authorized 34 new settlements this year](https://www.timesofisrael.com/government-formally-approves-34-new-settlements-as-it-acts-to-deepen-hold-on-west-bank/), nearly six times the number approved in the three decades after Oslo, and settlers have established 42 new outposts in the first half of 2026 alone, while [Amnesty International warns that entire communities in Masafer Yatta face forcible transfer](https://www.amnesty.org/en/latest/news/2025/02/israel-opt-masafer-yatta-community-in-occupied-west-bank-under-imminent-threat-of-forcible-transfer/), a war crime."},{body:"The settler rampages in the West Bank and the annihilation of Gaza, where nearly three years of bombardment, siege, and starvation have killed over 72,000 Palestinians, constitute a single genocide against one people.",type:"callout"},{heading:"Genocidal Intent Expressed by Israeli Government Officials",body:`The intent is announced from the highest levels of the Israeli government. Within hours of the massacre, [Prime Minister Netanyahu and Defense Minister Katz rewarded the perpetrators](https://www.cbsnews.com/news/israel-west-bank-settler
265s-palestinians-violence-netanyahu/): ordering the military to accelerate the legalization of settler outposts and establish new ones, demolish Palestinian homes as collective punishment, revoke work permits, and launch "vigorous operations" in the very villages under attack. National Security Minister Ben-Gvir, who on July 23 had led the storming of Al-Aqsa, went further, [declaring that Palestinian villages in the West Bank should be made to resemble Beit Hanoun](https://www.middleeasteye.net/news/israeli-settlers-kill-four-palestinians-west-bank-attack), the Gaza town Israeli forces razed to the ground. When a government responds to a pogrom by expanding the pogromists' settlements and promising to flatten the victims' villages, the genocidal intent is spoken aloud.`},{heading:"The Attack on Tel: Part of a Systematic Campaign",body:"[The killings in Tel on the morning of July 24, 2026](https://www.timesofisrael.com/2-israelis-4-palestinians-killed-in-gunfight-sparked-by-settler-raid-of-palestinian-town/) are the latest atrocity in this campaign. Four young Palestinian men were shot dead, with four more wounded, three critically, after armed settlers from the area of the illegal Havat Gilad outpost stormed the village southwest of Nablus and opened fire on residents defending their homes. At least [86 Palestinians have now been killed in the West Bank this year, 21 of them by settlers](https://www.ochaopt.org/content/humanitarian-situation-update-352-west-bank), according to the Palestinian Ministry of Health."},{body:"Within hours, and under the protection of Israeli occupation forces, settlers rampaged through the surrounding villages: setting fire to six homes and several vehicles in Sarra, shooting and wounding eight residents of Far'ata, six with live ammunition, and beating residents of Sarta, while bulldozers uprooted hundreds of trees in Madama. These are not clashes. Armed mobs torch homes with families inside them and terrorize entire villages, night after night, to drive people from their land."},{heading:'The Inversion of Truth: "Counterterrorism" as a Pretext for War Crimes',body:'In a grotesque inversion of reality, Israel calls the victims the terrorists. Villagers who stood between an armed mob and their own homes are branded perpetrators of a "terror attack." The army that stood by as 
265settlers burned houses declared a "counter-terrorism" operation against the very communities under attack, besieging Nablus, imposing curfew, deploying soldiers at the gates of Nablus Speciality Hospital, and carrying out arrests inside a Nablus hospital. Self-defense against a pogrom is not terrorism. Burning families out of their homes is.'},{heading:"East Jerusalem: Demolitions, Forced Evictions, and the Assault on Al-Aqsa",body:`The same campaign is dismembering occupied East Jerusalem. [Human Rights Watch documents that Israeli authorities are accelerating home demolitions and forced evictions in Silwan](https://www.hrw.org/news/2026/06/17/east-jerusalem-israel-escalating-home-demolitions-evictions), where the entire al-Bustan neighborhood (115 homes housing 1,500 people) is slated for demolition to build a settler-run "archaeological park," and where over 2,000 Palestinians face what would be the largest wave of expulsions in East Jerusalem since 1967. [The United Nations confirms that Israel is simultaneously advancing 3,401 settlement units in the E1 area](https://www.timesofisrael.com/last-hurdle-cleared-to-start-controversial-settlement-project-near-jerusalem/), severing East Jerusalem from the rest of the West Bank, and recalls that the International Court of Justice has found such forced evictions and demolitions contrary to the Fourth Geneva Convention's prohibition of forcible transfer.`},{body:"[On July 23, 2026, more than 4,200 settlers, led by Minister Ben-Gvir, stormed the Al-Aqsa Mosque compound](https://www.palestinechronicle.com/ben-gvir-leads-record-al-aqsa-incursion-as-palestinians-warn-against-religious-war/) in one of the largest incursions ever recorded, raising Israeli flags and performing rituals inside the compound while Palestinian worshippers were barred from entering and forced to pray in the streets. The Jerusalem Governorate documented 7,244 settlers storming Al-Aqsa in May alone, alongside repeated desecration of Islamic and Christian holy sites. This is the deliberate erasure of Palestinian presence, memory, and worship, Muslim and Christian alike, from Jerusalem."},{heading:"The Assault on Health Care and the Siege of the Occupied West Bank",body:"As health workers, we bear witness to the assault on medicine itself. [The World Health Organization has documented 987 attacks on health care in the West Bank between October 2023 and May 2026, killing 39 people, injuring 201, and affecting 673 ambulances](https://www.emro.who.int/opt/news/who-concerned-about-escalating-health-crisis-in-west-bank.html), with 49 of these attacks recorded in 2026 alone. Hospitals are besieged and raided. This violates the Geneva Conventions and the first principle of medicine."},{heading:"We Demand",type:"bullets",items:["International protection for Palestinians: a UN protective presence in the West Bank, including for hospitals, ambulances, and medics.","Sanctions on Israel, violent settlers, and the officials who arm and shield them, and a full ban on trade with illegal settlements and Israel itself, the country that is committing this genocide.","An immediate halt to all military aid and arms transfers to Israel. Every weapon sent makes the sender complicit.","An end to attacks on health care and unimpeded access to treatment for the wounded."]},{heading:"Download & Share This Statement",body:"Download the full statement as a PDF to print, share, or send to legislators and medical associations.",type:"downloads",items:["Download Statement (PDF)|/statements/west-bank-annexation.pdf?v=20260724d"]},{body:"This statement is open for endorsement by medical associations, hospitals, universities, healthcare institutions, and healthcare professionals worldwide.",type:"callout"}],cta:{text:"Take Action: Write to Decision Makers",href:"/actions/abu-safiya-letters",note:"Use our ready-to-send letter templates and call scripts for U.S. and Canadian elected officials."}},"statements/national-appeal-to-trump":{title:"National Appeal to the Trump Administration",subtitle:"An open letter from Doctors Against Genocide calling on the administration to end U.S. complicity in the Gaza genocide.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"Summary",body:"Doctors Against Genocide, representing thousands of healthcare professionals across the United States, formally appeals to President Donald Trump and his administration to immediately end U.S. military and diplomatic supp
265ort for the ongoing genocide in Gaza, and to restore full, unrestricted humanitarian aid to the civilian population."},{heading:"The Medical Case",body:"The deliberate destruction of Gaza's healthcare system — carried out with U.S.-supplied weapons and diplomatic cover — constitutes complicity in medical genocide. The United States is obligated under the Leahy Law to withhold military assistance to units documented to have committed gross violations of human rights. DAG calls for immediate enforcement of this obligation.",type:"callout"},{heading:"Our Demands",type:"bullets",body:"The Trump Administration must:",items:["Immediately suspend all offensive military aid to Israel until a ceasefire is in place and humanitarian access is fully restored","Use all diplomatic means to secure the immediate release of detained healthcare workers","Support, not veto, UN Security Council ceasefire resolutions","Fund and facilitate a massive increase in humanitarian aid to Gaza","Support international accountability mechanisms including ICC proceedings"]},{heading:"The Stakes",body:"History has judged every nation that watched a genocide and did nothing. The United States has the power to stop this. Every day that power is not used, more children die. We are the healers. We will not be silent while our government funds preventable death."}],cta:{text:"Join Our Coalition — Take Action",href:"https://actionnetwork.org/forms/join-our-coalition-7/"}},"statements/forced-displacement":{title:"Genocide Is a Public Health Emergency",subtitle:"February 2025 — DAG declares that genocide, ethnic cleansing, and forced displacement are not only crimes against humanity but urgent public health crises.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"Genocide Is a Public Health Emergency",body:`As Doctors Against Genocide (DAG), we declare that genocide, ethnic cleansing, and forced displacement are not only crimes against humanity but also urgent public health crises. The deliberate destruction of civilian populations, healthcare infrastructure, and access to basic needs creates long-term medical, psychological, and societal devastation.
266
267The world is witnessing unprecedented humanitarian disasters in Palestine, Ukraine, Sudan, Congo and Indigenous and marginalized communities worldwide. The United States and Israeli governments have become global threats to health and security, committing war crimes, mass displacement, and systemic attacks on healthcare workers with impunity. International law, created after World War II to prevent these atrocities, is being dismantled. Failure to act now will set a precedent that endangers all of humanity.`},{heading:"DAG Strongly Condemns:",type:"bullets",body:"",items:["President Trump's call for the forced displacement and ethnic cleansing of Palestinians, which constitutes incitement to genocide and a grave violation of international law.","Threats against the International Criminal Court (ICC), undermining global accountability and creating a world where mass atrocity crimes go unpunished.","The ongoing oppression of Black communities — a legacy of slavery, segregation, mass incarceration, and state violence. Racism is a public health crisis. We demand full reparations for centuries of injustice.","The dehumanization and violence against migrant communities, including mass detention, deportation, family separation, and militarized border enforcement.","Ongoing genocide and land theft from Indigenous peoples, including treaty violations, forced displacement, and cultural erasure.","The marginalization and criminalization of LGBTQ+ and transgender communities, which fosters systemic violence and restricts access to healthcare, legal protections, and safety.","Repression of free speech, including the silencing of healthcare workers and advocates who expose systemic failures and mass atrocities."]},{heading:"DAG's Urgent Demands for Global Action:",type:"bullets",body:"",items:["Protection of Ceasefire and Civilians — Stop the ongoing genocide, forced displacement, and attacks on healthcare infrastru
267cture.","Deployment of International Peacekeeping Forces in Gaza and the West Bank — Urgent clearance of unexploded ordnance in Gaza. Protect civilians, medical workers, and humanitarian aid access while preventing further ethnic cleansing and ceasefire violations.","Impose immediate sanctions on Israeli settlers in the West Bank, who are carrying out violent displacement and ethnic cleansing in violation of international law.","Accountability for War Crimes and Crimes Against Humanity — Prosecute political leaders, military officials, weapons manufacturers, and institutions complicit in genocide.","End Military and Economic Support for Genocidal Regimes — Halt U.S. funding of mass atrocities and impose full economic, political, and diplomatic sanctions.","Recognition of Genocide as a Public Health Emergency — The medical community must document war crimes, refuse complicity, and mobilize global health resources to rebuild destroyed healthcare systems."]},{heading:"A Plea for Humanity",body:`The unchecked continuation of genocide, militarism, and state violence is not just a political crisis — it is a moral catastrophe and a global health emergency. Every moment of inaction costs lives, destroys communities, and destabilizes the world.
268
269Doctors Against Genocide refuses to be silent. The only cure for genocide is to end it.`,type:"callout"}],cta:{text:"Join Our Coalition — Take Action",href:"https://actionnetwork.org/forms/join-our-coalition-7/"}},"statements/ceasefire-in-gaza":{title:"DAG Statement on the Ceasefire in Gaza",subtitle:"Doctors Against Genocide welcomes the ceasefire while reaffirming that it cannot replace justice, accountability, and a complete dismantling of the frameworks that enabled the genocide.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"A Ceasefire Is Not Enough",body:`Doctors Against Genocide welcomes the news of a ceasefire in Gaza, as it provides relief for those who have endured unimaginable suffering. The genocide on the Palestinian people in Gaza has shattered all bounds of human decency, setting record levels of brutality: the most children killed and maimed, the most healthcare workers and journalists targeted, and the most hospitals destroyed in modern history. These are not just grim statistics — they are irrefutable proof of genocide. They demand urgent, unwavering global action to hold perpetrators accountable and prevent such atrocities from recurring.
270
271This ceasefire must not overshadow the systemic conditions — occupation, apartheid, dehumanization and the ongoing denial of basic human rights — that led to this genocide. A ceasefire cannot replace the urgent need for justice, accountability, and a complete dismantling of the frameworks that enabled the genocide.`},{heading:"Doctors Against Genocide Reaffirms Our Demands:",type:"bullets",body:"",items:["Immediate and Unconditional Release of Healthcare Workers — Free all detained healthcare workers, including Dr. Hussam Abu Safiya, and ensure their protection as mandated by international law.","Unrestricted Humanitarian Access — Allow immediate, unrestricted access for medical aid, humanitarian relief, and international observers in Gaza.","Immediate Deployment of Fact-Finding Teams — Independent teams to document war crimes and destruction, alongside international media to ensure accurate reporting.","Immediate Deployment of Recovery Support Teams — Ensure unrestricted access for specialized teams trained in genocide survivor support and recovery.","Reparations and Reconstruction of Gaza — Hold Israel and the United States accountable for rebuilding Gaza and providing reparations for the destruction of civilian infrastructure.","End the Occupation and Apartheid System — Dismantle the occupation and apartheid system that enable ongoing genocide and systemic violence against Palestinians in historic Palestine.","Support for ICC and ICJ Prosecutions — Provide full international support for the ICC and ICJ in prosecuting war crimes, crimes against humanity, and genocide.","Dismantlement of Illegal Settlements — Enforce the ICJ ruling to dismantle all illegal Israeli settlements, which perpetuate apartheid, ethnic cleansing, and systemic violence.","Suspension of Israel's UN Membership — Until it complies with international law and ceases violations of human rights and humanitarian law.","Decolonization of Medicine — Remove oppressive systems in global healthcare and hold institutions accountable for complicity in genocide."]},{heading:"Our Commitment",body:"Doctors Against Genocide will remain steadfast in fighting genocide anywhere in the world and standing in solidarity with all oppressed peoples.",type:"callout"}],cta:{text:"Join Our Coalition — Take Action",href:"https://actionnetwork.org/forms/join-our-coalition-7/"}},"statements/protect-kamal-adwan":{title:"Urgent Call to Protect Kamal Adwan Hospital",subtitle:"Ap
271peal to President-Elect Trump to take action to protect Kamal Adwan Hospital — December 21, 2024.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"Our Appeal — December 21, 2024",body:`On 12/21/24 we made an urgent appeal to President-Elect Donald Trump to intervene to stop the ongoing Israeli bombardment of Kamal Adwan Hospital in besieged northern Gaza.
272
273That past week, Doctor Abu Saffiyeh appealed to us to do everything in their power to save Kamal Adwan Hospital from annihilation. In the past 24 hours, the hospital had been targeted by tank shelling to the maternity and pediatric wards, surrounded by quadcopters and explosive-laden drones and put under total siege. Flames had permeated hospital walls, destroying entire sections and causing injuries to patients and staff. The staff and patients were deprived of food, oxygen, and medications.`},{heading:"Dr. Hussam Abu Safiya — Director of Kamal Adwan Hospital",body:'"What is happening right now, with the entire world as witnesses, is a huge transgression against the healthcare system as new weapons are being tested."',type:"quote"},{heading:"DAG Received Urgent Appeals",body:"Doctors Against Genocide received repeated appeals and an urgent voice message from Dr. Abu Saffiyeh calling on the global community to intervene to stop the bombardment of the hospital, protect the patients and the medical staff, and to allow relief supplies into besieged Kamal Adwan hospital and Northern Gaza.",type:"callout"},{heading:"Statement from DAG Co-Founders",body:`"We urgently call on President-Elect Donald Trump to intervene immediately to protect Kamal Adwan Hospital from the ongoing bombardment and attacks. Healthcare workers, patients, children, and even the maternity ward are under direct attack and threat, as urgently reported by Dr. Hussam Abu Safiya, the hospital's director. This is a critical moment to uphold the sanctity of life and safeguard the medical community, which the Biden administration has tragically failed to do."
274
275— Dr. Nidal Jboor and Dr. Karameh Kuemmerle-Hawash, Doctors Against Genocide co-founders.`,type:"quote"},{heading:"Not Another Child, Not Another Hospital",body:"This past month, we launched our Not Another Child Not Another Hospital campaign to demand immediate and decisive action to address Israel's ongoing atrocities in Gaza and escalating violence in the West Bank. An immediate stop to this medicide and genocide are the first steps to justice for this crime of genocide committed by the Israeli government."}],cta:{text:"Free Gaza Doctors — Take Action",href:"/actions/free-gaza-doctors"}},"statements/attacks-on-aid-workers":{title:"Statement on Israeli Attacks on Humanitarian Workers",subtitle:"April 4, 2024 — DAG responds to the killing of seven World Central Kitchen aid workers in a targeted Israeli airstrike.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"The Attack — April 1, 2024",body:'On April 1st, seven people working for the World Central Kitchen (WCK) were tragically targeted and killed by Israeli air strikes. Israeli Prime Minister Benjamin Netanyahu described the WCK strike as "unintentional," committing to an investigation. However, the incident was described by WCK CEO Erin Gore as a "targeted attack," emphasizing the gravity of the situation. WCK noted that they provided their coordinates to the Israeli government and they also set their logo on the top of the car to increase visibility.'},{heading:"A Pattern of Targeting Aid Workers",body:"This strike was the latest in a series of Israeli attacks targeting humanitarian aid and medical providers in Gaza and has since compelled several humanitarian organizations to suspend their operations. Since October, over 200 aid workers have been killed, significantly impacting the delivery of essential services to the besieged region and making it the deadliest year for aid workers ever. Furthermore, the attacks on aid workers have precipitated a halt in critical aid deliveries and aid operational services amidst an already dire humanitarian crisis.",type:"callout"},{heading:"Cascading Consequences",body:"The WCK announced the cessation of its activities in Gaza after these Israeli strikes killed six of its international workers along with a Palestinian aid worker accompanying them. UNRWA has repeatedly been targeted and has now been defunded by the U.S. rendering it unable to provide adequate aid to Gaza. The American Near East Refugee Aid organization and Project HOPE have similarly paused their operations, citing safety concerns for their personnel. This collective step back occurs at a pivotal moment, as Gaza faces the imminent threat of famine with millions depending on international aid."},{heading:"DAG's Call to Action",body:`The targeting of humanitarian workers and the subsequent disruption of aid underscore the full intentions of Israel in further escalating the severity of the food insecurity, causing a deadly famine and imposing untold suffering on Gaza's civilian population. The obstruction of humanitarian efforts not only exacerbates the suffering of civilians but also stands in violation of international law. The UN Security Council has called for the lifting of all barriers to humanitarian assistance, a mandate flouted by the Israeli government. Such actions have been identified as potential war crimes by the International Criminal Court.
276
277Israel cannot be allowed to continue to dismantle the food and health systems in their genocide of the Palestinian people. We call on our elected officials to demand accountability for these war crimes and to work to ensure the safety of humanitarian aid providers and medical providers in Gaza alike.`}],cta:{text:"Bread Not Bombs — Take Action",href:"/actions/bread-not-bombs"}},"statements/flour-massacre":{title:'Statement on the "Flour Massacre"',subtitle:"DAG responds to the killing of at least 112 Palestinians shot by Israeli forces while seeking food aid — and calls for an immediate ceasefire.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"The Flour Massacre",body:'As healthcare professionals deeply committed to safeguarding human life and dignity, we are horrified by the ongoing atrocities unfolding in Gaza. The recent onslaught by Israeli forces on Palestinians waiting for food aid, called the "flour massacre", has resulted in the tragic loss of at least 112 Palestinian lives, leaving 760 more wounded and in desperate need of care within a Palestinian healthcare system that has been severely incapacitated. This event epitomizes the appalling reality of indiscriminate Israeli violence and genocidal attacks and crimes against humanity.'},{heading:"Same Day: Compounding Atrocities",body:"On the same day, Israeli airstrikes and shelling further compounded the suffering, claiming the lives of at least 30 individuals in separate attacks on the Nuseirat, Bureij, and Khan Younis refugee camps in Gaza. The Gaza Health Ministry's harrowing report of six children succumbing to dehydration and malnutrition at Kamal Adwan and al-Shifa hospitals serves as a distressing reminder of the egregious disregard for the most vulnerable in society — a blatant violation of humanitarian law.",type:"callout"},{heading:'"Life Is Draining Out of Gaza"',body:'UN aid chief Martin Griffiths aptly summarized the gravity of the situation when he stated, "Life is draining out of Gaza at a terrifying speed." This underscores the dire consequences of the ongoing genocidal attacks on Palestinians in Gaza, with the death toll surpassing 30,000 and one in four Palestinians in Gaza at risk of starvation.'},{heading:"Witness Testimony",body:'"We went to get flour. The Israeli army shot at us. There are many martyrs on the ground and until this moment we are withdrawing them. There is no first aid."',type:"quote"},{heading:"DAG's Position: Ceasefire Now",body:"Given the current dire conditions, it is unconscionable that starving Palestinians are risking their lives to access food, only to face the threat of Israeli gunfire. Such barbaric actions are not just inhumane but constitute genocidal atrocities that demand immediate cessation. We urge the United States to leverage its influence to stand up for humanity and enforce a permanent, unconditional ceasefire. Anything less only deepens the complicity of the American government in the ongoing genocide of the Palestinian people. It's time for decisive action to end this carnage and senseless suffering."}],cta:{text:"Bread Not Bombs — Take Action",href:"/actions/bread-not-bombs"}},"statements/icj-ruling":{title:"Statement on ICJ Ruling in South Africa v. Israel",subtitle:"January 26, 2024 — The ICJ found that Israel is plausibly committing genocide in Gaza. Doctors Against Genocide calls for an immediate and permanent ceasefire.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"A Historic Ruling",body:`In a historic ruling, the International Court of Justice (ICJ) found that Israel is plausibly committing genocide in Gaza. This landmark ruling came as part of the provisional measures issued in the case of South Africa v. Israel, ordering Israel to take steps to prevent the genocide in Gaza. Doctors Against Genocide stands firmly with upholding human rights, protection of the sanctity of human lives and prevention of war crimes, crimes against humanity and genocide.
278
279The landmark ICJ decision represents a global call to action against genocide and for the protection of vulnerable communities worldwide. We call upon the healthcare community to stand with the ICJ in advocating for the effective implementation of these measures as we continue our mission to create a world where the health and human rights of every individual are safeguarded.`},{heading:"The Reality on the Ground",body:"Over the past several months Israel's genocidal war campaign has been catastrophic to the people of Gaza. Gaza is grappling with a severe healthcare crisis, as well as a drastic 94% reduction in water supply and widespread food insecurity. An alarming number of pregnant women suffer from anemia and starvation, heightening the risks associated with pregnancy and potentially causing developmental delays in children. The persistent displacement and unrelenting bombardment have inflicted profou
279nd psychological distress, exacerbating the overall crisis. Our members who are working with international NGOs to provide crucial medical care to the people of Gaza are horrified to see the hospitals they are supposed to be stationed at be shelled and attacked by the IDF.",type:"callout"},{heading:"Our Responsibility",body:`As the death toll surges as a result of constant Israeli bombardment and the injured remain without adequate care, the need for comprehensive support and intervention in Gaza becomes increasingly urgent.
280
281To halt this ongoing genocide, the ICJ ruling unequivocally emphasizes the necessity of a comprehensive ceasefire. It is our responsibility to advocate for an immediate and permanent ceasefire, facilitate unrestricted access to medical and humanitarian supplies and safe passage of healthcare professionals into conflict zones, and raise awareness about the far-reaching consequences of conflict on health and human rights. We as medical professionals possess the potential to enact change and uphold the dignity of all individuals.`},{heading:"Gratitude to South Africa",body:"Doctors Against Genocide extend gratitude to South Africa for leading the effort to bring the genocide case against Israel to the International Court of Justice, a crucial step in advancing justice, human rights and preventing the genocide of the Palestinian people. We urge politicians to stand with the ICJ and make the call for an immediate and permanent ceasefire, as that is the only way these rulings can be upheld."}],cta:{text:"Join Our Coalition — Take Action",href:"https://actionnetwork.org/forms/join-our-coalition-7/"}},"statements/starvation-genocide":{title:"Statement on Starvation Genocide",subtitle:"Doctors Against Genocide draws on the recognition of the Holodomor to name the deliberate weaponization of starvation against the people of Gaza.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"The Holodomor Recognized as Genocide",body:`The Parliamentary Assembly of the Council of Europe, on Thursday, October 12, 2023, formally recognized the 1930s Ukrainian famine, known as the "Holodomor," as an act of genocide during Soviet leader Joseph Stalin's regime. This significant resolution garnered overwhelming support, with 73 votes in favor and just one opposed during the Strasbourg meeting. It aligns with a similar resolution passed by the European Parliament in December of the previous year.
282
283The Holodomor, which translates to "death by starvation" in Ukrainian, is seen by Kyiv as a deliberate genocide orchestrated by Stalin's government with the specific aim of eradicating the peasantry. Stalin's brutal "collectivization" campaign forcibly seized grain and other food resources, leading to the starvation of millions.`},{heading:"Gaza as Holodomor",body:`Similarly, the genocide in Gaza is taking the form of "Holodomor". The effects of starvation and dehydration in Gaza are serious, immediate, and dire. Currently, supplies of food and clean water are nearly non-existent, with only a fraction of the necessary aid reaching through the borders. Israeli leaders have vowed to make Gaza uninhabitable and cutting food, water, electricity, and fuel is their winning strategy. As winter approaches, the situation worsens, compounded by unsafe and overcrowded shelters. Civilians face the imminent threat of starvation, which can have devastating effects on health and well-being. The World Food Programme's Executive Director, Cindy McCain, highlights the urgency of the situation, emphasizing the critical need for another operational border crossing to provide humanitarian access and deliver life-saving food to Gaza.`,type:"callout"},{heading:"The Reality on the Ground",body:"Families in Gaza are now left with just one loaf of bread per person per day, even in households with up to 80 people. Canned food supplies have run out, and essential items like milk, eggs, and cheese are unavailable. Flour, though available, is exorbitantly priced, with a single bag costing over $100. A black market for flour has emerged, and people are resorting to begging for food. This devastating reality paints a grim picture of the daily struggles faced by the people of Gaza."},{heading:"Health Effects of Dehydration and Starvation",body:`Dehydration places immense stress on the kidneys, straining their ability to filter waste and maintain electrolyte balance, and can lead to kidney damage or failure. Dehydration results in decreased blood volume, leading to low blood pressure, a rapid heart rate, and an increased risk of shock. Dehydration leads to severe electrolyte imbalances affecting all bodily functions including nerve and muscle function, and cognitive impairment.
284
285Starvation forces the body to break down muscle tissue for energy, resulting in muscle wasting and weakness. Nutritional deficiencies can cause various severe conditions, such as anemia, beriberi, and scurvy. Starvation weakens the immune system, increasing vulnerability to infections and illnesses. These combined effects lead to emaciation, gastrointestinal issues, psychological symptoms, and multiple organ damage — resulting in an exceptionally high mortality and morbidity rate that will have enduring consequences for generations to come.`},{heading:"This Is an Immediate Call for Ceasefire",body:"Urgent aid, including water and food, alongside medical intervention and nutritional support, is 
285imperative to save the survivors of this ongoing genocide. Doctors Against Genocide demand a swift end to the genocide of the Palestinian people.",type:"callout"}],cta:{text:"Bread Not Bombs — End the Siege",href:"/actions/bread-not-bombs"}},"statements/international-childrens-day":{title:"DAG Statement on International Children's Day: World Leaders Have Turned the World Into a Graveyard for Children",subtitle:'November 20, 2024 — Doctors Against Genocide calls on healthcare professionals and global citizens to join the "Not Another Child, Not Another Hospital" campaign.',category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"International Children's Day — November 20, 2024",body:`On this International Children's Day, Doctors Against Genocide (DAG) calls on healthcare professionals, institutions, and global citizens to join our "Not Another Child, Not Another Hospital" campaign. The ongoing slaughter in Palestine, Lebanon, and Sudan demands immediate global action.`},{heading:"A Graveyard for Children: The Systematic Crime of Pedicide",body:`Over 20,000 children have been killed in Gaza and Lebanon in the past year. UNICEF has declared Gaza a "graveyard for children" and the UN has described Israel's deliberate bombings as a "war on children." These atrocities go beyond tragic casualties — they constitute pedicide, the deliberate targeting and systematic destruction of children, their family units, and their futures as a tool of warfare.
286
287The relentless genocide in Gaza has forged a harrowing reality: the largest cohort of pediatric amputees in history. Women are forced to deliver infants without anesthesia, bringing them into a world UNICEF chillingly describes as "being born into hell." Over 135,000 children under two teeter on the brink of severe malnutrition, while countless others languish in makeshift shelters, deprived of safe water and sufficient food.`,type:"callout"},{heading:"Sudan: The World's Largest Child Displacement Crisis",body:`Sudan is today the world's largest child displacement crisis. Over 14 million children are in need of humanitarian assistance, with 4.6 million displaced from their homes and nearly 1 million seeking refuge across borders. Acute malnutrition, preventable diseases, and a crumbling healthcare system are putting millions of children's lives at risk. Education is under attack, with 17 million children out of school.
288
289Pedicide is not collateral damage — it is a deliberate act aimed at destroying an entire generation. It is a moral catastrophe, demanding accountability and immediate global action. Silence in the face of pedicide is complicity.`},{heading:"Medicide: The Destruction of Healthcare",body:"Medicide is the systematic destruction of healthcare infrastructure and the targeting of medical professionals to annihilate a population's ability to sustain life and health. Over 2,200 healthcare workers have been killed, maimed, or injured while performing their protected duties — treating patients, delivering humanitarian aid, and bearing witness to atrocities. The global medical community remains largely silent in the face of these crimes. It is t
289ime to call this by its name: medicide. Silence is complicity."},{heading:"A Call to Action",type:"bullets",body:"On this International Children's Day, we urge healthcare professionals and institutions worldwide to:",items:["Demand an Immediate Ceasefire and an End to Genocide.","Protect children, hospitals, and healthcare workers.","Allow unhindered humanitarian aid and rebuild healthcare systems in Gaza, Lebanon, and Sudan.",'Join the "Not Another Child, Not Another Hospital" campaign.']},{heading:"In Memory",body:`As Dr. Mahmoud Abu Nujaila, a physician in Gaza, wrote before he was killed in an Israeli airstrike: "Whoever stays until the end, will tell the story. We did what we could. Remember us."
290
291We owe it to these healthcare workers, the children, and the future generations to carry their stories, to demand justice, and to act decisively to prevent further atrocities.`,type:"quote"}],cta:{text:"No Child A Target — Take Action",href:"/actions/no-child-a-target"}},"statements/nasser-hospital":{title:"Statement on War Crimes at Nasser Hospital",subtitle:"February 21, 2024 — DAG condemns the vicious and illegal Israeli Army raid on Nasser Hospital in Khan Younis, Gaza Strip.",category:"Statement",heroColor:"bg-zinc-900",sections:[{heading:"The Raid — February 18, 2024",body:`On February 18th, the Israeli Army conducted a vicious and illegal raid on Nasser Hospital in Khan Younis, Gaza Strip. Israeli forces bombed the hospital, hitting patient wards and killing an already injured patient on his hospital bed and injuring several. They shot into the hospital, injuring two children and a physician. They cut off electricity and oxygen to the hospital which led to the deaths of six adult ICU patients and three neonatal ICU patients due to the lack of oxygen. The attack left Nasser Hospital out of service and led to the abduction of 71 medical personnel as well as 150 patients.
292
293This is the latest war crime in Israel's systemic attack on Gaza's healthcare system.`},{heading:"International Law Is Clear",body:`According to Article 18 of the Fourth Geneva Convention, "Civilian hospitals organized to give care to the wounded and sick, the infirm and maternity cases, may in no circumstances be the object of attack, but shall at all times be respected and protected by the Parties to the conflict."
294
295Israel has defied international law and has systematically destroyed the entire healthcare infrastructure in Gaza, using misinformation to justify these war crimes and leveraging their history of impunity to conduct them.`,type:"callout"},{heading:"Abduction and Humiliation of Medical Personnel",body:"In this latest assault on Nasser Hospital, doctors were abducted and stripped down in the cold as a form of public humiliation by Israeli forces. Patients were also forcibly extracted from their medical beds and hauled into military vehicles. The whereabouts of the physicians and patients are unknown. We fear the worst for our colleagues and patients as reports by released captives demonstrate torture by Israeli forces. Israel has a track record of not just targeting health workers, but also killing, starving and torturing them. The US government cannot remain silent in the face of these repeated war crimes by Israel."},{heading:"Hospitals Targeted by Israeli Forces (partial list):",type:"bullets",body:"",items:["Baptist Al-Ahli Hospital","Turkish-Palestine Friendship Hospital","The Indonesian Hospital","Al-Shifa Medical Complex","Al-Khidma Public Hospital","Al-Quds Hospital","Qatar Hospital","Al-Wafaa Rehabilitation Hospital","The International Eye Care Center","Red Crescent Society","Kamal Edwan Hospital","Al-Dawly Maternal Hospital","Al-Nassr Hospital","Nasser Hospital","Rantissi Children's Hospital","Asdeqaa Al Mareed Hospital"]},{heading:"DAG's Demands",type:"bullets",body:"We must stand against this systemic assault on healthcare and demand the following:",items:["Call for the immediate release of the medical personnel and patients abducted by Israeli forces.","Call for an immediate ceasefire to allow much needed aid to safely reach all parts of Gaza.","Call for Israeli accountability for these war crimes. Their military leaders need to be tried in a court of law."]}],cta:{text:"Free Gaza Doctors — Take Action",href:"/actions/free-gaza-doctors"}},"education/anti-palestinian-racism":{title:"Anti-Palestinian Racism",subtitle:"Anti-Palestinian racism is fueling genocide — it's time to speak out.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"The Rise of Anti-Palestinian Racism",body:`The rise of anti-Palestinian racism has been exacerbated by the alarming spread of genocidal rhetoric within media platforms and politicians, Israeli and Western alike. This has intensified tensions and fostered a hostile environment within communities around the world. This rise of hate has perpetuated harmful stereotypes and dehumanized the Palestinian people and those with Palestinian origins and/or pro-Palestinian political beliefs. Tragically, this rhetoric has had devastating consequences, as seen in the hateful murder of 6 year old Wadea Al Fayoume in Chicago on October 14th and the shooting attack on three Keffiyeh-wearing Palestinians in Burlington. These dangers are not just physical, but also political as various organizations and people have been censured on college campuses and professional environments alike due to their Pro-Palestinian political beliefs.
296
297These events highlight the urgent need to address the role of media in shaping public perceptions and to counteract the dissemination of harmful narratives that can lead to real-world violence. As Doctors Against Genocide we work to promote understanding, empathy, as well as to educate people about the dangers of anti-Palestinian Racism in order to work towards a more inclusive society that values the dignity and rights of all individuals, regardless of their background or ethnicity.`},{heading:"What Is Anti-Palestinian Racism?",body:`Anti-Palestinian racism is a form of anti-Arab racism that silences, excludes, stereotypes, erases, defames, or dehumanizes Palestinians or their narratives. Palestinians will face anti-Palestinian racism in addition to any racism they face because they are Muslim, or perceived as Muslim.
298
299Anti-Palestinian racism takes various forms, including:`,type:"bullets",items:["Denying the Nakba and justifying violence against Palestinians","Failing to acknowledge Palestinians as an indigenous people with a collective identity, belonging and rights in relation to occupied and historic Palestine","Erasing the human rights and equal dignity and worth of Palestinians","Excluding or pressuring others to exclude Palestinian perspectives, Palestinians, and their allies","Defaming Palestinians and their allies with slander such as being inherently antisemitic, a terrorist threat/sympathizer, or opposed to democratic values"]},{type:"image",src:"/anti-palestinian-racism-dag.png",alt:"DAG infographic: What is Anti-Palestinian Racism? Defining forms and manifestations of APR, sourced from CANArab Law.",caption:"Source: www.canarablaw.org · Doctors Against Genocide"}],cta:{text:"Explore the CANArab APR Resource",href:"https://www.canarablaw.org",note:"Full Anti-Palestinian Racism framework and toolkit by the Canadian Arab Lawyers Association."}},"education/medical-genocide-definition":{title:"Medical Definition of Genocide",subtitle:"First drafted January 15, 2025 — Doctors Against Genocide.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Definition",body:`Genocide is the deliberate and systematic destruction, in 
299whole or in part, of a people based on their group identity. From a medical and public health perspective, genocide should be recognized as a disease inflicted on the victim's society, resulting in catastrophic public health consequences. It is characterized by widespread physical and psychological harm, including persecution, killings, torture, deprivation of essential resources (such as food, water, or healthcare), forced displacement, and the destruction of cultural and social structures.
300
301Genocide is a significant public health threat, triggering long-term crises such as severe mental trauma for survivors and communities, generational trauma, mental health disorders, displacement-related illnesses, and the breakdown of healthcare infrastructure. It also fosters conditions that facilitate the spread of infectious diseases, malnutrition, and chronic illnesses, particularly among displaced and marginalized populations.
302
303Recognizing genocide as a disease underscores the urgency for interdisciplinary preventive strategies, integrating healthcare, policymaking, and education to halt its progression and mitigate its devastating public health impacts.`},{heading:"Genocide as a Disease",body:`Genocide is a profound pathology of the perpetrator's society, rooted in cultural dysfunction, indoctrination, and an inability to self-regulate, leading to direct, severe, and catastrophic impacts on its victims. Perpetrators are not irrational but calculated and emotionally detached, often displaying traits consistent with Antisocial and Narcissistic Personality Disorders or sociopathy.
304
305Like any disease, genocide has identifiable signs and symptoms that allow for early recognition, diagnosis, and intervention. Genocide, like an epidemic, thrives in environments of systemic neglect, inequality, and hatred. It requires a medical approach to focus not only on treatment but also on early detection, intervention, and prevention. Since the 20th century, genocide has taken more lives than wars and pandemics combined, underscoring its unparalleled impact on public health.`,type:"callout"},{heading:"Low Diagnostic Threshold",body:`Early detection of genocide's major risk factors — including dehumanization, discrimination, persecution, and polarization — ensures that action is taken at the earliest credible signs of mass violence or systemic oppression.
306
307Delays in recognition — whether due to political hesitation, systemic racism, apathy, or rigid legal frameworks — lead to catastrophic loss of life, an outcome the medical community has an ethical duty to prevent.`},{heading:"Intent vs. Impact",body:`Proving intent should not be a prerequisite for intervention. This legalistic requirement often delays lifesaving actions.
308
309Instead, the focus should be on observable impacts — such as mass deaths, severe bodily harm, displacement, and the imposition of conditions intended to bring about the destruction of life in whole or in part — which are undeniable markers of a crisis requiring immediate action.`},{heading:"Prevention as a Medical Imperative",body:`International laws, regulations, and frameworks should prioritize prevention over retrospective adjudication. The medical framework aims to overcome the current political intransigence and protracted legal process that cost time and life.
310
311The global community must adopt a health-oriented approach focused on the duty to prevent and protect, regardless of whether intent is conclusively proven.`},{heading:"Manufactured Consent and the Role of Media",body:`The media plays a pivotal role in shaping public opinion, often functioning as a powerful tool for manufacturing consent for policies and actions that lead to mass atrocities. This manufactured consent fosters a culture of apathy or tacit approval, obscuring the moral and ethical consequences of these actions.
312
313Any loss of lives and livelihoods is intolerable and unjustifiable, regardless of political, social, or economic contexts. This perspective underscores the sanctity of human life and reinforces the moral obligation to take action.`},{heading:"Need for an Independent International Medical Body",body:"The paradigm of intervention for genocide must address both the victimized group and the perpetrating entity. This framework emp
313hasizes the necessity of an independent international medical body tasked with:",type:"bullets",items:["Monitoring and Prediction: Using data-driven methods to identify early signs of genocide or mass atrocities","Prevention: Developing and implementing interventions to stop escalation, as well as to provide life-saving care","The power to declare an impending or ongoing genocide based on medical and humanitarian evidence","The ability to mobilize international resources and interventions, including medical, logistical, and protective measures","The authority to hold governments and entities accountable for acts that contribute to genocide or hinder prevention efforts"]},{heading:"International Law Reform",body:"Current international laws, often bound by strict definitions of intent, must evolve to reflect the medical definition of genocide. Legal frameworks should align with public health principles, prioritizing rapid response, risk reduction, and proactive accountability."},{heading:"Training and Democratizing Knowledge for Early Detection",body:"Healthcare workers often lack the training to recognize evidence of mass atrocities or indiscriminate violence. Standardizing education to democratize knowledge — emphasizing training on early warning signs and disentangling trauma care from militaristic frameworks — would empower doctors to independently and ethically raise credible alerts, reducing instances of genocide denial among individual healthcare workers and institutions."},{heading:"Conclusion",body:`The medical framework for genocide prevention must take its rightful place within the international community and lead global efforts to prevent genocide. By adopting this framework and establishing an independent international medical body with executive powers, the global medical community can transform its response to atrocities. This approach ensures that mass violence and systemic oppression are addressed with the urgency, precision, and authority they demand, safeguarding human dignity and preventing future atrocities.
314
315Doctors Against Genocide is collaborating with experts in international law, genocide studies, medical ethics, education, and United Nations representatives to implement this definition and ensure its effectiveness.`,type:"callout"}],cta:{text:"Contact DAG Leadership",href:"mailto:[email protected]"}},"education/economy-of-genocide":{title:"The Shadow Economy and Price Inflation in Wars: An In-Depth Look at Gaza",subtitle:"By Eyad Amawi — Journalist and Gaza Middle Area Community Humanitarian Coordinator. August 17, 2025.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Wars Create a Parallel Economy",body:`Under normal conditions, markets reflect the balance between supply and demand within a structured system of production and distribution. During wars and blockades, this balance collapses, giving rise to what is known as the shadow or phantom economy.
316
317In this parallel economy: production is no longer central; activity revolves around trading whatever is available through monopolization or black markets. The economy expands in numerical terms, yet shrinks in real value of goods and services. A small group of profiteers and brokers emerges, enriching themselves at the expense of the suffering majority.`},{heading:"How the Shadow Economy Operates in Gaza",type:"bullets",body:"Several mechanisms are particularly visible in Gaza:",items:["Scarcity as fuel for inflation: Every rare item — flour, oil, or medicine — becomes an object of extreme price hikes.","Currency distortions: With reduced cash flow, goods skyrocket in price relative to local income, eroding purchasing power.","Black market networks: Informal and unregulated supply chains emerge, reinforcing the shadow economy.","Starvation as policy: Price inflation pushes people toward displacement or surrender.","Control of supply routes: Authorities at border crossings dictate what enters, in what quantity, and when.","Societal weakening: When families are consumed with finding food at any cost, their collective ability to resist diminishes."]},{heading:"Social Impact of Inflation",type:"bullets",body:"",items:["Collapse of the middle class: Families that could previously endure are no longer able to keep up with rising costs.","Deepening inequality: A small minority profits from imports and monopolies while the vast majority struggles for bread.","Shift in consumption patterns: People turn to poor-quality or nutritionally weak substitutes simply to survive.","Breakdown of trust: Communities view traders or certain actors as profiteers exploiting widespread suffering."]},{heading:"The Economy as a Weapon of War",body:"The shadow economy in Gaza is not merely a spontaneous byproduct of the blockade — it functions as a deliberate weapon. Price inflation pushes people toward displacement or surrender. Control of supply routes allows authorities at border crossings to dictate what enters, in what quantity, and when. When families are consumed with finding food at any cost, their collective ability to resist diminishes.",type:"callout"},{heading:"Future Consequences",type:"bullets",body:"If the current trajectory continues, the consequences will be dire:",items:["Prolonged famine: Rising mortality, especially among children and the sick.","Total collapse of the local economy: No production, no formal trade — only black market survival.","Compound social crises: Internal displacement, family breakdown, and rising crime rates."]},{heading:"Pathways for Response",type:"bullets",body:"Addressing the shadow economy and inflation requires urgent measures:",items:["Open safe humanitarian corridors for food and medicine, bypassing intermediaries.","Monitor aid distribution to prevent diversion into markets.","Establish free or subsidized distribution centers in displacement areas and impoverished neighborhoods.","Document economic violations and submit them to international bodies as part of war crime evidence."]},{heading:"Conclusion",body:"The shadow economy in Gaza is not just an economic crisis — it is a deliberate mechanism of starvation, a weapon of war as de
317structive as bombs and shells. Accelerating inflation traps civilians between poverty and hunger, and demands urgent international intervention to guarantee direct aid delivery and dismantle the black market system that perpetuates the catastrophe.",type:"callout"}],cta:{text:"Join Our Coalition",href:"https://actionnetwork.org/forms/join-our-coalition-7/"}},"education/webinars":{title:"DAG Webinars",subtitle:"Educational webinar recordings from Doctors Against Genocide — available on the DAG YouTube channel.",category:"Education",heroColor:"bg-zinc-900",sections:[{heading:"Watch on YouTube",body:"Doctors Against Genocide hosts regular webinars with frontline physicians, public health professionals, and advocates. All recordings are available on the DAG YouTube channel."}],cta:{text:"Watch All Webinars on YouTube",href:"https://www.youtube.com/@DoctorsAgainstGenocide"}},"actions/signs-and-print-outs":{title:"Signs & Print Outs",subtitle:"Downloadable advocacy signs and print materials from Doctors Against Genocide.",category:"Action",heroColor:"bg-zinc-900",pageBg:"bg-[#e84e36]",sections:[{heading:"Free Them All: Detained Doctors Poster Set",body:"18 print-ready posters honoring Gaza's detained and killed doctors: 16 posters of doctors still held in Israeli detention, including Dr. Hussam Abu Safiya, and 2 memorial posters for Dr. Iyad Al-Rantisi and Dr. Adnan Al-Bursh, who died in Israeli custody. Print them for rallies, vigils, hospital actions, and community events. Each poster is sized 12 x 18 inches.",type:"downloads",items:["Free Them All Poster Set, 18 Posters (PDF, 12 x 18 in)|/dag-free-them-all-posters.pdf"]},{heading:"Vinyl Banners",body:'Seven large-format banner designs for marches, vigils, and white coat actions, including "We Are Sick From Genocide", "End Genocide", and "Not Another Child, Not Another Hospital". Sized for vinyl banner printing at 8 ft x 2 ft (96 x 24 inches).',type:"downloads",items:["Vinyl Banner Set, 7 Designs (PDF, 8 ft x 2 ft)|/print-outs/dag-vinyl-banners.pdf"]},{heading:"Bread Not Bombs Signs",body:'Eight letter-size protest signs from the Bread Not Bombs campaign: "Bread Not Bombs", "End Starvation, Let Bread In", and "Let the Children Eat, Let the Children Live". Print at home on standard 8.5 x 11 paper.',type:"downloads",items:["Bread Not Bombs Signs, 8 Pages (PDF, letter size)|/print-outs/dag-bread-not-bombs-signs.pdf"]},{heading:"Humanitarian Aid Signs",body:'Eleven letter-size signs demanding humanitarian access for Gaza: "Let Tents In", "Let Aid In", "Open the Borders", "Let Mobile Homes In", "Gaza Children Are Freezing", "End Starvation, Let Bread In", and "Stop Genocide, End Occupation". Print at home on standard 8.5 x 11 paper.',type:"downloads",items:["Humanitarian Aid Signs, 11 Pages (PDF, letter size)|/print-outs/dag-humanitarian-aid-signs.pdf"]},{heading:"Action Printouts: Pop-Up Clinic and Vigil Playcards",body:'A 22-page set of "Sick From Genocide" playcards for protests, vigils, and Kamal Adwan pop-up clinic actions, including symptom cards that connect the health consequences of genocide to the demand to end it.',type:"downloads",items:["Pop-Up Clinic and Vigil Playcards, 22 Pages (PDF, letter size)|/print-outs/dag-popup-clinic-playcards.pdf"]},{type:"image",src:"/print-outs/dag-white-coat-action.jpg",alt:"Doctors Against Genocide physicians in white coats gathered at a white coat action",caption:"DAG physicians and healthcare workers at a white coat action. Print the materials above and bring them to your next event."}]}};function Gl(e){const a=/\[([^\]]+)\]\(([^)]+)\)/g,s=[];let o=0,c;for(;(c=a.exec(e))!==null;)c.index>o&&s.push(e.slice(o,c.index)),s.push(r.jsx("a",{href:c[2],target:"_blank",rel:"noopener noreferrer",className:"underline decoration-zinc-400 underline-offset-2 hover:text-primary hover:decoration-primary transition-colors",children:c[1]},c.index)),o=c.index+c[0].length;return o<e.length&&s.push(e.slice(o)),s.length===0?e:s.length===1?s[0]:r.jsx(r.Fragment,{children:s})}function Se(){const[,e]=Hb("/:section/:slug"),[,a]=Hb("/:section"),s=e?`${e.section}/${e.slug}`:a?a.section:"",o=b6[s],c=!!o?.pageBg;if(!o)return r.jsxs("div",{className:"min-h-screen bg-[#f5f3ef] flex flex-col",children:[r.jsx(Pn,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center px-6",children:[r.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Page Not Found"}),r.jsx("p",{className:"text-zinc-600 mb-8",children:"This page hasn't been built yet or the URL is incorrect."}),r.jsxs(Pe,{href:"/",className:"inline-flex items-center gap-2 bg-primary text-white px-6 py-3 rounded-lg font-semibold hover:bg-primary/90 transition-colors",children:[r.jsx(ec,{className:"w-4 h-4"})," Back to Home"]})]})}),r.jsx(Gn,{})]});const h=o.cta?.href.includes(".pdf")?o.cta:void 0,u=o.viewerImages??[],p=Array.from({length:Math.ceil(u.length/2)},(m,g)=>({left:u[g*2],right:u[g*2+1],firstPage:g*2+1}));return r.jsxs("div",{className:`min-h-screen ${o.pageBg??"bg-[#f5f3ef]"} flex flex-col`,children:[r.jsx(Pn,{}),r.jsx("div",{className:"bg-black text-white pb-20 px-6 lg:px-12 pt-[calc(var(--app-header-h,10rem)+2.5rem)]",children:r.jsx("div",{className:`${o.heroImage?"max-w-6xl":"max-w-4xl"} mx-auto`,children:r.jsxs(pe.div,{initial:{opacity:0,y:20}
317,animate:{opacity:1,y:0},transition:{duration:.5},className:o.heroImage?"grid items-center gap-10 md:grid-cols-[minmax(0,1fr)_17rem]":void 0,children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm mb-6",children:[r.jsx(Pe,{href:"/",className:"hover:text-white transition-colors",children:"Home"}),r.jsx("span",{children:"/"}),r.jsx("span",{className:"text-primary font-semibold",children:o.category})]}),r.jsx("h1",{className:"text-3xl md:text-5xl font-bold font-serif-heading leading-tight mb-6",children:o.title}),r.jsx("p",{className:"text-xl text-zinc-300 leading-relaxed max-w-3xl",children:o.subtitle}),o.date&&r.jsx("p",{className:"text-sm text-zinc-400 mt-4",children:o.date}),o.enableEndorsements&&r.jsxs("a",{href:"#endorse",className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-bold px-6 py-3 rounded-lg transition-colors mt-8",children:["Endorse This Statement ",r.jsx(Ze,{className:"w-4 h-4"})]})]}),o.heroImage&&r.jsx("div",{className:"flex justify-center md:justify-end",children:r.jsx("img",{src:o.heroImage,alt:o.title,className:"h-72 w-full max-w-[17rem] object-cover object-center shadow-2xl md:h-80"})})]})})}),r.jsx("main",{className:"flex-1 py-16 px-6 lg:px-12",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs(Pe,{href:"/",className:`inline-flex items-center gap-2 transition-colors text-sm font-medium mb-6 group ${c?"text-white/80 hover:text-white":"text-zinc-500 hover:text-zinc-900"}`,children:[r.jsx(ec,{className:"w-4 h-4 group-hover:-translate-x-0.5 transition-transform"}),"Back to Home"]}),h&&r.jsxs("div",{className:"mb-12 flex flex-wrap gap-3",children:[r.jsxs("a",{href:h.href,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-2 font-semibold px-4 py-2.5 rounded-lg text-sm transition-colors ${c?"bg-white text-primary hover:bg-white/90 shadow-sm":"bg-primary/10 border border-primary/30 hover:bg-primary/20 text-primary"}`,children:[r.jsx(na,{className:"w-4 h-4"}),h.text]}),o.viewerImages&&r.jsx(x6,{})]}),h&&r.jsxs("section",{className:"mb-12","aria-labelledby":"full-report-heading",children:[r.jsx("h2",{id:"full-report-heading",className:"text-2xl font-bold text-zinc-900 mb-4 font-serif-heading",children:"View Full Report"}),o.viewerImages?r.jsx(v6,{spreads:p,pageCount:o.viewerImages.length,linkMapUrl:o.viewerLinkMap}):r.jsx("div",{className:"overflow-hidden rounded-xl border border-zinc-200 bg-white shadow-sm",children:r.jsx("iframe",{src:h.href,title:"Full report PDF",className:"block h-[720px] w-full sm:h-[900px]",loading:"lazy"})})]}),r.jsx("div",{className:"space-y-12",children:o.sections.map((m,g)=>m.type==="quote"?r.jsxs(pe.blockquote,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},className:"border-l-4 border-primary bg-white p-8 rounded-r-xl shadow-sm",children:[m.heading&&r.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-primary mb-3",children:m.heading}),r.jsx("p",{className:"text-zinc-700 text-lg italic leading-relaxed",children:Gl(m.body??"")}),m.attribution&&r.jsx("p",{className:"mt-3 text-sm italic text-zinc-500",children:m.attribution})]},g):m.type==="downloads"?r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[m.heading&&r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-3 font-serif-heading",children:m.heading}),m.body&&r.jsx("p",{className:"text-zinc-700 leading-relaxed mb-6",children:m.body}),m.items&&r.jsx("div",{className:"flex flex-col sm:flex-row gap-3",children:m.items.map((y,b)=>{const[v,S]=y.split("|");return S?.startsWith("/")&&!S.includes(".pdf")?r.jsxs(Pe,{href:S,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-semibold px-6 py-3 rounded-lg transition-colors",children:[v,r.jsx(Ze,{className:"w-4 h-4"})]},b):r.jsxs("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-semibold px-6 py-3 rounded-lg transition-colors",children:[r.jsx(na,{className:"w-4 h-4"}),v]},b)})})]},g):m.type==="links"?r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[m.heading&&r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-3 font-serif-heading",children:m.heading}),m.body&&r.jsx("p",{className:"text-zinc-700 leading-relaxed mb-6",children:m.body}),m.items&&r.jsx("div",{className:"flex flex-col sm:flex-row flex-wrap gap-3",children:m.items.map((y,b)=>{const[v,S]=y.split("|");return S?.startsWith("/")?r.jsxs(Pe,{href:S,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-semibold px-6 py-3 rounded-lg transition-colors",children:[v,r.jsx(Ze,{className:"w-4 h-4"})]},b):r.jsxs("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-semibold px-6 py-3 rounded-lg transition-colors",children:[v,r.jsx(yt,{className:"w-4 h-4"})]},b)})})]},g):m.type==="letter"?r.jsx(w6,{section:m},g):m.type==="image"?r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:`bg-white rounded-xl overflow-hidden border border-zinc-200 shadow-sm ${m.variant==="portrait"?"max-w-xs mx-auto":""}`,children:[m.heading&&r.jsx("p",{className:"text-sm font-semibold text-zinc-500 uppercase tracking-wide px-4 pt-4",children:m.heading}),r.jsx("img",{src:m.src,alt:m.alt??m.heading??"",className:"w-full h-auto"}),m.caption&&r.jsx("p",{className:"text-xs text-zinc-400 px-4 py-2 border-t border-zinc-100",children:m.caption})]},g):m.type==="video"?r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[m.heading&&r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-4 font-serif-heading",children:m.heading}),m.body&&r.jsx("p",{className:"text-zinc-700 leading-relaxed text-lg mb-6",children:Gl(m.body)}),m.src?.endsWith(".mp4")?r.jsx(q1,{src:m.src,poster:m.poster,title:m.alt??m.heading??"Video"}):r.jsx("div",{className:"relative aspect-video w-full rounded-xl overflow-hidden border border-zinc-200 shadow-sm bg-black",children:r.jsx("iframe",{src:m.src,title:m.alt??m.heading??"Video",className:"absolute inset-0 w-full h-full",loading:"lazy",allow:"autoplay; fullscreen"})}),m.caption&&r.jsx("p",{className:"text-sm text-zinc-500 mt-3",children:m.caption})]},g):m.type==="videoUpload"?r.jsx("div",{id:m.anchor,className:"scroll-mt-24",children:r.jsx(y6,{})},g):m.type==="callout"?r.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"bg-primary/10 border border-primary/20 rounded-xl p-8 flex gap-4",children:[r.jsx(Bf,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[m.heading&&r.jsx("h2",{className:"text-xl font-bold text-zinc-900 mb-3 font-serif-heading",children:m.heading}),r.jsx("p",{className:"text-zinc-700 leading-relaxed",children:Gl(m.body??"")})]})]},g):r.jsxs(pe.div,{id:m.anchor,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:m.anchor?"scroll-mt-24":void 0,children:[m.heading&&r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-4 font-serif-heading",children:m.heading}),m.body&&r.jsx("p",{className:"text-zinc-700 leading-relaxed text-lg mb-4",children:Gl(m.body)}),m.type==="bullets"&&m.items&&(m.collapsible?r.jsxs("details",{className:"group mt-4 border border-zinc-200 rounded-xl bg-white overflow-hidden",children:[r.jsxs("summary",{className:"flex items-center justify-between gap-3 px-5 py-4 cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden font-semibold text-zinc-900 hover:bg-zinc-50 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary",children:[r.jsx("span",{children:m.collapseLabel||`Show all ${m.items.length} members`}),r.jsx(bi,{className:"w-5 h-5 text-zinc-500 flex-shrink-0 transition-transform group-open:rotate-180"})]}),r.jsx("ul",{className:"space-y-3 px-5 pb-5 pt-1 border-t border-zinc-100",children:m.items.map((y,b)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-primary mt-2.5 flex-shrink-0"}),r.jsx("span",{className:"text-zinc-700 leading-relaxed",children:y})]},b))})]}):r.jsx("ul",{className:"space-y-3 mt-4",children:m.items.map((y,b)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-primary mt-2.5 flex-shrink-0"}),r.jsx("span",{className:"text-zinc-700 leading-relaxed",children:y})]},b))}))]},g))}),o.enableEndorsements&&r.jsx(f6,{statementSlug:s}),o.cta&&r.jsxs(pe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mt-16 bg-black text-white rounded-2xl p-10 flex flex-col md:flex-row items-center justify-between gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-white font-bold text-xl mb-1",children:o.cta.text}),o.cta.note&&r.jsx("p",{className:"text-zinc-400 text-sm",children:o.cta.note})]}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 flex-shrink-0",children:[o.cta.href.endsWith(".pdf")?r.jsxs("a",{href:o.cta.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-bold px-8 py-4 rounded-xl transition-colors whitespace-nowrap",children:[o.cta.text," ",r.jsx(na,{className:"w-5 h-5"})]}):o.cta.href.startsWith("/")?r.jsxs(Pe,{href:o.cta.href,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-bold px-8 py-4 rounded-xl transition-colors whitespace-nowrap",children:[o.cta.text," ",r.jsx(Ze,{className:"w-5 h-5"})]}):r.jsxs("a",{href:o.cta.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-bold px-8 py-4 rounded-xl transition-colors whitespace-nowrap",children:[o.cta.text," ",r.jsx(yt,{className:"w-5 h-5"})]}),o.secondaryCta&&(o.secondaryCta.href.endsWith(".pdf")?r.jsxs("a",{href:o.secondaryCta.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-zinc-700 hover:bg-zinc-600 text-white font-bold px-8 py-4 rounded-xl transition-colors whitespace-nowrap",children:[o.secondaryCta.text," ",r.jsx(na,{className:"w-5 h-5"})]}):r.jsxs("a",{href:o.secondaryCta.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-zinc-700 hover:bg-zinc-600 text-white font-bold px-8 py-4 rounded-xl transition-colors whitespace-nowrap",children:[o.secondaryCta.text," ",r.jsx(yt,{className:"w-5 h-5"})]}))]})]}),r.jsxs("div",{className:`mt-16 pt-12 border-t ${c?"border-white/30":"border-zinc-200"}`,children:[r.jsx("h3",{className:`text-lg font-bold mb-6 ${c?"text-white":"text-zinc-900"}`,children:"Continue Exploring"}),r.jsx("div",{className:"flex flex-wrap gap-3",children:[["/#education","Education Resources"],["/#advocacy","Take Action"],["/#community-support","Donate"],["/#get-involved","Get Involved"]].map(([m,g])=>r.jsx(Pe,{href:m,className:`inline-flex items-center gap-2 border px-4 py-2 rounded-lg text-sm font-medium transition-colors ${c?"border-white/40 text-white hover:border-white hover:bg-white/10":"border-zinc-300 text-zinc-700 hover:border-primary hover:text-primary"}`,children:g},m))})]})]})}),r.jsx(Gn,{})]})}function qx({image:e,pageNumber:a,eager:s=!1,links:o=[],pageRef:c,onNavigate:h}){return r.jsxs("figure",{ref:c,className:"scroll-mt-28 overflow-hidden rounded-xl border border-zinc-200 bg-white shadow-sm",children:[r.jsxs("div",{className:"relative aspect-[1020/1320]",children:[r.jsx("img",{src:e,alt:`Full report, page ${a}`,className:"absolute inset-0 block h-full w-full object-contain",loading:s?"eager":"lazy"}),o.map((u,p)=>{const m={left:`${u.left}%`,top:`${u.top}%`,width:`${u.width}%`,height:`max(${u.height}%, 1rem)`,transform:"translateY(-0.2rem)"},g="absolute z-10 rounded-sm outline-none transition hover:bg-primary/10 focus-visible:bg-primary/15 focu
317s-visible:ring-2 focus-visible:ring-primary";return u.page?r.jsx("button",{type:"button",onClick:()=>h?.(u.page),"aria-label":u.page===2?"Back to table of contents":`Go to report page ${u.page}`,title:u.page===2?"Back to contents":`Go to page ${u.page}`,className:g,style:m,children:r.jsxs("span",{className:"sr-only",children:["Go to report page ",u.page]})},`page-${u.page}-${p}`):u.href?r.jsx("a",{href:u.href,target:"_blank",rel:"noopener noreferrer","aria-label":`Open source link: ${u.href}`,title:`Open source: ${u.href}`,className:g,style:m,children:r.jsx("span",{className:"sr-only",children:"Open source link"})},`${u.href}-${p}`):null})]}),r.jsxs("figcaption",{className:"border-t border-zinc-100 px-4 py-2 text-center text-xs text-zinc-500",children:["Page ",a]})]})}function x6(){const[e,a]=un.useState(!1),s=async()=>{const o=new URL(window.location.href);o.search="",o.hash="";try{await navigator.clipboard.writeText(o.toString()),a(!0),window.setTimeout(()=>a(!1),2e3)}catch{a(!1)}};return r.jsxs("button",{type:"button",onClick:s,className:"inline-flex items-center gap-2 rounded-lg border border-zinc-300 bg-white px-4 py-2.5 text-sm font-semibold text-zinc-700 transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary","aria-label":"Copy direct report link",children:[e?r.jsx(Fv,{className:"h-4 w-4"}):r.jsx(Wv,{className:"h-4 w-4"}),e?"Link copied":"Copy report link"]})}function v6({spreads:e,pageCount:a,linkMapUrl:s}){const[o,c]=un.useState({}),[h,u]=un.useState(1),p=un.useRef(null),m=un.useRef([]);un.useEffect(()=>{if(!s)return;let y=!1;return fetch(s).then(b=>b.ok?b.json():{pages:{}}).then(b=>{y||c(b.pages??{})}).catch(()=>{y||c({})}),()=>{y=!0}},[s]),un.useEffect(()=>{const y=()=>{const b=Math.min(window.innerHeight*.35,320);let v=1;m.current.forEach((S,j)=>{S&&S.getBoundingClientRect().top<=b&&(v=j+1)}),u(S=>S===v?S:v)};return y(),window.addEventListener("scroll",y,{passive:!0}),window.addEventListener("resize",y),()=>{window.removeEventListener("scroll",y),window.removeEventListener("resize",y)}},[a]);const g=y=>{const b=Math.min(a,Math.max(1,y));m.current[b-1]?.scrollIntoView({behavior:"smooth",block:"start"}),u(b)};return r.jsxs("div",{ref:p,children:[r.jsx("div",{className:"sticky top-3 z-20 mb-4 flex items-center justify-end rounded-lg border border-zinc-200 bg-[#f7f5f1]/95 px-3 py-2 shadow-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[r.jsxs("span",{className:"hidden text-xs font-semibold uppercase tracking-widest text-zinc-400 lg:inline",children:[a," pages"]}),r.jsxs("span",{className:"text-xs font-semibold tabular-nums text-zinc-500 lg:hidden",children:[h," / ",a]}),r.jsx("input",{type:"range",min:1,max:a,value:h,onChange:y=>g(Number(y.target.value)),"aria-label":"Scroll through report pages",className:"w-28 accent-primary lg:hidden"}),r.jsxs("button",{type:"button",onClick:()=>g(Math.min(2,a)),className:"inline-flex items-center gap-1.5 rounded-md border border-zinc-300 bg-white px-3 py-2 text-xs font-semibold text-zinc-700 transition hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:[r.jsx(RC,{className:"h-3.5 w-3.5"}),"Contents"]}),r.jsxs("button",{type:"button",onClick:()=>g(a),className:"inline-flex items-center gap-1.5 rounded-md border border-primary bg-primary px-3 py-2 text-xs font-semibold text-white transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:[r.jsx(Kk,{className:"h-3.5 w-3.5"}),"Last page"]})]})}),r.jsxs("div",{className:"grid items-start gap-4 lg:grid-cols-[minmax(0,1fr)_3.5rem]",children:[r.jsx("div",{className:"space-y-7",children:e.map((y,b)=>r.jsxs("div",{className:"grid grid-cols-1 gap-5 md:grid-cols-2 md:gap-3","aria-label":`Report pages ${y.firstPage}${y.right?` and ${y.firstPage+1}`:""}`,children:[r.jsx(qx,{image:y.left,pageNumber:y.firstPage,eager:b===0,links:o[String(y.firstPage)],onNavigate:g,pageRef:v=>{m.current[y.firstPage-1]=v}}),y.right&&r.jsx(qx,{image:y.right,pageNumber:y.firstPage+1,links:o[String(y.firstPage+1)],onNavigate:g,pageRef:v=>{m.current[y.firstPage]=v}})]},y.left))}),r.jsxs("aside",{className:"sticky top-24 hidden h-fit flex-col items-center gap-2 rounded-lg border border-zinc-200 bg-white/90 px-2 py-3 shadow-sm lg:flex",children:[r.jsx("span",{className:"text-[10px] font-semibold tabular-nums text-zinc-500",children:h}),r.jsx("div",{className:"relative h-[min(55vh,30rem)] w-7",children:r.jsx("input",{type:"range",min:1,max:a,value:h,onChange:y=>g(Number(y.target.value)),"aria-label":"Scroll through report pages","aria-orientation":"vertical",className:"absolute left-1/2 top-1/2 h-2 -translate-x-1/2 -translate-y-1/2 rotate-90 accent-primary",style:{width:"min(55vh, 30rem)"}})}),r.jsx("span",{className:"text-[10px] font-semibold tabular-nums text-zinc-500",children:a})]})]}),r.jsx("div",{className:"flex justify-center pt-2",children:r.jsxs("button",{type:"button",onClick:()=>p.current?.scrollIntoView({behavior:"smooth",block:"start"}),className:"inline-flex items-center gap-1.5 rounded-md border border-zinc-300 bg-white px-3 py-2 text-xs font-semibold text-zinc-700 transition hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:[r.jsx(Xk,{className:"h-3.5 w-3.5"}),"Back to report start"]})})]})}function w6({section:e}
317){const[a,s]=un.useState(!1),o=e.heading?.startsWith("Call Script")??!1,c=(e.subject?`Subject: ${e.subject}
318
319`:"")+(e.body??""),h=async()=>{try{await navigator.clipboard.writeText(c),s(!0),setTimeout(()=>s(!1),2e3)}catch{}};return r.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm overflow-hidden",children:r.jsxs("details",{className:"group",children:[r.jsxs("summary",{className:"flex items-center justify-between gap-4 cursor-pointer list-none p-6 hover:bg-zinc-50 transition-colors",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-zinc-900",children:e.heading}),e.subject&&r.jsx("p",{className:"text-sm text-zinc-500 mt-1",children:e.subject})]}),r.jsx(bi,{className:"w-5 h-5 text-zinc-400 flex-shrink-0 transition-transform group-open:rotate-180"})]}),r.jsxs("div",{className:"px-6 pb-6 border-t border-zinc-100 pt-4",children:[e.caption&&r.jsx("p",{className:"text-sm text-zinc-500 bg-zinc-50 border border-zinc-100 rounded-lg p-3 mb-4",children:e.caption}),e.contacts&&r.jsxs("div",{className:"bg-zinc-50 border border-zinc-100 rounded-lg p-3 mb-4",children:[r.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-zinc-500 mb-1.5",children:"Where to send or call"}),r.jsx("ul",{className:"space-y-1.5",children:e.contacts.map((u,p)=>r.jsx("li",{className:"text-sm text-zinc-600 leading-relaxed",children:u},p))})]}),e.items&&r.jsx("div",{className:"flex flex-wrap gap-4 mb-4",children:e.items.map((u,p)=>{const[m,g]=u.split("|");return g?.startsWith("/")?r.jsxs(Pe,{href:g,className:"inline-flex items-center gap-1.5 text-primary hover:underline text-sm font-medium",children:[m," ",r.jsx(Ze,{className:"w-3.5 h-3.5"})]},p):r.jsxs("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-primary hover:underline text-sm font-medium",children:[m," ",r.jsx(yt,{className:"w-3.5 h-3.5"})]},p)})}),e.subject&&r.jsxs("p",{className:"text-[15px] text-zinc-900 mb-3",children:[r.jsx("span",{className:"font-semibold",children:"Subject:"})," ",e.subject]}),r.jsx("div",{className:"text-zinc-700 leading-relaxed whitespace-pre-line text-[15px]",children:e.body}),r.jsx("button",{type:"button",onClick:h,className:"mt-5 inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-semibold px-5 py-2.5 rounded-lg transition-colors",children:a?r.jsxs(r.Fragment,{children:[r.jsx(Fv,{className:"w-4 h-4"})," Copied"]}):r.jsxs(r.Fragment,{children:[r.jsx(Wv,{className:"w-4 h-4"})," ",o?"Copy script":"Copy letter"]})}),r.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:a?o?"Script copied to clipboard":"Letter copied to clipboard":""})]})]})})}const S6=[{tag:"Official Merchandise",title:"DAG Shops",subtitle:"dagshops.com",description:"Browse DAG's official Shopify store for t-shirts, hoodies, tote bags, accessories, and more. Every purchase funds our advocacy and humanitarian relief work.",cta:"Shop DAG Merch",url:"https://dagshops.com",ctaClass:"bg-primary hover:bg-primary/90 text-white",tagClass:"bg-primary/90 text-white",icon:Zv,image:"/dag-merch-shirts.png",imagePosition:"object-center",items:["T-Shirts & Hoodies","Tote Bags","Accessories","Stickers & Pins"]},{tag:"Professional Apparel",title:"DAG Lab Coats",subtitle:"Uniform Center of Lansing",description:"Order the official DAG white lab coat — worn at congressional visits, rallies, and advocacy events across the country. Represent healthcare workers standing against genocide.",cta:"Order Lab Coats",url:"https://shop.uniformcenteroflansing.com/dag/shop/page/lab_coats",ctaClass:"bg-zinc-800 hover:bg-zinc-700 border border-zinc-700 text-white",tagClass:"bg-zinc-900/80 backdrop-blur-sm border border-zinc-700 text-white",icon:Xv,image:"/dag-lab-coats.jpg",imagePosition:"object-top",items:["Official DAG White Coat","Embroidered Logo","Multiple Sizes","Bulk Orders Available"]}];function A6(){return r.jsxs("div",{className:"min-h-screen bg-[#f5f3ef] flex flex-col",children:[r.jsx(Pn,{}),r.jsx("div",{className:"bg-black text-white pt-36 pb-20 px-6 lg:px-12",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm mb-6",children:[r.jsx(Pe,{href:"/",className:"hover:text-white transition-colors",children:"Home"}),r.jsx("span",{children:"/"}),r.jsx("span",{className:"text-primary font-semibold",children:"Store"})]}),r.jsxs("div",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-900/60 px-3 py-1 text-sm text-zinc-300 mb-6",children:[r.jsx("span",{className:"flex h-2 w-2 rounded-full bg-primary mr-2"}),"Official DAG Merchandise"]}),r.jsxs("h1",{className:"text-4xl md:text-6xl text-white leading-tight mb-4",style:{fontFamily:"Impact, 'Arial Narrow', Arial, sans-serif",textTransform:"uppercase",letterSpacing:"0.02em"},children:["DAG ",r.jsx("span",{className:"text-primary",children:"Store"})]}),r.jsx("p",{className:"text-xl text-zinc-300 max-w-2xl leading-relaxed",children:"Wear your values. Shop DAG merchandise or order the official white coat worn by healthcare advocates on Capitol Hill."})]})}),r.jsx("main",{className:"flex-1 py-16 px-6 lg:px-12",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsxs(Pe,{href:"/",className:"inline-flex items-center gap-2 text-zinc-500 hover:text-zinc-900 text-sm font-medium mb-12 group transition-colors",children:[r.jsx(ec,{className:"w-4 h-4 group-hover:-translate-x-0.5 transition-transform"}),"Back to Home"]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16 items-start",children:S6.map((e,a)=>{const s=e.icon;return r.jsxs(pe.div,{initial:{opacity:0,y:24}
319,animate:{opacity:1,y:0},transition:{duration:.5,delay:a*.12},className:"relative rounded-2xl overflow-hidden shadow-sm hover:shadow-xl transition-shadow group",children:[r.jsx("img",{src:e.image,alt:e.title,className:`w-full object-cover ${e.imagePosition} group-hover:scale-[1.02] transition-transform duration-500 block`,style:{height:"580px"}}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/60 to-transparent"}),r.jsx("div",{className:"absolute top-4 left-4",children:r.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-1.5 text-xs font-bold px-3 py-1 rounded-full hover:opacity-80 transition-opacity ${e.tagClass}`,children:[r.jsx(s,{className:"w-3 h-3"}),e.tag]})}),r.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-6",children:[r.jsx("h2",{className:"text-2xl font-bold font-serif-heading text-white mb-1",children:e.title}),r.jsx("p",{className:"text-sm font-semibold text-zinc-300 mb-3",children:e.subtitle}),r.jsx("p",{className:"text-zinc-400 text-sm leading-relaxed mb-4",children:e.description}),r.jsx("div",{className:"flex flex-wrap gap-2 mb-5",children:e.items.map(o=>r.jsx("span",{className:"text-xs font-medium px-2.5 py-1 rounded-full bg-white/10 text-zinc-200 backdrop-blur-sm",children:o},o))}),r.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-2 font-bold text-sm px-6 py-3 rounded-xl transition-colors ${e.ctaClass}`,children:[e.cta,r.jsx(yt,{className:"w-4 h-4"})]})]})]},a)})}),r.jsxs(pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"bg-black text-white rounded-2xl p-10 md:p-14 flex flex-col md:flex-row items-center justify-between gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-bold font-serif-heading mb-2",children:"Shopping with Purpose"}),r.jsx("p",{className:"text-zinc-400 leading-relaxed max-w-lg",children:"Every purchase — whether a tote bag or a white coat — directly supports DAG's mission: advocacy on Capitol Hill, humanitarian relief, and education worldwide."})]}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 flex-shrink-0",children:[r.jsxs("a",{href:"https://dagshops.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 text-white font-bold px-6 py-3 rounded-xl transition-colors text-sm whitespace-nowrap",children:[r.jsx(Zv,{className:"w-4 h-4"})," DAG Shops"]}),r.jsxs("a",{href:"https://shop.uniformcenteroflansing.com/dag/shop/page/lab_coats",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 border border-zinc-700 hover:bg-zinc-800 text-white font-bold px-6 py-3 rounded-xl transition-colors text-sm whitespace-nowrap",children:[r.jsx(Xv,{className:"w-4 h-4"})," Lab Coats"]})]})]})]})}),r.jsx(Gn,{})]})}function j6(){return r.jsxs("div",{className:"flex min-h-[100dvh] flex-col w-full bg-background font-sans text-foreground",children:[r.jsx(Pn,{}),r.jsx("main",{className:"flex-1 pt-[var(--app-header-h,10rem)]",children:r.jsx(L1,{})}),r.jsx(Gn,{})]})}function N6(){return r.jsxs("div",{className:"flex min-h-[100dvh] flex-col w-full bg-background font-sans text-foreground",children:[r.jsx(Pn,{}),r.jsx("main",{className:"flex-1 pt-[var(--app-header-h,10rem)]",children:r.jsx(H1,{})}),r.jsx(Gn,{})]})}function k6(){return r.jsxs("div",{className:"flex min-h-[100dvh] flex-col w-full bg-background font-sans text-foreground",children:[r.jsx(Pn,{}),r.jsx("main",{className:"flex-1 pt-[var(--app-header-h,10rem)] bg-[#f5f3ef]",children:r.jsx(I1,{})}),r.jsx(Gn,{})]})}function C6(){return r.jsxs("div",{className:"flex min-h-[100dvh] flex-col w-full bg-background font-sans text-foreground",children:[r.jsx(Pn,{}),r.jsxs("main",{className:"flex-1 pt-[var(--app-header-h,10rem)]",children:[r.jsx(V1,{}),r.jsx(F1,{})]}),r.jsx(Gn,{})]})}function T6(){return r.jsxs("div",{className:"flex min-h-[100dvh] flex-col w-full bg-background font-sans text-foreground",children:[r.jsx(Pn,{}),r.jsx("main",{className:"flex-1 pt-[var(--app-header-h,10rem)] bg-[#f5f3ef]",children:r.jsx(_1,{})}),r.jsx(Gn,{})]})}const tS="events/white-coats-on-the-hill",z6="https://actionnetwork.org/forms/1000-white-coats-on-the-hill-september-24-2026/",E6=5*1024*1024;function D6(){const[e,a]=w.useState(""),[s,o]=w.useState(""),[c,h]=w.useState(""),[u,p]=w.useState(!1),[m,g]=w.useState({endorse:!0,join:!0}),[y,b]=w.useState(null),[v,S]=w.useState(null),[j,N]=w.useState(!1),[C,T]=w.useState(null),[E,R]=w.useState(!1),O=w.useRef(null),G=eS(),_=X1();function H(X){const Z=X.target.files?.[0]??null;if(T(null),!Z){D();return}if(!Z.type.startsWith("image/")){T("Please choose an image file.");return}if(Z.size>E6){T("Logo must be under 5 MB.");return}b(Z),S(URL.createObjectURL(Z))}function D(){b(null),v&&URL.revokeObjectURL(v),S(null),O.current&&(O.current.value="")}async function J(X){const{uploadURL:Z,objectPath:me}=await _.mutateAsync({data:{name:X.name,size:X.size,contentType:X.type}});if(!(await fetch(Z,{method:"PUT",headers:{"Content-Type":X.type},body:X})).ok)throw new Error("Logo upload failed. Please try again.");return me}async function W(X){if(X.preventDefault(),T(null),!e.trim()||!s.trim()||!c.trim()){T("Organization name, contact name, and email are required.");return}if(!u){T("Please confirm you are authorized to act on behalf of your organization.");return}if(!m.endorse&&!m.join){T("Please select at least one option.");return}try{N(!0);let Z;y&&(Z=await J(y));const me=[m.endorse?"Endorse":"",m.join?"Join coordination network":""].filter(
319Boolean).join(" + ");await G.mutateAsync({data:{statementSlug:tS,organizationName:e.trim(),representativeName:`${s.trim()} [${me}]`,email:c.trim(),...Z?{logoObjectPath:Z}:{}}}),R(!0)}catch(Z){T(Z instanceof Error?Z.message:"Something went wrong. Please try again.")}finally{N(!1)}}return E?r.jsxs("div",{className:"flex items-start gap-3 rounded-xl bg-primary/10 border border-primary/20 p-6",children:[r.jsx(Ua,{className:"w-5 h-5 text-primary shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-zinc-900 text-lg",children:"Thank you — we'll be in touch."}),r.jsx("p",{className:"text-zinc-600 text-sm mt-1",children:"Your registration has been received. DAG will reach out to coordinate before September 24."})]})]}):r.jsxs("form",{onSubmit:W,className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold text-zinc-700 mb-1.5",children:["Organization name ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{type:"text",value:e,onChange:X=>a(X.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 bg-white px-3 py-2.5 text-zinc-900 text-sm placeholder:text-zinc-400 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"e.g. Regional Medical Association"})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold text-zinc-700 mb-1.5",children:["Contact person name ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{type:"text",value:s,onChange:X=>o(X.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 bg-white px-3 py-2.5 text-zinc-900 text-sm placeholder:text-zinc-400 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"Full name and title"})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold text-zinc-700 mb-1.5",children:["Contact email ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{type:"email",value:c,onChange:X=>h(X.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 bg-white px-3 py-2.5 text-zinc-900 text-sm placeholder:text-zinc-400 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition",placeholder:"[email protected]"}),r.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Not publicly displayed. DAG will use this to coordinate with you."})]}),r.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:u,onChange:X=>p(X.target.checked),className:"mt-0.5 w-4 h-4 rounded border-zinc-400 accent-primary shrink-0"}),r.jsxs("span",{className:"text-sm text-zinc-700",children:["I am authorized to act on behalf of my organization"," ",r.jsx("span",{className:"text-primary",children:"*"})]})]}),r.jsxs("div",{children:[r.jsxs("p",{className:"text-sm font-semibold text-zinc-700 mb-2",children:["We want to: ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:m.endorse,onChange:X=>g(Z=>({...Z,endorse:X.target.checked})),className:"mt-0.5 w-4 h-4 rounded border-zinc-400 accent-primary shrink-0"}),r.jsx("span",{className:"text-sm text-zinc-700",children:"Publicly endorse the September 24 mobilization"})]}),r.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:m.join,onChange:X=>g(Z=>({...Z,join:X.target.checked})),className:"mt-0.5 w-4 h-4 rounded border-zinc-400 accent-primary shrink-0"}),r.jsx("span",{className:"text-sm text-zinc-700",children:"Join the coordination network — receive organizing updates from DAG"})]})]})]}),r.jsxs("div",{children:[r.jsxs("p",{className:"text-sm font-semibold text-zinc-700 mb-1.5",children:["Organization logo"," ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(optional)"})]}),v?r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-14 h-14 roun
319ded-lg border border-zinc-200 bg-zinc-50 flex items-center justify-center overflow-hidden",children:r.jsx("img",{src:v,alt:"Logo preview",className:"w-full h-full object-contain"})}),r.jsxs("button",{type:"button",onClick:D,className:"text-zinc-500 hover:text-zinc-900 text-sm flex items-center gap-1",children:[r.jsx(oa,{className:"w-3.5 h-3.5"})," Remove"]})]}):r.jsxs("label",{htmlFor:"wc-page-logo-upload",className:"flex items-center gap-3 rounded-lg border-2 border-dashed border-zinc-300 px-4 py-3 cursor-pointer hover:border-primary hover:bg-primary/5 transition",children:[r.jsx(jc,{className:"w-4 h-4 text-zinc-400"}),r.jsx("span",{className:"text-sm text-zinc-400",children:"Click to upload logo (PNG or JPG, up to 5 MB)"})]}),r.jsx("input",{id:"wc-page-logo-upload",ref:O,type:"file",accept:"image/*",onChange:H,className:"hidden"})]}),C&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium",children:C}),r.jsx("button",{type:"submit",disabled:j,className:"w-full flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 disabled:cursor-not-allowed text-white font-bold px-5 py-3.5 rounded-xl transition-colors",children:j?r.jsxs(r.Fragment,{children:[r.jsx(bt,{className:"w-4 h-4 animate-spin"})," Submitting…"]}):"Submit Registration"})]})}function R6(e){return`/api/storage${e}`}function M6(){const{data:e}=Z1({statement:tS}),a=e??[];return a.length===0?null:r.jsxs(pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"mt-16 pt-12 border-t border-zinc-200",children:[r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-1 font-serif-heading",children:"Endorsing Organizations"}),r.jsxs("p",{className:"text-zinc-500 text-sm mb-8",children:[a.length," organization",a.length===1?"":"s"," publicly endorsing this mobilization."]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:a.map(s=>r.jsxs(pe.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"bg-white border border-zinc-200 rounded-xl p-5 shadow-sm flex items-center gap-4",children:[r.jsx("div",{className:"w-14 h-14 flex-shrink-0 rounded-lg bg-zinc-50 border border-zinc-100 flex items-center justify-center overflow-hidden",children:s.logoObjectPath?r.jsx("img",{src:R6(s.logoObjectPath),alt:`${s.organizationName} logo`,className:"w-full h-full object-contain"}):r.jsx(vs,{className:"w-6 h-6 text-zinc-400"})}),r.jsx("p",{className:"font-semibold text-zinc-900 leading-snug min-w-0",children:s.organizationName})]},s.id))})]})}function O6(){return r.jsxs("div",{className:"min-h-screen bg-[#f5f3ef] flex flex-col",children:[r.jsx(Pn,{}),r.jsxs("div",{className:"relative w-full bg-black overflow-hidden",style:{paddingTop:"var(--app-header-h, 10rem)"},children:[r.jsx("img",{src:"/white-coats-on-the-hill.jpg",alt:"1,000 White Coats on the Hill",className:"w-full h-[55vw] max-h-[600px] min-h-[280px] object-cover object-center opacity-70"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent"}),r.jsx("div",{className:"absolute bottom-0 left-0 right-0 px-6 pb-10 lg:px-16",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs(pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-white/70 text-sm font-semibold uppercase tracking-widest mb-3",children:[r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(Pa,{className:"w-4 h-4"})," September 24, 2026"]}),r.jsx("span",{className:"text-white/30",children:"·"}),r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(Kv,{className:"w-4 h-4"})," Washington, D.C."]})]}),r.jsx("h1",{className:"text-3xl sm:text-5xl font-black text-white leading-tight drop-shadow mb-4",children:"1,000 White Coats on the Hill"}),r.jsx("p",{className:"text-white/80 text-base sm:text-lg leading-relaxed max-w-2xl",children:"Health workers descend on Congress demanding an end to U.S. complicity in the Gaza genocide. Sign up as an individual, or bring your organization."})]})})})]}),r.jsx("main",{className:"flex-1 py-14 px-6 lg:px-12",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs(Pe,{href:"/advocacy",className:"inline-flex items-center gap-2 text-zinc-500 hover:text-zinc-900 transition-colors text-sm font-medium mb-10 group",children:[r.jsx(ec,{className:"w-4 h-4 group-hover:-translate-x-0.5 transition-transform"}),"Back to Advocacy"]}),r.jsxs(pe.div,{initial:{opacity:0,y:20}
319,animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"mb-14",children:[r.jsx("h2",{className:"text-2xl font-bold text-zinc-900 mb-4 font-serif-heading",children:"About the Mobilization"}),r.jsxs("div",{className:"prose prose-zinc max-w-none text-zinc-700 leading-relaxed space-y-4 text-base",children:[r.jsx("p",{children:"On September 24, 2026, doctors, nurses, and allied health professionals from across the country will fill the halls of Congress. This is a mass mobilization of healthcare workers demanding that the United States stop funding and enabling the genocide in Gaza."}),r.jsx("p",{children:"Participants will meet directly with their representatives, deliver a unified message from the medical community, and stand together in white coats as visible evidence of healthcare worker opposition to U.S. complicity."}),r.jsx("p",{children:"Organizations can publicly endorse the mobilization and join DAG's coordination network to receive organizing updates and logistics in the lead-up to September 24."})]})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-start",children:[r.jsxs(pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"bg-white rounded-2xl border border-zinc-200 shadow-sm p-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:r.jsx(Cc,{className:"w-5 h-5 text-primary"})}),r.jsx("h3",{className:"text-xl font-bold text-zinc-900",children:"Sign Up as an Individual"})]}),r.jsx("p",{className:"text-zinc-600 text-sm leading-relaxed mb-6",children:"Register through Action Network to join the September 24 mobilization as an individual health worker. You'll receive logistics, talking points, and organizing updates."}),r.jsxs("a",{href:z6,target:"_blank",rel:"noopener noreferrer",className:"w-full inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 text-white font-bold px-5 py-3.5 rounded-xl transition-colors",children:["Register as Indiv
319idual ",r.jsx(Ze,{className:"w-4 h-4"})]})]}),r.jsxs(pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},id:"org-form",className:"bg-white rounded-2xl border border-zinc-200 shadow-sm p-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:r.jsx(vs,{className:"w-5 h-5 text-primary"})}),r.jsx("h3",{className:"text-xl font-bold text-zinc-900",children:"Organization Sign Up / Endorse"})]}),r.jsx("p",{className:"text-zinc-600 text-sm leading-relaxed mb-6",children:"Register your organization to publicly endorse the mobilization and coordinate with DAG. Your organization's name (and logo, if provided) may be listed among supporting organizations."}),r.jsx(D6,{})]})]}),r.jsx(M6,{}),r.jsxs("div",{className:"mt-16 pt-12 border-t border-zinc-200",children:[r.jsx("h3",{className:"text-lg font-bold mb-6 text-zinc-900",children:"Continue Exploring"}),r.jsx("div",{className:"flex flex-wrap gap-3",children:[["/advocacy","Take Action"],["/education","Education Resources"],["/community-support","Donate"],["/get-involved","Get Involved"]].map(([e,a])=>r.jsx(Pe,{href:e,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-primary hover:text-primary px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:a},e))})]})]})}),r.jsx(Gn,{})]})}const P6=[{href:"/admin/endorsements",icon:fC,title:"Endorsement Review",description:"Approve or reject pending organization registrations — including White Coats on the Hill sign-ups. Logos only appear publicly once you approve.",badge:"White Coats · Statements"},{href:"/admin/video-submissions",icon:Wo,title:"Video Submissions",description:"Review campaign video submissions from supporters.",badge:null},{href:"/admin/doctor-photos",icon:sC,title:"Doctor Photos",description:"Manage detained-doctor portrait photos used in the video.",badge:null},{href:"/admin/webinar",icon:nC,title:"Weekly Webinar",description:"Update the weekly webinar image and configuration.",badge:null}];function G6(){return r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] px-6 py-14",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsx("h1",{className:"text-3xl font-bold text-zinc-900 font-serif-heading mb-1",children:"Admin"}),r.jsx("p",{className:"text-zinc-500 text-sm mb-10",children:"Doctors Against Genocide — site administration tools"}),r.jsx("div",{className:"space-y-3",children:P6.map(({href:e,icon:a,title:s,description:o,badge:c})=>r.jsxs("a",{href:e,className:"flex items-start gap-4 bg-white border border-zinc-200 hover:border-primary hover:shadow-sm rounded-xl p-5 transition-all group",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors mt-0.5",children:r.jsx(a,{className:"w-5 h-5 text-primary"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{className:"font-semibold text-zinc-900 group-hover:text-primary transition-colors",children:s}),c&&r.jsx("span",{className:"text-[11px] font-semibold bg-primary/10 text-primary border border-primary/20 px-2 py-0.5 rounded-full",children:c})]}),r.jsx("p",{className:"text-sm text-zinc-500 mt-0.5 leading-relaxed",children:o})]}),r.jsx("span",{className:"text-zinc-400 group-hover:text-primary transition-colors text-lg leading-none mt-1",children:"→"})]},e))})]})})}const Wx=["events/white-coats-on-the-hill","statements/release-dr-abu-safiya","release-dr-abu-safiya","statements/west-bank-annexation","statements/national-appeal-to-trump","statements/forced-displacement","statements/ceasefire-in-gaza"],U6={"events/white-coats-on-the-hill":"1,000 White Coats on the Hill — Sep 24","statements/release-dr-abu-safiya":"Free Dr. Abu Safiya","release-dr-abu-safiya":"Free Dr. Abu Safiya","statements/west-bank-annexation":"West Bank Genocide: Urgent Statement","statements/national-appeal-to-trump":"National Ap
319peal to Trump","statements/forced-displacement":"Genocide Is a Public Health Emergency","statements/ceasefire-in-gaza":"Ceasefire in Gaza"};function L6(e){return e?U6[e]??e:"Unknown statement"}function H6(e){return e?e==="release-dr-abu-safiya"?"statements/release-dr-abu-safiya":e:"unknown"}const Dh="dag_admin_token";function I6(e){return`/api/storage${e}`}function _6(){const[e,a]=w.useState(()=>localStorage.getItem(Dh)??""),[s,o]=w.useState(""),[c,h]=w.useState(!1),[u,p]=w.useState([]),[m,g]=w.useState(!1),[y,b]=w.useState(null),[v,S]=w.useState(null),j=w.useCallback(async _=>{g(!0),b(null);try{const H=await fetch("/api/endorsements/pending",{headers:{Authorization:`Bearer ${_}`}});if(H.status===401){h(!1),b("Invalid access token.");return}if(!H.ok)throw new Error(`Request failed (${H.status})`);const D=await H.json();p(D),h(!0),localStorage.setItem(Dh,_)}catch{b("Could not load endorsements. Please try again.")}finally{g(!1)}},[]);w.useEffect(()=>{e&&j(e)},[e,j]);function N(_){_.preventDefault(),s.trim()&&a(s.trim())}function C(){localStorage.removeItem(Dh),a(""),o(""),h(!1),p([])}async function T(_){S(_),b(null);try{if(!(await fetch(`/api/endorsements/${_}`,{method:"PATCH",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({status:"approved"})})).ok)throw new Error;p(D=>D.filter(J=>J.id!==_))}catch{b("Could not approve that endorsement. Please try again.")}finally{S(null)}}async function E(_){S(_),b(null);try{const H=await fetch(`/api/endorsements/${_}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}});if(!H.ok&&H.status!==204)throw new Error;p(D=>D.filter(J=>J.id!==_))}catch{b("Could not remove that endorsement. Please try again.")}finally{S(null)}}if(!c)return r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] flex items-center justify-center px-6",children:r.jsxs("form",{onSubmit:N,className:"w-full max-w-sm bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[r.jsx("h1",{className:"text-2xl font-bold text-zinc-900 mb-1 font-serif-heading",children:"Endorsement Review"}),r.jsx("p",{className:"text-zinc-500 text-sm mb-6",children:"Enter the access token to review pending endorsements."}),r.jsx("label",{htmlFor:"token",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:"Access token"}),r.jsx("input",{id:"token",type:"password",value:s,onChange:_=>o(_.target.value),className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 mb-4 outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"Access token",autoComplete:"current-password"}),y&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-4",children:y}),r.jsx("button",{type:"submit",disabled:m,className:"w-full inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-bold px-6 py-3 rounded-lg transition-colors",children:m?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):"Sign In"})]})});const R=u.reduce((_,H)=>{const D=H6(H.statementSlug);return _[D]||(_[D]=[]),_[D].push(H),_},{}),O=[...Wx.filter(_=>R[_]?.length),...Object.keys(R).filter(_=>!Wx.includes(_)&&R[_]?.length)],G=[...new Set(O)];return r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] px-6 py-12",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"flex items-center justify-between mb-10",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-zinc-900 font-serif-heading",children:"Pending Endorsements"}),r.jsxs("p",{className:"text-zinc-500 text-sm mt-1",children:[u.length," submission",u.length===1?"":"s"," awaiting review",G.length>1?` across ${G.length} statements`:""]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{onClick:()=>j(e),disabled:m,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-primary hover:text-primary px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(kc,{className:`w-4 h-4 ${m?"animate-spin":""}`})," Refresh"]}),r.jsxs("button",{onClick:C,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-zinc-900 px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(Nc,{className:"w-4 h-4"})," Sign Out"]})]})]}),y&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-6",children:y}),m&&u.length===0?r.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[r.jsx(bt,{className:"w-5 h-5 animate-spin"})," Loading..."]}):u.length===0?r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-10 text-center shadow-sm",children:[r.jsx(Ua,{className:"w-10 h-10 text-primary mx-auto mb-3"}),r.jsx("p",{className:"text-zinc-700 font-semibold",children:"All caught up"}),r.jsx("p",{className:"text-zinc-500 text-sm mt-1",children:"There are no endorsements w
319aiting for review."})]}):r.jsx("div",{className:"space-y-10",children:G.map(_=>{const H=R[_]??[];return r.jsxs("section",{children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx("h2",{className:"text-lg font-bold text-zinc-900 font-serif-heading",children:L6(_)}),r.jsxs("span",{className:"text-xs font-semibold bg-primary/10 text-primary border border-primary/20 px-2.5 py-0.5 rounded-full",children:[H.length," pending"]})]}),r.jsx("div",{className:"space-y-3",children:H.map(D=>r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-5 shadow-sm flex flex-col sm:flex-row sm:items-center gap-4",children:[r.jsx("div",{className:"w-16 h-16 flex-shrink-0 rounded-lg bg-zinc-50 border border-zinc-100 flex items-center justify-center overflow-hidden",children:D.logoObjectPath?r.jsx("img",{src:I6(D.logoObjectPath),alt:`${D.organizationName} logo`,className:"w-full h-full object-contain"}):r.jsx(vs,{className:"w-6 h-6 text-zinc-400"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"font-semibold text-zinc-900",children:D.organizationName}),r.jsx("p",{className:"text-sm text-zinc-500",children:D.representativeName}),r.jsxs("p",{className:"text-xs text-zinc-400 mt-1",children:["Submitted ",new Date(D.createdAt).toLocaleDateString()]})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsxs("button",{onClick:()=>T(D.id),disabled:v===D.id,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-semibold px-4 py-2 rounded-lg text-sm transition-colors",children:[v===D.id?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):r.jsx(Ua,{className:"w-4 h-4"}),"Approve"]}),r.jsxs("button",{onClick:()=>E(D.id),disabled:v===D.id,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-600 hover:border-[#C00000] hover:text-[#C00000] disabled:opacity-60 font-semibold px-4 py-2 rounded-lg text-sm transition-colors",children:[r.jsx(qf,{className:"w-4 h-4"})," Reject"]})]})]},D.id))})]},_)})})]})})}const Rh="dag_admin_token";function B6(e,a){return`/api/storage${e}?token=${encodeURIComponent(a)}`}function V6(e,a,s){return`/api/storage${e}?token=${encodeURIComponent(a)}&download=1&filename=${encodeURIComponent(s)}`}function F6(e){return e?e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:""}function q6(){const[e,a]=w.useState(()=>localStorage.getItem(Rh)??""),[s,o]=w.useState(""),[c,h]=w.useState(!1),[u,p]=w.useState([]),[m,g]=w.useState(!1),[y,b]=w.useState(null),[v,S]=w.useState(null),j=w.useCallback(async E=>{g(!0),b(null);try{const R=await fetch("/api/video-submissions",{headers:{Authorization:`Bearer ${E}`}});if(R.status===401){h(!1),b("Invalid access token.");return}if(!R.ok)throw new Error(`Request failed (${R.status})`);const O=await R.json();p(O),h(!0),localStorage.setItem(Rh,E)}catch{b("Could not load video submissions. Please try again.")}finally{g(!1)}},[]);w.useEffect(()=>{e&&j(e)},[e,j]);function N(E){E.preventDefault(),s.trim()&&a(s.trim())}function C(){localStorage.removeItem(Rh),a(""),o(""),h(!1),p([])}async function T(E){if(window.confirm("Delete this video submission? This cannot be undone.")){S(E),b(null);try{const R=await fetch(`/api/video-submissions/${E}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}});if(!R.ok&&R.status!==204)throw new Error;p(O=>O.filter(G=>G.id!==E))}catch{b("Could not delete that submission. Please try again.")}finally{S(null)}}}return c?r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] px-6 py-12",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsxs("div",{className:"flex items-center justify-between mb-8",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-zinc-900 font-serif-heading",children:"Campaign Video Submissions"}),r.jsxs("p",{className:"text-zinc-500 text-sm mt-1",children:[u.length," video",u.length===1?"":"s"," submitted"]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{onClick:()=>j(e),disabled:m,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-primary hover:text-primary px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(kc,{className:`w-4 h-4 ${m?"animate-spin":""}`})," Refresh"]}),r.jsxs("button",{onClick:C,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-zinc-900 px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(Nc,{className:"w-4 h-4"})," Sign Out"]})]})]}),y&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-6",children:y}),m&&u.length===0?r.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[r.jsx(bt,{className:"w-5 h-5 animate-spin"})," Loading..."]}):u.length===0?r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-10 text-center shadow-sm",children:[r.jsx(Ua,{className:"w-10 h-10 text-primary mx-auto mb-3"}),r.jsx("p",{className:"text-zinc-700 font-semibold",children:"No submissions yet"}),r.jsx("p",{className:"text-zinc-500 text-sm mt-1",children:"Videos uploaded through the Hour of Action page will appear here."})]}):r.jsx("div",{className:"space-y-4",children:u.map(E=>
319r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-5 shadow-sm flex flex-col sm:flex-row sm:items-center gap-5",children:[r.jsx("video",{controls:!0,preload:"metadata",src:B6(E.videoObjectPath,e),className:"w-full sm:w-48 rounded-lg bg-black flex-shrink-0 aspect-video sm:aspect-auto sm:max-h-32 object-contain"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"font-semibold text-zinc-900",children:E.name}),E.socialHandle?r.jsx("p",{className:"text-sm text-primary font-medium",children:E.socialHandle}):r.jsx("p",{className:"text-sm text-zinc-400",children:"No social handle provided"}),r.jsxs("p",{className:"text-xs text-zinc-400 mt-1 flex items-center gap-2 flex-wrap",children:[r.jsx(Vf,{className:"w-3.5 h-3.5"}),r.jsx("span",{className:"truncate max-w-[16rem]",children:E.fileName??"video"}),E.fileSize?r.jsx("span",{children:F6(E.fileSize)}):null,r.jsxs("span",{children:["Submitted ",new Date(E.createdAt).toLocaleString()]})]})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsxs("a",{href:V6(E.videoObjectPath,e,E.fileName??`dag-video-${E.id}.mp4`),download:E.fileName??`dag-video-${E.id}.mp4`,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 text-white font-semibold px-4 py-2 rounded-lg text-sm transition-colors",children:[r.jsx(na,{className:"w-4 h-4"})," Download"]}),r.jsxs("button",{onClick:()=>T(E.id),disabled:v===E.id,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-600 hover:border-[#C00000] hover:text-[#C00000] disabled:opacity-60 font-semibold px-4 py-2 rounded-lg text-sm transition-colors",children:[v===E.id?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):r.jsx(qf,{className:"w-4 h-4"}),"Delete"]})]})]},E.id))})]})}):r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] flex items-center justify-center px-6",children:r.jsxs("form",{onSubmit:N,className:"w-full max-w-sm bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[r.jsx("h1",{className:"text-2xl font-bold text-zinc-900 mb-1 font-serif-heading",children:"Video Submissions"}),r.jsx("p",{className:"text-zinc-500 text-sm mb-6",children:"Enter the access token to review campaign video submissions."}),r.jsx("label",{htmlFor:"token",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:"Access token"}),r.jsx("input",{id:"token",type:"password",value:s,onChange:E=>o(E.target.value),className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 mb-4 outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"Access token",autoComplete:"current-password"}),y&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-4",children:y}),r.jsx("button",{type:"submit",disabled:m,className:"w-full inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-bold px-6 py-3 rounded-lg transition-colors",children:m?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):"Sign In"})]})})}const W6="18",Nf={rantisi:{slug:"rantisi",name:"Dr. Iyad Al-Rantisi",role:"Consultant Obstetrician & Gynaecologist",hospital:"Kamal Adwan Hospital, North Gaza",status:"killed"},bursh:{slug:"bursh",name:"Dr. Adnan Al-Bursh",role:"Consultant Orthopaedic Surgeon",hospital:"Al-Shifa Hospital, Gaza",status:"killed"},abusafiya:{slug:"abu-safiya",name:"Dr. Hussam Abu Safiya",role:"Consultant Paediatrician & Hospital Director",hospital:"Kamal Adwan Hospital, North Gaza",status:"detained",abductedOn:"2024-12-27"}},Y6=[{slug:"abu-odeh",name:"Dr. Akram Abu Odeh",role:"Consultant Orthopaedic Surgeon",hospital:"Indonesian Hospital, North Gaza",status:"detained",abductedOn:"2023-11-22"},{slug:"abu-tabanja",name:"Dr. Medhat Abu Tabanja",role:"Consultant Intensivist, Head of ICU",hospital:"Indonesian Hospital, North Gaza",status:"detained",abductedOn:"2023-11-23"},{slug:"mahdi",name:"Dr. Raed Mahdi",role:"Consultant Paediatrician",hospital:"Al-Dorra Children Hospital, Gaza",status:"detained",abductedOn:"2023-12-08"},{slug:"shahada",name:"Dr. Ahmad Shahada",role:"Cardiology Specialist",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-02-01"},{slug:"abu-zuhri",name:"Dr. Ghassan Abu Zuhri",role:"Chief of Orthopaedics Surgery",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-02-16"},{slug:"abu-taima",name:"Dr. Nahad Abu Taima",role:"Chief of Surgery",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-02-16"},{slug:"musa",name:"Dr. Ahmad Musa",role:"General Surgery Specialist",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-02-16"},{slug:"samaan",name:"Dr. Musab Samaan",role:"In-training Physician",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-02-16"},{slug:"abu-sabha",name:"Dr. Hamza Abu Sabha",role:"In-training Physician",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-02-16"},{slug:"hallak",name:"Dr. Mahmoud Hallak",role:"In-training Intensive Care Physician",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-02-16"},{slug:"amar",name:"Dr. Omar Amar",role:"Consultant Obstetrician & Gynaecologist",hospital:"Nasser Medical Complex, Khan Younis",status:"detained",abductedOn:"2024-03-03"},{slug:"al-qouqa",name:"Dr. Murad Al-Qouqa",role:"Orthopaedics Surgery Specialist",hospital:"Al-Shifa Hospital, Gaza",status:"detained",abductedOn:"2024-03-19"},{slug:"ubaid",name:"Dr. Muhammad Ubaid",role:"Consultant Orthopaedic Surgeon",hospital:"Al-Awda Hospital, North Gaza",status:"detained",abductedOn:"2024-10-26"},{slug:"al-moqayyed",name:"Dr. Hassan Al-Moqayyed",role:"Consultant Vascular Surgeon",hospital:"Kamal Adwan Hospital, North Gaza",status:"detained",abductedOn:"2024-10-26"},Nf.abusafiya,{slug:"al-hams",name:"Dr. Marwan Al-Hams",role:"Consultant Anaesthesiologist & Director of Field Hospitals",hospital:"Ministry of Health, Gaza Strip",status:"detained",abductedOn:"2025-07-21"}],K6=[Nf.rantisi,Nf.bursh,...Y6];function $6(e){return`/detained-doctors-video/images/doctors/${e}.png?v=${W6}`}const Ul=K6,Mh="dag_admin_token",J6=20*1024*1024;function Q6(e,a){return`/api/storage${e}?token=${encodeURIComponent(a)}`}function X6(e,a,s){return new Promise((o,c)=>{const h=new XMLHttpRequest;h.open("PUT",e),h.setRequestHeader("Content-Type",a.type),h.upload.onprogress=u=>{u.lengthComputable&&s(Math.round(u.loaded/u.total*100))},h.onload=()=>{h.status>=200&&h.status<300?o():c(new Error("Upload failed. Please try again."))},h.onerror=()=>c(new Error("Upload failed. Please check your connection and try again.")),h.send(a)})}function Yx({file:e,onFile:a,onError:s,disabled:o,inputId:c}){const[h,u]=w.useState(!1),p=w.useRef(null);function m(b){if(s(null),!!b){if(!b.type.startsWith("image/")){s("Please choose an image file (JPG, PNG, or similar).");return}if(b.size>J6){s("Image must be smaller than 20 MB.");return}a(b)}}function g(b){b.preventDefault(),u(!1),m(b.dataTransfer.files?.[0]??null)}function y(){a(null),p.current&&(p.current.value="")}return r.jsxs("div",{children:[e?r.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-zinc-200 bg-zinc-50 px-3 py-2",children:[r.jsx("img",{src:URL.createObjectURL(e),alt:"Selected",className:"w-12 h-12 rounded object-cover flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm font-semibold text-zinc-900 truncate",children:e.name}),r.jsxs("p",{className:"text-xs text-zinc-500",children:[(e.size/(1024*1024)).toFixed(1)," MB"]})]}),!o&&r.jsxs("button",{type:"button",onClick:y,className:"inline-flex items-center gap-1 text-sm text-zinc-500 hover:text-primary transition flex-shrink-0",children:[r.jsx(oa,{className:"w-4 h-4"})," Remove"]})]}):r.jsxs("label",{htmlFor:c,onDragOver:b=>{b.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:g,className:`flex flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed px-4 py-6 cursor-pointer transition ${h?"border-primary bg-primary/5":"border-zinc-300 hover:border-primary hover:bg-primary/5"}`,children:[r.jsx(jc,{className:"w-6 h-6 text-zinc-400"}),r.jsx("p",{className:"text-sm font-semibold text-zinc-700 text-center",children:"Drop a photo here, or tap to choose a file"}),r.jsx("p",{className:"text-xs text-zinc-500",children:"JPG or PNG, up to 20 MB"})]}),r.jsx("input",{id:c,ref:p,type:"file",accept:"image/*",onChange:b=>
319m(b.target.files?.[0]??null),className:"hidden"})]})}function Z6(){const[e,a]=w.useState(()=>localStorage.getItem(Mh)??""),[s,o]=w.useState(""),[c,h]=w.useState(!1),[u,p]=w.useState([]),[m,g]=w.useState(!1),[y,b]=w.useState(null),[v,S]=w.useState(null),[j,N]=w.useState(null),[C,T]=w.useState(""),[E,R]=w.useState(""),[O,G]=w.useState(null),[_,H]=w.useState(null),[D,J]=w.useState(!1),[W,X]=w.useState(0),[Z,me]=w.useState(""),[ne,ue]=w.useState(""),[P,B]=w.useState(""),[F,ae]=w.useState(""),[k,Y]=w.useState(""),[ee,te]=w.useState(null),[le,ye]=w.useState(null),[se,We]=w.useState(!1),[ke,ze]=w.useState(0),Dt=w.useCallback(async ie=>{g(!0),b(null);try{const De=await fetch("/api/doctor-photo-submissions",{headers:{Authorization:`Bearer ${ie}`}});if(De.status===401){h(!1),b("Invalid access token.");return}if(!De.ok)throw new Error(`Request failed (${De.status})`);const Me=await De.json();p(Me),h(!0),localStorage.setItem(Mh,ie)}catch{b("Could not load photo feedback. Please try again.")}finally{g(!1)}},[]);w.useEffect(()=>{e&&Dt(e)},[e,Dt]);function Lt(ie){ie.preventDefault(),s.trim()&&a(s.trim())}function Xt(){localStorage.removeItem(Mh),a(""),o(""),h(!1),p([])}async function Zt(ie,De){const Me=await fetch("/api/storage/uploads/request-doctor-photo-url",{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({name:ie.name,size:ie.size,contentType:ie.type})});if(!Me.ok){const Ds=await Me.json().catch(()=>null);throw new Error(Ds?.error??"Could not start the upload. Please try again.")}const{uploadURL:Ln,objectPath:Fa}=await Me.json();return await X6(Ln,ie,De),Fa}async function wt(ie){const De=await fetch("/api/doctor-photo-submissions",{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify(ie)});if(!De.ok){const Me=await De.json().catch(()=>null);throw new Error(Me?.error??"Could not save the feedback. Please try again.")}}async function Lc(ie){if(H(null),!C.trim()&&!O&&!E){H("Pick a doctor to swap with, add a note, or upload a corrected photo.");return}try{J(!0),X(0);let De;O&&(De=await Zt(O,X));const Me=E?Ul.find(Ds=>Ds.slug===E):void 0,Ln=[];Me&&Ln.push(`SWAP: this photo/name should be swapped with ${Me.name} (${Me.slug}).`),C.trim()&&Ln.push(C.trim());const Fa=Ln.join(" ").slice(0,2e3);await wt({doctorSlug:ie,...Fa?{note:Fa}:{},...De?{imageObjectPath:De,fileName:O.name,contentType:O.type}:{}}),N(null),T(""),R(""),G(null),await Dt(e)}catch(De){H(De instanceof Error?De.message:"Something went wrong. Please try again.")}finally{J(!1),X(0)}}async function Hc(ie){if(ie.preventDefault(),ye(null),!Z.trim()){ye("Doctor name is required.");return}if(!ee&&!k.trim()){ye("Add a photo or a note for the new doctor.");return}try{We(!0),ze(0);let De;ee&&(De=await Zt(ee,ze)),await wt({doctorName:Z.trim(),...ne.trim()?{role:ne.trim()}:{},...P.trim()?{hospital:P.trim()}:{},...F.trim()?{detentionDate:F.trim()}:{},...k.trim()?{note:k.trim()}:{},...De?{imageObjectPath:De,fileName:ee.name,contentType:ee.type}:{}}),me(""),ue(""),B(""),ae(""),Y(""),te(null),await Dt(e)}catch(De){ye(De instanceof Error?De.message:"Something went wrong. Please try again.")}finally{We(!1),ze(0)}}async function en(ie){if(window.confirm("Delete this feedback item? This cannot be undone.")){S(ie),b(null);try{const De=await fetch(`/api/doctor-photo-submissions/${ie}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}});if(!De.ok&&De.status!==204)throw new Error;p(Me=>Me.filter(Ln=>Ln.id!==ie))}catch{b("Could not delete that item. Please try again.")}finally{S(null)}}}const Ic=new Map(Ul.map(ie=>[ie.slug,ie]));return c?r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] px-6 py-12",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsxs("div",{className:"flex items-center justify-between mb-8",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-zinc-900 font-serif-heading",children:"Doctor Photos in the Video"}),r.jsx("p",{className:"text-zinc-500 text-sm mt-1",children:'These are the exact portraits the "They Wore White Coats" video shows today. Flag anything that is wrong and upload the correct photo.'})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsxs("button",{onClick:()=>Dt(e),disabled:m,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-primary hover:text-primary px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(kc,{className:`w-4 h-4 ${m?"animate-spin":""}`})," Refresh"]}),r.jsxs("button",{onClick:Xt,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-zinc-900 px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(Nc,{className:"w-4 h-4"})," Sign Out"]})]})]}),y&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-6",children:y}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mb-14",children:Ul.map(ie=>{const De=j===ie.slug;return r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-4 shadow-sm flex flex-col",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("img",{src:$6(ie.slug),alt:ie.name,className:"w-20 h-24 rounded-lg object-cover object-top bg-zinc-100 flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"font-semibold text-zinc-900 leading-snug",children:ie.name}),r.jsx("p",{className:"text-xs text-zinc-500 mt-0.5",children:ie.role}),r.jsx("p",{className:"text-xs text-zinc-400 mt-0.5",children:ie.hospital}),r.jsx("span",{className:`inline-block mt-1.5 text-[11px] font-bold uppercase tracking-wide px-2 py-0.5 rounded ${ie.status==="killed"?"bg-zinc-900 text-white":"bg-primary/10 text-primary"}`,children:ie.status==="killed"?"Killed in detention":"Detained"})]})]}),r.jsx("div",{className:"mt-3",children:De?r.jsxs("div",{className:"border-t border-zinc-100 pt-3 space-y-3",children:[r.jsxs("div",{children:[r.jsxs("label",{htmlFor:`swap-${ie.slug}`,className:"block text-xs font-semibold text-zinc-700 mb-1",children:["Swap with another doctor"," ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(if two pictures or names are mi
319xed up)"})]}),r.jsxs("select",{id:`swap-${ie.slug}`,value:E,onChange:Me=>R(Me.target.value),className:"w-full rounded-lg border border-zinc-300 px-3 py-2 text-sm bg-white outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",children:[r.jsx("option",{value:"",children:"No swap — something else is wrong"}),Ul.filter(Me=>Me.slug!==ie.slug).map(Me=>r.jsxs("option",{value:Me.slug,children:["Swap with ",Me.name]},Me.slug))]})]}),r.jsx("textarea",{value:C,onChange:Me=>T(Me.target.value),maxLength:2e3,rows:2,placeholder:'Note, e.g. "This is the wrong person" (optional if you pick a swap or upload a photo)',className:"w-full rounded-lg border border-zinc-300 px-3 py-2 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition"}),r.jsx(Yx,{file:O,onFile:G,onError:H,disabled:D,inputId:`photo-${ie.slug}`}),D&&O&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between text-xs text-zinc-500 mb-1",children:[r.jsx("span",{children:W<100?"Uploading...":"Finishing up..."}),r.jsxs("span",{children:[W,"%"]})]}),r.jsx("div",{className:"h-1.5 rounded-full bg-zinc-200 overflow-hidden",children:r.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-300",style:{width:`${W}%`}})})]}),_&&r.jsx("p",{className:"text-xs text-[#C00000] font-medium",children:_}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{onClick:()=>Lc(ie.slug),disabled:D,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-semibold px-4 py-2 rounded-lg text-sm transition-colors",children:[D?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):r.jsx(r0,{className:"w-4 h-4"}),"Submit"]}),r.jsx("button",{onClick:()=>{N(null),T(""),R(""),G(null),H(null)},disabled:D,className:"text-sm font-medium text-zinc-500 hover:text-zinc-900 transition",children:"Cancel"})]})]}):r.jsxs("button",{onClick:()=>{N(ie.slug),T(""),R(""),G(null),H(null)},disabled:D,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-primary hover:text-primary disabled:opacity-50 disabled:pointer-events-none px-3 py-1.5 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(r0,{className:"w-4 h-4"})," Flag / fix photo"]})})]},ie.slug)})}),r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-6 shadow-sm mb-14",children:[r.jsxs("h2",{className:"text-xl font-bold text-zinc-900 mb-1 font-serif-heading flex items-center gap-2",children:[r.jsx(l0,{className:"w-5 h-5 text-primary"})," Add a missing doctor"]}),r.jsx("p",{className:"text-zinc-500 text-sm mb-5",children:"Submit a doctor who should appear in the video but is not on the roster above."}),r.jsxs("form",{onSubmit:Hc,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"new-name",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Doctor name ",r.jsx("span",{className:"text-primary",children:"*"})]}),r.jsx("input",{id:"new-name",type:"text",value:Z,onChange:ie=>me(ie.target.value),maxLength:200,required:!0,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"e.g. Dr. Full Name"})]}),r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"new-role",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Role ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(optional)"})]}),r.jsx("input",{id:"new-role",type:"text",value:ne,onChange:ie=>ue(ie.target.value),maxLength:200,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"e.g. Consultant Surgeon"})]}),r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"new-hospital",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Hospital ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(optional)"})]}),r.jsx("input",{id:"new-hospital",type:"text",value:P,onChange:ie=>B(ie.target.value),maxLength:200,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"e.g. Al-Shifa Hospital, Gaza"})]}),r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"new-detained",className:"block text-sm font-semibold text-zinc-800 mb
319-1.5",children:["Date detained ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(optional)"})]}),r.jsx("input",{id:"new-detained",type:"text",value:F,onChange:ie=>ae(ie.target.value),maxLength:100,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"e.g. 2024-02-16 or February 2024"})]})]}),r.jsxs("div",{children:[r.jsxs("label",{htmlFor:"new-note",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:["Notes ",r.jsx("span",{className:"text-zinc-400 font-normal",children:"(optional)"})]}),r.jsx("textarea",{id:"new-note",value:k,onChange:ie=>Y(ie.target.value),maxLength:2e3,rows:2,className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"Anything else we should know"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:"Photo"}),r.jsx(Yx,{file:ee,onFile:te,onError:ye,disabled:se,inputId:"photo-new-doctor"})]}),se&&ee&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between text-xs text-zinc-500 mb-1",children:[r.jsx("span",{children:ke<100?"Uploading...":"Finishing up..."}),r.jsxs("span",{children:[ke,"%"]})]}),r.jsx("div",{className:"h-1.5 rounded-full bg-zinc-200 overflow-hidden",children:r.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-300",style:{width:`${ke}%`}})})]}),le&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium",children:le}),r.jsxs("button",{type:"submit",disabled:se,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-bold px-6 py-2.5 rounded-lg text-sm transition-colors",children:[se?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):r.jsx(l0,{className:"w-4 h-4"}),"Add Doctor"]})]})]}),r.jsxs("div",{children:[r.jsxs("h2",{className:"text-xl font-bold text-zinc-900 mb-4 font-serif-heading",children:["Submitted feedback (",u.length,")"]}),m&&u.length===0?r.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[r.jsx(bt,{className:"w-5 h-5 animate-spin"})," Loading..."]}):u.length===0?r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-10 text-center shadow-sm",children:[r.jsx(Ua,{className:"w-10 h-10 text-primary mx-auto mb-3"}),r.jsx("p",{className:"text-zinc-700 font-semibold",children:"No feedback yet"}),r.jsx("p",{className:"text-zinc-500 text-sm mt-1",children:"Flag a photo above or add a missing doctor, and it will appear here."})]}):r.jsx("div",{className:"space-y-4",children:u.map(ie=>{const Me=(ie.doctorSlug?Ic.get(ie.doctorSlug):void 0)?.name??ie.doctorName??"Unknown doctor";return r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-5 shadow-sm flex flex-col sm:flex-row sm:items-center gap-5",children:[r.jsx("div",{className:"w-24 h-28 rounded-lg bg-zinc-100 border border-zinc-100 flex items-center justify-center overflow-hidden flex-shrink-0",children:ie.imageObjectPath?r.jsx("img",{src:Q6(ie.imageObjectPath,e),alt:`Photo for ${Me}`,className:"w-full h-full object-cover object-top"}):r.jsx(TC,{className:"w-6 h-6 text-zinc-400"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("p",{className:"font-semibold text-zinc-900",children:[Me," ",r.jsx("span",{className:`ml-1 text-[11px] font-bold uppercase tracking-wide px-2 py-0.5 rounded align-middle ${ie.doctorSlug?"bg-primary/10 text-primary":"bg-zinc-900 text-white"}`,children:ie.doctorSlug?"Photo fix":"New doctor"})]}),(ie.role||ie.hospital)&&r.jsx("p",{className:"text-sm text-zinc-500 mt-0.5",children:[ie.role,ie.hospital].filter(Boolean).join(" — ")}),ie.detentionDate&&r.jsxs("p",{className:"text-sm text-zinc-500 mt-0.5",children:["Detained: ",ie.detentionDate]}),ie.note&&r.jsxs("p",{className:"text-sm text-zinc-700 mt-1.5 italic",children:['"',ie.note,'"']}),r.jsxs("p",{className:"text-xs text-zinc-400 mt-1.5",children:["Submitted ",new Date(ie.createdAt).toLocaleStr
319ing(),ie.fileName?` · ${ie.fileName}`:""]})]}),r.jsxs("button",{onClick:()=>en(ie.id),disabled:v===ie.id,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-600 hover:border-[#C00000] hover:text-[#C00000] disabled:opacity-60 font-semibold px-4 py-2 rounded-lg text-sm transition-colors flex-shrink-0 self-start sm:self-center",children:[v===ie.id?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):r.jsx(qf,{className:"w-4 h-4"}),"Delete"]})]},ie.id)})})]})]})}):r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] flex items-center justify-center px-6",children:r.jsxs("form",{onSubmit:Lt,className:"w-full max-w-sm bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[r.jsx("h1",{className:"text-2xl font-bold text-zinc-900 mb-1 font-serif-heading",children:"Doctor Photo Review"}),r.jsx("p",{className:"text-zinc-500 text-sm mb-6",children:"Enter the access token to review and correct doctor photos used in the video."}),r.jsx("label",{htmlFor:"token",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:"Access token"}),r.jsx("input",{id:"token",type:"password",value:s,onChange:ie=>o(ie.target.value),className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 mb-4 outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"Access token",autoComplete:"current-password"}),y&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-4",children:y}),r.jsx("button",{type:"submit",disabled:m,className:"w-full inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-bold px-6 py-3 rounded-lg transition-colors",children:m?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):"Sign In"})]})})}const eO="https://us06web.zoom.us/webinar/register/WN_aUUzycRDSwaem750Nc6iFg#/registration",tO="Hear Directly from Frontline Doctors",nO="Every Sunday at 12 PM — live briefings with physicians working inside war zones, genocide survivors, and global health experts. These are not just updates. They are calls to action.",Oh="dag_admin_token";function aO(e){return`/api/storage/objects${e.replace(/^\/objects/,"")}`}function iO(){const[e,a]=w.useState(()=>localStorage.getItem(Oh)??""),[s,o]=w.useState(""),[c,h]=w.useState(!1),[u,p]=w.useState({imageObjectPath:null,title:null,subtitle:null,registrationUrl:null}),[m,g]=w.useState(""),[y,b]=w.useState(""),[v,S]=w.useState(""),[j,N]=w.useState(!1),[C,T]=w.useState(!1),[E,R]=w.useState(null),[O,G]=w.useState(null),[_,H]=w.useState(null),D=w.useRef(null),J=w.useCallback(async B=>{N(!0),G(null);try{const F=await fetch("/api/webinar-config");if(!F.ok)throw new Error(`Request failed (${F.status})`);const ae=await F.json();if(p(ae),g(ae.title??""),b(ae.subtitle??""),S(ae.registrationUrl??""),(await fetch("/api/webinar-config",{method:"PUT",headers:{Authorization:`Bearer ${B}`,"Content-Type":"application/json"},body:JSON.stringify({})})).status===401){h(!1),G("Invalid access token.");return}h(!0),localStorage.setItem(Oh,B)}catch{G("Could not load webinar config. Please try again.")}finally{N(!1)}},[]);w.useEffect(()=>{e&&J(e)},[e,J]);function W(B){B.preventDefault(),s.trim()&&a(s.trim())}function X(){localStorage.removeItem(Oh),a(""),o(""),h(!1)}async function Z(B){G(null),H(null),R("Requesting upload URL…");try{const F=await fetch("/api/storage/uploads/request-webinar-image-url",{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({name:B.name,size:B.size,contentType:B.type})});if(!F.ok){const le=await F.json().catch(()=>({}));throw new Error(le.error??`Upload failed (${F.status})`)}const{uploadURL:ae,objectPath:k}=await F.json();R("Uploading image…");const Y=await fetch(ae,{method:"PUT",headers:{"Content-Type":B.type},body:B});if(!Y.ok)throw new Error(`Upload to storage failed (${Y.status})`);R("Saving configuration…");const ee=await fetch("/api/webinar-config",{method:"PUT",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({imageObjectPath:k})});if(!ee.ok)throw new Error(`Config save failed (${ee.status})`);const te=await ee.json();p(te),H("Webinar image updated successfully.")}catch(F){G(F instanceof Error?F.message:"Upload failed. Please try again.")}finally{R(null)}}async function me(){T(!0),G(null),H(null);try{const B=await fetch("/api/webinar-config",{method:"PUT",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({title:null})});if(!B.ok)throw new Error(`Reset failed (${B.status})`);const F=await B.json();p(F),g(F.title??""),H("Title reset to default.")}catch(B){G(B instanceof Error?B.message:"Reset failed. Please try again.")}finally{T(!1)}}async function ne(){T(!0),G(null),H(null);try{const B=await fetch("/api/webinar-config",{method:"PUT",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}
319,body:JSON.stringify({subtitle:null})});if(!B.ok)throw new Error(`Reset failed (${B.status})`);const F=await B.json();p(F),b(F.subtitle??""),H("Subtitle reset to default.")}catch(B){G(B instanceof Error?B.message:"Reset failed. Please try again.")}finally{T(!1)}}async function ue(){T(!0),G(null),H(null);try{const B=await fetch("/api/webinar-config",{method:"PUT",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({registrationUrl:null})});if(!B.ok)throw new Error(`Reset failed (${B.status})`);const F=await B.json();p(F),S(""),H("Registration URL reset to default.")}catch(B){G(B instanceof Error?B.message:"Reset failed. Please try again.")}finally{T(!1)}}async function P(B){B.preventDefault(),T(!0),G(null),H(null);try{const F={};if(m.trim()!==(u.title??"")&&(F.title=m.trim()||null),y.trim()!==(u.subtitle??"")&&(F.subtitle=y.trim()||null),v.trim()!==(u.registrationUrl??"")&&(F.registrationUrl=v.trim()||null),Object.keys(F).length===0){H("No changes to save.");return}const ae=await fetch("/api/webinar-config",{method:"PUT",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify(F)});if(!ae.ok)throw new Error(`Save failed (${ae.status})`);const k=await ae.json();p(k),g(k.title??""),b(k.subtitle??""),S(k.registrationUrl??""),H("Webinar text updated successfully.")}catch(F){G(F instanceof Error?F.message:"Save failed. Please try again.")}finally{T(!1)}}return c?r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] px-6 py-12",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsxs("div",{className:"flex items-center justify-between mb-10",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-zinc-900 font-serif-heading",children:"Weekly Webinar"}),r.jsx("p",{className:"text-zinc-500 text-sm mt-1",children:"Update the image and session topic shown on the homepage."})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{onClick:()=>J(e),disabled:j,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-primary hover:text-primary px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(kc,{className:`w-4 h-4 ${j?"animate-spin":""}`})," Refresh"]}),r.jsxs("button",{onClick:X,className:"inline-flex items-center gap-2 border border-zinc-300 text-zinc-700 hover:border-zinc-900 px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:[r.jsx(Nc,{className:"w-4 h-4"})," Sign Out"]})]})]}),O&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-6",children:O}),_&&r.jsxs("div",{className:"flex items-center gap-2 text-sm text-emerald-700 bg-emerald-50 border border-emerald-200 rounded-lg px-4 py-3 mb-6",children:[r.jsx(Ua,{className:"w-4 h-4 flex-shrink-0"})," ",_]}),r.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl p-6 shadow-sm mb-6",children:[r.jsx("h2",{className:"text-lg font-bold text-zinc-900 font-serif-heading mb-4",children:"Session Image"}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-start gap-6",children:[r.jsx("div",{className:"w-52 aspect-video rounded-lg overflow-hidden border border-zinc-200 bg-zinc-50 flex-shrink-0",children:u.imageObjectPath?r.jsx("img",{src:aO(u.imageObjectPath),alt:"Current webinar image",className:"w-full h-full object-cover"},u.imageObjectPath):r.jsx("img",{src:"/dag-weekly-webinar.jpg?v=4",alt:"Default webinar image",className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-sm text-zinc-600 mb-3",children:u.imageObjectPath?"A custom image is active. Upload a new one to replace it.":"No custom image set — the default static image is shown. Upload one to override it."}),r.jsx("input",{ref:D,type:"file",accept:"image/*",className:"hidden",onChange:B=>{const F=B.target.files?.[0];F&&Z(F),B.target.value=""}}),r.jsx("button",{onClick:()=>D.current?.click(),disabled:!!E,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-semibold px-5 py-2.5 rounded-lg text-sm transition-colors",children:E?r.jsxs(r.Fragment,{children:[r.jsx(bt,{className:"w-4 h-4 animate-spin"})," ",E]}):r.jsxs(r.Fragment,{children:[r.jsx(kC,{className:"w-4 h-4"})," Upload new image"]})}),r.jsx("p",{className:"text-xs text-zinc-400 mt-2",children:"JPEG, PNG, or WebP — max 10 MB. Landscape (16:9) works best."})]})]})]}),r.jsxs("form",{onSubmit:P,className:"bg-white border border-zinc-200 rounded-xl p-6 shadow-sm",children:[r.jsx("h2",{className:"text-lg font-bold text-zinc-900 font-serif-heading mb-4",children:"Session Topic"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[r.jsx("label",{htmlFor:"title",className:"block text-sm font-semibold text-zinc-800",children:"Title"}),u.title&&r.jsxs("button",{type:"button",onClick:()=>{me()},disabled:C,className:"inline-flex items-center gap-1.5 text-xs font-medium text-[#C00000] hover:text-[#a00000] disabled:opacity-50 transition-colors",children:[r.jsx(ch,{className:"w-3 h-3"}),"Reset to default"]})]}),r.jsx("input",{id:"title",type:"text",value:m,onChange:B=>g(B.target.value),placeholder:"e.g. Hear Directly from Frontline Doctors",className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition text-sm"}),r.jsxs("p",{className:"text-xs text-zinc-400 mt-1",children:["Default: ",r.jsx("span",{className:"italic",children:tO})]})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[r.jsx("label",{htmlFor:"subtitle",className:"block text-sm font-semibold text-zinc-800",children:"Subtitle / description"}),u.subtitle&&r.jsxs("button",{type:"button",onClick:()=>{ne()},disabled:C,className:"inline-flex items-center gap-1.5 text-xs font-medium text-[#C00000] hover:text-[#a00000] disabled:opacity-50 transition-colors",children:[r.jsx(ch,{className:"w-3 h-3"}),"Reset to default"]})]}),r.jsx("textarea",{id:"subtitle",value:y,onChange:B=>b(B.target.value),rows:3,placeholder:"e.g. This week: Updates on Jerusalem and West Bank with a live screening of SUMUD",className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition text-sm resize-none"}),r.jsxs("p",{className:"text-xs text-zinc-400 mt-1",children:["Default: ",r.jsx("span",{className:"italic",children:nO})]})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[r.jsx("label",{htmlFor:"registrationUrl",className:"block text-sm font-semibold text-zinc-800",children:"Registration URL"}),u.registrationUrl&&r.jsxs("button",{type:"button",onClick:()=>{ue()},disabled:C,className:"inline-flex items-center gap-1.5 text-xs font-medium text-[#C00000] hover:text-[#a00000] disabled:opacity-50 transition-colors",children:[r.jsx(ch,{className:"w-3 h-3"}),"Reset to default"]})]}
319),r.jsx("input",{id:"registrationUrl",type:"url",value:v,onChange:B=>S(B.target.value),placeholder:"https://us06web.zoom.us/webinar/register/…",className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition text-sm"}),r.jsxs("p",{className:"text-xs text-zinc-400 mt-1",children:["Default: ",r.jsx("span",{className:"font-mono",children:eO})]})]})]}),r.jsx("div",{className:"mt-5 flex justify-end",children:r.jsxs("button",{type:"submit",disabled:C,className:"inline-flex items-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-bold px-6 py-2.5 rounded-lg text-sm transition-colors",children:[C?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):r.jsx(WC,{className:"w-4 h-4"}),"Save text"]})})]})]})}):r.jsx("div",{className:"min-h-screen bg-[#f5f3ef] flex items-center justify-center px-6",children:r.jsxs("form",{onSubmit:W,className:"w-full max-w-sm bg-white border border-zinc-200 rounded-xl p-8 shadow-sm",children:[r.jsx("h1",{className:"text-2xl font-bold text-zinc-900 mb-1 font-serif-heading",children:"Webinar Admin"}),r.jsx("p",{className:"text-zinc-500 text-sm mb-6",children:"Enter the access token to update the weekly webinar image and topic."}),r.jsx("label",{htmlFor:"token",className:"block text-sm font-semibold text-zinc-800 mb-1.5",children:"Access token"}),r.jsx("input",{id:"token",type:"password",value:s,onChange:B=>o(B.target.value),className:"w-full rounded-lg border border-zinc-300 px-4 py-2.5 mb-4 outline-none focus:border-primary focus:ring-2 focus:ring-primary/20 transition",placeholder:"Access token",autoComplete:"current-password"}),O&&r.jsx("p",{className:"text-sm text-[#C00000] font-medium mb-4",children:O}),r.jsx("button",{type:"submit",disabled:j,className:"w-full inline-flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 disabled:opacity-60 text-white font-bold px-6 py-3 rounded-lg transition-colors",children:j?r.jsx(bt,{className:"w-4 h-4 animate-spin"}):"Sign In"})]})})}const sO=new wN;function oO(){const[e]=nv();return w.useEffect(()=>{const a=window.location.hash;if(a){const s=document.getElementById(a.slice(1));if(s){requestAnimationFrame(()=>s.scrollIntoView({behavior:"smooth"}));return}}window.scrollTo(0,0)},[e]),null}function rO(){return r.jsxs(r.Fragment,{children:[r.jsx(oO,{}),r.jsx(tM,{}),r.jsxs($j,{children:[r.jsx(fe,{path:"/",component:RM}),r.jsx(fe,{path:"/store",component:A6}),r.jsx(fe,{path:"/admin",component:G6}),r.jsx(fe,{path:"/admin/endorsements",component:_6}),r.jsx(fe,{path:"/admin/video-submissions",component:q6}),r.jsx(fe,{path:"/admin/doctor-photos",component:Z6}),r.jsx(fe,{path:"/admin/webinar",component:iO}),r.jsx(fe,{path:"/actions/hour-of-action",children:r.jsx(Ro,{to:"/actions/abu-safiya-letters",replace:!0})}),r.jsx(fe,{path:"/events/white-coats-on-the-hill",component:O6}),r.jsx(fe,{path:"/education",component:j6}),r.jsx(fe,{path:"/advocacy",component:N6}),r.jsx(fe,{path:"/community-support",component:k6}),r.jsx(fe,{path:"/get-involved",component:C6}),r.jsx(fe,{path:"/about",component:T6}),r.jsx(fe,{path:"/education/medical-genocide",component:Se}),r.jsx(fe,{path:"/education/refeeding-syndrome",component:Se}),r.jsx(fe,{path:"/education/sick-from-genocide",component:Se}),r.jsx(fe,{path:"/education/genocide-in-gaza",component:Se}),r.jsx(fe,{path:"/education/starving-a-generation",component:Se}),r.jsx(fe,{path:"/education/gaza-fact-sheet",component:Se}),r.jsx(fe,{path:"/education/un-health-report",component:Se}),r.jsx(fe,{path:"/education/palestinian-agriculture-report",component:Se}),r.jsx(fe,{path:"/education/ahmad-elfarra-presentation",component:Se}),r.jsx(fe,{path:"/actions/free-gaza-doctors",children:r.jsx(Ro,{to:"/statements/release-dr-abu-safiya",replace:!0})}),r.jsx(fe,{path:"/actions/abu-safiya-letters",component:Se}),r.jsx(fe,{path:"/actions/end-genocide-prescription",component:Se}),r.jsx(fe,{path:"/actions/bread-not-bombs",component:Se}),r.jsx(fe,{path:"/actions/no-child-a-target",component:Se}),r.jsx(fe,{path:"/actions/sos-from-gaza",component:Se}),r.jsx(fe,{path:"/actions/petition-medical-associations",component:Se}),r.jsx(fe,{path:"/actions/not-another-hospital",component:Se}),r.jsx(fe,{path:"/actions/gaza-fact-sheet-us",component:Se}),r.jsx(fe,{path:"/actions/gaza-fact-sheet-canada",component:Se}),r.jsx(fe,{path:"/join/dag",component:Se}),r.jsx(fe,{path:"/join/maag",component:Se}),r.jsx(fe,{path:"/join/chapter",component:Se}),r.jsx(fe,{path:"/education/anti-palestinian-racism",component:Se}),r.jsx(fe,{path:"/education/medical-genocide-definition",component:Se}),r.jsx(fe,{path:"/education/economy-of-genocide",component:Se}),r.jsx(fe,{path:"/education/webinars",component:Se}),r.jsx(fe,{path:"/actions/signs-and-print-outs",component:Se}),r.jsx(fe,{path:"/actions/white-coats-orgs",children:r.jsx(Ro,{to:"/events/white-coats-on-the-hill#org-form",replace:!0})}),r.jsx(fe,{path:"/signs-and-print-outs",children:r.jsx(Ro,{to:"/actions/signs-and-print-outs",replace:!0})}),r.jsx(fe,{path:"/not-another-hospital-1",children:r.jsx(Ro,{to:"/actions/not-another-hospital",replace:!0})}),r.jsx(fe,{path:"/statements/indigenous-peoples-day-2026",component:Se}),r.jsx(fe,{path:"/statements/west-bank-olive-trees-media-advisory",component:Se}),r.jsx(fe,{path:"/statements/release-dr-abu-safiya",component:Se}),r.jsx(fe,{path:"/statements/west-bank-annexation",component:Se}),r.jsx(fe,{path:"/statements/national-appeal-to-trump",component:Se}),r.jsx(fe,{path:"/statements/forced-displacement",component:Se}),r.jsx(fe,{path:"/statements/ceasefire-in-gaza",component:Se}),r.jsx(fe,{path:"/statements/protect-kamal-adwan",component:Se}),r.jsx(fe,{path:"/statements/attacks-on-aid-workers",component:Se}),r.jsx(fe,{path:"/statements/flour-massacre",component:Se}),r.jsx(fe,{path:"/statements/icj-ruling",component:Se}),r.jsx(fe,{path:"/statements/starvation-genocide",component:Se}),r.jsx(fe,{path:"/statements/international-childrens-day",component:Se}
319),r.jsx(fe,{path:"/statements/nasser-hospital",component:Se}),r.jsx(fe,{component:eE})]})]})}function lO(){return r.jsx(SN,{client:sO,children:r.jsxs(Kz,{children:[r.jsx(av,{base:"/".replace(/\/$/,""),children:r.jsx(rO,{})}),r.jsx(m4,{})]})})}zj.createRoot(document.getElementById("root")).render(r.jsx(lO,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.