1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var tx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Y1={exports:{}},kf={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var bT;function O9(){if(bT)return kf;bT=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,r,a){var l=null;if(a!==void 0&&(l=""+a),r.key!==void 0&&(l=""+r.key),"key"in r){a={};for(var c in r)c!=="key"&&(a[c]=r[c])}else a=r;return r=a.ref,{$$typeof:t,type:s,key:l,ref:r!==void 0?r:null,props:a}}return kf.Fragment=e,kf.jsx=n,kf.jsxs=n,kf}var vT;function D9(){return vT||(vT=1,Y1.exports=O9()),Y1.exports}var o=D9(),X1={exports:{}},ft={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var wT;function L9(){if(wT)return ft;wT=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function x(I){return I===null||typeof I!="object"?null:(I=g&&I[g]||I["@@iterator"],typeof I=="function"?I:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,w={};function N(I,Z,le){this.props=I,this.context=Z,this.refs=w,this.updater=le||b}N.prototype.isReactComponent={},N.prototype.setState=function(I,Z){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,Z,"setState")},N.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function _(){}_.prototype=N.prototype;function E(I,Z,le){this.props=I,this.context=Z,this.refs=w,this.updater=le||b}var k=E.prototype=new _;k.constructor=E,v(k,N.prototype),k.isPureReactComponent=!0;var C=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},L=Object.prototype.hasOwnProperty;function M(I,Z,le,fe,we,Ie){return le=Ie.ref,{$$typeof:t,type:I,key:Z,ref:le!==void 0?le:null,props:Ie}}function O(I,Z){return M(I.type,Z,void 0,void 0,void 0,I.props)}function P(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function H(I){var Z={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(le){return Z[le]})}var V=/\/+/g;function F(I,Z){return typeof I=="object"&&I!==null&&I.key!=null?H(""+I.key):Z.toString(36)}function U(){}function q(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(U,U):(I.status="pending",I.then(function(Z){I.status==="pending"&&(I.status="fulfilled",I.value=Z)},function(Z){I.status==="pending"&&(I.status="rejected",I.reason=Z)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function ae(I,Z,le,fe,we){var Ie=typeof I;(Ie==="undefined"||Ie==="boolean")&&(I=null);var Re=!1;if(I===null)Re=!0;else switch(Ie){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(I.$$typeof){case t:case e:Re=!0;break;case m:return Re=I._init,ae(Re(I._payload),Z,le,fe,we)}}if(Re)return we=we(I),Re=fe===""?"."+F(I,0):fe,C(we)?(le="",Re!=null&&(le=Re.replace(V,"$&/")+"/"),ae(we,Z,le,"",function(Qe){return Qe})):we!=null&&(P(we)&&(we=O(we,le+(we.key==null||I&&I.key===we.key?"":(""+we.key).replace(V,"$&/")+"/")+Re)),Z.push(we)),1;Re=0;var Oe=fe===""?".":fe+":";if(C(I))for(var Te=0;Te<I.length;Te++)fe=I[Te],Ie=Oe+F(fe,Te),Re+=ae(fe,Z,le,Ie,we);else if(Te=x(I),typeof Te=="function")for(I=Te.call(I),Te=0;!(fe=I.next()).done;)fe=fe.value,Ie=Oe+F(fe,Te++),Re+=ae(fe,Z,le,Ie,we);else if(Ie==="object"){if(typeof I.then=="function")return ae(q(
17I),Z,le,fe,we);throw Z=String(I),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Re}function B(I,Z,le){if(I==null)return I;var fe=[],we=0;return ae(I,fe,"","",function(Ie){return Z.call(le,Ie,we++)}),fe}function $(I){if(I._status===-1){var Z=I._result;Z=Z(),Z.then(function(le){(I._status===0||I._status===-1)&&(I._status=1,I._result=le)},function(le){(I._status===0||I._status===-1)&&(I._status=2,I._result=le)}),I._status===-1&&(I._status=0,I._result=Z)}if(I._status===1)return I._result.default;throw I._result}var X=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function xe(){}return ft.Children={map:B,forEach:function(I,Z,le){B(I,function(){Z.apply(this,arguments)},le)},count:function(I){var Z=0;return B(I,function(){Z++}),Z},toArray:function(I){return B(I,function(Z){return Z})||[]},only:function(I){if(!P(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},ft.Component=N,ft.Fragment=n,ft.Profiler=r,ft.PureComponent=E,ft.StrictMode=s,ft.Suspense=u,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,ft.__COMPILER_RUNTIME={__proto__:null,c:function(I){return A.H.useMemoCache(I)}},ft.cache=function(I){return function(){return I.apply(null,arguments)}},ft.cloneElement=function(I,Z,le){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var fe=v({},I.props),we=I.key,Ie=void 0;if(Z!=null)for(Re in Z.ref!==void 0&&(Ie=void 0),Z.key!==void 0&&(we=""+Z.key),Z)!L.call(Z,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&Z.ref===void 0||(fe[Re]=Z[Re]);var Re=arguments.length-2;if(Re===1)fe.children=le;else if(1<Re){for(var Oe=Array(Re),Te=0;Te<Re;Te++)Oe[Te]=arguments[Te+2];fe.children=Oe}return M(I.type,we,void 0,void 0,Ie,fe)},ft.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:a,_context:I},I},ft.createElement=function(I,Z,le){var fe,we={},Ie=null;if(Z!=null)for(fe in Z.key!==void 0&&(Ie=""+Z.key),Z)L.call(Z,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(we[fe]=Z[fe]);var Re=arguments.length-2;if(Re===1)we.children=le;else if(1<Re){for(var Oe=Array(Re),Te=0;Te<Re;Te++)Oe[Te]=arguments[Te+2];we.children=Oe}if(I&&I.defaultProps)for(fe in Re=I.defaultProps,Re)we[fe]===void 0&&(we[fe]=Re[fe]);return M(I,Ie,void 0,void 0,null,we)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(I){return{$$typeof:c,render:I}},ft.isValidElement=P,ft.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:$}},ft.memo=function(I,Z){return{$$typeof:f,type:I,compare:Z===void 0?null:Z}},ft.startTransition=function(I){var Z=A.T,le={};A.T=le;try{var fe=I(),we=A.S;we!==null&&we(le,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(xe,X)}catch(Ie){X(Ie)}finally{A.T=Z}},ft.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},ft.use=function(I){return A.H.use(I)},ft.useActionState=function(I,Z,le){return A.H.useActionState(I,Z,le)},ft.useCallback=function(I,Z){return A.H.useCallback(I,Z)},ft.useContext=function(I){return A.H.useContext(I)},ft.useDebugValue=function(){},ft.useDeferredValue=function(I,Z){return A.H.useDeferredValue(I,Z)},ft.useEffect=function(I,Z,le){var fe=A.H;if(typeof le=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return fe.useEffect(I,Z)},ft.useId=function(){return A.H.useId()},ft.useImperativeHandle=function(I,Z,le){return A.H.useImperativeHandle(I,Z,le)},ft.useInsertionEffect=function(I,Z){return A.H.useInsertionEffect(I,Z)},ft.useLayoutEffect=function(I,Z){return A.H.useLayoutEffect(I,Z)},ft.useMemo=function(I,Z){return A.H.useMemo(I,Z)},ft.useOptimistic=function(I,Z){return A.H.useOptimistic(I,Z)},ft.useReducer=function(I,Z,le){return A.H.useReducer(I,Z,le)},ft.useRef=function(I){return A.H.useRef(I)},ft.useState=function(I){return A.H.useState(I)},ft.useSyncExternalStore=function(I,Z,le){return A.H.useSyncExternalStore(I,Z,le)},ft.useTransition=function(){return A.H.useTransition()},ft.version="19.1.1",ft}var NT;function Ba(){return NT||(NT=1,X1.exports=L9()),X1.exports}var T=Ba();const $e=Dd(T);var Z1={exports:{}},Cf={},J1={exports:{}},Q1={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var ST;function I9(){return ST||(ST=1,(function(t){function e(B,$){var X=B.length;B.push($);e:for(;0<X;){var xe=X-1>>>1,I=B[xe];if(0<r(I,$))B[xe]=$,B[X]=I,X=xe;else break e}}function n(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var $=B[0],X=B.pop();if(X!==$){B[0]=X;e:for(var xe=0,I=B.length,Z=I>>>1;xe<Z;){var le=2*(xe+1)-1,fe=B[le],we=le+1,Ie=B[we];if(0>r(fe,X))we<I&&0>r(Ie,fe)?(B[xe]=Ie,B[we]=X,xe=we):(B[xe]=fe,B[le]=X,xe=le);else if(we<I&&0>r(Ie,X))B[xe]=Ie,B[we]=X,xe=we;else break e}}return $}function r(B,$){var X=B.sortIndex-$.sortIndex;return X!==0?X:B.id-$.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var u=[],f=[],m=1,g=null,x=3,b=!1,v=!1,w=!1,N=!1,_=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function C(B){for(var $=n(f);$!==null;){if($.callback===null)s(f);else if($.startTime<=B)s(f),$.sortIndex=$.expirationTime,e(u,$);else break;$=n(f)}}function A(B){if(w=!1,C(B),!v)if(n(u)!==null)v=!0,L||(L=!0,F());else{var $=n(f);$!==null&&ae(A,$.startTime-B)}}var L=!1,M=-1,O=5,P=-1;function H(){return N?!0:!(t.unstable_now()-P<O)}function V(){if(N=!1,L){var B=t.unstable_now();P=B;var $=!0;try{e:{v=!1,w&&(w=!1,E(M),M=-1),b=!0;var X=x;try{t:{for(C(B),g=n(u);g!==null&&!(g.expirationTime>B&&H());){var xe=g.callback;if(typeof xe=="function"){g.callback=null,x=g.priorityLevel;var I=xe(g.expirationTime<=B);if(B=t.unstable_now(),typeof I=="function"){g.callback=I,C(B),$=!0;break t}g===n(u)&&s(u),C(B)}else s(u);g=n(u)}if(g!==null)$=!0;else{var Z=n(f);Z!==null&&ae(A,Z.startTime-B),$=!1}}break e}finally{g=null,x=X,b=!1}$=void 0}}finally{$?F():L=!1}}}var F;if(typeof k=="function")F=function(){k(V)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,q=U.port2;U.port1.onmessage=V,F=function(){q.postMessage(null)}}else F=function(){_(V,0)};function ae(B,$){M=_(function(){B(t.unstable_now())},$)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.
vendor: 23,389 bytes, lines 25-48
25callback=null},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(B){switch(x){case 1:case 2:case 3:var $=3;break;default:$=x}var X=x;x=$;try{return B()}finally{x=X}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(B,$){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var X=x;x=B;try{return $()}finally{x=X}},t.unstable_scheduleCallback=function(B,$,X){var xe=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?xe+X:xe):X=xe,B){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=X+I,B={id:m++,callback:$,priorityLevel:B,startTime:X,expirationTime:I,sortIndex:-1},X>xe?(B.sortIndex=X,e(f,B),n(u)===null&&B===n(f)&&(w?(E(M),M=-1):w=!0,ae(A,X-xe))):(B.sortIndex=I,e(u,B),v||b||(v=!0,L||(L=!0,F()))),B},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(B){var $=x;return function(){var X=x;x=$;try{return B.apply(this,arguments)}finally{x=X}}}})(Q1)),Q1}var _T;function P9(){return _T||(_T=1,J1.exports=I9()),J1.exports}var ew={exports:{}},Ns={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var jT;function B9(){if(jT)return Ns;jT=1;var t=Ba();function e(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var s={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function a(u,f,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:g==null?null:""+g,children:u,containerInfo:f,implementation:m}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Ns.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ns.createPortal=function(u,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return a(u,f,null,m)},Ns.flushSync=function(u){var f=l.T,m=s.p;try{if(l.T=null,s.p=2,u)return u()}finally{l.T=f,s.p=m,s.d.f()}},Ns.preconnect=function(u,f){typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,s.d.C(u,f))},Ns.prefetchDNS=function(u){typeof u=="string"&&s.d.D(u)},Ns.preinit=function(u,f){if(typeof u=="string"&&f&&typeof f.as=="string"){var m=f.as,g=c(m,f.crossOrigin),x=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?s.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:b}):m==="script"&&s.d.X(u,{crossOrigin:g,integrity:x,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Ns.preinitModule=function(u,f){if(typeof u=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);s.d.M(u,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&s.d.M(u)},Ns.preload=function(u,f){if(typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,g=c(m,f.crossOrigin);s.d.L(u,m,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Ns.preloadModule=function(u,f){if(typeof u=="string")if(f){var m=c(f.as,f.crossOrigin);s.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else s.d.m(u)},Ns.requestFormReset=function(u){s.d.r(u)},Ns.unstable_batchedUpdates=function(u,f){return u(f)},Ns.useFormState=function(u,f,m){return l.H.useFormState(u,f,m)},Ns.useFormStatus=function(){return l.H.useHostTransitionStatus()},Ns.version="19.1.1",Ns}var ET;function gb(){if(ET)return ew.exports;ET=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ew.exports=B9(),ew.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var kT;function z9(){if(kT)return Cf;kT=1;var t=P9(),e=Ba(),n=gb();function s(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(d){return!(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)}function a(d){var h=d,p=d;if(d.alternate)for(;h.return;)h=h.return;else{d=h;do h=d,(h.flags&4098)!==0&&(p=h.return),d=h.return;while(d)}return h.tag===3?p:null}function l(d){if(d.tag===13){var h=d.memoizedState;if(h===null&&(d=d.alternate,d!==null&&(h=d.memoizedState)),h!==null)return h.dehydrated}return null}function c(d){if(a(d)!==d)throw Error(s(188))}function u(d){var h=d.alternate;if(!h){if(h=a(d),h===null)throw Error(s(188));return h!==d?null:d}for(var p=d,y=h;;){var S=p.return;if(S===null)break;var j=S.alternate;if(j===null){if(y=S.return,y!==null){p=y;continue}break}if(S.child===j.child){for(j=S.child;j;){if(j===p)return c(S),d;if(j===y)return c(S),h;j=j.sibling}throw Error(s(188))}if(p.return!==y.return)p=S,y=j;else{for(var R=!1,z=S.child;z;){if(z===p){R=!0,p=S,y=j;break}if(z===y){R=!0,y=S,p=j;break}z=z.sibling}if(!R){for(z=j.child;z;){if(z===p){R=!0,p=j,y=S;break}if(z===y){R=!0,y=j,p=S;break}z=z.sibling}if(!R)throw Error(s(189))}}if(p.alternate!==y)throw Error(s(190))}if(p.tag!==3)throw Error(s(188));return p.stateNode.current===p?d:h}function f(d){var h=d.tag;if(h===5||h===26||h===27||h===6)return d;for(d=d.child;d!==null;){if(h=f(d),h!==null)return h;d=d.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function F(d){return d===null||typeof d!="object"?null:(d=V&&d[V]||d["@@iterator"],typeof d=="function"?d:null)}var U=Symbol.for("react.client.reference");function q(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===U?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case v:return"Fragment";case N:return"Profiler";case w:return"StrictMode";case A:return"Suspense";case L:return"SuspenseList";case P:return"Activity"}if(typeof d=="object")switch(d.$$typeof){case b:return"Portal";case k:return(d.displayName||"Context")+".Provider";case E:return(d._context.displayName||"Context")+".Consumer";case C:var h=d.render;return d=d.displayName,d||(d=h.displayName||h.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case M:return h=d.displayName||null,h!==null?h:q(d.type)||"Memo";case O:h=d._payload,d=d._init;try{return q(d(h))}catch{}}return null}var ae=Array.isArray,B=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},xe=[],I=-1;function Z(d){return{current:d}}function le(d){0>I||(d.current=xe[I],xe[I]=null,I--)}function fe(d,h){I++,xe[I]=d.current,d.current=h}var we=Z(null),Ie=Z(null),Re=Z(null),Oe=Z(null);function Te(d,h){switch(fe(Re,h),fe(Ie,d),fe(we,null),h.nodeType){case 9:case 11:d=(d=h.documentElement)&&(d=d.namespaceURI)?qC(d):0;break;default:if(d=h.tagName,h=h.namespaceURI)h=qC(h),d=KC(h,d);else switch(d){case"svg":d=1;break;case"math":d=2;break;default:d=0}}le(we),fe(we,d)}function Qe(){le(we),le(Ie),le(Re)}function Ze(d){d.memoizedState!==null&&fe(Oe,d);var h=we.current,p=KC(h,d.type);h!==p&&(fe(Ie,d),fe(we,p))}function Tt(d){Ie.current===d&&(le(we),le(Ie)),Oe.current===d&&(le(Oe),Nf._currentValue=X)}var mt=Object.prototype.hasOwnProperty,Ke=t.unstable_scheduleCallback,ct=t.unstable_cancelCallback,kn=t.unstable_shouldYield,et=t.unstable_requestPaint,se=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Mt=t.unstable_ImmediatePriority,xn=t.unstable_UserBlockingPriority,pt=t.unstable_NormalPriority,Fi=t.unstable_LowPriority,ji=t.unstable_IdlePriority,Ft=t.log,yn=t.unstable_setDisableYieldValue,tn=null,ot=null;function bn(d){if(typeof Ft=="function"&&yn(d),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(tn,d)}catch{}}var Vt=Math.clz32?Math.clz32:vn,Bs=Math.log,ya=Math.LN2;function vn(d){return d>>>=0,d===0?32:31-(Bs(d)/ya|0)|0}var yr=256,mi=4194304;function Hi(d){var h=d&42;if(h!==0)return h;switch(d&-d){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 d&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return d&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return d}}function zs(d,h,p){var y=d.pendingLanes;if(y===0)return 0;var S=0,j=d.suspendedLanes,R=d.pingedLanes;d=d.warmLanes;var z=y&134217727;return z!==0?(y=z&~j,y!==0?S=Hi(y):(R&=z,R!==0?S=Hi(R):p||(p=z&~d,p!==0&&(S=Hi(p))))):(z=y&~j,z!==0?S=Hi(z):R!==0?S=Hi(R):p||(p=y&~d,p!==0&&(S=Hi(p)))),S===0?0:h!==0&&h!==S&&(h&j)===0&&(j=S&-S,p=h&-h,j>=p||j===32&&(p&4194048)!==0)?h:S}function $i(d,h){return(d.pendingLanes&~(d.suspendedLanes&~d.pingedLanes)&h)===0}function es(d,h){switch(d){case 1:case 2:case 4:case 8:case 64:return h+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 h+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 rt(){var d=yr;return yr<<=1,(yr&4194048)===0&&(yr=256),d}function ys(){var d=mi;return mi<<=1,(mi&62914560)===0&&(mi=4194304),d}function Ei(d){for(var h=[],p=0;31>p;p++)h.push(d);return h}function Hn(d,h){d.pendingLanes|=h,h!==268435456&&(d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0)}function cn(d,h,p,y,S,j){var R=d.pendingLanes;d.pendingLanes=p,d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0,d.expiredLanes&=p,d.entangledLanes&=p,d.errorRecoveryDisabledLanes&=p,d.shellSuspendCounter=0;var z=d.entanglements,G=d.expirationTimes,oe=d.hiddenUpdates;for(p=R&~p;0<p;){var ge=31-Vt(p),ve=1<<ge;z[ge]=0,G[ge]=-1;var de=oe[ge];if(de!==null)for(oe[ge]=null,ge=0;ge<de.length;ge++){var he=de[ge];he!==null&&(he.lane&=-536870913)}p&=~ve}y!==0&&D(d,y,0),j!==0&&S===0&&d.tag!==0&&(d.suspendedLanes|=j&~(R&~h))}function D(d,h,p){d.pendingLanes|=h,d.suspendedLanes&=~h;var y=31-Vt(h);d.entangledLanes|=h,d.entanglements[y]=d.entanglements[y]|1073741824|p&4194090}function W(d,h){var p=d.entangledLanes|=h;for(d=d.entanglements;p;){var y=31-Vt(p),S=1<<y;S&h|d[y]&h&&(d[y]|=h),p&=~S}}function ne(d){switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=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:d=128;break;case 268435456:d=134217728;break;default:d=0}return d}function Ne(d){return d&=-d,2<d?8<d?(d&134217727)!==0?32:268435456:8:2}function Ee(){var d=$.p;return d!==0?d:(d=window.event,d===void 0?32:fT(d.type))}function _e(d,h){var p=$.p;try{return $.p=d,h()}finally{$.p=p}}var re=Math.random().toString(36).slice(2),K="__reactFiber$"+re,ce="__reactProps$"+re,Se="__reactContainer$"+re,ke="__reactEvents$"+re,Pt="__reactListeners$"+re,lt="__reactHandles$"+re,Bt="__reactResources$"+re,wn="__reactMarker$"+re;function Lt(d){delete d[K],delete d[ce],delete d[ke],delete d[Pt],delete d[lt]}function Rt(d){var h=d[K];if(h)return h;for(var p=d.parentNode;p;){if(h=p[Se]||p[K]){if(p=h.alternate,h.child!==null||p!==null&&p.child!==null)for(d=JC(d);d!==null;){if(p=d[K])return p;d=JC(d)}return h}d=p,p=d.parentNode}return null}function bt(d){if(d=d[K]||d[Se]){var h=d.tag;if(h===5||h===6||h===13||h===26||h===27||h===3)return d}return null}function si(d){var h=d.tag;if(h===5||h===26||h===27||h===6)return d.stateNode;throw Error(s(33))}function At(d){var h=d[Bt];return h||(h=d[Bt]={hoistableStyles:new Map,hoistableScripts:new Map}),h}function ut(d){d[wn]=!0}var ts=new Set,Rn={};function Xt(d,h){ht(d,h),ht(d+"Capture",h)}function ht(d,h){for(Rn[d]=h,d=0;d<h.length;d++)ts.add(h[d])}var Fs=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]*$"),br={},$n={};function Cn(d){return mt.call($n,d)?!0:mt.call(br,d)?!1:Fs.test(d)?$n[d]=!0:(br[d]=!0,!1)}function ki(d,h,p){if(Cn(h))if(p===null)d.removeAttribute(h);else{switch(typeof p){case"undefined":case"function":case"symbol":d.removeAttribute(h);return;case"boolean":var y=h.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){d.removeAttribute(h);return}}d.setAttribute(h,""+p)}}function Ui(d,h,p){if(p===null)d.removeAttribute(h);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(h);return}d.setAttribute(h,""+p)}}function bs(d,h,p,y){if(y===null)d.removeAttribute(p);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(p);return}d.setAttributeNS(h,p,""+y)}}var ee,me;function Me(d){if(ee===void 0)try{throw Error()}catch(p){var h=p.stack.trim().match(/\n( *(at )?)/);ee=h&&h[1]||"",me=-1<p.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+ee+d+me}var Fe=!1;function Xe(d,h){if(!d||Fe)return"";Fe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(h){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(he){var de=he}Reflect.construct(d,[],ve)}else{try{ve.call()}catch(he){de=he}d.call(ve.prototype)}}else{try{throw Error()}catch(he){de=he}(ve=d())&&typeof ve.catch=="function"&&ve.catch(function(){})}}catch(he){if(he&&de&&typeof he.stack=="string")return[he.stack,de.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var j=y.DetermineComponentFrameRoot(),R=j[0],z=j[1];if(R&&z){var G=R.split(` 44`),oe=z.split(` 45`);for(S=y=0;y<G.length&&!G[y].includes("DetermineComponentFrameRoot");)y++;for(;S<oe.length&&!oe[S].includes("DetermineComponentFrameRoot");)S++;if(y===G.length||S===oe.length)for(y=G.length-1,S=oe.length-1;1<=y&&0<=S&&G[y]!==oe[S];)S--;for(;1<=y&&0<=S;y--,S--)if(G[y]!==oe[S]){if(y!==1||S!==1)do if(y--,S--,0>S||G[y]!==oe[S]){var ge=` 46`+G[y].replace(" at new "," at ");return d.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",d.displayName)),ge}while(1<=y&&0<=S);break}}}finally{Fe=!1,Error.prepareStackTrace=p}return(p=d?d.displayName||d.name:"")?Me(p):""}function Tn(d){switch(d.tag){case 26:case 27:case 5:return Me(d.type);case 16:return Me("Lazy");case 13:return Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return Xe(d.type,!1);case 11:return Xe(d.type.render,!1);case 1:return Xe(d.type,!0);case 31:return Me("Activity");default:return""}}function pi(d){try{var h="";do h+=Tn(d),d=d.return;while(d);return h}catch(p){return` 47Error generating stack: `+p.message+` 48`+p.stack}}function Yn(d){switch(typeof d){case"bigint":case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function Gt(d){var h=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function Un(d){var h=Gt(d)?"checked":"value",p=Object.getOwnPropertyDescriptor(d.constructor.prototype,h),y=""+d[h];if(!d.hasOwnProperty(h)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,j=p.set;return Object.defineProperty(d,h,{configurable:!0,get:function(){return S.call(this)},set:function(R){y=""+R,j.call(this,R)}}),Object.defineProperty(d,h,{enumerable:p.enumerable}),{getValue:function(){return y},setValue:function(R){y=""+R},stopTracking:function(){d._valueTracker=null,delete d[h]}}}}function $a(d){d._valueTracker||(d._valueTracker=Un(d))}function ol(d){if(!d)return!1;var h=d._valueTracker;if(!h)return!0;var p=h.getValue(),y="";return d&&(y=Gt(d)?d.checked?"true":"false":d.value),d=y,d!==p?(h.setValue(d),!0):!1}function Ua(d){if(d=d||(typeof document<"u"?document:void 0),typeof d>"u")return null;try{return d.activeElement||d.body}catch{return d.body}}var Dh=/[\n"\\]/g;function vs(d){return d.replace(Dh,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function wc(d,h,p,y,S,j,R,z){d.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?d.type=R:d.removeAttribute("type"),h!=null?R==="number"?(h===0&&d.value===""||d.value!=h)&&(d.value=""+Yn(h)):d.value!==""+Yn(h)&&(d.value=""+Yn(h)):R!=="submit"&&R!=="reset"||d.removeAttribute("value"),h!=null?vr(d,R,Yn(h)):p!=null?vr(d,R,Yn(p)):y!=null&&d.removeAttribute("value"),S==null&&j!=null&&(d.defaultChecked=!!j),S!=null&&(d.checked=S&&typeof S!="function"&&typeof S!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?d.name=""+Yn(z):d.removeAttribute("name")}function zd(d,h,p,y,S,j,R,z){if(j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(d.type=j),h!=null||p!=null){if(!(j!=="submit"&&j!=="reset"||h!=null))return;p=p!=null?""+Yn(p):"",h=h!=null?""+Yn(h):p,z||h===d.value||(d.value=h),d.defaultValue=h}y=y??S,y=typeof y!="function"&&typeof y!="symbol"&&!!y,d.checked=z?d.checked:!!y,d.defaultChecked=!!y,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(d.name=R)}function vr(d,h,p){h==="number"&&Ua(d.ownerDocument)===d||d.defaultValue===""+p||(d.defaultValue=""+p)}function Wr(d,h,p,y){if(d=d.options,h){h={};for(var S=0;S<p.length;S++)h["$"+p[S]]=!0;for(p=0;p<d.length;p++)S=h.hasOwnProperty("$"+d[p].value),d[p].selected!==S&&(d[p].selected=S),S&&y&&(d[p].defaultSelected=!0)}else{for(p=""+Yn(p),h=null,S=0;S<d.length;S++){if(d[S].value===p){d[S].selected=!0,y&&(d[S].defaultSelected=!0);return}h!==null||d[S].disabled||(h=d[S])}h!==null&&(h.selected=!0)}}function On(d,h,p){if(h!=null&&(h=""+Yn(h),h!==d.value&&(d.value=h),p==null)){d.defaultValue!==h&&(d.defaultValue=h);return}d.defaultValue=p!=null?""+Yn(p):""}function Fd(d,h,p,y){if(h==null){if(y!=null){if(p!=null)throw Error(s(92));if(ae(y)){if(1<y.length)throw Error(s(93));y=y[0]}p=y}p==null&&(p=""),h=p}p=Yn(h),d.defaultValue=p,y=d.textContent,y===p&&y!==""&&y!==null&&(d.value=y)}function er(d,h){if(h){var p=d.firstChild;if(p&&p===d.lastChild&&p.nodeType===3){p.nodeValue=h;return}}d.textContent=h}var Ce=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 ll(d,h,p){var y=h.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?y?d.setProperty(h,""):h==="float"?d.cssFloat="":d[h]="":y?d.setProperty(h,p):typeof p!="number"||p===0||Ce.has(h)?h==="float"?d.cssFloat=p:d[h]=(""+p).trim():d[h]=p+"px"}function vt(d,h,p){if(h!=null&&typeof h!="object")throw Error(s(62));if(d=d.style,p!=null){for(var y in p)!p.hasOwnProperty(y)||h!=null&&h.hasOwnProperty(y)||(y.indexOf("--")===0?d.setProperty(y,""):y==="float"?d.cssFloat="":d[y]="");for(var S in h)y=h[S],h.hasOwnProperty(S)&&p[S]!==y&&ll(d,S,y)}else for(var j in h)h.hasOwnProperty(j)&&ll(d,j,h[j])}function Ge(d){if(d.indexOf("-")===-1)return!1;switch(d){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 ba=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
48dering","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"]]),ns=/^[\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 Vr(d){return ns.test(""+d)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":d}var va=null;function ue(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var pe=null,Ae=null;function He(d){var h=bt(d);if(h&&(d=h.stateNode)){var p=d[ce]||null;e:switch(d=h.stateNode,h.type){case"input":if(wc(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),h=p.name,p.type==="radio"&&h!=null){for(p=d;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+vs(""+h)+'"][type="radio"]'),h=0;h<p.length;h++){var y=p[h];if(y!==d&&y.form===d.form){var S=y[ce]||null;if(!S)throw Error(s(90));wc(y,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(h=0;h<p.length;h++)y=p[h],y.form===d.form&&ol(y)}break e;case"textarea":On(d,p.value,p.defaultValue);break e;case"select":h=p.value,h!=null&&Wr(d,!!p.multiple,h,!1)}}}var _t=!1;function Xn(d,h,p){if(_t)return d(h,p);_t=!0;try{var y=d(h);return y}finally{if(_t=!1,(pe!==null||Ae!==null)&&(Dg(),pe&&(h=pe,d=Ae,Ae=pe=null,He(h),d)))for(h=0;h<d.length;h++)He(d[h])}}function mo(d,h){var p=d.stateNode;if(p===null)return null;var y=p[ce]||null;if(y===null)return null;p=y[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(d=d.type,y=!(d==="button"||d==="input"||d==="select"||d==="textarea")),d=!y;break e;default:d=!1}if(d)return null;if(p&&typeof p!="function")throw Error(s(231,h,typeof p));return p}var wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jb=!1;if(wr)try{var Lh={};Object.defineProperty(Lh,"passive",{get:function(){Jb=!0}}),window.addEventListener("test",Lh,Lh),window.removeEventListener("test",Lh,Lh)}catch{Jb=!1}var cl=null,Qb=null,Xp=null;function Zj(){if(Xp)return Xp;var d,h=Qb,p=h.length,y,S="value"in cl?cl.value:cl.textContent,j=S.length;for(d=0;d<p&&h[d]===S[d];d++);var R=p-d;for(y=1;y<=R&&h[p-y]===S[j-y];y++);return Xp=S.slice(d,1<y?1-y:void 0)}function Zp(d){var h=d.keyCode;
vendor: 6,874 bytes, line 48
48return"charCode"in d?(d=d.charCode,d===0&&h===13&&(d=13)):d=h,d===10&&(d=13),32<=d||d===13?d:0}function Jp(){return!0}function Jj(){return!1}function tr(d){function h(p,y,S,j,R){this._reactName=p,this._targetInst=S,this.type=y,this.nativeEvent=j,this.target=R,this.currentTarget=null;for(var z in d)d.hasOwnProperty(z)&&(p=d[z],this[z]=p?p(j):j[z]);return this.isDefaultPrevented=(j.defaultPrevented!=null?j.defaultPrevented:j.returnValue===!1)?Jp:Jj,this.isPropagationStopped=Jj,this}return m(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Jp)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Jp)},persist:function(){},isPersistent:Jp}),h}var Nc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(d){return d.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qp=tr(Nc),Ih=m({},Nc,{view:0,detail:0}),OB=tr(Ih),ev,tv,Ph,eg=m({},Ih,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iv,button:0,buttons:0,relatedTarget:function(d){return d.relatedTarget===void 0?d.fromElement===d.srcElement?d.toElement:d.fromElement:d.relatedTarget},movementX:function(d){return"movementX"in d?d.movementX:(d!==Ph&&(Ph&&d.type==="mousemove"?(ev=d.screenX-Ph.screenX,tv=d.screenY-Ph.screenY):tv=ev=0,Ph=d),ev)},movementY:function(d){return"movementY"in d?d.movementY:tv}}),Qj=tr(eg),DB=m({},eg,{dataTransfer:0}),LB=tr(DB),IB=m({},Ih,{relatedTarget:0}),nv=tr(IB),PB=m({},Nc,{animationName:0,elapsedTime:0,pseudoElement:0}),BB=tr(PB),zB=m({},Nc,{clipboardData:function(d){return"clipboardData"in d?d.clipboardData:window.clipboardData}}),FB=tr(zB),HB=m({},Nc,{data:0}),eE=tr(HB),$B={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UB={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"},WB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VB(d){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(d):(d=WB[d])?!!h[d]:!1}function iv(){return VB}var GB=m({},Ih,{key:function(d){if(d.key){var h=$B[d.key]||d.key;if(h!=="Unidentified")return h}return d.type==="keypress"?(d=Zp(d),d===13?"Enter":String.fromCharCode(d)):d.type==="keydown"||d.type==="keyup"?UB[d.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iv,charCode:function(d){return d.type==="keypress"?Zp(d):0},keyCode:function(d){return d.type==="keydown"||d.type==="keyup"?d.keyCode:0},which:function(d){return d.type==="keypress"?Zp(d):d.type==="keydown"||d.type==="keyup"?d.keyCode:0}}),qB=tr(GB),KB=m({},eg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tE=tr(KB),YB=m({},Ih,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iv}),XB=tr(YB),ZB=m({},Nc,{propertyName:0,elapsedTime:0,pseudoElement:0}),JB=tr(ZB),QB=m({},eg,{deltaX:function(d){return"deltaX"in d?d.deltaX:"wheelDeltaX"in d?-d.wheelDeltaX:0},deltaY:function(d){return"deltaY"in d?d.deltaY:"wheelDeltaY"in d?-d.wheelDeltaY:"wheelDelta"in d?-d.wheelDelta:0},deltaZ:0,deltaMode:0}),ez=tr(QB),tz=m({},Nc,{newState:0,oldState:0}),nz=tr(tz),iz=[9,13,27,32],sv=wr&&"CompositionEvent"in window,Bh=null;wr&&"documentMode"in document&&(Bh=document.documentMode);var sz=wr&&"TextEvent"in window&&!Bh,nE=wr&&(!sv||Bh&&8<Bh&&11>=Bh),iE=" ",sE=!1;function rE(d,h){switch(d){case"keyup":return iz.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aE(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Hd=!1;function rz(d,h){switch(d){case"compositionend":return aE(h);case"keypress":return h.which!==32?null:(sE=!0,iE);case"textInput":return d=h.data,d===iE&&sE?null:d;default:return null}}function az(d,h){if(Hd)return d==="compositionend"||!sv&&rE(d,h)?(d=Zj(),Xp=Qb=cl=null,Hd=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return nE&&h.locale!=="ko"?null:h.data;default:return null}}var oz={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 oE(d){var h=d&&d.nodeName&&d.nodeName.toLowerCase();return h==="input"?!!oz[d.type]:h==="textarea"}function lE(d,h,p,y){pe?Ae?Ae.push(y):Ae=[y]:pe=y,h=Fg(h,"onChange"),0<h.length&&(p=new Qp("onChange","change",null,p,y),d.push({event:p,listeners:h}))}var zh=null,Fh=null;function lz(d){$C(d,0)}function tg(d){var h=si(d);if(ol(h))return d}function cE(d,h){if(d==="change")return h}var dE=!1;if(wr){var rv;if(wr){var av="oninput"in document;if(!av){var uE=document.createElement("div");uE.setAttribute("oninput","return;"),av=typeof uE.oninput=="function"}rv=av}else rv=!1;dE=rv&&(!document.documentMode||9<document.documentMode)}function hE(){zh&&(zh.detachEvent("onpropertychange",fE),Fh=zh=null)}function fE(d){if(d.propertyName==="value"&&tg(Fh)){var h=[];lE(h,Fh,d,ue(d)),Xn(lz,h)}}function cz(d,h,p){d==="focusin"?(hE(),zh=h,Fh=p,zh.attachEvent("onpropertychange",fE)):d==="focusout"&&hE()}function dz(d){if(d==="selectionchange"||d==="keyup"||d==="keydown")return tg(Fh)}function uz(d,h){if(d==="click")return tg(h)}function hz(d,h){if(d==="input"||d==="change")return tg(h)}function fz(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var Nr=typeof Object.is=="function"?Object.is:fz;function Hh(d,h){if(Nr(d,h))return!0;if(typeof d!="object"||d===null||typeof h!="object"||h===null)return!1;var p=Object.keys(d),y=Object.keys(h);if(p.length!==y.length)return!1;for(y=0;y<p.length;y++){var S=p[y];if(!mt.call(h,S)||!Nr(d[S],h[S]))return!1}return!0}function mE(d){for(;d&&d.firstChild;)d=d.firstChild;return d}function pE(d,h){var p=mE(d);d=0;for(var y;p;){if(p.nodeType===3){if(y=d+p.textContent.length,d<=h&&y>=h)return{node:p,offset:h-d};d=y}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=mE(p)}}
vendor: 106,050 bytes, line 48
48function gE(d,h){return d&&h?d===h?!0:d&&d.nodeType===3?!1:h&&h.nodeType===3?gE(d,h.parentNode):"contains"in d?d.contains(h):d.compareDocumentPosition?!!(d.compareDocumentPosition(h)&16):!1:!1}function xE(d){d=d!=null&&d.ownerDocument!=null&&d.ownerDocument.defaultView!=null?d.ownerDocument.defaultView:window;for(var h=Ua(d.document);h instanceof d.HTMLIFrameElement;){try{var p=typeof h.contentWindow.location.href=="string"}catch{p=!1}if(p)d=h.contentWindow;else break;h=Ua(d.document)}return h}function ov(d){var h=d&&d.nodeName&&d.nodeName.toLowerCase();return h&&(h==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||h==="textarea"||d.contentEditable==="true")}var mz=wr&&"documentMode"in document&&11>=document.documentMode,$d=null,lv=null,$h=null,cv=!1;function yE(d,h,p){var y=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;cv||$d==null||$d!==Ua(y)||(y=$d,"selectionStart"in y&&ov(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),$h&&Hh($h,y)||($h=y,y=Fg(lv,"onSelect"),0<y.length&&(h=new Qp("onSelect","select",null,h,p),d.push({event:h,listeners:y}),h.target=$d)))}function Sc(d,h){var p={};return p[d.toLowerCase()]=h.toLowerCase(),p["Webkit"+d]="webkit"+h,p["Moz"+d]="moz"+h,p}var Ud={animationend:Sc("Animation","AnimationEnd"),animationiteration:Sc("Animation","AnimationIteration"),animationstart:Sc("Animation","AnimationStart"),transitionrun:Sc("Transition","TransitionRun"),transitionstart:Sc("Transition","TransitionStart"),transitioncancel:Sc("Transition","TransitionCancel"),transitionend:Sc("Transition","TransitionEnd")},dv={},bE={};wr&&(bE=document.createElement("div").style,"AnimationEvent"in window||(delete Ud.animationend.animation,delete Ud.animationiteration.animation,delete Ud.animationstart.animation),"TransitionEvent"in window||delete Ud.transitionend.transition);function _c(d){if(dv[d])return dv[d];if(!Ud[d])return d;var h=Ud[d],p;for(p in h)if(h.hasOwnProperty(p)&&p in bE)return dv[d]=h[p];return d}var vE=_c("animationend"),wE=_c("animationiteration"),NE=_c("animationstart"),pz=_c("transitionrun"),gz=_c("transitionstart"),xz=_c("transitioncancel"),SE=_c("transitionend"),_E=new Map,uv="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(" ");uv.push("scrollEnd");function wa(d,h){_E.set(d,h),Xt(h,[d])}var jE=new WeakMap;function Gr(d,h){if(typeof d=="object"&&d!==null){var p=jE.get(d);return p!==void 0?p:(h={value:d,source:h,stack:pi(h)},jE.set(d,h),h)}return{value:d,source:h,stack:pi(h)}}var qr=[],Wd=0,hv=0;function ng(){for(var d=Wd,h=hv=Wd=0;h<d;){var p=qr[h];qr[h++]=null;var y=qr[h];qr[h++]=null;var S=qr[h];qr[h++]=null;var j=qr[h];if(qr[h++]=null,y!==null&&S!==null){var R=y.pending;R===null?S.next=S:(S.next=R.next,R.next=S),y.pending=S}j!==0&&EE(p,S,j)}}function ig(d,h,p,y){qr[Wd++]=d,qr[Wd++]=h,qr[Wd++]=p,qr[Wd++]=y,hv|=y,d.lanes|=y,d=d.alternate,d!==null&&(d.lanes|=y)}function fv(d,h,p,y){return ig(d,h,p,y),sg(d)}function Vd(d,h){return ig(d,null,null,h),sg(d)}function EE(d,h,p){d.lanes|=p;var y=d.alternate;y!==null&&(y.lanes|=p);for(var S=!1,j=d.return;j!==null;)j.childLanes|=p,y=j.alternate,y!==null&&(y.childLanes|=p),j.tag===22&&(d=j.stateNode,d===null||d._visibility&1||(S=!0)),d=j,j=j.return;return d.tag===3?(j=d.stateNode,S&&h!==null&&(S=31-Vt(p),d=j.hiddenUpdates,y=d[S],y===null?d[S]=[h]:y.push(h),h.lane=p|536870912),j):null}function sg(d){if(50<mf)throw mf=0,b1=null,Error(s(185));for(var h=d.return;h!==null;)d=h,h=d.return;return d.tag===3?d.stateNode:null}var Gd={};function yz(d,h,p,y){this.tag=d,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sr(d,h,p,y){return new yz(d,h,p,y)}function mv(d){return d=d.prototype,!(!d||!d.isReactComponent)}function po(d,h){var p=d.alternate;return p===null?(p=Sr(d.tag,h,d.key,d.mode),p.elementType=d.elementType,p.type=d.type,p.stateNode=d.stateNode,p.alternate=d,d.alternate=p):(p.pendingProps=h,p.type=d.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=d.flags&65011712,p.childLanes=d.childLanes,p.lanes=d.lanes,p.child=d.child,p.memoizedProps=d.memoizedProps,p.memoizedState=d.memoizedState,p.updateQueue=d.updateQueue,h=d.dependencies,p.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},p.sibling=d.sibling,p.index=d.index,p.ref=d.ref,p.refCleanup=d.refCleanup,p}function kE(d,h){d.flags&=65011714;var p=d.alternate;return p===null?(d.childLanes=0,d.lanes=h,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=p.childLanes,d.lanes=p.lanes,d.child=p.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=p.memoizedProps,d.memoizedState=p.memoizedState,d.updateQueue=p.updateQueue,d.type=p.type,h=p.dependencies,d.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),d}function rg(d,h,p,y,S,j){var R=0;if(y=d,typeof d=="function")mv(d)&&(R=1);else if(typeof d=="string")R=v9(d,p,we.current)?26:d==="html"||d==="head"||d==="body"?27:5;else e:switch(d){case P:return d=Sr(31,p,h,S),d.elementType=P,d.lanes=j,d;case v:return jc(p.children,S,j,h);case w:R=8,S|=24;break;case N:return d=Sr(12,p,h,S|2),d.elementType=N,d.lanes=j,d;case A:return d=Sr(13,p,h,S),d.elementType=A,d.lanes=j,d;case L:return d=Sr(19,p,h,S),d.elementType=L,d.lanes=j,d;default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case _:case k:R=10;break e;case E:R=9;break e;case C:R=11;break e;case M:R=14;break e;case O:R=16,y=null;break e}R=29,p=Error(s(130,d===null?"null":typeof d,"")),y=null}return h=Sr(R,p,h,S),h.elementType=d,h.type=y,h.lanes=j,h}function jc(d,h,p,y){return d=Sr(7,d,y,h),d.lanes=p,d}function pv(d,h,p){return d=Sr(6,d,null,h),d.lanes=p,d}function gv(d,h,p){return h=Sr(4,d.children!==null?d.children:[],d.key,h),h.lanes=p,h.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},h}var qd=[],Kd=0,ag=null,og=0,Kr=[],Yr=0,Ec=null,go=1,xo="";function kc(d,h){qd[Kd++]=og,qd[Kd++]=ag,ag=d,og=h}function CE(d,h,p){Kr[Yr++]=go,Kr[Yr++]=xo,Kr[Yr++]=Ec,Ec=d;var y=go;d=xo;var S=32-Vt(y)-1;y&=~(1<<S),p+=1;var j=32-Vt(h)+S;if(30<j){var R=S-S%5;j=(y&(1<<R)-1).toString(32),y>>=R,S-=R,go=1<<32-Vt(h)+S|p<<S|y,xo=j+d}else go=1<<j|p<<S|y,xo=d}function xv(d){d.return!==null&&(kc(d,1),CE(d,1,0))}function yv(d){for(;d===ag;)ag=qd[--Kd],qd[Kd]=null,og=qd[--Kd],qd[Kd]=null;for(;d===Ec;)Ec=Kr[--Yr],Kr[Yr]=null,xo=Kr[--Yr],Kr[Yr]=null,go=Kr[--Yr],Kr[Yr]=null}var Hs=null,Zn=null,Ht=!1,Cc=null,Wa=!1,bv=Error(s(519));function Tc(d){var h=Error(s(418,""));throw Vh(Gr(h,d)),bv}function TE(d){var h=d.stateNode,p=d.type,y=d.memoizedProps;switch(h[K]=d,h[ce]=y,p){case"dialog":Et("cancel",h),Et("close",h);break;case"iframe":case"object":case"embed":Et("load",h);break;case"video":case"audio":for(p=0;p<gf.length;p++)Et(gf[p],h);break;case"source":Et("error",h);break;case"img":case"image":case"link":Et("error",h),Et("load",h);break;case"details":Et("toggle",h);break;case"input":Et("invalid",h),zd(h,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0),$a(h);break;case"select":Et("invalid",h);break;case"textarea":Et("invalid",h),Fd(h,y.value,y.defaultValue,y.children),$a(h)}p=y.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||h.textContent===""+p||y.suppressHydrationWarning===!0||GC(h.textContent,p)?(y.popover!=null&&(Et("beforetoggle",h),Et("toggle",h)),y.onScroll!=null&&Et("scroll",h),y.onScrollEnd!=null&&Et("scrollend",h),y.onClick!=null&&(h.onclick=Hg),h=!0):h=!1,h||Tc(d)}function AE(d){for(Hs=d.return;Hs;)switch(Hs.tag){case 5:case 13:Wa=!1;return;case 27:case 3:Wa=!0;return;default:Hs=Hs.return}}function Uh(d){if(d!==Hs)return!1;if(!Ht)return AE(d),Ht=!0,!1;var h=d.tag,p;if((p=h!==3&&h!==27)&&((p=h===5)&&(p=d.type,p=!(p!=="form"&&p!=="button")||L1(d.type,d.memoizedProps)),p=!p),p&&Zn&&Tc(d),AE(d),h===13){if(d=d.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));e:{for(d=d.nextSibling,h=0;d;){if(d.nodeType===8)if(p=d.data,p==="/$"){if(h===0){Zn=Sa(d.nextSibling);break e}h--}else p!=="$"&&p!=="$!"&&p!=="$?"||h++;d=d.nextSibling}Zn=null}}else h===27?(h=Zn,jl(d.type)?(d=z1,z1=null,Zn=d):Zn=h):Zn=Hs?Sa(d.stateNode.nextSibling):null;return!0}function Wh(){Zn=Hs=null,Ht=!1}function ME(){var d=Cc;return d!==null&&(sr===null?sr=d:sr.push.apply(sr,d),Cc=null),d}function Vh(d){Cc===null?Cc=[d]:Cc.push(d)}var vv=Z(null),Ac=null,yo=null;function dl(d,h,p){fe(vv,h._currentValue),h._currentValue=p}function bo(d){d._currentValue=vv.current,le(vv)}function wv(d,h,p){for(;d!==null;){var y=d.alternate;if((d.childLanes&h)!==h?(d.childLanes|=h,y!==null&&(y.childLanes|=h)):y!==null&&(y.childLanes&h)!==h&&(y.childLanes|=h),d===p)break;d=d.return}}function Nv(d,h,p,y){var S=d.child;for(S!==null&&(S.return=d);S!==null;){var j=S.dependencies;if(j!==null){var R=S.child;j=j.firstContext;e:for(;j!==null;){var z=j;j=S;for(var G=0;G<h.length;G++)if(z.context===h[G]){j.lanes|=p,z=j.alternate,z!==null&&(z.lanes|=p),wv(j.return,p,d),y||(R=null);break e}j=z.next}}else if(S.tag===18){if(R=S.return,R===null)throw Error(s(341));R.lanes|=p,j=R.alternate,j!==null&&(j.lanes|=p),wv(R,p,d),R=null}else R=S.child;if(R!==null)R.return=S;else for(R=S;R!==null;){if(R===d){R=null;break}if(S=R.sibling,S!==null){S.return=R.return,R=S;break}R=R.return}S=R}}function Gh(d,h,p,y){d=null;for(var S=h,j=!1;S!==null;){if(!j){if((S.flags&524288)!==0)j=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var R=S.alternate;if(R===null)throw Error(s(387));if(R=R.memoizedProps,R!==null){var z=S.type;Nr(S.pendingProps.value,R.value)||(d!==null?d.push(z):d=[z])}}else if(S===Oe.current){if(R=S.alternate,R===null)throw Error(s(387));R.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(d!==null?d.push(Nf):d=[Nf])}S=S.return}d!==null&&Nv(h,d,p,y),h.flags|=262144}function lg(d){for(d=d.firstContext;d!==null;){if(!Nr(d.context._currentValue,d.memoizedValue))return!0;d=d.next}return!1}function Mc(d){Ac=d,yo=null,d=d.dependencies,d!==null&&(d.firstContext=null)}function ws(d){return RE(Ac,d)}function cg(d,h){return Ac===null&&Mc(d),RE(d,h)}function RE(d,h){var p=h._currentValue;if(h={context:h,memoizedValue:p,next:null},yo===null){if(d===null)throw Error(s(308));yo=h,d.dependencies={lanes:0,firstContext:h},d.flags|=524288}else yo=yo.next=h;return p}var bz=typeof AbortController<"u"?AbortController:function(){var d=[],h=this.signal={aborted:!1,addEventListener:function(p,y){d.push(y)}};this.abort=function(){h.aborted=!0,d.forEach(function(p){return p()})}},vz=t.unstable_scheduleCallback,wz=t.unstable_NormalPriority,Ci={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sv(){return{controller:new bz,data:new Map,refCount:0}}function qh(d){d.refCount--,d.refCount===0&&vz(wz,function(){d.controller.abort()})}var Kh=null,_v=0,Yd=0,Xd=null;function Nz(d,h){if(Kh===null){var p=Kh=[];_v=0,Yd=E1(),Xd={status:"pending",value:void 0,then:function(y){p.push(y)}}}return _v++,h.then(OE,OE),h}function OE(){if(--_v===0&&Kh!==null){Xd!==null&&(Xd.status="fulfilled");var d=Kh;Kh=null,Yd=0,Xd=null;for(var h=0;h<d.length;h++)(0,d[h])()}}function Sz(d,h){var p=[],y={status:"pending",value:null,reason:null,then:function(S){p.push(S)}};return d.then(function(){y.status="fulfilled",y.value=h;for(var S=0;S<p.length;S++)(0,p[S])(h)},function(S){for(y.status="rejected",y.reason=S,S=0;S<p.length;S++)(0,p[S])(void 0)}),y}var DE=B.S;B.S=function(d,h){typeof h=="object"&&h!==null&&typeof h.then=="function"&&Nz(d,h),DE!==null&&DE(d,h)};var Rc=Z(null);function jv(){var d=Rc.current;return d!==null?d:Nn.pooledCache}function dg(d,h){h===null?fe(Rc,Rc.current):fe(Rc,h.pool)}function LE(){var d=jv();return d===null?null:{parent:Ci._currentValue,pool:d}}var Yh=Error(s(460)),IE=Error(s(474)),ug=Error(s(542)),Ev={then:function(){}};function PE(d){return d=d.status,d==="fulfilled"||d==="rejected"}function hg(){}function BE(d,h,p){switch(p=d[p],p===void 0?d.push(h):p!==h&&(h.then(hg,hg),h=p),h.status){case"fulfilled":return h.value;case"rejected":throw d=h.reason,FE(d),d;default:if(typeof h.status=="string")h.then(hg,hg);else{if(d=Nn,d!==null&&100<d.shellSuspendCounter)throw Error(s(482));d=h,d.status="pending",d.then(function(y){if(h.status==="pending"){var S=h;S.status="fulfilled",S.value=y}},function(y){if(h.status==="pending"){var S=h;S.status="rejected",S.reason=y}})}switch(h.status){case"fulfilled":return h.value;case"rejected":throw d=h.reason,FE(d),d}throw Xh=h,Yh}}var Xh=null;function zE(){if(Xh===null)throw Error(s(459));var d=Xh;return Xh=null,d}function FE(d){if(d===Yh||d===ug)throw Error(s(483))}var ul=!1;function kv(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cv(d,h){d=d.updateQueue,h.updateQueue===d&&(h.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,callbacks:null})}function hl(d){return{lane:d,tag:0,payload:null,callback:null,next:null}}function fl(d,h,p){var y=d.updateQueue;if(y===null)return null;if(y=y.shared,(Zt&2)!==0){var S=y.pending;return S===null?h.next=h:(h.next=S.next,S.next=h),y.pending=h,h=sg(d),EE(d,null,p),h}return ig(d,y,h,p),sg(d)}function Zh(d,h,p){if(h=h.updateQueue,h!==null&&(h=h.shared,(p&4194048)!==0)){var y=h.lanes;y&=d.pendingLanes,p|=y,h.lanes=p,W(d,p)}}function Tv(d,h){var p=d.updateQueue,y=d.alternate;if(y!==null&&(y=y.updateQueue,p===y)){var S=null,j=null;if(p=p.firstBaseUpdate,p!==null){do{var R={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};j===null?S=j=R:j=j.next=R,p=p.next}while(p!==null);j===null?S=j=h:j=j.next=h}else S=j=h;p={baseState:y.baseState,firstBaseUpdate:S,lastBaseUpdate:j,shared:y.shared,callbacks:y.callbacks},d.updateQueue=p;return}d=p.lastBaseUpdate,d===null?p.firstBaseUpdate=h:d.next=h,p.lastBaseUpdate=h}var Av=!1;function Jh(){if(Av){var d=Xd;if(d!==null)throw d}}function Qh(d,h,p,y){Av=!1;var S=d.updateQueue;ul=!1;var j=S.firstBaseUpdate,R=S.lastBaseUpdate,z=S.shared.pending;if(z!==null){S.shared.pending=null;var G=z,oe=G.next;G.next=null,R===null?j=oe:R.next=oe,R=G;var ge=d.alternate;ge!==null&&(ge=ge.updateQueue,z=ge.lastBaseUpdate,z!==R&&(z===null?ge.firstBaseUpdate=oe:z.next=oe,ge.lastBaseUpdate=G))}if(j!==null){var ve=S.baseState;R=0,ge=oe=G=null,z=j;do{var de=z.lane&-536870913,he=de!==z.lane;if(he?(It&de)===de:(y&de)===de){de!==0&&de===Yd&&(Av=!0),ge!==null&&(ge=ge.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var st=d,Je=z;de=h;var rn=p;switch(Je.tag){case 1:if(st=Je.payload,typeof st=="function"){ve=st.call(rn,ve,de);break e}ve=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=Je.payload,de=typeof st=="function"?st.call(rn,ve,de):st,de==null)break e;ve=m({},ve,de);break e;case 2:ul=!0}}de=z.callback,de!==null&&(d.flags|=64,he&&(d.flags|=8192),he=S.callbacks,he===null?S.callbacks=[de]:he.push(de))}else he={lane:de,tag:z.tag,payload:z.payload,callback:z.callback,next:null},ge===null?(oe=ge=he,G=ve):ge=ge.next=he,R|=de;if(z=z.next,z===null){if(z=S.shared.pending,z===null)break;he=z,z=he.next,he.next=null,S.lastBaseUpdate=he,S.shared.pending=null}}while(!0);ge===null&&(G=ve),S.baseState=G,S.firstBaseUpdate=oe,S.lastBaseUpdate=ge,j===null&&(S.shared.lanes=0),wl|=R,d.lanes=R,d.memoizedState=ve}}function HE(d,h){if(typeof d!="function")throw Error(s(191,d));d.call(h)}function $E(d,h){var p=d.callbacks;if(p!==null)for(d.callbacks=null,d=0;d<p.length;d++)HE(p[d],h)}var Zd=Z(null),fg=Z(0);function UE(d,h){d=Eo,fe(fg,d),fe(Zd,h),Eo=d|h.baseLanes}function Mv(){fe(fg,Eo),fe(Zd,Zd.current)}function Rv(){Eo=fg.current,le(Zd),le(fg)}var ml=0,gt=null,nn=null,gi=null,mg=!1,Jd=!1,Oc=!1,pg=0,ef=0,Qd=null,_z=0;function ri(){throw Error(s(321))}function Ov(d,h){if(h===null)return!1;for(var p=0;p<h.length&&p<d.length;p++)if(!Nr(d[p],h[p]))return!1;return!0}function Dv(d,h,p,y,S,j){return ml=j,gt=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,B.H=d===null||d.memoizedState===null?Ek:kk,Oc=!1,j=p(y,S),Oc=!1,Jd&&(j=VE(h,p,y,S)),WE(d),j}function WE(d){B.H=wg;var h=nn!==null&&nn.next!==null;if(ml=0,gi=nn=gt=null,mg=!1,ef=0,Qd=null,h)throw Error(s(300));d===null||Wi||(d=d.dependencies,d!==null&&lg(d)&&(Wi=!0))}function VE(d,h,p,y){gt=d;var S=0;do{if(Jd&&(Qd=null),ef=0,Jd=!1,25<=S)throw Error(s(301));if(S+=1,gi=nn=null,d.updateQueue!=null){var j=d.updateQueue;j.lastEffect=null,j.events=null,j.stores=null,j.memoCache!=null&&(j.memoCache.index=0)}B.H=Mz,j=h(p,y)}while(Jd);return j}function jz(){var d=B.H,h=d.useState()[0];return h=typeof h.then=="function"?tf(h):h,d=d.useState()[0],(nn!==null?nn.memoizedState:null)!==d&&(gt.flags|=1024),h}function Lv(){var d=pg!==0;return pg=0,d}function Iv(d,h,p){h.updateQueue=d.updateQueue,h.flags&=-2053,d.lanes&=~p}function Pv(d){if(mg){for(d=d.memoizedState;d!==null;){var h=d.queue;h!==null&&(h.pending=null),d=d.next}mg=!1}ml=0,gi=nn=gt=null,Jd=!1,ef=pg=0,Qd=null}function nr(){var d={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gi===null?gt.memoizedState=gi=d:gi=gi.next=d,gi}function xi(){if(nn===null){var d=gt.alternate;d=d!==null?d.memoizedState:null}else d=nn.next;var h=gi===null?gt.memoizedState:gi.next;if(h!==null)gi=h,nn=d;else{if(d===null)throw gt.alternate===null?Error(s(467)):Error(s(310));nn=d,d={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null},gi===null?gt.memoizedState=gi=d:gi=gi.next=d}return gi}function Bv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tf(d){var h=ef;return ef+=1,Qd===null&&(Qd=[]),d=BE(Qd,d,h),h=gt,(gi===null?h.memoizedState:gi.next)===null&&(h=h.alternate,B.H=h===null||h.memoizedState===null?Ek:kk),d}function gg(d){if(d!==null&&typeof d=="object"){if(typeof d.then=="function")return tf(d);if(d.$$typeof===k)return ws(d)}throw Error(s(438,String(d)))}function zv(d){var h=null,p=gt.updateQueue;if(p!==null&&(h=p.memoCache),h==null){var y=gt.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(h={data:y.data.map(function(S){return S.slice()}),index:0})))}if(h==null&&(h={data:[],index:0}),p===null&&(p=Bv(),gt.updateQueue=p),p.memoCache=h,p=h.data[h.index],p===void 0)for(p=h.data[h.index]=Array(d),y=0;y<d;y++)p[y]=H;return h.index++,p}function vo(d,h){return typeof h=="function"?h(d):h}function xg(d){var h=xi();return Fv(h,nn,d)}function Fv(d,h,p){var y=d.queue;if(y===null)throw Error(s(311));y.lastRenderedReducer=p;var S=d.baseQueue,j=y.pending;if(j!==null){if(S!==null){var R=S.next;S.next=j.next,j.next=R}h.baseQueue=S=j,y.pending=null}if(j=d.baseState,S===null)d.memoizedState=j;else{h=S.next;var z=R=null,G=null,oe=h,ge=!1;do{var ve=oe.lane&-536870913;if(ve!==oe.lane?(It&ve)===ve:(ml&ve)===ve){var de=oe.revertLane;if(de===0)G!==null&&(G=G.next={lane:0,revertLane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),ve===Yd&&(ge=!0);else if((ml&de)===de){oe=oe.next,de===Yd&&(ge=!0);continue}else ve={lane:0,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},G===null?(z=G=ve,R=j):G=G.next=ve,gt.lanes|=de,wl|=de;ve=oe.action,Oc&&p(j,ve),j=oe.hasEagerState?oe.eagerState:p(j,ve)}else de={lane:ve,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},G===null?(z=G=de,R=j):G=G.next=de,gt.lanes|=ve,wl|=ve;oe=oe.next}while(oe!==null&&oe!==h);if(G===null?R=j:G.next=z,!Nr(j,d.memoizedState)&&(Wi=!0,ge&&(p=Xd,p!==null)))throw p;d.memoizedState=j,d.baseState=R,d.baseQueue=G,y.lastRenderedState=j}return S===null&&(y.lanes=0),[d.memoizedState,y.dispatch]}function Hv(d){var h=xi(),p=h.queue;if(p===null)throw Error(s(311));p.lastRenderedReducer=d;var y=p.dispatch,S=p.pending,j=h.memoizedState;if(S!==null){p.pending=null;var R=S=S.next;do j=d(j,R.action),R=R.next;while(R!==S);Nr(j,h.memoizedState)||(Wi=!0),h.memoizedState=j,h.baseQueue===null&&(h.baseState=j),p.lastRenderedState=j}return[j,y]}function GE(d,h,p){var y=gt,S=xi(),j=Ht;if(j){if(p===void 0)throw Error(s(407));p=p()}else p=h();var R=!Nr((nn||S).memoizedState,p);R&&(S.memoizedState=p,Wi=!0),S=S.queue;var z=YE.bind(null,y,S,d);if(nf(2048,8,z,[d]),S.getSnapshot!==h||R||gi!==null&&gi.memoizedState.tag&1){if(y.flags|=2048,eu(9,yg(),KE.bind(null,y,S,p,h),null),Nn===null)throw Error(s(349));j||(ml&124)!==0||qE(y,h,p)}return p}function qE(d,h,p){d.flags|=16384,d={getSnapshot:h,value:p},h=gt.updateQueue,h===null?(h=Bv(),gt.updateQueue=h,h.stores=[d]):(p=h.stores,p===null?h.stores=[d]:p.push(d))}function KE(d,h,p,y){h.value=p,h.getSnapshot=y,XE(h)&&ZE(d)}function YE(d,h,p){return p(function(){XE(h)&&ZE(d)})}function XE(d){var h=d.getSnapshot;d=d.value;try{var p=h();return!Nr(d,p)}catch{return!0}}function ZE(d){var h=Vd(d,2);h!==null&&Cr(h,d,2)}function $v(d){var h=nr();if(typeof d=="function"){var p=d;if(d=p(),Oc){bn(!0);try{p()}finally{bn(!1)}}}return h.memoizedState=h.baseState=d,h.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:d},h}function JE(d,h,p,y){return d.baseState=p,Fv(d,nn,typeof y=="function"?y:vo)}function Ez(d,h,p,y,S){if(vg(d))throw Error(s(485));if(d=h.action,d!==null){var j={payload:S,action:d,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){j.listeners.push(R)}};B.T!==null?p(!0):j.isTransition=!1,y(j),p=h.pending,p===null?(j.next=h.pending=j,QE(h,j)):(j.next=p.next,h.pending=p.next=j)}}function QE(d,h){var p=h.action,y=h.payload,S=d.state;if(h.isTransition){var j=B.T,R={};B.T=R;try{var z=p(S,y),G=B.S;G!==null&&G(R,z),ek(d,h,z)}catch(oe){Uv(d,h,oe)}finally{B.T=j}}else try{j=p(S,y),ek(d,h,j)}catch(oe){Uv(d,h,oe)}}function ek(d,h,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(y){tk(d,h,y)},function(y){return Uv(d,h,y)}):tk(d,h,p)}function tk(d,h,p){h.status="fulfilled",h.value=p,nk(h),d.state=p,h=d.pending,h!==null&&(p=h.next,p===h?d.pending=null:(p=p.next,h.next=p,QE(d,p)))}function Uv(d,h,p){var y=d.pending;if(d.pending=null,y!==null){y=y.next;do h.status="rejected",h.reason=p,nk(h),h=h.next;while(h!==y)}d.action=null}function nk(d){d=d.listeners;for(var h=0;h<d.length;h++)(0,d[h])()}function ik(d,h){return h}function sk(d,h){if(Ht){var p=Nn.formState;if(p!==null){e:{var y=gt;if(Ht){if(Zn){t:{for(var S=Zn,j=Wa;S.nodeType!==8;){if(!j){S=null;break t}if(S=Sa(S.nextSibling),S===null){S=null;break t}}j=S.data,S=j==="F!"||j==="F"?S:null}if(S){Zn=Sa(S.nextSibling),y=S.data==="F!";break e}}Tc(y)}y=!1}y&&(h=p[0])}}return p=nr(),p.memoizedState=p.baseState=h,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ik,lastRenderedState:h},p.queue=y,p=Sk.bind(null,gt,y),y.dispatch=p,y=$v(!1),j=Kv.bind(null,gt,!1,y.queue),y=nr(),S={state:h,dispatch:null,action:d,pending:null},y.queue=S,p=Ez.bind(null,gt,S,j,p),S.dispatch=p,y.memoizedState=d,[h,p,!1]}function rk(d){var h=xi();return ak(h,nn,d)}function ak(d,h,p){if(h=Fv(d,h,ik)[0],d=xg(vo)[0],typeof h=="object"&&h!==null&&typeof h.then=="function")try{var y=tf(h)}catch(R){throw R===Yh?ug:R}else y=h;h=xi();var S=h.queue,j=S.dispatch;return p!==h.memoizedState&&(gt.flags|=2048,eu(9,yg(),kz.bind(null,S,p),null)),[y,j,d]}function kz(d,h){d.action=h}function ok(d){var h=xi(),p=nn;if(p!==null)return ak(h,p,d);xi(),h=h.memoizedState,p=xi();var y=p.queue.dispatch;return p.memoizedState=d,[h,y,!1]}function eu(d,h,p,y){return d={tag:d,create:p,deps:y,inst:h,next:null},h=gt.updateQueue,h===null&&(h=Bv(),gt.updateQueue=h),p=h.lastEffect,p===null?h.lastEffect=d.next=d:(y=p.next,p.next=d,d.next=y,h.lastEffect=d),d}function yg(){return{destroy:void 0,resource:void 0}}function lk(){return xi().memoizedState}function bg(d,h,p,y){var S=nr();y=y===void 0?null:y,gt.flags|=d,S.memoizedState=eu(1|h,yg(),p,y)}function nf(d,h,p,y){var S=xi();y=y===void 0?null:y;var j=S.memoizedState.inst;nn!==null&&y!==null&&Ov(y,nn.memoizedState.deps)?S.memoizedState=eu(h,j,p,y):(gt.flags|=d,S.memoizedState=eu(1|h,j,p,y))}function ck(d,h){bg(8390656,8,d,h)}function dk(d,h){nf(2048,8,d,h)}function uk(d,h){return nf(4,2,d,h)}function hk(d,h){return nf(4,4,d,h)}function fk(d,h){if(typeof h=="function"){d=d();var p=h(d);return function(){typeof p=="function"?p():h(null)}}if(h!=null)return d=d(),h.current=d,function(){h.current=null}}function mk(d,h,p){p=p!=null?p.concat([d]):null,nf(4,4,fk.bind(null,h,d),p)}function Wv(){}function pk(d,h){var p=xi();h=h===void 0?null:h;var y=p.memoizedState;return h!==null&&Ov(h,y[1])?y[0]:(p.memoizedState=[d,h],d)}function gk(d,h){var p=xi();h=h===void 0?null:h;var y=p.memoizedState;if(h!==null&&Ov(h,y[1]))return y[0];if(y=d(),Oc){bn(!0);try{d()}finally{bn(!1)}}return p.memoizedState=[y,h],y}function Vv(d,h,p){return p===void 0||(ml&1073741824)!==0?d.memoizedState=h:(d.memoizedState=p,d=bC(),gt.lanes|=d,wl|=d,p)}function xk(d,h,p,y){return Nr(p,h)?p:Zd.current!==null?(d=Vv(d,p,y),Nr(d,h)||(Wi=!0),d):(ml&42)===0?(Wi=!0,d.memoizedState=p):(d=bC(),gt.lanes|=d,wl|=d,h)}function yk(d,h,p,y,S){var j=$.p;$.p=j!==0&&8>j?j:8;var R=B.T,z={};B.T=z,Kv(d,!1,h,p);try{var G=S(),oe=B.S;if(oe!==null&&oe(z,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var ge=Sz(G,y);sf(d,h,ge,kr(d))}else sf(d,h,y,kr(d))}catch(ve){sf(d,h,{then:function(){},status:"rejected",reason:ve},kr())}finally{$.p=j,B.T=R}}function Cz(){}function Gv(d,h,p,y){if(d.tag!==5)throw Error(s(476));var S=bk(d).queue;yk(d,S,h,X,p===null?Cz:function(){return vk(d),p(y)})}function bk(d){var h=d.memoizedState;if(h!==null)return h;h={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:X},next:null};var p={};return h.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:p},next:null},d.memoizedState=h,d=d.alternate,d!==null&&(d.memoizedState=h),h}function vk(d){var h=bk(d).next.queue;sf(d,h,{},kr())}function qv(){return ws(Nf)}function wk(){return xi().memoizedState}function Nk(){return xi().memoizedState}function Tz(d){for(var h=d.return;h!==null;){switch(h.tag){case 24:case 3:var p=kr();d=hl(p);var y=fl(h,d,p);y!==null&&(Cr(y,h,p),Zh(y,h,p)),h={cache:Sv()},d.payload=h;return}h=h.return}}function Az(d,h,p){var y=kr();p={lane:y,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},vg(d)?_k(h,p):(p=fv(d,h,p,y),p!==null&&(Cr(p,d,y),jk(p,h,y)))}function Sk(d,h,p){var y=kr();sf(d,h,p,y)}function sf(d,h,p,y){var S={lane:y,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(vg(d))_k(h,S);else{var j=d.alternate;if(d.lanes===0&&(j===null||j.lanes===0)&&(j=h.lastRenderedReducer,j!==null))try{var R=h.lastRenderedState,z=j(R,p);if(S.hasEagerState=!0,S.eagerState=z,Nr(z,R))return ig(d,h,S,0),Nn===null&&ng(),!1}catch{}finally{}if(p=fv(d,h,S,y),p!==null)return Cr(p,d,y),jk(p,h,y),!0}return!1}function Kv(d,h,p,y){if(y={lane:2,revertLane:E1(),action:y,hasEagerState:!1,eagerState:null,next:null},vg(d)){if(h)throw Error(s(479))}else h=fv(d,p,y,2),h!==null&&Cr(h,d,2)}function vg(d){var h=d.alternate;return d===gt||h!==null&&h===gt}function _k(d,h){Jd=mg=!0;var p=d.pending;p===null?h.next=h:(h.next=p.next,p.next=h),d.pending=h}function jk(d,h,p){if((p&4194048)!==0){var y=h.lanes;y&=d.pendingLanes,p|=y,h.lanes=p,W(d,p)}}var wg={readContext:ws,use:gg,useCallback:ri,useContext:ri,useEffect:ri,useImperativeHandle:ri,useLayoutEffect:ri,useInsertionEffect:ri,useMemo:ri,useReducer:ri,useRef:ri,useState:ri,useDebugValue:ri,useDeferredValue:ri,useTransition:ri,useSyncExternalStore:ri,useId:ri,useHostTransitionStatus:ri,useFormState:ri,useActionState:ri,useOptimistic:ri,useMemoCache:ri,useCacheRefresh:ri},Ek={readContext:ws,use:gg,useCallback:function(d,h){return nr().memoizedState=[d,h===void 0?null:h],d},useContext:ws,useEffect:ck,useImperativeHandle:function(d,h,p){p=p!=null?p.concat([d]):null,bg(4194308,4,fk.bind(null,h,d),p)},useLayoutEffect:function(d,h){return bg(4194308,4,d,h)},useInsertionEffect:function(d,h){bg(4,2,d,h)},useMemo:function(d,h){var p=nr();h=h===void 0?null:h;var y=d();if(Oc){bn(!0);try{d()}finally{bn(!1)}}return p.memoizedState=[y,h],y},useReducer:function(d,h,p){var y=nr();if(p!==void 0){var S=p(h);if(Oc){bn(!0);try{p(h)}finally{bn(!1)}}}else S=h;return y.memoizedState=y.baseState=S,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:S},y.queue=d,d=d.dispatch=Az.bind(null,gt,d),[y.memoizedState,d]},useRef:function(d){var h=nr();return d={current:d},h.memoizedState=d},useState:function(d){d=$v(d);var h=d.queue,p=Sk.bind(null,gt,h);return h.dispatch=p,[d.memoizedState,p]},useDebugValue:Wv,useDeferredValue:function(d,h){var p=nr();return Vv(p,d,h)},useTransition:function(){var d=$v(!1);return d=yk.bind(null,gt,d.queue,!0,!1),nr().memoizedState=d,[!1,d]},useSyncExternalStore:function(d,h,p){var y=gt,S=nr();if(Ht){if(p===void 0)throw Error(s(407));p=p()}else{if(p=h(),Nn===null)throw Error(s(349));(It&124)!==0||qE(y,h,p)}S.memoizedState=p;var j={value:p,getSnapshot:h};return S.queue=j,ck(YE.bind(null,y,j,d),[d]),y.flags|=2048,eu(9,yg(),KE.bind(null,y,j,p,h),null),p},useId:function(){var d=nr(),h=Nn.identifierPrefix;if(Ht){var p=xo,y=go;p=(y&~(1<<32-Vt(y)-1)).toString(32)+p,h="«"+h+"R"+p,p=pg++,0<p&&(h+="H"+p.toString(32)),h+="»"}else p=_z++,h="«"+h+"r"+p.toString(32)+"»";return d.memoizedState=h},useHostTransitionStatus:qv,useFormState:sk,useActionState:sk,useOptimistic:function(d){var h=nr();h.memoizedState=h.baseState=d;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return h.queue=p,h=Kv.bind(null,gt,!0,p),p.dispatch=h,[d,h]},useMemoCache:zv,useCacheRefresh:function(){return nr().memoizedState=Tz.bind(null,gt)}},kk={readContext:ws,use:gg,useCallback:pk,useContext:ws,useEffect:dk,useImperativeHandle:mk,useInsertionEffect:uk,useLayoutEffect:hk,useMemo:gk,useReducer:xg,useRef:lk,useState:function(){return xg(vo)},useDebugValue:Wv,useDeferredValue:function(d,h){var p=xi();return xk(p,nn.memoizedState,d,h)},useTransition:function(){var d=xg(vo)[0],h=xi().memoizedState;return[typeof d=="boolean"?d:tf(d),h]},useSyncExternalStore:GE,useId:wk,useHostTransitionStatus:qv,useFormState:rk,useActionState:rk,useOptimistic:function(d,h){var p=xi();return JE(p,nn,d,h)},useMemoCache:zv,useCacheRefresh:Nk},Mz={readContext:ws,use:gg,useCallback:pk,useContext:ws,useEffect:dk,useImperativeHandle:mk,useInsertionEffect:uk,useLayoutEffect:hk,useMemo:gk,useReducer:Hv,useRef:lk,useState:function(){return Hv(vo)},useDebugValue:Wv,useDeferredValue:function(d,h){var p=xi();return nn===null?Vv(p,d,h):xk(p,nn.memoizedState,d,h)},useTransition:function(){var d=Hv(vo)[0],h=xi().memoizedState;return[typeof d=="boolean"?d:tf(d),h]},useSyncExternalStore:GE,useId:wk,useHostTransitionStatus:qv,useFormState:ok,useActionState:ok,useOptimistic:function(d,h){var p=xi();return nn!==null?JE(p,nn,d,h):(p.baseState=d,[d,p.queue.dispatch])},useMemoCache:zv,useCacheRefresh:Nk},tu=null,rf=0;function Ng(d){var h=rf;return rf+=1,tu===null&&(tu=[]),BE(tu,d,h)}function af(d,h){h=h.props.ref,d.ref=h!==void 0?h:null}function Sg(d,h){throw h.$$typeof===g?Error(s(525)):(d=Object.prototype.toString.call(h),Error(s(31,d==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":d)))}function Ck(d){var h=d._init;return h(d._payload)}function Tk(d){function h(te,Q){if(d){var ie=te.deletions;ie===null?(te.deletions=[Q],te.flags|=16):ie.push(Q)}}function p(te,Q){if(!d)return null;for(;Q!==null;)h(te,Q),Q=Q.sibling;return null}function y(te){for(var Q=new Map;te!==null;)te.key!==null?Q.set(te.key,te):Q.set(te.index,te),te=te.sibling;return Q}function S(te,Q){return te=po(te,Q),te.index=0,te.sibling=null,te}function j(te,Q,ie){return te.index=ie,d?(ie=te.alternate,ie!==null?(ie=ie.index,ie<Q?(te.flags|=67108866,Q):ie):(te.flags|=67108866,Q)):(te.flags|=1048576,Q)}function R(te){return d&&te.alternate===null&&(te.flags|=67108866),te}function z(te,Q,ie,ye){return Q===null||Q.tag!==6?(Q=pv(ie,te.mode,ye),Q.return=te,Q):(Q=S(Q,ie),Q.return=te,Q)}function G(te,Q,ie,ye){var ze=ie.type;return ze===v?ge(te,Q,ie.props.children,ye,ie.key):Q!==null&&(Q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===O&&Ck(ze)===Q.type)?(Q=S(Q,ie.props),af(Q,ie),Q.return=te,Q):(Q=rg(ie.type,ie.key,ie.props,null,te.mode,ye),af(Q,ie),Q.return=te,Q)}function oe(te,Q,ie,ye){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ie.containerInfo||Q.stateNode.implementation!==ie.implementation?(Q=gv(ie,te.mode,ye),Q.return=te,Q):(Q=S(Q,ie.children||[]),Q.return=te,Q)}function ge(te,Q,ie,ye,ze){return Q===null||Q.tag!==7?(Q=jc(ie,te.mode,ye,ze),Q.return=te,Q):(Q=S(Q,ie),Q.return=te,Q)}function ve(te,Q,ie){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=pv(""+Q,te.mode,ie),Q.return=te,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return ie=rg(Q.type,Q.key,Q.props,null,te.mode,ie),af(ie,Q),ie.return=te,ie;case b:return Q=gv(Q,te.mode,ie),Q.return=te,Q;case O:var ye=Q._init;return Q=ye(Q._payload),ve(te,Q,ie)}if(ae(Q)||F(Q))return Q=jc(Q,te.mode,ie,null),Q.return=te,Q;if(typeof Q.then=="function")return ve(te,Ng(Q),ie);if(Q.$$typeof===k)return ve(te,cg(te,Q),ie);Sg(te,Q)}return null}function de(te,Q,ie,ye){var ze=Q!==null?Q.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ze!==null?null:z(te,Q,""+ie,ye);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case x:return ie.key===ze?G(te,Q,ie,ye):null;case b:return ie.key===ze?oe(te,Q,ie,ye):null;case O:return ze=ie._init,ie=ze(ie._payload),de(te,Q,ie,ye)}if(ae(ie)||F(ie))return ze!==null?null:ge(te,Q,ie,ye,null);if(typeof ie.then=="function")return de(te,Q,Ng(ie),ye);if(ie.$$typeof===k)return de(te,Q,cg(te,ie),ye);Sg(te,ie)}return null}function he(te,Q,ie,ye,ze){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return te=te.get(ie)||null,z(Q,te,""+ye,ze);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case x:return te=te.get(ye.key===null?ie:ye.key)||null,G(Q,te,ye,ze);case b:return te=te.get(ye.key===null?ie:ye.key)||null,oe(Q,te,ye,ze);case O:var wt=ye._init;return ye=wt(ye._payload),he(te,Q,ie,ye,ze)}if(ae(ye)||F(ye))return te=te.get(ie)||null,ge(Q,te,ye,ze,null);if(typeof ye.then=="function")return he(te,Q,ie,Ng(ye),ze);if(ye.$$typeof===k)return he(te,Q,ie,cg(Q,ye),ze);Sg(Q,ye)}return null}function st(te,Q,ie,ye){for(var ze=null,wt=null,qe=Q,tt=Q=0,Gi=null;qe!==null&&tt<ie.length;tt++){qe.index>tt?(Gi=qe,qe=null):Gi=qe.sibling;var zt=de(te,qe,ie[tt],ye);if(zt===null){qe===null&&(qe=Gi);break}d&&qe&&zt.alternate===null&&h(te,qe),Q=j(zt,Q,tt),wt===null?ze=zt:wt.sibling=zt,wt=zt,qe=Gi}if(tt===ie.length)return p(te,qe),Ht&&kc(te,tt),ze;if(qe===null){for(;tt<ie.length;tt++)qe=ve(te,ie[tt],ye),qe!==null&&(Q=j(qe,Q,tt),wt===null?ze=qe:wt.sibling=qe,wt=qe);return Ht&&kc(te,tt),ze}for(qe=y(qe);tt<ie.length;tt++)Gi=he(qe,te,tt,ie[tt],ye),Gi!==null&&(d&&Gi.alternate!==null&&qe.delete(Gi.key===null?tt:Gi.key),Q=j(Gi,Q,tt),wt===null?ze=Gi:wt.sibling=Gi,wt=Gi);return d&&qe.forEach(function(Al){return h(te,Al)}),Ht&&kc(te,tt),ze}function Je(te,Q,ie,ye){if(ie==null)throw Error(s(151));for(var ze=null,wt=null,qe=Q,tt=Q=0,Gi=null,zt=ie.next();qe!==null&&!zt.done;tt++,zt=ie.next()){qe.index>tt?(Gi=qe,qe=null):Gi=qe.sibling;var Al=de(te,qe,zt.value,ye);if(Al===null){qe===null&&(qe=Gi);break}d&&qe&&Al.alternate===null&&h(te,qe),Q=j(Al,Q,tt),wt===null?ze=Al:wt.sibling=Al,wt=Al,qe=Gi}if(zt.done)return p(te,qe),Ht&&kc(te,tt),ze;if(qe===null){for(;!zt.done;tt++,zt=ie.next())zt=ve(te,zt.value,ye),zt!==null&&(Q=j(zt,Q,tt),wt===null?ze=zt:wt.sibling=zt,wt=zt);return Ht&&kc(te,tt),ze}for(qe=y(qe);!zt.done;tt++,zt=ie.next())zt=he(qe,te,tt,zt.value,ye),zt!==null&&(d&&zt.alternate!==null&&qe.delete(zt.key===null?tt:zt.key),Q=j(zt,Q,tt),wt===null?ze=zt:wt.sibling=zt,wt=zt);return d&&qe.forEach(function(R9){return h(te,R9)}),Ht&&kc(te,tt),ze}function rn(te,Q,ie,ye){if(typeof ie=="object"&&ie!==null&&ie.type===v&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case x:e:{for(var ze=ie.key;Q!==null;){if(Q.key===ze){if(ze=ie.type,ze===v){if(Q.tag===7){p(te,Q.sibling),ye=S(Q,ie.props.children),ye.return=te,te=ye;break e}}else if(Q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===O&&Ck(ze)===Q.type){p(te,Q.sibling),ye=S(Q,ie.props),af(ye,ie),ye.return=te,te=ye;break e}p(te,Q);break}else h(te,Q);Q=Q.sibling}ie.type===v?(ye=jc(ie.props.children,te.mode,ye,ie.key),ye.return=te,te=ye):(ye=rg(ie.type,ie.key,ie.props,null,te.mode,ye),af(ye,ie),ye.return=te,te=ye)}return R(te);case b:e:{for(ze=ie.key;Q!==null;){if(Q.key===ze)if(Q.tag===4&&Q.stateNode.containerInfo===ie.containerInfo&&Q.stateNode.implementation===ie.implementation){p(te,Q.sibling),ye=S(Q,ie.children||[]),ye.return=te,te=ye;break e}else{p(te,Q);break}else h(te,Q);Q=Q.sibling}ye=gv(ie,te.mode,ye),ye.return=te,te=ye}return R(te);case O:return ze=ie._init,ie=ze(ie._payload),rn(te,Q,ie,ye)}if(ae(ie))return st(te,Q,ie,ye);if(F(ie)){if(ze=F(ie),typeof ze!="function")throw Error(s(150));return ie=ze.call(ie),Je(te,Q,ie,ye)}if(typeof ie.then=="function")return rn(te,Q,Ng(ie),ye);if(ie.$$typeof===k)return rn(te,Q,cg(te,ie),ye);Sg(te,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,Q!==null&&Q.tag===6?(p(te,Q.sibling),ye=S(Q,ie),ye.return=te,te=ye):(p(te,Q),ye=pv(ie,te.mode,ye),ye.return=te,te=ye),R(te)):p(te,Q)}return function(te,Q,ie,ye){try{rf=0;var ze=rn(te,Q,ie,ye);return tu=null,ze}catch(qe){if(qe===Yh||qe===ug)throw qe;var wt=Sr(29,qe,null,te.mode);return wt.lanes=ye,wt.return=te,wt}finally{}}}var nu=Tk(!0),Ak=Tk(!1),Xr=Z(null),Va=null;function pl(d){var h=d.alternate;fe(Ti,Ti.current&1),fe(Xr,d),Va===null&&(h===null||Zd.current!==null||h.memoizedState!==null)&&(Va=d)}function Mk(d){if(d.tag===22){if(fe(Ti,Ti.current),fe(Xr,d),Va===null){var h=d.alternate;h!==null&&h.memoizedState!==null&&(Va=d)}}else gl()}function gl(){fe(Ti,Ti.current),fe(Xr,Xr.current)}function wo(d){le(Xr),Va===d&&(Va=null),le(Ti)}var Ti=Z(0);function _g(d){for(var h=d;h!==null;){if(h.tag===13){var p=h.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||B1(p)))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===d)break;for(;h.sibling===null;){if(h.return===null||h.return===d)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}function Yv(d,h,p,y){h=d.memoizedState,p=p(y,h),p=p==null?h:m({},h,p),d.memoizedState=p,d.lanes===0&&(d.updateQueue.baseState=p)}var Xv={enqueueSetState:function(d,h,p){d=d._reactInternals;var y=kr(),S=hl(y);S.payload=h,p!=null&&(S.callback=p),h=fl(d,S,y),h!==null&&(Cr(h,d,y),Zh(h,d,y))},enqueueReplaceState:function(d,h,p){d=d._reactInternals;var y=kr(),S=hl(y);S.tag=1,S.payload=h,p!=null&&(S.callback=p),h=fl(d,S,y),h!==null&&(Cr(h,d,y),Zh(h,d,y))},enqueueForceUpdate:function(d,h){d=d._reactInternals;var p=kr(),y=hl(p);y.tag=2,h!=null&&(y.callback=h),h=fl(d,y,p),h!==null&&(Cr(h,d,p),Zh(h,d,p))}};function Rk(d,h,p,y,S,j,R){return d=d.stateNode,typeof d.shouldComponentUpdate=="function"?d.shouldComponentUpdate(y,j,R):h.prototype&&h.prototype.isPureReactComponent?!Hh(p,y)||!Hh(S,j):!0}function Ok(d,h,p,y){d=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(p,y),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(p,y),h.state!==d&&Xv.enqueueReplaceState(h,h.state,null)}function Dc(d,h){var p=h;if("ref"in h){p={};for(var y in h)y!=="ref"&&(p[y]=h[y])}if(d=d.defaultProps){p===h&&(p=m({},p));for(var S in d)p[S]===void 0&&(p[S]=d[S])}return p}var jg=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function Dk(d){jg(d)}function Lk(d){console.error(d)}function Ik(d){jg(d)}function Eg(d,h){try{var p=d.onUncaughtError;p(h.value,{componentStack:h.stack})}catch(y){setTimeout(function(){throw y})}}function Pk(d,h,p){try{var y=d.onCaughtError;y(p.value,{componentStack:p.stack,errorBoundary:h.tag===1?h.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function Zv(d,h,p){return p=hl(p),p.tag=3,p.payload={element:null},p.callback=function(){Eg(d,h)},p}function Bk(d){return d=hl(d),d.tag=3,d}function zk(d,h,p,y){var S=p.type.getDerivedStateFromError;if(typeof S=="function"){var j=y.value;d.payload=function(){return S(j)},d.callback=function(){Pk(h,p,y)}}var R=p.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(d.callback=function(){Pk(h,p,y),typeof S!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var z=y.stack;this.componentDidCatch(y.value,{componentStack:z!==null?z:""})})}function Rz(d,h,p,y,S){if(p.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(h=p.alternate,h!==null&&Gh(h,p,S,!0),p=Xr.current,p!==null){switch(p.tag){case 13:return Va===null?w1():p.alternate===null&&Jn===0&&(Jn=3),p.flags&=-257,p.flags|=65536,p.lanes=S,y===Ev?p.flags|=16384:(h=p.updateQueue,h===null?p.updateQueue=new Set([y]):h.add(y),S1(d,y,S)),!1;case 22:return p.flags|=65536,y===Ev?p.flags|=16384:(h=p.updateQueue,h===null?(h={transitions:null,markerInstances:null,retryQueue:new Set([y])},p.updateQueue=h):(p=h.retryQueue,p===null?h.retryQueue=new Set([y]):p.add(y)),S1(d,y,S)),!1}throw Error(s(435,p.tag))}return S1(d,y,S),w1(),!1}if(Ht)return h=Xr.current,h!==null?((h.flags&65536)===0&&(h.flags|=256),h.flags|=65536,h.lanes=S,y!==bv&&(d=Error(s(422),{cause:y}),Vh(Gr(d,p)))):(y!==bv&&(h=Error(s(423),{cause:y}),Vh(Gr(h,p))),d=d.current.alternate,d.flags|=65536,S&=-S,d.lanes|=S,y=Gr(y,p),S=Zv(d.stateNode,y,S),Tv(d,S),Jn!==4&&(Jn=2)),!1;var j=Error(s(520),{cause:y});if(j=Gr(j,p),ff===null?ff=[j]:ff.push(j),Jn!==4&&(Jn=2),h===null)return!0;y=Gr(y,p),p=h;do{switch(p.tag){case 3:return p.flags|=65536,d=S&-S,p.lanes|=d,d=Zv(p.stateNode,y,d),Tv(p,d),!1;case 1:if(h=p.type,j=p.stateNode,(p.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(Nl===null||!Nl.has(j))))return p.flags|=65536,S&=-S,p.lanes|=S,S=Bk(S),zk(S,d,p,y),Tv(p,S),!1}p=p.return}while(p!==null);return!1}var Fk=Error(s(461)),Wi=!1;function is(d,h,p,y){h.child=d===null?Ak(h,null,p,y):nu(h,d.child,p,y)}function Hk(d,h,p,y,S){p=p.render;var j=h.ref;if("ref"in y){var R={};for(var z in y)z!=="ref"&&(R[z]=y[z])}else R=y;return Mc(h),y=Dv(d,h,p,R,j,S),z=Lv(),d!==null&&!Wi?(Iv(d,h,S),No(d,h,S)):(Ht&&z&&xv(h),h.flags|=1,is(d,h,y,S),h.child)}function $k(d,h,p,y,S){if(d===null){var j=p.type;return typeof j=="function"&&!mv(j)&&j.defaultProps===void 0&&p.compare===null?(h.tag=15,h.type=j,Uk(d,h,j,y,S)):(d=rg(p.type,null,y,h,h.mode,S),d.ref=h.ref,d.return=h,h.child=d)}if(j=d.child,!r1(d,S)){var R=j.memoizedProps;if(p=p.compare,p=p!==null?p:Hh,p(R,y)&&d.ref===h.ref)return No(d,h,S)}return h.flags|=1,d=po(j,y),d.ref=h.ref,d.return=h,h.child=d}function Uk(d,h,p,y,S){if(d!==null){var j=d.memoizedProps;if(Hh(j,y)&&d.ref===h.ref)if(Wi=!1,h.pendingProps=y=j,r1(d,S))(d.flags&131072)!==0&&(Wi=!0);else return h.lanes=d.lanes,No(d,h,S)}return Jv(d,h,p,y,S)}function Wk(d,h,p){var y=h.pendingProps,S=y.children,j=d!==null?d.memoizedState:null;if(y.mode==="hidden"){if((h.flags&128)!==0){if(y=j!==null?j.baseLanes|p:p,d!==null){for(S=h.child=d.child,j=0;S!==null;)j=j|S.lanes|S.childLanes,S=S.sibling;h.childLanes=j&~y}else h.childLanes=0,h.child=null;return Vk(d,h,y,p)}if((p&536870912)!==0)h.memoizedState={baseLanes:0,cachePool:null},d!==null&&dg(h,j!==null?j.cachePool:null),j!==null?UE(h,j):Mv(),Mk(h);else return h.lanes=h.childLanes=536870912,Vk(d,h,j!==null?j.baseLanes|p:p,p)}else j!==null?(dg(h,j.cachePool),UE(h,j),gl(),h.memoizedState=null):(d!==null&&dg(h,null),Mv(),gl());return is(d,h,S,p),h.child}function Vk(d,h,p,y){var S=jv();return S=S===null?null:{parent:Ci._currentValue,pool:S},h.memoizedState={baseLanes:p,cachePool:S},d!==null&&dg(h,null),Mv(),Mk(h),d!==null&&Gh(d,h,y,!0),null}function kg(d,h){var p=h.ref;if(p===null)d!==null&&d.ref!==null&&(h.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(s(284));(d===null||d.ref!==p)&&(h.flags|=4194816)}}function Jv(d,h,p,y,S){return Mc(h),p=Dv(d,h,p,y,void 0,S),y=Lv(),d!==null&&!Wi?(Iv(d,h,S),No(d,h,S)):(Ht&&y&&xv(h),h.flags|=1,is(d,h,p,S),h.child)}function Gk(d,h,p,y,S,j){return Mc(h),h.updateQueue=null,p=VE(h,y,p,S),WE(d),y=Lv(),d!==null&&!Wi?(Iv(d,h,j),No(d,h,j)):(Ht&&y&&xv(h),h.flags|=1,is(d,h,p,j),h.child)}function qk(d,h,p,y,S){if(Mc(h),h.stateNode===null){var j=Gd,R=p.contextType;typeof R=="object"&&R!==null&&(j=ws(R)),j=new p(y,j),h.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,j.updater=Xv,h.stateNode=j,j._reactInternals=h,j=h.stateNode,j.props=y,j.state=h.memoizedState,j.refs={},kv(h),R=p.contextType,j.context=typeof R=="object"&&R!==null?ws(R):Gd,j.state=h.memoizedState,R=p.getDerivedStateFromProps,typeof R=="function"&&(Yv(h,p,R,y),j.state=h.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(R=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),R!==j.state&&Xv.enqueueReplaceState(j,j.state,null),Qh(h,y,j,S),Jh(),j.state=h.memoizedState),typeof j.componentDidMount=="function"&&(h.flags|=4194308),y=!0}else if(d===null){j=h.stateNode;var z=h.memoizedProps,G=Dc(p,z);j.props=G;var oe=j.context,ge=p.contextType;R=Gd,typeof ge=="object"&&ge!==null&&(R=ws(ge));var ve=p.getDerivedStateFromProps;ge=typeof ve=="function"||typeof j.getSnapshotBeforeUpdate=="function",z=h.pendingProps!==z,ge||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(z||oe!==R)&&Ok(h,j,y,R),ul=!1;var de=h.memoizedState;j.state=de,Qh(h,y,j,S),Jh(),oe=h.memoizedState,z||de!==oe||ul?(typeof ve=="function"&&(Yv(h,p,ve,y),oe=h.memoizedState),(G=ul||Rk(h,p,G,y,de,oe,R))?(ge||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(h.flags|=4194308)):(typeof j.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=y,h.memoizedState=oe),j.props=y,j.state=oe,j.context=R,y=G):(typeof j.componentDidMount=="function"&&(h.flags|=4194308),y=!1)}else{j=h.stateNode,Cv(d,h),R=h.memoizedProps,ge=Dc(p,R),j.props=ge,ve=h.pendingProps,de=j.context,oe=p.contextType,G=Gd,typeof oe=="object"&&oe!==null&&(G=ws(oe)),z=p.getDerivedStateFromProps,(oe=typeof z=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(R!==ve||de!==G)&&Ok(h,j,y,G),ul=!1,de=h.memoizedState,j.state=de,Qh(h,y,j,S),Jh();var he=h.memoizedState;R!==ve||de!==he||ul||d!==null&&d.dependencies!==null&&lg(d.dependencies)?(typeof z=="function"&&(Yv(h,p,z,y),he=h.memoizedState),(ge=ul||Rk(h,p,ge,y,de,he,G)||d!==null&&d.dependencies!==null&&lg(d.dependencies))?(oe||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(y,he,G),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(y,he,G)),typeof j.componentDidUpdate=="function"&&(h.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof j.componentDidUpdate!="function"||R===d.memoizedProps&&de===d.memoizedState||(h.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||R===d.memoizedProps&&de===d.memoizedState||(h.flags|=1024),h.memoizedProps=y,h.memoizedState=he),j.props=y,j.state=he,j.context=G,y=ge):(typeof j.componentDidUpdate!="function"||R===d.memoizedProps&&de===d.memoizedState||(h.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||R===d.memoizedProps&&de===d.memoizedState||(h.flags|=1024),y=!1)}return j=y,kg(d,h),y=(h.flags&128)!==0,j||y?(j=h.stateNode,p=y&&typeof p.getDerivedStateFromError!="function"?null:j.render(),h.flags|=1,d!==null&&y?(h.child=nu(h,d.child,null,S),h.child=nu(h,null,p,S)):is(d,h,p,S),h.memoizedState=j.state,d=h.child):d=No(d,h,S),d}function Kk(d,h,p,y){return Wh(),h.flags|=256,is(d,h,p,y),h.child}var Qv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function e1(d){return{baseLanes:d,cachePool:LE()}}function t1(d,h,p){return d=d!==null?d.childLanes&~p:0,h&&(d|=Zr),d}function Yk(d,h,p){var y=h.pendingProps,S=!1,j=(h.flags&128)!==0,R;if((R=j)||(R=d!==null&&d.memoizedState===null?!1:(Ti.current&2)!==0),R&&(S=!0,h.flags&=-129),R=(h.flags&32)!==0,h.flags&=-33,d===null){if(Ht){if(S?pl(h):gl(),Ht){var z=Zn,G;if(G=z){e:{for(G=z,z=Wa;G.nodeType!==8;){if(!z){z=null;break e}if(G=Sa(G.nextSibling),G===null){z=null;break e}}z=G}z!==null?(h.memoizedState={dehydrated:z,treeContext:Ec!==null?{id:go,overflow:xo}:null,retryLane:536870912,hydrationErrors:null},G=Sr(18,null,null,0),G.stateNode=z,G.return=h,h.child=G,Hs=h,Zn=null,G=!0):G=!1}G||Tc(h)}if(z=h.memoizedState,z!==null&&(z=z.dehydrated,z!==null))return B1(z)?h.lanes=32:h.lanes=536870912,null;wo(h)}return z=y.children,y=y.fallback,S?(gl(),S=h.mode,z=Cg({mode:"hidden",children:z},S),y=jc(y,S,p,null),z.return=h,y.return=h,z.sibling=y,h.child=z,S=h.child,S.memoizedState=e1(p),S.childLanes=t1(d,R,p),h.memoizedState=Qv,y):(pl(h),n1(h,z))}if(G=d.memoizedState,G!==null&&(z=G.dehydrated,z!==null)){if(j)h.flags&256?(pl(h),h.flags&=-257,h=i1(d,h,p)):h.memoizedState!==null?(gl(),h.child=d.child,h.flags|=128,h=null):(gl(),S=y.fallback,z=h.mode,y=Cg({mode:"visible",children:y.children},z),S=jc(S,z,p,null),S.flags|=2,y.return=h,S.return=h,y.sibling=S,h.child=y,nu(h,d.child,null,p),y=h.child,y.memoizedState=e1(p),y.childLanes=t1(d,R,p),h.memoizedState=Qv,h=S);else if(pl(h),B1(z)){if(R=z.nextSibling&&z.nextSibling.dataset,R)var oe=R.dgst;R=oe,y=Error(s(419)),y.stack="",y.digest=R,Vh({value:y,source:null,stack:null}),h=i1(d,h,p)}else if(Wi||Gh(d,h,p,!1),R=(p&d.childLanes)!==0,Wi||R){if(R=Nn,R!==null&&(y=p&-p,y=(y&42)!==0?1:ne(y),y=(y&(R.suspendedLanes|p))!==0?0:y,y!==0&&y!==G.retryLane))throw G.retryLane=y,Vd(d,y),Cr(R,d,y),Fk;z.data==="$?"||w1(),h=i1(d,h,p)}else z.data==="$?"?(h.flags|=192,h.child=d.child,h=null):(d=G.treeContext,Zn=Sa(z.nextSibling),Hs=h,Ht=!0,Cc=null,Wa=!1,d!==null&&(Kr[Yr++]=go,Kr[Yr++]=xo,Kr[Yr++]=Ec,go=d.id,xo=d.overflow,Ec=h),h=n1(h,y.children),h.flags|=4096);return h}return S?(gl(),S=y.fallback,z=h.mode,G=d.child,oe=G.sibling,y=po(G,{mode:"hidden",children:y.children}),y.subtreeFlags=G.subtreeFlags&65011712,oe!==null?S=po(oe,S):(S=jc(S,z,p,null),S.flags|=2),S.return=h,y.return=h,y.sibling=S,h.child=y,y=S,S=h.child,z=d.child.memoizedState,z===null?z=e1(p):(G=z.cachePool,G!==null?(oe=Ci._currentValue,G=G.parent!==oe?{parent:oe,pool:oe}:G):G=LE(),z={baseLanes:z.baseLanes|p,cachePool:G}),S.memoizedState=z,S.childLanes=t1(d,R,p),h.memoizedState=Qv,y):(pl(h),p=d.child,d=p.sibling,p=po(p,{mode:"visible",children:y.children}),p.return=h,p.sibling=null,d!==null&&(R=h.deletions,R===null?(h.deletions=[d],h.flags|=16):R.push(d)),h.child=p,h.memoizedState=null,p)}function n1(d,h){return h=Cg({mode:"visible",children:h},d.mode),h.return=d,d.child=h}function Cg(d,h){return d=Sr(22,d,null,h),d.lanes=0,d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},d}function i1(d,h,p){return nu(h,d.child,null,p),d=n1(h,h.pendingProps.children),d.flags|=2,h.memoizedState=null,d}function Xk(d,h,p){d.lanes|=h;var y=d.alternate;y!==null&&(y.lanes|=h),wv(d.return,h,p)}function s1(d,h,p,y,S){var j=d.memoizedState;j===null?d.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:y,tail:p,tailMode:S}:(j.isBackwards=h,j.rendering=null,j.renderingStartTime=0,j.last=y,j.tail=p,j.tailMode=S)}function Zk(d,h,p){var y=h.pendingProps,S=y.revealOrder,j=y.tail;if(is(d,h,y.children,p),y=Ti.current,(y&2)!==0)y=y&1|2,h.flags|=128;else{if(d!==null&&(d.flags&128)!==0)e:for(d=h.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&Xk(d,p,h);else if(d.tag===19)Xk(d,p,h);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===h)break e;for(;d.sibling===null;){if(d.return===null||d.return===h)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}y&=1}switch(fe(Ti,y),S){case"forwards":for(p=h.child,S=null;p!==null;)d=p.alternate,d!==null&&_g(d)===null&&(S=p),p=p.sibling;p=S,p===null?(S=h.child,h.child=null):(S=p.sibling,p.sibling=null),s1(h,!1,S,p,j);break;case"backwards":for(p=null,S=h.child,h.child=null;S!==null;){if(d=S.alternate,d!==null&&_g(d)===null){h.child=S;break}d=S.sibling,S.sibling=p,p=S,S=d}s1(h,!0,p,null,j);break;case"together":s1(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function No(d,h,p){if(d!==null&&(h.dependencies=d.dependencies),wl|=h.lanes,(p&h.childLanes)===0)if(d!==null){if(Gh(d,h,p,!1),(p&h.childLanes)===0)return null}else return null;if(d!==null&&h.child!==d.child)throw Error(s(153));if(h.child!==null){for(d=h.child,p=po(d,d.pendingProps),h.child=p,p.return=h;d.sibling!==null;)d=d.sibling,p=p.sibling=po(d,d.pendingProps),p.return=h;p.sibling=null}return h.child}function r1(d,h){return(d.lanes&h)!==0?!0:(d=d.dependencies,!!(d!==null&&lg(d)))}function Oz(d,h,p){switch(h.tag){case 3:Te(h,h.stateNode.containerInfo),dl(h,Ci,d.memoizedState.cache),Wh();break;case 27:case 5:Ze(h);break;case 4:Te(h,h.stateNode.containerInfo);break;case 10:dl(h,h.type,h.memoizedProps.value);break;case 13:var y=h.memoizedState;if(y!==null)return y.dehydrated!==null?(pl(h),h.flags|=128,null):(p&h.child.childLanes)!==0?Yk(d,h,p):(pl(h),d=No(d,h,p),d!==null?d.sibling:null);pl(h);break;case 19:var S=(d.flags&128)!==0;if(y=(p&h.childLanes)!==0,y||(Gh(d,h,p,!1),y=(p&h.childLanes)!==0),S){if(y)return Zk(d,h,p);h.flags|=128}if(S=h.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),fe(Ti,Ti.current),y)break;return null;case 22:case 23:return h.lanes=0,Wk(d,h,p);case 24:dl(h,Ci,d.memoizedState.cache)}return No(d,h,p)}function Jk(d,h,p){if(d!==null)if(d.memoizedProps!==h.pendingProps)Wi=!0;else{if(!r1(d,p)&&(h.flags&128)===0)return Wi=!1,Oz(d,h,p);Wi=(d.flags&131072)!==0}else Wi=!1,Ht&&(h.flags&1048576)!==0&&CE(h,og,h.index);switch(h.lanes=0,h.tag){case 16:e:{d=h.pendingProps;var y=h.elementType,S=y._init;if(y=S(y._payload),h.type=y,typeof y=="function")mv(y)?(d=Dc(y,d),h.tag=1,h=qk(null,h,y,d,p)):(h.tag=0,h=Jv(null,h,y,d,p));else{if(y!=null){if(S=y.$$typeof,S===C){h.tag=11,h=Hk(null,h,y,d,p);break e}else if(S===M){h.tag=14,h=$k(null,h,y,d,p);break e}}throw h=q(y)||y,Error(s(306,h,""))}}return h;case 0:return Jv(d,h,h.type,h.pendingProps,p);case 1:return y=h.type,S=Dc(y,h.pendingProps),qk(d,h,y,S,p);case 3:e:{if(Te(h,h.stateNode.containerInfo),d===null)throw Error(s(387));y=h.pendingProps;var j=h.memoizedState;S=j.element,Cv(d,h),Qh(h,y,null,p);var R=h.memoizedState;if(y=R.cache,dl(h,Ci,y),y!==j.cache&&Nv(h,[Ci],p,!0),Jh(),y=R.element,j.isDehydrated)if(j={element:y,isDehydrated:!1,cache:R.cache},h.updateQueue.baseState=j,h.memoizedState=j,h.flags&256){h=Kk(d,h,y,p);break e}else if(y!==S){S=Gr(Error(s(424)),h),Vh(S),h=Kk(d,h,y,p);break e}else{switch(d=h.stateNode.containerInfo,d.nodeType){case 9:d=d.body;break;default:d=d.nodeName==="HTML"?d.ownerDocument.body:d}for(Zn=Sa(d.firstChild),Hs=h,Ht=!0,Cc=null,Wa=!0,p=Ak(h,null,y,p),h.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Wh(),y===S){h=No(d,h,p);break e}is(d,h,y,p)}h=h.child}return h;case 26:return kg(d,h),d===null?(p=nT(h.type,null,h.pendingProps,null))?h.memoizedState=p:Ht||(p=h.type,d=h.pendingProps,y=$g(Re.current).createElement(p),y[K]=h,y[ce]=d,rs(y,p,d),ut(y),h.stateNode=y):h.memoizedState=nT(h.type,d.memoizedProps,h.pendingProps,d.memoizedState),null;case 27:return Ze(h),d===null&&Ht&&(y=h.stateNode=QC(h.type,h.pendingProps,Re.current),Hs=h,Wa=!0,S=Zn,jl(h.type)?(z1=S,Zn=Sa(y.firstChild)):Zn=S),is(d,h,h.pendingProps.children,p),kg(d,h),d===null&&(h.flags|=4194304),h.child;case 5:return d===null&&Ht&&((S=y=Zn)&&(y=o9(y,h.type,h.pendingProps,Wa),y!==null?(h.stateNode=y,Hs=h,Zn=Sa(y.firstChild),Wa=!1,S=!0):S=!1),S||Tc(h)),Ze(h),S=h.type,j=h.pendingProps,R=d!==null?d.memoizedProps:null,y=j.children,L1(S,j)?y=null:R!==null&&L1(S,R)&&(h.flags|=32),h.memoizedState!==null&&(S=Dv(d,h,jz,null,null,p),Nf._currentValue=S),kg(d,h),is(d,h,y,p),h.child;case 6:return d===null&&Ht&&((d=p=Zn)&&(p=l9(p,h.pendingProps,Wa),p!==null?(h.stateNode=p,Hs=h,Zn=null,d=!0):d=!1),d||Tc(h)),null;case 13:return Yk(d,h,p);case 4:return Te(h,h.stateNode.containerInfo),y=h.pendingProps,d===null?h.child=nu(h,null,y,p):is(d,h,y,p),h.child;case 11:return Hk(d,h,h.type,h.pendingProps,p);case 7:return is(d,h,h.pendingProps,p),h.child;case 8:return is(d,h,h.pendingProps.children,p),h.child;case 12:return is(d,h,h.pendingProps.children,p),h.child;case 10:return y=h.pendingProps,dl(h,h.type,y.value),is(d,h,y.children,p),h.child;case 9:return S=h.type._context,y=h.pendingProps.children,Mc(h),S=ws(S),y=y(S),h.flags|=1,is(d,h,y,p),h.child;case 14:return $k(d,h,h.type,h.pendingProps,p);case 15:return Uk(d,h,h.type,h.pendingProps,p);case 19:return Zk(d,h,p);case 31:return y=h.pendingProps,p=h.mode,y={mode:y.mode,children:y.children},d===null?(p=Cg(y,p),p.ref=h.ref,h.child=p,p.return=h,h=p):(p=po(d.child,y),p.ref=h.ref,h.child=p,p.return=h,h=p),h;case 22:return Wk(d,h,p);case 24:return Mc(h),y=ws(Ci),d===null?(S=jv(),S===null&&(S=Nn,j=Sv(),S.pooledCache=j,j.refCount++,j!==null&&(S.pooledCacheLanes|=p),S=j),h.memoizedState={parent:y,cache:S},kv(h),dl(h,Ci,S)):((d.lanes&p)!==0&&(Cv(d,h),Qh(h,null,null,p),Jh()),S=d.memoizedState,j=h.memoizedState,S.parent!==y?(S={parent:y,cache:y},h.memoizedState=S,h.lanes===0&&(h.memoizedState=h.updateQueue.baseState=S),dl(h,Ci,y)):(y=j.cache,dl(h,Ci,y),y!==S.cache&&Nv(h,[Ci],p,!0))),is(d,h,h.pendingProps.children,p),h.child;case 29:throw h.pendingProps}throw Error(s(156,h.tag))}function So(d){d.flags|=4}function Qk(d,h){if(h.type!=="stylesheet"||(h.state.loading&4)!==0)d.flags&=-16777217;else if(d.flags|=16777216,!oT(h)){if(h=Xr.current,h!==null&&((It&4194048)===It?Va!==null:(It&62914560)!==It&&(It&536870912)===0||h!==Va))throw Xh=Ev,IE;d.flags|=8192}}function Tg(d,h){h!==null&&(d.flags|=4),d.flags&16384&&(h=d.tag!==22?ys():536870912,d.lanes|=h,au|=h)}function of(d,h){if(!Ht)switch(d.tailMode){case"hidden":h=d.tail;for(var p=null;h!==null;)h.alternate!==null&&(p=h),h=h.sibling;p===null?d.tail=null:p.sibling=null;break;case"collapsed":p=d.tail;for(var y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?h||d.tail===null?d.tail=null:d.tail.sibling=null:y.sibling=null}}function Wn(d){var h=d.alternate!==null&&d.alternate.child===d.child,p=0,y=0;if(h)for(var S=d.child;S!==null;)p|=S.lanes|S.childLanes,y|=S.subtreeFlags&65011712,y|=S.flags&65011712,S.return=d,S=S.sibling;else for(S=d.child;S!==null;)p|=S.lanes|S.childLanes,y|=S.subtreeFlags,y|=S.flags,S.return=d,S=S.sibling;return d.subtreeFlags|=y,d.childLanes=p,h}function Dz(d,h,p){var y=h.pendingProps;switch(yv(h),h.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wn(h),null;case 1:return Wn(h),null;case 3:return p=h.stateNode,y=null,d!==null&&(y=d.memoizedState.cache),h.memoizedState.cache!==y&&(h.flags|=2048),bo(Ci),Qe(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(d===null||d.child===null)&&(Uh(h)?So(h):d===null||d.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,ME())),Wn(h),null;case 26:return p=h.memoizedState,d===null?(So(h),p!==null?(Wn(h),Qk(h,p)):(Wn(h),h.flags&=-16777217)):p?p!==d.memoizedState?(So(h),Wn(h),Qk(h,p)):(Wn(h),h.flags&=-16777217):(d.memoizedProps!==y&&So(h),Wn(h),h.flags&=-16777217),null;case 27:Tt(h),p=Re.current;var S=h.type;if(d!==null&&h.stateNode!=null)d.memoizedProps!==y&&So(h);else{if(!y){if(h.stateNode===null)throw Error(s(166));return Wn(h),null}d=we.current,Uh(h)?TE(h):(d=QC(S,y,p),h.stateNode=d,So(h))}return Wn(h),null;case 5:if(Tt(h),p=h.type,d!==null&&h.stateNode!=null)d.memoizedProps!==y&&So(h);else{if(!y){if(h.stateNode===null)throw Error(s(166));return Wn(h),null}if(d=we.current,Uh(h))TE(h);else{switch(S=$g(Re.current),d){case 1:d=S.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:d=S.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":d=S.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":d=S.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":d=S.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof y.is=="string"?S.createElement("select",{is:y.is}):S.createElement("select"),y.multiple?d.multiple=!0:y.size&&(d.size=y.size);break;default:d=typeof y.is=="string"?S.createElement(p,{is:y.is}):S.createElement(p)}}d[K]=h,d[ce]=y;e:for(S=h.child;S!==null;){if(S.tag===5||S.tag===6)d.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===h)break e;for(;S.sibling===null;){if(S.return===null||S.return===h)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}h.stateNode=d;e:switch(rs(d,p,y),p){case"button":case"input":case"select":case"textarea":d=!!y.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&So(h)}}return Wn(h),h.flags&=-16777217,null;case 6:if(d&&h.stateNode!=null)d.memoizedProps!==y&&So(h);else{if(typeof y!="string"&&h.stateNode===null)throw Error(s(166));if(d=Re.current,Uh(h)){if(d=h.stateNode,p=h.memoizedProps,y=null,S=Hs,S!==null)switch(S.tag){case 27:case 5:y=S.memoizedProps}d[K]=h,d=!!(d.nodeValue===p||y!==null&&y.suppressHydrationWarning===!0||GC(d.nodeValue,p)),d||Tc(h)}else d=$g(d).createTextNode(y),d[K]=h,h.stateNode=d}return Wn(h),null;case 13:if(y=h.memoizedState,d===null||d.memoizedState!==null&&d.memoizedState.dehydrated!==null){if(S=Uh(h),y!==null&&y.dehydrated!==null){if(d===null){if(!S)throw Error(s(318));if(S=h.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(s(317));S[K]=h}else Wh(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Wn(h),S=!1}else S=ME(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=S),S=!0;if(!S)return h.flags&256?(wo(h),h):(wo(h),null)}if(wo(h),(h.flags&128)!==0)return h.lanes=p,h;if(p=y!==null,d=d!==null&&d.memoizedState!==null,p){y=h.child,S=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(S=y.alternate.memoizedState.cachePool.pool);var j=null;y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(j=y.memoizedState.cachePool.pool),j!==S&&(y.flags|=2048)}return p!==d&&p&&(h.child.flags|=8192),Tg(h,h.updateQueue),Wn(h),null;case 4:return Qe(),d===null&&A1(h.stateNode.containerInfo),Wn(h),null;case 10:return bo(h.type),Wn(h),null;case 19:if(le(Ti),S=h.memoizedState,S===null)return Wn(h),null;if(y=(h.flags&128)!==0,j=S.rendering,j===null)if(y)of(S,!1);else{if(Jn!==0||d!==null&&(d.flags&128)!==0)for(d=h.child;d!==null;){if(j=_g(d),j!==null){for(h.flags|=128,of(S,!1),d=j.updateQueue,h.updateQueue=d,Tg(h,d),h.subtreeFlags=0,d=p,p=h.child;p!==null;)kE(p,d),p=p.sibling;return fe(Ti,Ti.current&1|2),h.child}d=d.sibling}S.tail!==null&&se()>Rg&&(h.flags|=128,y=!0,of(S,!1),h.lanes=4194304)}else{if(!y)if(d=_g(j),d!==null){if(h.flags|=128,y=!0,d=d.updateQueue,h.updateQueue=d,Tg(h,d),of(S,!0),S.tail===null&&S.tailMode==="hidden"&&!j.alternate&&!Ht)return Wn(h),null}else 2*se()-S.renderingStartTime>Rg&&p!==536870912&&(h.flags|=128,y=!0,of(S,!1),h.lanes=4194304);S.isBackwards?(j.sibling=h.child,h.child=j):(d=S.last,d!==null?d.sibling=j:h.child=j,S.last=j)}return S.tail!==null?(h=S.tail,S.rendering=h,S.tail=h.sibling,S.renderingStartTime=se(),h.sibling=null,d=Ti.current,fe(Ti,y?d&1|2:d&1),h):(Wn(h),null);case 22:case 23:return wo(h),Rv(),y=h.memoizedState!==null,d!==null?d.memoizedState!==null!==y&&(h.flags|=8192):y&&(h.flags|=8192),y?(p&536870912)!==0&&(h.flags&128)===0&&(Wn(h),h.subtreeFlags&6&&(h.flags|=8192)):Wn(h),p=h.updateQueue,p!==null&&Tg(h,p.retryQueue),p=null,d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(p=d.memoizedState.cachePool.pool),y=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(y=h.memoizedState.cachePool.pool),y!==p&&(h.flags|=2048),d!==null&&le(Rc),null;case 24:return p=null,d!==null&&(p=d.memoizedState.cache),h.memoizedState.cache!==p&&(h.flags|=2048),bo(Ci),Wn(h),null;case 25:return null;case 30:return null}throw Error(s(156,h.tag))}function Lz(d,h){switch(yv(h),h.tag){case 1:return d=h.flags,d&65536?(h.flags=d&-65537|128,h):null;case 3:return bo(Ci),Qe(),d=h.flags,(d&65536)!==0&&(d&128)===0?(h.flags=d&-65537|128,h):null;case 26:case 27:case 5:return Tt(h),null;case 13:if(wo(h),d=h.memoizedState,d!==null&&d.dehydrated!==null){if(h.alternate===null)throw Error(s(340));Wh()}return d=h.flags,d&65536?(h.flags=d&-65537|128,h):null;case 19:return le(Ti),null;case 4:return Qe(),null;case 10:return bo(h.type),null;case 22:case 23:return wo(h),Rv(),d!==null&&le(Rc),d=h.flags,d&65536?(h.flags=d&-65537|128,h):null;case 24:return bo(Ci),null;case 25:return null;default:return null}}function eC(d,h){switch(yv(h),h.tag){case 3:bo(Ci),Qe();break;case 26:case 27:case 5:Tt(h);break;case 4:Qe();break;case 13:wo(h);break;case 19:le(Ti);break;case 10:bo(h.type);break;case 22:case 23:wo(h),Rv(),d!==null&&le(Rc);break;case 24:bo(Ci)}}function lf(d,h){try{var p=h.updateQueue,y=p!==null?p.lastEffect:null;if(y!==null){var S=y.next;p=S;do{if((p.tag&d)===d){y=void 0;var j=p.create,R=p.inst;y=j(),R.destroy=y}p=p.next}while(p!==S)}}catch(z){dn(h,h.return,z)}}function xl(d,h,p){try{var y=h.updateQueue,S=y!==null?y.lastEffect:null;if(S!==null){var j=S.next;y=j;do{if((y.tag&d)===d){var R=y.inst,z=R.destroy;if(z!==void 0){R.destroy=void 0,S=h;var G=p,oe=z;try{oe()}catch(ge){dn(S,G,ge)}}}y=y.next}while(y!==j)}}catch(ge){dn(h,h.return,ge)}}function tC(d){var h=d.updateQueue;if(h!==null){var p=d.stateNode;try{$E(h,p)}catch(y){dn(d,d.return,y)}}}function nC(d,h,p){p.props=Dc(d.type,d.memoizedProps),p.state=d.memoizedState;try{p.componentWillUnmount()}catch(y){dn(d,h,y)}}function cf(d,h){try{var p=d.ref;if(p!==null){switch(d.tag){case 26:case 27:case 5:var y=d.stateNode;break;case 30:y=d.stateNode;break;default:y=d.stateNode}typeof p=="function"?d.refCleanup=p(y):p.current=y}}catch(S){dn(d,h,S)}}function Ga(d,h){var p=d.ref,y=d.refCleanup;if(p!==null)if(typeof y=="function")try{y()}catch(S){dn(d,h,S)}finally{d.refCleanup=null,d=d.alternate,d!=null&&(d.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(S){dn(d,h,S)}else p.current=null}function iC(d){var h=d.type,p=d.memoizedProps,y=d.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":p.autoFocus&&y.focus();break e;case"img":p.src?y.src=p.src:p.srcSet&&(y.srcset=p.srcSet)}}catch(S){dn(d,d.return,S)}}function a1(d,h,p){try{var y=d.stateNode;n9(y,d.type,p,h),y[ce]=h}catch(S){dn(d,d.return,S)}}function sC(d){return d.tag===5||d.tag===3||d.tag===26||d.tag===27&&jl(d.type)||d.tag===4}function o1(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||sC(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.tag===27&&jl(d.type)||d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function l1(d,h,p){var y=d.tag;if(y===5||y===6)d=d.stateNode,h?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(d,h):(h=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,h.appendChild(d),p=p._reactRootContainer,p!=null||h.onclick!==null||(h.onclick=Hg));else if(y!==4&&(y===27&&jl(d.type)&&(p=d.stateNode,h=null),d=d.child,d!==null))for(l1(d,h,p),d=d.sibling;d!==null;)l1(d,h,p),d=d.sibling}function Ag(d,h,p){var y=d.tag;if(y===5||y===6)d=d.stateNode,h?p.insertBefore(d,h):p.appendChild(d);else if(y!==4&&(y===27&&jl(d.type)&&(p=d.stateNode),d=d.child,d!==null))for(Ag(d,h,p),d=d.sibling;d!==null;)Ag(d,h,p),d=d.sibling}function rC(d){var h=d.stateNode,p=d.memoizedProps;try{for(var y=d.type,S=h.attributes;S.length;)h.removeAttributeNode(S[0]);rs(h,y,p),h[K]=d,h[ce]=p}catch(j){dn(d,d.return,j)}}var _o=!1,ai=!1,c1=!1,aC=typeof WeakSet=="function"?WeakSet:Set,Vi=null;function Iz(d,h){if(d=d.containerInfo,O1=Kg,d=xE(d),ov(d)){if("selectionStart"in d)var p={start:d.selectionStart,end:d.selectionEnd};else e:{p=(p=d.ownerDocument)&&p.defaultView||window;var y=p.getSelection&&p.getSelection();if(y&&y.rangeCount!==0){p=y.anchorNode;var S=y.anchorOffset,j=y.focusNode;y=y.focusOffset;try{p.nodeType,j.nodeType}catch{p=null;break e}var R=0,z=-1,G=-1,oe=0,ge=0,ve=d,de=null;t:for(;;){for(var he;ve!==p||S!==0&&ve.nodeType!==3||(z=R+S),ve!==j||y!==0&&ve.nodeType!==3||(G=R+y),ve.nodeType===3&&(R+=ve.nodeValue.length),(he=ve.firstChild)!==null;)de=ve,ve=he;for(;;){if(ve===d)break t;if(de===p&&++oe===S&&(z=R),de===j&&++ge===y&&(G=R),(he=ve.nextSibling)!==null)break;ve=de,de=ve.parentNode}ve=he}p=z===-1||G===-1?null:{start:z,end:G}}else p=null}p=p||{start:0,end:0}}else p=null;for(D1={focusedElem:d,selectionRange:p},Kg=!1,Vi=h;Vi!==null;)if(h=Vi,d=h.child,(h.subtreeFlags&1024)!==0&&d!==null)d.return=h,Vi=d;else for(;Vi!==null;){switch(h=Vi,j=h.alternate,d=h.flags,h.tag){case 0:break;case 11:case 15:break;case 1:if((d&1024)!==0&&j!==null){d=void 0,p=h,S=j.memoizedProps,j=j.memoizedState,y=p.stateNode;try{var st=Dc(p.type,S,p.elementType===p.type);d=y.getSnapshotBeforeUpdate(st,j),y.__reactInternalSnapshotBeforeUpdate=d}catch(Je){dn(p,p.return,Je)}}break;case 3:if((d&1024)!==0){if(d=h.stateNode.containerInfo,p=d.nodeType,p===9)P1(d);else if(p===1)switch(d.nodeName){case"HEAD":case"HTML":case"BODY":P1(d);break;default:d.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&1024)!==0)throw Error(s(163))}if(d=h.sibling,d!==null){d.return=h.return,Vi=d;break}Vi=h.return}}function oC(d,h,p){var y=p.flags;switch(p.tag){case 0:case 11:case 15:yl(d,p),y&4&&lf(5,p);break;case 1:if(yl(d,p),y&4)if(d=p.stateNode,h===null)try{d.componentDidMount()}catch(R){dn(p,p.return,R)}else{var S=Dc(p.type,h.memoizedProps);h=h.memoizedState;try{d.componentDidUpdate(S,h,d.__reactInternalSnapshotBeforeUpdate)}catch(R){dn(p,p.return,R)}}y&64&&tC(p),y&512&&cf(p,p.return);break;case 3:if(yl(d,p),y&64&&(d=p.updateQueue,d!==null)){if(h=null,p.child!==null)switch(p.child.tag){case 27:case 5:h=p.child.stateNode;break;case 1:h=p.child.stateNode}try{$E(d,h)}catch(R){dn(p,p.return,R)}}break;case 27:h===null&&y&4&&rC(p);case 26:case 5:yl(d,p),h===null&&y&4&&iC(p),y&512&&cf(p,p.return);break;case 12:yl(d,p);break;case 13:yl(d,p),y&4&&dC(d,p),y&64&&(d=p.memoizedState,d!==null&&(d=d.dehydrated,d!==null&&(p=Vz.bind(null,p),c9(d,p))));break;case 22:if(y=p.memoizedState!==null||_o,!y){h=h!==null&&h.memoizedState!==null||ai,S=_o;var j=ai;_o=y,(ai=h)&&!j?bl(d,p,(p.subtreeFlags&8772)!==0):yl(d,p),_o=S,ai=j}break;case 30:break;default:yl(d,p)}}function lC(d){var h=d.alternate;h!==null&&(d.alternate=null,lC(h)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(h=d.stateNode,h!==null&&Lt(h)),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}var Dn=null,ir=!1;function jo(d,h,p){for(p=p.child;p!==null;)cC(d,h,p),p=p.sibling}function cC(d,h,p){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(tn,p)}catch{}switch(p.tag){case 26:ai||Ga(p,h),jo(d,h,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:ai||Ga(p,h);var y=Dn,S=ir;jl(p.type)&&(Dn=p.stateNode,ir=!1),jo(d,h,p),yf(p.stateNode),Dn=y,ir=S;break;case 5:ai||Ga(p,h);case 6:if(y=Dn,S=ir,Dn=null,jo(d,h,p),Dn=y,ir=S,Dn!==null)if(ir)try{(Dn.nodeType===9?Dn.body:Dn.nodeName==="HTML"?Dn.ownerDocument.body:Dn).removeChild(p.stateNode)}catch(j){dn(p,h,j)}else try{Dn.removeChild(p.stateNode)}catch(j){dn(p,h,j)}break;case 18:Dn!==null&&(ir?(d=Dn,ZC(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,p.stateNode),Ef(d)):ZC(Dn,p.stateNode));break;case 4:y=Dn,S=ir,Dn=p.stateNode.containerInfo,ir=!0,jo(d,h,p),Dn=y,ir=S;break;case 0:case 11:case 14:case 15:ai||xl(2,p,h),ai||xl(4,p,h),jo(d,h,p);break;case 1:ai||(Ga(p,h),y=p.stateNode,typeof y.componentWillUnmount=="function"&&nC(p,h,y)),jo(d,h,p);break;case 21:jo(d,h,p);break;case 22:ai=(y=ai)||p.memoizedState!==null,jo(d,h,p),ai=y;break;default:jo(d,h,p)}}function dC(d,h){if(h.memoizedState===null&&(d=h.alternate,d!==null&&(d=d.memoizedState,d!==null&&(d=d.dehydrated,d!==null))))try{Ef(d)}catch(p){dn(h,h.return,p)}}function Pz(d){switch(d.tag){case 13:case 19:var h=d.stateNode;return h===null&&(h=d.stateNode=new aC),h;case 22:return d=d.stateNode,h=d._retryCache,h===null&&(h=d._retryCache=new aC),h;default:throw Error(s(435,d.tag))}}function d1(d,h){var p=Pz(d);h.forEach(function(y){var S=Gz.bind(null,d,y);p.has(y)||(p.add(y),y.then(S,S))})}function _r(d,h){var p=h.deletions;if(p!==null)for(var y=0;y<p.length;y++){var S=p[y],j=d,R=h,z=R;e:for(;z!==null;){switch(z.tag){case 27:if(jl(z.type)){Dn=z.stateNode,ir=!1;break e}break;case 5:Dn=z.stateNode,ir=!1;break e;case 3:case 4:Dn=z.stateNode.containerInfo,ir=!0;break e}z=z.return}if(Dn===null)throw Error(s(160));cC(j,R,S),Dn=null,ir=!1,j=S.alternate,j!==null&&(j.return=null),S.return=null}if(h.subtreeFlags&13878)for(h=h.child;h!==null;)uC(h,d),h=h.sibling}var Na=null;function uC(d,h){var p=d.alternate,y=d.flags;switch(d.tag){case 0:case 11:case 14:case 15:_r(h,d),jr(d),y&4&&(xl(3,d,d.return),lf(3,d),xl(5,d,d.return));break;case 1:_r(h,d),jr(d),y&512&&(ai||p===null||Ga(p,p.return)),y&64&&_o&&(d=d.updateQueue,d!==null&&(y=d.callbacks,y!==null&&(p=d.shared.hiddenCallbacks,d.shared.hiddenCallbacks=p===null?y:p.concat(y))));break;case 26:var S=Na;if(_r(h,d),jr(d),y&512&&(ai||p===null||Ga(p,p.return)),y&4){var j=p!==null?p.memoizedState:null;if(y=d.memoizedState,p===null)if(y===null)if(d.stateNode===null){e:{y=d.type,p=d.memoizedProps,S=S.ownerDocument||S;t:switch(y){case"title":j=S.getElementsByTagName("title")[0],(!j||j[wn]||j[K]||j.namespaceURI==="http://www.w3.org/2000/svg"||j.hasAttribute("itemprop"))&&(j=S.createElement(y),S.head.insertBefore(j,S.querySelector("head > title"))),rs(j,y,p),j[K]=d,ut(j),y=j;break e;case"link":var R=rT("link","href",S).get(y+(p.href||""));if(R){for(var z=0;z<R.length;z++)if(j=R[z],j.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&j.getAttribute("rel")===(p.rel==null?null:p.rel)&&j.getAttribute("title")===(p.title==null?null:p.title)&&j.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){R.splice(z,1);break t}}j=S.createElement(y),rs(j,y,p),S.head.appendChild(j);break;case"meta":if(R=rT("meta","content",S).get(y+(p.content||""))){for(z=0;z<R.length;z++)if(j=R[z],j.getAttribute("content")===(p.content==null?null:""+p.content)&&j.getAttribute("name")===(p.name==null?null:p.name)&&j.getAttribute("property")===(p.property==null?null:p.property)&&j.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&j.getAttribute("charset")===(p.charSet==null?null:p.charSet)){R.splice(z,1);break t}}j=S.createElement(y),rs(j,y,p),S.head.appendChild(j);break;default:throw Error(s(468,y))}j[K]=d,ut(j),y=j}d.stateNode=y}else aT(S,d.type,d.stateNode);else d.stateNode=sT(S,y,d.memoizedProps);else j!==y?(j===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):j.count--,y===null?aT(S,d.type,d.stateNode):sT(S,y,d.memoizedProps)):y===null&&d.stateNode!==null&&a1(d,d.memoizedProps,p.memoizedProps)}break;case 27:_r(h,d),jr(d),y&512&&(ai||p===null||Ga(p,p.return)),p!==null&&y&4&&a1(d,d.memoizedProps,p.memoizedProps);break;case 5:if(_r(h,d),jr(d),y&512&&(ai||p===null||Ga(p,p.return)),d.flags&32){S=d.stateNode;try{er(S,"")}catch(he){dn(d,d.return,he)}}y&4&&d.stateNode!=null&&(S=d.memoizedProps,a1(d,S,p!==null?p.memoizedProps:S)),y&1024&&(c1=!0);break;case 6:if(_r(h,d),jr(d),y&4){if(d.stateNode===null)throw Error(s(162));y=d.memoizedProps,p=d.stateNode;try{p.nodeValue=y}catch(he){dn(d,d.return,he)}}break;case 3:if(Vg=null,S=Na,Na=Ug(h.containerInfo),_r(h,d),Na=S,jr(d),y&4&&p!==null&&p.memoizedState.isDehydrated)try{Ef(h.containerInfo)}catch(he){dn(d,d.return,he)}c1&&(c1=!1,hC(d));break;case 4:y=Na,Na=Ug(d.stateNode.containerInfo),_r(h,d),jr(d),Na=y;break;case 12:_r(h,d),jr(d);break;case 13:_r(h,d),jr(d),d.child.flags&8192&&d.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(g1=se()),y&4&&(y=d.updateQueue,y!==null&&(d.updateQueue=null,d1(d,y)));break;case 22:S=d.memoizedState!==null;var G=p!==null&&p.memoizedState!==null,oe=_o,ge=ai;if(_o=oe||S,ai=ge||G,_r(h,d),ai=ge,_o=oe,jr(d),y&8192)e:for(h=d.stateNode,h._visibility=S?h._visibility&-2:h._visibility|1,S&&(p===null||G||_o||ai||Lc(d)),p=null,h=d;;){if(h.tag===5||h.tag===26){if(p===null){G=p=h;try{if(j=G.stateNode,S)R=j.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{z=G.stateNode;var ve=G.memoizedProps.style,de=ve!=null&&ve.hasOwnProperty("display")?ve.display:null;z.style.display=de==null||typeof de=="boolean"?"":(""+de).trim()}}catch(he){dn(G,G.return,he)}}}else if(h.tag===6){if(p===null){G=h;try{G.stateNode.nodeValue=S?"":G.memoizedProps}catch(he){dn(G,G.return,he)}}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===d)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===d)break e;for(;h.sibling===null;){if(h.return===null||h.return===d)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}y&4&&(y=d.updateQueue,y!==null&&(p=y.retryQueue,p!==null&&(y.retryQueue=null,d1(d,p))));break;case 19:_r(h,d),jr(d),y&4&&(y=d.updateQueue,y!==null&&(d.updateQueue=null,d1(d,y)));break;case 30:break;case 21:break;default:_r(h,d),jr(d)}}function jr(d){var h=d.flags;if(h&2){try{for(var p,y=d.return;y!==null;){if(sC(y)){p=y;break}y=y.return}if(p==null)throw Error(s(160));switch(p.tag){case 27:var S=p.stateNode,j=o1(d);Ag(d,j,S);break;case 5:var R=p.stateNode;p.flags&32&&(er(R,""),p.flags&=-33);var z=o1(d);Ag(d,z,R);break;case 3:case 4:var G=p.stateNode.containerInfo,oe=o1(d);l1(d,oe,G);break;default:throw Error(s(161))}}catch(ge){dn(d,d.return,ge)}d.flags&=-3}h&4096&&(d.flags&=-4097)}function hC(d){if(d.subtreeFlags&1024)for(d=d.child;d!==null;){var h=d;hC(h),h.tag===5&&h.flags&1024&&h.stateNode.reset(),d=d.sibling}}function yl(d,h){if(h.subtreeFlags&8772)for(h=h.child;h!==null;)oC(d,h.alternate,h),h=h.sibling}function Lc(d){for(d=d.child;d!==null;){var h=d;switch(h.tag){case 0:case 11:case 14:case 15:xl(4,h,h.return),Lc(h);break;case 1:Ga(h,h.return);var p=h.stateNode;typeof p.componentWillUnmount=="function"&&nC(h,h.return,p),Lc(h);break;case 27:yf(h.stateNode);case 26:case 5:Ga(h,h.return),Lc(h);break;case 22:h.memoizedState===null&&Lc(h);break;case 30:Lc(h);break;default:Lc(h)}d=d.sibling}}function bl(d,h,p){for(p=p&&(h.subtreeFlags&8772)!==0,h=h.child;h!==null;){var y=h.alternate,S=d,j=h,R=j.flags;switch(j.tag){case 0:case 11:case 15:bl(S,j,p),lf(4,j);break;case 1:if(bl(S,j,p),y=j,S=y.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(oe){dn(y,y.return,oe)}if(y=j,S=y.updateQueue,S!==null){var z=y.stateNode;try{var G=S.shared.hiddenCallbacks;if(G!==null)for(S.shared.hiddenCallbacks=null,S=0;S<G.length;S++)HE(G[S],z)}catch(oe){dn(y,y.return,oe)}}p&&R&64&&tC(j),cf(j,j.return);break;case 27:rC(j);case 26:case 5:bl(S,j,p),p&&y===null&&R&4&&iC(j),cf(j,j.return);break;case 12:bl(S,j,p);break;case 13:bl(S,j,p),p&&R&4&&dC(S,j);break;case 22:j.memoizedState===null&&bl(S,j,p),cf(j,j.return);break;case 30:break;default:bl(S,j,p)}h=h.sibling}}function u1(d,h){var p=null;d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(p=d.memoizedState.cachePool.pool),d=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(d=h.memoizedState.cachePool.pool),d!==p&&(d!=null&&d.refCount++,p!=null&&qh(p))}function h1(d,h){d=null,h.alternate!==null&&(d=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==d&&(h.refCount++,d!=null&&qh(d))}function qa(d,h,p,y){if(h.subtreeFlags&10256)for(h=h.child;h!==null;)fC(d,h,p,y),h=h.sibling}function fC(d,h,p,y){var S=h.flags;switch(h.tag){case 0:case 11:case 15:qa(d,h,p,y),S&2048&&lf(9,h);break;case 1:qa(d,h,p,y);break;case 3:qa(d,h,p,y),S&2048&&(d=null,h.alternate!==null&&(d=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==d&&(h.refCount++,d!=null&&qh(d)));break;case 12:if(S&2048){qa(d,h,p,y),d=h.stateNode;try{var j=h.memoizedProps,R=j.id,z=j.onPostCommit;typeof z=="function"&&z(R,h.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(G){dn(h,h.return,G)}}else qa(d,h,p,y);break;case 13:qa(d,h,p,y);break;case 23:break;case 22:j=h.stateNode,R=h.alternate,h.memoizedState!==null?j._visibility&2?qa(d,h,p,y):df(d,h):j._visibility&2?qa(d,h,p,y):(j._visibility|=2,iu(d,h,p,y,(h.subtreeFlags&10256)!==0)),S&2048&&u1(R,h);break;case 24:qa(d,h,p,y),S&2048&&h1(h.alternate,h);break;default:qa(d,h,p,y)}}function iu(d,h,p,y,S){for(S=S&&(h.subtreeFlags&10256)!==0,h=h.child;h!==null;){var j=d,R=h,z=p,G=y,oe=R.flags;switch(R.tag){case 0:case 11:case 15:iu(j,R,z,G,S),lf(8,R);break;case 23:break;case 22:var ge=R.stateNode;R.memoizedState!==null?ge._visibility&2?iu(j,R,z,G,S):df(j,R):(ge._visibility|=2,iu(j,R,z,G,S)),S&&oe&2048&&u1(R.alternate,R);break;case 24:iu(j,R,z,G,S),S&&oe&2048&&h1(R.alternate,R);break;default:iu(j,R,z,G,S)}h=h.sibling}}function df(d,h){if(h.subtreeFlags&10256)for(h=h.child;h!==null;){var p=d,y=h,S=y.flags;switch(y.tag){case 22:df(p,y),S&2048&&u1(y.alternate,y);break;case 24:df(p,y),S&2048&&h1(y.alternate,y);break;default:df(p,y)}h=h.sibling}}var uf=8192;function su(d){if(d.subtreeFlags&uf)for(d=d.child;d!==null;)mC(d),d=d.sibling}function mC(d){switch(d.tag){case 26:su(d),d.flags&uf&&d.memoizedState!==null&&N9(Na,d.memoizedState,d.memoizedProps);break;case 5:su(d);break;case 3:case 4:var h=Na;Na=Ug(d.stateNode.containerInfo),su(d),Na=h;break;case 22:d.memoizedState===null&&(h=d.alternate,h!==null&&h.memoizedState!==null?(h=uf,uf=16777216,su(d),uf=h):su(d));break;default:su(d)}}function pC(d){var h=d.alternate;if(h!==null&&(d=h.child,d!==null)){h.child=null;do h=d.sibling,d.sibling=null,d=h;while(d!==null)}}function hf(d){var h=d.deletions;if((d.flags&16)!==0){if(h!==null)for(var p=0;p<h.length;p++){var y=h[p];Vi=y,xC(y,d)}pC(d)}if(d.subtreeFlags&10256)for(d=d.child;d!==null;)gC(d),d=d.sibling}function gC(d){switch(d.tag){case 0:case 11:case 15:hf(d),d.flags&2048&&xl(9,d,d.return);break;case 3:hf(d);break;case 12:hf(d);break;case 22:var h=d.stateNode;d.memoizedState!==null&&h._visibility&2&&(d.return===null||d.return.tag!==13)?(h._visibility&=-3,Mg(d)):hf(d);break;default:hf(d)}}function Mg(d){var h=d.deletions;if((d.flags&16)!==0){if(h!==null)for(var p=0;p<h.length;p++){var y=h[p];Vi=y,xC(y,d)}pC(d)}for(d=d.child;d!==null;){switch(h=d,h.tag){case 0:case 11:case 15:xl(8,h,h.return),Mg(h);break;case 22:p=h.stateNode,p._visibility&2&&(p._visibility&=-3,Mg(h));break;default:Mg(h)}d=d.sibling}}function xC(d,h){for(;Vi!==null;){var p=Vi;switch(p.tag){case 0:case 11:case 15:xl(8,p,h);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var y=p.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:qh(p.memoizedState.cache)}if(y=p.child,y!==null)y.return=p,Vi=y;else e:for(p=d;Vi!==null;){y=Vi;var S=y.sibling,j=y.return;if(lC(y),y===p){Vi=null;break e}if(S!==null){S.return=j,Vi=S;break e}Vi=j}}}var Bz={getCacheForType:function(d){var h=ws(Ci),p=h.data.get(d);return p===void 0&&(p=d(),h.data.set(d,p)),p}},zz=typeof WeakMap=="function"?WeakMap:Map,Zt=0,Nn=null,jt=null,It=0,Jt=0,Er=null,vl=!1,ru=!1,f1=!1,Eo=0,Jn=0,wl=0,Ic=0,m1=0,Zr=0,au=0,ff=null,sr=null,p1=!1,g1=0,Rg=1/0,Og=null,Nl=null,ss=0,Sl=null,ou=null,lu=0,x1=0,y1=null,yC=null,mf=0,b1=null;function kr(){if((Zt&2)!==0&&It!==0)return It&-It;if(B.T!==null){var d=Yd;return d!==0?d:E1()}return Ee()}function bC(){Zr===0&&(Zr=(It&536870912)===0||Ht?rt():536870912);var d=Xr.current;return d!==null&&(d.flags|=32),Zr}function Cr(d,h,p){(d===Nn&&(Jt===2||Jt===9)||d.cancelPendingCommit!==null)&&(cu(d,0),_l(d,It,Zr,!1)),Hn(d,p),((Zt&2)===0||d!==Nn)&&(d===Nn&&((Zt&2)===0&&(Ic|=p),Jn===4&&_l(d,It,Zr,!1)),Ka(d))}function vC(d,h,p){if((Zt&6)!==0)throw Error(s(327));var y=!p&&(h&124)===0&&(h&d.expiredLanes)===0||$i(d,h),S=y?$z(d,h):N1(d,h,!0),j=y;do{if(S===0){ru&&!y&&_l(d,h,0,!1);break}else{if(p=d.current.alternate,j&&!Fz(p)){S=N1(d,h,!1),j=!1;continue}if(S===2){if(j=h,d.errorRecoveryDisabledLanes&j)var R=0;else R=d.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){h=R;e:{var z=d;S=ff;var G=z.current.memoizedState.isDehydrated;if(G&&(cu(z,R).flags|=256),R=N1(z,R,!1),R!==2){if(f1&&!G){z.errorRecoveryDisabledLanes|=j,Ic|=j,S=4;break e}j=sr,sr=S,j!==null&&(sr===null?sr=j:sr.push.apply(sr,j))}S=R}if(j=!1,S!==2)continue}}if(S===1){cu(d,0),_l(d,h,0,!0);break}e:{switch(y=d,j=S,j){case 0:case 1:throw Error(s(345));case 4:if((h&4194048)!==h)break;case 6:_l(y,h,Zr,!vl);break e;case 2:sr=null;break;case 3:case 5:break;default:throw Error(s(329))}if((h&62914560)===h&&(S=g1+300-se(),10<S)){if(_l(y,h,Zr,!vl),zs(y,0,!0)!==0)break e;y.timeoutHandle=YC(wC.bind(null,y,p,sr,Og,p1,h,Zr,Ic,au,vl,j,2,-0,0),S);break e}wC(y,p,sr,Og,p1,h,Zr,Ic,au,vl,j,0,-0,0)}}break}while(!0);Ka(d)}function wC(d,h,p,y,S,j,R,z,G,oe,ge,ve,de,he){if(d.timeoutHandle=-1,ve=h.subtreeFlags,(ve&8192||(ve&16785408)===16785408)&&(wf={stylesheets:null,count:0,unsuspend:w9},mC(h),ve=S9(),ve!==null)){d.cancelPendingCommit=ve(CC.bind(null,d,h,j,p,y,S,R,z,G,ge,1,de,he)),_l(d,j,R,!oe);return}CC(d,h,j,p,y,S,R,z,G)}function Fz(d){for(var h=d;;){var p=h.tag;if((p===0||p===11||p===15)&&h.flags&16384&&(p=h.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var y=0;y<p.length;y++){var S=p[y],j=S.getSnapshot;S=S.value;try{if(!Nr(j(),S))return!1}catch{return!1}}if(p=h.child,h.subtreeFlags&16384&&p!==null)p.return=h,h=p;else{if(h===d)break;for(;h.sibling===null;){if(h.return===null||h.return===d)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function _l(d,h,p,y){h&=~m1,h&=~Ic,d.suspendedLanes|=h,d.pingedLanes&=~h,y&&(d.warmLanes|=h),y=d.expirationTimes;for(var S=h;0<S;){var j=31-Vt(S),R=1<<j;y[j]=-1,S&=~R}p!==0&&D(d,p,h)}function Dg(){return(Zt&6)===0?(pf(0),!1):!0}function v1(){if(jt!==null){if(Jt===0)var d=jt.return;else d=jt,yo=Ac=null,Pv(d),tu=null,rf=0,d=jt;for(;d!==null;)eC(d.alternate,d),d=d.return;jt=null}}function cu(d,h){var p=d.timeoutHandle;p!==-1&&(d.timeoutHandle=-1,s9(p)),p=d.cancelPendingCommit,p!==null&&(d.cancelPendingCommit=null,p()),v1(),Nn=d,jt=p=po(d.current,null),It=h,Jt=0,Er=null,vl=!1,ru=$i(d,h),f1=!1,au=Zr=m1=Ic=wl=Jn=0,sr=ff=null,p1=!1,(h&8)!==0&&(h|=h&32);var y=d.entangledLanes;if(y!==0)for(d=d.entanglements,y&=h;0<y;){var S=31-Vt(y),j=1<<S;h|=d[S],y&=~j}return Eo=h,ng(),p}function NC(d,h){gt=null,B.H=wg,h===Yh||h===ug?(h=zE(),Jt=3):h===IE?(h=zE(),Jt=4):Jt=h===Fk?8:h!==null&&typeof h=="object"&&typeof h.then=="function"?6:1,Er=h,jt===null&&(Jn=1,Eg(d,Gr(h,d.current)))}function SC(){var d=B.H;return B.H=wg,d===null?wg:d}function _C(){var d=B.A;return B.A=Bz,d}function w1(){Jn=4,vl||(It&4194048)!==It&&Xr.current!==null||(ru=!0),(wl&134217727)===0&&(Ic&134217727)===0||Nn===null||_l(Nn,It,Zr,!1)}function N1(d,h,p){var y=Zt;Zt|=2;var S=SC(),j=_C();(Nn!==d||It!==h)&&(Og=null,cu(d,h)),h=!1;var R=Jn;e:do try{if(Jt!==0&&jt!==null){var z=jt,G=Er;switch(Jt){case 8:v1(),R=6;break e;case 3:case 2:case 9:case 6:Xr.current===null&&(h=!0);var oe=Jt;if(Jt=0,Er=null,du(d,z,G,oe),p&&ru){R=0;break e}break;default:oe=Jt,Jt=0,Er=null,du(d,z,G,oe)}}Hz(),R=Jn;break}catch(ge){NC(d,ge)}while(!0);return h&&d.shellSuspendCounter++,yo=Ac=null,Zt=y,B.H=S,B.A=j,jt===null&&(Nn=null,It=0,ng()),R}function Hz(){for(;jt!==null;)jC(jt)}function $z(d,h){var p=Zt;Zt|=2;var y=SC(),S=_C();Nn!==d||It!==h?(Og=null,Rg=se()+500,cu(d,h)):ru=$i(d,h);e:do try{if(Jt!==0&&jt!==null){h=jt;var j=Er;t:switch(Jt){case 1:Jt=0,Er=null,du(d,h,j,1);break;case 2:case 9:if(PE(j)){Jt=0,Er=null,EC(h);break}h=function(){Jt!==2&&Jt!==9||Nn!==d||(Jt=7),Ka(d)},j.then(h,h);break e;case 3:Jt=7;break e;case 4:Jt=5;break e;case 7:PE(j)?(Jt=0,Er=null,EC(h)):(Jt=0,Er=null,du(d,h,j,7));break;case 5:var R=null;switch(jt.tag){case 26:R=jt.memoizedState;case 5:case 27:var z=jt;if(!R||oT(R)){Jt=0,Er=null;var G=z.sibling;if(G!==null)jt=G;else{var oe=z.return;oe!==null?(jt=oe,Lg(oe)):jt=null}break t}}Jt=0,Er=null,du(d,h,j,5);break;case 6:Jt=0,Er=null,du(d,h,j,6);break;case 8:v1(),Jn=6;break e;default:throw Error(s(462))}}Uz();break}catch(ge){NC(d,ge)}while(!0);return yo=Ac=null,B.H=y,B.A=S,Zt=p,jt!==null?0:(Nn=null,It=0,ng(),Jn)}function Uz(){for(;jt!==null&&!kn();)jC(jt)}function jC(d){var h=Jk(d.alternate,d,Eo);d.memoizedProps=d.pendingProps,h===null?Lg(d):jt=h}function EC(d){var h=d,p=h.alternate;switch(h.tag){case 15:case 0:h=Gk(p,h,h.pendingProps,h.type,void 0,It);break;case 11:h=Gk(p,h,h.pendingProps,h.type.render,h.ref,It);break;case 5:Pv(h);default:eC(p,h),h=jt=kE(h,Eo),h=Jk(p,h,Eo)}d.memoizedProps=d.pendingProps,h===null?Lg(d):jt=h}function du(d,h,p,y){yo=Ac=null,Pv(h),tu=null,rf=0;var S=h.return;try{if(Rz(d,S,h,p,It)){Jn=1,Eg(d,Gr(p,d.current)),jt=null;return}}catch(j){if(S!==null)throw jt=S,j;Jn=1,Eg(d,Gr(p,d.current)),jt=null;return}h.flags&32768?(Ht||y===1?d=!0:ru||(It&536870912)!==0?d=!1:(vl=d=!0,(y===2||y===9||y===3||y===6)&&(y=Xr.current,y!==null&&y.tag===13&&(y.flags|=16384))),kC(h,d)):Lg(h)}function Lg(d){var h=d;do{if((h.flags&32768)!==0){kC(h,vl);return}d=h.return;var p=Dz(h.alternate,h,Eo);if(p!==null){jt=p;return}if(h=h.sibling,h!==null){jt=h;return}jt=h=d}while(h!==null);Jn===0&&(Jn=5)}function kC(d,h){do{var p=Lz(d.alternate,d);if(p!==null){p.flags&=32767,jt=p;return}if(p=d.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!h&&(d=d.sibling,d!==null)){jt=d;return}jt=d=p}while(d!==null);Jn=6,jt=null}function CC(d,h,p,y,S,j,R,z,G){d.cancelPendingCommit=null;do Ig();while(ss!==0);if((Zt&6)!==0)throw Error(s(327));if(h!==null){if(h===d.current)throw Error(s(177));if(j=h.lanes|h.childLanes,j|=hv,cn(d,p,j,R,z,G),d===Nn&&(jt=Nn=null,It=0),ou=h,Sl=d,lu=p,x1=j,y1=S,yC=y,(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?(d.callbackNode=null,d.callbackPriority=0,qz(pt,function(){return OC(),null})):(d.callbackNode=null,d.callbackPriority=0),y=(h.flags&13878)!==0,(h.subtreeFlags&13878)!==0||y){y=B.T,B.T=null,S=$.p,$.p=2,R=Zt,Zt|=4;try{Iz(d,h,p)}finally{Zt=R,$.p=S,B.T=y}}ss=1,TC(),AC(),MC()}}function TC(){if(ss===1){ss=0;var d=Sl,h=ou,p=(h.flags&13878)!==0;if((h.subtreeFlags&13878)!==0||p){p=B.T,B.T=null;var y=$.p;$.p=2;var S=Zt;Zt|=4;try{uC(h,d);var j=D1,R=xE(d.containerInfo),z=j.focusedElem,G=j.selectionRange;if(R!==z&&z&&z.ownerDocument&&gE(z.ownerDocument.documentElement,z)){if(G!==null&&ov(z)){var oe=G.start,ge=G.end;if(ge===void 0&&(ge=oe),"selectionStart"in z)z.selectionStart=oe,z.selectionEnd=Math.min(ge,z.value.length);else{var ve=z.ownerDocument||document,de=ve&&ve.defaultView||window;if(de.getSelection){var he=de.getSelection(),st=z.textContent.length,Je=Math.min(G.start,st),rn=G.end===void 0?Je:Math.min(G.end,st);!he.extend&&Je>rn&&(R=rn,rn=Je,Je=R);var te=pE(z,Je),Q=pE(z,rn);if(te&&Q&&(he.rangeCount!==1||he.anchorNode!==te.node||he.anchorOffset!==te.offset||he.focusNode!==Q.node||he.focusOffset!==Q.offset)){var ie=ve.createRange();ie.setStart(te.node,te.offset),he.removeAllRanges(),Je>rn?(he.addRange(ie),he.extend(Q.node,Q.offset)):(ie.setEnd(Q.node,Q.offset),he.addRange(ie))}}}}for(ve=[],he=z;he=he.parentNode;)he.nodeType===1&&ve.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<ve.length;z++){var ye=ve[z];ye.element.scrollLeft=ye.left,ye.element.scrollTop=ye.top}}Kg=!!O1,D1=O1=null}finally{Zt=S,$.p=y,B.T=p}}d.current=h,ss=2}}function AC(){if(ss===2){ss=0;var d=Sl,h=ou,p=(h.flags&8772)!==0;if((h.subtreeFlags&8772)!==0||p){p=B.T,B.T=null;var y=$.p;$.p=2;var S=Zt;Zt|=4;try{oC(d,h.alternate,h)}finally{Zt=S,$.p=y,B.T=p}}ss=3}}function MC(){if(ss===4||ss===3){ss=0,et();var d=Sl,h=ou,p=lu,y=yC;(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?ss=5:(ss=0,ou=Sl=null,RC(d,d.pendingLanes));var S=d.pendingLanes;if(S===0&&(Nl=null),Ne(p),h=h.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(tn,h,void 0,(h.current.flags&128)===128)}catch{}if(y!==null){h=B.T,S=$.p,$.p=2,B.T=null;try{for(var j=d.onRecoverableError,R=0;R<y.length;R++){var z=y[R];j(z.value,{componentStack:z.stack})}}finally{B.T=h,$.p=S}}(lu&3)!==0&&Ig(),Ka(d),S=d.pendingLanes,(p&4194090)!==0&&(S&42)!==0?d===b1?mf++:(mf=0,b1=d):mf=0,pf(0)}}function RC(d,h){(d.pooledCacheLanes&=h)===0&&(h=d.pooledCache,h!=null&&(d.pooledCache=null,qh(h)))}function Ig(d){return TC(),AC(),MC(),OC()}function OC(){if(ss!==5)return!1;var d=Sl,h=x1;x1=0;var p=Ne(lu),y=B.T,S=$.p;try{$.p=32>p?32:p,B.T=null,p=y1,y1=null;var j=Sl,R=lu;if(ss=0,ou=Sl=null,lu=0,(Zt&6)!==0)throw Error(s(331));var z=Zt;if(Zt|=4,gC(j.current),fC(j,j.current,R,p),Zt=z,pf(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(tn,j)}catch{}return!0}finally{$.p=S,B.T=y,RC(d,h)}}function DC(d,h,p){h=Gr(p,h),h=Zv(d.stateNode,h,2),d=fl(d,h,2),d!==null&&(Hn(d,2),Ka(d))}function dn(d,h,p){if(d.tag===3)DC(d,d,p);else for(;h!==null;){if(h.tag===3){DC(h,d,p);break}else if(h.tag===1){var y=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Nl===null||!Nl.has(y))){d=Gr(p,d),p=Bk(2),y=fl(h,p,2),y!==null&&(zk(p,y,h,d),Hn(y,2),Ka(y));break}}h=h.return}}function S1(d,h,p){var y=d.pingCache;if(y===null){y=d.pingCache=new zz;var S=new Set;y.set(h,S)}else S=y.get(h),S===void 0&&(S=new Set,y.set(h,S));S.has(p)||(f1=!0,S.add(p),d=Wz.bind(null,d,h,p),h.then(d,d))}function Wz(d,h,p){var y=d.pingCache;y!==null&&y.delete(h),d.pingedLanes|=d.suspendedLanes&p,d.warmLanes&=~p,Nn===d&&(It&p)===p&&(Jn===4||Jn===3&&(It&62914560)===It&&300>se()-g1?(Zt&2)===0&&cu(d,0):m1|=p,au===It&&(au=0)),Ka(d)}function LC(d,h){h===0&&(h=ys()),d=Vd(d,h),d!==null&&(Hn(d,h),Ka(d))}function Vz(d){var h=d.memoizedState,p=0;h!==null&&(p=h.retryLane),LC(d,p)}function Gz(d,h){var p=0;switch(d.tag){case 13:var y=d.stateNode,S=d.memoizedState;S!==null&&(p=S.retryLane);break;case 19:y=d.stateNode;break;case 22:y=d.stateNode._retryCache;break;default:throw Error(s(314))}y!==null&&y.delete(h),LC(d,p)}function qz(d,h){return Ke(d,h)}var Pg=null,uu=null,_1=!1,Bg=!1,j1=!1,Pc=0;function Ka(d){d!==uu&&d.next===null&&(uu===null?Pg=uu=d:uu=uu.next=d),Bg=!0,_1||(_1=!0,Yz())}function pf(d,h){if(!j1&&Bg){j1=!0;do for(var p=!1,y=Pg;y!==null;){if(d!==0){var S=y.pendingLanes;if(S===0)var j=0;else{var R=y.suspendedLanes,z=y.pingedLanes;j=(1<<31-Vt(42|d)+1)-1,j&=S&~(R&~z),j=j&201326741?j&201326741|1:j?j|2:0}j!==0&&(p=!0,zC(y,j))}else j=It,j=zs(y,y===Nn?j:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(j&3)===0||$i(y,j)||(p=!0,zC(y,j));y=y.next}while(p);j1=!1}}function Kz(){IC()}function IC(){Bg=_1=!1;var d=0;Pc!==0&&(i9()&&(d=Pc),Pc=0);for(var h=se(),p=null,y=Pg;y!==null;){var S=y.next,j=PC(y,h);j===0?(y.next=null,p===null?Pg=S:p.next=S,S===null&&(uu=p)):(p=y,(d!==0||(j&3)!==0)&&(Bg=!0)),y=S}pf(d)}function PC(d,h){for(var p=d.suspendedLanes,y=d.pingedLanes,S=d.expirationTimes,j=d.pendingLanes&-62914561;0<j;){var R=31-Vt(j),z=1<<R,G=S[R];G===-1?((z&p)===0||(z&y)!==0)&&(S[R]=es(z,h)):G<=h&&(d.expiredLanes|=z),j&=~z}if(h=Nn,p=It,p=zs(d,d===h?p:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),y=d.callbackNode,p===0||d===h&&(Jt===2||Jt===9)||d.cancelPendingCommit!==null)return y!==null&&y!==null&&ct(y),d.callbackNode=null,d.callbackPriority=0;if((p&3)===0||$i(d,p)){if(h=p&-p,h===d.callbackPriority)return h;switch(y!==null&&ct(y),Ne(p)){case 2:case 8:p=xn;break;case 32:p=pt;break;case 268435456:p=ji;break;default:p=pt}return y=BC.bind(null,d),p=Ke(p,y),d.callbackPriority=h,d.callbackNode=p,h}return y!==null&&y!==null&&ct(y),d.callbackPriority=2,d.callbackNode=null,2}function BC(d,h){if(ss!==0&&ss!==5)return d.callbackNode=null,d.callbackPriority=0,null;var p=d.callbackNode;if(Ig()&&d.callbackNode!==p)return null;var y=It;return y=zs(d,d===Nn?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),y===0?null:(vC(d,y,h),PC(d,se()),d.callbackNode!=null&&d.callbackNode===p?BC.bind(null,d):null)}function zC(d,h){if(Ig())return null;vC(d,h,!0)}function Yz(){r9(function(){(Zt&6)!==0?Ke(Mt,Kz):IC()})}function E1(){return Pc===0&&(Pc=rt()),Pc}function FC(d){return d==null||typeof d=="symbol"||typeof d=="boolean"?null:typeof d=="function"?d:Vr(""+d)}function HC(d,h){var p=h.ownerDocument.createElement("input");return p.name=h.name,p.value=h.value,d.id&&p.setAttribute("form",d.id),h.parentNode.insertBefore(p,h),d=new FormData(d),p.parentNode.removeChild(p),d}function Xz(d,h,p,y,S){if(h==="submit"&&p&&p.stateNode===S){var j=FC((S[ce]||null).action),R=y.submitter;R&&(h=(h=R[ce]||null)?FC(h.formAction):R.getAttribute("formAction"),h!==null&&(j=h,R=null));var z=new Qp("action","action",null,y,S);d.push({event:z,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(Pc!==0){var G=R?HC(S,R):new FormData(S);Gv(p,{pending:!0,data:G,method:S.method,action:j},null,G)}}else typeof j=="function"&&(z.preventDefault(),G=R?HC(S,R):new FormData(S),Gv(p,{pending:!0,data:G,method:S.method,action:j},j,G))},currentTarget:S}]})}}for(var k1=0;k1<uv.length;k1++){var C1=uv[k1],Zz=C1.toLowerCase(),Jz=C1[0].toUpperCase()+C1.slice(1);wa(Zz,"on"+Jz)}wa(vE,"onAnimationEnd"),wa(wE,"onAnimationIteration"),wa(NE,"onAnimationStart"),wa("dblclick","onDoubleClick"),wa("focusin","onFocus"),wa("focusout","onBlur"),wa(pz,"onTransitionRun"),wa(gz,"onTransitionStart"),wa(xz,"onTransitionCancel"),wa(SE,"onTransitionEnd"),ht("onMouseEnter",["mouseout","mouseover"]),ht("onMouseLeave",["mouseout","mouseover"]),ht("onPointerEnter",["pointerout","pointerover"]),ht("onPointerLeave",["pointerout","pointerover"]),Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gf="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(" "),Qz=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gf));function $C(d,h){h=(h&4)!==0;for(var p=0;p<d.length;p++){var y=d[p],S=y.event;y=y.listeners;e:{var j=void 0;if(h)for(var R=y.length-1;0<=R;R--){var z=y[R],G=z.instance,oe=z.currentTarget;if(z=z.listener,G!==j&&S.isPropagationStopped())break e;j=z,S.currentTarget=oe;try{j(S)}catch(ge){jg(ge)}S.currentTarget=null,j=G}else for(R=0;R<y.length;R++){if(z=y[R],G=z.instance,oe=z.currentTarget,z=z.listener,G!==j&&S.isPropagationStopped())break e;j=z,S.currentTarget=oe;try{j(S)}catch(ge){jg(ge)}S.currentTarget=null,j=G}}}}function Et(d,h){var p=h[ke];p===void 0&&(p=h[ke]=new Set);var y=d+"__bubble";p.has(y)||(UC(h,d,2,!1),p.add(y))}function T1(d,h,p){var y=0;h&&(y|=4),UC(p,d,y,h)}var zg="_reactListening"+Math.random().toString(36).slice(2);function A1(d){if(!d[zg]){d[zg]=!0,ts.forEach(function(p){p!=="selectionchange"&&(Qz.has(p)||T1(p,!1,d),T1(p,!0,d))});var h=d.nodeType===9?d:d.ownerDocument;h===null||h[zg]||(h[zg]=!0,T1("selectionchange",!1,h))}}function UC(d,h,p,y){switch(fT(h)){case 2:var S=E9;break;case 8:S=k9;break;default:S=W1}p=S.bind(null,h,p,d),S=void 0,!Jb||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(S=!0),y?S!==void 0?d.addEventListener(h,p,{capture:!0,passive:S}):d.addEventListener(h,p,!0):S!==void 0?d.addEventListener(h,p,{passive:S}):d.addEventListener(h,p,!1)}function M1(d,h,p,y,S){var j=y;if((h&1)===0&&(h&2)===0&&y!==null)e:for(;;){if(y===null)return;var R=y.tag;if(R===3||R===4){var z=y.stateNode.containerInfo;if(z===S)break;if(R===4)for(R=y.return;R!==null;){var G=R.tag;if((G===3||G===4)&&R.stateNode.containerInfo===S)return;R=R.return}for(;z!==null;){if(R=Rt(z),R===null)return;if(G=R.tag,G===5||G===6||G===26||G===27){y=j=R;continue e}z=z.parentNode}}y=y.return}Xn(function(){var oe=j,ge=ue(p),ve=[];e:{var de=_E.get(d);if(de!==void 0){var he=Qp,st=d;switch(d){case"keypress":if(Zp(p)===0)break e;case"keydown":case"keyup":he=qB;break;case"focusin":st="focus",he=nv;break;case"focusout":st="blur",he=nv;break;case"beforeblur":case"afterblur":he=nv;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=Qj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=LB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=XB;break;case vE:case wE:case NE:he=BB;break;case SE:he=JB;break;case"scroll":case"scrollend":he=OB;break;case"wheel":he=ez;break;case"copy":case"cut":case"paste":he=FB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=tE;break;case"toggle":case"beforetoggle":he=nz}var Je=(h&4)!==0,rn=!Je&&(d==="scroll"||d==="scrollend"),te=Je?de!==null?de+"Capture":null:de;Je=[];for(var Q=oe,ie;Q!==null;){var ye=Q;if(ie=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||ie===null||te===null||(ye=mo(Q,te),ye!=null&&Je.push(xf(Q,ye,ie))),rn)break;Q=Q.return}0<Je.length&&(de=new he(de,st,null,p,ge),ve.push({event:de,listeners:Je}))}}if((h&7)===0){e:{if(de=d==="mouseover"||d==="pointerover",he=d==="mouseout"||d==="pointerout",de&&p!==va&&(st=p.relatedTarget||p.fromElement)&&(Rt(st)||st[Se]))break e;if((he||de)&&(de=ge.window===ge?ge:(de=ge.ownerDocument)?de.defaultView||de.parentWindow:window,he?(st=p.relatedTarget||p.toElement,he=oe,st=st?Rt(st):null,st!==null&&(rn=a(st),Je=st.tag,st!==rn||Je!==5&&Je!==27&&Je!==6)&&(st=null)):(he=null,st=oe),he!==st)){if(Je=Qj,ye="onMouseLeave",te="onMouseEnter",Q="mouse",(d==="pointerout"||d==="pointerover")&&(Je=tE,ye="onPointerLeave",te="onPointerEnter",Q="pointer"),rn=he==null?de:si(he),ie=st==null?de:si(st),de=new Je(ye,Q+"leave",he,p,ge),de.target=rn,de.relatedTarget=ie,ye=null,Rt(ge)===oe&&(Je=new Je(te,Q+"enter",st,p,ge),Je.target=ie,Je.relatedTarget=rn,ye=Je),rn=ye,he&&st)t:{for(Je=he,te=st,Q=0,ie=Je;ie;ie=hu(ie))Q++;for(ie=0,ye=te;ye;ye=hu(ye))ie++;for(;0<Q-ie;)Je=hu(Je),Q--;for(;0<ie-Q;)te=hu(te),ie--;for(;Q--;){if(Je===te||te!==null&&Je===te.alternate)break t;Je=hu(Je),te=hu(te)}Je=null}else Je=null;he!==null&&WC(ve,de,he,Je,!1),st!==null&&rn!==null&&WC(ve,rn,st,Je,!0)}}e:{if(de=oe?si(oe):window,he=de.nodeName&&de.nodeName.toLowerCase(),he==="select"||he==="input"&&de.type==="file")var ze=cE;else if(oE(de))if(dE)ze=hz;else{ze=dz;var wt=cz}else he=de.nodeName,!he||he.toLowerCase()!=="input"||de.type!=="checkbox"&&de.type!=="radio"?oe&&Ge(oe.elementType)&&(ze=cE):ze=uz;if(ze&&(ze=ze(d,oe))){lE(ve,ze,p,ge);break e}wt&&wt(d,de,oe),d==="focusout"&&oe&&de.type==="number"&&oe.memoizedProps.value!=null&&vr(de,"number",de.value)}switch(wt=oe?si(oe):window,d){case"focusin":(oE(wt)||wt.contentEditable==="true")&&($d=wt,lv=oe,$h=null);break;case"focusout":$h=lv=$d=null;break;case"mousedown":cv=!0;break;case"contextmenu":case"mouseup":case"dragend":cv=!1,yE(ve,p,ge);break;case"selectionchange":if(mz)break;case"keydown":case"keyup":yE(ve,p,ge)}var qe;if(sv)e:{switch(d){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else Hd?rE(d,p)&&(tt="onCompositionEnd"):d==="keydown"&&p.keyCode===229&&(tt="onCompositionStart");tt&&(nE&&p.locale!=="ko"&&(Hd||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&Hd&&(qe=Zj()):(cl=ge,Qb="value"in cl?cl.value:cl.textContent,Hd=!0)),wt=Fg(oe,tt),0<wt.length&&(tt=new eE(tt,d,null,p,ge),ve.push({event:tt,listeners:wt}),qe?tt.data=qe:(qe=aE(p),qe!==null&&(tt.data=qe)))),(qe=sz?rz(d,p):az(
vendor: 1,050 bytes, lines 48-49
48d,p))&&(tt=Fg(oe,"onBeforeInput"),0<tt.length&&(wt=new eE("onBeforeInput","beforeinput",null,p,ge),ve.push({event:wt,listeners:tt}),wt.data=qe)),Xz(ve,d,oe,p,ge)}$C(ve,h)})}function xf(d,h,p){return{instance:d,listener:h,currentTarget:p}}function Fg(d,h){for(var p=h+"Capture",y=[];d!==null;){var S=d,j=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||j===null||(S=mo(d,p),S!=null&&y.unshift(xf(d,S,j)),S=mo(d,h),S!=null&&y.push(xf(d,S,j))),d.tag===3)return y;d=d.return}return[]}function hu(d){if(d===null)return null;do d=d.return;while(d&&d.tag!==5&&d.tag!==27);return d||null}function WC(d,h,p,y,S){for(var j=h._reactName,R=[];p!==null&&p!==y;){var z=p,G=z.alternate,oe=z.stateNode;if(z=z.tag,G!==null&&G===y)break;z!==5&&z!==26&&z!==27||oe===null||(G=oe,S?(oe=mo(p,j),oe!=null&&R.unshift(xf(p,oe,G))):S||(oe=mo(p,j),oe!=null&&R.push(xf(p,oe,G)))),p=p.return}R.length!==0&&d.push({event:h,listeners:R})}var e9=/\r\n?/g,t9=/\u0000|\uFFFD/g;function VC(d){return(typeof d=="string"?d:""+d).replace(e9,` 49`).replace(t9,"")}function GC(d,h){return h=VC(h
vendor: 34,520 bytes, line 49
49),VC(d)===h}function Hg(){}function sn(d,h,p,y,S,j){switch(p){case"children":typeof y=="string"?h==="body"||h==="textarea"&&y===""||er(d,y):(typeof y=="number"||typeof y=="bigint")&&h!=="body"&&er(d,""+y);break;case"className":Ui(d,"class",y);break;case"tabIndex":Ui(d,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":Ui(d,p,y);break;case"style":vt(d,y,j);break;case"data":if(h!=="object"){Ui(d,"data",y);break}case"src":case"href":if(y===""&&(h!=="a"||p!=="href")){d.removeAttribute(p);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){d.removeAttribute(p);break}y=Vr(""+y),d.setAttribute(p,y);break;case"action":case"formAction":if(typeof y=="function"){d.setAttribute(p,"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 j=="function"&&(p==="formAction"?(h!=="input"&&sn(d,h,"name",S.name,S,null),sn(d,h,"formEncType",S.formEncType,S,null),sn(d,h,"formMethod",S.formMethod,S,null),sn(d,h,"formTarget",S.formTarget,S,null)):(sn(d,h,"encType",S.encType,S,null),sn(d,h,"method",S.method,S,null),sn(d,h,"target",S.target,S,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){d.removeAttribute(p);break}y=Vr(""+y),d.setAttribute(p,y);break;case"onClick":y!=null&&(d.onclick=Hg);break;case"onScroll":y!=null&&Et("scroll",d);break;case"onScrollEnd":y!=null&&Et("scrollend",d);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(s(61));if(p=y.__html,p!=null){if(S.children!=null)throw Error(s(60));d.innerHTML=p}}break;case"multiple":d.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":d.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){d.removeAttribute("xlink:href");break}p=Vr(""+y),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":y!=null&&typeof y!="function"&&typeof y!="symbol"?d.setAttribute(p,""+y):d.removeAttribute(p);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":y&&typeof y!="function"&&typeof y!="symbol"?d.setAttribute(p,""):d.removeAttribute(p);break;case"capture":case"download":y===!0?d.setAttribute(p,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?d.setAttribute(p,y):d.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?d.setAttribute(p,y):d.removeAttribute(p);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?d.removeAttribute(p):d.setAttribute(p,y);break;case"popover":Et("beforetoggle",d),Et("toggle",d),ki(d,"popover",y);break;case"xlinkActuate":bs(d,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":bs(d,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":bs(d,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":bs(d,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":bs(d,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":bs(d,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":bs(d,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":bs(d,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":bs(d,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":ki(d,"is",y);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=ba.get(p)||p,ki(d,p,y))}}function R1(d,h,p,y,S,j){switch(p){case"style":vt(d,y,j);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(s(61));if(p=y.__html,p!=null){if(S.children!=null)throw Error(s(60));d.innerHTML=p}}break;case"children":typeof y=="string"?er(d,y):(typeof y=="number"||typeof y=="bigint")&&er(d,""+y);break;case"onScroll":y!=null&&Et("scroll",d);break;case"onScrollEnd":y!=null&&Et("scrollend",d);break;case"onClick":y!=null&&(d.onclick=Hg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rn.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(S=p.endsWith("Capture"),h=p.slice(2,S?p.length-7:void 0),j=d[ce]||null,j=j!=null?j[p]:null,typeof j=="function"&&d.removeEventListener(h,j,S),typeof y=="function")){typeof j!="function"&&j!==null&&(p in d?d[p]=null:d.hasAttribute(p)&&d.removeAttribute(p)),d.addEventListener(h,y,S);break e}p in d?d[p]=y:y===!0?d.setAttribute(p,""):ki(d,p,y)}}}function rs(d,h,p){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",d),Et("load",d);var y=!1,S=!1,j;for(j in p)if(p.hasOwnProperty(j)){var R=p[j];if(R!=null)switch(j){case"src":y=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,h));default:sn(d,h,j,R,p,null)}}S&&sn(d,h,"srcSet",p.srcSet,p,null),y&&sn(d,h,"src",p.src,p,null);return;case"input":Et("invalid",d);var z=j=R=S=null,G=null,oe=null;for(y in p)if(p.hasOwnProperty(y)){var ge=p[y];if(ge!=null)switch(y){case"name":S=ge;break;case"type":R=ge;break;case"checked":G=ge;break;case"defaultChecked":oe=ge;break;case"value":j=ge;break;case"defaultValue":z=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(s(137,h));break;default:sn(d,h,y,ge,p,null)}}zd(d,j,z,G,oe,R,S,!1),$a(d);return;case"select":Et("invalid",d),y=R=j=null;for(S in p)if(p.hasOwnProperty(S)&&(z=p[S],z!=null))switch(S){case"value":j=z;break;case"defaultValue":R=z;break;case"multiple":y=z;default:sn(d,h,S,z,p,null)}h=j,p=R,d.multiple=!!y,h!=null?Wr(d,!!y,h,!1):p!=null&&Wr(d,!!y,p,!0);return;case"textarea":Et("invalid",d),j=S=y=null;for(R in p)if(p.hasOwnProperty(R)&&(z=p[R],z!=null))switch(R){case"value":y=z;break;case"defaultValue":S=z;break;case"children":j=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(91));break;default:sn(d,h,R,z,p,null)}Fd(d,y,S,j),$a(d);return;case"option":for(G in p)if(p.hasOwnProperty(G)&&(y=p[G],y!=null))switch(G){case"selected":d.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:sn(d,h,G,y,p,null)}return;case"dialog":Et("beforetoggle",d),Et("toggle",d),Et("cancel",d),Et("close",d);break;case"iframe":case"object":Et("load",d);break;case"video":case"audio":for(y=0;y<gf.length;y++)Et(gf[y],d);break;case"image":Et("error",d),Et("load",d);break;case"details":Et("toggle",d);break;case"embed":case"source":case"link":Et("error",d),Et("load",d);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(oe in p)if(p.hasOwnProperty(oe)&&(y=p[oe],y!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,h));default:sn(d,h,oe,y,p,null)}return;default:if(Ge(h)){for(ge in p)p.hasOwnProperty(ge)&&(y=p[ge],y!==void 0&&R1(d,h,ge,y,p,void 0));return}}for(z in p)p.hasOwnProperty(z)&&(y=p[z],y!=null&&sn(d,h,z,y,p,null))}function n9(d,h,p,y){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,j=null,R=null,z=null,G=null,oe=null,ge=null;for(he in p){var ve=p[he];if(p.hasOwnProperty(he)&&ve!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":G=ve;default:y.hasOwnProperty(he)||sn(d,h,he,null,y,ve)}}for(var de in y){var he=y[de];if(ve=p[de],y.hasOwnProperty(de)&&(he!=null||ve!=null))switch(de){case"type":j=he;break;case"name":S=he;break;case"checked":oe=he;break;case"defaultChecked":ge=he;break;case"value":R=he;break;case"defaultValue":z=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(s(137,h));break;default:he!==ve&&sn(d,h,de,he,y,ve)}}wc(d,R,z,G,oe,ge,j,S);return;case"select":he=R=z=de=null;for(j in p)if(G=p[j],p.hasOwnProperty(j)&&G!=null)switch(j){case"value":break;case"multiple":he=G;default:y.hasOwnProperty(j)||sn(d,h,j,null,y,G)}for(S in y)if(j=y[S],G=p[S],y.hasOwnProperty(S)&&(j!=null||G!=null))switch(S){case"value":de=j;break;case"defaultValue":z=j;break;case"multiple":R=j;default:j!==G&&sn(d,h,S,j,y,G)}h=z,p=R,y=he,de!=null?Wr(d,!!p,de,!1):!!y!=!!p&&(h!=null?Wr(d,!!p,h,!0):Wr(d,!!p,p?[]:"",!1));return;case"textarea":he=de=null;for(z in p)if(S=p[z],p.hasOwnProperty(z)&&S!=null&&!y.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:sn(d,h,z,null,y,S)}for(R in y)if(S=y[R],j=p[R],y.hasOwnProperty(R)&&(S!=null||j!=null))switch(R){case"value":de=S;break;case"defaultValue":he=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:S!==j&&sn(d,h,R,S,y,j)}On(d,de,he);return;case"option":for(var st in p)if(de=p[st],p.hasOwnProperty(st)&&de!=null&&!y.hasOwnProperty(st))switch(st){case"selected":d.selected=!1;break;default:sn(d,h,st,null,y,de)}for(G in y)if(de=y[G],he=p[G],y.hasOwnProperty(G)&&de!==he&&(de!=null||he!=null))switch(G){case"selected":d.selected=de&&typeof de!="function"&&typeof de!="symbol";break;default:sn(d,h,G,de,y,he)}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 Je in p)de=p[Je],p.hasOwnProperty(Je)&&de!=null&&!y.hasOwnProperty(Je)&&sn(d,h,Je,null,y,de);for(oe in y)if(de=y[oe],he=p[oe],y.hasOwnProperty(oe)&&de!==he&&(de!=null||he!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(s(137,h));break;default:sn(d,h,oe,de,y,he)}return;default:if(Ge(h)){for(var rn in p)de=p[rn],p.hasOwnProperty(rn)&&de!==void 0&&!y.hasOwnProperty(rn)&&R1(d,h,rn,void 0,y,de);for(ge in y)de=y[ge],he=p[ge],!y.hasOwnProperty(ge)||de===he||de===void 0&&he===void 0||R1(d,h,ge,de,y,he);return}}for(var te in p)de=p[te],p.hasOwnProperty(te)&&de!=null&&!y.hasOwnProperty(te)&&sn(d,h,te,null,y,de);for(ve in y)de=y[ve],he=p[ve],!y.hasOwnProperty(ve)||de===he||de==null&&he==null||sn(d,h,ve,de,y,he)}var O1=null,D1=null;function $g(d){return d.nodeType===9?d:d.ownerDocument}function qC(d){switch(d){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function KC(d,h){if(d===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return d===1&&h==="foreignObject"?0:d}function L1(d,h){return d==="textarea"||d==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var I1=null;function i9(){var d=window.event;return d&&d.type==="popstate"?d===I1?!1:(I1=d,!0):(I1=null,!1)}var YC=typeof setTimeout=="function"?setTimeout:void 0,s9=typeof clearTimeout=="function"?clearTimeout:void 0,XC=typeof Promise=="function"?Promise:void 0,r9=typeof queueMicrotask=="function"?queueMicrotask:typeof XC<"u"?function(d){return XC.resolve(null).then(d).catch(a9)}:YC;function a9(d){setTimeout(function(){throw d})}function jl(d){return d==="head"}function ZC(d,h){var p=h,y=0,S=0;do{var j=p.nextSibling;if(d.removeChild(p),j&&j.nodeType===8)if(p=j.data,p==="/$"){if(0<y&&8>y){p=y;var R=d.ownerDocument;if(p&1&&yf(R.documentElement),p&2&&yf(R.body),p&4)for(p=R.head,yf(p),R=p.firstChild;R;){var z=R.nextSibling,G=R.nodeName;R[wn]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&R.rel.toLowerCase()==="stylesheet"||p.removeChild(R),R=z}}if(S===0){d.removeChild(j),Ef(h);return}S--}else p==="$"||p==="$?"||p==="$!"?S++:y=p.charCodeAt(0)-48;else y=0;p=j}while(p);Ef(h)}function P1(d){var h=d.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var p=h;switch(h=h.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":P1(p),Lt(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}d.removeChild(p)}}function o9(d,h,p,y){for(;d.nodeType===1;){var S=p;if(d.nodeName.toLowerCase()!==h.toLowerCase()){if(!y&&(d.nodeName!=="INPUT"||d.type!=="hidden"))break}else if(y){if(!d[wn])switch(h){case"meta":if(!d.hasAttribute("itemprop"))break;return d;case"link":if(j=d.getAttribute("rel"),j==="stylesheet"&&d.hasAttribute("data-precedence"))break;if(j!==S.rel||d.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||d.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||d.getAttribute("title")!==(S.title==null?null:S.title))break;return d;case"style":if(d.hasAttribute("data-precedence"))break;return d;case"script":if(j=d.getAttribute("src"),(j!==(S.src==null?null:S.src)||d.getAttribute("type")!==(S.type==null?null:S.type)||d.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&j&&d.hasAttribute("async")&&!d.hasAttribute("itemprop"))break;return d;default:return d}}else if(h==="input"&&d.type==="hidden"){var j=S.name==null?null:""+S.name;if(S.type==="hidden"&&d.getAttribute("name")===j)return d}else return d;if(d=Sa(d.nextSibling),d===null)break}return null}function l9(d,h,p){if(h==="")return null;for(;d.nodeType!==3;)if((d.nodeType!==1||d.nodeName!=="INPUT"||d.type!=="hidden")&&!p||(d=Sa(d.nextSibling),d===null))return null;return d}function B1(d){return d.data==="$!"||d.data==="$?"&&d.ownerDocument.readyState==="complete"}function c9(d,h){var p=d.ownerDocument;if(d.data!=="$?"||p.readyState==="complete")h();else{var y=function(){h(),p.removeEventListener("DOMContentLoaded",y)};p.addEventListener("DOMContentLoaded",y),d._reactRetry=y}}function Sa(d){for(;d!=null;d=d.nextSibling){var h=d.nodeType;if(h===1||h===3)break;if(h===8){if(h=d.data,h==="$"||h==="$!"||h==="$?"||h==="F!"||h==="F")break;if(h==="/$")return null}}return d}var z1=null;function JC(d){d=d.previousSibling;for(var h=0;d;){if(d.nodeType===8){var p=d.data;if(p==="$"||p==="$!"||p==="$?"){if(h===0)return d;h--}else p==="/$"&&h++}d=d.previousSibling}return null}function QC(d,h,p){switch(h=$g(p),d){case"html":if(d=h.documentElement,!d)throw Error(s(452));return d;case"head":if(d=h.head,!d)throw Error(s(453));return d;case"body":if(d=h.body,!d)throw Error(s(454));return d;default:throw Error(s(451))}}function yf(d){for(var h=d.attributes;h.length;)d.removeAttributeNode(h[0]);Lt(d)}var Jr=new Map,eT=new Set;function Ug(d){return typeof d.getRootNode=="function"?d.getRootNode():d.nodeType===9?d:d.ownerDocument}var ko=$.d;$.d={f:d9,r:u9,D:h9,C:f9,L:m9,m:p9,X:x9,S:g9,M:y9};function d9(){var d=ko.f(),h=Dg();return d||h}function u9(d){var h=bt(d);h!==null&&h.tag===5&&h.type==="form"?vk(h):ko.r(d)}var fu=typeof document>"u"?null:document;function tT(d,h,p){var y=fu;if(y&&typeof h=="string"&&h){var S=vs(h);S='link[rel="'+d+'"][href="'+S+'"]',typeof p=="string"&&(S+='[crossorigin="'+p+'"]'),eT.has(S)||(eT.add(S),d={rel:d,crossOrigin:p,href:h},y.querySelector(S)===null&&(h=y.createElement("link"),rs(h,"link",d),ut(h),y.head.appendChild(h)))}}function h9(d){ko.D(d),tT("dns-prefetch",d,null)}function f9(d,h){ko.C(d,h),tT("preconnect",d,h)}function m9(d,h,p){ko.L(d,h,p);var y=fu;if(y&&d&&h){var S='link[rel="preload"][as="'+vs(h)+'"]';h==="image"&&p&&p.imageSrcSet?(S+='[imagesrcset="'+vs(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(S+='[imagesizes="'+vs(p.imageSizes)+'"]')):S+='[href="'+vs(d)+'"]';var j=S;switch(h){case"style":j=mu(d);break;case"script":j=pu(d)}Jr.has(j)||(d=m({rel:"preload",href:h==="image"&&p&&p.imageSrcSet?void 0:d,as:h},p),Jr.set(j,d),y.querySelector(S)!==null||h==="style"&&y.querySelector(bf(j))||h==="script"&&y.querySelector(vf(j))||(h=y.createElement("link"),rs(h,"link",d),ut(h),y.head.appendChild(h)))}}function p9(d,h){ko.m(d,h);var p=fu;if(p&&d){var y=h&&typeof h.as=="string"?h.as:"script",S='link[rel="modulepreload"][as="'+vs(y)+'"][href="'+vs(d)+'"]',j=S;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":j=pu(d)}if(!Jr.has(j)&&(d=m({rel:"modulepreload",href:d},h),Jr.set(j,d),p.querySelector(S)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(vf(j)))return}y=p.createElement("link"),rs(y,"link",d),ut(y),p.head.appendChild(y)}}}function g9(d,h,p){ko.S(d,h,p);var y=fu;if(y&&d){var S=At(y).hoistableStyles,j=mu(d);h=h||"default";var R=S.get(j);if(!R){var z={loading:0,preload:null};if(R=y.querySelector(bf(j)))z.loading=5;else{d=m({rel:"stylesheet",href:d,"data-precedence":h},p),(p=Jr.get(j))&&F1(d,p);var G=R=y.createElement("link");ut(G),rs(G,"link",d),G._p=new Promise(function(oe,ge){G.onload=oe,G.onerror=ge}),G.addEventListener("load",function(){z.loading|=1}),G.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Wg(R,h,y)}R={type:"stylesheet",instance:R,count:1,state:z},S.set(j,R)}}}function x9(d,h){ko.X(d,h);var p=fu;if(p&&d){var y=At(p).hoistableScripts,S=pu(d),j=y.get(S);j||(j=p.querySelector(vf(S)),j||(d=m({src:d,async:!0},h),(h=Jr.get(S))&&H1(d,h),j=p.createElement("script"),ut(j),rs(j,"link",d),p.head.appendChild(j)),j={type:"script",instance:j,count:1,state:null},y.set(S,j))}}function y9(d,h){ko.M(d,h);var p=fu;if(p&&d){var y=At(p).hoistableScripts,S=pu(d),j=y.get(S);j||(j=p.querySelector(vf(S)),j||(d=m({src:d,async:!0,type:"module"},h),(h=Jr.get(S))&&H1(d,h),j=p.createElement("script"),ut(j),rs(j,"link",d),p.head.appendChild(j)),j={type:"script",instance:j,count:1,state:null},y.set(S,j))}}function nT(d,h,p,y){var S=(S=Re.current)?Ug(S):null;if(!S)throw Error(s(446));switch(d){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(h=mu(p.href),p=At(S).hoistableStyles,y=p.get(h),y||(y={type:"style",instance:null,count:0,state:null},p.set(h,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){d=mu(p.href);var j=At(S).hoistableStyles,R=j.get(d);if(R||(S=S.ownerDocument||S,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},j.set(d,R),(j=S.querySelector(bf(d)))&&!j._p&&(R.instance=j,R.state.loading=5),Jr.has(d)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Jr.set(d,p),j||b9(S,d,p,R.state))),h&&y===null)throw Error(s(528,""));return R}if(h&&y!==null)throw Error(s(529,""));return null;case"script":return h=p.async,p=p.src,typeof p=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=pu(p),p=At(S).hoistableScripts,y=p.get(h),y||(y={type:"script",instance:null,count:0,state:null},p.set(h,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,d))}}function mu(d){return'href="'+vs(d)+'"'}function bf(d){return'link[rel="stylesheet"]['+d+"]"}function iT(d){return m({},d,{"data-precedence":d.precedence,precedence:null})}function b9(d,h,p,y){d.querySelector('link[rel="preload"][as="style"]['+h+"]")?y.loading=1:(h=d.createElement("link"),y.preload=h,h.addEventListener("load",function(){return y.loading|=1}),h.addEventListener("error",function(){return y.loading|=2}),rs(h,"link",p),ut(h),d.head.appendChild(h))}function pu(d){return'[src="'+vs(d)+'"]'}function vf(d){return"script[async]"+d}function sT(d,h,p){if(h.count++,h.instance===null)switch(h.type){case"style":var y=d.querySelector('style[data-href~="'+vs(p.href)+'"]');if(y)return h.instance=y,ut(y),y;var S=m({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return y=(d.ownerDocument||d).createElement("style"),ut(y),rs(y,"style",S),Wg(y,p.precedence,d),h.instance=y;case"stylesheet":S=mu(p.href);var j=d.querySelector(bf(S));if(j)return h.state.loading|=4,h.instance=j,ut(j),j;y=iT(p),(S=Jr.get(S))&&F1(y,S),j=(d.ownerDocument||d).createElement("link"),ut(j);var R=j;return R._p=new Promise(function(z,G){R.onload=z,R.onerror=G}),rs(j,"link",y),h.state.loading|=4,Wg(j,p.precedence,d),h.instance=j;case"script":return j=pu(p.src),(S=d.querySelector(vf(j)))?(h.instance=S,ut(S),S):(y=p,(S=Jr.get(j))&&(y=m({},p),H1(y,S)),d=d.ownerDocument||d,S=d.createElement("script"),ut(S),rs(S,"link",y),d.head.appendChild(S),h.instance=S);case"void":return null;default:throw Error(s(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(y=h.instance,h.state.loading|=4,Wg(y,p.precedence,d));return h.instance}function Wg(d,h,p){for(var y=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=y.length?y[y.length-1]:null,j=S,R=0;R<y.length;R++){var z=y[R];if(z.dataset.precedence===h)j=z;else if(j!==S)break}j?j.parentNode.insertBefore(d,j.nextSibling):(h=p.nodeType===9?p.head:p,h.insertBefore(d,h.firstChild))}function F1(d,h){d.crossOrigin==null&&(d.crossOrigin=h.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=h.referrerPolicy),d.title==null&&(d.title=h.title)}function H1(d,h){d.crossOrigin==null&&(d.crossOrigin=h.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=h.referrerPolicy),d.integrity==null&&(d.integrity=h.integrity)}var Vg=null;function rT(d,h,p){if(Vg===null){var y=new Map,S=Vg=new Map;S.set(p,y)}else S=Vg,y=S.get(p),y||(y=new Map,S.set(p,y));if(y.has(d))return y;for(y.set(d,null),p=p.getElementsByTagName(d),S=0;S<p.length;S++){var j=p[S];if(!(j[wn]||j[K]||d==="link"&&j.getAttribute("rel")==="stylesheet")&&j.namespaceURI!=="http://www.w3.org/2000/svg"){var R=j.getAttribute(h)||"";R=d+R;var z=y.get(R);z?z.push(j):y.set(R,[j])}}return y}function aT(d,h,p){d=d.ownerDocument||d,d.head.insertBefore(p,h==="title"?d.querySelector("head > title"):null)}function v9(d,h,p){if(p===1||h.itemProp!=null)return!1;switch(d){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return d=h.disabled,typeof h.precedence=="string"&&d==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function oT(d){return!(d.type==="stylesheet"&&(d.state.loading&3)===0)}var wf=null;function w9(){}function N9(d,h,p){if(wf===null)throw Error(s(475));var y=wf;if(h.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var S=mu(p.href),j=d.querySelector(bf(S));if(j){d=j._p,d!==null&&typeof d=="object"&&typeof d.then=="function"&&(y.count++,y=Gg.bind(y),d.then(y,y)),h.state.loading|=4,h.instance=j,ut(j);return}j=d.ownerDocument||d,p=iT(p),(S=Jr.get(S))&&F1(p,S),j=j.createElement("link"),ut(j);var R=j;R._p=new Promise(function(z,G){R.onload=z,R.onerror=G}),rs(j,"link",p),h.instance=j}y.stylesheets===null&&(y.stylesheets=new Map),y.stylesheets.set(h,d),(d=h.state.preload)&&(h.state.loading&3)===0&&(y.count++,h=Gg.bind(y),d.addEventListener("load",h),d.addEventListener("error",h))}}function S9(){if(wf===null)throw Error(s(475));var d=wf;return d.stylesheets&&d.count===0&&$1(d,d.stylesheets),0<d.count?function(h){var p=setTimeout(function(){if(d.stylesheets&&$1(d,d.stylesheets),d.unsuspend){var y=d.unsuspend;d.unsuspend=null,y()}},6e4);return d.unsuspend=h,function(){d.unsuspend=null,clearTimeout(p)}}:null}function Gg(){if(this.count--,this.count===0){if(this.stylesheets)$1(this,this.stylesheets);else if(this.unsuspend){var d=this.unsuspend;this.unsuspend=null,d()}}}var qg=null;function $1(d,h){d.stylesheets=null,d.unsuspend!==null&&(d.count++,qg=new Map,h.forEach(_9,d),qg=null,Gg.call(d))}function _9(d,h){if(!(h.state.loading&4)){var p=qg.get(d);if(p)var y=p.get(null);else{p=new Map,qg.set(d,p);for(var S=d.querySelectorAll("link[data-precedence],style[data-precedence]"),j=0;j<S.length;j++){var R=S[j];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(p.set(R.dataset.precedence,R),y=R)}y&&p.set(null,y)}S=h.instance,R=S.getAttribute("data-precedence"),j=p.get(R)||y,j===y&&p.set(null,S),p.set(R,S),this.count++,y=Gg.bind(this),S.addEventListener("load",y),S.addEventListener("error",y),j?j.parentNode.insertBefore(S,j.nextSibling):(d=d.nodeType===9?d.head:d,d.insertBefore(S,d.firstChild)),h.state.loading|=4}}var Nf={$$typeof:k,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function j9(d,h,p,y,S,j,R,z){this.tag=1,this.containerInfo=d,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=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=y,this.onUncaughtError=S,this.onCaughtError=j,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function lT(d,h,p,y,S,j,R,z,G,oe,ge,ve){return d=new j9(d,h,p,R,z,G,oe,ve),h=1,j===!0&&(h|=24),j=Sr(3,null,null,h),d.current=j,j.stateNode=d,h=Sv(),h.refCount++,d.pooledCache=h,h.refCount++,j.memoizedState={element:y,isDehydrated:p,cache:h},kv(j),d}function cT(d){return d?(d=Gd,d):Gd}function dT(d,h,p,y,S,j){S=cT(S),y.context===null?y.context=S:y.pendingContext=S,y=hl(h),y.payload={element:p},j=j===void 0?null:j,j!==null&&(y.callback=j),p=fl(d,y,h),p!==null&&(Cr(p,d,h),Zh(p,d,h))}function uT(d,h){if(d=d.memoizedState,d!==null&&d.dehydrated!==null){var p=d.retryLane;d.retryLane=p!==0&&p<h?p:h}}function U1(d,h){uT(d,h),(d=d.alternate)&&uT(d,h)}function hT(d){if(d.tag===13){var h=Vd(d,67108864);h!==null&&Cr(h,d,67108864),U1(d,67108864)}}var Kg=!0;function E9(d,h,p,y){var S=B.T;B.T=null;var j=$.p;try{$.p=2,W1(d,h,p,y)}finally{$.p=j,B.T=S}}function k9(d,h,p,y){var S=B.T;B.T=null;var j=$.p;try{$.p=8,W1(d,h,p,y)}finally{$.p=j,B.T=S}}function W1(d,h,p,y){if(Kg){var S=V1(y);if(S===null)M1(d,h,y,Yg,p),mT(d,y);else if(T9(S,d,h,p,y))y.stopPropagation();else if(mT(d,y),h&4&&-1<C9.indexOf(d)){for(;S!==null;){var j=bt(S);if(j!==null)switch(j.tag){case 3:if(j=j.stateNode,j.current.memoizedState.isDehydrated){var R=Hi(j.pendingLanes);if(R!==0){var z=j;for(z.pendingLanes|=2,z.entangledLanes|=2;R;){var G=1<<31-Vt(R);z.entanglements[1]|=G,R&=~G}Ka(j),(Zt&6)===0&&(Rg=se()+500,pf(0))}}break;case 13:z=Vd(j,2),z!==null&&Cr(z,j,2),Dg(),U1(j,2)}if(j=V1(y),j===null&&M1(d,h,y,Yg,p),j===S)break;S=j}S!==null&&y.stopPropagation()}else M1(d,h,y,null,p)}}function V1(d){return d=ue(d),G1(d)}var Yg=null;function G1(d){if(Yg=null,d=Rt(d),d!==null){var h=a(d);if(h===null)d=null;else{var p=h.tag;if(p===13){if(d=l(h),d!==null)return d;d=null}else if(p===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;d=null}else h!==d&&(d=null)}}return Yg=d,null}function fT(d){switch(d){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(Pe()){case Mt:return 2;case xn:return 8;case pt:case Fi:return 32;case ji:return 268435456;default:return 32}default:return 32}}var q1=!1,El=null,kl=null,Cl=null,Sf=new Map,_f=new Map,Tl=[],C9="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 mT(d,h){switch(d){case"focusin":case"focusout":El=null;break;case"dragenter":case"dragleave":kl=null;break;case"mouseover":case"mouseout":Cl=null;break;case"pointerover":case"pointerout":Sf.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":_f.delete(h.pointerId)}}function jf(d,h,p,y,S,j){return d===null||d.nativeEvent!==j?(d={blockedOn:h,domEventName:p,eventSystemFlags:y,nativeEvent:j,targetContainers:[S]},h!==null&&(h=bt(h),h!==null&&hT(h)),d):(d.eventSystemFlags|=y,h=d.targetContainers,S!==null&&h.indexOf(S)===-1&&h.push(S),d)}function T9(d,h,p,y,S){switch(h){case"focusin":return El=jf(El,d,h,p,y,S),!0;case"dragenter":return kl=jf(kl,d,h,p,y,S),!0;case"mouseover":return Cl=jf(Cl,d,h,p,y,S),!0;case"pointerover":var j=S.pointerId;return Sf.set(j,jf(Sf.get(j)||null,d,h,p,y,S)),!0;case"gotpointercapture":return j=S.pointerId,_f.set(j,jf(_f.get(j)||null,d,h,p,y,S)),!0}return!1}function pT(d){var h=Rt(d.target);if(h!==null){var p=a(h);if(p!==null){if(h=p.tag,h===13){if(h=l(p),h!==null){d.blockedOn=h,_e(d.priority,function(){if(p.tag===13){var y=kr();y=ne(y);var S=Vd(p,y);S!==null&&Cr(S,p,y),U1(p,y)}});return}}else if(h===3&&p.stateNode.current.memoizedState.isDehydrated){d.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}d.blockedOn=null}function Xg(d){if(d.blockedOn!==null)return!1;for(var h=d.targetContainers;0<h.length;){var p=V1(d.nativeEvent);if(p===null){p=d.nativeEvent;var y=new p.constructor(p.type,p);va=y,p.target.dispatchEvent(y),va=null}else return h=bt(p),h!==null&&hT(h),d.blockedOn=p,!1;h.shift()}return!0}function gT(d,h,p){Xg(d)&&p.delete(h)}function A9(){q1=!1,El!==null&&Xg(El)&&(El=null),kl!==null&&Xg(kl)&&(kl=null),Cl!==null&&Xg(Cl)&&(Cl=null),Sf.forEach(gT),_f.forEach(gT)}function Zg(d,h){d.blockedOn===h&&(d.blockedOn=null,q1||(q1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,A9)))}var Jg=null;function xT(d){Jg!==d&&(Jg=d,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Jg===d&&(Jg=null);for(var h=0;h<d.length;h+=3){var p=d[h],y=d[h+1],S=d[h+2];if(typeof y!="function"){if(G1(y||p)===null)continue;break}var j=bt(p);j!==null&&(d.splice(h,3),h-=3,Gv(j,{pending:!0,data:S,method:p.method,action:y},y,S))}}))}function Ef(d){function h(G){return Zg(G,d)}El!==null&&Zg(El,d),kl!==null&&Zg(kl,d),Cl!==null&&Zg(Cl,d),Sf.forEach(h),_f.forEach(h);for(var p=0;p<Tl.length;p++){var y=Tl[p];y.blockedOn===d&&(y.blockedOn=null)}for(;0<Tl.length&&(p=Tl[0],p.blockedOn===null);)pT(p),p.blockedOn===null&&Tl.shift();if(p=(d.ownerDocument||d).$$reactFormReplay,p!=null)for(y=0;y<p.length;y+=3){var S=p[y],j=p[y+1],R=S[ce]||null;if(typeof j=="function")R||xT(p);else if(R){var z=null;if(j&&j.hasAttribute("formAction")){if(S=j,R=j[ce]||null)z=R.formAction;else if(G1(S)!==null)continue}else z=R.action;typeof z=="function"?p[y+1]=z:(p.splice(y,3),y-=3),xT(p)}}}function K1(d){this._internalRoot=d}Qg.prototype.render=K1.prototype.render=function(d){var h=this._internalRoot;if(h===null)throw Error(s(409));var p=h.current,y=kr();dT(p,y,d,h,null,null)},Qg.prototype.unmount=K1.prototype.unmount=function(){var d=this._internalRoot;if(d!==null){this._internalRoot=null;var h=d.containerInfo;dT(d.current,2,null,d,null,null),Dg(),h[Se]=null}};function Qg(d){this._internalRoot=d}Qg.prototype.unstable_scheduleHydration=function(d){if(d){var h=Ee();d={blockedOn:null,target:d,priority:h};for(var p=0;p<Tl.length&&h!==0&&h<Tl[p].priority;p++);Tl.splice(p,0,d),p===0&&pT(d)}};var yT=e.version;if(yT!=="19.1.1")throw Error(s(527,yT,"19.1.1"));$.findDOMNode=function(d){var h=d._reactInternals;if(h===void 0)throw typeof d.render=="function"?Error(s(188)):(d=Object.keys(d).join(","),Error(s(268,d)));return d=u(h),d=d!==null?f(d):null,d=d===null?null:d.stateNode,d};var M9={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ex=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ex.isDisabled&&ex.supportsFiber)try{tn=ex.inject(M9),ot=ex}catch{}}return Cf.createRoot=function(d,h){if(!r(d))throw Error(s(299));var p=!1,y="",S=Dk,j=Lk,R=Ik,z=null;return h!=null&&(h.unstable_strictMode===!0&&(p=!0),h.identifierPrefix!==void 0&&(y=h.identifierPrefix),h.onUncaughtError!==void 0&&(S=h.onUncaughtError),h.onCaughtError!==void 0&&(j=h.onCaughtError),h.onRecoverableError!==void 0&&(R=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(z=h.unstable_transitionCallbacks)),h=lT(d,1,!1,null,null,p,y,S,j,R,z,null),d[Se]=h.current,A1(d),new K1(h)},Cf.hydrateRoot=function(d,h,p){if(!r(d))throw Error(s(299));var y=!1,S="",j=Dk,R=Lk,z=Ik,G=null,oe=null;return p!=null&&(p.unstable_strictMode===!0&&(y=!0),p.identifierPrefix!==void 0&&(S=p.identifierPrefix),p.onUncaughtError!==void 0&&(j=p.onUncaughtError),p.onCaughtError!==void 0&&(R=p.onCaughtError),p.onRecoverableError!==void 0&&(z=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(G=p.unstable_transitionCallbacks),p.formState!==void 0&&(oe=p.formState)),h=lT(d,1,!0,h,p??null,y,S,j,R,z,G,oe),h.context=cT(null),p=h.current,y=kr(),y=ne(y),S=hl(y),S.callback=null,fl(p,S,y),p=y,h.current.lanes=p,Hn(h,p),Ka(h),d[Se]=h.current,A1(d),new Qg(h)},Cf.version="19.1.1",Cf}var CT;
49function F9(){if(CT)return Z1.exports;CT=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Z1.exports=z9(),Z1.exports}var H9=F9();/** 50 * react-router v7.9.5 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */var TT="popstate";function $9(t={}){function e(s,r){let{pathname:a,search:l,hash:c}=s.location;return eN("",{pathname:a,search:l,hash:c},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(s,r){return typeof r=="string"?r:qm(r)}return W9(e,n,null,t)}function zn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ia(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function U9(){return Math.random().toString(36).substring(2,10)}function AT(t,e){return{usr:t.state,key:t.key,idx:e}}function eN(t,e,n=null,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?_h(e):e,state:n,key:e&&e.key||s||U9()}}function qm({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function _h(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let s=t.indexOf("?");s>=0&&(e.search=t.substring(s),t=t.substring(0,s)),t&&(e.pathname=t)}return e}function W9(t,e,n,s={}){let{window:r=document.defaultView,v5Compat:a=!1}=s,l=r.history,c="POP",u=null,f=m();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function m(){return(l.state||{idx:null}).idx}function g(){c="POP";let N=m(),_=N==null?null:N-f;f=N,u&&u({action:c,location:w.location,delta:_})}function x(N,_){c="PUSH";let E=eN(w.location,N,_);f=m()+1;let k=AT(E,f),C=w.createHref(E);try{l.pushState(k,"",C)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;r.location.assign(C)}a&&u&&u({action:c,location:w.location,delta:1})}function b(N,_){c="REPLACE";let E=eN(w.location,N,_);f=m();let k=AT(E,f),C=w.createHref(E);l.replaceState(k,"",C),a&&u&&u({action:c,location:w.location,delta:0})}function v(N){return V9(N)}let w={get action(){return c},get location(){return t(r,l)},listen(N){if(u)throw new Error("A history only accepts one active listener");return r.addEventListener(TT,g),u=N,()=>{r.removeEventListener(TT,g),u=null}},createHref(N){return e(r,N)},createURL:v,encodeLocation(N){let _=v(N);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:x,replace:b,go(N){return l.go(N)}};return w}function V9(t,e=!1){let n="http://localhost";
58typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),zn(n,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:qm(t);return s=s.replace(/ $/,"%20"),!e&&s.startsWith("//")&&(s=n+s),new URL(s,n)}function C6(t,e,n="/"){return G9(t,e,n,!1)}function G9(t,e,n,s){let r=typeof e=="string"?_h(e):e,a=Jo(r.pathname||"/",n);if(a==null)return null;let l=T6(t);q9(l);let c=null;for(let u=0;c==null&&u<l.length;++u){let f=s7(a);c=n7(l[u],f,s)}return c}function T6(t,e=[],n=[],s="",r=!1){let a=(l,c,u=r,f)=>{let m={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(s)&&u)return;zn(m.relativePath.startsWith(s),`Absolute route path "${m.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(s.length)}let g=Go([s,m.relativePath]),x=n.concat(m);l.children&&l.children.length>0&&(zn(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),T6(l.children,e,x,g,u)),!(l.path==null&&!l.index)&&e.push({path:g,score:e7(g,l.index),routesMeta:x})};return t.forEach((l,c)=>{if(l.path===""||!l.path?.includes("?"))a(l,c);else for(let u of A6(l.path))a(l,c,!0,u)}),e}function A6(t){let e=t.split("/");if(e.length===0)return[];let[n,...s]=e,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(s.length===0)return r?[a,""]:[a];let l=A6(s.join("/")),c=[];return c.push(...l.map(u=>u===""?a:[a,u].join("/"))),r&&c.push(...l),c.map(u=>t.startsWith("/")&&u===""?"/":u)}function q9(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:t7(e.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}var K9=/^:[\w-]+$/,Y9=3,X9=2,Z9=1,J9=10,Q9=-2,MT=t=>t==="*";function e7(t,e){let n=t.split("/"),s=n.length;return n.some(MT)&&(s+=Q9),e&&(s+=X9),n.filter(r=>!MT(r)).reduce((r,a)=>r+(K9.test(a)?Y9:a===""?Z9:J9),s)}function t7(t,e){return t.length===e.length&&t.slice(0,-1).every((s,r)=>s===e[r])?t[t.length-1]-e[e.length-1]:0}function n7(t,e,n=!1){let{routesMeta:s}=t,r={},a="/",l=[];for(let c=0;c<s.length;++c){let u=s[c],f=c===s.length-1,m=a==="/"?e:e.slice(a.length)||"/",g=q0({path:u.relativePath,caseSensitive:u.caseSensitive,end:f},m),x=u.route;if(!g&&f&&n&&!s[s.length-1].route.index&&(g=q0({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},m)),!g)return null;
58Object.assign(r,g.params),l.push({params:r,pathname:Go([a,g.pathname]),pathnameBase:l7(Go([a,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(a=Go([a,g.pathnameBase]))}return l}function q0(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,s]=i7(t.path,t.caseSensitive,t.end),r=e.match(n);if(!r)return null;let a=r[0],l=a.replace(/(.)\/+$/,"$1"),c=r.slice(1);return{params:s.reduce((f,{paramName:m,isOptional:g},x)=>{if(m==="*"){let v=c[x]||"";l=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const b=c[x];return g&&!b?f[m]=void 0:f[m]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:l,pattern:t}}function i7(t,e=!1,n=!0){Ia(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,u)=>(s.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(s.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),s]}function s7(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ia(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Jo(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,s=t.charAt(n);return s&&s!=="/"?null:t.slice(n)||"/"}function r7(t,e="/"){let{pathname:n,search:s="",hash:r=""}=typeof t=="string"?_h(t):t;return{pathname:n?n.startsWith("/")?n:a7(n,e):e,search:c7(s),hash:d7(r)}}function a7(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function tw(t,e,n,s){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function o7(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function LS(t){let e=o7(t);return e.map((n,s)=>s===e.length-1?n.pathname:n.pathnameBase)}function IS(t,e,n,s=!1){let r;typeof t=="string"?r=_h(t):(r={...t},zn(!r.pathname||!r.pathname.includes("?"),tw("?","pathname","search",r)),zn(!r.pathname||!r.pathname.includes("#"),tw("#","pathname","hash",r)),zn(!r.search||!r.search.includes("#"),tw("#","search","hash",r)));let a=t===""||r.pathname==="",l=a?"/":r.pathname,c;if(l==null)c=n;else{let g=e.length-1;if(!s&&l.startsWith("..")){let x=l.split("/");for(;x[0]==="..";)x.shift(),g-=1;r.pathname=x.join("/")}c=g>=0?e[g]:"/"}let u=r7(r,c),f=l&&l!=="/"&&l.endsWith("/"),m=(a||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(f||m)&&(u.pathname+="/"),u}var Go=t=>t.join("/").replace(/\/\/+/g,"/"),l7=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),c7=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,d7=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function u7(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var M6=["POST","PUT","PATCH","DELETE"];new Set(M6);var h7=["GET",...M6];new Set(h7);var jh=T.createContext(null);jh.displayName="DataRouter";var xb=T.createContext(null);xb.displayName="DataRouterState";T.createContext(!1);var R6=T.createContext({isTransitioning:!1});R6.displayName="ViewTransition";var f7=T.createContext(new Map);f7.displayName="Fetchers";var m7=T.createContext(null);m7.displayName="Await";var za=T.createContext(null);za.displayName="Navigation";var Ep=T.createContext(null);Ep.displayName="Location";var Fa=T.createContext({outlet:null,matches:[],isDataRoute:!1});Fa.displayName="Route";var PS=T.createContext(null);PS.displayName="RouteError";function p7(t,{relative:e}={}){zn(Eh(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:s}=T.useContext(za),{hash:r,pathname:a,search:l}=kp(t,{relative:e}),c=a;return n!=="/"&&(c=a==="/"?n:Go([n,a])),s.createHref({pathname:c,search:l,hash:r})}function Eh(){return T.useContext(Ep)!=null}function gs(){return zn(Eh(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Ep).location}var O6="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function D6(t){T.useContext(za).static||T.useLayoutEffect(t)}function Is(){let{isDataRoute:t}=T.useContext(Fa);return t?C7():g7()}function g7(){zn(Eh(),"useNavigate() may be used only in the context of a <Router> component.");let t=T.useContext(jh),{basename:e,navigator:n}=T.useContext(za),{matches:s}=T.useContext(Fa),{pathname:r}=gs(),a=JSON.stringify(LS(s)),l=T.useRef(!1);return D6(()=>{l.current=!0}),T.useCallback((u,f={})=>
58{if(Ia(l.current,O6),!l.current)return;if(typeof u=="number"){n.go(u);return}let m=IS(u,JSON.parse(a),r,f.relative==="path");t==null&&e!=="/"&&(m.pathname=m.pathname==="/"?e:Go([e,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[e,n,a,r,t])}T.createContext(null);function L6(){let{matches:t}=T.useContext(Fa),e=t[t.length-1];return e?e.params:{}}function kp(t,{relative:e}={}){let{matches:n}=T.useContext(Fa),{pathname:s}=gs(),r=JSON.stringify(LS(n));return T.useMemo(()=>IS(t,JSON.parse(r),s,e==="path"),[t,r,s,e])}function x7(t,e){return I6(t,e)}function I6(t,e,n,s,r){zn(Eh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=T.useContext(za),{matches:l}=T.useContext(Fa),c=l[l.length-1],u=c?c.params:{},f=c?c.pathname:"/",m=c?c.pathnameBase:"/",g=c&&c.route;{let E=g&&g.path||"";P6(f,!g||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 59 60Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let x=gs(),b;if(e){let E=typeof e=="string"?_h(e):e;zn(m==="/"||E.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${E.pathname}" was given in the \`location\` prop.`),b=E}else b=x;let v=b.pathname||"/",w=v;if(m!=="/"){let E=m.replace(/^\//,"").split("/");w="/"+v.replace(/^\//,"").split("/").slice(E.length).join("/")}let N=C6(t,{pathname:w});Ia(g||N!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Ia(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=N7(N&&N.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:Go([m,a.encodeLocation?a.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?m:Go([m,a.encodeLocation?a.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),l,n,s,r);return e&&_?T.createElement(Ep.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},_):_}function y7(){let t=k7(),e=u7(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:s},a={padding:"2px 4px",backgroundColor:s},l=null;return console.error("Error handled by React Router default ErrorBoundary:",t),l=T.createElement(T.Fragment,null,T.createElement("p",null,"ð¿ Hey developer ð"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:a},"ErrorBoundary")," or"," ",T.createElement("code",{style:a},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},e),n?T.createElement("pre",{style:r},n):null,l)}var b7=T.createElement(y7,null),v7=class extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.unstable_onError?this.props.unstable_onError(t,e):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?T.createElement(Fa.Provider,{value:this.props.routeContext},T.createElement(PS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function w7({routeContext:t,match:e,children:n}){let s=T.useContext(jh);return s&&s.static&&s.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=e.route.id),T.createElement(Fa.Provider,{value:t},n)}function N7(t,e=[],n=null,s=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,l=n?.errors;if(l!=null){let f=a.findIndex(m=>m.route.id&&l?.[m.route.id]!==void 0);zn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,u=-1;if(n)for(let f=0;f<a.length;f++){let m=a[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=f),m.route.id){let{loaderData:g,errors:x}
60=n,b=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||b){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,m,g)=>{let x,b=!1,v=null,w=null;n&&(x=l&&m.route.id?l[m.route.id]:void 0,v=m.route.errorElement||b7,c&&(u<0&&g===0?(P6("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,w=null):u===g&&(b=!0,w=m.route.hydrateFallbackElement||null)));let N=e.concat(a.slice(0,g+1)),_=()=>{let E;return x?E=v:b?E=w:m.route.Component?E=T.createElement(m.route.Component,null):m.route.element?E=m.route.element:E=f,T.createElement(w7,{match:m,routeContext:{outlet:f,matches:N,isDataRoute:n!=null},children:E})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?T.createElement(v7,{location:n.location,revalidation:n.revalidation,component:v,error:x,children:_(),routeContext:{outlet:null,matches:N,isDataRoute:!0},unstable_onError:s}):_()},null)}function BS(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function S7(t){let e=T.useContext(jh);return zn(e,BS(t)),e}function _7(t){let e=T.useContext(xb);return zn(e,BS(t)),e}function j7(t){let e=T.useContext(Fa);return zn(e,BS(t)),e}function zS(t){let e=j7(t),n=e.matches[e.matches.length-1];return zn(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function E7(){return zS("useRouteId")}function k7(){let t=T.useContext(PS),e=_7("useRouteError"),n=zS("useRouteError");return t!==void 0?t:e.errors?.[n]}function C7(){let{router:t}=S7("useNavigate"),e=zS("useNavigate"),n=T.useRef(!1);return D6(()=>{n.current=!0}),T.useCallback(async(r,a={})=>{Ia(n.current,O6),n.current&&(typeof r=="number"?t.navigate(r):await t.navigate(r,{fromRouteId:e,...a}))},[t,e])}var RT={};function P6(t,e,n){!e&&!RT[t]&&(RT[t]=!0,Ia(!1,n))}T.memo(T7);function T7({routes:t,future:e,state:n,unstable_onError:s}){return I6(t,void 0,n,s,e)}function B6({to:t,replace:e,state:n,relative:s}){zn(Eh(),"<Navigate> may be used only in the context of a <Router> component.");let{static:r}=T.useContext(za);Ia(!r,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=T.useContext(Fa),{pathname:l}=gs(),c=Is(),u=IS(t,LS(a),l,s==="path"),f=JSON.stringify(u);return T.useEffect(()=>{c(JSON.parse(f),{replace:e,state:n,relative:s})},[c,f,s,e,n]),null}function qt(t){zn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function A7({basename:t="/",children:e=null,location:n,navigationType:s="POP",navigator:r,static:a=!1}){zn(!Eh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=t.replace(/^\/*/,"/"),c=T.useMemo(()=>({basename:l,navigator:r,static:a,future:{}}),[l,r,a]);typeof n=="string"&&(n=_h(n));let{pathname:u="/",search:f="",hash:m="",state:g=null,key:x="default"}=n,b=T.useMemo(()=>{let v=Jo(u,l);return v==null?null:{location:{pathname:v,search:f,hash:m,state:g,key:x},navigationType:s}},[l,u,f,m,g,x,s]);return Ia(b!=null,`<Router basename="${l}"> is not able to match the URL "${u}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:T.createElement(za.Provider,{value:c},T.createElement(Ep.Provider,{children:e,value:b}))}function M7({children:t,location:e}){return x7(tN(t),e)}function tN(t,e=[]){let n=[];return T.Children.forEach(t,(s,r)=>{if(!T.isValidElement(s))return;let a=[...e,r];if(s.type===T.Fragment){n.push.apply(n,tN(s.props.children,a));return}zn(s.type===qt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),zn(!s.props.index||!s.props.children,"An index route cannot have child routes.");let l={id:s.props.id||a.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,
60shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(l.children=tN(s.props.children,a)),n.push(l)}),n}var b0="get",v0="application/x-www-form-urlencoded";function yb(t){return t!=null&&typeof t.tagName=="string"}function R7(t){return yb(t)&&t.tagName.toLowerCase()==="button"}function O7(t){return yb(t)&&t.tagName.toLowerCase()==="form"}function D7(t){return yb(t)&&t.tagName.toLowerCase()==="input"}function L7(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function I7(t,e){return t.button===0&&(!e||e==="_self")&&!L7(t)}var nx=null;function P7(){if(nx===null)try{new FormData(document.createElement("form"),0),nx=!1}catch{nx=!0}return nx}var B7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nw(t){return t!=null&&!B7.has(t)?(Ia(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${v0}"`),null):t}function z7(t,e){let n,s,r,a,l;if(O7(t)){let c=t.getAttribute("action");s=c?Jo(c,e):null,n=t.getAttribute("method")||b0,r=nw(t.getAttribute("enctype"))||v0,a=new FormData(t)}else if(R7(t)||D7(t)&&(t.type==="submit"||t.type==="image")){let c=t.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=t.getAttribute("formaction")||c.getAttribute("action");if(s=u?Jo(u,e):null,n=t.getAttribute("formmethod")||c.getAttribute("method")||b0,r=nw(t.getAttribute("formenctype"))||nw(c.getAttribute("enctype"))||v0,a=new FormData(c,t),!P7()){let{name:f,type:m,value:g}=t;if(m==="image"){let x=f?`${f}.`:"";a.append(`${x}x`,"0"),a.append(`${x}y`,"0")}else f&&a.append(f,g)}}else{if(yb(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=b0,s=null,r=v0,l=t}return a&&r==="text/plain"&&(l=a,a=void 0),{action:s,method:n.toLowerCase(),encType:r,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function FS(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function F7(t,e,n){let s=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return s.pathname==="/"?s.pathname=`_root.${n}`:e&&Jo(s.pathname,e)==="/"?s.pathname=`${e.replace(/\/$/,"")}/_root.${n}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${n}`,s}async function H7(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $7(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function U7(t,e,n){let s=await Promise.all(t.map(async r=>{let a=e.routes[r.route.id];if(a){let l=await H7(a,n);return l.links?l.links():[]}return[]}));return q7(s.flat(1).filter($7).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function OT(t,e,n,s,r,a){let l=(u,f)=>n[f]?u.route.id!==n[f].route.id:!0,c=(u,f)=>n[f].pathname!==u.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==u.params["*"];return a==="assets"?e.filter((u,f)=>l(u,f)||c(u,f)):a==="data"?e.filter((u,f)=>{let m=s.routes[u.route.id];if(!m||!m.hasLoader)return!1;if(l(u,f)||c(u,f))return!0;if(u.route.shouldRevalidate){let g=u.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function W7(t,e,{includeHydrateFallback:n}={}){return V7(t.map(s=>{let r=e.routes[s.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))}function V7(t){return[...new Set(t)]}function G7(t){let e={},n=Object.keys(t).sort();for(let s of n)e[s]=t[s];return e}function q7(t,e){let n=new Set;return new Set(e),t.reduce((s,r)=>{let a=JSON.stringify(G7(r));return n.has(a)||(n.add(a),s.push({key:a,link:r})),s},[])}function z6(){let t=T.useContext(jh);return FS(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function K7(){let t=T.useContext(xb);return FS(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var HS=T.createContext(void 0);HS.displayName="FrameworkContext";function F6(){let t=T.useContext(HS);return FS(t,"You must render this element inside a <HydratedRouter> element"),t}function Y7(t,e){let n=T.useContext(HS),[s,r]=T.useState(!1),[a,l]=T.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:f,onMouseLeave:m,onTouchStart:g}=e,x=T.useRef(null);T.useEffect(()=>{if(t==="render"&&l(!0),t==="viewport"){let w=_=>{_.forEach(E=>{l(E.isIntersecting)})},N=new IntersectionObserver(w,{threshold:.5});return x.current&&N.observe(x.current),()=>{N.disconnect()}}},[t]),T.useEffect(()=>{if(s){let w=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(w)}}},[s]);let b=()=>{r(!0)},v=()=>{r(!1),l(!1)};return n?t!=="intent"?[a,x,{}]:[a,x,{onFocus:Tf(c,b),onBlur:Tf(u,v),onMouseEnter:Tf(f,b),onMouseLeave:Tf(m,v),onTouchStart:Tf(g,b)}]:[!1,x,{}]}function Tf(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function X7({page:t,...e}){let{router:n}=z6(),s=T.useMemo(()=>C6(n.routes,t,n.basename),[n.routes,t,n.basename]);return s?T.createElement(J7,{page:t,matches:s,...e}):null}function Z7(t){let{manifest:e,routeModules:n}=F6(),[s,r]=T.useState([]);return T.useEffect(()=>{let a=!1;return U7(t,e,n).then(l=>{a||r(l)}),()=>{a=!0}},[t,e,n]),s}function J7({page:t,matches:e,...n}){let s=gs(),{manifest:r,routeModules:a}=F6(),{basename:l}=z6(),{loaderData:c,matches:u}=K7(),f=T.useMemo(()=>OT(t,e,u,r,s,"data"),[t,e,u,r,s]),m=T.useMemo(()=>OT(t,e,u,r,s,"assets"),[t,e,u,r,s]),g=T.useMemo(()=>
60{if(t===s.pathname+s.search+s.hash)return[];let v=new Set,w=!1;if(e.forEach(_=>{let E=r.routes[_.route.id];!E||!E.hasLoader||(!f.some(k=>k.route.id===_.route.id)&&_.route.id in c&&a[_.route.id]?.shouldRevalidate||E.hasClientLoader?w=!0:v.add(_.route.id))}),v.size===0)return[];let N=F7(t,l,"data");return w&&v.size>0&&N.searchParams.set("_routes",e.filter(_=>v.has(_.route.id)).map(_=>_.route.id).join(",")),[N.pathname+N.search]},[l,c,s,r,f,e,t,a]),x=T.useMemo(()=>W7(m,r),[m,r]),b=Z7(m);return T.createElement(T.Fragment,null,g.map(v=>T.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),x.map(v=>T.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:w})=>T.createElement("link",{key:v,nonce:n.nonce,...w})))}function Q7(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var H6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{H6&&(window.__reactRouterVersion="7.9.5")}catch{}function eF({basename:t,children:e,window:n}){let s=T.useRef();s.current==null&&(s.current=$9({window:n,v5Compat:!0}));let r=s.current,[a,l]=T.useState({action:r.action,location:r.location}),c=T.useCallback(u=>{T.startTransition(()=>l(u))},[l]);return T.useLayoutEffect(()=>r.listen(c),[r,c]),T.createElement(A7,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:r})}var $6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ve=T.forwardRef(function({onClick:e,discover:n="render",prefetch:s="none",relative:r,reloadDocument:a,replace:l,state:c,target:u,to:f,preventScrollReset:m,viewTransition:g,...x},b){let{basename:v}=T.useContext(za),w=typeof f=="string"&&$6.test(f),N,_=!1;if(typeof f=="string"&&w&&(N=f,H6))try{let P=new URL(window.location.href),H=f.startsWith("//")?new URL(P.protocol+f):new URL(f),V=Jo(H.pathname,v);H.origin===P.origin&&V!=null?f=V+H.search+H.hash:_=!0}catch{Ia(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let E=p7(f,{relative:r}),[k,C,A]=Y7(s,x),L=sF(f,{replace:l,state:c,target:u,preventScrollReset:m,relative:r,viewTransition:g});function M(P){e&&e(P),P.defaultPrevented||L(P)}let O=T.createElement("a",{...x,...A,href:N||E,onClick:_||a?e:M,ref:Q7(b,C),target:u,"data-discover":!w&&n==="render"?"true":void 0});return k&&!w?T.createElement(T.Fragment,null,O,T.createElement(X7,{page:E})):O});Ve.displayName="Link";var tF=T.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:s="",end:r=!1,style:a,to:l,viewTransition:c,children:u,...f},m){let g=kp(l,{relative:f.relative}),x=gs(),b=T.useContext(xb),{navigator:v,basename:w}=T.useContext(za),N=b!=null&&cF(g)&&c===!0,_=v.encodeLocation?v.encodeLocation(g).pathname:g.pathname,E=x.pathname,k=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(E=E.toLowerCase(),k=k?k.toLowerCase():null,_=_.toLowerCase()),k&&w&&(k=Jo(k,w)||k);const C=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let A=E===_||!r&&E.startsWith(_)&&E.charAt(C)==="/",L=k!=null&&(k===_||!r&&k.startsWith(_)&&k.charAt(_.length)==="/"),M={isActive:A,isPending:L,isTransitioning:N},O=A?e:void 0,P;typeof s=="function"?P=s(M):P=[s,A?"active":null,L?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let H=typeof a=="function"?a(M):a;return T.createElement(Ve,{...f,"aria-current":O,className:P,ref:m,style:H,to:l,viewTransition:c},typeof u=="function"?u(M):u)});tF.displayName="NavLink";var nF=T.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:s,replace:r,state:a,method:l=b0,action:c,onSubmit:u,relative:f,preventScrollReset:m,viewTransition:g,...x},b)=>{let v=oF(),w=lF(c,{relative:f}),N=l.toLowerCase()==="get"?"get":"post",_=typeof c=="string"&&$6.test(c),E=k=>{if(u&&u(k),k.defaultPrevented)return;k.preventDefault();let C=k.nativeEvent.submitter,A=C?.getAttribute("formmethod")||l;v(C||k.currentTarget,{fetcherKey:e,method:A,navigate:n,replace:r,state:a,relative:f,preventScrollReset:m,viewTransition:g})};return T.createElement("form",{ref:b,method:N,action:w,onSubmit:s?u:E,...x,"data-discover":!_&&t==="render"?"true":void 0})});nF.displayName="Form";function iF(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function U6(t){let e=T.useContext(jh);return zn(e,iF(t)),e}function sF(t,{target:e,replace:n,state:s,preventScrollReset:r,relative:a,viewTransition:l}={}){let c=Is(),u=gs(),f=kp(t,{relative:a});return T.useCallback(m=>{if(I7(m,e)){m.preventDefault();let g=n!==void 0?n:qm(u)===qm(f);c(t,{replace:g,state:s,preventScrollReset:r,relative:a,viewTransition:l})}},[u,c,f,n,s,e,t,r,a,l])}var rF=0,aF=()=>`__${String(++rF)}__`;function oF(){let{router:t}=U6("useSubmit"),{basename:e}=T.useContext(za),n=E7();return T.useCallback(async(s,r={})=>{let{action:a,method:l,encType:c,formData:u,body:f}=z7(s,e);if(r.navigate===!1){let m=r.fetcherKey||aF();await t.fetch(m,n,r.action||a,{preventScrollReset:r.preventScrollReset,formData:u,body:f,formMethod:r.method||l,formEncType:r.encType||c,flushSync:r.flushSync})}else await t.navigate(r.action||a,{preventScrollReset:r.preventScrollReset,formData:u,body:f,formMethod:r.method||l,formEncType:r.encType||c,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[t,e,n])}function lF(t,{relative:e}={}){let{basename:n}=T.useContext(za),s=T.useContext(Fa);zn(s,"useFormAction must be used inside a RouteContext");let[r]=s.matches.slice(-1),a={...kp(t||".",{relative:e})},l=gs();if(t==null){a.search=l.search;let c=new URLSearchParams(a.search),u=c.getAll("index");if(u.some(m=>m==="")){c.delete("index"),u.filter(g=>g).forEach(g=>c.append("index",g));let m=c.toString();a.search=m?`?${m}`:""}}return(!t||t===".")&&r.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(
vendor: 6,143 bytes, line 60
60a.pathname=a.pathname==="/"?n:Go([n,a.pathname])),qm(a)}function cF(t,{relative:e}={}){let n=T.useContext(R6);zn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=U6("useViewTransitionState"),r=kp(t,{relative:e});if(!n.isTransitioning)return!1;let a=Jo(n.currentLocation.pathname,s)||n.currentLocation.pathname,l=Jo(n.nextLocation.pathname,s)||n.nextLocation.pathname;return q0(r.pathname,l)!=null||q0(r.pathname,a)!=null}var dF=gb();const uF=Dd(dF);var ix={},DT;function hF(){if(DT)return ix;DT=1,ix.match=a,ix.parse=l;var t=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,e=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,n=/^(?:(min|max)-)?(.+)/,s=/(em|rem|px|cm|mm|in|pt|pc)?$/,r=/(dpi|dpcm|dppx)?$/;function a(m,g){return l(m).some(function(x){var b=x.inverse,v=x.type==="all"||g.type===x.type;if(v&&b||!(v||b))return!1;var w=x.expressions.every(function(N){var _=N.feature,E=N.modifier,k=N.value,C=g[_];if(!C)return!1;switch(_){case"orientation":case"scan":return C.toLowerCase()===k.toLowerCase();case"width":case"height":case"device-width":case"device-height":k=f(k),C=f(C);break;case"resolution":k=u(k),C=u(C);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":k=c(k),C=c(C);break;case"grid":case"color":case"color-index":case"monochrome":k=parseInt(k,10)||1,C=parseInt(C,10)||0;break}switch(E){case"min":return C>=k;case"max":return C<=k;default:return C===k}});return w&&!b||!w&&b})}function l(m){return m.split(",").map(function(g){g=g.trim();var x=g.match(t),b=x[1],v=x[2],w=x[3]||"",N={};return N.inverse=!!b&&b.toLowerCase()==="not",N.type=v?v.toLowerCase():"all",w=w.match(/\([^\)]+\)/g)||[],N.expressions=w.map(function(_){var E=_.match(e),k=E[1].toLowerCase().match(n);return{modifier:k[1],feature:k[2],value:E[2]}}),N})}function c(m){var g=Number(m),x;return g||(x=m.match(/^(\d+)\s*\/\s*(\d+)$/),g=x[1]/x[2]),g}function u(m){var g=parseFloat(m),x=String(m).match(r)[1];switch(x){case"dpcm":return g/2.54;case"dppx":return g*96;default:return g}}function f(m){var g=parseFloat(m),x=String(m).match(s)[1];switch(x){case"em":return g*16;case"rem":return g*16;case"cm":return g*96/2.54;case"mm":return g*96/2.54/10;case"in":return g*96;case"pt":return g*72;case"pc":return g*72/12;default:return g}}return ix}var iw,LT;function fF(){if(LT)return iw;LT=1;var t=hF().match,e=typeof window<"u"?window.matchMedia:null;function n(r,a,l){var c=this,u;e&&!l&&(u=e.call(window,r)),u?(this.matches=u.matches,this.media=u.media,u.addListener(g)):(this.matches=t(r,a),this.media=r),this.addListener=f,this.removeListener=m,this.dispose=x;function f(b){u&&u.addListener(b)}function m(b){u&&u.removeListener(b)}function g(b){c.matches=b.matches,c.media=b.media}function x(){u&&u.removeListener(g)}}function s(r,a,l){return new n(r,a,l)}return iw=s,iw}var mF=fF();const pF=Dd(mF);var gF=/[A-Z]/g,xF=/^ms-/,sw={};function yF(t){return"-"+t.toLowerCase()}function W6(t){if(sw.hasOwnProperty(t))return sw[t];var e=t.replace(gF,yF);return sw[t]=xF.test(e)?"-"+e:e}function bF(t,e){if(t===e)return!0;if(!t||!e)return!1;const n=Object.keys(t),s=Object.keys(e),r=n.length;if(s.length!==r)return!1;for(let a=0;a<r;a++){const l=n[a];if(t[l]!==e[l]||!Object.prototype.hasOwnProperty.call(e,l))return!1}return!0}var rw={exports:{}},aw,IT;function vF(){if(IT)return aw;IT=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return aw=t,aw}var ow,PT;function wF(){if(PT)return ow;PT=1;var t=vF();function e(){}function n(){}return n.resetWarningCache=e,ow=function(){function s(l,c,u,f,m,g){if(g!==t){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}s.isRequired=s;function r(){return s}var a={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:r,element:s,elementType:s,instanceOf:r,node:s,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},ow}var BT;function Cp(){return BT||(BT=1,rw.exports=wF()()),rw.exports}var NF=Cp();const Wt=Dd(NF),Ws=Wt.oneOfType([Wt.string,Wt.number]),V6={all:Wt.bool,grid:Wt.bool,aural:Wt.bool,braille:Wt.bool,handheld:Wt.bool,print:Wt.bool,projection:Wt.bool,screen:Wt.bool,tty:Wt.bool,tv:Wt.bool,embossed:Wt.bool},SF={orientation:Wt.oneOf(["portrait","landscape"]),scan:Wt.oneOf(["progressive","interlace"]),aspectRatio:Wt.string,deviceAspectRatio:Wt.string,height:Ws,deviceHeight:Ws,width:Ws,deviceWidth:Ws,color:Wt.bool,colorIndex:Wt.bool,monochrome:Wt.bool,resolution:Ws,type:Object.keys(V6)},{type:fhe,..._F}=SF,jF={minAspectRatio:Wt.string,maxAspectRatio:Wt.string,minDeviceAspectRatio:Wt.string,maxDeviceAspectRatio:Wt.string,minHeight:Ws,maxHeight:Ws,minDeviceHeight:Ws,maxDeviceHeight:Ws,minWidth:Ws,maxWidth:Ws,minDeviceWidth:Ws,maxDeviceWidth:Ws,minColor:Wt.number,maxColor:Wt.number,minColorIndex:Wt.number,maxColorIndex:Wt.number,minMonochrome:Wt.number,maxMonochrome:Wt.number,minResolution:Ws,maxResolution:Ws,..._F},EF={...V6,...jF};var kF={all:EF};const CF=t=>`not ${t}`,TF=(t,e)=>{const n=W6(t);return typeof e=="number"&&(e=`${e}px`),e===!0?n:e===!1?CF(n):`(${n}: ${e})`},AF=t=>t.join(" and "),MF=t=>{const e=[];return Object.keys(kF.all).forEach(n=>{const s=t[n];s!=null&&e.push(TF(n,s))}),AF(e)},RF=T.createContext(void 0),OF=t=>t.query||MF(t),zT=t=>t?Object.keys(t).reduce((n,s)=>(n[W6(s)]=t[s],n),{}):void 0,G6=()=>{const t=T.useRef(!1);return T.useEffect(()=>{t.current=!0},[]),t.current},DF=t=>{const e=T.useContext(RF),n=()=>zT(t)||zT(e),[s,r]=T.useState(n);return T.useEffect(()=>{const a=n();bF(s,a)||r(a)},[t,e]),s},LF=t=>{const e=()=>OF(t),[n,s]=T.useState(e);return T.useEffect(()=>{const r=e();n!==r&&s(r)},[t]),n},IF=(t,e)=>{const n=()=>pF(t,e||{},!!e),[s,r]=T.useState(n),a=G6();return T.useEffect(()=>{if(a){const l=n();return r(l),()=>{l&&l.dispose()}}},[t,e]),s},PF=t=>{const[e,n]=T.useState(t.matches);return T.useEffect(()=>{const s=r=>{n(r.matches)};
60return t.addListener(s),n(t.matches),()=>{t.removeListener(s)}},[t]),e},Y=(t,e,n)=>{const s=DF(e),r=LF(t);if(!r)throw new Error("Invalid or missing MediaQuery!");const a=IF(r,s),l=PF(a);return G6(),T.useEffect(()=>{},[l]),T.useEffect(()=>()=>{a&&a.dispose()},[]),l};var Ln={},sx={},rx={},ax={},lw,FT;function BF(){if(FT)return lw;FT=1;var t="Expected a function",e=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u=typeof tx=="object"&&tx&&tx.Object===Object&&tx,f=typeof self=="object"&&self&&self.Object===Object&&self,m=u||f||Function("return this")(),g=Object.prototype,x=g.toString,b=Math.max,v=Math.min,w=function(){return m.Date.now()};function N(L,M,O){var P,H,V,F,U,q,ae=0,B=!1,$=!1,X=!0;if(typeof L!="function")throw new TypeError(t);M=A(M)||0,E(O)&&(B=!!O.leading,$="maxWait"in O,V=$?b(A(O.maxWait)||0,M):V,X="trailing"in O?!!O.trailing:X);function xe(Te){var Qe=P,Ze=H;return P=H=void 0,ae=Te,F=L.apply(Ze,Qe),F}function I(Te){return ae=Te,U=setTimeout(fe,M),B?xe(Te):F}function Z(Te){var Qe=Te-q,Ze=Te-ae,Tt=M-Qe;return $?v(Tt,V-Ze):Tt}function le(Te){var Qe=Te-q,Ze=Te-ae;return q===void 0||Qe>=M||Qe<0||$&&Ze>=V}function fe(){var Te=w();if(le(Te))return we(Te);U=setTimeout(fe,Z(Te))}function we(Te){return U=void 0,X&&P?xe(Te):(P=H=void 0,F)}function Ie(){U!==void 0&&clearTimeout(U),ae=0,P=q=H=U=void 0}function Re(){return U===void 0?F:we(w())}function Oe(){var Te=w(),Qe=le(Te);if(P=arguments,H=this,q=Te,Qe){if(U===void 0)return I(q);if($)return U=setTimeout(fe,M),xe(q)}return U===void 0&&(U=setTimeout(fe,M)),F}return Oe.cancel=Ie,Oe.flush=Re,Oe}function _(L,M,O){var P=!0,H=!0;if(typeof L!="function")throw new TypeError(t);return E(O)&&(P="leading"in O?!!O.leading:P,H="trailing"in O?!!O.trailing:H),N(L,M,{leading:P,maxWait:M,trailing:H})}function E(L){var M=typeof L;return!!L&&(M=="object"||M=="function")}function k(L){return!!L&&typeof L=="object"}function C(L){return typeof L=="symbol"||k(L)&&x.call(L)==n}function A(L){if(typeof L=="number")return L;if(C(L))return e;if(E(L)){var M=typeof L.valueOf=="function"?L.valueOf():L;L=E(M)?M+"":M}if(typeof L!="string")return L===0?L:+L;L=L.replace(s,"");var O=a.test(L);return O||l.test(L)?c(L.slice(2),O?2:8):r.test(L)?e:+L}return lw=_,lw}var Af={},HT;function $S(){if(HT)return Af;HT=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.addPassiveEventListener=function(n,s,r){var a=r.name;a||(a=s,console.warn("Listener must be a named function.")),t.has(s)||t.set(s,new Set);var l=t.get(s);if(!l.has(a)){var c=(function(){var u=!1;try{var f=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("test",null,f)}catch{}return u})();n.addEventListener(s,r,c?{passive:!0}:!1),l.add(a)}},Af.removePassiveEventListener=function(n,s,r){n.removeEventListener(s,r),t.get(s).delete(r.name||s)};var t=new Map;return Af}var $T;function US(){if($T)return ax;$T=1,Object.defineProperty(ax,"__esModule",{value:!0});var t=BF(),e=s(t),n=$S();function s(l){return l&&l.__esModule?l:{default:l}}var r=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,e.default)(c,u)},a={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(c,u){if(c){var f=r(function(m){a.scrollHandler(c)},u);return a.scrollSpyContainers.push(c),(0,n.addPassiveEventListener)(c,"scroll",f),function(){(0,n.removePassiveEventListener)(c,"scroll",f),a.scrollSpyContainers.splice(a.scrollSpyContainers.indexOf(c),1)}}return function(){}},isMounted:function(c){return a.scrollSpyContainers.indexOf(c)!==-1},currentPositionX:function(c){if(c===document){var u=window.scrollY!==void 0,f=(document.compatMode||"")==="CSS1Compat";return u?window.scrollX:f?document.documentElement.scrollLeft:document.body.scrollLeft}else return c.scrollLeft},currentPositionY:function(c){if(c===document){var u=window.scrollX!==void 0,f=(document.compatMode||"")==="CSS1Compat";return u?window.scrollY:f?document.documentElement.scrollTop:document.body.scrollTop}else return c.scrollTop},scrollHandler:function(c){var u=a.scrollSpyContainers[a.scrollSpyContainers.indexOf(c)].spyCallbacks||[];u.forEach(function(f){return f(a.currentPositionX(c),a.currentPositionY(c))})},addStateHandler:function(c){a.spySetState.push(c)},addSpyHandler:function(c,u){var f=a.scrollSpyContainers[a.scrollSpyContainers.indexOf(u)];f.spyCallbacks||(f.spyCallbacks=[]),f.spyCallbacks.push(c)},updateStates:function(){a.spySetState.forEach(function(c){return c()})}
60,unmount:function(c,u){a.scrollSpyContainers.forEach(function(f){return f.spyCallbacks&&f.spyCallbacks.length&&f.spyCallbacks.indexOf(u)>-1&&f.spyCallbacks.splice(f.spyCallbacks.indexOf(u),1)}),a.spySetState&&a.spySetState.length&&a.spySetState.indexOf(c)>-1&&a.spySetState.splice(a.spySetState.indexOf(c),1),document.removeEventListener("scroll",a.scrollHandler)},update:function(){return a.scrollSpyContainers.forEach(function(c){return a.scrollHandler(c)})}};return ax.default=a,ax}var ox={},lx={},UT;function bb(){if(UT)return lx;UT=1,Object.defineProperty(lx,"__esModule",{value:!0});var t=function(c,u){var f=c.indexOf("#")===0?c.substring(1):c,m=f?"#"+f:"",g=window&&window.location,x=m?g.pathname+g.search+m:g.pathname+g.search;u?history.pushState(history.state,"",x):history.replaceState(history.state,"",x)},e=function(){return window.location.hash.replace(/^#/,"")},n=function(c){return function(u){return c.contains?c!=u&&c.contains(u):!!(c.compareDocumentPosition(u)&16)}},s=function(c){return getComputedStyle(c).position!=="static"},r=function(c,u){for(var f=c.offsetTop,m=c.offsetParent;m&&!u(m);)f+=m.offsetTop,m=m.offsetParent;return{offsetTop:f,offsetParent:m}},a=function(c,u,f){if(f)return c===document?u.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(c).position!=="static"?u.offsetLeft:u.offsetLeft-c.offsetLeft;if(c===document)return u.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(s(c)){if(u.offsetParent!==c){var m=function(N){return N===c||N===document},g=r(u,m),x=g.offsetTop,b=g.offsetParent;if(b!==c)throw new Error("Seems containerElement is not an ancestor of the Element");return x}return u.offsetTop}if(u.offsetParent===c.offsetParent)return u.offsetTop-c.offsetTop;var v=function(N){return N===document};return r(u,v).offsetTop-r(c,v).offsetTop};return lx.default={updateHash:t,getHash:e,filterElementInContainer:n,scrollOffset:a},lx}var cx={},dx={},WT;function zF(){return WT||(WT=1,Object.defineProperty(dx,"__esModule",{value:!0}),dx.default={defaultEasing:function(e){return e<.5?Math.pow(e*2,2)/2:1-Math.pow((1-e)*2,2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}),dx}var ux={},VT;function FF(){if(VT)return ux;VT=1,Object.defineProperty(ux,"__esModule",{value:!0});var t=$S(),e=["mousedown","wheel","touchmove","keydown"];return ux.default={subscribe:function(s){return typeof document<"u"&&e.forEach(function(r){return(0,t.addPassiveEventListener)(document,r,s)})}},ux}var hx={},GT;function WS(){if(GT)return hx;GT=1,Object.defineProperty(hx,"__esModule",{value:!0});var t={registered:{},scrollEvent:{register:function(n,s){t.registered[n]=s},remove:function(n){t.registered[n]=null}}};return hx.default=t,hx}var qT;function q6(){if(qT)return cx;qT=1,Object.defineProperty(cx,"__esModule",{value:!0});var t=Object.assign||function(H){for(var V=1;V<arguments.length;V++){var F=arguments[V];for(var U in F)Object.prototype.hasOwnProperty.call(F,U)&&(H[U]=F[U])}return H},e=bb();u(e);var n=zF(),s=u(n),r=FF(),a=u(r),l=WS(),c=u(l);function u(H){return H&&H.__esModule?H:{default:H}}var f=function(V){return s.default[V.smooth]||s.default.defaultEasing},m=function(V){return typeof V=="function"?V:function(){return V}},g=function(){if(typeof window<"u")return window.requestAnimationFrame||window.webkitRequestAnimationFrame},x=(function(){return g()||function(H,V,F){window.setTimeout(H,F||1e3/60,new Date().getTime())}})(),b=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,
60cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},v=function(V){var F=V.data.containerElement;if(F&&F!==document&&F!==document.body)return F.scrollLeft;var U=window.pageXOffset!==void 0,q=(document.compatMode||"")==="CSS1Compat";return U?window.pageXOffset:q?document.documentElement.scrollLeft:document.body.scrollLeft},w=function(V){var F=V.data.containerElement;if(F&&F!==document&&F!==document.body)return F.scrollTop;var U=window.pageXOffset!==void 0,q=(document.compatMode||"")==="CSS1Compat";return U?window.pageYOffset:q?document.documentElement.scrollTop:document.body.scrollTop},N=function(V){var F=V.data.containerElement;if(F&&F!==document&&F!==document.body)return F.scrollWidth-F.offsetWidth;var U=document.body,q=document.documentElement;return Math.max(U.scrollWidth,U.offsetWidth,q.clientWidth,q.scrollWidth,q.offsetWidth)},_=function(V){var F=V.data.containerElement;if(F&&F!==document&&F!==document.body)return F.scrollHeight-F.offsetHeight;var U=document.body,q=document.documentElement;return Math.max(U.scrollHeight,U.offsetHeight,q.clientHeight,q.scrollHeight,q.offsetHeight)},E=function H(V,F,U){var q=F.data;if(!F.ignoreCancelEvents&&q.cancel){c.default.registered.end&&c.default.registered.end(q.to,q.target,q.currentPositionY);return}if(q.delta=Math.round(q.targetPosition-q.startPosition),q.start===null&&(q.start=U),q.progress=U-q.start,q.percent=q.progress>=q.duration?1:V(q.progress/q.duration),q.currentPosition=q.startPosition+Math.ceil(q.delta*q.percent),q.containerElement&&q.containerElement!==document&&q.containerElement!==document.body?F.horizontal?q.containerElement.scrollLeft=q.currentPosition:q.containerElement.scrollTop=q.currentPosition:F.horizontal?window.scrollTo(q.currentPosition,0):window.scrollTo(0,q.currentPosition),q.percent<1){var ae=H.bind(null,V,F);x.call(window,ae);return}c.default.registered.end&&c.default.registered.end(q.to,q.target,q.currentPosition)},k=function(V){V.data.containerElement=V?V.containerId?document.getElementById(V.containerId):V.container&&V.container.nodeType?V.container:document:null},C=function(V,F,U,q){F.data=F.data||b(),window.clearTimeout(F.data.delayTimeout);var ae=function(){F.data.cancel=!0};if(a.default.subscribe(ae),k(F),F.data.start=null,F.data.cancel=!1,F.data.startPosition=F.horizontal?v(F):w(F),F.data.targetPosition=F.absolute?V:V+F.data.startPosition,F.data.startPosition===F.data.targetPosition){c.default.registered.end&&c.default.registered.end(F.data.to,F.data.target,F.data.currentPosition);return}F.data.delta=Math.round(F.data.targetPosition-F.data.startPosition),F.data.duration=m(F.duration)(F.data.delta),F.data.duration=isNaN(parseFloat(F.data.duration))?1e3:parseFloat(F.data.duration),F.data.to=U,F.data.target=q;var B=f(F),$=E.bind(null,B,F);if(F&&F.delay>0){F.data.delayTimeout=window.setTimeout(function(){c.default.registered.begin&&c.default.registered.begin(F.data.to,F.data.target),x.call(window,$)},F.delay);return}c.default.registered.begin&&c.default.registered.begin(F.data.to,F.data.target),x.call(window,$)},A=function(V){return V=t({},V),V.data=V.data||b(),V.absolute=!0,V},L=function(V){C(0,A(V))},M=function(V,F){C(V,A(F))},O=function(V){V=A(V),k(V),C(V.horizontal?N(V):_(V),V)},P=function(V,F){F=A(F),k(F);var U=F.horizontal?v(F):w(F);C(V+U,F)};return cx.default={animateTopScroll:C,getAnimationType:f,scrollToTop:L,scrollToBottom:O,scrollTo:M,scrollMore:P},cx}var KT;function vb(){if(KT)return ox;KT=1,Object.defineProperty(ox,"__esModule",{value:!0});var t=Object.assign||function(m){for(var g=1;g<arguments.length;g++){var x=arguments[g];for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(m[b]=x[b])}return m},e=bb(),n=c(e),s=q6(),r=c(s),a=WS(),l=c(a);function c(m){return m&&m.__esModule?m:{default:m}}var u={},f=void 0;return ox.default={unmount:function(){u={}},register:function(g,x){u[g]=x},unregister:function(g){delete u[g]},get:function(g){return u[g]||document.getElementById(g)||document.getElementsByName(g)[0]||document.getElementsByClassName(g)[0]},setActiveLink:function(g){return f=g},getActiveLink:function(){return f},scrollTo:function(g,x){var b=this.get(g);if(!b){console.warn("target Element not found");return}x=t({},x,{absolute:!1});var v=x.containerId,w=x.container,N=void 0;v?N=document.getElementById(v):w&&w.nodeType?N=w:N=document,x.absolute=!0;var _=x.horizontal,E=n.default.scrollOffset(N,b,_)+(x.offset||0);if(!x.smooth){l.default.registered.begin&&l.default.registered.begin(g,b),N===document?x.horizontal?window.scrollTo(E,0):window.scrollTo(0,E):N.scrollTop=E,l.default.registered.end&&l.default.registered.end(g,b);return}r.default.animateTopScroll(E,x,g,b)}},ox}var fx={},YT;function K6(){if(YT)return fx;YT=1,Object.defineProperty(fx,"__esModule",{value:!0}),$S();var t=bb(),e=n(t);function n(r){return r&&r.__esModule?r:{default:r}}var s={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(a){this.scroller=a,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(a,l){this.containers[a]=l},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var a=this,l=this.getHash();l?window.setTimeout(function(){a.scrollTo(l,!0),a.initialized=!0},10):this.initialized=!0},scrollTo:function(a,l){var c=this.scroller,u=c.get(a);if(u&&(l||a!==c.getActiveLink())){var f=this.containers[a]||document;c.scrollTo(a,{container:f})}},getHash:function(){return e.default.getHash()},changeHash:function(a,l){this.isInitialized()&&e.default.getHash()!==a&&e.default.updateHash(a,l)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};return fx.default=s,fx}var XT;function VS(){if(XT)return rx;XT=1,Object.defineProperty(rx,"__esModule",{value:!0});var t=Object.assign||function(_){for(var E=1;E<arguments.length;E++){var k=arguments[E];for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&(_[C]=k[C])}return _},e=(function(){function _(E,k){for(var C=0;C<k.length;C++){var A=k[C];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,k,C){return k&&_(E.prototype,k),C&&_(E,C),E}})(),n=Ba(),s=x(n),r=US(),a=x(r),l=vb(),c=x(l),u=Cp(),f=x(u),m=K6(),g=x(m);
60function x(_){return _&&_.__esModule?_:{default:_}}function b(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function v(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function w(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var N={to:f.default.string.isRequired,containerId:f.default.string,container:f.default.object,activeClass:f.default.string,activeStyle:f.default.object,spy:f.default.bool,horizontal:f.default.bool,smooth:f.default.oneOfType([f.default.bool,f.default.string]),offset:f.default.number,delay:f.default.number,isDynamic:f.default.bool,onClick:f.default.func,duration:f.default.oneOfType([f.default.number,f.default.func]),absolute:f.default.bool,onSetActive:f.default.func,onSetInactive:f.default.func,ignoreCancelEvents:f.default.bool,hashSpy:f.default.bool,saveHashHistory:f.default.bool,spyThrottle:f.default.number};return rx.default=function(_,E){var k=E||c.default,C=(function(L){w(M,L);function M(O){b(this,M);var P=v(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,O));return A.call(P),P.state={active:!1},P.beforeUnmountCallbacks=[],P}return e(M,[{key:"getScrollSpyContainer",value:function(){var P=this.props.containerId,H=this.props.container;return P&&!H?document.getElementById(P):H&&H.nodeType?H:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var P=this.getScrollSpyContainer();if(!a.default.isMounted(P)){var H=a.default.mount(P,this.props.spyThrottle);this.beforeUnmountCallbacks.push(H)}this.props.hashSpy&&(g.default.isMounted()||g.default.mount(k),g.default.mapContainer(this.props.to,P)),a.default.addSpyHandler(this.spyHandler,P),this.setState({container:P})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler),this.beforeUnmountCallbacks.forEach(function(P){return P()})}},{key:"render",value:function(){var P="";this.state&&this.state.active?P=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():P=this.props.className;var H={};this.state&&this.state.active?H=t({},this.props.style,this.props.activeStyle):H=t({},this.props.style);var V=t({},this.props);for(var F in N)V.hasOwnProperty(F)&&delete V[F];return V.className=P,V.style=H,V.onClick=this.handleClick,s.default.createElement(_,V)}}]),M})(s.default.PureComponent),A=function(){var M=this;this.scrollTo=function(O,P){k.scrollTo(O,t({},M.state,P))},this.handleClick=function(O){M.props.onClick&&M.props.onClick(O),O.stopPropagation&&O.stopPropagation(),O.preventDefault&&O.preventDefault(),M.scrollTo(M.props.to,M.props)},this.spyHandler=function(O,P){var H=M.getScrollSpyContainer();if(!(g.default.isMounted()&&!g.default.isInitialized())){var V=M.props.horizontal,F=M.props.to,U=null,q=void 0,ae=void 0;if(V){var B=0,$=0,X=0;if(H.getBoundingClientRect){var xe=H.getBoundingClientRect();X=xe.left}if(!U||M.props.isDynamic){if(U=k.get(F),!U)return;var I=U.getBoundingClientRect();B=I.left-X+O,$=B+I.width}var Z=O-M.props.offset;q=Z>=Math.floor(B)&&Z<Math.floor($),ae=Z<Math.floor(B)||Z>=Math.floor($)}else{var le=0,fe=0,we=0;if(H.getBoundingClientRect){var Ie=H.getBoundingClientRect();we=Ie.top}if(!U||M.props.isDynamic){if(U=k.get(F),!U)return;var Re=U.getBoundingClientRect();le=Re.top-we+P,fe=le+Re.height}var Oe=P-M.props.offset;q=Oe>=Math.floor(le)&&Oe<Math.floor(fe),ae=Oe<Math.floor(le)||Oe>=Math.floor(fe)}var Te=k.getActiveLink();if(ae){if(F===Te&&k.setActiveLink(void 0),M.props.hashSpy&&g.default.getHash()===F){var Qe=M.props.saveHashHistory,Ze=Qe===void 0?!1:Qe;g.default.changeHash("",Ze)}M.props.spy&&M.state.active&&(M.setState({active:!1}),M.props.onSetInactive&&M.props.onSetInactive(F,U))}if(q&&(Te!==F||M.state.active===!1)){k.setActiveLink(F);
60var Tt=M.props.saveHashHistory,mt=Tt===void 0?!1:Tt;M.props.hashSpy&&g.default.changeHash(F,mt),M.props.spy&&(M.setState({active:!0}),M.props.onSetActive&&M.props.onSetActive(F,U))}}}};return C.propTypes=N,C.defaultProps={offset:0},C},rx}var ZT;function HF(){if(ZT)return sx;ZT=1,Object.defineProperty(sx,"__esModule",{value:!0});var t=Ba(),e=r(t),n=VS(),s=r(n);function r(f){return f&&f.__esModule?f:{default:f}}function a(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function l(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function c(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var u=(function(f){c(m,f);function m(){var g,x,b,v;a(this,m);for(var w=arguments.length,N=Array(w),_=0;_<w;_++)N[_]=arguments[_];return v=(x=(b=l(this,(g=m.__proto__||Object.getPrototypeOf(m)).call.apply(g,[this].concat(N))),b),b.render=function(){return e.default.createElement("a",b.props,b.props.children)},x),l(b,v)}return m})(e.default.Component);return sx.default=(0,s.default)(u),sx}var mx={},JT;function $F(){if(JT)return mx;JT=1,Object.defineProperty(mx,"__esModule",{value:!0});var t=(function(){function m(g,x){for(var b=0;b<x.length;b++){var v=x[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,x,b){return x&&m(g.prototype,x),b&&m(g,b),g}})(),e=Ba(),n=a(e),s=VS(),r=a(s);function a(m){return m&&m.__esModule?m:{default:m}}function l(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function c(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function u(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){u(g,m);function g(){return l(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return t(g,[{key:"render",value:function(){return n.default.createElement("button",this.props,this.props.children)}}]),g})(n.default.Component);return mx.default=(0,r.default)(f),mx}var px={},gx={},QT;function Y6(){if(QT)return gx;QT=1,Object.defineProperty(gx,"__esModule",{value:!0});var t=Object.assign||function(b){for(var v=1;v<arguments.length;v++){var w=arguments[v];for(var N in w)Object.prototype.hasOwnProperty.call(w,N)&&(b[N]=w[N])}return b},e=(function(){function b(v,w){for(var N=0;N<w.length;N++){var _=w[N];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}return function(v,w,N){return w&&b(v.prototype,w),N&&b(v,N),v}})(),n=Ba(),s=f(n),r=gb();f(r);var a=vb(),l=f(a),c=Cp(),u=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function m(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function g(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function x(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}return gx.default=function(b){var v=(function(w){x(N,w);function N(_){m(this,N);var E=g(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,_));return E.childBindings={domNode:null},E}return e(N,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(E){this.props.name!==E.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;l.default.unregister(this.props.name)}},{key:"registerElems",value:function(E){l.default.register(E,this.childBindings.domNo
60de)}},{key:"render",value:function(){return s.default.createElement(b,t({},this.props,{parentBindings:this.childBindings}))}}]),N})(s.default.Component);return v.propTypes={name:u.default.string,id:u.default.string},v},gx}var eA;function UF(){if(eA)return px;eA=1,Object.defineProperty(px,"__esModule",{value:!0});var t=Object.assign||function(b){for(var v=1;v<arguments.length;v++){var w=arguments[v];for(var N in w)Object.prototype.hasOwnProperty.call(w,N)&&(b[N]=w[N])}return b},e=(function(){function b(v,w){for(var N=0;N<w.length;N++){var _=w[N];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}return function(v,w,N){return w&&b(v.prototype,w),N&&b(v,N),v}})(),n=Ba(),s=u(n),r=Y6(),a=u(r),l=Cp(),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function f(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function m(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function g(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}var x=(function(b){g(v,b);function v(){return f(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return e(v,[{key:"render",value:function(){var N=this,_=t({},this.props);return delete _.name,_.parentBindings&&delete _.parentBindings,s.default.createElement("div",t({},_,{ref:function(k){N.props.parentBindings.domNode=k}}),this.props.children)}}]),v})(s.default.Component);return x.propTypes={name:c.default.string,id:c.default.string},px.default=(0,a.default)(x),px}var cw,tA;function WF(){if(tA)return cw;tA=1;var t=Object.assign||function(x){for(var b=1;b<arguments.length;b++){var v=arguments[b];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(x[w]=v[w])}return x},e=(function(){function x(b,v){for(var w=0;w<v.length;w++){var N=v[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,v,w){return v&&x(b.prototype,v),w&&x(b,w),b}})();function n(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function s(x,b){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:x}function r(x,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);x.prototype=Object.create(b&&b.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(x,b):x.__proto__=b)}var a=Ba();gb(),bb();var l=US(),c=vb(),u=Cp(),f=K6(),m={to:u.string.isRequired,containerId:u.string,container:u.object,activeClass:u.string,spy:u.bool,smooth:u.oneOfType([u.bool,u.string]),offset:u.number,delay:u.number,isDynamic:u.bool,onClick:u.func,duration:u.oneOfType([u.number,u.func]),absolute:u.bool,onSetActive:u.func,onSetInactive:u.func,ignoreCancelEvents:u.bool,hashSpy:u.bool,spyThrottle:u.number},g={Scroll:function(b,v){console.warn("Helpers.Scroll is deprecated since v1.7.0");var w=v||c,N=(function(E){r(k,E);function k(C){n(this,k);var A=s(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,C));return _.call(A),A.state={active:!1},A}return e(k,[{key:"getScrollSpyContainer",value:function(){var A=this.props.containerId,L=this.props.container;return A?document.getElementById(A):L&&L.nodeType?L:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var A=this.getScrollSpyContainer();l.isMounted(A)||l.mount(A,this.props.spyThrottle),this.props.hashSpy&&(f.isMounted()||f.mount(w),f.mapContainer(this.props.to,A)),this.props.spy&&l.addStateHandler(this.stateHandler),l.addSpyHandler(this.spyHandler,A),this.setState({container:A})}}},{key:"componentWillUnmount",value:function(){l.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var A="";this.state&&this.state.active?A=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():A=this.props.className;var L=t({},this.props);for(var M in m)L.hasOwnProperty(M)&&delete L[M];return L.className=A,L.onClick=this.handleClick,a.createElement(b,L)}}]),k})(a.Component),_=function(){var k=this;this.scrollTo=function(C,A){w.scrollTo(C,t({},k.state,A))},this.handleClick=function(C){k.props.onClick&&k.props.onClick(C),C.stopPropagation&&C.stopPropagation(),C.preventDefault&&C.preventDefault(),k.scrollTo(k.props.to,k.props)},this.stateHandler=function(){w.getActiveLink()!==k.props.to&&(k.state!==null&&k.state.active&&k.props.onSetInactive&&k.props.onSetInactive(),k.setState({active:!1}))},this.spyHandler=function(C){var A=k.getScrollSpyContainer();if(!(f.isMounted()&&!f.isInitialized())){var L=k.props.to,M=null,O=0,P=0,H=0;if(A.getBoundingClientRect){var V=A.getBoundingClientRect();H=V.top}if(!M||k.props.isDynamic){if(M=w.get(L),!M)return;var F=M.getBoundingClientRect();O=F.top-H+C,P=O+F.height}var U=C-k.props.offset,q=U>=Math.floor(O)&&U<Math.floor(P),ae=U<Math.floor(O)||U>=Math.floor(P),B=w.getActiveLink();if(ae)return L===B&&w.setActiveLink(void 0),k.props.hashSpy&&f.getHash()===L&&f.changeHash(),k.props.spy&&k.state.active&&(k.setState({active:!1}),k.props.onSetInactive&&k.props.onSetInactive()),l.updateStates();if(q&&B!==L)return w.setActiveLink(L),k.props.hashSpy&&f.changeHash(L),k.props.spy&&(k.setState({active:!0}),k.props.onSetActive&&k.props.onSetActive(L)),l.updateStates()}}};return N.propTypes=m,N.defaultProps={offset:0},N},Element:function(b){console.warn("Helpers.Element is deprecated since v1.7.0");var v=(function(w){r(N,w);function N(_){n(this,N);var E=s(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,_));return E.childBindings={domNode:null},E}
60return e(N,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(E){this.props.name!==E.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(E){c.register(E,this.childBindings.domNode)}},{key:"render",value:function(){return a.createElement(b,t({},this.props,{parentBindings:this.childBindings}))}}]),N})(a.Component);return v.propTypes={name:u.string,id:u.string},v}};return cw=g,cw}var nA;function VF(){if(nA)return Ln;nA=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.Helpers=Ln.ScrollElement=Ln.ScrollLink=Ln.animateScroll=Ln.scrollSpy=Ln.Events=Ln.scroller=Ln.Element=Ln.Button=Ln.Link=void 0;var t=HF(),e=C(t),n=$F(),s=C(n),r=UF(),a=C(r),l=vb(),c=C(l),u=WS(),f=C(u),m=US(),g=C(m),x=q6(),b=C(x),v=VS(),w=C(v),N=Y6(),_=C(N),E=WF(),k=C(E);function C(A){return A&&A.__esModule?A:{default:A}}return Ln.Link=e.default,Ln.Button=s.default,Ln.Element=a.default,Ln.scroller=c.default,Ln.Events=f.default,Ln.scrollSpy=g.default,Ln.animateScroll=b.default,Ln.ScrollLink=w.default,Ln.ScrollElement=_.default,Ln.Helpers=k.default,Ln.default={Link:e.default,Button:s.default,Element:a.default,scroller:c.default,Events:f.default,scrollSpy:g.default,animateScroll:b.default,ScrollLink:w.default,ScrollElement:_.default,Helpers:k.default},Ln}var GF=VF();const at=t=>typeof t=="string",Mf=()=>{let t,e;const n=new Promise((s,r)=>{t=s,e=r});return n.resolve=t,n.reject=e,n},iA=t=>t==null?"":""+t,qF=(t,e,n)=>{t.forEach(s=>{e[s]&&(n[s]=e[s])})},KF=/###/g,sA=t=>t&&t.indexOf("###")>-1?t.replace(KF,"."):t,rA=t=>!t||at(t),mm=(t,e,n)=>{const s=at(e)?e.split("."):e;let r=0;for(;r<s.length-1;){if(rA(t))return{};const a=sA(s[r]);!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++r}return rA(t)?{}:{obj:t,k:sA(s[r])}},aA=(t,e,n)=>{const{obj:s,k:r}=mm(t,e,Object);if(s!==void 0||e.length===1){s[r]=n;return}let a=e[e.length-1],l=e.slice(0,e.length-1),c=mm(t,l,Object);for(;c.obj===void 0&&l.length;)a=`${l[l.length-1]}.${a}`,l=l.slice(0,l.length-1),c=mm(t,l,Object),c?.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=n},YF=(t,e,n,s)=>{const{obj:r,k:a}=mm(t,e,Object);r[a]=r[a]||[],r[a].push(n)},K0=(t,e)=>{const{obj:n,k:s}=mm(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,s))return n[s]},XF=(t,e,n)=>{const s=K0(t,n);return s!==void 0?s:K0(e,n)},X6=(t,e,n)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in t?at(t[s])||t[s]instanceof String||at(e[s])||e[s]instanceof String?n&&(t[s]=e[s]):X6(t[s],e[s],n):t[s]=e[s]);return t},gu=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ZF={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const JF=t=>at(t)?t.replace(/[&<>"'\/]/g,e=>ZF[e]):t;class QF{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const eH=[" ",",","?","!",";"],tH=new QF(20),nH=(t,e,n)=>{e=e||"",n=n||"";const s=eH.filter(l=>e.indexOf(l)<0&&n.indexOf(l)<0);if(s.length===0)return!0;const r=tH.getRegExp(`(${s.map(l=>l==="?"?"\\?":l).join("|")})`);let a=!r.test(t);if(!a){const l=t.indexOf(n);l>0&&!r.test(t.substring(0,l))&&(a=!0)}return a},nN=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const s=e.split(n);let r=t;for(let a=0;a<s.length;){if(!r||typeof r!="object")return;let l,c="";for(let u=a;u<s.length;++u)if(u!==a&&(c+=n),c+=s[u],l=r[c],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&u<s.length-1)continue;a+=u-a+1;break}r=l}return r},Km=t=>t?.replace("_","-"),iH={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class Y0{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||iH,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,s,r){return r&&!this.debug?null:(at(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Y0(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Y0(this.logger,e)}}var so=new Y0;let wb=class{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const r=this.observers[s].get(n)||0;this.observers[s].set(n,r+1)}),this}
60off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([r,a])=>{for(let l=0;l<a;l++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let l=0;l<a;l++)r.apply(r,[e,...n])})}};class oA extends wb{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,s,r={}){const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,l=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,n],s&&(Array.isArray(s)?c.push(...s):at(s)&&a?c.push(...s.split(a)):c.push(s)));const u=K0(this.data,c);return!u&&!n&&!s&&e.indexOf(".")>-1&&(e=c[0],n=c[1],s=c.slice(2).join(".")),u||!l||!at(s)?u:nN(this.data?.[e]?.[n],s,a)}addResource(e,n,s,r,a={silent:!1}){const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=[e,n];s&&(c=c.concat(l?s.split(l):s)),e.indexOf(".")>-1&&(c=e.split("."),r=n,n=c[1]),this.addNamespaces(n),aA(this.data,c,r),a.silent||this.emit("added",e,n,s,r)}addResources(e,n,s,r={silent:!1}){for(const a in s)(at(s[a])||Array.isArray(s[a]))&&this.addResource(e,n,a,s[a],{silent:!0});r.silent||this.emit("added",e,n,s)}addResourceBundle(e,n,s,r,a,l={silent:!1,skipCopy:!1}){let c=[e,n];e.indexOf(".")>-1&&(c=e.split("."),r=s,s=n,n=c[1]),this.addNamespaces(n);let u=K0(this.data,c)||{};l.skipCopy||(s=JSON.parse(JSON.stringify(s))),r?X6(u,s,a):u={...u,...s},aA(this.data,c,u),l.silent||this.emit("added",e,n,s)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var Z6={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,s,r){return t.forEach(a=>{e=this.processors[a]?.process(e,n,s,r)??e}),e}};const J6=Symbol("i18next/PATH_KEY");function sH(){const t=[],e=Object.create(null);let n;return e.get=(s,r)=>(n?.revoke?.(),r===J6?t:(t.push(r),n=Proxy.revocable(s,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function X0(t,e){const{[J6]:n}=t(sH());return n.join(e?.keySeparator??".")}const lA={},dw=t=>!at(t)&&typeof t!="boolean"&&typeof t!="number";class Z0 extends wb{constructor(e,n={}){super(),qF(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
60i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=so.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const s={...n};if(e==null)return!1;const r=this.resolve(e,s);if(r?.res===void 0)return!1;const a=dw(r.res);return!(s.returnObjects===!1&&a)}extractFromKey(e,n){let s=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const l=s&&e.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!nH(e,s,r);if(l&&!c){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:at(a)?[a]:a};const f=e.split(s);(s!==r||s===r&&this.options.ns.indexOf(f[0])>-1)&&(a=f.shift()),e=f.join(r)}return{key:e,namespaces:at(a)?[a]:a}}translate(e,n,s){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";typeof e=="function"&&(e=X0(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(e[e.length-1],r),f=u[u.length-1];let m=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const g=r.lng||this.language,x=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g?.toLowerCase()==="cimode")return x?a?{res:`${f}${m}${c}`,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:f,usedParams:this.getUsedParamsDetails(r)}:`${f}${m}${c}`:a?{res:c,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:f,usedParams:this.getUsedParamsDetails(r)}:c;const b=this.resolve(e,r);let v=b?.res;const w=b?.usedKey||c,N=b?.exactUsedKey||c,_=["[object Number]","[object Function]","[object RegExp]"],E=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,C=r.count!==void 0&&!at(r.count),A=Z0.hasDefaultValue(r),L=C?this.pluralResolver.getSuffix(g,r.count,r):"",M=r.ordinal&&C?this.pluralResolver.getSuffix(g,r.count,{ordinal:!1}):"",O=C&&!r.ordinal&&r.count===0,P=O&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${L}`]||r[`defaultValue${M}`]||r.defaultValue;let H=v;k&&!v&&A&&(H=P);const V=dw(H),F=Object.prototype.toString.apply(H);if(k&&H&&V&&_.indexOf(F)<0&&!(at(E)&&Array.isArray(H))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,H,{...r,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(b.res=U,b.usedParams=this.getUsedParamsDetails(r),b):U}if(l){const U=Array.isArray(H),q=U?[]:{},ae=U?N:w;for(const B in H)if(Object.prototype.hasOwnProperty.call(H,B)){const $=`${ae}${l}${B}`;A&&!v?q[B]=this.translate($,{...r,defaultValue:dw(P)?P[B]:void 0,joinArrays:!1,ns:u}):q[B]=this.translate($,{...r,joinArrays:!1,ns:u}),q[B]===$&&(q[B]=H[B])}v=q}}else if(k&&at(E)&&Array.isArray(v))v=v.join(E),v&&(v=this.extendTranslation(v,e,r,s));else{let U=!1,q=!1;!this.isValidLookup(v)&&A&&(U=!0,v=P),this.isValidLookup(v)||(q=!0,v=c);const B=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:v,$=A&&P!==v&&this.options.updateMissing;if(q||U||$){if(this.logger.log($?"updateKey":"missingKey",g,f,c,$?P:v),l){const Z=this.resolve(c,{...r,keySeparator:!1});Z&&Z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let Z=0;Z<xe.length;Z++)X.push(xe[Z]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(r.lng||this.language):X.push(r.lng||this.language);const I=(Z,le,fe)=>{const we=A&&fe!==v?fe:B;this.options.missingKeyHandler?this.options.missingKeyHandler(Z,f,le,we,$,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Z,f,le,we,$,r),this.emit
60("missingKey",Z,f,le,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?X.forEach(Z=>{const le=this.pluralResolver.getSuffixes(Z,r);O&&r[`defaultValue${this.options.pluralSeparator}zero`]&&le.indexOf(`${this.options.pluralSeparator}zero`)<0&&le.push(`${this.options.pluralSeparator}zero`),le.forEach(fe=>{I([Z],c+fe,r[`defaultValue${fe}`]||P)})}):I(X,c,P))}v=this.extendTranslation(v,e,r,b,s),q&&v===c&&this.options.appendNamespaceToMissingKey&&(v=`${f}${m}${c}`),(q||U)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}${m}${c}`:c,U?v:void 0,r))}return a?(b.res=v,b.usedParams=this.getUsedParamsDetails(r),b):v}extendTranslation(e,n,s,r,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const u=at(e)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const g=e.match(this.interpolator.nestingRegexp);f=g&&g.length}let m=s.replace&&!at(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,s.lng||this.language||r.usedLng,s),u){const g=e.match(this.interpolator.nestingRegexp),x=g&&g.length;f<x&&(s.nest=!1)}!s.lng&&r&&r.res&&(s.lng=this.language||r.usedLng),s.nest!==!1&&(e=this.interpolator.nest(e,(...g)=>a?.[0]===g[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),s)),s.interpolation&&this.interpolator.reset()}const l=s.postProcess||this.options.postProcess,c=at(l)?[l]:l;return e!=null&&c?.length&&s.applyPostProcessor!==!1&&(e=Z6.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,n={}){let s,r,a,l,c;return at(e)&&(e=[e]),e.forEach(u=>{if(this.isValidLookup(s))return;const f=this.extractFromKey(u,n),m=f.key;r=m;let g=f.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const x=n.count!==void 0&&!at(n.count),b=x&&!n.ordinal&&n.count===0,v=n.context!==void 0&&(at(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(N=>{this.isValidLookup(s)||(c=N,!lA[`${w[0]}-${N}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(lA[`${w[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${w.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(_=>{if(this.isValidLookup(s))return;l=_;const E=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(E,m,_,N,n);else{let C;x&&(C=this.pluralResolver.getSuffix(_,n.count,n));const A=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(n.ordinal&&C.indexOf(L)===0&&E.push(m+C.replace(L,this.options.pluralSeparator)),E.push(m+C),b&&E.push(m+A)),v){const M=`${m}${this.options.contextSeparator||"_"}${n.context}`;E.push(M),x&&(n.ordinal&&C.indexOf(L)===0&&E.push(M+C.replace(L,this.options.pluralSeparator)),E.push(M+C),b&&E.push(M+A))}}let k;for(;k=E.pop();)this.isValidLookup(s)||(a=k,s=this.getResource(_,N,k,n))}))})}),{res:s,usedKey:r,exactUsedKey:a,usedLng:l,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,s,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,s,r):this.resourceStore.getResource(e,n,s,r)}
60getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!at(e.replace);let r=s?e.replace:e;if(s&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!s){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(e){const n="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&n===s.substring(0,n.length)&&e[s]!==void 0)return!0;return!1}}class cA{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=so.create("languageUtils")}getScriptPartFromCode(e){if(e=Km(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Km(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(at(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(s=>{if(n)return;const r=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(s=>{if(n)return;const r=this.getScriptPartFromCode(s);if(this.isSupportedCode(r))return n=r;const a=this.getLanguagePartFromCode(s);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(l=>{if(l===a)return l;if(!(l.indexOf("-")<0&&a.indexOf("-")<0)&&(l.indexOf("-")>0&&a.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===a||l.indexOf(a)===0&&a.length>1))return l})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),at(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let s=e[n];return s||(s=e[this.getScriptPartFromCode(n)]),s||(s=e[this.formatLanguageCode(n)]),s||(s=e[this.getLanguagePartFromCode(n)]),s||(s=e.default),s||[]}toResolveHierarchy(e,n){const s=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),r=[],a=l=>{l&&(this.isSupportedCode(l)?r.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return at(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):at(e)&&a(this.formatLanguageCode(e)),s.forEac
vendor: 5,292 bytes, line 60
60h(l=>{r.indexOf(l)<0&&a(this.formatLanguageCode(l))}),r}}const dA={zero:0,one:1,two:2,few:3,many:4,other:5},uA={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rH{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=so.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const s=Km(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let l;try{l=new Intl.PluralRules(s,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),uA;if(!e.match(/-|_/))return uA;const u=this.languageUtils.getLanguagePartFromCode(e);l=this.getRule(u,n)}return this.pluralRulesCache[a]=l,l}needsPlural(e,n={}){let s=this.getRule(e,n);return s||(s=this.getRule("dev",n)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,s={}){return this.getSuffixes(e,s).map(r=>`${n}${r}`)}getSuffixes(e,n={}){let s=this.getRule(e,n);return s||(s=this.getRule("dev",n)),s?s.resolvedOptions().pluralCategories.sort((r,a)=>dA[r]-dA[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(e,n,s={}){const r=this.getRule(e,s);return r?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,s))}}const hA=(t,e,n,s=".",r=!0)=>{let a=XF(t,e,n);return!a&&r&&at(n)&&(a=nN(t,n,s),a===void 0&&(a=nN(e,n,s))),a},uw=t=>t.replace(/\$/g,"$$$$");class fA{constructor(e={}){this.logger=so.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:s,useRawValueToEscape:r,prefix:a,prefixEscaped:l,suffix:c,suffixEscaped:u,formatSeparator:f,unescapeSuffix:m,unescapePrefix:g,nestingPrefix:x,nestingPrefixEscaped:b,nestingSuffix:v,nestingSuffixEscaped:w,nestingOptionsSeparator:N,maxReplaces:_,alwaysFormat:E}=e.interpolation;this.escape=n!==void 0?n:JF,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?gu(a):l||"{{",this.suffix=c?gu(c):u||"}}",this.formatSeparator=f||",",this.unescapePrefix=m?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=x?gu(x):b||gu("$t("),this.nestingSuffix=v?gu(v):w||gu(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=_||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,s)=>n?.source===s?(n.lastIndex=0,n):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,s,r){let a,l,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=b=>{if(b.indexOf(this.formatSeparator)<0){const _=hA(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,s,{...r,...n,interpolationkey:b}):_}const v=b.split(this.formatSeparator),w=v.shift().trim(),N=v.join(this.formatSeparator).trim();return this.format(hA(n,u,w,this.options.keySeparator,this.options.ignoreJSONStructure),N,s,{...r,...n,interpolationkey:w})};this.resetRegExp();const m=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,g=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>uw(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?uw(this.escape(b)):uw(b)}].forEach(b=>{for(c=0;a=b.regex.exec(e);){const v=a[1].trim();if(l=f(v),l===void 0)if(typeof m=="function"){const N=m(e,a,r);l=at(N)?N:""}else if(r&&Object.prototype.hasOwnProperty.call(r,v))l="";else if(g){l=a[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`),l="";else!at(l)&&!this.useRawValueToEscape&&(l=iA(l));const w=b.safeValue(l);if(e=e.replace(a[0],w),g?(b.regex.lastIndex+=l.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,n,s={}){let r,a,l;const c=(u,f)=>{const m=this.nestingOptionsSeparator;if(u.indexOf(m)<0)return u;const g=u.split(new RegExp(`${m}[ ]*{`));let x=`{${g[1]}`;u=g[0],x=this.interpolate(x,l);const b=x.match(/'/g),v=x.match(/"/g);((b?.length??0)%2===0&&!v||v.length%2!==0)&&(x=x.replace(/'/g,'"'));try{l=JSON.parse(x),f&&(l={...f,...l})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,w),`${u}${m}${x}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,u};for(;r=this.nestingRegexp.exec(e);){let u=[];l={...s},l=l.replace&&!at(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const f=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(f!==-1&&(u=r[1].slice(f).split(this.formatSeparator).map(m=>
60m.trim()).filter(Boolean),r[1]=r[1].slice(0,f)),a=n(c.call(this,r[1].trim(),l),l),a&&r[0]===e&&!at(a))return a;at(a)||(a=iA(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),u.length&&(a=u.reduce((m,g)=>this.format(m,g,s.lng,{...s,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}const aH=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const s=t.split("(");e=s[0].toLowerCase().trim();const r=s[1].substring(0,s[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(l=>{if(l){const[c,...u]=l.split(":"),f=u.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();n[m]||(n[m]=f),f==="false"&&(n[m]=!1),f==="true"&&(n[m]=!0),isNaN(f)||(n[m]=parseInt(f,10))}})}return{formatName:e,formatOptions:n}},mA=t=>{const e={};return(n,s,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});const l=s+JSON.stringify(a);let c=e[l];return c||(c=t(Km(s),r),e[l]=c),c(n)}},oH=t=>(e,n,s)=>t(Km(n),s)(e);class lH{constructor(e={}){this.logger=so.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const s=n.cacheInBuiltFormats?mA:oH;this.formats={number:s((r,a)=>{const l=new Intl.NumberFormat(r,{...a});return c=>l.format(c)}),currency:s((r,a)=>{const l=new Intl.NumberFormat(r,{...a,style:"currency"});return c=>l.format(c)}),datetime:s((r,a)=>{const l=new Intl.DateTimeFormat(r,{...a});return c=>l.format(c)}),relativetime:s((r,a)=>{const l=new Intl.RelativeTimeFormat(r,{...a});return c=>l.format(c,a.range||"day")}),list:s((r,a)=>{const l=new Intl.ListFormat(r,{...a});return c=>l.format(c)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=mA(n)}format(e,n,s,r={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){const c=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,u)=>{const{formatName:f,formatOptions:m}=aH(u);if(this.formats[f]){let g=c;try{const x=r?.formatParams?.[r.interpolationkey]||{},b=x.locale||x.lng||r.locale||r.lng||s;g=this.formats[f](c,b,{...m,...r,...x})}catch(x){this.logger.warn(x)}return g}else this.logger.warn(`there was no format function for ${f}`);return c},e)}}const cH=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class dH extends wb{constructor(e,n,s,r={}){super(),this.backend=e,this.store=n,this.services=s,this.languageUtils=s.languageUtils,this.options=r,this.logger=so.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,r.backend,r)}queueLoad(e,n,s,r){const a={},l={},c={},u={};return e.forEach(f=>{let m=!0;n.forEach(g=>{const x=`${f}|${g}`;!s.reload&&this.store.hasResourceBundle(f,g)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?l[x]===void 0&&(l[x]=!0):(this.state[x]=1,m=!1,l[x]===void 0&&(l[x]=!0),a[x]===void 0&&(a[x]=!0),u[g]===void 0&&(u[g]=!0)))}),m||(c[f]=!0)}),(Object.keys(a).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(e,n,s){const r=e.split("|"),a=r[0],l=r[1];n&&this.emit("failedLoading",a,l,n),!n&&s&&this.store.addResourceBundle(a,l,s,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&s&&(this.state[e]=0);const c={};this.queue.forEach(u=>{YF(u.loaded,[a],l),cH(u,e),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(f=>{c[f]||(c[f]={});const m=u.loaded[f];m.length&&m.forEach(g=>{c[f][g]===void 0&&(c[f][g]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}
60),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(e,n,s,r=0,a=this.retryTimeout,l){if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:s,tried:r,wait:a,callback:l});return}this.readingCalls++;const c=(f,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(f&&m&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,s,r+1,a*2,l)},a);return}l(f,m)},u=this.backend[s].bind(this.backend);if(u.length===2){try{const f=u(e,n);f&&typeof f.then=="function"?f.then(m=>c(null,m)).catch(c):c(null,f)}catch(f){c(f)}return}return u(e,n,c)}prepareLoading(e,n,s={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();at(e)&&(e=this.languageUtils.toResolveHierarchy(e)),at(n)&&(n=[n]);const a=this.queueLoad(e,n,s,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(l=>{this.loadOne(l)})}load(e,n,s){this.prepareLoading(e,n,{},s)}reload(e,n,s){this.prepareLoading(e,n,{reload:!0},s)}loadOne(e,n=""){const s=e.split("|"),r=s[0],a=s[1];this.read(r,a,"read",void 0,void 0,(l,c)=>{l&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,l),!l&&c&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,c),this.loaded(e,l,c)})}saveMissing(e,n,s,r,a,l={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${s}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend?.create){const u={...l,isUpdate:a},f=this.backend.create.bind(this.backend);if(f.length<6)try{let m;f.length===5?m=f(e,n,s,r,u):m=f(e,n,s,r),m&&typeof m.then=="function"?m.then(g=>c(null,g)).catch(c):c(null,m)}catch(m){c(m)}else f(e,n,s,r,c,u)}!e||!e[0]||this.store.addResource(e[0],n,s,r)}}}const hw=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),at(t[1])&&(e.defaultValue=t[1]),at(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(s=>{e[s]=n[s]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),pA=t=>(at(t.ns)&&(t.ns=[t.ns]),at(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),at(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),xx=()=>{},uH=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class pm extends wb{constructor(e={},n){if(super(),this.options=pA(e),this.services={},this.logger=so,this.modules={external:[]},uH(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(at(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const s=hw();this.options={...s,...this.options,...pA(e)},this.options.interpolation={...s.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const r=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?so.init(r(this.modules.logger),this.options):so.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=lH;const m=new cA(this.options);this.store=new oA(this.options.resources,this.options);const g=this.services;g.logger=so,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new rH(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(g.formatter=r(f),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new fA(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new dH(r(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(b,...v)=>
60{this.emit(b,...v)}),this.modules.languageDetector&&(g.languageDetector=r(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=r(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Z0(this.services,this.options),this.translator.on("*",(b,...v)=>{this.emit(b,...v)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=xx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=(...m)=>this.store[f](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=(...m)=>(this.store[f](...m),this)});const c=Mf(),u=()=>{const f=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),n(m,g)};if(this.languages&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e,n=xx){let s=n;const r=at(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const a=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&a.indexOf(f)<0&&a.push(f)})};r?l(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),this.options.preload?.forEach?.(c=>l(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(c)})}else s(null)}reloadResources(e,n,s){const r=Mf();return typeof e=="function"&&(s=e,e=void 0),typeof n=="function"&&(s=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),s||(s=xx),this.services.backendConnector.reload(e,n,a=>{r.resolve(),s(a)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Z6.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const s=this.languages[n];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const s=Mf();this.emit("languageChanging",e);const r=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,u)=>{u?this.isLanguageChangingTo===e&&(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve((...f)=>this.t(...f)),n&&n(c,(...f)=>this.t(...f))},l=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const u=at(c)?c:c&&c[0],f=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(at(c)?[c]:c);f&&(this.language||r(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,m=>{a(m,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,n,s){const r=(a,l,...c)=>{let u;typeof l!="object"?u=this.options.overloadTranslationOptionHandler([a,l].concat(c)):u={...l},u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||s||r.keyPrefix);const f=this.options.keySeparator||".";let m;return u.keyPrefix&&Array.isArray(a)?m=a.map(g=>(typeof g=="function"&&(g=X0(g,{...this.options,...l})),`${u.keyPrefix}${f}${g}`)):(typeof a=="function"&&(a=X0(a,{...this.options,...l})),m=u.keyPrefix?`${u.keyPrefix}${f}${a}
60`:a),this.t(m,u)};return at(e)?r.lng=e:r.lngs=e,r.ns=n,r.keyPrefix=s,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const l=(c,u)=>{const f=this.services.backendConnector.state[`${c}|${u}`];return f===-1||f===0||f===2};if(n.precheck){const c=n.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(s,e)&&(!r||l(a,e)))}loadNamespaces(e,n){const s=Mf();return this.options.ns?(at(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{s.resolve(),n&&n(r)}),s):(n&&n(),Promise.resolve())}loadLanguages(e,n){const s=Mf();at(e)&&(e=[e]);const r=this.options.preload||[],a=e.filter(l=>r.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return a.length?(this.options.preload=r.concat(a),this.loadResources(l=>{s.resolve(),n&&n(l)}),s):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const r=new Intl.Locale(e);if(r&&r.getTextInfo){const a=r.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services?.languageUtils||new cA(hw());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const s=new pm(e,n);return s.createInstance=pm.createInstance,s}cloneInstance(e={},n=xx){const s=e.forkResourceStore;s&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new pm(r);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const c=Object.keys(this.store.data).reduce((u,f)=>(u[f]={...this.store.data[f]},u[f]=Object.keys(u[f]).reduce((m,g)=>(m[g]={...u[f][g]},m),u[f]),u),{});a.store=new oA(c,r),a.services.resourceStore=a.store}if(e.interpolation){const u={...hw().interpolation,...this.options.interpolation,...e.interpolation},f={...r,interpolation:u};a.services.interpolator=new fA(f)}return a.translator=new Z0(a.services,r),a.translator.on("*",(c,...u)=>{a.emit(c,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Qs=pm.createInstance();Qs.createInstance;Qs.dir;Qs.init;Qs.loadResources;Qs.reloadResources;Qs.use;Qs.changeLanguage;Qs.getFixedT;Qs.t;Qs.exists;Qs.setDefaultNamespace;Qs.hasLoadedNamespace;Qs.loadNamespaces;Qs.loadLanguages;var fw,gA;function hH(){return gA||(gA=1,fw={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),fw}var fH=hH();const mH=Dd(fH);var pH=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function xA(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(mH[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var s=t.indexOf("-->");return{type:"comment",comment:s!==-1?t.slice(4,s):""}}for(var r=new RegExp(pH),a=null;(a=r.exec(t))!==null;
60)if(a[0].trim())if(a[1]){var l=a[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),e.attrs[c[0]]=c[1],r.lastIndex--}else a[2]&&(e.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return e}var gH=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,xH=/^\s*$/,yH=Object.create(null);function Q6(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?(function(n){var s=[];for(var r in n)s.push(r+'="'+n[r]+'"');return s.length?" "+s.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(Q6,"")+"</"+e.name+">";case"comment":return t+"<!--"+e.comment+"-->"}}var bH={parse:function(t,e){e||(e={}),e.components||(e.components=yH);var n,s=[],r=[],a=-1,l=!1;if(t.indexOf("<")!==0){var c=t.indexOf("<");s.push({type:"text",content:c===-1?t:t.substring(0,c)})}return t.replace(gH,function(u,f){if(l){if(u!=="</"+n.name+">")return;l=!1}var m,g=u.charAt(1)!=="/",x=u.startsWith("<!--"),b=f+u.length,v=t.charAt(b);if(x){var w=xA(u);return a<0?(s.push(w),s):((m=r[a]).children.push(w),s)}if(g&&(a++,(n=xA(u)).type==="tag"&&e.components[n.name]&&(n.type="component",l=!0),n.voidElement||l||!v||v==="<"||n.children.push({type:"text",content:t.slice(b,t.indexOf("<",b))}),a===0&&s.push(n),(m=r[a-1])&&m.children.push(n),r[a]=n),(!g||n.voidElement)&&(a>-1&&(n.voidElement||n.name===u.slice(2,-1))&&(a--,n=a===-1?s:r[a]),!l&&v!=="<"&&v)){m=a===-1?s:r[a].children;var N=t.indexOf("<",b),_=t.slice(b,N===-1?void 0:N);xH.test(_)&&(_=" "),(N>-1&&a+m.length>=0||_!==" ")&&m.push({type:"text",content:_})}}),s},stringify:function(t){return t.reduce(function(e,n){return e+Q6("",n)},"")}};const w0=(t,e,n,s)=>{const r=[n,{code:e,...s||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(r,"warn","react-i18next::",!0);dr(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...r):console?.warn&&console.warn(...r)},yA={},Nb=(t,e,n,s)=>{dr(n)&&yA[n]||(dr(n)&&(yA[n]=new Date),w0(t,e,n,s))},e5=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},iN=(t,e,n)=>{t.loadNamespaces(e,e5(t,n))},bA=(t,e,n,s)=>{if(dr(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return iN(t,n,s);n.forEach(r=>{t.options.ns.indexOf(r)<0&&t.options.ns.push(r)}),t.loadLanguages(e,e5(t,s))},vH=(t,e,n={})=>!e.languages||!e.languages.length?(Nb(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(s,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,t))return!1}}),dr=t=>typeof t=="string",$o=t=>typeof t=="object"&&t!==null,wH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,NH={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},SH=t=>NH[t],t5=t=>t.replace(wH,SH);let sN={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t5,transDefaultProps:void 0};const _H=(t={})=>{sN={...sN,...t}},GS=()=>sN;let n5;const jH=t=>{n5=t},qS=()=>n5,N0=(t,e)=>{if(!t)return!1;const n=t.props?.children??t.children;return e?n.length>0:!!n},S0=t=>{if(!t)return[];const e=t.props?.children??t.children;return t.props?.i18nIsDynamicList?Yc(e):e},EH=t=>Array.isArray(t)&&t.every(T.isValidElement),Yc=t=>Array.isArray(t)?t:[t],kH=(t,e)=>{const n={...e};return n.props={...e.props,...t.props},n},CH=t=>{const e={};if(!t)return e;const n=s=>{Yc(s).forEach(a=>{dr(a)||(N0(a)?n(S0(a)):$o(a)&&!T.isValidElement(a)&&Object.assign(e,a))})};return n(t),e},i5=(t,e,n,s)=>{if(!t)return"";let r="";const a=Yc(t),l=e?.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((c,u)=>{if(dr(c)){r+=`${c}`;return}if(T.isValidElement(c)){const{props:f,type:m}=c,g=Object.keys(f).length,x=l.indexOf(m)>-1,b=f.children;if(!b&&x&&!g){r+=`<${m}/>`;return}if(!b&&(!x||g)||f.i18nIsDynamicList){r+=`<${u}></${u}>`;return}if(x&&g===1&&dr(b)){r+=`<${m}>${b}</${m}>`;return}const v=i5(b,e,n,s);r+=`<${u}>${v}</${u}>`;return}if(c===null){w0(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:s});return}if($o(c)){const{format:f,...m}=c,g=Object.keys(m);if(g.length===1){const x=f?`${g[0]}, ${f}`:g[0];r+=`{{${x}}}`;return}w0(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:s,child:c});return}w0(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:s,child:c})}),r},TH=(t,e=[],n={})=>
60{if(!t)return t;const s=Object.keys(n),r=[...e,...s];let a="",l=0;for(;l<t.length;)if(t[l]==="<"){let c=!1;const u=t.slice(l).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(u){const f=u[1];(/^\d+$/.test(f)||r.includes(f))&&(c=!0,a+=u[0],l+=u[0].length)}if(!c){const f=t.slice(l).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(f){const m=f[1];(/^\d+$/.test(m)||r.includes(m))&&(c=!0,a+=f[0],l+=f[0].length)}}c||(a+="<",l+=1)}else a+=t[l],l+=1;return a},AH=(t,e,n,s,r,a,l)=>{if(n==="")return[];const c=r.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(c.map(E=>`<${E}`).join("|")).test(n);if(!t&&!e&&!u&&!l)return[n];const f=e??{},m=E=>{Yc(E).forEach(C=>{dr(C)||(N0(C)?m(S0(C)):$o(C)&&!T.isValidElement(C)&&Object.assign(f,C))})};m(t);const g=TH(n,c,f),x=bH.parse(`<0>${g}</0>`),b={...f,...a},v=(E,k,C)=>{const A=S0(E),L=N(A,k.children,C);return EH(A)&&L.length===0||E.props?.i18nIsDynamicList?A:L},w=(E,k,C,A,L)=>{E.dummy?(E.children=k,C.push(T.cloneElement(E,{key:A},L?void 0:k))):C.push(...T.Children.map([E],M=>{const O="data-i18n-is-dynamic-list",P={key:A,[O]:void 0};return M&&M.props&&Object.keys(M.props).forEach(H=>{H==="ref"||H==="children"||H==="i18nIsDynamicList"||H===O||(P[H]=M.props[H])}),T.cloneElement(M,P,L?null:k)}))},N=(E,k,C)=>{const A=Yc(E);return Yc(k).reduce((M,O,P)=>{const H=O.children?.[0]?.content&&s.services.interpolator.interpolate(O.children[0].content,b,s.language);if(O.type==="tag"){let V=A[parseInt(O.name,10)];!V&&e&&(V=e[O.name]),C.length===1&&!V&&(V=C[0][O.name]),V||(V={});const F={...O.attrs};l&&Object.keys(F).forEach(X=>{const xe=F[X];dr(xe)&&(F[X]=t5(xe))});const U=Object.keys(F).length!==0?kH({props:F},V):V,q=T.isValidElement(U),ae=q&&N0(O,!0)&&!O.voidElement,B=u&&$o(U)&&U.dummy&&!q,$=$o(e)&&Object.hasOwnProperty.call(e,O.name);if(dr(U)){const X=s.services.interpolator.interpolate(U,b,s.language);M.push(X)}else if(N0(U)||ae){const X=v(U,O,C);w(U,X,M,P)}else if(B){const X=N(A,O.children,C);w(U,X,M,P)}else if(Number.isNaN(parseFloat(O.name)))if($){const X=v(U,O,C);w(U,X,M,P,O.voidElement)}else if(r.transSupportBasicHtmlNodes&&c.indexOf(O.name)>-1)if(O.voidElement)M.push(T.createElement(O.name,{key:`${O.name}-${P}`}));else{const X=N(A,O.children,C);M.push(T.createElement(O.name,{key:`${O.name}-${P}`},X))}else if(O.voidElement)M.push(`<${O.name} />`);else{const X=N(A,O.children,C);M.push(`<${O.name}>${X}</${O.name}>`)}else if($o(U)&&!q){const X=O.children[0]?H:null;X&&M.push(X)}else w(U,H,M,P,O.children.length!==1||!H)}else if(O.type==="text"){const V=r.transWrapTextNodes,F=typeof r.unescape=="function"?r.unescape:GS().unescape,U=l?F(s.services.interpolator.interpolate(O.content,b,s.language)):s.services.interpolator.interpolate(O.content,b,s.language);V?M.push(T.createElement(V,{key:`${O.name}-${P}`},U)):M.push(U)}return M},[])},_=N([{dummy:!0,children:t||[]}],x,Yc(t||[]));return S0(_[0])},s5=(t,e,n)=>{const s=t.key||e,r=T.cloneElement(t,{key:s});if(!r.props||!r.props.children||n.indexOf(`${e}/>`)<0&&n.indexOf(`${e} />`)<0)return r;function a(){return T.createElement(T.Fragment,null,r)}return T.createElement(a,{key:s})},MH=(t,e)=>t.map((n,s)=>s5(n,s,e)),RH=(t,e)=>{const n={};return Object.keys(t).forEach(s=>{Object.assign(n,{[s]:s5(t[s],s,e)})}),n},OH=(t,e,n,s)=>t?Array.isArray(t)?MH(t,e):$o(t)?RH(t,e):(Nb(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:s}),null):null,DH=t=>!$o(t)||Array.isArray(t)?!1:Object.keys(t).reduce((e,n)=>e&&Number.isNaN(Number.parseFloat(n)),!0);function LH({children:t,count:e,parent:n,i18nKey:s,context:r,tOptions:a={},values:l,defaults:c,components:u,ns:f,i18n:m,t:g,shouldUnescape:x,...b}){const v=m||qS();if(!v)return Nb(v,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:s}),t;const w=g||v.t.bind(v)||(I=>I),N={...GS(),...v.options?.react};let _=f||w.ns||v.options?.defaultNS;_=dr(_)?[_]:_||["translation"];const{transDefaultProps:E}=N,k=E?.tOptions?{...E.tOptions,...a}:a,C=x??E?.shouldUnescape,A=E?.values?{...E.values,...l}:l,L=E?.components?{...E.components,...u}:u,M=i5(t,N,v,s),O=c||k?.defaultValue||M||N.transEmptyNodeValue||(typeof s=="function"?X0(s):s),{hashTransKey:P}=N,H=s||(P?P(M||O):M||O);
60v.options?.interpolation?.defaultVariables?l=A&&Object.keys(A).length>0?{...A,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables}:l=A;const V=CH(t);V&&typeof V.count=="number"&&e===void 0&&(e=V.count);const F=l||e!==void 0&&!v.options?.interpolation?.alwaysFormat||!t?k.interpolation:{interpolation:{...k.interpolation,prefix:"#$?",suffix:"?$#"}},U={...k,context:r||k.context,count:e,...l,...F,defaultValue:O,ns:_};let q=H?w(H,U):O;q===H&&O&&(q=O);const ae=OH(L,q,v,s);let B=ae||t,$=null;DH(ae)&&($=ae,B=t);const X=AH(B,$,q,v,N,U,C),xe=n??N.defaultTransParent;return xe?T.createElement(xe,b,X):X}const IH={type:"3rdParty",init(t){_H(t.options.react),jH(t)}},r5=T.createContext();class PH{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function In({children:t,count:e,parent:n,i18nKey:s,context:r,tOptions:a={},values:l,defaults:c,components:u,ns:f,i18n:m,t:g,shouldUnescape:x,...b}){const{i18n:v,defaultNS:w}=T.useContext(r5)||{},N=m||v||qS(),_=g||N?.t.bind(N);return LH({children:t,count:e,parent:n,i18nKey:s,context:r,tOptions:a,values:l,defaults:c,components:u,ns:f||_?.ns||w||N?.options?.defaultNS,i18n:N,t:g,shouldUnescape:x,...b})}var mw={exports:{}},pw={};/** 61 * @license React 62 * use-sync-external-store-shim.production.js 63 * 64 * Copyright (c) Meta Platforms, Inc. and affiliates. 65 * 66 * This source code is licensed under the MIT license found in the 67 * LICENSE file in the root directory of this source tree. 68 */var vA;function BH(){if(vA)return pw;vA=1;var t=Ba();function e(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}var n=typeof Object.is=="function"?Object.is:e,s=t.useState,r=t.useEffect,a=t.useLayoutEffect,l=t.useDebugValue;function c(g,x){var b=x(),v=s({inst:{value:b,getSnapshot:x}}),w=v[0].inst,N=v[1];return a(function(){w.value=b,w.getSnapshot=x,u(w)&&N({inst:w})},[g,b,x]),r(function(){return u(w)&&N({inst:w}),g(function(){u(w)&&N({inst:w})})},[g]),l(b),b}function u(g){var x=g.getSnapshot;g=g.value;try{var b=x();return!n(g,b)}catch{return!0}}function f(g,x){return x()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return pw.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:m,pw}var wA;function a5(){return wA||(wA=1,mw.exports=BH()),mw.exports}var KS=a5();const zH=(t,e)=>dr(e)?e:$o(e)&&dr(e.defaultValue)?e.defaultValue:Array.isArray(t)?t[t.length-1]:t,FH={t:zH,ready:!1},HH=()=>()=>{},J0=(t,e={})=>{const{i18n:n}=e,{i18n:s,defaultNS:r}=T.useContext(r5)||{},a=n||s||qS();a&&!a.reportNamespaces&&(a.reportNamespaces=new PH),a||Nb(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=T.useMemo(()=>({...GS(),...a?.options?.react,...e}),[a,e]),{useSuspense:c,keyPrefix:u}=l,f=r||a?.options?.defaultNS,m=dr(f)?[f]:f||["translation"],g=T.useMemo(()=>m,m);a?.reportNamespaces?.addUsedNamespaces?.(g);const x=T.useRef(0),b=T.useCallback(P=>{if(!a)return HH;const{bindI18n:H,bindI18nStore:V}=l,F=()=>{x.current+=1,P()};return H&&a.on(H,F),V&&a.store.on(V,F),()=>{H&&H.split(" ").forEach(U=>a.off(U,F)),V&&V.split(" ").forEach(U=>a.store.off(U,F))}},[a,l]),v=T.useRef(),w=T.useCallback(()=>{if(!a)return FH;const P=!!(a.isInitialized||a.initializedStoreOnce)&&g.every(ae=>vH(ae,a,l)),H=e.lng||a.language,V=x.current,F=v.current;if(F&&F.ready===P&&F.lng===H&&F.keyPrefix===u&&F.revision===V)return F;const q={t:a.getFixedT(H,l.nsMode==="fallback"?g:g[0],u),ready:P,lng:H,keyPrefix:u,revision:V};return v.current=q,q},[a,g,u,l,e.lng]),[N,_]=T.useState(0),{t:E,ready:k}=KS.useSyncExternalStore(b,w,w);T.useEffect(()=>{if(a&&!k&&!c){const P=()=>_(H=>H+1);e.lng?bA(a,e.lng,g,P):iN(a,g,P)}},[a,e.lng,g,k,c,N]);const C=a||{},A=T.useRef(null),L=T.useRef(),M=P=>{const H=Object.getOwnPropertyDescriptors(P);H.__original&&delete H.__original;const V=Object.create(Object.getPrototypeOf(P),H);if(!Object.prototype.hasOwnProperty.call(V,"__original"))try{Object.defineProperty(V,"__original",{value:P,writable:!1,enumerable:!1,
68configurable:!1})}catch{}return V},O=T.useMemo(()=>{const P=C,H=P?.language;let V=P;P&&(A.current&&A.current.__original===P?L.current!==H?(V=M(P),A.current=V,L.current=H):V=A.current:(V=M(P),A.current=V,L.current=H));const F=[E,V,k];return F.t=E,F.i18n=V,F.ready=k,F},[E,C,k,C.resolvedLanguage,C.language,C.languages]);if(a&&c&&!k)throw new Promise(P=>{const H=()=>P();e.lng?bA(a,e.lng,g,H):iN(a,g,H)});return O},$H=[{code:"en",label:"English"},{code:"hi",label:"हिà¤à¤¦à¥"}],UH=()=>{const{i18n:t}=J0(),e=n=>{const s=n.target.value;t.changeLanguage(s),localStorage.setItem("lang",s)};return o.jsx("select",{value:t.language,onChange:e,className:"border rounded-md px-3 py-1 text-lg bg-white focus:outline-none focus:ring-2 focus:ring-yellow-400",children:$H.map(n=>o.jsx("option",{value:n.code,children:n.label},n.code))})};function WH(){const[t,e]=T.useState(!1),[n,s]=T.useState(!1),r=gs();Y({maxWidth:768})&&r.pathname;const l=r.pathname.startsWith("/reachout"),c=r.pathname.startsWith("/reachout_meta"),u=r.pathname.startsWith("/vidyashri"),{t:f}=J0();T.useEffect(()=>{document.body.style.overflow=t?"hidden":"";const x=b=>{b.key==="Escape"&&(e(!1),s(!1))};return window.addEventListener("keydown",x),()=>{document.body.style.overflow="",window.removeEventListener("keydown",x)}},[t]),T.useEffect(()=>{const x=b=>{n&&!b.target.closest(".dropdown-container")&&s(!1)};return document.addEventListener("click",x),()=>document.removeEventListener("click",x)},[n]);const m=["Home","About","Life at Amatir","Boarding","Co-curricular","Facilities","Academics","Admissions","Campus Visit","Essential Information","Careers","Blog"],g=x=>r.pathname===x||r.pathname.startsWith(x+"/");return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed sticky inset-x-0 top-0 z-[1200] h-1 "}),o.jsx("header",{className:"fixed inset-x-0 top-1 z-[1200] bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/80 relative overflow-visible",style:{position:"fixed",top:0},children:o.jsxs("nav",{className:"mx-auto flex h-16 md:h-20 w-screen items-center px-6 md:px-12 lg:px-16",children:[o.jsxs("div",{className:"flex items-center",children:[u?null:o.jsxs("div",{className:"hidden items-center gap-8 md:flex",children:[o.jsx(Ve,{to:"/about",className:`text-[12px] tracking-[0.15em] font-bold uppercase ${g("/about")?"text-orange-500":"text-[#1C3664]"} hover:text-orange-500 transition-colors`,children:"About Us"}),o.jsx(Ve,{to:"/life-at-amatir",className:`text-[12px] tracking-[0.15em] font-bold uppercase ${g("/life-at-amatir")?"text-orange-500":"text-[#1C3664]"} hover:text-orange-500 transition-colors`,children:"Life at Amatir"}),o.jsx(Ve,{to:"/contact",smooth:!0,duration:800,offset:-100,className:`text-[12px] tracking-[0.15em] font-bold uppercase ${g("/contact")?"text-orange-500":"text-[#1C3664]"} hover:text-orange-500 transition-colors cursor-pointer`,children:"Contact Us"})]}),o.jsx("div",{className:"pointer-events-none absolute left-3 top-[-7px] md:hidden",children:o.jsx(Ve,{to:u?null:"/",className:"pointer-events-auto block",children:o.jsx("img",{src:"/images/Logo_Blue_vl2ust (3).svg",alt:"Amatir Kanya Gurukul",style:{height:"100px",width:"auto",minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",display:"block",marginTop:"0",position:"relative",zIndex:1300,pointerEvents:"auto"},className:"will-change-transform"})})})]}),o.jsx("div",{className:"flex-1 flex justify-center",children:o.jsx("div",{className:"pointer-events-none absolute left-1/2 -translate-x-1/2 top-[-14px] md:top-[-7px] hidden md:block",children:o.jsx(Ve,{to:`${u?"/vidyashri":"/"}`,className:"pointer-events-auto block",children:o.jsx("img",{src:"/images/Logo_Blue_vl2ust.svg",alt:"Amatir Kanya Gurukul",className:"h-20 md:h-28 w-auto will-change-transform"})})})}),o.jsxs("div",{className:"flex items-center gap-5",children:[u?o.jsx(UH,{}):l||c||u?null:o.jsxs("div",{className:"relative dropdown-container",children:[o.jsxs("button",{onClick:()=>s(!n),className:"inline-flex items-center gap-2 rounded-full bg-[#1C3664] px-4 py-2 text-white shadow transition hover:bg-[#152a4e] md:px-5 cursor-pointer","aria-expanded":n,"aria-haspopup":"true",children:[o.jsx("span",{className:"text-sm md:text-base font-normal",children:"Get in touch"}),o.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:`transition-transform duration-200 ${n?"rotate-180":""} cursor-pointer`,children:o.jsx("path",{d:"M1 1.5L6 5.5L11 1.5",stroke:"#ED6D23",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),n&&o.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 top-full mt-2 w-48 bg-white rounded-lg shadow-lg border border-gray-200 py-2 z-50",children:[o.jsx(Ve,{to:"/contact",onClick:()=>s(!1),className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 transition-colors",children:"Enquire"}),o.jsx(Ve,{to:"/campus-visit",onClick:()=>s(!1),className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 transition-colors",children:"Visit Campus"}),o.jsx(Ve,{to:"/admissions",onClick:()=>s(!1),className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 transition-colors",children:"Apply"})]})]}),u?null:o.jsx("button",{"aria-label":"Open menu","aria-expanded":t,onClick:()=>e(!0),className:"group inline-flex h-10 w-10 items-center justify-center rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1C3664] md:h-11 md:w-11 cursor-pointer",children:o.jsxs("svg",{width:"25",height:"16",viewBox:"0 0 25 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"cursor-pointer",children:[o.jsx("path",{d:"M12.833 1H24.1108",stroke:"black",strokeWidth:"2"}),o.jsx("path",{d:"M6.22266 8.00006L24.1115 8.00006",stroke:"black",strokeWidth:"2"}),o.jsx("path",{d:"M0 15.0001L24.1111 15.0001",stroke:"black",strokeWidth:"2"})]})})]})]})}),o.jsxs("div",{className:["fixed inset-0 z-[1300] flex","transition-all duration-500 ease-[
68cubic-bezier(0.22,1,0.36,1)]",t?"opacity-100":"pointer-events-none opacity-0"].join(" "),role:"dialog","aria-modal":"true","aria-hidden":!t,children:[o.jsx("div",{className:["flex-1 bg-black/20 transition-opacity duration-500",t?"opacity-100":"opacity-0"].join(" "),onClick:()=>e(!1)}),o.jsxs("div",{className:["h-full w-full md:w-1/3 max-w-[420px] text-gray-900","transform transition-transform duration-500",t?"translate-x-0":"translate-x-full","shadow-xl relative"].join(" "),style:{background:"rgba(255, 255, 255, 0.85)",backdropFilter:"blur(20px) saturate(180%)",WebkitBackdropFilter:"blur(20px) saturate(180%)",borderLeft:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 8px 32px 0 rgba(31, 38, 135, 0.37)"},children:[o.jsxs("div",{className:"relative flex items-center justify-between px-4 py-3 md:px-6 border-b border-gray-100",style:{background:"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"},children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("img",{src:"/images/Logo_Blue_vl2ust.svg",alt:"Amatir Kanya Gurukul",className:"h-8 w-auto hidden sm:block"}),o.jsx("span",{className:"sm:hidden font-semibold text-[#1C3664] text-lg",children:"Amatir Kanya Gurukul"})]}),o.jsxs("button",{onClick:()=>e(!1),className:"inline-flex items-center gap-2 rounded-full border border-gray-200 px-3 py-2 text-sm font-medium hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1C3664] cursor-pointer","aria-label":"Close menu",children:[o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:o.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#111111",strokeWidth:"2",strokeLinecap:"round"})}),"Close"]})]}),o.jsxs("div",{className:"h-[calc(100%-72px)] overflow-y-auto px-4 pb-8 md:px-6",children:[o.jsx("div",{className:"grid grid-cols-1 gap-3 pt-6",children:m.map(x=>{const b=x==="Apply Now",v=["Apply Now","Quick Links"].includes(x),w=x==="Apply Now"?"apply":x==="Quick Links"?"quick-links":"",_=(k=>({Home:"/",About:"/about",Admissions:"/admissions",Academics:"/academics",Boarding:"/boarding",Facilities:"/facilities","Life at Amatir":"/life-at-amatir",Blog:"/blogs","Campus Visit":"/campus-visit",Careers:"/careers","Co-curricular":"/co-curricular","Essential Information":"/essential-information"})[k]||"#")(x),E=_==="/"?r.pathname==="/":_!=="#"&&r.pathname.startsWith(_);return v?o.jsxs(GF.Link,{to:w,smooth:!0,duration:800,offset:-100,onClick:()=>e(!1),className:["group relative isolate rounded-2xl border border-gray-200 cursor-pointer","px-5 py-4 transition-all duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]","hover:-translate-y-0.5 hover:shadow-md",b?"bg-[#1C3664] text-white hover:bg-[#152a4e]":E?"bg-[#1C3664]/10 text-[#1C3664] border-[#1C3664]/20":"bg-white/50 text-gray-900 hover:bg-white/70"].join(" "),children:[o.jsx("span",{className:`text-base md:text-lg ${b?"font-semibold":"font-medium"}`,children:x}),o.jsx("span",{className:`absolute right-5 top-1/2 -translate-y-1/2 transition-transform group-hover:translate-x-1 ${b?"text-white":"text-gray-900"}`,children:o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:o.jsx("path",{d:"M6 4l6 5-6 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]},x):o.jsxs(Ve,{to:_,onClick:()=>e(!1),className:["group relative isolate rounded-2xl border border-gray-200","px-5 py-4 transition-all duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]","hover:-translate-y-0.5 hover:shadow-md",b?"bg-[#1C3664] text-white hover:bg-[#152a4e]":E?"bg-[#1C3664]/10 text-[#1C3664] border-[#1C3664]/20":"bg-white/50 text-gray-900 hover:bg-white/70"].join(" "),children:[o.jsx("span",{className:`text-base md:text-lg ${b?"font-semibold":"font-medium"}`,children:x}),o.jsx("span",{className:`absolute right-5 top-1/2 -translate-y-1/2 transition-transform group-hover:translate-x-1 ${b?"text-white":"text-gray-900"}`,children:o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:o.jsx("path",{d:"M6 4l6 5-6 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]},x)})}),o.jsxs("div",{className:"pt-8 text-xs md:text-sm text-gray-500 text-center",children:["© ",new Date().getFullYear()," Amatir Kanya Gurukul. All rights reserved."]})]})]})]})]})}const VH="#0E2349",gw="#ED6D23",GH=()=>{const t=Y({minWidth:1200}),e=Y({minWidth:1024,maxWidth:1199}),n=Y({minWidth:768,maxWidth:1023}),s=Y({minWidth:1024,maxWidth:1100,maxHeight:700});Y({maxWidth:767});const r=gs(),a=r.pathname.startsWith("/reachout"),l=r.pathname.startsWith("/reachout_meta"),c=r.pathname.startsWith("/vidyashri"),u=[{label:"Admissions",href:"/admissions"},{label:"Academics",href:"/academics"},{label:"Boarding",href:"/boarding"},{label:"Facilities",href:"/facilities"},{label:"Life at Amatir",href:"/life-at-amatir"}
68,{label:"Parent Login",href:"https://amatir.edunexttechnologies.com/Index"}],f=({children:g,href:x})=>{const b=()=>s?"max-w-[180px]":t?"max-w-[260px]":e?"max-w-[220px]":n?"max-w-[200px]":"max-w-[260px]";return o.jsx("a",{href:x,className:` 69 flex h-11 w-full ${b()} items-center justify-center 70 rounded-full border border-white/70 px-6 text-center 71 font-roboto text-[15px] leading-none 72 transition-colors hover:bg-white hover:text-[#1C3664] 73 `,style:{color:gw},children:g})},m=({children:g})=>o.jsx("svg",{viewBox:"0 0 24 24",className:"h-5 w-5 shrink-0",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:g});return o.jsxs("footer",{className:"w-full",children:[o.jsxs("div",{className:"relative w-full text-white",style:{backgroundColor:VH},children:[o.jsx("img",{src:"/images/Logo_Blue_vl2ust.svg",alt:"Amatir Kanya Gurukul",className:`pointer-events-none absolute left-0 top-8 hidden select-none md:block ${s?"w-[80px] ml-4":t?"w-[145px] ml-18":e?"w-[100px] ml-8":n?"w-[85px] ml-6":"w-[145px] ml-18"}`,loading:"lazy"}),o.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-8",children:[o.jsx("div",{className:"flex justify-center pt-4 md:hidden",children:o.jsx("img",{src:"/images/Logo_Blue_vl2ust (2).svg",alt:"Amatir Kanya Gurukul",className:`select-none ${s?"w-[100px]":"w-[120px]"}`,loading:"lazy"})}),o.jsx("div",{className:"flex items-center justify-center py-8 md:min-h-[220px] md:justify-end md:py-8",children:o.jsx("div",{className:"w-full md:ml-auto md:w-auto",children:o.jsxs("div",{className:`${c?"flex":"grid"} grid-cols-1 gap-8 ${s?"md:grid-cols-[180px_1fr_1fr] md:gap-4":t?"md:grid-cols-[260px_1fr_1.25fr] md:gap-12":e?"md:grid-cols-[220px_1fr_1fr] md:gap-8":n?"md:grid-cols-[200px_1fr_1fr] md:gap-6":"md:grid-cols-[260px_1fr_1.25fr] md:gap-12"}`,children:[o.jsx("div",{className:"flex flex-col items-center gap-4 md:items-start",children:a||l||c?null:o.jsxs(o.Fragment,{children:[o.jsx(f,{href:"/contact",children:"Enquire Now"}),o.jsx(f,{href:"/campus-visit",children:"Book a Campus Visit"}),o.jsx(f,{href:"/admissions",children:"Apply Now"})]})}),c?null:o.jsxs("div",{className:"text-left md:text-left",children:[o.jsx("h3",{className:`mb-4 font-pt-serif font-normal ${s?"text-[13px] md:text-[15px]":t?"text-[16px] md:text-[18px]":e?"text-[15px] md:text-[17px]":n?"text-[14px] md:text-[16px]":"text-[16px] md:text-[18px]"}`,style:{color:gw},children:"Quick Links"}),o.jsx("ul",{className:"space-y-2",children:u.map(g=>o.jsx("li",{children:o.jsx("a",{className:`font-roboto leading-7 hover:underline ${s?"text-[13px]":t?"text-[16px]":e?"text-[15px]":n?"text-[14px]":"text-[16px]"}`,href:g.href,children:g.label})},g.label))})]}),o.jsxs("div",{className:"text-left md:text-left",children:[o.jsx("h3",{className:`mb-4 font-pt-serif font-normal ${s?"text-[18px] md:text-[22px]":t?"text-[24px] md:text-[32px]":e?"text-[22px] md:text-[28px]":n?"text-[20px] md:text-[24px]":"text-[24px] md:text-[32px]"}`,style:{color:gw},children:"Get In Touch"}),o.jsxs("div",{className:`space-y-3 font-roboto leading-7 ${t?"text-[16px]":e?"text-[15px]":n?"text-[14px]":"text-[16px]"}`,children:[o.jsxs("p",{className:"flex items-start justify-start gap-3",children:[o.jsxs(m,{children:[o.jsx("path",{d:"M4 6h16v12H4z"}),o.jsx("path",{d:"M22 6 12 13 2 6"})]}),o.jsx("a",{href:"mailto:[email protected]",className:"hover:underline",children:"[email protected]"})]}),o.jsxs("p",{className:"flex items-start justify-start gap-3",children:[o.jsx(m,{children:o.jsx("path",{d:"M22 16.92v2a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.07-8.67A2 2 0 0 1 4.11 1h2a2 2 0 0 1 2 1.72c.12.93.31 1.84.57 2.73a2 2 0 0 1-.45 2.11L7 8a16 16 0 0 0 6 6l.44-.23a2 2 0 0 1 2.11-.45c.89.26 1.8.45 2.73.57A2 2 0 0 1 22 16.92z"})}),o.jsx("span",{children:c?o.jsx("a",{href:"tel:+919254837200",className:"hover:underline",children:"+91 9254837200"}):o.jsx("a",{href:"tel:+917027570124",className:"hover:underline",children:"+91 7027570124"})})]}),o.jsxs("p",{className:"flex items-start justify-start gap-3",children:[o.jsxs(m,{children:[o.jsx("path",{d:"M21 10c0 6-9 12-9 12S3 16 3 10a9 9 0 1 1 18 0Z"}),o.jsx("circle",{cx:"12",cy:"10",r:"3"})]}),o.jsxs("span",{children:["Amatir Kanya Gurukul, Bachgaon Gamri,",o.jsx("br",{}),"Lukhi Road, Kurukshetra, Haryana 136119"]})]})]})]})]})})})]})]}),o.jsx("div",{className:"w-full border-t border-gray-200 bg-white",children:o.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col items-center justify-center gap-3 px-4 py-4 text-black md:flex-row md:justify-between md:px-8",children:[o.jsxs("nav",{className:"flex flex-col items-center gap-3 font-roboto text-sm md:flex-row md:gap-x-8 md:gap-y-2",children:[o.jsx(Ve,{to:"/privacy",className:"hover:underline",children:"Privacy Policy"}),o.jsx("span",{className:"hidden text-slate-400 md:inline",children:"â¢"}),o.jsx(Ve,{to:"/terms",className:"hover:underline",children:"Terms of Service"}),o.jsx("span",{className:"hidden text-slate-400 md:inline",children:"â¢"}),o.jsx(Ve,{to:"/cookies",className:"hover:underline",children:"Cookie Policy"})]}),o.jsx("p",{className:"font-roboto text-sm text-center",children:"© 2026 Amatir. All rights reserved."})]})})]})};function o5(t,e){return function(){return t.apply(e,arguments)}}const{toString:qH}=Object.prototype,{getPrototypeOf:oc}=Object,{iterator:Tp,toStringTag:l5}=Symbol,Ym=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),c5=t=>typeof t=="string"&&(t==="__proto__"||t==="constructor"||t==="prototype"),d5=(t,e,n)=>t===Object.prototype||!n&&e===null,KH=t=>{if(!Object.isExtensible(t))return!1;const e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&e.push(...Object.getOwnPropertySymbols(t)),e.every(n=>{if(c5(n))return!1;const s=Object.getOwnPropertyDescriptor(t,n);return!!s&&s.configurable&&s.writable===!0})},Xm=(t,e)=>{let n=t;const s=[];for(;n!=null;){if(s.indexOf(n)!==-1)return!1;s.push(n);const r=oc(n);if(d5(n,r,n===t))return!1;if(Ym(n,e))return!0;n=r}return!1},YH=(t,e)=>t!=null&&Xm(t,e)?t[e]:void 0,XH=t=>{if(t==null||typeof t!="object"&&typeof t!="function")return t;const e=oc(t);if(e===null&&KH(t))return t;const n=Object.create(null),s=Object.create(null),r=[];let a=t;for(;a!=null&&r.indexOf(a)===-1;){r.push(a);const l=a===t?e:oc(a);if(d5(a,l,a===t))break;const c=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&c.push(...Object.getOwnPropertySymbols(a));for(const u of c)c5(u)||Ym(s,u)||(n[u]=t[u],s[u]=!0);a=l}return n},YS=(t=>e=>{const n=qH.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xa=t=>(t=t.toLowerCase(),e=>YS(e)===t),Sb=t=>e=>typeof e===t,{isArray:Nd}=Array,Sd=Sb("undefined");function kh(t){return t!==null&&!Sd(t)&&t.constructor!==null&&!Sd(t.constructor)&&ur(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const u5=xa("ArrayBuffer");function ZH(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&u5(t.buffer),e}const JH=Sb("string"),ur=Sb("function"),h5=Sb("number"),Ch=t=>t!==null&&typeof t=="object",QH=t=>t===!0||t===!1,_0=t=>{if(!Ch(t))return!1;const e=oc(t);return(e===null||e===Object.prototype||oc(e)===null)&&!Xm(t,l5)&&!Xm(t,Tp)},e$=t=>
vendor: 16,023 bytes, lines 73-75
73{if(!Ch(t)||kh(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},t$=xa("Date"),n$=xa("File"),i$=t=>!!(t&&typeof t.uri<"u"),s$=t=>t&&typeof t.getParts<"u",r$=xa("Blob"),a$=xa("FileList"),o$=xa("Set"),l$=t=>Ch(t)&&ur(t.pipe);function c$(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const NA=c$(),SA=typeof NA.FormData<"u"?NA.FormData:void 0,d$=t=>{if(!t)return!1;if(SA&&t instanceof SA)return!0;const e=oc(t);if(!e||e===Object.prototype||!ur(t.append))return!1;const n=YS(t);return n==="formdata"||n==="object"&&ur(t.toString)&&t.toString()==="[object FormData]"},u$=xa("URLSearchParams"),[h$,f$,m$,p$]=["ReadableStream","Request","Response","Headers"].map(xa),g$=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ap(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),Nd(t))for(s=0,r=t.length;s<r;s++)e.call(null,t[s],s,t);else{if(kh(t))return;const a=n?Object.getOwnPropertyNames(t):Object.keys(t),l=a.length;let c;for(s=0;s<l;s++)c=a[s],e.call(null,t[c],c,t)}}function f5(t,e){if(kh(t))return null;e=e.toLowerCase();const n=Object.keys(t);let s=n.length,r;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}const Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,m5=t=>!Sd(t)&&t!==Xc;function rN(...t){const{caseless:e,skipUndefined:n}=m5(this)&&this||{},s={},r=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const c=e&&typeof l=="string"&&f5(s,l)||l,u=Ym(s,c)?s[c]:void 0;_0(u)&&_0(a)?s[c]=rN(u,a):_0(a)?s[c]=rN({},a):Nd(a)?s[c]=a.slice():(!n||!Sd(a))&&(s[c]=a)};for(let a=0,l=t.length;a<l;a++){const c=t[a];if(!c||kh(c)||(Ap(c,r),typeof c!="object"||Nd(c)))continue;const u=Object.getOwnPropertySymbols(c);for(let f=0;f<u.length;f++){const m=u[f];C$.call(c,m)&&r(c[m],m)}}return s}const x$=(t,e,n,{allOwnKeys:s}={})=>(Ap(e,(r,a)=>{n&&ur(r)?Object.defineProperty(t,a,{__proto__:null,value:o5(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),t),y$=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),b$=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},v$=(t,e,n,s)=>{let r,a,l;const c={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),a=r.length;a-- >0;)l=r[a],(!s||s(l,t,e))&&!c[l]&&(e[l]=t[l],c[l]=!0);t=n!==!1&&oc(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},w$=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},N$=t=>{if(!t)return null;if(Nd(t))return t;let e=t.length;if(!h5(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},S$=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&oc(Uint8Array)),_$=(t,e)=>{const s=(t&&t[Tp]).call(t);let r;for(;(r=s.next())&&!r.done;){const a=r.value;e.call(t,a[0],a[1])}},j$=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},E$=xa("HTMLFormElement"),k$=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),{propertyIsEnumerable:C$}=Object.prototype,T$=xa("RegExp"),p5=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};Ap(n,(r,a)=>{let l;(l=e(r,a,t))!==!1&&(s[a]=l||r)}),Object.defineProperties(t,s)},A$=t=>{p5(t,(e,n)=>{if(ur(t)&&["arguments","caller","callee"].includes(n))return!1;const s=t[n];if(ur(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},M$=(t,e)=>{const n={},s=r=>{r.forEach(a=>{n[a]=!0})};return Nd(t)?s(t):s(String(t).split(e)),n},R$=()=>{},O$=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function D$(t){return!!(t&&ur(t.append)&&t[l5]==="FormData"&&t[Tp])}const L$=t=>{const e=new WeakSet,n=s=>{if(Ch(s)){if(e.has(s))return;if(kh(s))return s;if(!("toJSON"in s)){e.add(s);let r;if(o$(s)){r=[];for(const a of s){const l=n(a);!Sd(l)&&r.push(l)}}else r=Nd(s)?[]:{},Ap(s,(a,l)=>{const c=n(a);!Sd(c)&&(r[l]=c)});return e.delete(s),r}}return s};return n(t)},I$=xa("AsyncFunction"),P$=t=>t&&(Ch(t)||ur(t))&&ur(t.then)&&ur(t.catch),g5=((t,e)=>t?setImmediate:e?((n,s)=>(Xc.addEventListener("message",({source:r,data:a})=>{r===Xc&&a===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Xc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ur(Xc.postMessage)),B$=typeof queueMicrotask<"u"?queueMicrotask.bind(Xc):typeof process<"u"&&process.nextTick||g5,x5=t=>t!=null&&ur(t[Tp]),z$=t=>t!=null&&Xm(t,Tp)&&x5(t),J={isArray:Nd,isArrayBuffer:u5,isBuffer:kh,isFormData:d$,isArrayBufferView:ZH,isString:JH,isNumber:h5,isBoolean:QH,isObject:Ch,isPlainObject:_0,isEmptyObject:e$,isReadableStream:h$,isRequest:f$,isResponse:m$,isHeaders:p$,isUndefined:Sd,isDate:t$,isFile:n$,isReactNativeBlob:i$,isReactNative:s$,isBlob:r$,isRegExp:T$,isFunction:ur,isStream:l$,isURLSearchParams:u$,isTypedArray:S$,isFileList:a$,forEach:Ap,merge:rN,extend:x$,trim:g$,stripBOM:y$,inherits:b$,toFlatObject:v$,kindOf:YS,kindOfTest:xa,endsWith:w$,toArray:N$,forEachEntry:_$,matchAll:j$,isHTMLForm:E$,hasOwnProperty:Ym,hasOwnProp:Ym,hasOwnInPrototypeChain:Xm,getSafeProp:YH,toSafeFlatObject:XH,reduceDescriptors:p5,freezeMethods:A$,toObjectSet:M$,toCamelCase:k$,noop:R$,toFiniteNumber:O$,findKey:f5,global:Xc,isContextDefined:m5,isSpecCompliantForm:D$,toJSONObject:L$,isAsyncFn:I$,isThenable:P$,setImmediate:g5,asap:B$,isIterable:x5,isSafeIterable:z$},F$=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),H$=t=>{const e={};let n,s,r;return t&&t.split(` 74`).forEach(function(l){r=l.indexOf(":"),n=l.substring(0,r).trim().toLowerCase(),s=l.substring(r+1).trim();const c=J.hasOwnProp(e,n);!n||c&&J.hasOwnProp(F$,n)||(n==="set-cookie"?c?e[n].push(s):e[n]=[s]:e[n]=c?e[n]+", "+s:s)}),e};function $$(t){let e=0,n=t.length;for(;e<n;){const s=t.charCodeAt(e);if(s!==9&&s!==32)break;e+=1}for(;n>e;){const s=t.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const U$=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),W$=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function XS(t,e){return J.isArray(t)?t.map(n=>XS(n,e)):$$(String(t).replace(e,""))}const V$=t=>XS(t,U$),G$=t=>XS(t,W$);function y5(t){const e=Object.create(null);return J.forEach(t.toJSON(),(n,s)=>{e[s]=G$(n)}),e}const _A=Symbol("internals");function Rf(t){return t&&String(t).trim().toLowerCase()}function j0(t){return t===!1||t==null?t:J.isArray(t)?t.map(j0):V$(String(t))}function q$(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const K$=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function xw(t){let e=0,n=t.length;for(;e<n;){const s=t.charCodeAt(e);if(s!==9&&s!==32)break;e+=1}for(;n>e;){const s=t.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}function Y$(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let s=1;s<e;s++){const r=t.charCodeAt(s);if(r===34||r===92&&(s+=1,s>=e))return t;n+=t[s]}return n}function X$(t){const e=Object.create(null),n=String(t);let s=0,r=!1,a=!1;function l(c){const u=xw(n.slice(s,c)),f=u.indexOf("=");if(f<1)return;const m=xw(u.slice(0,f));if(!K$.test(m))return;const g=m.toLowerCase();if(g==="__proto__"||g==="constructor"||g==="prototype")return;const x=xw(u.slice(f+1));e[g]=Y$(x)}for(let c=0;c<n.length;c++){const u=n.charCodeAt(c);r?a?a=!1:u===92?a=!0:u===34&&(r=!1):u===34?r=!0:(u===44||u===59)&&(l(c),s=c+1)}return l(n.length),e}const Z$=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function yw(t,e,n,s,r){if(J.isFunction(s))return s.call(this,e,n);if(r&&(e=n),!!J.isString(e)){if(J.isString(s))return e.indexOf(s)!==-1;if(J.isRegExp(s))return s.test(e)}}function J$(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function Q$(t,e){const n=J.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{__proto__:null,value:function(r,a,l){return this[s].call(this,e,r,a,l)},configurable:!0})})}let Rs=class{constructor(e){e&&this.set(e)}set(e,n,s){const r=this;function a(c,u,f){const m=Rf(u);if(!m)return;const g=J.findKey(r,m);(!g||r[g]===void 0||f===!0||f===void 0&&r[g]!==!1)&&(r[g||u]=j0(c))}const l=(c,u)=>J.forEach(c,(f,m)=>a(f,m,u));if(J.isPlainObject(e)||e instanceof this.constructor)l(e,n);else if(J.isString(e)&&(e=e.trim())&&!Z$(e))l(H$(e),n);else if(J.isObject(e)&&J.isSafeIterable(e)){let c=Object.create(null),u,f;for(const m of e){if(!J.isArray(m))throw new TypeError("Object iterator must return a key-value pair");f=m[0],J.hasOwnProp(c,f)?(u=c[f],c[f]=J.isArray(u)?[...u,m[1]]:[u,m[1]]):c[f]=m[1]}l(c,n)}else e!=null&&a(n,e,s);return this}get(e,n){if(e=Rf(e),e){const s=J.findKey(this,e);if(s){const r=this[s];if(!n)return r;if(n===!0)return q$(r);if(J.isFunction(n))return n.call(this,r,s);if(J.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Rf(e),e){const s=J.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||yw(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let r=!1;function a(l){if(l=Rf(l),l){const c=J.findKey(s,l);c&&(!n||yw(s,s[c],c,n))&&(delete s[c],r=!0)}}return J.isArray(e)?e.forEach(a):a(e),r}clear(e){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const a=n[s];(!e||yw(this,this[a],a,e,!0))&&(delete this[a],r=!0)}return r}normalize(e){const n=this,s={};return J.forEach(this,(r,a)=>{const l=J.findKey(s,a);if(l){n[l]=j0(r),delete n[a];return}const c=e?J$(a):String(a).trim();c!==a&&delete n[a],n[c]=j0(r),s[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return J.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=e&&J.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 75`)}getSetCookie(){const e=this.get("set-cookie");return J.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return X$(e)}static concat(e,...n){const s=new this(e);return n.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[_A]=this[_A]={accessors:{}}).accessors,r=this.prototype;function a(l){const c=Rf(l);s[c]||(Q$(r,l),s[c]=!0)}return J.isArray(e)?e.forEach(a):a(e),this}};Rs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Rs.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[n]=s}}});J.freezeMethods(Rs);const Q0="[REDACTED ****]";function eU(t){if(J.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(J.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function tU(t,e){const n=new Set(e.map(a=>String(a).toLowerCase())),s=[],r=a=>{if(a===null||typeof a!="object"||J.isBuffer(a))return a;if(s.indexOf(a)!==-1)return;a instanceof Rs&&(a=a.toJSON()),s.push(a);let l;if(J.isArray(a))l=[],a.forEach((c,u)=>{const f=r(c);J.isUndefined(f)||(l[u]=f)});else{if(!J.isPlainObject(a)&&eU(a))return s.pop(),a;l=Object.create(null);for(const[c,u]of Object.entries(a)){const f=n.has(c.toLowerCase())?Q0:r(u);J.isUndefined(f)||(l[c]=f)}}return s.pop(),l};return r(t)}function jA(t){try{return String(t)}catch{return""}}function nU(t){return t.errors.map(n=>{try{return n&&n.message?jA(n.message):jA(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}let Le=class b5 extends Error{static from(e,n,s,r,a,l){let c=e.message;!c&&J.isArray(e.errors)&&e.errors.length&&(c=nU(e));const u=new b5(c,n||e.code,s,r,a);return Object.defineProperty(u,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),l&&Object.assign(u,l),u}constructor(e,n,s,r,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,n=e&&J.hasOwnProp(e,"redact")?e.redact:void 0,s=J.isArray(n)&&n.length>0?tU(e,n):J.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};Le.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Le.ERR_BAD_OPTION="ERR_BAD_OPTION";Le.ECONNABORTED="ECONNABORTED";Le.ETIMEDOUT="ETIMEDOUT";Le.ECONNREFUSED="ECONNREFUSED";Le.ERR_NETWORK="ERR_NETWORK";Le.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Le.ERR_DEPRECATED="ERR_DEPRECATED";Le.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Le.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Le.ERR_CANCELED="ERR_CANCELED";Le.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Le.ERR_INVALID_URL="ERR_INVALID_URL";Le.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const iU=null,v5=100;function aN(t){return J.isPlainObject(t)||J.isArray(t)}function w5(t){return J.endsWith(t,"[]")?t.slice(0,-2):t}function bw(t,e,n){return t?t.concat(e).map(function(r,a){return r=w5(r),!n&&a?"["+r+"]":r}).join(n?".":""):e}function sU(t){return J.isArray(t)&&!t.some(aN)}const rU=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function _b(t,e,n){if(!J.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const s=(E,k)=>{const C=J.getSafeProp(n,E);return J.isUndefined(C)?k:C},r=s("metaTokens",!0),a=s("visitor")||w,l=s("dots",!1),c=s("indexes",!1),u=s("Blob")||typeof Blob<"u"&&Blob,f=s("maxDepth",v5),m=u&&J.isSpecCompliantForm(e),g=[];if(!J.isFunction(a))throw new TypeError("visitor must be a function");function x(E){if(E===null)return"";if(J.isDate(E))return E.toISOString();if(J.isBoolean(E))return E.toString();if(!m&&J.isBlob(E))throw new Le("Blob is not supported. Use a Buffer instead.");if(J.isArrayBuffer(E)||J.isTypedArray(E)){if(m&&typeof u=="function")return new u([E]);throw new Le("Blob is not supported. Use a Buffer instead.",Le.ERR_NOT_SUPPORT)}return E}function b(E){if(E>f)throw new Le("Object is too deeply nested ("+E+" levels). Max depth: "+f,Le.ERR_FORM_DATA_DEPTH_EXCEEDED)}function v(E,k){if(f===1/0)return JSON.stringify(E);const C=[];return JSON.stringify(E,function(L,M){if(!J.isObject(M))return M;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push(M),b(k+C.length-1),M})}function w(E,k,C){let A=E;if(J.isReactNative(e)&&J.isReactNativeBlob(E))return e.append(bw(C,k,l),x(E)),!1;if(E&&!C&&typeof E=="object"){if(J.endsWith(k,"{}"))k=r?k:k.slice(0,-2),E=v(E,1);else if(J.isArray(E)&&sU(E)||(J.isFileList(E)||J.endsWith(k,"[]"))&&(A=J.toArray(E)))return k=w5(k),A.forEach(function(M,O){!(J.isUndefined(M)||M===null)&&e.append(c===!0?bw([k],O,l):c===null?k:k+"[]",x(M))}),!1}return aN(E)?!0:(e.append(bw(C,k,l),x(E)),!1)}const N=Object.assign(rU,{defaultVisitor:w,convertValue:x,isVisitable:aN});function _(E,k,C=0){if(!J.isUndefined(E)){if(b(C),g.indexOf(E)!==-1)throw new Error("Circular reference detected in "+k.join("."));g.push(E),J.forEach(E,function(L,M){(!(J.isUndefined(L)||L===null)&&a.call(e,L,J.isString(M)?M.trim():M,k,N))===!0&&_(L,k?k.concat(M):[M],C+1)}),g.pop()}}if(!J.isObject(t))throw new TypeError("data must be an object");return _(t),e}
75function EA(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(s){return e[s]})}function ZS(t,e){this._pairs=[],t&&_b(t,this,e)}const N5=ZS.prototype;N5.append=function(e,n){this._pairs.push([e,n])};N5.toString=function(e){const n=e?s=>e.call(this,s,EA):EA;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function aU(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function S5(t,e,n){if(!e)return t;t=t||"";const s=J.isFunction(n)?{serialize:n}:n,r=J.getSafeProp(s,"encode")||aU,a=J.getSafeProp(s,"serialize");let l;if(a?l=a(e,s):l=J.isURLSearchParams(e)?e.toString():new ZS(e,s).toString(r),l){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}const Of=Symbol("internals");function _5(t){return t?t.length:0}function kA(t){if(t)for(;t.length&&t[t.length-1]===null;)t.pop()}function Df(t,e){const n=t.handlers,s=_5(n);n!==e.handlersRef?(e.handlersRef=n,e.handlerEntries.clear()):s!==e.handlersLength&&(s?e.handlerEntries.forEach(function(a,l){n[a.index]!==a.handler&&e.handlerEntries.delete(l)}):e.handlerEntries.clear()),e.handlersLength=s}class CA{constructor(){this.handlers=[],this[Of]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,n,s){const r={fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null},a=this[Of];this.handlers==null&&(this.handlers=[]),Df(this,a);const l=a.nextId++;return this.handlers.push(r),a.handlerEntries.set(l,{handler:r,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,l}eject(e){const n=this[Of];Df(this,n);const s=n.handlerEntries.get(e);if(s){if(n.handlerEntries.delete(e),this.handlers[s.index]!==s.handler)return;this.handlers[s.index]=null,n.iterationDepth||(kA(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Df(this,this[Of]))}forEach(e){const n=this[Of];Df(this,n),n.iterationDepth++;try{J.forEach(this.handlers,function(r){r!==null&&e(r)})}finally{--n.iterationDepth||(Df(this,n),kA(this.handlers),n.handlersLength=_5(this.handlers))}}}const JS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},oU=typeof URLSearchParams<"u"?URLSearchParams:ZS,lU=typeof FormData<"u"?FormData:null,cU=typeof Blob<"u"?Blob:null,dU={isBrowser:!0,classes:{URLSearchParams:oU,FormData:lU,Blob:cU},protocols:["http","https","file","blob","url","data"]},QS=typeof window<"u"&&typeof document<"u",oN=typeof navigator=="object"&&navigator||void 0,uU=QS&&(!oN||["ReactNative","NativeScript","NS"].indexOf(oN.product)<0),hU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fU=QS&&window.location.href||"http://localhost",mU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:QS,hasStandardBrowserEnv:uU,hasStandardBrowserWebWorkerEnv:hU,navigator:oN,origin:fU},Symbol.toStringTag,{value:"Module"})),Yi={...mU,...dU};function pU(t,e){return _b(t,new Yi.classes.URLSearchParams,{visitor:function(n,s,r,a){return Yi.isNode&&J.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}const TA=v5;function j5(t){if(t>TA)throw new Le("FormData field is too deeply nested ("+t+" levels). Max depth: "+TA,Le.ERR_FORM_DATA_DEPTH_EXCEEDED)}function gU(t){const e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let s;for(;(s=n.exec(t))!==null;)j5(e.length),e.push(s[0]==="[]"?"":s[1]||s[0]);return e}function xU(t){const e={},n=Object.keys(t);let s;const r=n.length;let a;for(s=0;s<r;s++)a=n[s],e[a]=t[a];return e}function E5(t){function e(n,s,r,a){j5(a);let l=n[a++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),u=a>=n.length;return l=!l&&J.isArray(r)?r.length:l,u?(J.hasOwnProp(r,l)?r[l]=J.isArray(r[l])?r[l].concat(s):[r[l],s]:r[l]=s,!c):((!J.hasOwnProp(r,l)||!J.isObject(r[l]))&&(r[l]=[]),e(n,s,r[l],a)&&J.isArray(r[l])&&(r[l]=xU(r[l])),!c)}if(J.isFormData(t)&&J.isFunction(t.entries)){const n={};return J.forEachEntry(t,(s,r)=>{e(gU(s),r,n,0)}),n}return null}const k5=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),xu=(t,e)=>t!=null&&J.hasOwnProp(t,e)?t[e]:void 0;function yU(t,e,n){if(J.isString(t))try{return(e||JSON.parse)(t),J.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const Mp={transitional:JS,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,a=J.isObject(e);
vendor: 11,963 bytes, line 75
75if(a&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return r?JSON.stringify(E5(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(a){const u=xu(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return pU(e,u).toString();if((c=J.isFileList(e))||s.indexOf("multipart/form-data")>-1){const f=xu(this,"env"),m=f&&f.FormData;return _b(c?{"files[]":e}:e,m&&new m,u)}}return a||r?(n.setContentType("application/json",!1),yU(e)):e}],transformResponse:[function(e){const n=xu(this,"transitional")||Mp.transitional,s=n&&n.forcedJSONParsing,r=xu(this,"responseType"),a=r==="json";if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(s&&!r||a)){const c=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e,xu(this,"parseReviver"))}catch(u){if(c)throw u.name==="SyntaxError"?Le.from(u,Le.ERR_BAD_RESPONSE,this,null,xu(this,"response")):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yi.classes.FormData,Blob:Yi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(k5,t=>{Mp.headers[t]={}});function vw(t,e){const n=this||Mp,s=e||n,r=Rs.from(s.headers);let a=s.data;return J.forEach(t,function(c){a=c.call(n,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function C5(t){return!!(t&&t.__CANCEL__)}let Rp=class extends Le{constructor(e,n,s){super(e??"canceled",Le.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function T5(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new Le("Request failed with status code "+n.status,n.status>=400&&n.status<500?Le.ERR_BAD_REQUEST:Le.ERR_BAD_RESPONSE,n.config,n.request,n))}const bU=/[\t\n\r]/g;function A5(t){if(typeof t!="string")return t;let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e).replace(bU,"")}function ww(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function vU(t,e){t=t||10;const n=new Array(t),s=new Array(t);let r=0,a=0,l;return e=e!==void 0?e:1e3,function(u){const f=Date.now(),m=s[a];l||(l=f),n[r]=u,s[r]=f;let g=a,x=0;for(;g!==r;)x+=n[g++],g=g%t;if(r=(r+1)%t,r===a&&(a=(a+1)%t),f-l<e)return;const b=m&&f-m;return b?Math.round(x*1e3/b):void 0}}function wU(t,e){let n=0,s=1e3/e,r,a;const l=(m,g=Date.now())=>{n=g,r=null,a&&(clearTimeout(a),a=null),t(...m)};return[(...m)=>{const g=Date.now(),x=g-n;x>=s?l(m,g):(r=m,a||(a=setTimeout(()=>{a=null,l(r)},s-x)))},()=>r&&l(r),(...m)=>l(m)]}const ey=(t,e,n=3)=>{let s=0;const r=vU(50,250);return wU(a=>{if(!a||!J.isNumber(a.loaded))return;const l=a.loaded,c=a.lengthComputable?a.total:void 0,u=Math.max(0,c!=null?Math.min(l,c):l),f=Math.max(0,u-s),m=r(f);s=Math.max(s,u);const g={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:m||void 0,estimated:m&&c?(c-u)/m:void 0,event:a,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(g)},n)},AA=(t,e)=>{const n=t!=null;return[s=>e[0]({lengthComputable:n,total:t,loaded:s}),e[1]]},MA=(t,e=J.asap)=>(...n)=>e(()=>t(...n)),NU=Yi.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Yi.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Yi.origin),Yi.navigator&&/(msie|trident)/i.test(Yi.navigator.userAgent)):()=>!0,SU=Yi.hasStandardBrowserEnv?{write(t,e,n,s,r,a,l){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(e)}`];J.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),J.isString(s)&&c.push(`path=${s}`),J.isString(r)&&c.push(`domain=${r}`),a===!0&&c.push("secure"),J.isString(l)&&c.push(`SameSite=${l}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const s=e[n].replace(/^\s+/,""),r=s.indexOf("=");if(r!==-1&&s.slice(0,r)===t)try{return decodeURIComponent(s.slice(r+1))}catch{return s.slice(r+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function _U(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function jU(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}const EU=/^https?:(?!\/\/)/i;function kU(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,n,s="")=>`${n}${s}${Q0}`)}function CU(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Q0}@`),n=e.indexOf("#"),r=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Q0}`);return n===-1?r:`${r}#${kU(e.slice(n+1))}`}function RA(t,e){if(typeof t=="string"){const n=A5(t);if(EU.test(n))throw new Le(`Invalid URL ${JSON.stringify(CU(n))}: missing "//" after protocol`,Le.ERR_INVALID_URL,e)}}function M5(t,e,n,s){RA(e,s);let r=!_U(e);return t&&(r||n===!1)?(RA(t,s),jU(t,e)):e}const OA=t=>t instanceof Rs?{...t}:t,TU=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function _d(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(m,g,x,b){return J.isPlainObject(m)&&J.isPlainObject(g)?J.merge.call({caseless:b},m,g):J.isPlainObject(g)?J.merge({},g):J.isArray(g)?g.slice():g}function r(m,g,x,b){if(J.isUndefined(g)){if(!J.isUndefined(m))return s(void 0,m,x,b)}else return s(m,g,x,b)}function a(m,g){if(!J.isUndefined(g))return s(void 0,g)}function l(m,g){if(J.isUndefined(g)){if(!J.isUndefined(m))return s(void 0,m)}else return s(void 0,g)}function c(m){const g=J.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!J.isUndefined(g))if(J.isPlainObject(g)){if(J.hasOwnProp(g,m))return g[m]}else return;const x=J.hasOwnProp(t,"transitional")?t.transitional:void 0;if(J.isPlainObject(x)&&J.hasOwnProp(x,m))return x[m]}function u(m,g,x){if(J.hasOwnProp(e,x))return s(m,g);if(J.hasOwnProp(t,x))return s(void 0,m)}const f={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:u,headers:(m,g,x)=>r(OA(m),OA(g),x,!0)};return J.forEach(TU({...t,...e}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const x=J.hasOwnProp(f,g)?f[g]:r,b=J.hasOwnProp(t,g)?t[g]:void 0,v=J.hasOwnProp(e,g)?e[g]:void 0,w=x(b,v,g);J.isUndefined(w)&&x!==u||(n[g]=w)}),J.hasOwnProp(e,"validateStatus")&&J.isUndefined(e.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(J.hasOwnProp(t,"validateStatus")?n.validateStatus=s(void 0,t.validateStatus):delete n.validateStatus),n}const AU=["content-type","content-length"];function MU(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([s,r])=>{AU.includes(s.toLowerCase())&&t.set(s,r)})}const RU=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function R5(t){const e=_d({},t),n=x=>J.hasOwnProp(e,x)?e[x]:void 0,s=n("data");let r=n("withXSRFToken");const a=n("xsrfHeaderName"),l=n("xsrfCookieName");let c=n("headers");const u=n("auth"),f=n("baseURL"),m=n("allowAbsoluteUrls"),g=n("url");if(e.headers=c=Rs.from(c),e.url=S5(M5(f,g,m,e),n("params"),n("paramsSerializer")),u){const x=J.getSafeProp(u,"username")||"",b=J.getSafeProp(u,"password")||"";try{c.set("Authorization","Basic "+btoa(x+":"+(b?RU(b):"")))}catch(v){throw Le.from(v,Le.ERR_BAD_OPTION_VALUE,t)}}if(J.isFormData(s)){const x=J.getSafeProp(s,"getHeaders");Yi.hasStandardBrowserEnv||Yi.hasStandardBrowserWebWorkerEnv||J.isReactNative(s)?c.setContentType(void 0):J.isFunction(x)&&MU(c,x.call(s),n("formDataHeaderPolicy"))}if(Yi.hasStandardBrowserEnv&&(J.isFunction(r)&&(r=r(e)),r===!0||r==null&&NU(e.url))){const b=a&&l&&SU.read(l);b&&c.set(a,b)}return e}const OU=typeof XMLHttpRequest<"u",DU=OU&&function(t){return new Promise(function(n,s){const r=R5(t);let a=r.data;const l=Rs.from(r.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:f}=r,m,g,x,b,v,w;function N(){b&&b(),v&&v(),r.cancelToken&&r.cancelToken.unsubscribe(m),r.signal&&r.signal.removeEventListener("abort",m)}let _=new XMLHttpRequest;_.open(r.method.toUpperCase(),r.url,!0),_.timeout=r.timeout;function E(C){if(!_)return;if(_.status===0&&(ww(A5(r.url))||ww(Yi.origin))!=="file"&&!(_.responseURL&&_.responseURL.startsWith("file:"))){s(new Le("Request aborted",Le.ECONNABORTED,t,_)),N(),_=null;return}try{C?w&&w(C):v&&v()}catch(O){setTimeout(()=>{throw O})}if(!_)return;const A=Rs.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:A,config:t,request:_};T5(function(P){n(P),N()},function(P){s(P),N()},M),_=null}"onloadend"in _?_.onloadend=E:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.startsWith("file:"))||setTimeout(E)},_.onabort=function(){_&&(s(new Le("Request aborted",Le.ECONNABORTED,t,_)),N(),_=null)},_.onerror=function(A){const L=A&&A.message?A.message:"Network Error",M=new Le(L,Le.ERR_NETWORK,t,_);M.event=A||null,s(M),N(),_=null},_.ontimeout=function(){let A=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const L=r.transitional||JS;r.timeoutErrorMessage&&(A=r.timeoutErrorMessage),s(new Le(A,L.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,t,_)),N(),_=null},a===void 0&&l.setContentType(null),"setRequestHeader"in _&&J.forEach(y5(l),function(A,L){_.setRequestHeader(L,A)}),J.isUndefined(r.withCredentials)||(_.withCredentials=!!r.withCredentials),c&&c!=="json"&&(_.responseType=r.responseType),f&&([x,v,w]=ey(f,!0),_.addEventListener("progress",x)),u&&_.upload&&([g,b]=ey(u),_.upload.addEventListener("progress",g),_.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(m=C=>{_&&(s(!C||C.type?new Rp(null,t,_):C),_.abort(),N(),_=null)},r.cancelToken&&r.cancelToken.subscribe(m),r.signal&&(r.signal.aborted?m():r.signal.addEventListener("abort",m)));const k=ww(r.url);if(k&&!Yi.protocols.includes(k)){s(new Le("Unsupported protocol "+k+":",Le.ERR_BAD_REQUEST,t)),N();return}_.send(a||null)})},LU=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let s=!1;const r=function(u){if(!s){s=!0,l();const f=u instanceof Error?u:this.reason;n.abort(f instanceof Le?f:new Rp(f instanceof Error?f.message:f))}};let a=e&&setTimeout(()=>{a=null,r(new Le(`timeout of ${e}ms exceeded`,Le.ETIMEDOUT))},e);const l=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(r):u.removeEventListener("abort",r)}),t=null)};t.forEach(u=>{if(!s){if(u.aborted){r.call(u);return}u.addEventListener("abort",r,{once:!0})}});const{signal:c}=n;return c.unsubscribe=()=>J.asap(l),c},IU=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let s=0,r;for(;s<n;)r=s+e,yield t.slice(s,r),s=r},PU=async function*(t,e){for await(const n of BU(t))yield*IU(n,e)},BU=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:s}=await e.read();if(n)break;yield s}}finally{await e.cancel()}},DA=(t,e,n,s)=>{const r=PU(t,e);let a=0,l,c=u=>{l||(l=!0,s&&s(u))};return new ReadableStream({async pull(u){try{const{done:f,value:m}=await r.next();if(f){c(),u.close();return}let g=m.byteLength;if(n){let x=a+=g;n(x)}u.enqueue(new Uint8Array(m))}catch(f){throw c(f),f}}
75,cancel(u){return c(u),r.return()}},{highWaterMark:2})},LA=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,O5=(t,e,n)=>e+2<n&&LA(t.charCodeAt(e+1))&&LA(t.charCodeAt(e+2)),IA=t=>t<=57?t-48:(t&223)-55,zU=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,FU=t=>t===9||t===10||t===12||t===13||t===32,HU=t=>{const e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},$U=t=>{const e=t.length;let n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},UU=t=>{const e=t.length;let n=0,s=0,r=!1;for(let a=0;a<e;a++){let l=t.charCodeAt(a);if(l===37&&O5(t,a,e)&&(l=IA(t.charCodeAt(a+1))*16+IA(t.charCodeAt(a+2)),a+=2),!FU(l)){if(l===61){s++;continue}if(!zU(l)||s>0){r=!0;continue}n++}}return r||s>2||s>0&&(n+s)%4!==0||n%4===1?$U(t):HU(n)},WU=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const n=t.indexOf(",");if(n<0)return 0;const s=t.slice(5,n),r=t.slice(n+1);if(/;base64/i.test(s))return e(r);let l=0;for(let c=0,u=r.length;c<u;c++){const f=r.charCodeAt(c);if(f===37&&O5(r,c,u))l+=1,c+=2;else if(f<128)l+=1;else if(f<2048)l+=2;else if(f>=55296&&f<=56319&&c+1<u){const m=r.charCodeAt(c+1);m>=56320&&m<=57343?(l+=4,c++):l+=3}else l+=3}return l};function VU(t){const e=typeof t=="string"?t.indexOf("#"):-1;return WU(e===-1?t:t.slice(0,e),UU)}const e_="1.20.0",PA=64*1024,GU={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:yx}=J,qU=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),BA=t=>{if(!J.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},zA=(t,...e)=>{try{return!!t(...e)}catch{return!1}},KU=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},YU=t=>{const e=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:n,TextEncoder:s}=e;t=J.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:r,Request:a,Response:l}=t,c=r?yx(r):typeof fetch=="function",u=yx(a),f=yx(l);if(!c)return!1;const m=c&&yx(n),g=c&&(typeof s=="function"?(_=>E=>_.encode(E))(new s):async _=>new Uint8Array(await new a(_).arrayBuffer())),x=u&&m&&zA(()=>{let _=!1;const E=new a(Yi.origin,{body:new n,method:"POST",get duplex(){return _=!0,"half"}}),k=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),_&&!k}),b=f&&m&&zA(()=>J.isReadableStream(new l("").body)),v={stream:b&&(_=>_.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!v[_]&&(v[_]=(E,k)=>{let C=E&&E[_];if(C)return C.call(E);throw new Le(`Response type '${_}' is not supported`,Le.ERR_NOT_SUPPORT,k)})});const w=async _=>{if(_==null)return 0;if(J.isBlob(_))return _.size;if(J.isSpecCompliantForm(_))return(await new a(Yi.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(J.isArrayBufferView(_)||J.isArrayBuffer(_))return _.byteLength;if(J.isURLSearchParams(_)&&(_=_+""),J.isString(_))return(await g(_)).byteLength},N=async(_,E)=>{const k=J.toFiniteNumber(_.getContentLength());return k??w(E)};return async _=>{let{url:E,method:k,data:C,signal:A,cancelToken:L,timeout:M,onDownloadProgress:O,onUploadProgress:P,responseType:H,headers:V,withCredentials:F="same-origin",fetchOptions:U,maxContentLength:q,maxBodyLength:ae,maxRedirects:B}=R5(_);const $=J.isNumber(q)&&q>-1,X=J.isNumber(ae)&&ae>-1,xe=Oe=>J.hasOwnProp(_,Oe)?_[Oe]:void 0;let I=r||fetch;H=H?(H+"").toLowerCase():"text";let Z=LU([A,L&&L.toAbortSignal()],M),le=null;const fe=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let we,Ie=null;const Re=()=>new Le("Request body larger than maxBodyLength limit",Le.ERR_BAD_REQUEST,_,le);try{let Oe;const Te=xe("auth");if(Te){const Pe=J.getSafeProp(Te,"username")||"",Mt=J.getSafeProp(Te,"password")||"";Oe={username:Pe,password:Mt}}if(KU(E)){const Pe=new URL(E,Yi.origin);if(!Oe&&(Pe.username||Pe.password)){const Mt=BA(Pe.username),xn=BA(Pe.password);Oe={username:Mt,password:xn}}(Pe.username||Pe.password)&&(Pe.username="",Pe.password="",E=Pe.href)}if(Oe&&(V.delete("authorization"),V.set("Authorization","Basic "+btoa(qU((Oe.username||"")+":"+(Oe.password||""))))),$&&typeof E=="string"&&E.startsWith("data:")&&VU(E)>q)throw new Le("maxContentLength size of "+q+" exceeded",Le.ERR_BAD_RESPONSE,_,le);if(X&&k!=="get"&&k!=="head"){const Pe=await w(C);if(typeof Pe=="number"&&isFinite(Pe)&&(we=Pe,Pe>ae))throw Re()}const Qe=X&&(J.isReadableStream(C)||J.isStream(C)),Ze=(Pe,Mt,xn)=>DA(Pe,PA,pt=>{if(X&&pt>ae)throw Ie=Re();Mt&&Mt(pt)},xn);
75if(x&&k!=="get"&&k!=="head"&&(P||Qe)){if(we=we??await N(V,C),we!==0||Qe){let Pe=new a(E,{method:"POST",body:C,duplex:"half"}),Mt;if(J.isFormData(C)&&(Mt=Pe.headers.get("content-type"))&&V.setContentType(Mt),Pe.body){const[xn,pt]=P&&AA(we,ey(MA(P)))||[];C=Ze(Pe.body,xn,pt)}}}else if(Qe&&!u&&m&&k!=="get"&&k!=="head")C=Ze(C);else if(Qe&&u&&!x&&k!=="get"&&k!=="head")throw new Le("Stream request bodies are not supported by the current fetch implementation",Le.ERR_NOT_SUPPORT,_,le);J.isString(F)||(F=F?"include":"omit");const Tt=u&&"credentials"in a.prototype;if(J.isFormData(C)){const Pe=V.getContentType();Pe&&/^multipart\/form-data/i.test(Pe)&&!/boundary=/i.test(Pe)&&V.delete("content-type")}V.set("User-Agent","axios/"+e_,!1);const mt=U==null?U:Object.assign(Object.create(null),U);mt&&(delete mt.body,delete mt.headers,delete mt.method,delete mt.signal,delete mt.duplex,delete mt.credentials);const Ke=Object.assign(Object.create(null),mt,{signal:Z,method:k.toUpperCase(),headers:y5(V.normalize()),body:C,duplex:"half",credentials:Tt?F:void 0});u&&(J.forEach(GU,(Pe,Mt)=>{Ke[Mt]===void 0&&(Ke[Mt]=Pe)}),Ke.signal===void 0&&(Ke.signal=null),Ke.body===void 0&&(Ke.body=null)),B===0&&(Ke.redirect="manual",mt&&(mt.redirect="manual")),le=u&&new a(E,Ke);let ct=await(u?I(le,mt):I(E,Ke));const kn=Rs.from(ct.headers);if($){const Pe=J.toFiniteNumber(kn.getContentLength());if(Pe!=null&&Pe>q)throw new Le("maxContentLength size of "+q+" exceeded",Le.ERR_BAD_RESPONSE,_,le)}const et=b&&(H==="stream"||H==="response");if(b&&ct.body&&(O||$||et&&fe)){const Pe={};["status","statusText","headers"].forEach(Ft=>{Pe[Ft]=ct[Ft]});const Mt=J.toFiniteNumber(kn.getContentLength()),[xn,pt]=O&&AA(Mt,ey(MA(O),!0))||[];let Fi=0;const ji=Ft=>{if($&&(Fi=Ft,Fi>q))throw new Le("maxContentLength size of "+q+" exceeded",Le.ERR_BAD_RESPONSE,_,le);xn&&xn(Ft)};ct=new l(DA(ct.body,PA,ji,()=>{pt&&pt(),fe&&fe()}),Pe)}H=H||"text";let se=await v[J.findKey(v,H)||"text"](ct,_);if($&&!b&&!et){let Pe;if(se!=null&&(typeof se.byteLength=="number"?Pe=se.byteLength:typeof se.size=="number"?Pe=se.size:typeof se=="string"&&(Pe=typeof s=="function"?new s().encode(se).byteLength:se.length)),typeof Pe=="number"&&Pe>q)throw new Le("maxContentLength size of "+q+" exceeded",Le.ERR_BAD_RESPONSE,_,le)}return!et&&fe&&fe(),await new Promise((Pe,Mt)=>{T5(Pe,Mt,{data:se,headers:Rs.from(ct.headers),status:ct.status,statusText:ct.statusText,config:_,request:le})})}catch(Oe){if(fe&&fe(),Z&&Z.aborted&&Z.reason instanceof Le){const Te=Z.reason;throw Te.config=_,le&&(Te.request=le),Oe!==Te&&Object.defineProperty(Te,"cause",{__proto__:null,value:Oe,writable:!0,enumerable:!1,configurable:!0}),Te}if(Ie)throw le&&!Ie.request&&(Ie.request=le),Ie;if(Oe instanceof Le)throw le&&!Oe.request&&(Oe.request=le),Oe;if(Oe&&Oe.name==="TypeError"&&/Load failed|fetch/i.test(Oe.message)){const Te=new Le("Network Error",Le.ERR_NETWORK,_,le,Oe&&Oe.response);throw Object.defineProperty(Te,"cause",{__proto__:null,value:Oe.cause||Oe,writable:!0,enumerable:!1,configurable:!0}),Te}throw Le.from(Oe,Oe&&Oe.code,_,le,Oe&&Oe.response)}}},XU=new Map,D5=t=>{let e=t&&t.env||{};const{fetch:n,Request:s,Response:r}=e,a=[s,r,n];let l=a.length,c=l,u,f,m=XU;for(;c--;)u=a[c],f=m.get(u),f===void 0&&m.set(u,f=c?new Map:YU(e)),m=f;return f};D5();const t_={http:iU,xhr:DU,fetch:{get:D5}};J.forEach(t_,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const FA=t=>`- ${t}`,ZU=t=>J.isFunction(t)||t===null||t===!1;function JU(t,e){t=J.isArray(t)?t:[t];const{length:n}=t;let s,r;const a={};for(let l=0;l<n;l++){s=t[l];let c;if(r=s,!ZU(s)&&(r=t_[(c=String(s)).toLowerCase()],r===void 0))throw new Le(`Unknown adapter '${c}'`);if(r&&(J.isFunction(r)||(r=r.get(e))))break;a[c||"#"+l]=r}if(!r){const l=Object.entries(a).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?l.length>1?`since : 76`+l.map(FA).join(` 77`):" "+FA(l[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+c,Le.ERR_NOT_SUPPORT)}return r}
vendor: 5,506 bytes, lines 77-81
77const L5={getAdapter:JU,adapters:t_};function Nw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rp(null,t)}function Sw(t){const e=J.toSafeFlatObject(t);return Nw(e),e.headers=Rs.from(J.getSafeProp(e,"headers")),e.data=vw.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),L5.getAdapter(e.adapter||Mp.adapter,e)(e).then(function(r){Nw(e),e.response=r;try{r.data=vw.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Rs.from(r.headers),r},function(r){if(!C5(r)&&(Nw(e),r&&r.response)){e.response=r.response;try{r.response.data=vw.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Rs.from(r.response.headers)}return Promise.reject(r)})}const jb={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{jb[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const HA={};jb.transitional=function(e,n,s){function r(a,l){return"[Axios v"+e_+"] Transitional option '"+a+"'"+l+(s?". "+s:"")}return(a,l,c)=>{if(e===!1)throw new Le(r(l," has been removed"+(n?" in "+n:"")),Le.ERR_DEPRECATED);return n&&!HA[l]&&(HA[l]=!0,console.warn(r(l," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,l,c):!0}};jb.spelling=function(e){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function QU(t,e,n){if(typeof t!="object"||t===null)throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let r=s.length;for(;r-- >0;){const a=s[r],l=Object.prototype.hasOwnProperty.call(e,a)?e[a]:void 0;if(l){const c=t[a],u=c===void 0||l(c,a,t);if(u!==!0)throw new Le("option "+a+" must be "+u,Le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Le("Unknown option "+a,Le.ERR_BAD_OPTION)}}const E0={assertOptions:QU,validators:jb},Ss=E0.validators;let ad=class{constructor(e){this.defaults=e||{},this.interceptors={request:new CA,response:new CA}}async request(e,n){try{return await this._request(e,n)}catch(s){if(s instanceof Error)try{let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const a=r.stack;let l="";if(typeof a=="string"){const c=a.indexOf(` 78`);l=c===-1?"":a.slice(c+1)}if(!s.stack)s.stack=l;else if(l){const c=l.indexOf(` 79`),u=c===-1?-1:l.indexOf(` 80`,c+1),f=u===-1?"":l.slice(u+1);String(s.stack).endsWith(f)||(s.stack+=` 81`+l)}}catch{}throw s}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_d(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:a}=n;s!==void 0&&E0.assertOptions(s,{silentJSONParsing:Ss.transitional(Ss.boolean),forcedJSONParsing:Ss.transitional(Ss.boolean),clarifyTimeoutError:Ss.transitional(Ss.boolean),legacyInterceptorReqResOrdering:Ss.transitional(Ss.boolean),advertiseZstdAcceptEncoding:Ss.transitional(Ss.boolean),validateStatusUndefinedResolves:Ss.transitional(Ss.boolean)},!1),r!=null&&(J.isFunction(r)?n.paramsSerializer={serialize:r}:E0.assertOptions(r,{encode:Ss.function,serialize:Ss.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),E0.assertOptions(n,{baseUrl:Ss.spelling("baseURL"),withXsrfToken:Ss.spelling("withXSRFToken")},!0),n.method=(J.getSafeProp(n,"method")||J.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=a&&J.merge(a.common,a[n.method]);a&&J.forEach(k5.concat("common"),v=>{delete a[v]}),n.headers=Rs.concat(l,a);const c=[];let u=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;u=u&&w.synchronous;const N=n.transitional||JS;N&&N.legacyInterceptorReqResOrdering?c.unshift(w.fulfilled,w.rejected):c.push(w.fulfilled,w.rejected)});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let m,g=0,x;if(!u){const v=[Sw.bind(this),void 0];for(v.unshift(...c),v.push(...f),x=v.length,m=Promise.resolve(n);g<x;)m=m.then(v[g++],v[g++]);return m}x=c.length;let b=n;for(;g<x;){const v=c[g++],w=c[g++];try{b=v?v(b):b}catch(N){if(!w){m=Promise.reject(N);break}try{const _=w.call(this,N);J.isThenable(_)&&(m=Promise.resolve(_).then(()=>Sw.call(this,b)))}catch(_){m=Promise.reject(_)}break}}if(!m)try{m=Sw.call(this,b)}catch(v){m=Promise.reject(v)}for(g=0,x=f.length;g<x;)m=m.then(f[g++],f[g++]);return m}getUri(e){e=_d(this.defaults,e);const n=M5(e.baseURL,e.url,e.allowAbsoluteUrls,e);return S5(n,e.params,e.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(e){ad.prototype[e]=function(n,s){return this.request(_d(s||{},{method:e,url:n,data:s&&J.hasOwnProp(s,"data")?s.data:void 0}))}});J.forEach(["post","put","patch","query"],function(e){function n(s){return function(a,l,c){return this.request(_d(c||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}ad.prototype[e]=n(),e!=="query"&&(ad.prototype[e+"Form"]=n(!0))});let eW=class I5{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(r=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](r);s._listeners=null}),this.promise.then=r=>{let a;const l=new Promise(c=>{s.subscribe(c),a=c}).then(r);return l.cancel=function(){s.unsubscribe(a)},l},e(function(a,l,c){s.reason||(s.reason=new Rp(a,l,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
81subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=s=>{e.abort(s)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new I5(function(r){e=r}),cancel:e}}};function tW(t){return function(n){return t.apply(null,n)}}function nW(t){return J.isObject(t)&&t.isAxiosError===!0}const k0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(k0).forEach(([t,e])=>{k0[e]===void 0&&(k0[e]=t)});function P5(t){const e=new ad(t),n=o5(ad.prototype.request,e);return J.extend(n,ad.prototype,e,{allOwnKeys:!0}),J.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return P5(_d(t,r))},n}const fi=P5(Mp);fi.Axios=ad;fi.CanceledError=Rp;fi.CancelToken=eW;fi.isCancel=C5;fi.VERSION=e_;fi.toFormData=_b;fi.AxiosError=Le;fi.Cancel=fi.CanceledError;fi.all=function(e){return Promise.all(e)};fi.spread=tW;fi.isAxiosError=nW;fi.mergeConfig=_d;fi.AxiosHeaders=Rs;fi.formToJSON=t=>E5(J.isHTMLForm(t)?new FormData(t):t);fi.getAdapter=L5.getAdapter;fi.HttpStatusCode=k0;fi.default=fi;const{Axios:yhe,AxiosError:bhe,CanceledError:vhe,isCancel:whe,CancelToken:Nhe,VERSION:She,all:_he,Cancel:jhe,isAxiosError:Ehe,spread:khe,toFormData:Che,AxiosHeaders:The,HttpStatusCode:Ahe,formToJSON:Mhe,getAdapter:Rhe,mergeConfig:Ohe,create:Dhe}=fi,iW="https://amatir-website.onrender.com/api",ms=fi.create({baseURL:iW,headers:{"Content-Type":"application/json"}});ms.interceptors.request.use(t=>{const e=localStorage.getItem("admin_token");return e&&(t.headers.Authorization=`Bearer ${e}`),t});ms.interceptors.response.use(t=>t,t=>(t.response?.status===401&&(localStorage.removeItem("admin_token"),localStorage.removeItem("admin_user"),window.location.pathname.startsWith("/dashboard")&&(window.location.href="/admin-login")),Promise.reject(t)));const B5=T.createContext(null);function sW({children:t}){const[e,n]=T.useState(()=>{try{const c=localStorage.getItem("admin_user");return c?JSON.parse(c):null}catch{return null}}),[s,r]=T.useState(!0);T.useEffect(()=>{if(!localStorage.getItem("admin_token")){r(!1);return}ms.get("/auth/me").then(({data:u})=>{n(u.admin),localStorage.setItem("admin_user",JSON.stringify(u.admin))}).catch(()=>{localStorage.removeItem("admin_token"),localStorage.removeItem("admin_user"),n(null)}).finally(()=>r(!1))},[]);const a=T.useCallback(async(c,u)=>{const{data:f}=await ms.post("/auth/login",{username:c,password:u});return localStorage.setItem("admin_token",f.token),localStorage.setItem("admin_user",JSON.stringify(f.admin)),n(f.admin),f},[]),l=T.useCallback(()=>{localStorage.removeItem("admin_token"),localStorage.removeItem("admin_user"),n(null)},[]);return o.jsx(B5.Provider,{value:{admin:e,loading:s,login:a,logout:l,isAuthenticated:!!e},children:t})}function Op(){const t=T.useContext(B5);if(!t)throw new Error("useAuth must be used within AuthProvider");return t}function bx({children:t}){const{isAuthenticated:e,loading:n}=Op(),s=gs();return n?o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[#f5f7fa]",children:o.jsxs("div",{className:"flex flex-col items-center gap-3",children:[o.jsx("div",{className:"w-10 h-10 border-4 border-[#1C3664] border-t-transparent roun
81ded-full animate-spin"}),o.jsx("p",{className:"text-[#1C3664] font-medium text-sm",children:"Verifying sessionâ¦"})]})}):e?t:o.jsx(B6,{to:"/admin-login",state:{from:s},replace:!0})}function rW({children:t}){const{isAuthenticated:e,loading:n}=Op();return n?o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[#f5f7fa]",children:o.jsx("div",{className:"w-10 h-10 border-4 border-[#1C3664] border-t-transparent rounded-full animate-spin"})}):e?o.jsx(B6,{to:"/dashboard",replace:!0}):t}function aW(){const{login:t}=Op(),e=Is(),s=gs().state?.from?.pathname||"/dashboard",[r,a]=T.useState({username:"",password:""}),[l,c]=T.useState(""),[u,f]=T.useState(!1),[m,g]=T.useState(!1),x=v=>{a(w=>({...w,[v.target.name]:v.target.value})),c("")},b=async v=>{if(v.preventDefault(),!r.username.trim()||!r.password){c("Please enter both username and password.");return}f(!0);try{await t(r.username.trim(),r.password),e(s,{replace:!0})}catch(w){c(w.response?.data?.message||"Login failed. Please try again.")}finally{f(!1)}};return o.jsxs("div",{className:"min-h-screen flex flex-col",style:{background:"linear-gradient(135deg, #0E2349 0%, #1C3664 60%, #2a4a84 100%)"},children:[o.jsxs("div",{className:"flex items-center justify-between px-6 py-4",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("img",{src:"/images/Logo_Blue_vl2ust (3).svg",alt:"Amatir",className:"h-10 w-auto brightness-0 invert",onError:v=>{v.target.style.display="none"}}),o.jsx("span",{className:"text-white/70 text-sm font-medium tracking-wider uppercase",children:"Admin Portal"})]}),o.jsxs("a",{href:"/",className:"text-white/60 hover:text-white text-sm transition-colors flex items-center gap-1",children:[o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),"Back to website"]})]}),o.jsx("div",{className:"flex-1 flex items-center justify-center px-4 py-12",children:o.jsxs("div",{className:"w-full max-w-md",children:[o.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl overflow-hidden",children:[o.jsx("div",{className:"h-1.5 bg-gradient-to-r from-[#ED6D23] to-[#f5883f]"}),o.jsxs("div",{className:"px-8 pt-8 pb-10",children:[o.jsxs("div",{className:"mb-8 text-center",children:[o.jsx("h1",{className:"text-[#1C3664] text-3xl mb-1.5",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Admin Login"}),o.jsx("p",{className:"text-[#64748b] text-sm",children:"Sign in to manage your blog content"})]}),l&&o.jsxs("div",{className:"mb-5 flex items-start gap-2.5 bg-red-50 border border-red-200 rounded-lg px-4 py-3",children:[o.jsx("svg",{className:"w-5 h-5 text-red-500 mt-0.5 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o.jsx("p",{className:"text-red-700 text-sm",children:l})]}),o.jsxs("form",{onSubmit:b,className:"space-y-5",noValidate:!0,children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-[#1C3664] text-sm font-semibold mb-1.5",htmlFor:"username",children:"Username"}),o.jsxs("div",{className:"relative",children:[o.jsx("span",{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-[#94a3b8]",children:o.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),o.jsx("input",{id:"username",name:"username",type:"text",autoComplete:"username",value:r.username,onChange:x,placeholder:"Enter your username",className:"w-full pl-10 pr-4 py-3 border border-[#e2e8f0] rounded-lg text-[#1C3664] text-sm placeholder-[#94a3b8] focus:outline-none focus:border-[#1C3664] focus:ring-2 focus:ring-[#1C3664]/10 transition-all"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-[#1C3664] text-sm font-semibold mb-1.5",htmlFor:"password",children:"Password"}),o.jsxs("div",{className:"relative",children:[o.jsx("span",{className:"absolute left-3.5 to
81p-1/2 -translate-y-1/2 text-[#94a3b8]",children:o.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),o.jsx("input",{id:"password",name:"password",type:m?"text":"password",autoComplete:"current-password",value:r.password,onChange:x,placeholder:"Enter your password",className:"w-full pl-10 pr-11 py-3 border border-[#e2e8f0] rounded-lg text-[#1C3664] text-sm placeholder-[#94a3b8] focus:outline-none focus:border-[#1C3664] focus:ring-2 focus:ring-[#1C3664]/10 transition-all"}),o.jsx("button",{type:"button",onClick:()=>g(v=>!v),className:"absolute right-3.5 top-1/2 -translate-y-1/2 text-[#94a3b8] hover:text-[#1C3664] transition-colors","aria-label":m?"Hide password":"Show password",children:m?o.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}):o.jsxs("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})})]})]}),o.jsx("button",{type:"submit",disabled:u,className:"w-full py-3.5 rounded-lg font-semibold text-white text-sm tracking-wide transition-all disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{background:u?"#2a4a84":"linear-gradient(135deg, #1C3664 0%, #2a4a84 100%)"},children:u?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"w-4 h-4 border-2 border-white/40 border-t-white rounded-full animate-spin"}),"Signing inâ¦"]}):o.jsxs(o.Fragment,{children:["Sign In",o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]})})]})]})]}),o.jsxs("p",{className:"text-center text-white/40 text-xs mt-6",children:["© ",new Date().getFullYear()," Amatir Kanya Gurukul â Restricted Access"]})]})})]})}const oW=[{label:"Dashboard",to:"/dashboard",icon:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})},{label:"All Blogs",to:"/dashboard/blogs",icon:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})})}];function ty({children:t}){const{admin:e,logout:n}=Op(),s=gs(),r=Is(),[a,l]=T.useState(!1),c=()=>{n(),r("/admin-login",{replace:!0})},u=f=>s.pathname===f||f!=="/dashboard"&&s.pathname.startsWith(f);return o.jsxs("div",{className:"h-screen flex bg-[#f0f4f8] overflow-hidden",children:[a&&o.jsx("div",{className:"fixed inset-0 bg-black/50 z-30 lg:hidden",onClick:()=>l(!1)}),o.jsxs("aside",{className:`fixed top-0 left-0 h-full w-64 z-40 flex flex-col transition-transform duration-300 lg:translate-x-0 lg:sticky lg:top-0 lg:h-screen lg:z-auto ${a?"translate-x-0":"-translate-x-full"}`,style:{background:"linear-gradient(180deg, #0E2349 0%, #1C3664 100%)"},children:[o.jsxs("div",{className:"px-6 py-5 border-b border-white/10 flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("img",{src:"/images/Logo_Blue_vl2ust.svg",alt:"Amatir",className:"h-8 w-auto ",onError:f=>{f.target.style.display="none"}}),o.jsxs("div",{children:[o.jsx("p",{className:"text-white text-xs font-bold tracking-widest uppercase leading-none",children:"Amatir"}),o.jsx("p",{className:"text-white/50 text-[10px] tracking-wider mt-0.5",children:"Admin Panel"})]})]}),o.jsx("button",{onClick:()=>l(!1),className:"lg:hidden text-white/50 hover:text-white",children:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsx("nav",{className:"flex-1 px-4 py-6 space-y-1 overflow-y-auto",children:oW.map(({label:f,to:m,icon:g})=>
81o.jsxs(Ve,{to:m,onClick:()=>l(!1),className:`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-all ${u(m)?"bg-[#ED6D23] text-white shadow-lg shadow-orange-900/30":"text-white/70 hover:text-white hover:bg-white/10"}`,children:[g,f]},m))}),o.jsxs("div",{className:"px-4 py-4 border-t border-white/10",children:[o.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 mb-2",children:[o.jsx("div",{className:"w-8 h-8 rounded-full bg-[#ED6D23]/20 border border-[#ED6D23]/40 flex items-center justify-center shrink-0",children:o.jsx("span",{className:"text-[#ED6D23] text-xs font-bold uppercase",children:e?.username?.[0]||"A"})}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-white text-sm font-medium truncate",children:e?.username}),o.jsx("p",{className:"text-white/40 text-xs",children:"Administrator"})]})]}),o.jsxs("button",{onClick:c,className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-white/60 hover:text-white hover:bg-white/10 text-sm transition-all",children:[o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),"Sign Out"]})]})]}),o.jsxs("div",{className:"flex-1 flex flex-col min-w-0 h-screen overflow-hidden",children:[o.jsxs("header",{className:"bg-white border-b border-[#e2e8f0] h-16 flex items-center px-4 lg:px-6 gap-4 sticky top-0 z-20",children:[o.jsx("button",{className:"lg:hidden text-[#1C3664] p-1.5",onClick:()=>l(!0),"aria-label":"Open menu",children:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})}),o.jsx("div",{className:"flex-1"}),o.jsxs(Ve,{to:"/blogs",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:flex items-center gap-1.5 text-xs text-[#64748b] hover:text-[#1C3664] transition-colors border border-[#e2e8f0] rounded-lg px-3 py-1.5",children:[o.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),"View Live Blog"]})]}),o.jsx("main",{className:"flex-1 p-4 lg:p-6 overflow-y-auto",children:t})]})]})}function _w({label:t,value:e,icon:n,color:s,to:r}){const a=o.jsxs("div",{className:"bg-white rounded-xl p-5 flex items-center gap-4 shadow-sm border border-[#e2e8f0] hover:shadow-md transition-shadow",children:[o.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center shrink-0 ${s}`,children:n}),o.jsxs("div",{children:[o.jsx("p",{className:"text-[#64748b] text-xs font-medium uppercase tracking-wider",children:t}),o.jsx("p",{className:"text-[#1C3664] text-2xl font-bold",children:e??"â"})]})]});return r?o.jsx(Ve,{to:r,children:a}):a}function jw({to:t,icon:e,label:n,description:s,accent:r}){return o.jsxs(Ve,{to:t,className:"bg-white rounded-xl border border-[#e2e8f0] p-5 flex items-start gap-4 shadow-sm hover:shadow-md transition-all group",children:[o.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center shrink-0 transition-transform group-hover:scale-110",style:{background:r+"1a"},children:o.jsx("span",{style:{color:r},children:e})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-[#1C3664] text-sm font-semibold",children:n}),o.jsx("p",{className:"text-[#64748b] text-xs mt-0.5 leading-relaxed",children:s})]}),o.jsx("svg",{className:"w-4 h-4 text-[#94a3b8] ml-auto mt-0.5 shrink-0 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})}function lW({blog:t}){const e={published:"bg-green-100 text-green-700",draft:"bg-yellow-100 text-yellow-700"};return o.jsxs("div",{className:"flex items-center gap-3 py-3 border-b border-[#f1f5f9] last:border-0",children:[o.jsx("div",{className:"w-8 h-8 rounded-lg bg-[#f0f4f8] flex items-center justify-center shrink-0 overflow-hidden",children:t.coverImage?.url?o.jsx("img",{src:t.coverImage.url,alt:t.coverImage.altText||"",className:"w-full h-full object-cover"}):o.jsx("svg",{className:"w-4 h-4 text-[#94a3b8]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("p",{className:"text-[#1C3664] text-sm font-medium truncate",children:t.title}),o.jsx("p",{className:"text-[#94a3b8] text-xs mt-0.5",children:t.createdAt?new Date(t.createdAt).toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"}):""})]}),o.jsx("span",{className:`px-2 py-0.5 rounded-full text-xs font-medium shrink-0 ${e[t.status]??"bg-gray-100 text-gray-600"}`,children:t.status}),o.jsx(Ve,{to:`/dashboard/blogs/edit/${t._id}`,className:"shrink-0 p-1.5 rounded-lg text-[#64748b] hover:text-[#1C3664] hover:bg-[#f0f4f8] transition-colors",title:"Edit",children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})})]})}function cW(){const{admin:t}=Op(),[e,n]=T.useState({total:null,published:null,draft:null}),[s,r]=T.useState([]),[a,l]=T.useState(!0);T.useEffect(()=>{async function f(){try{const{data:m}=await ms.get("/blogs/admin/all?page=1&limit=5"),g=m.blogs??[];r(g),n({total:m.pagination?.total??g.length,published:g.filter(x=>x.status==="published").length,draft:g.filter(x=>x.status==="draft").length})}catch{}finally{l(!1)}}f()},[]);const c=new Date().getHours(),u=c<12?"Good morning":c<17?"Good afternoon":"Good evening";return o.jsxs(ty,{children:[o.jsxs("div",{className:"rounded-2xl p-6 mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",style:{background:"linear-gradient(135deg, #0E2349 0%, #1C3664 60%, #24407a 100%)"},children:[o.jsxs("div",{children:[o.jsxs("p",{className:"text-white/60 text-sm mb-1",children:[u,","]}),o.jsxs("h1",{className:"text-white text-2xl font-bold",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:[t?.username??"Admin"," ð"]}),o.jsx("p",{className:"text-white/50 text-sm mt-1",children:"Here's what's happening on your website today."})]}),o.jsxs(Ve,{to:"/dashboard/blogs/new",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-xl text-white text-sm font-semibold transition-all hover:opacity-90 active:scale-95 self-start sm:self-ce
81nter",style:{background:"linear-gradient(135deg, #ED6D23, #f5883f)"},children:[o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New Blog Post"]})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-6",children:[o.jsx(_w,{label:"Total Posts",value:a?"â¦":e.total,to:"/dashboard/blogs",color:"bg-blue-100",icon:o.jsx("svg",{className:"w-6 h-6 text-[#1C3664]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})})}),o.jsx(_w,{label:"Published",value:a?"â¦":e.published,to:"/dashboard/blogs?status=published",color:"bg-green-100",icon:o.jsx("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o.jsx(_w,{label:"Drafts",value:a?"â¦":e.draft,to:"/dashboard/blogs?status=draft",color:"bg-yellow-100",icon:o.jsx("svg",{className:"w-6 h-6 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[o.jsxs("div",{className:"lg:col-span-2 bg-white rounded-xl border border-[#e2e8f0] shadow-sm p-5",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("h2",{className:"text-[#1C3664] text-base font-bold",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Recent Posts"}),o.jsx(Ve,{to:"/dashboard/blogs",className:"text-[#ED6D23] text-xs font-semibold hover:underline",children:"View all â"})]}),a?o.jsx("div",{className:"py-8 flex items-center justify-center",children:o.jsx("div",{className:"w-7 h-7 border-4 border-[#1C3664] border-t-transparent rounded-full animate-spin"})}):s.length===0?o.jsxs("div",{className:"py-10 text-center",children:[o.jsx("p",{className:"text-[#94a3b8] text-sm",children:"No blog posts yet."}),o.jsx(Ve,{to:"/dashboard/blogs/new",className:"mt-3 inline-block text-sm text-[#ED6D23] font-semibold hover:underline",children:"Create your first post â"})]}):o.jsx("div",{children:s.map(f=>o.jsx(lW,{blog:f},f._id))})]}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("h2",{className:"text-[#1C3664] text-base font-bold",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Quick Actions"}),o.jsx(jw,{to:"/dashboard/blogs/new",accent:"#ED6D23",label:"Write a New Blog",description:"Create and publish a new post for the website.",icon:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})}),o.jsx(jw,{to:"/dashboard/blogs",accent:"#1C3664",label:"Manage All Blogs",description:"Edit, publish, or delete existing blog posts.",icon:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 10h16M4 14h16M4 18h16"})})}),o.jsx(jw,{to:"/blogs",accent:"#16a34a",label:"View Live Blog",description:"See how the blog looks on the public website.",icon:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})})]})]})]})}function sh(t,{w:e,h:n,extra:s}={}){if(!t||!t.includes("res.cloudinary.com"))return t;const r=["f_auto","q_auto"];return e&&n?r.push(`w_${e}`,`h_${n}`,"c_fill","g_auto"):e&&r.push(`w_${e}`,"c_limit"),s&&r.push(s),t.replace("/upload/",`/upload/${r.join(",")}/`)}const dW={published:"bg-green-100 text-green-700",draft:"bg-yellow-100 text-yellow-700"};function vx({label:t,value:e,icon:n,color:s}){return o.jsxs("div",{className:"bg-white rounded-xl p-5 flex items-center gap-4 shadow-sm border border-[#e2e8f0]",children:[o.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center shrink-0 ${s}`,children:n}),o.jsxs("div",{children:[o.jsx("p",{className:"text-[#64748b] text-xs font-medium uppercase tracking-wider",children:t}),o.jsx("p",{className:"text-[#1C3664] text-2xl font-bold",children:e})]})]})}function uW(){Is();const[t,e]=T.useState([]),[n,s]=T.useState({}),[r,a]=T.useState(!0),[l,c]=T.useState(null),[u,f]=T.useState(null),[m,g]=T.useState(""),[x,b]=T.useState(""),[v,w]=T.useState(1),[N,_]=T.useState(null),E=(O,P="success")=>{_({msg:O,type:P}),setTimeout(()=>_(null),3e3)},k=T.useCallback(async()=>{a(!0);
81try{const O=new URLSearchParams({page:v,limit:10});m&&O.set("search",m),x&&O.set("status",x);const{data:P}=await ms.get(`/blogs/admin/all?${O}`);e(P.blogs),s(P.pagination)}catch(O){E(O.response?.data?.message||"Failed to load blogs","error")}finally{a(!1)}},[v,m,x]);T.useEffect(()=>{k()},[k]);const C=async(O,P)=>{if(window.confirm(`Delete "${P}"? This cannot be undone.`)){c(O);try{await ms.delete(`/blogs/${O}`),E("Blog deleted"),k()}catch(H){E(H.response?.data?.message||"Delete failed","error")}finally{c(null)}}},A=async O=>{f(O);try{const{data:P}=await ms.patch(`/blogs/${O}/toggle-status`);e(H=>H.map(V=>V._id===O?{...V,status:P.blog.status}:V)),E(`Blog ${P.blog.status==="published"?"published":"set to draft"}`)}catch(P){E(P.response?.data?.message||"Toggle failed","error")}finally{f(null)}},L=t.filter(O=>O.status==="published").length,M=t.filter(O=>O.status==="draft").length;return o.jsxs(ty,{children:[N&&o.jsxs("div",{className:`fixed top-5 right-5 z-50 px-4 py-3 rounded-xl shadow-lg text-sm font-medium flex items-center gap-2 transition-all ${N.type==="error"?"bg-red-600 text-white":"bg-green-600 text-white"}`,children:[N.type==="error"?o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}):o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),N.msg]}),o.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-[#1C3664] text-2xl font-bold",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Blog Dashboard"}),o.jsx("p",{className:"text-[#64748b] text-sm mt-0.5",children:"Manage all your blog posts"})]}),o.jsxs(Ve,{to:"/dashboard/blogs/new",className:"flex items-center gap-2 px-5 py-2.5 rounded-lg text-white text-sm font-semibold transition-all hover:opacity-90 active:scale-95",style:{background:"linear-gradient(135deg, #ED6D23, #f5883f)"},children:[o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New Blog Post"]})]}),o.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[o.jsx(vx,{label:"Total Posts",value:n.total??t.length,color:"bg-blue-100",icon:o.jsx("svg",{className:"w-6 h-6 text-[#1C3664]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})})}),o.jsx(vx,{label:"Published",value:L,color:"bg-green-100",icon:o.jsx("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o.jsx(vx,{label:"Drafts",value:M,color:"bg-yellow-100",icon:o.jsx("svg",{className:"w-6 h-6 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})}),o.jsx(vx,{label:"Pages",value:n.pages??1,color:"bg-orange-100",icon:o.jsx("svg",{className:"w-6 h-6 text-[#ED6D23]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})})})]}),o.jsxs("div",{className:"bg-white rounded-xl border border-[#e2e8f0] shadow-sm mb-4 p-4 flex flex-wrap gap-3",children:[o.jsxs("div",{className:"flex-1 min-w-[200px] relative",children:[o.jsx("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[#94a3b8]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),o.jsx("input",{type:"text",placeholder:"Search blogsâ¦",value:m,onChange:O=>{g(O.target.value),w(1)},className:"w-full pl-9 pr-4 py-2 border border-[#e2e8f0] rounded-lg text-sm text-[#1C3664] placeholder-[#94a3b8] focus:outline-none focus:border-[#1C3664] focus:ring-2 focus:ring-[#1C3664]/10"})]}),o.jsxs("select",{value:x,onChange:O=>{b(O.target.value),w(1)},className:"px-3 py-2 border border-[#e2e8f0] rounded-lg text-sm text-[#1C3664] focus:outline-none focus:border-[#1C3664] bg-white",children:[o.jsx("option",{value:"",children:"All Status"}),o.jsx("option",{value:"published",children:"Published"}),o.jsx("option",{value:"draft",children:"Draft"})]}),o.jsx("button",{onClick:()=>{g(""),b(""),w(1)},className:"px-3 py-2 text-sm text-[#64748b] hover:text-[#1C3664] border border-[#e2e8f0] rounded-lg transition-colors",children:"Clear"})]}),o.jsxs("div",{className:"bg-white rounded-xl border border-[#e2e8f0] shadow-sm overflow-hidden",children:[r?o.jsx("div",{className:"py-16 flex items-center justify-center",children:o.jsx("div",{className:"w-8 h-8 border-4 border-[#1C3664] border-t-transparent roun
81ded-full animate-spin"})}):t.length===0?o.jsxs("div",{className:"py-16 text-center",children:[o.jsx("svg",{className:"w-12 h-12 text-[#cbd5e1] mx-auto mb-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),o.jsx("p",{className:"text-[#94a3b8] text-sm",children:"No blog posts found"}),o.jsx(Ve,{to:"/dashboard/blogs/new",className:"text-[#ED6D23] text-sm font-medium mt-2 inline-block hover:underline",children:"Create your first post â"})]}):o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[#e2e8f0] bg-[#f8fafc]",children:[o.jsx("th",{className:"text-left px-4 py-3 text-xs font-semibold text-[#64748b] uppercase tracking-wider",children:"Post"}),o.jsx("th",{className:"text-left px-4 py-3 text-xs font-semibold text-[#64748b] uppercase tracking-wider hidden sm:table-cell",children:"Status"}),o.jsx("th",{className:"text-left px-4 py-3 text-xs font-semibold text-[#64748b] uppercase tracking-wider hidden lg:table-cell",children:"Date"}),o.jsx("th",{className:"text-right px-4 py-3 text-xs font-semibold text-[#64748b] uppercase tracking-wider",children:"Actions"})]})}),o.jsx("tbody",{className:"divide-y divide-[#f1f5f9]",children:t.map(O=>o.jsxs("tr",{className:"hover:bg-[#f8fafc] transition-colors group",children:[o.jsx("td",{className:"px-4 py-3.5",children:o.jsxs("div",{className:"flex items-center gap-3",children:[O.coverImage?.url?o.jsx("img",{src:sh(O.coverImage.url,{w:80,h:80}),alt:O.coverImage.altText||O.title,className:"w-10 h-10 rounded-lg object-cover shrink-0 border border-[#e2e8f0]"}):o.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#f1f5f9] flex items-center justify-center shrink-0",children:o.jsx("svg",{className:"w-5 h-5 text-[#cbd5e1]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-[#1C3664] text-sm font-semibold truncate max-w-[200px]",children:O.title}),o.jsxs("p",{className:"text-[#94a3b8] text-xs truncate max-w-[200px]",children:["/blogs/",O.slug]})]})]})}),o.jsx("td",{className:"px-4 py-3.5 hidden sm:table-cell",children:o.jsx("button",{onClick:()=>A(O._id),disabled:u===O._id,className:`text-xs font-medium px-2.5 py-1 rounded-full cursor-pointer transition-all disabled:opacity-60 ${dW[O.status]}`,children:u===O._id?"â¦":O.status})}),o.jsx("td",{className:"px-4 py-3.5 hidden lg:table-cell",children:o.jsx("span",{className:"text-xs text-[#94a3b8]",children:new Date(O.createdAt).toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"})})}),o.jsx("td",{className:"px-4 py-3.5",children:o.jsxs("div",{className:"flex items-center justify-end gap-1",children:[O.status==="published"&&o.jsx("a",{href:`/blogs/${O.slug}`,target:"_blank",rel:"noopener noreferrer",className:"p-1.5 rounded-lg text-[#64748b] hover:text-[#1C3664] hover:bg-[#f1f5f9] transition-all",title:"View",children:o.jsxs("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})}),o.jsx(Ve,{to:`/dashboard/blogs/edit/${O._id}`,className:"p-1.5 rounded-lg text-[#64748b] hover:text-[#1C3664] hover:bg-[#f1f5f9] transition-all",title:"Edit",children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})}),o.jsx("button",{onClick:()=>C(O._id,O.title),disabled:l===O._id,className:"p-1.5 rounded-lg text-[#64748b] hover:text-red-600 hover:bg-red-50 transition-all disabled:opacity-50",title:"Delete",children:l===O._id?o.jsx("div",{className:"w-4 h-4 border-2 border-red-300 border-t-transparent roun
81ded-full animate-spin"}):o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})})]},O._id))})]})}),n.pages>1&&o.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-t border-[#e2e8f0] bg-[#f8fafc]",children:[o.jsxs("p",{className:"text-xs text-[#64748b]",children:["Page ",n.page," of ",n.pages," â ",n.total," posts"]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("button",{onClick:()=>w(O=>Math.max(1,O-1)),disabled:!n.hasPrev,className:"px-3 py-1.5 text-xs border border-[#e2e8f0] rounded-lg text-[#1C3664] disabled:opacity-40 hover:bg-white transition-colors",children:"â Previous"}),o.jsx("button",{onClick:()=>w(O=>O+1),disabled:!n.hasNext,className:"px-3 py-1.5 text-xs border border-[#e2e8f0] rounded-lg text-[#1C3664] disabled:opacity-40 hover:bg-white transition-colors",children:"Next â"})]})]})]})]})}var $A=Object.defineProperty,hW=(t,e)=>{let n={};for(var s in t)$A(n,s,{get:t[s],enumerable:!0});return $A(n,Symbol.toStringTag,{value:"Module"}),n};function as(t){this.content=t}as.prototype={constructor:as,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var s=n&&n!=t?this.remove(n):this,r=s.find(t),a=s.content.slice();return r==-1?a.push(n||t,e):(a[r+1]=e,n&&(a[r]=n)),new as(a)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new as(n)},addToStart:function(t,e){return new as([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new as(n)},addBefore:function(t,e,n){var s=this.remove(e),r=s.content.slice(),a=s.find(t);return r.splice(a==-1?r.length:a,0,e,n),new as(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=as.from(t),t.size?new as(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=as.from(t),t.size?new as(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=as.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};as.from=function(t){if(t instanceof as)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new as(e)};function z5(t,e,n){for(let s=0;;s++){if(s==t.childCount||s==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(s),a=e.child(s);if(r==a){n+=r.nodeSize;continue}if(!r.sameMarkup(a))return n;if(r.isText&&r.text!=a.text){let l=r.text,c=a.text,u=0;for(;l[u]==c[u];u++)n++;return u&&u<l.length&&u<c.length&&$5(l.charCodeAt(u-1))&&H5(l.charCodeAt(u))&&n--,n}if(r.content.size||a.content.size){let l=z5(r.content,a.content,n+1);if(l!=null)return l}n+=r.nodeSize}}function F5(t,e,n,s){for(let r=t.childCount,a=e.childCount;;){if(r==0||a==0)return r==a?null:{a:n,b:s};let l=t.child(--r),c=e.child(--a),u=l.nodeSize;if(l==c){n-=u,s-=u;continue}if(!l.sameMarkup(c))return{a:n,b:s};if(l.isText&&l.text!=c.text){let f=l.text,m=c.text,g=f.length,x=m.length;for(;g>0&&x>0&&f[g-1]==m[x-1];)g--,x--,n--,s--;return g&&x&&g<f.length&&$5(f.charCodeAt(g-1))&&H5(f.charCodeAt(g))&&(n++,s++),{a:n,b:s}}if(l.content.size||c.content.size){let f=F5(l.content,c.content,n-1,s-1);if(f)return f}n-=u,s-=u}}function H5(t){return t>=56320&&t<57344}function $5(t){return t>=55296&&t<56320}class be{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let s=0;s<e.length;s++)this.size+=e[s].nodeSize}nodesBetween(e,n,s,r=0,a){for(let l=0,c=0;c<n;l++){let u=this.content[l],f=c+u.nodeSize;if(f>e&&s(u,r+c,a||null,l)!==!1&&u.content.size){let m=c+1;u.nodesBetween(Math.max(0,e-m),Math.min(u.content.size,n-m),s,r+m)}c=f}}descendants(e){this.nodesBetween(0,this.size,e)}
vendor: 30,511 bytes, lines 81-82
81textBetween(e,n,s,r){let a="",l=!0;return this.nodesBetween(e,n,(c,u)=>{let f=c.isText?c.text.slice(Math.max(e,u)-u,n-u):c.isLeaf?r?typeof r=="function"?r(c):r:c.type.spec.leafText?c.type.spec.leafText(c):"":"";c.isBlock&&(c.isLeaf&&f||c.isTextblock)&&s&&(l?l=!1:a+=s),a+=f},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,s=e.firstChild,r=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(s)&&(r[r.length-1]=n.withText(n.text+s.text),a=1);a<e.content.length;a++)r.push(e.content[a]);return new be(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let s=[],r=0;if(n>e)for(let a=0,l=0;l<n;a++){let c=this.content[a],u=l+c.nodeSize;u>e&&((l<e||u>n)&&(c.isText?c=c.cut(Math.max(0,e-l),Math.min(c.text.length,n-l)):c=c.cut(Math.max(0,e-l-1),Math.min(c.content.size,n-l-1))),s.push(c),r+=c.nodeSize),l=u}return new be(s,r)}cutByIndex(e,n){return e==n?be.empty:e==0&&n==this.content.length?this:new be(this.content.slice(e,n))}replaceChild(e,n){let s=this.content[e];if(s==n)return this;let r=this.content.slice(),a=this.size+n.nodeSize-s.nodeSize;return r[e]=n,new be(r,a)}addToStart(e){return new be([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new be(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,s=0;n<this.content.length;n++){let r=this.content[n];e(r,s,n),s+=r.nodeSize}}findDiffStart(e,n=0){return z5(this,e,n)}findDiffEnd(e,n=this.size,s=e.size){return F5(this,e,n,s)}findIndex(e){if(e==0)return wx(0,e);if(e==this.size)return wx(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,s=0;;n++){let r=this.child(n),a=s+r.nodeSize;if(a>=e)return a==e?wx(n+1,a):wx(n,s);s=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return be.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return be.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return be.empty;let n,s=0;for(let r=0;r<e.length;r++){let a=e[r];s+=a.nodeSize,r&&a.isText&&e[r-1].sameMarkup(a)?(n||(n=e.slice(0,r)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new be(n||e,s)}static from(e){if(!e)return be.empty;if(e instanceof be)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new be([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}be.empty=new be([],0);const Ew={index:0,offset:0};function wx(t,e){return Ew.index=t,Ew.offset=e,Ew}function ny(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let s=0;s<t.length;s++)if(!ny(t[s],e[s]))return!1}else{for(let s in t)if(!(s in e)||!ny(t[s],e[s]))return!1;for(let s in e)if(!(s in t))return!1}return!0}let gn=class lN{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,s=!1;for(let r=0;r<e.length;r++){let a=e[r];if(this.eq(a))return e;if(this.type.excludes(a.type))n||(n=e.slice(0,r));else{if(a.type.excludes(this.type))return e;!s&&a.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),s=!0),n&&n.push(a)}}return n||(n=e.slice()),s||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ny(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let s=e.marks[n.type];if(!s)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=s.create(n.attrs);return s.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let s=0;s<e.length;s++)if(!e[s].eq(n[s]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return lN.none;if(e instanceof lN)return[e];let n=e.slice();return n.sort((s,r)=>s.type.rank-r.type.rank),n}};gn.none=[];class Zm extends Error{}class De{constructor(e,n,s){this.content=e,this.openStart=n,this.openEnd=s}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let s=W5(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return s&&new De(s,this.openStart,this.openEnd)}removeBetween(e,n){return new De(U5(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return De.empty;let s=n.openStart||0,r=n.openEnd||0;if(typeof s!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new De(be.fromJSON(e,n.content),s,r)}static maxOpen(e,n=!0){let s=0,r=0;for(let a=e.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)s++;for(let a=e.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)r++;return new De(e,s,r)}}De.empty=new De(be.empty,0,0);function U5(t,e,n){let{index:s,offset:r}=t.findIndex(e),a=t.maybeChild(s),{index:l,offset:c}=t.findIndex(n);if(r==e||a.isText){if(c!=n&&!t.child(l).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(s!=l)throw new RangeError("Removing non-flat range");return t.replaceChild(s,a.copy(U5(a.content,e-r-1,n-r-1)))}function W5(t,e,n,s,r,a){let{index:l,offset:c}=t.findIndex(e),u=t.maybeChild(l);if(c==e||u.isText)return a&&s<=0&&r<=0&&!a.canReplace(l,l,n)?null:t.cut(0,e).append(n).append(t.cut(e));let f=W5(u.content,e-c-1,n,l==0?s-1:0,l==t.childCount-1?r-1:0,u);return f&&t.replaceChild(l,u.copy(f))}function fW(t,e,n){if(n.openStart>t.depth)throw new Zm("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Zm("Inconsistent open depths");return V5(t,e,n,0)}function V5(t,e,n,s){let r=t.index(s),a=t.node(s);if(r==e.index(s)&&s<t.depth-n.openStart){let l=V5(t,e,n,s+1);return a.copy(a.content.replaceChild(r,l))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==s&&e.depth==s){let l=t.parent,c=l.content;return ld(l,c.cut(0,t.parentOffset).append(n.content).append(c.cut(e.parentOffset)))}else{let{start:l,end:c}=mW(n,t);return ld(a,q5(t,l,c,e,s))}else return ld(a,iy(t,e,s))}function G5(t,e){if(!e.type.compatibleContent(t.type))throw new Zm("Cannot join "+e.type.name+" onto "+t.type.name)}function cN(t,e,n){let s=t.node(n);return G5(s,e.node(n)),s}function od(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function gm(t,e,n,s){let r=(e||t).node(n),a=0,l=e?e.index(n):r.childCount;t&&(a=t.index(n),t.depth>n?a++:t.textOffset&&(od(t.nodeAfter,s),a++));for(let c=a;c<l;c++)od(r.child(c),s);e&&e.depth==n&&e.textOffset&&od(e.nodeBefore,s)}function ld(t,e){if(!t.type.validContent(e))throw new Zm("Invalid content for node "+t.type.name);return t.copy(e)}function q5(t,e,n,s,r){let a=t.depth>r&&cN(t,e,r+1),l=s.depth>r&&cN(n,s,r+1),c=[];return gm(null,t,r,c),a&&l&&e.index(r)==n.index(r)?(G5(a,l),od(ld(a,q5(t,e,n,s,r+1)),c)):(a&&od(ld(a,iy(t,e,r+1)),c),gm(e,n,r,c),l&&od(ld(l,iy(n,s,r+1)),c)),gm(s,null,r,c),new be(c)}function iy(t,e,n){let s=[];if(gm(null,t,n,s),t.depth>n){let r=cN(t,e,n+1);od(ld(r,iy(t,e,n+1)),s)}return gm(e,null,n,s),new be(s)}function mW(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let a=n-1;a>=0;a--)r=e.node(a).copy(be.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class Jm{constructor(e,n,s){this.pos=e,this.path=n,this.parentOffset=s,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let s=this.pos-this.path[this.path.length-1],r=e.child(n);return s?e.child(n).cut(s):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let s=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let a=0;a<e;a++)r+=s.child(a).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return gn.none;if(this.textOffset)return e.child(n).marks;let s=e.maybeChild(n-1),r=e.maybeChild(n);if(!s){let c=s;s=r,r=c}let a=s.marks;for(var l=0;l<a.length;l++)a[l].type.spec.inclusive===!1&&(!r||!a[l].isInSet(r.marks))&&(a=a[l--].removeFromSet(a));return a}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let s=n.marks,r=e.parent.maybeChild(e.index());for(var a=0;a<s.length;a++)s[a].type.spec.inclusive===!1&&(!r||!s[a].isInSet(r.marks))&&(s=s[a--].removeFromSet(s));return s}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let s=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);s>=0;s--)if(e.pos<=this.end(s)&&(!n||n(this.node(s))))return new sy(this,e,s);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let s=[],r=0,a=n;for(let l=e;;){let{index:c,offset:u}=l.content.findIndex(a),f=a-u;if(s.push(l,c,r+u),!f||(l=l.child(c),l.isText))break;a=f-1,r+=u+1}return new Jm(n,s,a)}static resolveCached(e,n){let s=UA.get(e);if(s)for(let a=0;a<s.elts.length;a++){let l=s.elts[a];if(l.pos==n)return l}else UA.set(e,s=new pW);let r=s.elts[s.i]=Jm.resolve(e,n);return s.i=(s.i+1)%gW,r}}class pW{constructor(){this.elts=[],this.i=0}}const gW=12,UA=new WeakMap;class sy{constructor(e,n,s){this.$from=e,this.$to=n,this.depth=s}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const xW=Object.create(null);let cd=class dN{constructor(e,n,s,r=gn.none){this.type=e,this.attrs=n,this.marks=r,this.content=s||be.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,s,r=0){this.content.nodesBetween(e,n,s,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,s,r){return this.content.textBetween(e,n,s,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,s){return this.type==e&&ny(this.attrs,n||e.defaultAttrs||xW)&&gn.sameSet(this.marks,s||gn.none)}copy(e=null){return e==this.content?this:new dN(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new dN(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,s=!1){if(e==n)return De.empty;let r=this.resolve(e),a=this.resolve(n),l=s?0:r.sharedDepth(n),c=r.start(l),f=r.node(l).content.cut(r.pos-c,a.pos-c);return new De(f,r.depth-l,a.depth-l)}replace(e,n,s){return fW(this.resolve(e),this.resolve(n),s)}nodeAt(e){for(let n=this;;){let{index:s,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(s),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:s}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:s}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:s}=this.content.findIndex(e);if(s<e)return{node:this.content.child(n),index:n,offset:s};let r=this.content.child(n-1);return{node:r,index:n-1,offset:s-r.nodeSize}}resolve(e){return Jm.resolveCached(this,e)}resolveNoCache(e){return Jm.resolve(this,e)}rangeHasMark(e,n,s){let r=!1;return n>e&&this.nodesBetween(e,n,a=>(s.isInSet(a.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),K5(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,s=be.empty,r=0,a=s.childCount){let l=this.contentMatchAt(e).matchFragment(s,r,a),c=l&&l.matchFragment(this.content,n);if(!c||!c.validEnd)return!1;for(let u=r;u<a;u++)if(!this.type.allowsMarks(s.child(u).marks))return!1;return!0}canReplaceWith(e,n,s,r){if(r&&!this.type.allowsMarks(r))return!1;let a=this.contentMatchAt(e).matchType(s),l=a&&a.matchFragment(this.content,n);return l?l.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=gn.none;for(let n=0;n<this.marks.length;n++){let s=this.marks[n];s.type.checkAttrs(s.attrs),e=s.addToSet(e)}if(!gn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let s;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");s=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,s)}let r=be.fromJSON(e,n.content),a=e.nodeType(n.type).create(n.attrs,r,s);return a.type.checkAttrs(a.attrs),a}};cd.prototype.text=void 0;class ry extends cd{constructor(e,n,s,r){if(super(e,n,null,r),!s)throw new RangeError("Empty text nodes are not allowed");this.text=s}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):K5(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ry(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ry(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function K5(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class jd{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let s=new yW(e,n);if(s.next==null)return jd.empty;let r=Y5(s);s.next&&s.err("Unexpected trailing text");let a=jW(_W(r));return EW(a,s),a}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,s=e.childCount){let r=this;for(let a=n;r&&a<s;a++)r=r.matchType(e.child(a).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let s=0;s<e.next.length;s++)if(this.next[n].type==e.next[s].type)return!0;return!1}fillBefore(e,n=!1,s=0){let r=[this];function a(l,c){let u=l.matchFragment(e,s);if(u&&(!n||u.validEnd))return be.from(c.map(f=>f.createAndFill()));for(let f=0;f<l.next.length;f++){let{type:m,next:g}=l.next[f];if(!(m.isText||m.hasRequiredAttrs())&&r.indexOf(g)==-1){r.push(g);let x=a(g,c.concat(m));if(x)return x}}return null}return a(this,[])}findWrapping(e){for(let s=0;s<this.wrapCache.length;s+=2)if(this.wrapCache[s]==e)return this.wrapCache[s+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),s=[{match:this,type:null,via:null}];for(;s.length;){let r=s.shift(),a=r.match;if(a.matchType(e)){let l=[];for(let c=r;c.type;c=c.via)l.push(c.type);return l.reverse()}for(let l=0;l<a.next.length;l++){let{type:c,next:u}=a.next[l];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in n)&&(!r.type||u.validEnd)&&(s.push({match:c.contentMatch,type:c,via:r}),n[c.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(s){e.push(s);for(let r=0;r<s.next.length;r++)e.indexOf(s.next[r].next)==-1&&n(s.next[r].next)}return n(this),e.map((s,r)=>{let a=r+(s.validEnd?"*":" ")+" ";for(let l=0;l<s.next.length;l++)a+=(l?", ":"")+s.next[l].type.name+"->"+e.indexOf(s.next[l].next);return a}).join(` 82`)}}jd.empty=new jd(!0);class yW{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Y5(t){let e=[];do e.push(bW(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function bW(t){let e=[];do e.push(vW(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function vW(t){let e=SW(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=wW(t,e);else break;return e}function WA(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function wW(t,e){let n=WA(t),s=n;return t.eat(",")&&(t.next!="}"?s=WA(t):s=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:s,expr:e}}function NW(t,e){let n=t.nodeTypes,s=n[e];if(s)return[s];let r=[];for(let a in n){let l=n[a];l.isInGroup(e)&&r.push(l)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function SW(t){if(t.eat("(")){let e=Y5(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=NW(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function _W(t){let e=[[]];return r(a(t,0),n()),e;function n(){return e.push([])-1}function s(l,c,u){let f={term:u,to:c};return e[l].push(f),f}function r(l,c){l.forEach(u=>u.to=c)}function a(l,c){if(l.type=="choice")return l.exprs.reduce((u,f)=>u.concat(a(f,c)),[]);if(l.type=="seq")for(let u=0;;u++){let f=a(l.exprs[u],c);if(u==l.exprs.length-1)return f;r(f,c=n())}else if(l.type=="star"){let u=n();return s(c,u),r(a(l.expr,u),u),[s(u)]}else if(l.type=="plus"){let u=n();return r(a(l.expr,c),u),r(a(l.expr,u),u),[s(u)]}else{if(l.type=="opt")return[s(c)].concat(a(l.expr,c));if(l.type=="range"){let u=c;for(let f=0;f<l.min;f++){let m=n();r(a(l.expr,u),m),u=m}if(l.max==-1)r(a(l.expr,u),u);else for(let f=l.min;f<l.max;f++){let m=n();s(u,m),r(a(l.expr,u),m),u=m}return[s(u)]}else{if(l.type=="name")return[s(c,void 0,l.value)];throw new Error("Unknown expr type")}}}}function X5(t,e){return e-t}function VA(t,e){let n=[];return s(e),n.sort(X5);function s(r){let a=t[r];if(a.length==1&&!a[0].term)return s(a[0].to);n.push(r);for(let l=0;l<a.length;l++){let{term:c,to:u}=a[l];!c&&n.indexOf(u)==-1&&s(u)}}}function jW(t){let e=Object.create(null);return n(VA(t,0));function n(s){let r=[];s.forEach(l=>{t[l].forEach(({term:c,to:u})=>{if(!c)return;let f;for(let m=0;m<r.length;m++)r[m][0]==c&&(f=r[m][1]);VA(t,u).forEach(m=>{f||r.push([c,f=[]]),f.indexOf(m)==-1&&f.push(m)})})});let a=e[s.join(",")]=new jd(s.indexOf(t.length-1)>-1);for(let l=0;l<r.length;l++){let c=r[l][1].sort(X5);a.next.push({type:r[l][0],next:e[c.join(",")]||n(c)})}return a}}function EW(t,e){for(let n=0,s=[t];n<s.length;n++){let r=s[n],a=!r.validEnd,l=[];for(let c=0;c<r.next.length;c++){let{type:u,next:f}=r.next[c];l.push(u.name),a&&!(u.isText||u.hasRequiredAttrs())&&(a=!1),s.indexOf(f)==-1&&s.push(f)}a&&e.err("Only non-generatable nodes ("+l.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Z5(t){let e=Object.create(null);for(let n in t){let s=t[n];if(!s.hasDefault)return null;e[n]=s.default}return e}function J5(t,e){let n=Object.create(null);for(let s in t){let r=e&&e[s];if(r===void 0){let a=t[s];if(a.hasDefault)r=a.default;else throw new RangeError("No value supplied for attribute "+s)}n[s]=r}return n}function Q5(t,e,n,s){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${s}`);for(let r in t)t[r].validate&&t[r].validate(e[r])}function eO(t,e){let n=Object.create(null);if(e)for(let s in e)n[s]=new CW(t,s,e[s]);return n}let GA=class tO{constructor(e,n,s){this.name=e,this.schema=n,this.spec=s,this.markSet=null,this.groups=s.group?s.group.split(" "):[],this.attrs=eO(e,s.attrs),this.defaultAttrs=Z5(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(s.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==jd.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:J5(this.attrs,e)}create(e=null,n,s){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new cd(this,this.computeAttrs(e),be.from(n),gn.setFrom(s))}createChecked(e=null,n,s){return n=be.from(n),this.checkContent(n),new cd(this,this.computeAttrs(e),n,gn.setFrom(s))}createAndFill(e=null,n,s){if(e=this.computeAttrs(e),n=be.from(n),n.size){let l=this.contentMatch.fillBefore(n);if(!l)return null;n=l.append(n)}let r=this.contentMatch.matchFragment(n),a=r&&r.fillBefore(be.empty,!0);return a?new cd(this,e,n.append(a),gn.setFrom(s)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let s=0;s<e.childCount;s++)if(!this.allowsMarks(e.child(s).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Q5(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let s=0;s<e.length;s++)this.allowsMarkType(e[s].type)?n&&n.push(e[s]):n||(n=e.slice(0,s));return n?n.length?n:gn.none:e}static compile(e,n){let s=Object.create(null);e.forEach((a,l)=>s[a]=new tO(a,n,l));let r=n.spec.topNode||"doc";if(!s[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!s.text)throw new RangeError("Every schema needs a 'text' type");for(let a in s.text.attrs)throw new RangeError("The text node type should not have attributes");return s}};function kW(t,e,n){let s=n.split("|");return r=>{let a=r===null?"null":typeof r;if(s.indexOf(a)<0)throw new RangeError(`Expected value of type ${s} for attribute ${e} on type ${t}, got ${a}`)}}class CW{constructor(e,n,s){this.hasDefault=Object.prototype.hasOwnProperty.call(s,"default"),this.default=s.default,this.validate=typeof s.validate=="string"?kW(e,n,s.validate):s.validate}get isRequired(){return!this.hasDefault}}class Eb{constructor(e,n,s,r){this.name=e,this.rank=n,this.schema=s,this.spec=r,this.attrs=eO(e,r.attrs),this.excluded=null;let a=Z5(this.attrs);this.instance=a?new gn(this,a):null}create(e=null){return!e&&this.instance?this.instance:new gn(this,J5(this.attrs,e))}static compile(e,n){let s=Object.create(null),r=0;return e.forEach((a,l)=>s[a]=new Eb(a,r++,n,l)),s}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Q5(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class nO{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=as.from(e.nodes),n.marks=as.from(e.marks||{}),this.nodes=GA.compile(this.spec.nodes,this),this.marks=Eb.compile(this.spec.marks,this);let s=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let a=this.nodes[r],l=a.spec.content||"",c=a.spec.marks;if(a.contentMatch=s[l]||(s[l]=jd.parse(l,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=c=="_"?null:c?qA(this,c.split(" ")):c==""||!a.inlineContent?[]:null}for(let r in this.marks){let a=this.marks[r],l=a.spec.excludes;a.excluded=l==null?[a]:l==""?[]:qA(this,l.split(" "))}this.nodeFromJSON=r=>cd.fromJSON(this,r),this.markFromJSON=r=>gn.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,s,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof GA){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,s,r)}text(e,n){let s=this.nodes.text;return new ry(s,s.defaultAttrs,e,gn.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function qA(t,e){let n=[];for(let s=0;s<e.length;s++){let r=e[s],a=t.marks[r],l=a;if(a)n.push(a);else for(let c in t.marks){let u=t.marks[c];(r=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(r)>-1)&&n.push(l=u)}if(!l)throw new SyntaxError("Unknown mark type: '"+e[s]+"'")}return n}function TW(t){return t.tag!=null}function AW(t){return t.style!=null}class Ql{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let s=this.matchedStyles=[];n.forEach(r=>{if(TW(r))this.tags.push(r);else if(AW(r)){let a=/[^=]*/.exec(r.style)[0];s.indexOf(a)<0&&s.push(a),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let a=e.nodes[r.node];return a.contentMatch.matchType(a)})}parse(e,n={}){let s=new YA(this,n,!1);return s.addAll(e,gn.none,n.from,n.to),s.finish()}parseSlice(e,n={}){let s=new YA(this,n,!0);return s.addAll(e,gn.none,n.from,n.to),De.maxOpen(s.finish())}matchTag(e,n,s){for(let r=s?this.tags.indexOf(s)+1:0;r<this.tags.length;r++){let a=this.tags[r];if(OW(e,a.tag)&&(a.namespace===void 0||e.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let l=a.getAttrs(e);if(l===!1)continue;a.attrs=l||void 0}return a}}}matchStyle(e,n,s,r){for(let a=r?this.styles.indexOf(r)+1:0;a<this.styles.length;a++){let l=this.styles[a],c=l.style;if(!(c.indexOf(e)!=0||l.context&&!s.matchesContext(l.context)||c.length>e.length&&(c.charCodeAt(e.length)!=61||c.slice(e.length+1)!=n))){if(l.getAttrs
vendor: 9,743 bytes, lines 82-84
82){let u=l.getAttrs(n);if(u===!1)continue;l.attrs=u||void 0}return l}}}static schemaRules(e){let n=[];function s(r){let a=r.priority==null?50:r.priority,l=0;for(;l<n.length;l++){let c=n[l];if((c.priority==null?50:c.priority)<a)break}n.splice(l,0,r)}for(let r in e.marks){let a=e.marks[r].spec.parseDOM;a&&a.forEach(l=>{s(l=XA(l)),l.mark||l.ignore||l.clearMark||(l.mark=r)})}for(let r in e.nodes){let a=e.nodes[r].spec.parseDOM;a&&a.forEach(l=>{s(l=XA(l)),l.node||l.ignore||l.mark||(l.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ql(e,Ql.schemaRules(e)))}}const iO={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},MW={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},sO={ol:!0,ul:!0},Qm=1,uN=2,xm=4;function KA(t,e,n){return e!=null?(e?Qm:0)|(e==="full"?uN:0):t&&t.whitespace=="pre"?Qm|uN:n&~xm}class Nx{constructor(e,n,s,r,a,l){this.type=e,this.attrs=n,this.marks=s,this.solid=r,this.options=l,this.content=[],this.activeMarks=gn.none,this.match=a||(l&xm?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(be.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let s=this.type.contentMatch,r;return(r=s.findWrapping(e.type))?(this.match=s,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Qm)){let s=this.content[this.content.length-1],r;if(s&&s.isText&&(r=/[ \t\r\n\u000c]+$/.exec(s.text))){let a=s;s.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-r[0].length))}}let n=be.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(be.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!iO.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class YA{constructor(e,n,s){this.parser=e,this.options=n,this.isOpen=s,this.open=0,this.localPreserveWS=!1;let r=n.topNode,a,l=KA(null,n.preserveWhitespace,0)|(s?xm:0);r?a=new Nx(r.type,r.attrs,gn.none,!0,n.topMatch||r.type.contentMatch,l):s?a=new Nx(null,null,gn.none,!0,null,l):a=new Nx(e.schema.topNodeType,null,gn.none,!0,null,l),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let s=e.nodeValue,r=this.top,a=r.options&uN?"full":this.localPreserveWS||(r.options&Qm)>0,{schema:l}=this.parser;if(a==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(s)){if(a)if(a==="full")s=s.replace(/\r\n?/g,` 83`);else if(l.linebreakReplacement&&/[\r\n]/.test(s)&&this.top.findWrapping(l.linebreakReplacement.create())){let c=s.split(/\r?\n|\r/);for(let u=0;u<c.length;u++)u&&this.insertNode(l.linebreakReplacement.create(),n,!0),c[u]&&this.insertNode(l.text(c[u]),n,!/\S/.test(c[u]));s=""}else s=s.replace(/\r?\n|\r/g," ");else if(s=s.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(s)&&this.open==this.nodes.length-1){let c=r.content[r.content.length-1],u=e.previousSibling;(!c||u&&u.nodeName=="BR"||c.isText&&/[ \t\r\n\u000c]$/.test(c.text))&&(s=s.slice(1))}s&&this.insertNode(l.text(s),n,!/\S/.test(s)),this.findInText(e)}else this.findInside(e)}addElement(e,n,s){let r=this.localPreserveWS,a=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let l=e.nodeName.toLowerCase(),c;sO.hasOwnProperty(l)&&this.parser.normalizeLists&&RW(e);let u=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(c=this.parser.matchTag(e,this,s));e:if(u?u.ignore:MW.hasOwnProperty(l))this.findInside(e),this.ignoreFallback(e,n);else if(!u||u.skip||u.closeParent){u&&u.closeParent?this.open=Math.max(0,this.open-1):u&&u.skip.nodeType&&(e=u.skip);let f,m=this.needsBlock;if(iO.hasOwnProperty(l))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),f=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let g=u&&u.skip?n:this.readStyles(e,n);g&&this.addAll(e,g),f&&this.sync(a),this.needsBlock=m}else{let f=this.readStyles(e,n);f&&this.addElementByRule(e,u,f,u.consuming===!1?c:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` 84`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let s=e.style;if(s&&s.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let a=this.parser.matchedStyles[r],l=s.getPropertyValue(a);if(l)for(let c=void 0;;){let u=this.parser.matchStyle(a,l,this,c);if(!u)break;if(u.ignore)return null;if(u.clearMark?n=n.filter(f=>!u.clearMark(f)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)c=u;else break}}return n}addElementByRule(e,n,s,r){let a,l;if(n.node)if(l=this.parser.schema.nodes[n.node],l.isLeaf)this.insertNode(l.create(n.attrs),s,e.nodeName=="BR")||this.leafFallback(e,s);else{let u=this.enter(l,n.attrs||null,s,n.preserveWhitespace);u&&(a=!0,s=u)}else{let u=this.parser.schema.marks[n.mark];s=s.concat(u.create(n.attrs))}let c=this.top;if(l&&l.isLeaf)this.findInside(e);else if(r)this.addElement(e,s,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(u=>this.insertNode(u,s,!1));else{let u=e;typeof n.contentElement=="string"?u=e.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(e):n.contentElement&&(u=n.contentElement),this.findAround(e,u,!0),this.addAll(u,s),this.findAround(e,u,!1)}a&&this.sync(c)&&this.open--}addAll(e,n,s,r){let a=s||0;for(let l=s?e.childNodes[s]:e.firstChild,c=r==null?null:e.childNodes[r];l!=c;l=l.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(l,n);this.findAtPoint(e,a)}findPlace(e,n,s){let r,a;for(let l=this.open,c=0;l>=0;l--){let u=this.nodes[l],f=u.findWrapping(e);if(f&&(!r||r.length>f.length+c)&&(r=f,a=u,!f.length))break;if(u.solid){if(s)break;c+=2}}if(!r)return null;this.sync(a);for(let l=0;l<r.length;l++)n=this.enterInner(r[l],null,n,!1);return n}insertNode(e,n,s){if(e.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let r=this.findPlace(e,n,s);if(r){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(e.type));let l=gn.none;for(let c of r.concat(e.marks))(a.type?a.type.allowsMarkType(c.type):ZA(c.type,e.type))&&(l=c.addToSet(l));return a.content.push(e.mark(l)),!0}return!1}enter(e,n,s,r){let a=this.findPlace(e.create(n),s,!1);return a&&(a=this.enterInner(e,n,s,!0,r)),a}enterInner(e,n,s,r=!1,a){this.closeExtra();let l=this.top;l.match=l.match&&l.match.matchType(e);let c=KA(e,a,l.options);l.options&xm&&l.content.length==0&&(c|=xm);let u=gn.none;return s=s.filter(f=>(l.type?l.type.allowsMarkType(f.type):ZA(f.type,e))?(u=f.addToSet(u),!1):!0),this.nodes.push(new Nx(e,n,u,r,null,c)),this.open++,s}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Qm)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let s=this.nodes[n].content;for(let r=s.length-1;r>=0;r--)e+=s[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let s=0;s<this.find.length;s++)this.find[s].node==e&&this.find[s].offset==n&&(this.find[s].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,s){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(s?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),s=this.options.context,r=!this.isOpen&&(!s||s.parent.type==this.nodes[0].type),a=-(s?s.depth+1:0)+(r?0:1),l=(c,u)=>{for(;c>=0;c--){let f=n[c];if(f==""){if(c==n.length-1||c==0)continue;for(;u>=a;u--)if(l(c-1,u))return!0;return!1}else{let m=u>0||u==0&&r?this.nodes[u].type:s&&u>=a?s.node(u-a).type:null;if(!m||m.name!=f&&!m.isInGroup(f))return!1;u--}}return!0};return l(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let s=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(s&&s.isTextblock&&s.defaultAttrs)return s}for(let n in this.parser.schema.nodes){let s=this.parser.schema.nodes[n];if(s.isTextblock&&s.defaultAttrs)return s}}}function RW(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let s=e.nodeType==1?e.nodeName.toLowerCase():null;s&&sO.hasOwnProperty(s)&&n?(n.appendChild(e),e=n):s=="li"?n=e:s&&(n=null)}}function OW(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function XA(t){let e={};for(let n in t)e[n]=t[n];return e}
vendor: 12,760 bytes, line 84
84function ZA(t,e){let n=e.schema.nodes;for(let s in n){let r=n[s];if(!r.allowsMarkType(t))continue;let a=[],l=c=>{a.push(c);for(let u=0;u<c.edgeCount;u++){let{type:f,next:m}=c.edge(u);if(f==e||a.indexOf(m)<0&&l(m))return!0}};if(l(r.contentMatch))return!0}}class Ld{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},s){s||(s=Sx(n).createDocumentFragment());let r=s,a=[];return e.forEach(l=>{if(a.length||l.marks.length){let c=0,u=0;for(;c<a.length&&u<l.marks.length;){let f=l.marks[u];if(!this.marks[f.type.name]){u++;continue}if(!f.eq(a[c][0])||f.type.spec.spanning===!1)break;c++,u++}for(;c<a.length;)r=a.pop()[1];for(;u<l.marks.length;){let f=l.marks[u++],m=this.serializeMark(f,l.isInline,n);m&&(a.push([f,r]),r.appendChild(m.dom),r=m.contentDOM||m.dom)}}r.appendChild(this.serializeNodeInner(l,n))}),s}serializeNodeInner(e,n){if(e.isText)return Sx(n).createTextNode(e.text);let{dom:s,contentDOM:r}=C0(Sx(n),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,r)}return s}serializeNode(e,n={}){let s=this.serializeNodeInner(e,n);for(let r=e.marks.length-1;r>=0;r--){let a=this.serializeMark(e.marks[r],e.isInline,n);a&&((a.contentDOM||a.dom).appendChild(s),s=a.dom)}return s}serializeMark(e,n,s={}){let r=this.marks[e.type.name];return r&&C0(Sx(s),r(e,n),null,e.attrs)}static renderSpec(e,n,s=null,r){return typeof n=="string"?{dom:e.createTextNode(n)}:C0(e,n,s,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ld(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=JA(e.nodes);return n.text||(n.text=s=>s.text),n}static marksFromSchema(e){return JA(e.marks)}}function JA(t){let e={};for(let n in t){let s=t[n].spec.toDOM;s&&(e[n]=s)}return e}function Sx(t){return t.document||window.document}const QA=new WeakMap;function DW(t){let e=QA.get(t);return e===void 0&&QA.set(t,e=LW(t)),e}function LW(t){let e=null;function n(s){if(s&&typeof s=="object")if(Array.isArray(s))if(typeof s[0]=="string")e||(e=[]),e.push(s);else for(let r=0;r<s.length;r++)n(s[r]);else for(let r in s)n(s[r])}return n(t),e}function C0(t,e,n,s){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let r=e[0],a;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(s&&(a=DW(s))&&a.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let l=r.indexOf(" ");l>0&&(n=r.slice(0,l),r=r.slice(l+1));let c,u=n?t.createElementNS(n,r):t.createElement(r),f=e[1],m=1;if(f&&typeof f=="object"&&f.nodeType==null&&!Array.isArray(f)){m=2;for(let g in f)if(f[g]!=null){let x=g.indexOf(" ");x>0?u.setAttributeNS(g.slice(0,x),g.slice(x+1),f[g]):g=="style"&&u.style?u.style.cssText=f[g]:u.setAttribute(g,f[g])}}for(let g=m;g<e.length;g++){let x=e[g];if(x===0){if(g<e.length-1||g>m)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else if(typeof x=="string")u.appendChild(t.createTextNode(x));else{let{dom:b,contentDOM:v}=C0(t,x,n,s);if(u.appendChild(b),v){if(c)throw new RangeError("Multiple content holes");c=v}}}return{dom:u,contentDOM:c}}const rO=65535,aO=Math.pow(2,16);function IW(t,e){return t+e*aO}function e3(t){return t&rO}function PW(t){return(t-(t&rO))/aO}const oO=1,lO=2,T0=4,cO=8;class hN{constructor(e,n,s){this.pos=e,this.delInfo=n,this.recover=s}get deleted(){return(this.delInfo&cO)>0}get deletedBefore(){return(this.delInfo&(oO|T0))>0}get deletedAfter(){return(this.delInfo&(lO|T0))>0}get deletedAcross(){return(this.delInfo&T0)>0}}class Or{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Or.empty)return Or.empty}recover(e){let n=0,s=e3(e);if(!this.inverted)for(let r=0;r<s;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[s*3]+n+PW(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,s){let r=0,a=this.inverted?2:1,l=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let u=this.ranges[c]-(this.inverted?r:0);if(u>e)break;let f=this.ranges[c+a],m=this.ranges[c+l],g=u+f;if(e<=g){let x=f?e==u?-1:e==g?1:n:n,b=u+r+(x<0?0:m);if(s)return b;let v=e==(n<0?u:g)?null:IW(c/3,e-u),w=e==u?lO:e==g?oO:T0;return(n<0?e!=u:e!=g)&&(w|=cO),new hN(b,w,v)}r+=m-f}return s?e+r:new hN(e+r,0,null)}touches(e,n){let s=0,r=e3(n),a=this.inverted?2:1,l=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let u=this.ranges[c]-(this.inverted?s:0);if(u>e)break;let f=this.ranges[c+a],m=u+f;if(e<=m&&c==r*3)return!0;s+=this.ranges[c+l]-f}return!1}forEach(e){let n=this.inverted?2:1,s=this.inverted?1:2;for(let r=0,a=0;r<this.ranges.length;r+=3){let l=this.ranges[r],c=l-(this.inverted?a:0),u=l+(this.inverted?0:a),f=this.ranges[r+n],m=this.ranges[r+s];e(c,c+f,u,u+m),a+=m-f}}invert(){return new Or(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Or.empty:new Or(e<0?[0,-e,0]:[0,0,e])}}Or.empty=new Or([]);class ep{constructor(e,n,s=0,r=e?e.length:0){this.mirror=n,this.from=s,this.to=r,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ep(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,s=this._maps.length;n<e._maps.length;n++){let r=e.getMirror(n);this.appendMap(e._maps[n],r!=null&&r<n?s+r:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,s=this._maps.length+e._maps.length;n>=0;n--){let r=e.getMirror(n);this.appendMap(e._maps[n].invert(),r!=null&&r>n?s-r-1:void 0)}}invert(){let e=new ep;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let s=this.from;s<this.to;s++)e=this._maps[s].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,s){let r=0;for(let a=this.from;a<this.to;a++){let l=this._maps[a],c=l.mapResult(e,n);if(c.recover!=null){let u=this.getMirror(a);if(u!=null&&u>a&&u<this.to){a=u,e=this._maps[u].recover(c.recover);continue}}r|=c.delInfo,e=c.pos}return s?e:new hN(e,r,null)}}const kw=Object.create(null);class Ps{getMap(){return Or.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let s=kw[n.stepType];if(!s)throw new RangeError(`No step type ${n.stepType} defined`);return s.fromJSON(e,n)}static jsonID(e,n){if(e in kw)throw new RangeError("Duplicate use of step JSON ID "+e);return kw[e]=n,n.prototype.jsonID=e,n}}class _i{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new _i(e,null)}static fail(e){return new _i(null,e)}static fromReplace(e,n,s,r){try{return _i.ok(e.replace(n,s,r))}catch(a){if(a instanceof Zm)return _i.fail(a.message);throw a}}}function n_(t,e,n){let s=[];for(let r=0;r<t.childCount;r++){let a=t.child(r);a.content.size&&(a=a.copy(n_(a.content,e,a))),a.isInline&&(a=e(a,n,r)),s.push(a)}return be.fromArray(s)}class Gl extends Ps{constructor(e,n,s){super(),this.from=e,this.to=n,this.mark=s}apply(e){let n=e.slice(this.from,this.to),s=e.resolve(this.from),r=s.node(s.sharedDepth(this.to)),a=new De(n_(n.content,(l,c)=>!l.isAtom||!c.type.allowsMarkType(this.mark.type)?l:l.mark(this.mark.addToSet(l.marks)),r),n.openStart,n.openEnd);return _i.fromReplace(e,this.from,this.to,a)}invert(){return new Da(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),s=e.mapResult(this.to,-1);return n.deleted&&s.deleted||n.pos>=s.pos?null:new Gl(n.pos,s.pos,this.mark)}merge(e){return e instanceof Gl&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Gl(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Gl(n.from,n.to,e.markFromJSON(n.mark))}}Ps.jsonID("addMark",Gl);class Da extends Ps{constructor(e,n,s){super(),this.from=e,this.to=n,this.mark=s}apply(e){let n=e.slice(this.from,this.to),s=new De(n_(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return _i.fromReplace(e,this.from,this.to,s)}invert(){return new Gl(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),s=e.mapResult(this.to,-1);return n.deleted&&s.deleted||n.pos>=s.pos?null:new Da(n.pos,s.pos,this.mark)}merge(e){return e instanceof Da&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Da(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Da(n.from,n.to,e.markFromJSON(n.mark))}}Ps.jsonID("removeMark",Da);class ql extends Ps{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return _i.fail("No node at mark step's position");let s=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return _i.fromReplace(e,this.pos,this.pos+1,new De(be.from(s),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let s=this.mark.addToSet(n.marks);if(s.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(s))return new ql(this.pos,n.marks[r]);return new ql(this.pos,this.mark)}}return new Ed(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ql(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ql(n.pos,e.markFromJSON(n.mark))}}Ps.jsonID("addNodeMark",ql);class Ed extends Ps{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return _i.fail("No node at mark step's position");let s=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return _i.fromReplace(e,this.pos,this.pos+1,new De(be.from(s),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new ql(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ed(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ed(n.pos,e.markFromJSON(n.mark))}}Ps.jsonID("removeNodeMark",Ed);class ui extends Ps{constructor(e,n,s,r=!1){super(),this.from=e,this.to=n,this.slice=s,this.structure=r}apply(e){return this.structure&&fN(e,this.from,this.to)?_i.fail("Structure replace would overwrite content"):_i.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Or([this.from,this.to-this.from,this.slice.size])}invert(e){return new ui(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),s=this.from==this.to&&ui.MAP_BIAS<0?n:e.mapResult(this.from,1);return s.deletedAcross&&n.deletedAcross?null:new ui(s.pos,Math.max(s.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof ui)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?De.empty:new De(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ui(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?De.empty:new De(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ui(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ui(n.from,n.to,De.fromJSON(e,n.slice),!!n.structure)}}ui.MAP_BIAS=1;Ps.jsonID("replace",ui);class Xi extends Ps{constructor(e,n,s,r,a,l,c=!1){super(),this.from=e,this.to=n,this.gapFrom=s,this.gapTo=r,this.slice=a,this.insert=l,this.structure=c}
vendor: 4,217 bytes, line 84
84apply(e){if(this.structure&&(fN(e,this.from,this.gapFrom)||fN(e,this.gapTo,this.to)))return _i.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return _i.fail("Gap is not a flat range");let s=this.slice.insertAt(this.insert,n.content);return s?_i.fromReplace(e,this.from,this.to,s):_i.fail("Content does not fit in gap")}getMap(){return new Or([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Xi(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),s=e.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),a=this.to==this.gapTo?s.pos:e.map(this.gapTo,1);return n.deletedAcross&&s.deletedAcross||r<n.pos||a>s.pos?null:new Xi(n.pos,s.pos,r,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Xi(n.from,n.to,n.gapFrom,n.gapTo,De.fromJSON(e,n.slice),n.insert,!!n.structure)}}Ps.jsonID("replaceAround",Xi);function fN(t,e,n){let s=t.resolve(e),r=n-e,a=s.depth;for(;r>0&&a>0&&s.indexAfter(a)==s.node(a).childCount;)a--,r--;if(r>0){let l=s.node(a).maybeChild(s.indexAfter(a));for(;r>0;){if(!l||l.isLeaf)return!0;l=l.firstChild,r--}}return!1}function BW(t,e,n,s){let r=[],a=[],l,c;t.doc.nodesBetween(e,n,(u,f,m)=>{if(!u.isInline)return;let g=u.marks;if(!s.isInSet(g)&&m.type.allowsMarkType(s.type)){let x=Math.max(f,e),b=Math.min(f+u.nodeSize,n),v=s.addToSet(g);for(let w=0;w<g.length;w++)g[w].isInSet(v)||(l&&l.to==x&&l.mark.eq(g[w])?l.to=b:r.push(l=new Da(x,b,g[w])));c&&c.to==x?c.to=b:a.push(c=new Gl(x,b,s))}}),r.forEach(u=>t.step(u)),a.forEach(u=>t.step(u))}function zW(t,e,n,s){let r=[],a=0;t.doc.nodesBetween(e,n,(l,c)=>{if(!l.isInline)return;a++;let u=null;if(s instanceof Eb){let f=l.marks,m;for(;m=s.isInSet(f);)(u||(u=[])).push(m),f=m.removeFromSet(f)}else s?s.isInSet(l.marks)&&(u=[s]):u=l.marks;if(u&&u.length){let f=Math.min(c+l.nodeSize,n);for(let m=0;m<u.length;m++){let g=u[m],x;for(let b=0;b<r.length;b++){let v=r[b];v.step==a-1&&g.eq(r[b].style)&&(x=v)}x?(x.to=f,x.step=a):r.push({style:g,from:Math.max(c,e),to:f,step:a})}}}),r.forEach(l=>t.step(new Da(l.from,l.to,l.style)))}function i_(t,e,n,s=n.contentMatch,r=!0){let a=t.doc.nodeAt(e),l=[],c=e+1;for(let u=0;u<a.childCount;u++){let f=a.child(u),m=c+f.nodeSize,g=s.matchType(f.type);if(!g)l.push(new ui(c,m,De.empty));else{s=g;for(let x=0;x<f.marks.length;x++)n.allowsMarkType(f.marks[x].type)||t.step(new Da(c,m,f.marks[x]));if(r&&f.isText&&n.whitespace!="pre"){let x,b=/\r?\n|\r/g,v;for(;x=b.exec(f.text);)v||(v=new De(be.from(n.schema.text(" ",n.allowedMarks(f.marks))),0,0)),l.push(new ui(c+x.index,c+x.index+x[0].length,v))}}c=m}if(!s.validEnd){let u=s.fillBefore(be.empty,!0);t.replace(c,c,new De(u,0,0))}for(let u=l.length-1;u>=0;u--)t.step(l[u])}function FW(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Th(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let s=t.depth,r=0,a=0;;--s){let l=t.$from.node(s),c=t.$from.index(s)+r,u=t.$to.indexAfter(s)-a;if(s<t.depth&&l.canReplace(c,u,n))return s;if(s==0||l.type.spec.isolating||!FW(l,c,u))break;c&&(r=1),u<l.childCount&&(a=1)}return null}function HW(t,e,n){let{$from:s,$to:r,depth:a}=e,l=s.before(a+1),c=r.after(a+1),u=l,f=c,m=be.empty,g=0;for(let v=a,w=!1;v>n;v--)w||s.index(v)>0?(w=!0,m=be.from(s.node(v).copy(m)),g++):u--;let x=be.empty,b=0;for(let v=a,w=!1;v>n;v--)w||r.after(v+1)<r.end(v)?(w=!0,x=be.from(r.node(v).copy(x)),b++):f++;t.step(new Xi(u,f,l,c,new De(m.append(x),g,b),m.size-g,!0))}
vendor: 9,957 bytes, lines 84-85
84function s_(t,e,n=null,s=t){let r=$W(t,e),a=r&&UW(s,e);return a?r.map(t3).concat({type:e,attrs:n}).concat(a.map(t3)):null}function t3(t){return{type:t,attrs:null}}function $W(t,e){let{parent:n,startIndex:s,endIndex:r}=t,a=n.contentMatchAt(s).findWrapping(e);if(!a)return null;let l=a.length?a[0]:e;return n.canReplaceWith(s,r,l)?a:null}function UW(t,e){let{parent:n,startIndex:s,endIndex:r}=t,a=n.child(s),l=e.contentMatch.findWrapping(a.type);if(!l)return null;let u=(l.length?l[l.length-1]:e).contentMatch;for(let f=s;u&&f<r;f++)u=u.matchType(n.child(f).type);return!u||!u.validEnd?null:l}function WW(t,e,n){let s=be.empty;for(let l=n.length-1;l>=0;l--){if(s.size){let c=n[l].type.contentMatch.matchFragment(s);if(!c||!c.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}s=be.from(n[l].type.create(n[l].attrs,s))}let r=e.start,a=e.end;t.step(new Xi(r,a,r,a,new De(s,0,0),n.length,!0))}function VW(t,e,n,s,r){if(!s.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=t.steps.length;t.doc.nodesBetween(e,n,(l,c)=>{let u=typeof r=="function"?r(l):r;if(l.isTextblock&&!l.hasMarkup(s,u)&&GW(t.doc,t.mapping.slice(a).map(c),s)){let f=null;if(s.schema.linebreakReplacement){let b=s.whitespace=="pre",v=!!s.contentMatch.matchType(s.schema.linebreakReplacement);b&&!v?f=!1:!b&&v&&(f=!0)}f===!1&&uO(t,l,c,a),i_(t,t.mapping.slice(a).map(c,1),s,void 0,f===null);let m=t.mapping.slice(a),g=m.map(c,1),x=m.map(c+l.nodeSize,1);return t.step(new Xi(g,x,g+1,x-1,new De(be.from(s.create(u,null,l.marks)),0,0),1,!0)),f===!0&&dO(t,l,c,a),!1}})}function dO(t,e,n,s){e.forEach((r,a)=>{if(r.isText){let l,c=/\r?\n|\r/g;for(;l=c.exec(r.text);){let u=t.mapping.slice(s).map(n+1+a+l.index);t.replaceWith(u,u+1,e.type.schema.linebreakReplacement.create())}}})}function uO(t,e,n,s){e.forEach((r,a)=>{if(r.type==r.type.schema.linebreakReplacement){let l=t.mapping.slice(s).map(n+1+a);t.replaceWith(l,l+1,e.type.schema.text(` 85`))}})}function GW(t,e,n){let s=t.resolve(e),r=s.index();return s.parent.canReplaceWith(r,r+1,n)}function qW(t,e,n,s,r){let a=t.doc.nodeAt(e);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let l=n.create(s,null,r||a.marks);if(a.isLeaf)return t.replaceWith(e,e+a.nodeSize,l);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Xi(e,e+a.nodeSize,e+1,e+a.nodeSize-1,new De(be.from(l),0,0),1,!0))}function qo(t,e,n=1,s){let r=t.resolve(e),a=r.depth-n,l=s&&s[s.length-1]||r.parent;if(a<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!l.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let f=r.depth-1,m=n-2;f>a;f--,m--){let g=r.node(f),x=r.index(f);if(g.type.spec.isolating)return!1;let b=g.content.cutByIndex(x,g.childCount),v=s&&s[m+1];v&&(b=b.replaceChild(0,v.type.create(v.attrs)));let w=s&&s[m]||g;if(!g.canReplace(x+1,g.childCount)||!w.type.validContent(b))return!1}let c=r.indexAfter(a),u=s&&s[0];return r.node(a).canReplaceWith(c,c,u?u.type:r.node(a+1).type)}function KW(t,e,n=1,s){let r=t.doc.resolve(e),a=be.empty,l=be.empty;for(let c=r.depth,u=r.depth-n,f=n-1;c>u;c--,f--){a=be.from(r.node(c).copy(a));let m=s&&s[f];l=be.from(m?m.type.create(m.attrs,l):r.node(c).copy(l))}t.step(new ui(e,e,new De(a.append(l),n,n),!0))}function pc(t,e){let n=t.resolve(e),s=n.index();return hO(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(s,s+1)}function YW(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:s}=t.type.schema;for(let r=0;r<e.childCount;r++){let a=e.child(r),l=a.type==s?t.type.schema.nodes.text:a.type;if(n=n.matchType(l),!n||!t.type.allowsMarks(a.marks))return!1}return n.validEnd}function hO(t,e){return!!(t&&e&&!t.isLeaf&&YW(t,e))}function kb(t,e,n=-1){let s=t.resolve(e);for(let r=s.depth;;r--){let a,l,c=s.index(r);if(r==s.depth?(a=s.nodeBefore,l=s.nodeAfter):n>0?(a=s.node(r+1),c++,l=s.node(r).maybeChild(c)):(a=s.node(r).maybeChild(c-1),l=s.node(r+1)),a&&!a.isTextblock&&hO(a,l)&&s.node(r).canReplace(c,c+1))return e;if(r==0)break;e=n<0?s.before(r):s.after(r)}}function XW(t,e,n){let s=null,{linebreakReplacement:r}=t.doc.type.schema,a=t.doc.resolve(e-n),l=a.node().type;if(r&&l.inlineContent){let m=l.whitespace=="pre",g=!!l.contentMatch.matchType(r);m&&!g?s=!1:!m&&g&&(s=!0)}let c=t.steps.length;if(s===!1){let m=t.doc.resolve(e+n);uO(t,m.node(),m.before(),c)}l.inlineContent&&i_(t,e+n-1,l,a.node().contentMatchAt(a.index()),s==null);let u=t.mapping.slice(c),f=u.map(e-n);if(t.step(new ui(f,u.map(e+n,-1),De.empty,!0)),s===!0){let m=t.doc.resolve(f);dO(t,m.node(),m.before(),t.steps.length)}return t}function ZW(t,e,n){let s=t.resolve(e);if(s.parent.canReplaceWith(s.index(),s.index(),n))return e;if(s.parentOffset==0)for(let r=s.depth-1;r>=0;r--){let a=s.index(r);if(s.node(r).canReplaceWith(a,a,n))return s.before(r+1);if(a>0)return null}if(s.parentOffset==s.parent.content.size)for(let r=s.depth-1;r>=0;r--){let a=s.indexAfter(r);if(s.node(r).canReplaceWith(a,a,n))return s.after(r+1);if(a<s.node(r).childCount)return null}return null}function fO(t,e,n){let s=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let a=0;a<n.openStart;a++)r=r.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)for(let l=s.depth;l>=0;l--){let c=l==s.depth?0:s.pos<=(s.start(l+1)+s.end(l+1))/2?-1:1,u=s.index(l)+(c>0?1:0),f=s.node(l),m=!1;if(a==1)m=f.canReplace(u,u,r);else{let g=f.contentMatchAt(u).findWrapping(r.firstChild.type);m=g&&f.canReplaceWith(u,u,g[0])}if(m)return c==0?s.pos:c<0?s.before(l+1):s.after(l+1)}return null}function Cb(t,e,n=e,s=De.empty){if(e==n&&!s.size)return null;let r=t.resolve(e),a=t.resolve(n);return mO(r,a,s)?new ui(e,n,s):new JW(r,a,s).fit()}function mO(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class JW{constructor(e,n,s){this.$from=e,this.$to=n,this.unplaced=s,this.frontier=[],this.placed=be.empty;for(let r=0;r<=e.depth;r++){let a=e.node(r);this.frontier.push({type:a.type,match:a.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=be.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let f=this.findFittable();f?this.placeNodes(f):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,s=this.$from,r=this.close(e<0?this.$to:s.doc.resolve(e));if(!r)return null;let a=this.placed,l=s.depth,c=r.depth;for(;l&&c&&a.childCount==1;)a=a.firstChild.content,l--,c--;let u=new De(a,l,c);return e>-1?new Xi(s.pos,e,this.$to.pos,this.$to.end(),u,n):u.size||s.pos!=this.$to.pos?new ui(s.pos,r.pos,u):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,s=0,r=this.unplaced.openEnd;s<e;s++){let a=n.firstChild;if(n.childCount>1&&(r=0),a.type.spec.isolating&&r<=s){e=s;break}n=a.content}for(let n=1;n<=2;n++)for(let s=n==1?e:this.unplaced.openStart;s>=0;s--){let r,a=null;s?(a=n3(this.unplaced.content,s-1).firstChild,r=a.content):r=this.unplaced.content;let l=r.firstChild;for(let c=this.depth;c>=0;c--){let{type:u,match:f}=this.frontier[c],m,g=null;if(n==1&&(l?f.matchType(l.type)||(g=f.fillBefore(be.from(l),!1)):a&&u.compatibleContent(a.type)))return{sliceDepth:s,frontierDepth:c,parent:a,inject:g};if(n==2&&l&&(m=f.findWrapping(l.type)))return{sliceDepth:s,frontierDepth:c,parent:a,wrap:m};if(a&&f.matchType(a.type))break}}}openMore(){let{content:e,openStart:n,openEnd:s}=this.unplaced;return i3(e,-1)<=n?!1:(this.unplaced.size>1&&i3(e,1)>s&&s++,this.unplaced=new De(e,n+1,s),!0)}dropNode(){let{content:e,openStart:n,openEnd:s}=this.unplaced,r=n3(e,n);if(r.childCount<=1&&n>0){let a=e.size-n<=n+r.size;this.unplaced=new De(Qf(e,n-1,1),n-1,a?n-1:s)}else this.unplaced=new De(Qf(e,n,1),n,s)}placeNodes({sliceDepth:e,frontierDepth:n,parent:s,inject:r,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let w=0;w<a.length;w++)this.openFrontierNode(a[w]);let l=this.unplaced,c=s?s.content:l.content,u=l.openStart-e,f=0,m=[],{match:g,type:x}=this.frontier[n];if(r){for(let w=0;w<r.childCount;w++)m.push(r.child(w));g=g.matchFragment(r)}let b=c.size+e-(l.content.size-l.openEnd);for(;f<c.childCount;){let w=c.child(f),N=g.matchType(w.type);if(!N)break;f++,(f>1||u==0||w.content.size)&&(g=N,m.push(pO(w.mark(x.allowedMarks(w.marks)),f==1?u:0,f==c.childCount?b:-1)))}let v=f==c.childCount;v||(b=-1),this.placed=em(this.placed,n,be.from(m)),this.frontier[n].match=g,v&&b<0&&s&&s.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let w=0,N=c;w<b;w++){let _=N.lastChild;this.frontier.push({type:_.type,match:_.contentMatchAt(_.childCount)}),N=_.content}this.unplaced=v?e==0?De.empty:new De(Qf(l.content,e-1,1),e-1,b<0?l.openEnd:e-1):new De(Qf(l.content,e,f),l.openStart,l.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Cw(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:s}=this.$to,r=this.$to.after(s);for(;s>1&&r==this.$to.end(--s);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:s,type:r}=this.frontier[n],a=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),l=Cw(e,n,r,s,a);if(l){for(let c=n-1;c>=0;c--){let{match:u,type:f}=this.frontier[c],m=Cw(e,c,f,u,!0);if(!m||m.childCount)continue e}return{depth:n,fit:l,move:a?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=em(this.placed,n.depth,n.fit)),e=n.move;for(let s=n.depth+1;s<=e.depth;s++){let r=e.node(s),a=r.type.contentMatch.fillBefore(r.content,!0,e.index(s));this.openFrontierNode(r.type,r.attrs,a)}return e}
vendor: 9,921 bytes, line 85
85openFrontierNode(e,n=null,s){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=em(this.placed,this.depth,be.from(e.create(n,s))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(be.empty,!0);n.childCount&&(this.placed=em(this.placed,this.frontier.length,n))}}function Qf(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Qf(t.firstChild.content,e-1,n)))}function em(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(em(t.lastChild.content,e-1,n)))}function n3(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function pO(t,e,n){if(e<=0)return t;let s=t.content;return e>1&&(s=s.replaceChild(0,pO(s.firstChild,e-1,s.childCount==1?n-1:0))),e>0&&(s=t.type.contentMatch.fillBefore(s).append(s),n<=0&&(s=s.append(t.type.contentMatch.matchFragment(s).fillBefore(be.empty,!0)))),t.copy(s)}function Cw(t,e,n,s,r){let a=t.node(e),l=r?t.indexAfter(e):t.index(e);if(l==a.childCount&&!n.compatibleContent(a.type))return null;let c=s.fillBefore(a.content,!0,l);return c&&!QW(n,a.content,l)?c:null}function QW(t,e,n){for(let s=n;s<e.childCount;s++)if(!t.allowsMarks(e.child(s).marks))return!0;return!1}function eV(t){return t.spec.defining||t.spec.definingForContent}function i3(t,e){for(let n=0;;n++){let s=e<0?t.firstChild:t.lastChild;if(!s||s.isAtom)return n;t=s.content}}function tV(t,e,n,s){if(!s.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),a=t.doc.resolve(n);if(mO(r,a,s))return t.step(new ui(e,n,s));let l=xO(r,a);l[l.length-1]==0&&l.pop();let c=-(r.depth+1);l.unshift(c);for(let x=r.depth,b=r.pos-1;x>0;x--,b--){let v=r.node(x).type.spec;if(v.defining||v.definingAsContext||v.isolating)break;l.indexOf(x)>-1?c=x:r.before(x)==b&&l.splice(1,0,-x)}let u=l.indexOf(c),f=[],m=s.openStart;for(let x=s.content,b=0;;b++){let v=x.firstChild;if(f.push(v),b==s.openStart)break;x=v.content}for(let x=m-1;x>=0;x--){let b=f[x],v=eV(b.type);if(v&&!b.sameMarkup(r.node(Math.abs(c)-1)))m=x;else if(v||!b.type.isTextblock)break}for(let x=s.openStart;x>=0;x--){let b=(x+m+1)%(s.openStart+1),v=f[b];if(v)for(let w=0;w<l.length;w++){let N=l[(w+u)%l.length],_=!0;N<0&&(_=!1,N=-N);let E=r.node(N-1),k=r.index(N-1);if(E.canReplaceWith(k,k,v.type,v.marks))return t.replace(r.before(N),_?a.after(N):n,new De(gO(s.content,0,s.openStart,b),b,s.openEnd))}}let g=t.steps.length;for(let x=l.length-1;x>=0&&(t.replace(e,n,s),!(t.steps.length>g));x--){let b=l[x];b<0||(e=r.before(b),n=a.after(b))}}function gO(t,e,n,s,r){if(e<n){let a=t.firstChild;t=t.replaceChild(0,a.copy(gO(a.content,e+1,n,s,a)))}if(e>s){let a=r.contentMatchAt(0),l=a.fillBefore(t).append(t);t=l.append(a.matchFragment(l).fillBefore(be.empty,!0))}return t}function nV(t,e,n,s){if(!s.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=ZW(t.doc,e,s.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new De(be.from(s),0,0))}function iV(t,e,n){let s=t.doc.resolve(e),r=t.doc.resolve(n);if(s.parent.isTextblock&&r.parent.isTextblock&&s.start()!=r.start()&&s.parentOffset==0&&r.parentOffset==0){let l=s.sharedDepth(n),c=!1;for(let u=s.depth;u>l;u--)s.node(u).type.spec.isolating&&(c=!0);for(let u=r.depth;u>l;u--)r.node(u).type.spec.isolating&&(c=!0);if(!c){for(let u=s.depth;u>0&&e==s.start(u);u--)e=s.before(u);for(let u=r.depth;u>0&&n==r.start(u);u--)n=r.before(u);s=t.doc.resolve(e),r=t.doc.resolve(n)}}let a=xO(s,r);for(let l=0;l<a.length;l++){let c=a[l],u=l==a.length-1;if(u&&c==0||s.node(c).type.contentMatch.validEnd)return t.delete(s.start(c),r.end(c));if(c>0&&(u||s.node(c-1).canReplace(s.index(c-1),r.indexAfter(c-1))))return t.delete(s.before(c),r.after(c))}for(let l=1;l<=s.depth&&l<=r.depth;l++)if(e-s.start(l)==s.depth-l&&n>s.end(l)&&r.end(l)-n!=r.depth-l&&s.start(l-1)==r.start(l-1)&&s.node(l-1).canReplace(s.index(l-1),r.index(l-1)))return t.delete(s.before(l),n);t.delete(e,n)}function xO(t,e){let n=[],s=Math.min(t.depth,e.depth);for(let r=s;r>=0;r--){let a=t.start(r);if(a<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(a==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==a-1)&&n.push(r)}return n}class Xu extends Ps{constructor(e,n,s){super(),this.pos=e,this.attr=n,this.value=s}apply(e){let n=e.nodeAt(this.pos);if(!n)return _i.fail("No node at attribute step's position");let s=Object.create(null);for(let a in n.attrs)s[a]=n.attrs[a];s[this.attr]=this.value;let r=n.type.create(s,null,n.marks);return _i.fromReplace(e,this.pos,this.pos+1,new De(be.from(r),0,n.isLeaf?0:1))}getMap(){return Or.empty}invert(e){return new Xu(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Xu(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Xu(n.pos,n.attr,n.value)}}Ps.jsonID("attr",Xu);class tp extends Ps{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let s=e.type.create(n,e.content,e.marks);return _i.ok(s)}getMap(){return Or.empty}invert(e){return new tp(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new tp(n.attr,n.value)}}Ps.jsonID("docAttr",tp);let rh=class extends Error{};rh=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};rh.prototype=Object.create(Error.prototype);rh.prototype.constructor=rh;rh.prototype.name="TransformError";class r_{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ep}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new rh(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let s=0;s<this.mapping.maps.length;s++){let r=this.mapping.maps[s];s&&(e=r.map(e,1),n=r.map(n,-1)),r.forEach((a,l,c,u)=>{e=Math.min(e,c),n=Math.max(n,u)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,s=De.empty){let r=Cb(this.doc,e,n,s);return r&&this.step(r),this}replaceWith(e,n,s){return this.replace(e,n,new De(be.from(s),0,0))}delete(e,n){return this.replace(e,n,De.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,s){return tV(this,e,n,s),this}replaceRangeWith(e,n,s){return nV(this,e,n,s),this}deleteRange(e,n){return iV(this,e,n),this}lift(e,n){return HW(this,e,n),this}join(e,n=1){return XW(this,e,n),this}wrap(e,n){return WW(this,e,n),this}setBlockType(e,n=e,s,r=null){return VW(this,e,n,s,r),this}setNodeMarkup(e,n,s=null,r){return qW(this,e,n,s,r),this}setNodeAttribute(e,n,s){return this.step(new Xu(e,n,s)),this}setDocAttribute(e,n){return this.step(new tp(e,n)),this}addNodeMark(e,n){return this.step(new ql(e,n)),this}removeNodeMark(e,n){let s=this.doc.nodeAt(e);if(!s)throw new RangeError("No node at position "+e);if(n instanceof gn)n.isInSet(s.marks)&&this.step(new Ed(e,n));else{let r=s.marks,a,l=[];for(;a=n.isInSet(r);)l.push(new Ed(e,a)),r=a.removeFromSet(r);for(let c=l.length-1;c>=0;c--)this.step(l[c])}return this}split(e,n=1,s){return KW(this,e,n,s),this}addMark(e,n,s){return BW(this,e,n,s),this}removeMark(e,n,s){return zW(this,e,n,s),this}clearIncompatible(e,n,s){return i_(this,e,n,s),this}}const Tw=Object.create(null);class it{constructor(e,n,s){this.$anchor=e,this.$head=n,this.ranges=s||[new yO(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=De.empty){let s=n.content.lastChild,r=null;for(let c=0;c<n.openEnd;c++)r=s,s=s.lastChild;let a=e.steps.length,l=this.ranges;for(let c=0;c<l.length;c++){let{$from:u,$to:f}=l[c],m=e.mapping.slice(a);e.replaceRange(m.map(u.pos),m.map(f.pos),c?De.empty:n),c==0&&a3(e,a,(s?s.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let s=e.steps.length,r=this.ranges;for(let a=0;a<r.length;a++){let{$from:l,$to:c}=r[a],u=e.mapping.slice(s),f=u.map(l.pos),m=u.map(c.pos);a?e.deleteRange(f,m):(e.replaceRangeWith(f,m,n),a3(e,s,n.isInline?-1:1))}}static findFrom(e,n,s=!1){let r=e.parent.inlineContent?new Ue(e):Mu(e.node(0),e.parent,e.pos,e.index(),n,s);if(r)return r;for(let a=e.depth-1;a>=0;a--){let l=n<0?Mu(e.node(0),e.node(a),e.before(a+1),e.index(a),n,s):Mu(e.node(0),e.node(a),e.after(a+1),e.index(a)+1,n,s);if(l)return l}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Br(e.node(0))}static atStart(e){return Mu(e,e,0,0,1)||new Br(e)}static atEnd(e){return Mu(e,e,e.content.size,e.childCount,-1)||new Br(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let s=Tw[n.type];if(!s)throw new RangeError(`No selection type ${n.type} defined`);return s.fromJSON(e,n)}static jsonID(e,n){if(e in Tw)throw new RangeError("Duplicate use of selection JSON ID "+e);return Tw[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Ue.between(this.$anchor,this.$head).getBookmark()}}it.prototype.visible=!0;class yO{constructor(e,n){this.$from=e,this.$to=n}}let s3=!1;function r3(t){!s3&&!t.parent.inlineContent&&(s3=!0,console.warn("TextSelection endpoint not pointing into a
85node with inline content ("+t.parent.type.name+")"))}class Ue extends it{constructor(e,n=e){r3(e),r3(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let s=e.resolve(n.map(this.head));if(!s.parent.inlineContent)return it.near(s);let r=e.resolve(n.map(this.anchor));return new Ue(r.parent.inlineContent?r:s,s)}replace(e,n=De.empty){if(super.replace(e,n),n==De.empty){let s=this.$from.marksAcross(this.$to);s&&e.ensureMarks(s)}}eq(e){return e instanceof Ue&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Tb(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ue(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,s=n){let r=e.resolve(n);return new this(r,s==n?r:e.resolve(s))}static between(e,n,s){let r=e.pos-n.pos;if((!s||r)&&(s=r>=0?1:-1),!n.parent.inlineContent){let a=it.findFrom(n,s,!0)||it.findFrom(n,-s,!0);if(a)n=a.$head;else return it.near(n,s)}return e.parent.inlineContent||(r==0?e=n:(e=(it.findFrom(e,-s,!0)||it.findFrom(e,s,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new Ue(e,n)}}it.jsonID("text",Ue);class Tb{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Tb(e.map(this.anchor),e.map(this.head))}resolve(e){return Ue.between(e.resolve(this.anchor),e.resolve(this.head))}}class Ye extends it{constructor(e){let n=e.nodeAfter,s=e.node(0).resolve(e.pos+n.nodeSize);super(e,s),this.node=n}map(e,n){let{deleted:s,pos:r}=n.mapResult(this.anchor),a=e.resolve(r);return s?it.near(a):new Ye(a)}content(){return new De(be.from(this.node),0,0)}eq(e){return e instanceof Ye&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new a_(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Ye(e.resolve(n.anchor))}static create(e,n){return new Ye(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Ye.prototype.visible=!1;it.jsonID("node",Ye);class a_{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:s}=e.mapResult(this.anchor);return n?new Tb(s,s):new a_(s)}resolve(e){let n=e.resolve(this.anchor),s=n.nodeAfter;return s&&Ye.isSelectable(s)?new Ye(n):it.near(n)}}class Br extends it{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=De.empty){if(n==De.empty){e.delete(0,e.doc.content.size);let s=it.atStart(e.doc);s.eq(e.selection)||e.setSelection(s)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Br(e)}map(e){return new Br(e)}eq(e){return e instanceof Br}getBookmark(){return sV}}it.jsonID("all",Br);const sV={map(){return this},resolve(t){return new Br(t)}};function Mu(t,e,n,s,r,a=!1){if(e.inlineContent)return Ue.create(t,n);for(let l=s-(r>0?0:1);r>0?l<e.childCount:l>=0;l+=r){let c=e.child(l);if(c.isAtom){if(!a&&Ye.isSelectable(c))return Ye.create(t,n-(r<0?c.nodeSize:0))}else{let u=Mu(t,c,n+r,r<0?c.childCount:0,r,a);if(u)return u}n+=c.nodeSize*r}return null}function a3(t,e,n){let s=t.steps.length-1;if(s<e)return;let r=t.steps[s];if(!(r instanceof ui||r instanceof Xi))return;let a=t.mapping.maps[s],l;a.forEach((c,u,f,m)=>{l==null&&(l=m)}),t.setSelection(it.near(t.doc.resolve(l),n))}const o3=1,_x=2,l3=4;class rV extends r_{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|o3)&~_x,this.storedMarks=null,this}get selectionSet(){return(this.updated&o3)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=_x,this}ensureMarks(e){return gn.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&_x)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~_x,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let s=this.selection;return n&&(e=e.mark(this.storedMarks||(s.empty?s.$from.marks():s.$from.marksAcross(s.$to)||gn.none))),s.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,s){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(s==null&&(s=n),!e)return this.deleteRange(n,s);let a=this.storedMarks;if(!a){let l=this.doc.resolve(n);a=s==n?l.marks():l.marksAcross(this.doc.resolve(s))}return this.replaceRangeWith(n,s,r.text(e,a)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(it.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=l3,this}get scrolledIntoView(){return(this.updated&l3)>0}}function c3(t,e){return!e||!t?t:t.bind(e)}class tm{constructor(e,n,s){this.name=e,this.init=c3(n.init,s),this.apply=c3(n.apply,s)}}const aV=[new tm("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new tm("selection",{init(t,e){return t.selection||it.atStart(e.doc)},apply(t){return t.selection}}),new tm("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,s){return s.selection.$cursor?t.storedMarks:null}}),new tm("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Aw{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=aV.slice(),n&&n.forEac
vendor: 21,370 bytes, lines 85-86
85h(s=>{if(this.pluginsByKey[s.key])throw new RangeError("Adding different instances of a keyed plugin ("+s.key+")");this.plugins.push(s),this.pluginsByKey[s.key]=s,s.spec.state&&this.fields.push(new tm(s.key,s.spec.state,s))})}}class Zc{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let s=0;s<this.config.plugins.length;s++)if(s!=n){let r=this.config.plugins[s];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],s=this.applyInner(e),r=null;for(;;){let a=!1;for(let l=0;l<this.config.plugins.length;l++){let c=this.config.plugins[l];if(c.spec.appendTransaction){let u=r?r[l].n:0,f=r?r[l].state:this,m=u<n.length&&c.spec.appendTransaction.call(c,u?n.slice(u):n,f,s);if(m&&s.filterTransaction(m,l)){if(m.setMeta("appendedTransaction",e),!r){r=[];for(let g=0;g<this.config.plugins.length;g++)r.push(g<l?{state:s,n:n.length}:{state:this,n:0})}n.push(m),s=s.applyInner(m),a=!0}r&&(r[l]={state:s,n:n.length})}}if(!a)return{state:s,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Zc(this.config),s=this.config.fields;for(let r=0;r<s.length;r++){let a=s[r];n[a.name]=a.apply(e,this[a.name],this,n)}return n}get tr(){return new rV(this)}static create(e){let n=new Aw(e.doc?e.doc.type.schema:e.schema,e.plugins),s=new Zc(n);for(let r=0;r<n.fields.length;r++)s[n.fields[r].name]=n.fields[r].init(e,s);return s}reconfigure(e){let n=new Aw(this.schema,e.plugins),s=n.fields,r=new Zc(n);for(let a=0;a<s.length;a++){let l=s[a].name;r[l]=this.hasOwnProperty(l)?this[l]:s[a].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(s=>s.toJSON())),e&&typeof e=="object")for(let s in e){if(s=="doc"||s=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[s],a=r.spec.state;a&&a.toJSON&&(n[s]=a.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,s){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Aw(e.schema,e.plugins),a=new Zc(r);return r.fields.forEach(l=>{if(l.name=="doc")a.doc=cd.fromJSON(e.schema,n.doc);else if(l.name=="selection")a.selection=it.fromJSON(a.doc,n.selection);else if(l.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(s)for(let c in s){let u=s[c],f=u.spec.state;if(u.key==l.name&&f&&f.fromJSON&&Object.prototype.hasOwnProperty.call(n,c)){a[l.name]=f.fromJSON.call(u,e,n[c],a);return}}a[l.name]=l.init(e,a)}}),a}}function bO(t,e,n){for(let s in t){let r=t[s];r instanceof Function?r=r.bind(e):s=="handleDOMEvents"&&(r=bO(r,e,{})),n[s]=r}return n}class ln{constructor(e){this.spec=e,this.props={},e.props&&bO(e.props,this,this.props),this.key=e.key?e.key.key:vO("plugin")}getState(e){return e[this.key]}}const Mw=Object.create(null);function vO(t){return t in Mw?t+"$"+ ++Mw[t]:(Mw[t]=0,t+"$")}class Fn{constructor(e="key"){this.key=vO(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const wO=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function NO(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const SO=(t,e,n)=>{let s=NO(t,n);if(!s)return!1;let r=o_(s);if(!r){let l=s.blockRange(),c=l&&Th(l);return c==null?!1:(e&&e(t.tr.lift(l,c).scrollIntoView()),!0)}let a=r.nodeBefore;if(RO(t,r,e,-1))return!0;if(s.parent.content.size==0&&(ah(a,"end")||Ye.isSelectable(a)))for(let l=s.depth;;l--){let c=Cb(t.doc,s.before(l),s.after(l),De.empty);if(c&&c.slice.size<c.to-c.from){if(e){let u=t.tr.step(c);u.setSelection(ah(a,"end")?it.findFrom(u.doc.resolve(u.mapping.map(r.pos,-1)),-1):Ye.create(u.doc,r.pos-a.nodeSize)),e(u.scrollIntoView())}return!0}if(l==1||s.node(l-1).childCount>1)break}return a.isAtom&&r.depth==s.depth-1?(e&&e(t.tr.delete(r.pos-a.nodeSize,r.pos).scrollIntoView()),!0):!1},oV=(t,e,n)=>{let s=NO(t,n);if(!s)return!1;let r=o_(s);return r?_O(t,r,e):!1},lV=(t,e,n)=>{let s=EO(t,n);if(!s)return!1;let r=l_(s);return r?_O(t,r,e):!1};function _O(t,e,n){let s=e.nodeBefore,r=s,a=e.pos-1;for(;!r.isTextblock;a--){if(r.type.spec.isolating)return!1;let m=r.lastChild;if(!m)return!1;r=m}let l=e.nodeAfter,c=l,u=e.pos+1;for(;!c.isTextblock;u++){if(c.type.spec.isolating)return!1;let m=c.firstChild;if(!m)return!1;c=m}let f=Cb(t.doc,a,u,De.empty);if(!f||f.from!=a||f instanceof ui&&f.slice.size>=u-a)return!1;if(n){let m=t.tr.step(f);m.setSelection(Ue.create(m.doc,a)),n(m.scrollIntoView())}return!0}function ah(t,e,n=!1){for(let s=t;s;s=e=="start"?s.firstChild:s.lastChild){if(s.isTextblock)return!0;if(n&&s.childCount!=1)return!1}return!1}const jO=(t,e,n)=>{let{$head:s,empty:r}=t.selection,a=s;if(!r)return!1;if(s.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):s.parentOffset>0)return!1;a=o_(s)}let l=a&&a.nodeBefore;return!l||!Ye.isSelectable(l)?!1:(e&&e(t.tr.setSelection(Ye.create(t.doc,a.pos-l.nodeSize)).scrollIntoView()),!0)};function o_(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function EO(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const kO=(t,e,n)=>{let s=EO(t,n);if(!s)return!1;let r=l_(s);if(!r)return!1;let a=r.nodeAfter;if(RO(t,r,e,1))return!0;if(s.parent.content.size==0&&(ah(a,"start")||Ye.isSelectable(a))){let l=Cb(t.doc,s.before(),s.after(),De.empty);if(l&&l.slice.size<l.to-l.from){if(e){let c=t.tr.step(l);c.setSelection(ah(a,"start")?it.findFrom(c.doc.resolve(c.mapping.map(r.pos)),1):Ye.create(c.doc,c.mapping.map(r.pos))),e(c.scrollIntoView())}return!0}}return a.isAtom&&r.depth==s.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+a.nodeSize).scrollIntoView()),!0):!1},CO=(t,e,n)=>{let{$head:s,empty:r}=t.selection,a=s;if(!r)return!1;if(s.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):s.parentOffset<s.parent.content.size)return!1;a=l_(s)}let l=a&&a.nodeAfter;return!l||!Ye.isSelectable(l)?!1:(e&&e(t.tr.setSelection(Ye.create(t.doc,a.pos)).scrollIntoView()),!0)};function l_(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const cV=(t,e)=>{let n=t.selection,s=n instanceof Ye,r;if(s){if(n.node.isTextblock||!pc(t.doc,n.from))return!1;r=n.from}else if(r=kb(t.doc,n.from,-1),r==null)return!1;if(e){let a=t.tr.join(r);s&&a.setSelection(Ye.create(a.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(a.scrollIntoView())}return!0},dV=(t,e)=>{let n=t.selection,s;if(n instanceof Ye){if(n.node.isTextblock||!pc(t.doc,n.to))return!1;s=n.to}else if(s=kb(t.doc,n.to,1),s==null)return!1;return e&&e(t.tr.join(s).scrollIntoView()),!0},uV=(t,e)=>{let{$from:n,$to:s}=t.selection,r=n.blockRange(s),a=r&&Th(r);return a==null?!1:(e&&e(t.tr.lift(r,a).scrollIntoView()),!0)},TO=(t,e)=>{let{$head:n,$anchor:s}=t.selection;return!n.parent.type.spec.code||!n.sameParent(s)?!1:(e&&e(t.tr.insertText(` 86`).scrollIntoView()),!0)};function c_(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const hV=(t,e)=>{let{$head:n,$anchor:s}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(s))return!1;let r=n.node(-1),a=n.indexAfter(-1),l=c_(r.contentMatchAt(a));if(!l||!r.canReplaceWith(a,a,l))return!1;if(e){let c=n.after(),u=t.tr.replaceWith(c,c,l.createAndFill());u.setSelection(it.near(u.doc.resolve(c),1)),e(u.scrollIntoView())}return!0},AO=(t,e)=>{let n=t.selection,{$from:s,$to:r}=n;if(n instanceof Br||s.parent.inlineContent||r.parent.inlineContent)return!1;let a=c_(r.parent.contentMatchAt(r.indexAfter()));if(!a||!a.isTextblock)return!1;if(e){let l=(!s.parentOffset&&r.index()<r.parent.childCount?s:r).pos,c=t.tr.insert(l,a.createAndFill());c.setSelection(Ue.create(c.doc,l+1)),e(c.scrollIntoView())}return!0},MO=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(qo(t.doc,a))return e&&e(t.tr.split(a).scrollIntoView()),!0}let s=n.blockRange(),r=s&&Th(s);return r==null?!1:(e&&e(t.tr.lift(s,r).scrollIntoView()),!0)};function fV(t){return(e,n)=>{if(e.selection instanceof Ye&&e.selection.node.isBlock){let{$from:b}=e.selection;return!b.parentOffset||!qo(e.doc,b.pos)?!1:(n&&n(e.tr.split(b.pos).scrollIntoView()),!0)}if(!e.selection.$from.depth)return!1;let s=e.tr;!e.selection.empty&&(e.selection instanceof Ue||e.selection instanceof Br)&&s.deleteSelection();let{$from:r}=s.selection,a=s.steps.length,l=[],c,u,f=!1,m=!1;for(let b=r.depth;;b--)if(r.node(b).isBlock){f=r.end(b)==r.pos+(r.depth-b),m=r.start(b)==r.pos-(r.depth-b),u=c_(r.node(b-1).contentMatchAt(r.indexAfter(b-1))),l.unshift(f&&u?{type:u}:null),c=b;break}else{if(b==1)return!1;l.unshift(null)}let g=r.pos,x=qo(s.doc,g,l.length,l);if(x||(l[0]=u?{type:u}:null,x=qo(s.doc,g,l.length,l)),!x)return!1;if(s.split(g,l.length,l),!f&&m&&r.node(c).type!=u){let b=s.mapping.slice(a),v=b.map(r.before(c)),w=s.doc.resolve(v);u&&r.node(c-1).canReplaceWith(w.index(),w.index()+1,u)&&s.setNodeMarkup(b.map(r.before(c)),u)}return n&&n(s.scrollIntoView()),!0}}const mV=fV(),pV=(t,e)=>{let{$from:n,to:s}=t.selection,r,a=n.sharedDepth(s);return a==0?!1:(r=n.before(a),e&&e(t.tr.setSelection(Ye.create(t.doc,r))),!0)};function gV(t,e,n){let s=e.nodeBefore,r=e.nodeAfter,a=e.index();return!s||!r||!s.type.compatibleContent(r.type)?!1:!s.content.size&&e.parent.canReplace(a-1,a)?(n&&n(t.tr.delete(e.pos-s.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(a,a+1)||!(r.isTextblock||pc(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function RO(t,e,n,s){let r=e.nodeBefore,a=e.nodeAfter,l,c,u=r.type.spec.isolating||a.type.spec.isolating;if(!u&&gV(t,e,n))return!0;let f=!u&&e.parent.canReplace(e.index(),e.index()+1);if(f&&(l=(c=r.contentMatchAt(r.childCount)).findWrapping(a.type))&&c.matchType(l[0]||a.type).validEnd){if(n){let b=e.pos+a.nodeSize,v=be.empty;for(let _=l.length-1;_>=0;_--)v=be.from(l[_].create(null,v));v=be.from(r.copy(v));let w=t.tr.step(new Xi(e.pos-1,b,e.pos,b,new De(v,1,0),l.length,!0)),N=w.doc.resolve(b+2*l.length);N.nodeAfter&&N.nodeAfter.type==r.type&&pc(w.doc,N.pos)&&w.join(N.pos),n(w.scrollIntoView())}return!0}let m=a.type.spec.isolating||s>0&&u?null:it.findFrom(e,1),g=m&&m.$from.blockRange(m.$to),x=g&&Th(g);if(x!=null&&x>=e.depth)return n&&n(t.tr.lift(g,x).scrollIntoView()),!0;if(f&&ah(a,"start",!0)&&ah(r,"end")){let b=r,v=[];for(;v.push(b),!b.isTextblock;)b=b.lastChild;let w=a,N=1;for(;!w.isTextblock;w=w.firstChild)N++;if(b.canReplace(b.childCount,b.childCount,w.content)){if(n){let _=be.empty;for(let k=v.length-1;k>=0;k--)_=be.from(v[k].copy(_));let E=t.tr.step(new Xi(e.pos-v.length,e.pos+a.nodeSize,e.pos+N,e.pos+a.nodeSize-N,new De(_,v.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function OO(t){return function(e,n){let s=e.selection,r=t<0?s.$from:s.$to,a=r.depth;for(;r.node(a).isInline;){if(!a)return!1;a--}return r.node(a).isTextblock?(n&&n(e.tr.setSelection(Ue.create(e.doc,t<0?r.start(a):r.end(a)))),!0):!1}}const xV=OO(-1),yV=OO(1);function bV(t,e=null){return function(n,s){let{$from:r,$to:a}=n.selection,l=r.blockRange(a),c=l&&s_(l,t,e);return c?(s&&s(n.tr.wrap(l,c).scrollIntoView()),!0):!1}}function d3(t,e=null){return function(n,s){let r=!1;for(let a=0;a<n.selection.ranges.length&&!r;a++){let{$from:{pos:l},$to:{pos:c}}=n.selection.ranges[a];n.doc.nodesBetween(l,c,(u,f)=>{if(r)return!1;if(!(!u.isTextblock||u.hasMarkup(t,e)))if(u.type==t)r=!0;else{let m=n.doc.resolve(f),g=m.index();r=m.parent.canReplaceWith(g,g+1,t)}})}if(!r)return!1;if(s){let a=n.tr;for(let l=0;l<n.selection.ranges.length;l++){let{$from:{pos:c},$to:{pos:u}}=n.selection.ranges[l];a.setBlockType(c,u,t,e)}s(a.scrollIntoView())}return!0}}function d_(...t){return function(e,n,s){for(let r=0;r<t.length;r++)if(t[r](e,n,s))return!0;return!1}}d_(wO,SO,jO);d_(wO,kO,CO);d_(TO,AO,MO,mV);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function vV(t,e=null){return function(n,s){let{$from:r,$to:a}=n.selection,l=r.blockRange(a);if(!l)return!1;let c=s?n.tr:null;return wV(c,l,t,e)?(s&&s(c.scrollIntoView()),!0):!1}}function wV(t,e,n,s=null){let r=!1,a=e,l=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let u=l.resolve(e.start-2);a=new sy(u,u,e.depth),e.endIndex<e.parent.childCount&&(e=new sy(e.$from,l.resolve(e.$to.end(e.depth)),e.depth)),r=!0}let c=s_(a,n,s,e);return c?(t&&NV(t,e,c,r,n),!0):!1}function NV(t,e,n,s,r){let a=be.empty;for(let m=n.length-1;m>=0;m--)a=be.from(n[m].type.create(n[m].attrs,a));t.step(new Xi(e.start-(s?2:0),e.end,e.start,e.end,new De(a,0,0),n.length,!0));let l=0;for(let m=0;m<n.length;m++)n[m].type==r&&(l=m+1);let c=n.length-l,u=e.start+n.length-(s?2:0),f=e.parent;for(let m=e.startIndex,g=e.endIndex,x=!0;m<g;m++,x=!1)!x&&qo(t.doc,u,c)&&(t.split(u,c),u+=2*c),u+=f.child(m).nodeSize;return t}function SV(t){return function(e,n){let{$from:s,$to:r}=e.selection,a=s.blockRange(r,l=>l.childCount>0&&l.firstChild.type==t);return a?n?s.node(a.depth-1).type==t?_V(e,n,t,a):jV(e,n,a):!0:!1}}function _V(t,e,n,s){let r=t.tr,a=s.end,l=s.$to.end(s.depth);a<l&&(r.step(new Xi(a-1,l,a,l,new De(be.from(n.create(null,s.parent.copy())),1,0),1,!0)),s=new sy(r.doc.resolve(s.$from.pos),r.doc.resolve(l),s.depth));const c=Th(s);if(c==null)return!1;r.lift(s,c);let u=r.doc.resolve(r.mapping.map(a,-1)-1);return pc(r.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&r.join(u.pos),e(r.scrollIntoView()),!0}function jV(t,e,n){let s=t.tr,r=n.parent;for(let b=n.end,v=n.endIndex-1,w=n.startIndex;v>w;v--)b-=r.child(v).nodeSize,s.delete(b-1,b+1);let a=s.doc.resolve(n.start),l=a.nodeAfter;if(s.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let c=n.startIndex==0,u=n.endIndex==r.childCount,f=a.node(-1),m=a.index(-1);if(!f.canReplace(m+(c?0:1),m+1,l.content.append(u?be.empty:be.from(r))))return!1;let g=a.pos,x=g+l.nodeSize;return s.step(new Xi(g-(c?1:0),x+(u?1:0),g+1,x-1,new De((c?be.empty:be.from(r.copy(be.empty))).append(u?be.empty:be.from(r.copy(be.empty))),c?0:1,u?0:1),c?0:1)),e(s.scrollIntoView()),!0}function EV(t){return function(e,n){let{$from:s,$to:r}=e.selection,a=s.blockRange(r,f=>f.childCount>0&&f.firstChild.type==t);if(!a)return!1;let l=a.startIndex;if(l==0)return!1;let c=a.parent,u=c.child(l-1);if(u.type!=t)return!1;if(n){let f=u.lastChild&&u.lastChild.type==c.type,m=be.from(f?t.create():null),g=new De(be.from(t.create(null,be.from(c.type.create(null,m)))),f?3:1,0),x=a.start,b=a.end;n(e.tr.step(new Xi(x-(f?3:1),b,x,b,g,1,!0)).scrollIntoView())}return!0}}const cs=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},oh=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let mN=null;const Po=function(t,e,n){let s=mN||(mN=document.createRange());return s.setEnd(t,n??t.nodeValue.length),s.setStart(t,e||0),s},kV=function(){mN=null},kd=function(t,e,n,s){return n&&(u3(t,e,n,s,-1)||u3(t,e,n,s,1))},CV=/^(img|br|input|textarea|hr)$/i;function u3(t,e,n,s,r){for(var a;;){if(t==n&&e==s)return!0;if(e==(r<0?0:da(t))){let l=t.parentNode;if(!l||l.nodeType!=1||Dp(t)||CV.test(t.nodeName)||t.contentEditable=="false")return!1;e=cs(t)+(r<0?0:1),t=l}else if(t.nodeType==1){let l=t.childNodes[e+(r<0?-1:0)];if(l.nodeType==1&&l.contentEditable=="false")if(!((a=l.pmViewDesc)===null||a===void 0)&&a.ignoreForSelection)e+=r;else return!1;else t=l,e=r<0?da(t):0}else return!1}}function da(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function TV(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=da(t)}else if(t.parentNode&&!Dp(t))e=cs(t),t=t.parentNode;else return null}}function AV(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Dp(t))e=cs(t)+1,t=t.parentNode;else return null}}function MV(t,e,n){for(let s=e==0,r=e==da(t);s||r;){if(t==n)return!0;let a=cs(t);if(t=t.parentNode,!t)return!1;s=s&&a==0,r=r&&a==da(t)}}function Dp(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Ab=function(t){return t.focusNode&&kd(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Kc(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function RV(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function OV(t,e,n){if(t.caretPositionFromPoint)try{let s=t.caretPositionFromPoint(e,n);if(s)return{node:s.offsetNode,offset:Math.min(da(s.offsetNode),s.offset)}}catch{}if(t.caretRangeFromPoint){let s=t.caretRangeFromPoint(e,n);if(s)return{node:s.startContainer,offset:Math.min(da(s.startContainer),s.startOffset)}}}const uo=typeof navigator<"u"?navigator:null,h3=typeof document<"u"?document:null,gc=uo&&uo.userAgent||"",pN=/Edge\/(\d+)/.exec(gc),DO=/MSIE \d/.exec(gc),gN=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gc),hr=!!(DO||gN||pN),ec=DO?document.documentMode:gN?+gN[1]:pN?+pN[1]:0,ma=!hr&&/gecko\/(\d+)/i.test(gc);ma&&+(/Firefox\/(\d+)/.exec(gc)||[0,0])[1];const xN=!hr&&/Chrome\/(\d+)/.exec(gc),hs=!!xN,LO=xN?+xN[1]:0,Ds=!hr&&!!uo&&/Apple Computer/.test(uo.vendor),lh=Ds&&(/Mobile\/\w+/.test(gc)||!!uo&&uo.maxTouchPoints>2),oa=lh||(uo?/Mac/.test(uo.platform):!1),IO=uo?/Win/.test(uo.platform):!1,Uo=/Android \d/.test(gc),Lp=!!h3&&"webkitFontSmoothing"in h3.documentElement.style,DV=Lp?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function LV(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Co(t,e){return typeof t=="number"?t:t[e]}function IV(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,s=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*s}}function f3(t,e,n){if(!yN(e)&&e.left==0)return;let s=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,a=t.dom.ownerDocument;for(let l=n||t.dom;l;){if(l.nodeType!=1){l=oh(l);continue}let c=l,u=c==a.body,f=u?LV(a):IV(c),m=0,g=0;if(e.top<f.top+Co(s,"top")?g=-(f.top-e.top+Co(r,"top")):e.bottom>f.bottom-Co(s,"bottom")&&(g=e.bottom-e.top>f.bottom-f.top?e.top+Co(r,"top")-f.top:e.bottom-f.bottom+Co(r,"bottom")),e.left<f.left+Co(s,"left")?m=-(f.left-e.left+Co(r,"left")):e.right>f.right-Co(s,"right")&&(m=e.right-f.right+Co(r,"right")),m||g)if(u)a.defaultView.scrollBy(m,g);else{let b=c.scrollLeft,v=c.scrollTop;g&&(c.scrollTop+=g),m&&(c.scrollLeft+=m);let w=c.scrollLeft-b,N=c.scrollTop-v;e={left:e.left-w,top:e.top-N,right:e.right-w,bottom:e.bottom-N}}let x=u?"fixed":getComputedStyle(l).position;if(/^(fixed|sticky)$/.test(x))break;l=x=="absolute"?l.offsetParent:oh(l)}}function PV(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),s,r;for(let a=(e.left+e.right)/2,l=n+1;l<Math.min(innerHeight,e.bottom);l+=5){let c=t.root.elementFromPoint(a,l);if(!c||c==t.dom||!t.dom.contains(c))continue;let u=c.getBoundingClientRect();if(u.top>=n-20){s=c,r=u.top;break}}return{refDOM:s,refTop:r,stack:PO(t.dom)}}function PO(t){let e=[],n=t.ownerDocument;for(let s=t;s&&(e.push({dom:s,top:s.scrollTop,left:s.scrollLeft}),t!=n);s=oh(s));return e}function BV({refDOM:t,refTop:e,stack:n}){let s=t?t.getBoundingClientRect().top:0;BO(n,s==0?0:s-e)}function BO(t,e){for(let n=0;n<t.length;n++){let{dom:s,top:r,left:a}=t[n];s.scrollTop!=r+e&&(s.scrollTop=r+e),s.scrollLeft!=a&&(s.scrollLeft=a)}}let yu=null;function zV(t){if(t.setActive)return t.setActive();if(yu)return t.focus(yu);let e=PO(t);t.focus(yu==null?{get preventScroll(){return yu={preventScroll:!0},!0}}:void 0),yu||(yu=!1,BO(e,0))}function zO(t,e){let n,s=2e8,r,a=0,l=e.top,c=e.top,u,f;for(let m=t.firstChild,g=0;m;m=m.nextSibling,g++){let x;if(m.nodeType==1)x=m.getClientRects();else if(m.nodeType==3)x=Po(m).getClientRects();else continue;for(let b=0;b<x.length;b++){let v=x[b];if(v.top<=l&&v.bottom>=c){l=Math.max(v.bottom,l),c=Math.min(v.top,c);let w=v.left>e.left?v.left-e.left:v.right<e.left?e.left-v.right:0;if(w<s){n=m,s=w,r=w&&n.nodeType==3?{left:v.right<e.left?v.right:v.left,top:e.top}:e,m.nodeType==1&&w&&(a=g+(e.left>=(v.left+v.right)/2?1:0));continue}}else v.top>e.top&&!u&&v.left<=e.left&&v.right>=e.left&&(u=m,f={left:Math.max(v.left,Math.min(v.right,e.left)),top:v.top});!n&&(e.left>=v.right&&e.top>=v.top||e.left>=v.left&&e.top>=v.bottom)&&(a=g+1)}}return!n&&u&&(n=u,r=f,s=0),n&&n.nodeType==3?FV(n,r):!n||s&&n.nodeType==1?{node:t,offset:a}:zO(n,r)}function FV(t,e){let n=t.nodeValue.length,s=document.createRange(),r;for(let a=0;a<n;a++){s.setEnd(t,a+1),s.setStart(t,a);
vendor: 4,748 bytes, line 86
86let l=Bl(s,1);if(l.top!=l.bottom&&u_(e,l)){r={node:t,offset:a+(e.left>=(l.left+l.right)/2?1:0)};break}}return s.detach(),r||{node:t,offset:0}}function u_(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function HV(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function $V(t,e,n){let{node:s,offset:r}=zO(e,n),a=-1;if(s.nodeType==1&&!s.firstChild){let l=s.getBoundingClientRect();a=l.left!=l.right&&n.left>(l.left+l.right)/2?1:-1}return t.docView.posFromDOM(s,r,a)}function UV(t,e,n,s){let r=-1;for(let a=e,l=!1;a!=t.dom;){let c=t.docView.nearestDesc(a,!0),u;if(!c)return null;if(c.dom.nodeType==1&&(c.node.isBlock&&c.parent||!c.contentDOM)&&((u=c.dom.getBoundingClientRect()).width||u.height)&&(c.node.isBlock&&c.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(c.dom.nodeName)&&(!l&&u.left>s.left||u.top>s.top?r=c.posBefore:(!l&&u.right<s.left||u.bottom<s.top)&&(r=c.posAfter),l=!0),!c.contentDOM&&r<0&&!c.node.isText))return(c.node.isBlock?s.top<(u.top+u.bottom)/2:s.left<(u.left+u.right)/2)?c.posBefore:c.posAfter;a=c.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function FO(t,e,n){let s=t.childNodes.length;if(s&&n.top<n.bottom)for(let r=Math.max(0,Math.min(s-1,Math.floor(s*(e.top-n.top)/(n.bottom-n.top))-2)),a=r;;){let l=t.childNodes[a];if(l.nodeType==1){let c=l.getClientRects();for(let u=0;u<c.length;u++){let f=c[u];if(u_(e,f))return FO(l,e,f)}}if((a=(a+1)%s)==r)break}return t}function WV(t,e){let n=t.dom.ownerDocument,s,r=0,a=OV(n,e.left,e.top);a&&({node:s,offset:r}=a);let l=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),c;if(!l||!t.dom.contains(l.nodeType!=1?l.parentNode:l)){let f=t.dom.getBoundingClientRect();if(!u_(e,f)||(l=FO(t.dom,e,f),!l))return null}if(Ds)for(let f=l;s&&f;f=oh(f))f.draggable&&(s=void 0);if(l=HV(l,e),s){if(ma&&s.nodeType==1&&(r=Math.min(r,s.childNodes.length),r<s.childNodes.length)){let m=s.childNodes[r],g;m.nodeName=="IMG"&&(g=m.getBoundingClientRect()).right<=e.left&&g.bottom>e.top&&r++}let f;Lp&&r&&s.nodeType==1&&(f=s.childNodes[r-1]).nodeType==1&&f.contentEditable=="false"&&f.getBoundingClientRect().top>=e.top&&r--,s==t.dom&&r==s.childNodes.length-1&&s.lastChild.nodeType==1&&e.top>s.lastChild.getBoundingClientRect().bottom?c=t.state.doc.content.size:(r==0||s.nodeType!=1||s.childNodes[r-1].nodeName!="BR")&&(c=UV(t,s,r,e))}c==null&&(c=$V(t,l,e));let u=t.docView.nearestDesc(l,!0);return{pos:c,inside:u?u.posAtStart-u.border:-1}}function yN(t){return t.top<t.bottom||t.left<t.right}function Bl(t,e){let n=t.getClientRects();if(n.length){let s=n[e<0?0:n.length-1];if(yN(s))return s}return Array.prototype.find.call(n,yN)||t.getBoundingClientRect()}const VV=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function HO(t,e,n){let{node:s,offset:r,atom:a}=t.docView.domFromPos(e,n<0?-1:1),l=Lp||ma;if(s.nodeType==3)if(l&&(VV.test(s.nodeValue)||(n<0?!r:r==s.nodeValue.length))){let u=Bl(Po(s,r,r),n);if(ma&&r&&/\s/.test(s.nodeValue[r-1])&&r<s.nodeValue.length){let f=Bl(Po(s,r-1,r-1),-1);if(f.top==u.top){let m=Bl(Po(s,r,r+1),-1);if(m.top!=u.top)return Lf(m,m.left<f.left)}}return u}else{let u=r,f=r,m=n<0?1:-1;return n<0&&!r?(f++,m=-1):n>=0&&r==s.nodeValue.length?(u--,m=1):n<0?u--:f++,Lf(Bl(Po(s,u,f),m),m<0)}if(!t.state.doc.resolve(e-(a||0)).parent.inlineContent){if(a==null&&r&&(n<0||r==da(s))){let u=s.childNodes[r-1];if(u.nodeType==1)return Rw(u.getBoundingClientRect(),!1)}if(a==null&&r<da(s)){let u=s.childNodes[r];if(u.nodeType==1)return Rw(u.getBoundingClientRect(),!0)}return Rw(s.getBoundingClientRect(),n>=0)}if(a==null&&r&&(n<0||r==da(s))){let u=s.childNodes[r-1],f=u.nodeType==3?Po(u,da(u)-(l?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(f)return Lf(Bl(f,1),!1)}if(a==null&&r<da(s)){let u=s.childNodes[r];for(;u.pmViewDesc&&u.pmViewDesc.ignoreForCoords;)u=u.nextSibling;let f=u?u.nodeType==3?Po(u,0,l?0:1):u.nodeType==1?u:null:null;if(f)return Lf(Bl(f,-1),!0)}return Lf(Bl(s.nodeType==3?Po(s):s,-n),n>=0)}function Lf(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function Rw(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function $O(t,e,n){let s=t.state,r=t.root.activeElement;s!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{s!=e&&t.updateState(s),r!=t.dom&&r&&r.focus()}}function GV(t,e,n){let s=e.selection,r=n=="up"?s.$from:s.$to;return $O(t,e,()=>{let{node:a}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let c=t.docView.nearestDesc(a,!0);if(!c)break;if(c.node.isBlock){a=c.contentDOM||c.dom;break}a=c.dom.parentNode}let l=HO(t,r.pos,1);for(let c=a.firstChild;c;c=c.nextSibling){let u;if(c.nodeType==1)u=c.getClientRects();
vendor: 17,026 bytes, lines 86-87
86else if(c.nodeType==3)u=Po(c,0,c.nodeValue.length).getClientRects();else continue;for(let f=0;f<u.length;f++){let m=u[f];if(m.bottom>m.top+1&&(n=="up"?l.top-m.top>(m.bottom-l.top)*2:m.bottom-l.bottom>(l.bottom-m.top)*2))return!1}}return!0})}const qV=/[\u0590-\u08ac]/;function KV(t,e,n){let{$head:s}=e.selection;if(!s.parent.isTextblock)return!1;let r=s.parentOffset,a=!r,l=r==s.parent.content.size,c=t.domSelection();return c?!qV.test(s.parent.textContent)||!c.modify?n=="left"||n=="backward"?a:l:$O(t,e,()=>{let{focusNode:u,focusOffset:f,anchorNode:m,anchorOffset:g}=t.domSelectionRange(),x=c.caretBidiLevel;c.modify("move",n,"character");let b=s.depth?t.docView.domAfterPos(s.before()):t.dom,{focusNode:v,focusOffset:w}=t.domSelectionRange(),N=v&&!b.contains(v.nodeType==1?v:v.parentNode)||u==v&&f==w;try{c.collapse(m,g),u&&(u!=m||f!=g)&&c.extend&&c.extend(u,f)}catch{}return x!=null&&(c.caretBidiLevel=x),N}):s.pos==s.start()||s.pos==s.end()}let m3=null,p3=null,g3=!1;function YV(t,e,n){return m3==e&&p3==n?g3:(m3=e,p3=n,g3=n=="up"||n=="down"?GV(t,e,n):KV(t,e,n))}const pa=0,x3=1,Jc=2,La=3;class Ip{constructor(e,n,s,r){this.parent=e,this.children=n,this.dom=s,this.contentDOM=r,this.dirty=pa,s.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,s){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,s=this.posAtStart;;n++){let r=this.children[n];if(r==e)return s;s+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,s){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(s<0){let a,l;if(e==this.contentDOM)a=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.previousSibling}for(;a&&!((l=a.pmViewDesc)&&l.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(l)+l.size:this.posAtStart}else{let a,l;if(e==this.contentDOM)a=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.nextSibling}for(;a&&!((l=a.pmViewDesc)&&l.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(l):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>cs(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=e;;a=a.parentNode){if(a==this.dom){r=!1;break}if(a.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let a=e;;a=a.parentNode){if(a==this.dom){r=!0;break}if(a.nextSibling)break}}return r??s>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let s=!0,r=e;r;r=r.parentNode){let a=this.getDesc(r),l;if(a&&(!n||a.node))if(s&&(l=a.nodeDOM)&&!(l.nodeType==1?l.contains(e.nodeType==1?e:e.parentNode):l==e))s=!1;else return a}}getDesc(e){let n=e.pmViewDesc;for(let s=n;s;s=s.parent)if(s==this)return n}posFromDOM(e,n,s){for(let r=e;r;r=r.parentNode){let a=this.getDesc(r);if(a)return a.localPosFromDOM(e,n,s)}return-1}descAt(e){for(let n=0,s=0;n<this.children.length;n++){let r=this.children[n],a=s+r.size;if(s==e&&a!=s){for(;!r.border&&r.children.length;)for(let l=0;l<r.children.length;l++){let c=r.children[l];if(c.size){r=c;break}}return r}if(e<a)return r.descAt(e-s-r.border);s=a}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let s=0,r=0;for(let a=0;s<this.children.length;s++){let l=this.children[s],c=a+l.size;if(c>e||l instanceof WO){r=e-a;break}a=c}if(r)return this.children[s].domFromPos(r-this.children[s].border,n);for(let a;s&&!(a=this.children[s-1]).size&&a instanceof UO&&a.side>=0;s--);if(n<=0){let a,l=!0;for(;a=s?this.children[s-1]:null,!(!a||a.dom.parentNode==this.contentDOM);s--,l=!1);return a&&n&&l&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?cs(a.dom)+1:0}}else{let a,l=!0;for(;a=s<this.children.length?this.children[s]:null,!(!a||a.dom.parentNode==this.contentDOM);s++,l=!1);return a&&l&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?cs(a.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,s=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,a=-1;for(let l=s,c=0;;c++){let u=this.children[c],f=l+u.size;if(r==-1&&e<=f){let m=l+u.border;if(e>=m&&n<=f-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(e,n,m);e=l;for(let g=c;g>0;g--){let x=this.children[g-1];if(x.size&&x.dom.parentNode==this.contentDOM&&!x.emptyChildAt(1)){r=cs(x.dom)+1;break}e-=x.size}r==-1&&(r=0)}if(r>-1&&(f>n||c==this.children.length-1)){n=f;for(let m=c+1;m<this.children.length;m++){let g=this.children[m];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(-1)){a=cs(g.dom);break}n+=g.size}a==-1&&(a=this.contentDOM.childNodes.length);break}l=f}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:a}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:s}=this.domFromPos(e,0);if(n.nodeType!=1||s==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[s]}setSelection(e,n,s,r=!1){let a=Math.min(e,n),l=Math.max(e,n);for(let b=0,v=0;b<this.children.length;b++){let w=this.children[b],N=v+w.size;if(a>v&&l<N)return w.setSelection(e-v-w.border,n-v-w.border,s,r);v=N}let c=this.domFromPos(e,e?-1:1),u=n==e?c:this.domFromPos(n,n?-1:1),f=s.root.getSelection(),m=s.domSelectionRange(),g=!1;if((ma||Ds)&&e==n){let{node:b,offset:v}=c;if(b.nodeType==3){if(g=!!(v&&b.nodeValue[v-1]==` 87`),g&&v==b.nodeValue.length)for(let w=b,N;w;w=w.parentNode){if(N=w.nextSibling){N.nodeName=="BR"&&(c=u={node:N.parentNode,offset:cs(N)+1});break}let _=w.pmViewDesc;if(_&&_.node&&_.node.isBlock)break}}else{let w=b.childNodes[v-1];g=w&&(w.nodeName=="BR"||w.contentEditable=="false")}}if(ma&&m.focusNode&&m.focusNode!=u.node&&m.focusNode.nodeType==1){let b=m.focusNode.childNodes[m.focusOffset];b&&b.contentEditable=="false"&&(r=!0)}if(!(r||g&&Ds)&&kd(c.node,c.offset,m.anchorNode,m.anchorOffset)&&kd(u.node,u.offset,m.focusNode,m.focusOffset))return;let x=!1;if((f.extend||e==n)&&!(g&&ma)){f.collapse(c.node,c.offset);try{e!=n&&f.extend(u.node,u.offset),x=!0}catch{}}if(!x){if(e>n){let v=c;c=u,u=v}let b=document.createRange();b.setEnd(u.node,u.offset),b.setStart(c.node,c.offset),f.removeAllRanges(),f.addRange(b)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let s=0,r=0;r<this.children.length;r++){let a=this.children[r],l=s+a.size;if(s==l?e<=l&&n>=s:e<l&&n>s){let c=s+a.border,u=l-a.border;if(e>=c&&n<=u){this.dirty=e==s||n==l?Jc:x3,e==c&&n==u&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=La:a.markDirty(e-c,n-c);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?Jc:La}s=l}this.dirty=Jc}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let s=e==1?Jc:x3;n.dirty<s&&(n.dirty=s)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class UO extends Ip{constructor(e,n,s,r){let a,l=n.type.toDOM;if(typeof l=="function"&&(l=l(s,()=>{if(!a)return r;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(l.nodeType!=1){let c=document.createElement("span");c.appendChild(l),l=c}l.hasAttribute("contenteditable")||(l.contentEditable="false"),l.classList.add("ProseMirror-widget")}super(e,[],l,null),this.widget=n,this.widget=n,a=this}matchesWidget(e){return this.dirty==pa&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class XV extends Ip{constructor(e,n,s,r){super(e,[],n,null),this.textDOM=s,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class tc extends Ip{constructor(e,n,s,r,a){super(e,[],s,r),this.mark=n,this.spec=a}static create(e,n,s,r){let a=r.nodeViews[n.type.name],l=a&&a(n,r,s);return(!l||!l.dom)&&(l=Ld.renderSpec(document,n.type.spec.toDOM(n,s),null,n.attrs)),new tc(e,n,l.dom,l.contentDOM||l.dom,l)}parseRule(){return this.dirty&La||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=La&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=pa){let s=this.parent;for(;!s.node;)s=s.parent;s.dirty<this.dirty&&(s.dirty=this.dirty),this.dirty=pa}}slice(e,n,s){let r=tc.create(this.parent,this.mark,!0,s),a=this.children,l=this.size;n<l&&(a=vN(a,n,l,s)),e>0&&(a=vN(a,0,e,s));for(let c=0;c<a.length;c++)a[c].parent=r;return r.children=a,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class nc extends Ip{constructor(e,n,s,r,a,l,c){super(e,[],a,l),this.node=n,this.outerDeco=s,this.innerDeco=r,this.nodeDOM=c}static create(e,n,s,r,a,l){let c=a.nodeViews[n.type.name],u,f=c&&c(n,a,()=>{if(!u)return l;if(u.parent)return u.parent.posBeforeChild(u)},s,r),m=f&&f.dom,g=f&&f.contentDOM;if(n.isText){if(!m)m=document.createTextNode(n.text);else if(m.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else m||({dom:m,contentDOM:g}=Ld.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!g&&!n.isText&&m.nodeName!="BR"&&(m.hasAttribute("contenteditable")||(m.contentEditable="false"),n.type.spec.draggable&&(m.draggable=!0));let x=m;return m=qO(m,s,n),f?u=new ZV(e,n,s,r,m,g||null,x,f):n.isText?new Mb(e,n,s,r,m,x):new nc(e,n,s,r,m,g||null,x)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let n={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(n.preserveWhitespace="full"),!this.contentDOM)n.getContent=()=>this.node.content;else if(!this.contentLost)n.contentElement=this.contentDOM;else{for(let s=this.children.length-1;s>=0;s--){let r=this.children[s];if(this.dom.contains(r.dom.parentNode)){n.contentElement=r.dom.parentNode;break}}if(!n.contentElement){let s=e&&e.find(r=>r.nodeType==1&&e.indexOf(r.parentNode)<0&&this.dom.contains(r));s?n.contentElement=s:n.getContent=()=>be.empty}}return n}matchesNode(e,n,s){return this.dirty==pa&&e.eq(this.node)&&ay(n,this.outerDeco)&&s.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let s=this.node.inlineContent,r=n,a=e.composing?this.localCompositionInfo(e,n):null,l=a&&a.pos>-1?a:null,c=a&&a.pos<0,u=new QV(this,l&&l.node,e);nG(this.node,this.innerDeco,(f,m,g)=>{f.spec.marks?u.syncToMarks(f.spec.marks,s,e,m):f.type.side>=0&&!g&&u.syncToMarks(m==this.node.childCount?gn.none:this.node.child(m).marks,s,e,m),u.placeWidget(f,e,r)},(f,m,g,x)=>{u.syncToMarks(f.marks,s,e,x);let b;u.findNodeMatch(f,m,g,x)||c&&e.state.selection.from>r&&e.state.selection.to<r+f.nodeSize&&(b=u.findIndexWithChild(a.node))>-1&&u.updateNodeAt(f,m,g,b,e)||u.updateNextNode(f,m,g,e,x,r)||u.addNode(f,m,g,e,r),r+=f.nodeSize}),u.syncToMarks([],s,e,0),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==Jc)&&(l&&this.protectLocalComposition(e,l),VO(this.contentDOM,this.children,e),lh&&iG(this.dom))}localCompositionInfo(e,n){let{from:s,to:r}=e.state.selection;if(!(e.state.selection instanceof Ue)||s<n||r>n+this.node.content.size)return null;let a=e.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let l=a.nodeValue,c=sG(this.node.content,l,s-n,r-n);return c<0?null:{node:a,pos:c,text:l}}else return{node:a,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:s,text:r}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let l=new XV(this,a,n,r);e.input.compositionNodes.push(l),this.children=vN(this.children,s,s+r.length,e,l)}update(e,n,s,r){return this.dirty==La||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,s,r),!0)}updateInner(e,n,s,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=s,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=pa}updateOuterDeco(e){if(ay(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,s=this.dom;this.dom=GO(this.dom,this.nodeDOM,bN(this.outerDeco,this.node,n),bN(e,this.node,n)),this.dom!=s&&(s.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function y3(t,e,n,s,r){qO(s,e,t);let a=new nc(void 0,t,e,n,s,s,s);return a.contentDOM&&a.updateChildren(r,0),a}class Mb extends nc{constructor(e,n,s,r,a,l){super(e,n,s,r,a,null,l)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,s,r){return this.dirty==La||this.dirty!=pa&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=pa||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=pa,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,s){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,s)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,s){let r=this.node.cut(e,n),a=document.createTextNode(r.text);return new Mb(this.parent,r,this.outerDeco,this.innerDeco,a,a)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=La)}get domAtom(){return!1}isText(e){return this.node.text==e}}class WO extends Ip{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==pa&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class ZV extends nc{constructor(e,n,s,r,a,l,c,u){super(e,n,s,r,a,l,c),this.spec=u}update(e,n,s,r){if(this.dirty==La)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let a=this.spec.update(e,n,s);return a&&this.updateInner(e,n,s,r),a}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,s,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,s,r){this.spec.setSelection?this.spec.setSelection(e,n,s.root):super.setSelection(e,n,s,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function VO(t,e,n){let s=t.firstChild,r=!1;for(let a=0;a<e.length;a++){let l=e[a],c=l.dom;if(c.parentNode==t){for(;c!=s;)s=b3(s),r=!0;s=s.nextSibling}else r=!0,t.insertBefore(c,s);if(l instanceof tc){let u=s?s.previousSibling:t.lastChild;VO(l.contentDOM,l.children,n),s=u?u.nextSibling:t.firstChild}}for(;s;)s=b3(s),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const ym=function(t){t&&(this.nodeName=t)};ym.prototype=Object.create(null);const Qc=[new ym];function bN(t,e,n){if(t.length==0)return Qc;let s=n?Qc[0]:new ym,r=[s];for(let a=0;a<t.length;a++){let l=t[a].type.attrs;if(l){l.nodeName&&r.push(s=new ym(l.nodeName));for(let c in l){let u=l[c];u!=null&&(n&&r.length==1&&r.push(s=new ym(e.isInline?"span":"div")),c=="class"?s.class=(s.class?
vendor: 4,370 bytes, line 87
87s.class+" ":"")+u:c=="style"?s.style=(s.style?s.style+";":"")+u:c!="nodeName"&&(s[c]=u))}}}return r}function GO(t,e,n,s){if(n==Qc&&s==Qc)return e;let r=e;for(let a=0;a<s.length;a++){let l=s[a],c=n[a];if(a){let u;c&&c.nodeName==l.nodeName&&r!=t&&(u=r.parentNode)&&u.nodeName.toLowerCase()==l.nodeName||(u=document.createElement(l.nodeName),u.pmIsDeco=!0,u.appendChild(r),c=Qc[0]),r=u}JV(r,c||Qc[0],l)}return r}function JV(t,e,n){for(let s in e)s!="class"&&s!="style"&&s!="nodeName"&&!(s in n)&&t.removeAttribute(s);for(let s in n)s!="class"&&s!="style"&&s!="nodeName"&&n[s]!=e[s]&&t.setAttribute(s,n[s]);if(e.class!=n.class){let s=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let a=0;a<s.length;a++)r.indexOf(s[a])==-1&&t.classList.remove(s[a]);for(let a=0;a<r.length;a++)s.indexOf(r[a])==-1&&t.classList.add(r[a]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let s=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=s.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function qO(t,e,n){return GO(t,t,Qc,bN(e,n,t.nodeType!=1))}function ay(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function b3(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class QV{constructor(e,n,s){this.lock=n,this.view=s,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=eG(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let s=e;s<n;s++)this.top.children[s].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,s,r){let a=0,l=this.stack.length>>1,c=Math.min(l,e.length);for(;a<c&&(a==l-1?this.top:this.stack[a+1<<1]).matchesMark(e[a])&&e[a].type.spec.spanning!==!1;)a++;for(;a<l;)this.destroyRest(),this.top.dirty=pa,this.index=this.stack.pop(),this.top=this.stack.pop(),l--;for(;l<e.length;){this.stack.push(this.top,this.index+1);let u=-1,f=this.top.children.length;r<this.preMatch.index&&(f=Math.min(this.index+3,f));for(let m=this.index;m<f;m++){let g=this.top.children[m];if(g.matchesMark(e[l])&&!this.isLocked(g.dom)){u=m;break}}if(u<0&&this.index<this.top.children.length){let m=this.top.children[this.index];m instanceof tc&&m.dirty!=La&&m.mark.type==e[l].type&&m.spec.update&&!this.isLocked(m.dom)&&m.spec.update(e[l])&&(m.mark=e[l],u=this.index,this.changed=!0)}if(u>-1)u>this.index&&(this.changed=!0,this.destroyBetween(this.index,u)),this.top=this.top.children[this.index];else{let m=tc.create(this.top,e[l],n,s);this.top.children.splice(this.index,0,m),this.top=m,this.changed=!0}this.index=0,l++}}findNodeMatch(e,n,s,r){let a=-1,l;if(r>=this.preMatch.index&&(l=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&l.matchesNode(e,n,s))a=this.top.children.indexOf(l,this.index);else for(let c=this.index,u=Math.min(this.top.children.length,c+5);c<u;c++){let f=this.top.children[c];if(f.matchesNode(e,n,s)&&!this.preMatch.matched.has(f)){a=c;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(e,n,s,r,a){let l=this.top.children[r];return l.dirty==La&&l.dom==l.contentDOM&&(l.dirty=Jc),l.update(e,n,s,a)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let s=e.pmViewDesc;if(s){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==s)return r}return-1}e=n}}updateNextNode(e,n,s,r,a,l){for(let c=this.index;c<this.top.children.length;c++){let u=this.top.children[c];if(u instanceof nc){let f=this.preMatch.matched.get(u);if(f!=null&&f!=a)return!1;let m=u.dom,g,x=this.isLocked(m)&&!(e.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==e.text&&u.dirty!=La&&ay(n,u.outerDeco));if(!x&&u.update(e,n,s,r))return this.destroyBetween(this.index,c),u.dom!=m&&(this.changed=!0),this.index++,!0;if(!x&&(g=this.recreateWrapper(u,e,n,s,r,l)))return this.destroyBetween(this.index,c),this.top.children[this.index]=g,g.contentDOM&&(g.dirty=Jc,g.updateChildren(r,l+1),g.dirty=pa),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,s,r,a,l){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!ay(s,e.outerDeco)||!r.eq(e.innerDeco))return null;
vendor: 17,972 bytes, lines 87-90
87let c=nc.create(this.top,n,s,r,a,l);if(c.contentDOM){c.children=e.children,e.children=[];for(let u of c.children)u.parent=c}return e.destroy(),c}addNode(e,n,s,r,a){let l=nc.create(this.top,e,n,s,r,a);l.contentDOM&&l.updateChildren(r,a+1),this.top.children.splice(this.index++,0,l),this.changed=!0}placeWidget(e,n,s){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let a=new UO(this.top,e,n,s);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof tc;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Mb)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Ds||hs)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let s=document.createElement(e);e=="IMG"&&(s.className="ProseMirror-separator",s.alt=""),e=="BR"&&(s.className="ProseMirror-trailingBreak");let r=new WO(this.top,[],s,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function eG(t,e){let n=e,s=n.children.length,r=t.childCount,a=new Map,l=[];e:for(;r>0;){let c;for(;;)if(s){let f=n.children[s-1];if(f instanceof tc)n=f,s=f.children.length;else{c=f,s--;break}}else{if(n==e)break e;s=n.parent.children.indexOf(n),n=n.parent}let u=c.node;if(u){if(u!=t.child(r-1))break;--r,a.set(c,r),l.push(c)}}return{index:r,matched:a,matches:l.reverse()}}function tG(t,e){return t.type.side-e.type.side}function nG(t,e,n,s){let r=e.locals(t),a=0;if(r.length==0){for(let f=0;f<t.childCount;f++){let m=t.child(f);s(m,r,e.forChild(a,m),f),a+=m.nodeSize}return}let l=0,c=[],u=null;for(let f=0;;){let m,g;for(;l<r.length&&r[l].to==a;){let N=r[l++];N.widget&&(m?(g||(g=[m])).push(N):m=N)}if(m)if(g){g.sort(tG);for(let N=0;N<g.length;N++)n(g[N],f,!!u)}else n(m,f,!!u);let x,b;if(u)b=-1,x=u,u=null;else if(f<t.childCount)b=f,x=t.child(f++);else break;for(let N=0;N<c.length;N++)c[N].to<=a&&c.splice(N--,1);for(;l<r.length&&r[l].from<=a&&r[l].to>a;)c.push(r[l++]);let v=a+x.nodeSize;if(x.isText){let N=v;l<r.length&&r[l].from<N&&(N=r[l].from);for(let _=0;_<c.length;_++)c[_].to<N&&(N=c[_].to);N<v&&(u=x.cut(N-a),x=x.cut(0,N-a),v=N,b=-1)}else for(;l<r.length&&r[l].to<v;)l++;let w=x.isInline&&!x.isLeaf?c.filter(N=>!N.inline):c.slice();s(x,w,e.forChild(a,x),b),a=v}}function iG(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function sG(t,e,n,s){for(let r=0,a=0;r<t.childCount&&a<=s;){let l=t.child(r++),c=a;if(a+=l.nodeSize,!l.isText)continue;let u=l.text;for(;r<t.childCount;){let f=t.child(r++);if(a+=f.nodeSize,!f.isText)break;u+=f.text}if(a>=n){if(a>=s&&u.slice(s-e.length-c,s-c)==e)return s-e.length;let f=c<s?u.lastIndexOf(e,s-c-1):-1;if(f>=0&&f+e.length+c>=n)return c+f;if(n==s&&u.length>=s+e.length-c&&u.slice(s-c,s-c+e.length)==e)return s}}return-1}function vN(t,e,n,s,r){let a=[];for(let l=0,c=0;l<t.length;l++){let u=t[l],f=c,m=c+=u.size;f>=n||m<=e?a.push(u):(f<e&&a.push(u.slice(0,e-f,s)),r&&(a.push(r),r=void 0),m>n&&a.push(u.slice(n-f,u.size,s)))}return a}function h_(t,e=null){let n=t.domSelectionRange(),s=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),a=r&&r.size==0,l=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c=s.resolve(l),u,f;if(Ab(n)){for(u=l;r&&!r.node;)r=r.parent;let g=r.node;if(r&&g.isAtom&&Ye.isSelectable(g)&&r.parent&&!(g.isInline&&MV(n.focusNode,n.focusOffset,r.dom))){let x=r.posBefore;f=new Ye(l==x?c:s.resolve(x))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let g=l,x=l;for(let b=0;b<n.rangeCount;b++){let v=n.getRangeAt(b);g=Math.min(g,t.docView.posFromDOM(v.startContainer,v.startOffset,1)),x=Math.max(x,t.docView.posFromDOM(v.endContainer,v.endOffset,-1))}if(g<0)return null;[u,l]=x==t.state.selection.anchor?[x,g]:[g,x],c=s.resolve(l)}else u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null}let m=s.resolve(u);if(!f){let g=e=="pointer"||t.state.selection.head<c.pos&&!a?1:-1;f=f_(t,m,c,g)}return f}function KO(t){return t.editable?t.hasFocus():XO(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Ko(t,e=!1){let n=t.state.selection;if(YO(t,n),!KO(t))return;let s=t.input.mouseDown;if(!e&&hs&&s){let r=t.domSelectionRange(),a=t.domObserver.currentSelection;if(r.anchorNode&&a.anchorNode&&kd(r.anchorNode,r.anchorOffset,a.anchorNode,a.anchorOffset)&&s.delaySelUpdate()){t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)aG(t);else{let{anchor:r,head:a}=n,l,c;v3&&!(n instanceof Ue)&&(n.$from.parent.inlineContent||(l=w3(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(c=w3(t,n.to))),t.docView.setSelection(r,a,t,e),v3&&(l&&N3(l),c&&N3(c)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&rG(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}const v3=Ds||hs&&LO<63;function w3(t,e){let{node:n,offset:s}=t.docView.domFromPos(e,0),r=s<n.childNodes.length?n.childNodes[s]:null,a=s?n.childNodes[s-1]:null;if(Ds&&r&&r.contentEditable=="false")return Ow(r);if((!r||r.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(r)return Ow(r);if(a)return Ow(a)}}function Ow(t){return t.contentEditable="true",Ds&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function N3(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function rG(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),s=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=s||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!KO(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function aG(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,s=n.nodeName=="IMG";s?e.collapse(n.parentNode,cs(n)+1):e.collapse(n,0),!s&&!t.state.selection.visible&&hr&&ec<=11&&(n.disabled=!0,n.disabled=!1)}function YO(t,e){if(e instanceof Ye){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(S3(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else S3(t)}function S3(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function f_(t,e,n,s){return t.someProp("createSelectionBetween",r=>r(t,e,n))||Ue.between(e,n,s)}function _3(t){return t.editable&&!t.hasFocus()?!1:XO(t)}function XO(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function oG(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return kd(e.node,e.offset,n.anchorNode,n.anchorOffset)}function wN(t,e){let{$anchor:n,$head:s}=t.selection,r=e>0?n.max(s):n.min(s),a=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return a&&it.findFrom(a,e)}function Hl(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function j3(t,e,n){let s=t.state.selection;if(s instanceof Ue)if(n.indexOf("s")>-1){let{$head:r}=s,a=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let l=t.state.doc.resolve(r.pos+a.nodeSize*(e<0?-1:1));return Hl(t,new Ue(s.$anchor,l))}else if(s.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=wN(t.state,e);return r&&r instanceof Ye?Hl(t,r):!1}else if(!(oa&&n.indexOf("m")>-1)){let r=s.$head,a=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,l;if(!a||a.isText)return!1;let c=e<0?r.pos-a.nodeSize:r.pos;return a.isAtom||(l=t.docView.descAt(c))&&!l.contentDOM?Ye.isSelectable(a)?Hl(t,new Ye(e<0?t.state.doc.resolve(r.pos-a.nodeSize):r)):Lp?Hl(t,new Ue(t.state.doc.resolve(e<0?c:c+a.nodeSize))):!1:!1}}else return!1;else{if(s instanceof Ye&&s.node.isInline)return Hl(t,new Ue(e>0?s.$to:s.$from));{let r=wN(t.state,e);return r?Hl(t,r):!1}}}function oy(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function bm(t,e){let n=t.pmViewDesc;return n?n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR"):t.nodeType==1&&t.contentEditable=="false"}function bu(t,e){return e<0?lG(t):cG(t)}function lG(t){let e=t.domSelectionRange(),n=e.focusNode,s=e.focusOffset;if(!n)return;let r,a,l=!1;for(ma&&n.nodeType==1&&s<oy(n)&&bm(n.childNodes[s],-1)&&(l=!0);;)if(s>0){if(n.nodeType!=1)break;{let c=n.childNodes[s-1];if(bm(c,-1))r=n,a=--s;else if(c.nodeType==3)n=c,s=n.nodeValue.length;else break}}else{if(ZO(n))break;{let c=n.previousSibling;for(;c&&bm(c,-1);)r=n.parentNode,a=cs(c),c=c.previousSibling;if(c)n=c,s=oy(n);else{if(n=n.parentNode,n==t.dom)break;s=0}}}l?NN(t,n,s):r&&NN(t,r,a)}function cG(t){let e=t.domSelectionRange(),n=e.focusNode,s=e.focusOffset;if(!n)return;let r=oy(n),a,l;for(;;)if(s<r){if(n.nodeType!=1)break;let c=n.childNodes[s];if(bm(c,1))a=n,l=++s;else break}else{if(ZO(n))break;{let c=n.nextSibling;for(;c&&bm(c,1);)a=c.parentNode,l=cs(c)+1,c=c.nextSibling;if(c)n=c,s=0,r=oy(n);else{if(n=n.parentNode,n==t.dom)break;s=r=0}}}a&&NN(t,a,l)}function ZO(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function dG(t,e){for(;t&&e==t.childNodes.length&&!Dp(t);)e=cs(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function uG(t,e){for(;t&&!e&&!Dp(t);)e=cs(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function NN(t,e,n){if(e.nodeType!=3){let a,l;(l=dG(e,n))?(e=l,n=0):(a=uG(e,n))&&(e=a,n=a.nodeValue.length)}let s=t.domSelection();if(!s)return;if(Ab(s)){let a=document.createRange();a.setEnd(e,n),a.setStart(e,n),s.removeAllRanges(),s.addRange(a)}else s.extend&&s.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Ko(t)},50)}function E3(t,e){let n=t.state.doc.resolve(e);if(!(hs||IO)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let a=t.coordsAtPos(e-1),l=(a.top+a.bottom)/2;if(l>r.top&&l<r.bottom&&Math.abs(a.left-r.left)>1)return a.left<r.left?"ltr":"rtl"}if(e<n.end()){let a=t.coordsAtPos(e+1),l=(a.top+a.bottom)/2;if(l>r.top&&l<r.bottom&&Math.abs(a.left-r.left)>1)return a.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function k3(t,e,n){let s=t.state.selection;if(s instanceof Ue&&!s.empty||n.indexOf("s")>-1||oa&&n.indexOf("m")>-1)return!1;let{$from:r,$to:a}=s;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let l=wN(t.state,e);if(l&&l instanceof Ye)return Hl(t,l)}if(!r.parent.inlineContent){let l=e<0?r:a,c=s instanceof Br?it.near(l,e):it.findFrom(l,e);return c?Hl(t,c):!1}return!1}function C3(t,e){if(!(t.state.selection instanceof Ue))return!0;let{$head:n,$anchor:s,empty:r}=t.state.selection;if(!n.sameParent(s))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let a=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let l=t.state.tr;return e<0?l.delete(n.pos-a.nodeSize,n.pos):l.delete(n.pos,n.pos+a.nodeSize),t.dispatch(l),!0}return!1}function T3(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function hG(t){if(!Ds||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let s=e.firstChild;T3(t,s,"true"),setTimeout(()=>T3(t,s,"false"),20)}return!1}function fG(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function mG(t,e){let n=e.keyCode,s=fG(e);if(n==8||oa&&n==72&&s=="c")return C3(t,-1)||bu(t,-1);if(n==46&&!e.shiftKey||oa&&n==68&&s=="c")return C3(t,1)||bu(t,1);if(n==13||n==27)return!0;if(n==37||oa&&n==66&&s=="c"){let r=n==37?E3(t,t.state.selection.from)=="ltr"?-1:1:-1;return j3(t,r,s)||bu(t,r)}else if(n==39||oa&&n==70&&s=="c"){let r=n==39?E3(t,t.state.selection.from)=="ltr"?1:-1:1;return j3(t,r,s)||bu(t,r)}else{if(n==38||oa&&n==80&&s=="c")return k3(t,-1,s)||bu(t,-1);if(n==40||oa&&n==78&&s=="c")return hG(t)||k3(t,1,s)||bu(t,1);if(s==(oa?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function m_(t,e){t.someProp("transformCopied",b=>{e=b(e,t)});let n=[],{content:s,openStart:r,openEnd:a}=e;for(;r>1&&a>1&&s.childCount==1&&s.firstChild.childCount==1;){r--,a--;let b=s.firstChild;n.push(b.type.name,b.attrs!=b.type.defaultAttrs?b.attrs:null),s=b.content}let l=t.someProp("clipboardSerializer")||Ld.fromSchema(t.state.schema),c=iD(),u=c.createElement("div");u.appendChild(l.serializeFragment(s,{document:c}));let f=u.firstChild,m,g=0;for(;f&&f.nodeType==1&&(m=nD[f.nodeName.toLowerCase()]);){for(let b=m.length-1;b>=0;b--){let v=c.createElement(m[b]);for(;u.firstChild;)v.appendChild(u.firstChild);u.appendChild(v),g++}f=u.firstChild}f&&f.nodeType==1&&f.setAttribute("data-pm-slice",`${r} ${a}${g?` -${g}`:""} ${JSON.stringify(n)}`);let x=t.someProp("clipboardTextSerializer",b=>b(e,t))||e.content.textBetween(0,e.content.size,` 88 89`);return{dom:u,text:x,slice:e}}function JO(t,e,n,s,r){let a=r.parent.type.spec.code,l,c;if(!n&&!e)return null;let u=!!e&&(s||a||!n);if(u){if(t.someProp("transformPastedText",x=>{e=x(e,a||s,t)}),a)return c=new De(be.from(t.state.schema.text(e.replace(/\r\n?/g,` 90`))),0,0),t.someProp("transformPasted",x=>{c=x(c,t,!0)}),c;let g=t.someProp("clipboardTextParser",x=>x(e,r,s,t));if(g)c=g;else{let x=r.marks(),{schema:b}=t.state,v=Ld.fromSchema(b);l=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(w=>{let N=l.appendChild(document.createElement("p"));w&&N.appendChild(v.serializeNode(b.text(w,x)))})}}else t.someProp("transformPastedHTML",g=>{n=g(n,t)}),l=yG(n),Lp&&bG(l);let f=l&&l.querySelector("[data-pm-slice]"),m=f&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(f.getAttribute("data-pm-slice")||"");if(m&&m[3])for(let g=+m[3];g>0;g--){let x=l.firstChild;for(;x&&x.nodeType!=1;)x=x.nextSibling;if(!x)break;l=x}if(c||(c=(t.someProp("clipboardParser")||t.someProp("domParser")||Ql.fromSchema(t.state.schema)).parseSlice(l,{preserveWhitespace:!!(u||m),context:r,ruleFromNode(x){return x.nodeName=="BR"&&!x.nextSibling&&x.parentNode&&!pG.test(x.parentNode.nodeName)?{ignore:!0}:null}})),m)c=vG(A3(c,+m[1],+m[2]),m[4]);else if(c=De.maxOpen(gG(c.content,r),!0),c.openStart||c.openEnd){let g=0,x=0;for(let b=c.content.firstChild;g<c.openStart&&!b.type.spec.isolating;g++,b=b.firstChild);for(let b=c.content.lastChild;x<c.openEnd&&!b.type.spec.isolating;x++,b=b.lastChild);c=A3(c,g,x)}return t.someProp("transformPasted",g=>{c=g(c,t,u)}),c}const pG=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function gG(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),a,l=[];if(t.forEach(c=>{if(!l)return;let u=r.findWrapping(c.type),f;if(!u)return l=null;if(f=l.length&&a.length&&eD(u,a,c,l[l.length-1],0))l[l.length-1]=f;else{l.length&&(l[l.length-1]=tD(l[l.length-1],a.length));let m=QO(c,u);l.push(m),r=r.matchType(m.type),a=u}}),l)return be.from(l)}return t}function QO(t,e,n=0){for(let s=e.length-1;s>=n;s--)t=e[s].create(null,be.from(t));return t}function eD(t,e,n,s,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let a=eD(t,e,n,s.lastChild,r+1);if(a)return s.copy(s.content.replaceChild(s.childCount-1,a));if(s.contentMatchAt(s.childCount).matchType(r==t.length-1?n.type:t[r+1]))return s.copy(s.content.append(be.from(QO(n,t,r+1))))}}function tD(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,tD(t.lastChild,e-1)),s=t.contentMatchAt(t.childCount).fillBefore(be.empty,!0);return t.copy(n.append(s))}function SN(t,e,n,s,r,a){let l=e<0?t.firstChild:t.lastChild,c=l.content;return t.childCount>1&&(a=0),r<s-1&&(c=SN(c,e,n,s,r+1,a)),r>=n&&(c=e<0?l.contentMatchAt(0).fillBefore(c,a<=r).append(c):c.append(l.contentMatchAt(l.childCount).fillBefore(be.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,l.copy(c))}function A3(t,e,n){return e<t.openStart&&(t=new De(SN(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new De(SN(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const nD={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function iD(){return document.implementation.createHTMLDocument("title")}let If=null;function xG(t){let e=window.trustedTypes;if(!e)return t;if(!If){if(If=e.defaultPolicy)try{return If.createHTML(t)}catch{}If=e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})}return If.createHTML(t)}function yG(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=iD(),s=n.body,r=/<([a-z][^>\s]+)/i.exec(t),a;if((a=r&&nD[r[1].toLowerCase()])&&(t=a.map(l=>"<"+l+">").join("")+t+a.map(l=>"</"+l+">").reverse().join("")),s.innerHTML=xG(t),a)for(let l=0;l<a.length;l++)s=s.querySelector(a[l])||s;for(let l=0;l<n.styleSheets.length;l++){let c=n.styleSheets[l];for(let u=0;u<c.rules.length;u++){let f=c.rules[u];if(f instanceof CSSStyleRule){let m=s.querySelectorAll(f.selectorText);for(let g=0;g<m.length;g++)m[g].style.cssText+=f.style.cssText}}}return s}function bG(t){let e=t.querySelectorAll(hs?"span:not([class]):not
90([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let s=e[n];s.childNodes.length==1&&s.textContent=="Â "&&s.parentNode&&s.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),s)}}function vG(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,s;try{s=JSON.parse(e)}catch{return t}let{content:r,openStart:a,openEnd:l}=t;for(let c=s.length-2;c>=0;c-=2){let u=n.nodes[s[c]];if(!u||u.hasRequiredAttrs())break;try{u.checkAttrs(s[c+1])}catch{break}r=be.from(u.create(s[c+1],r)),a++,l++}return new De(r,a,l)}const Zs={},Js={},wG={touchstart:!0,touchmove:!0};class NG{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function SG(t){for(let e in Zs){let n=Zs[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=s=>{jG(t,s)&&!p_(t,s)&&(t.editable||!(s.type in Js))&&n(t,s)},wG[e]?{passive:!0}:void 0)}Ds&&t.dom.addEventListener("input",()=>null),_N(t)}function Wo(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function _G(t){t.input.mouseDown&&t.input.mouseDown.done(),t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function _N(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=s=>p_(t,s))})}function p_(t,e){return t.someProp("handleDOMEvents",n=>{let s=n[e.type];return s?s(t,e)||e.defaultPrevented:!1})}function jG(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function EG(t,e){!p_(t,e)&&Zs[e.type]&&(t.editable||!(e.type in Js))&&Zs[e.type](t,e)}Js.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!oD(t)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Uo&&hs&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),lh&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let s=Date.now();t.input.lastIOSEnter=s,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==s&&(t.someProp("handleKeyDown",r=>r(t,Kc(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",s=>s(t,n))||mG(t,n)?n.preventDefault():Wo(t,"key")};Js.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Js.keypress=(t,e)=>{let n=e;if(oD(t)||!n.charCode||n.ctrlKey&&!n.altKey||oa&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let s=t.state.selection;if(!(s instanceof Ue)||!s.$from.sameParent(s.$to)){let r=String.fromCharCode(n.charCode),a=()=>t.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",l=>l(t,s.$from.pos,s.$to.pos,r,a))&&t.dispatch(a()),n.preventDefault()}};function Pp(t){return{left:t.clientX,top:t.clientY}}function kG(t,e){let n=e.x-t.clientX,s=e.y-t.clientY;return n*n+s*s<100}function g_(t,e,n,s,r){if(s==-1)return!1;let a=t.state.doc.resolve(s);for(let l=a.depth+1;l>0;l--)if(t.someProp(e,c=>l>a.depth?c(t,n,a.nodeAfter,a.before(l),r,!0):c(t,n,a.node(l),a.before(l),r,!1)))return!0;return!1}function Bp(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let s=t.state.tr.setSelection(e);s.setMeta("pointer",!0),t.dispatch(s)}function CG(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),s=n.nodeAfter;return s&&s.isAtom&&Ye.isSelectable(s)?(Bp(t,new Ye(n)),!0):!1}function TG(t,e){if(e==-1)return!1;let n=t.state.selection,s,r;n instanceof Ye&&(s=n.node);let a=t.state.doc.resolve(e);for(let l=a.depth+1;l>0;l--){let c=l>a.depth?a.nodeAfter:a.node(l);if(Ye.isSelectable(c)){s&&n.$from.depth>0&&l>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?r=a.before(n.$from.depth):r=a.before(l);break}}return r!=null?(Bp(t,Ye.create(t.state.doc,r)),!0):!1}function AG(t,e,n,s,r){return g_(t,"handleClickOn",e,n,s)||t.someProp("handleClick",a=>a(t,e,s))||(r?TG(t,n):CG(t,n))}function MG(t,e,n,s){return g_(t,"handleDoubleClickOn",e,n,s)||t.someProp("handleDoubleClick",r=>r(t,e,s))}function RG(t,e,n,s){return g_(t,"handleTripleClickOn",e,n,s)||t.someProp("handleTripleClick",r=>r(t,e,s))||OG(t,n,s)}function OG(t,e,n){if(n.button!=0)return!1;let s=sD(t,e,!0),r=t.state.doc;return s?(Bp(t,s),s instanceof Ue&&r.eq(t.state.doc)&&(t.input.mouseDown=new LG(t,s)),!0):!1}function sD(t,e,n){let s=t.state.doc;if(e==-1)return s.inlineContent?Ue.create(s,0,s.content.size):null;let r=s.resolve(e);for(let a=r.depth+1;a>0;a--){let l=a>r.depth?r.nodeAfter:r.node(a),c=r.before(a);if(l.inlineContent)return Ue.create(s,c+1,c+1+l.content.size);if(n&&Ye.isSelectable(l))return Ye.create(s,c)}return null}function x_(t){return ly(t)}const rD=oa?"metaKey":"ctrlKey";Zs.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let s=x_(t),r=Date.now(),a="singleClick";
90r-t.input.lastClick.time<500&&kG(n,t.input.lastClick)&&!n[rD]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?a="doubleClick":t.input.lastClick.type=="doubleClick"&&(a="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:a,button:n.button},t.input.mouseDown&&t.input.mouseDown.done();let l=t.posAtCoords(Pp(n));l&&(a=="singleClick"?t.input.mouseDown=new DG(t,l,n,!!s):(a=="doubleClick"?MG:RG)(t,l.pos,l.inside,n)?n.preventDefault():Wo(t,"pointer"))};class aD{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class DG extends aD{constructor(e,n,s,r){super(e),this.pos=n,this.event=s,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!s[rD],this.allowDefault=s.shiftKey;let a,l;if(n.inside>-1)a=e.state.doc.nodeAt(n.inside),l=n.inside;else{let m=e.state.doc.resolve(n.pos);a=m.parent,l=m.depth?m.before():0}const c=r?null:s.target,u=c?e.docView.nearestDesc(c,!0):null;this.target=u&&u.nodeDOM.nodeType==1?u.nodeDOM:null;let{selection:f}=e.state;s.button==0&&(a.type.spec.draggable&&a.type.spec.selectable!==!1||f instanceof Ye&&f.from<=l&&f.to>l)&&(this.mightDrag={node:a,pos:l,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ma&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),Wo(e,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||Ko(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Pp(e))),this.updateAllowDefault(e),this.allowDefault||!n?Wo(this.view,"pointer"):AG(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ds&&this.mightDrag&&!this.mightDrag.node.isAtom||hs&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Bp(this.view,it.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Wo(this.view,"pointer")}move(e){this.updateAllowDefault(e),Wo(this.view,"pointer"),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class LG extends aD{constructor(e,n){super(e),this.startSelection=n,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),Wo(this.view,"pointer");let n=this.view.posAtCoords(Pp(e)),s=n&&sD(this.view,n.inside,!1);if(!s)return;let{doc:r}=this.view.state,a=this.startSelection,[l,c]=s.from<a.from?[a.to,s.from]:[a.from,s.to];Bp(this.view,Ue.create(r,l,c))}}Zs.touchstart=t=>{t.input.lastTouch=Date.now(),x_(t),Wo(t,"pointer")};Zs.touchmove=t=>{t.input.lastTouch=Date.now(),Wo(t,"pointer")};Zs.contextmenu=t=>x_(t);function oD(t,e){return t.composing?!0:Ds&&Math.abs(Date.now()-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const IG=Uo?5e3:-1;Js.compositionstart=Js.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Ue&&e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(s=>s.type.spec.inclusive===!1)||hs&&IO&&PG(t)))t.markCursor=t.state.storedMarks||n.marks(),ly(t,!0),t.markCursor=null;else if(ly(t,!e.selection.empty),ma&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let s=t.domSelectionRange();for(let r=s.focusNode,a=s.focusOffset;
vendor: 18,930 bytes, line 90
90r&&r.nodeType==1&&a!=0;){let l=a<0?r.lastChild:r.childNodes[a-1];if(!l)break;if(l.nodeType==3){let c=t.domSelection();c&&c.collapse(l,l.nodeValue.length);break}else r=l,a=-1}}t.input.composing=!0}lD(t,IG)};function PG(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let s=e.childNodes[n];return s.nodeType==1&&s.contentEditable=="false"}Js.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now(),t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,lD(t,20))};function lD(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ly(t),e))}function cD(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function BG(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=TV(e.focusNode,e.focusOffset),s=AV(e.focusNode,e.focusOffset);if(n&&s&&n!=s){let r=s.pmViewDesc,a=t.domObserver.lastChangedTextNode;if(n==a||s==a)return a;if(!r||!r.isText(s.nodeValue))return s;if(t.input.compositionNode==s){let l=n.pmViewDesc;if(!(!l||!l.isText(n.nodeValue)))return s}}return n||s}function ly(t,e=!1){if(!(Uo&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),cD(t),e||t.docView&&t.docView.dirty){let n=h_(t),s=t.state.selection;return n&&!n.eq(s)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!s.$from.node(s.$from.sharedDepth(s.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function zG(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let s=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),s.removeAllRanges(),s.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const np=hr&&ec<15||lh&&DV<604;Zs.copy=Js.cut=(t,e)=>{let n=e,s=t.state.selection,r=n.type=="cut";if(s.empty)return;let a=np?null:n.clipboardData,l=s.content(),{dom:c,text:u}=m_(t,l);a?(n.preventDefault(),a.clearData(),a.setData("text/html",c.innerHTML),a.setData("text/plain",u)):zG(t,c),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function FG(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function HG(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,s=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(s.contentEditable="true"),s.style.cssText="position: fixed; left: -10000px; top: 10px",s.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),s.parentNode&&s.parentNode.removeChild(s),n?ip(t,s.value,null,r,e):ip(t,s.textContent,s.innerHTML,r,e)},50)}function ip(t,e,n,s,r){let a=JO(t,e,n,s,t.state.selection.$from);if(t.someProp("handlePaste",u=>u(t,r,a||De.empty)))return!0;if(!a)return!1;let l=FG(a),c=l?t.state.tr.replaceSelectionWith(l,s):t.state.tr.replaceSelection(a);return t.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function dD(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Js.paste=(t,e)=>{let n=e;if(t.composing&&!Uo)return;let s=np?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;s&&ip(t,dD(s),s.getData("text/html"),r,n)?n.preventDefault():HG(t,n)};class uD{constructor(e,n,s){this.slice=e,this.move=n,this.node=s}}const $G=oa?"altKey":"ctrlKey";function hD(t,e){let n;return t.someProp("dragCopies",s=>{n=n||s(e)}),n!=null?!n:!e[$G]}Zs.dragstart=(t,e)=>{let n=e,s=t.input.mouseDown;if(s&&s.done(),!n.dataTransfer)return;let r=t.state.selection,a=r.empty?null:t.posAtCoords(Pp(n)),l;if(!(a&&a.pos>=r.from&&a.pos<=(r instanceof Ye?r.to-1:r.to))){if(s&&s.mightDrag)l=Ye.create(t.state.doc,s.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let g=t.docView.nearestDesc(n.target,!0);g&&g.node.type.spec.draggable&&g!=t.docView&&(l=Ye.create(t.state.doc,g.posBefore))}}let c=(l||t.state.selection).content(),{dom:u,text:f,slice:m}=m_(t,c);(!n.dataTransfer.files.length||!hs||LO>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(np?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",np||n.dataTransfer.setData("text/plain",f),t.dragging=new uD(m,hD(t,n),l)};Zs.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Js.dragover=Js.dragenter=(t,e)=>e.preventDefault();Js.drop=(t,e)=>{try{UG(t,e,t.dragging)}finally{t.dragging=null}};function UG(t,e,n){if(!e.dataTransfer)return;let s=t.posAtCoords(Pp(e));if(!s)return;let r=t.state.doc.resolve(s.pos),a=n&&n.slice;a?t.someProp("transformPasted",b=>{a=b(a,t,!1)}):a=JO(t,dD(e.dataTransfer),np?null:e.dataTransfer.getData("text/html"),!1,r);let l=!!(n&&hD(t,e));if(t.someProp("handleDrop",b=>b(t,e,a||De.empty,l))){e.preventDefault();return}if(!a)return;e.preventDefault();let c=a?fO(t.state.doc,r.pos,a):r.pos;c==null&&(c=r.pos);let u=t.state.tr;if(l){let{node:b}=n;b?b.replace(u):u.deleteSelection()}let f=u.mapping.map(c),m=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,g=u.doc;if(m?u.replaceRangeWith(f,f,a.content.firstChild):u.replaceRange(f,f,a),u.doc.eq(g))return;let x=u.doc.resolve(f);if(m&&Ye.isSelectable(a.content.firstChild)&&x.nodeAfter&&x.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Ye(x));else{let b=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((v,w,N,_)=>b=_),u.setSelection(f_(t,x,u.doc.resolve(b)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))}Zs.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Ko(t)},20))};Zs.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Zs.beforeinput=(t,e)=>{if(Uo&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:s}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=s||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",a=>a(t,Kc(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in Js)Zs[t]=Js[t];function sp(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class cy{constructor(e,n){this.toDOM=e,this.spec=n||dd,this.side=this.spec.side||0}map(e,n,s,r){let{pos:a,deleted:l}=e.mapResult(n.from+r,this.side<0?-1:1);return l?null:new Bi(a-s,a-s,this)}valid(){return!0}eq(e){return this==e||e instanceof cy&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&sp(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class ic{constructor(e,n){this.attrs=e,this.spec=n||dd}map(e,n,s,r){let a=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-s,l=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-s;return a>=l?null:new Bi(a,l,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof ic&&sp(this.attrs,e.attrs)&&sp(this.spec,e.spec)}static is(e){return e.type instanceof ic}destroy(){}}class y_{constructor(e,n){this.attrs=e,this.spec=n||dd}map(e,n,s,r){let a=e.mapResult(n.from+r,1);if(a.deleted)return null;let l=e.mapResult(n.to+r,-1);return l.deleted||l.pos<=a.pos?null:new Bi(a.pos-s,l.pos-s,this)}valid(e,n){let{index:s,offset:r}=e.content.findIndex(n.from),a;return r==n.from&&!(a=e.child(s)).isText&&r+a.nodeSize==n.to}eq(e){return this==e||e instanceof y_&&sp(this.attrs,e.attrs)&&sp(this.spec,e.spec)}destroy(){}}class Bi{constructor(e,n,s){this.from=e,this.to=n,this.type=s}copy(e,n){return new Bi(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,s){return this.type.map(e,this,n,s)}static widget(e,n,s){return new Bi(e,e,new cy(n,s))}static inline(e,n,s,r){return new Bi(e,n,new ic(s,r))}static node(e,n,s,r){return new Bi(e,n,new y_(s,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof ic}get widget(){return this.type instanceof cy}}const Ru=[],dd={};class Ot{constructor(e,n){this.local=e.length?e:Ru,this.children=n.length?n:Ru}static create(e,n){return n.length?dy(n,e,0,dd):Es}find(e,n,s){let r=[];return this.findInner(e??0,n??1e9,r,0,s),r}findInner(e,n,s,r,a){for(let l=0;l<this.local.length;l++){let c=this.local[l];c.from<=n&&c.to>=e&&(!a||a(c.spec))&&s.push(c.copy(c.from+r,c.to+r))}for(let l=0;l<this.children.length;l+=3)if(this.children[l]<n&&this.children[l+1]>e){let c=this.children[l]+1;this.children[l+2].findInner(e-c,n-c,s,r+c,a)}}map(e,n,s){return this==Es||e.maps.length==0?this:this.mapInner(e,n,0,0,s||dd)}mapInner(e,n,s,r,a){let l;for(let c=0;c<this.local.length;c++){let u=this.local[c].map(e,s,r);u&&u.type.valid(n,u)?(l||(l=[])).push(u):a.onRemove&&a.onRemove(this.local[c].spec)}return this.children.length?WG(this.children,l||[],e,n,s,r,a):l?new Ot(l.sort(ud),Ru):Es}add(e,n){return n.length?this==Es?Ot.create(e,n):this.addInner(e,n,0):this}addInner(e,n,s){let r,a=0;e.forEach((c,u)=>{let f=u+s,m;if(m=mD(n,c,f)){for(r||(r=this.children.slice());a<r.length&&r[a]<u;)a+=3;r[a]==u?r[a+2]=r[a+2].addInner(c,m,f+1):r.splice(a,0,u,u+c.nodeSize,dy(m,c,f+1,dd)),a+=3}});let l=fD(a?pD(n):n,-s);for(let c=0;c<l.length;c++)l[c].type.valid(e,l[c])||l.splice(c--,1);return new Ot(l.length?this.local.concat(l).sort(ud):this.local,r||this.children)}remove(e){return e.length==0||this==Es?this:this.removeInner(e,0)}removeInner(e,n){let s=this.children,r=this.local;for(let a=0;a<s.length;a+=3){let l,c=s[a]+n,u=s[a+1]+n;for(let m=0,g;m<e.length;m++)(g=e[m])&&g.from>c&&g.to<u&&(e[m]=null,(l||(l=[])).push(g));if(!l)continue;s==this.children&&(s=this.children.slice());let f=s[a+2].removeInner(l,c+1);f!=Es?s[a+2]=f:(s.splice(a,3),a-=3)}if(r.length){for(let a=0,l;a<e.length;a++)if(l=e[a])for(let c=0;c<r.length;c++)r[c].eq(l,n)&&(r==this.local&&(r=this.local.slice()),r.splice(c--,1))}return s==this.children&&r==this.local?this:r.length||s.length?new Ot(r,s):Es}forChild(e,n){if(this==Es)return this;if(n.isLeaf)return Ot.empty;let s,r;for(let c=0;c<this.children.length;c+=3)if(this.children[c]>=e){this.children[c]==e&&(s=this.children[c+2]);break}let a=e+1,l=a+n.content.size;for(let c=0;c<this.local.length;c++){let u=this.local[c];if(u.from<l&&u.to>a&&u.type instanceof ic){let f=Math.max(a,u.from)-a,m=Math.min(l,u.to)-a;f<m&&(r||(r=[])).push(u.copy(f,m))}}if(r){let c=new Ot(r.sort(ud),Ru);return s?new Wl([c,s]):c}return s||Es}eq(e){if(this==e)return!0;if(!(e instanceof Ot)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return b_(this.localsInner(e))}localsInner(e){if(this==Es)return Ru;if(e.inlineContent||!this.local.some(ic.is))return this.local;let n=[];for(let s=0;s<this.local.length;s++)this.local[s].type instanceof ic||n.push(this.local[s]);return n}forEachSet(e){e(this)}}Ot.empty=new Ot([],[]);Ot.removeOverlap=b_;const Es=Ot.empty;class Wl{constructor(e){this.members=e}map(e,n){const s=this.members.map(r=>r.map(e,n,dd));return Wl.from(s)}forChild(e,n){if(n.isLeaf)return Ot.empty;let s=[];for(let r=0;r<this.members.length;r++){let a=this.members[r].forChild(e,n);a!=Es&&(a instanceof Wl?s=s.concat(a.members):s.push(a))}return Wl.from(s)}eq(e){if(!(e instanceof Wl)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,s=!0;for(let r=0;r<this.members.length;r++){let a=this.members[r].localsInner(e);if(a.length)if(!n)n=a;else{s&&(n=n.slice(),s=!1);for(let l=0;l<a.length;l++)n.push(a[l])}}return n?b_(s?n:n.sort(ud)):Ru}static from(e){switch(e.length){case 0:return Es;case 1:return e[0];default:return new Wl(e.every(n=>n instanceof Ot)?e:e.reduce((n,s)=>n.concat(s instanceof Ot?s:s.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function WG(t,e,n,s,r,a,l){let c=t.slice();for(let f=0,m=a;f<n.maps.length;f++){let g=0;n.maps[f].forEach((x,b,v,w)=>{let N=w-v-(b-x);for(let _=0;_<c.length;_+=3){let E=c[_+1];if(E<0||x>E+m-g)continue;let k=c[_]+m-g;b>=k?c[_+1]=x<=k?-2:-1:x>=m&&N&&(c[_]+=N,c[_+1]+=N)}g+=N}),m=n.maps[f].map(m,-1)}let u=!1;for(let f=0;f<c.length;f+=3)if(c[f+1]<0){if(c[f+1]==-2){u=!0,c[f+1]=-1;continue}let m=n.map(t[f]+a),g=m-r;if(g<0||g>=s.content.size){u=!0;continue}let x=n.map(t[f+1]+a,-1),b=x-r,{index:v,offset:w}=s.content.findIndex(g),N=s.maybeChild(v);if(N&&w==g&&w+N.nodeSize==b){let _=c[f+2].mapInner(n,N,m+1,t[f]+a+1,l);_!=Es?(c[f]=g,c[f+1]=b,c[f+2]=_):(c[f+1]=-2,u=!0)}else u=!0}if(u){let f=VG(c,t,e,n,r,a,l),m=dy(f,s,0,l);e=m.local;for(let g=0;g<c.length;g+=3)c[g+1]<0&&(c.splice(g,3),g-=3);for(let g=0,x=0;g<m.children.length;g+=3){let b=m.children[g];for(;x<c.length&&c[x]<b;)x+=3;c.splice(x,0,m.children[g],m.children[g+1],m.children[g+2])}}return new Ot(e.sort(ud),c)}function fD(t,e){if(!e||!t.length)return t;let n=[];for(let s=0;s<t.length;s++){let r=t[s];n.push(new Bi(r.from+e,r.to+e,r.type))}return n}function VG(t,e,n,s,r,a,l){function c(u,f){for(let m=0;m<u.local.length;m++){let g=u.local[m].map(s,r,f);g?n.push(g):l.onRemove&&l.onRemove(u.local[m].spec)}for(let m=0;m<u.children.length;m+=3)c(u.children[m+2],u.children[m]+f+1)}for(let u=0;u<t.length;u+=3)t[u+1]==-1&&c(t[u+2],e[u]+a+1);return n}function mD(t,e,n){if(e.isLeaf)return null;let s=n+e.nodeSize,r=null;for(let a=0,l;a<t.length;a++)(l=t[a])&&l.from>n&&l.to<s&&((r||(r=[])).push(l),t[a]=null);return r}function pD(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function dy(t,e,n,s){let r=[],a=!1;e.forEach((c,u)=>{let f=mD(t,c,u+n);if(f){a=!0;let m=dy(f,c,n+u+1,s);m!=Es&&r.push(u,u+c.nodeSize,m)}});let l=fD(a?pD(t):t,-n).sort(ud);for(let c=0;c<l.length;c++)l[c].type.valid(e,l[c])||(s.onRemove&&s.onRemove(l[c].spec),l.splice(c--,1));return l.length||r.length?new Ot(l,r):Es}function ud(t,e){return t.from-e.from||t.to-e.to}function b_(t){let e=t;for(let n=0;n<e.length-1;n++){let s=e[n];if(s.from!=s.to)for(let r=n+1;r<e.length;r++){let a=e[r];if(a.from==s.from){a.to!=s.to&&(e==t&&(e=t.slice()),e[r]=a.copy(a.from,s.to),M3(e,r+1,a.copy(s.to,a.to)));continue}else{a.from<s.to&&(e==t&&(e=t.slice()),e[n]=s.copy(s.from,a.from),M3(e,r,s.copy(a.from,s.to)));break}}}return e}function M3(t,e,n){for(;e<t.length&&ud(n,t[e])>0;)e++;t.splice(e,0,n)}function Dw(t){let e=[];return t.someProp("decorations",n=>{let s=n(t.state);s&&s!=Es&&e.push(s)}),t.cursorWrapper&&e.push(Ot.create(t.state.doc,[t.cursorWrapper.deco])),Wl.from(e)}const GG={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},qG=hr&&ec<=11;class KG{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class YG{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new KG,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(s=>{for(let r=0;r<s.length;r++)this.queue.push(s[r]);hr&&ec<=11&&s.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():Ds&&e.composing&&s.some(r=>r.type=="childList"&&r.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),qG&&(this.onCharData=s=>{this.queue.push({target:s.target,type:"characterData",oldValue:s.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,GG)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(_3(this.view)){if(this.suppressingSelectionUpdates)return Ko(this.view);if(hr&&ec<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&kd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,s;for(let a=e.focusNode;a;a=oh(a))n.add(a);for(let a=e.anchorNode;a;a=oh(a))if(n.has(a)){s=a;break}let r=s&&this.view.docView.nearestDesc(s);if(r&&r.ignoreMutation({type:"selection",target:s.nodeType==3?s.parentNode:s}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let s=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(s)&&_3(e)&&!this.ignoreSelectionChange(s),a=-1,l=-1,c=!1,u=[];
vendor: 10,264 bytes, line 90
90if(e.editable)for(let m=0;m<n.length;m++){let g=this.registerMutation(n[m],u);g&&(a=a<0?g.from:Math.min(g.from,a),l=l<0?g.to:Math.max(g.to,l),g.typeOver&&(c=!0))}if(u.some(m=>m.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||hs&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&n.some(m=>m.type=="childList"&&m.removedNodes.length))){for(let m of u)if(m.nodeName=="BR"&&m.parentNode){let g=m.nextSibling;for(;g&&g.nodeType==1;){if(g.contentEditable=="false"){m.parentNode.removeChild(m);break}g=g.firstChild}}}else if(ma&&u.length){let m=u.filter(g=>g.nodeName=="BR");if(m.length==2){let[g,x]=m;g.parentNode&&g.parentNode.parentNode==x.parentNode?x.remove():g.remove()}else{let{focusNode:g}=this.currentSelection;for(let x of m){let b=x.parentNode;b&&b.nodeName=="LI"&&(!g||JG(e,g)!=b)&&x.remove()}}}let f=null;a<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Ab(s)&&(f=h_(e))&&f.eq(it.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Ko(e),this.currentSelection.set(s),e.scrollToSelection()):(a>-1||r)&&(a>-1&&(e.docView.markDirty(a,l),XG(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,QG(e,u)),this.handleDOMChange(a,l,c,u),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(s)||Ko(e),this.currentSelection.set(s))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let s=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(s==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!s||s.ignoreMutation(e))return null;if(e.type=="childList"){for(let m=0;m<e.addedNodes.length;m++){let g=e.addedNodes[m];n.push(g),g.nodeType==3&&(this.lastChangedTextNode=g)}if(s.contentDOM&&s.contentDOM!=s.dom&&!s.contentDOM.contains(e.target))return{from:s.posBefore,to:s.posAfter};let r=e.previousSibling,a=e.nextSibling;if(hr&&ec<=11&&e.addedNodes.length)for(let m=0;m<e.addedNodes.length;m++){let{previousSibling:g,nextSibling:x}=e.addedNodes[m];(!g||Array.prototype.indexOf.call(e.addedNodes,g)<0)&&(r=g),(!x||Array.prototype.indexOf.call(e.addedNodes,x)<0)&&(a=x)}let l=r&&r.parentNode==e.target?cs(r)+1:0,c=s.localPosFromDOM(e.target,l,-1),u=a&&a.parentNode==e.target?cs(a):e.target.childNodes.length,f=s.localPosFromDOM(e.target,u,1);return{from:c,to:f}}else return e.type=="attributes"?{from:s.posAtStart-s.border,to:s.posAtEnd+s.border}:(this.lastChangedTextNode=e.target,{from:s.posAtStart,to:s.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let R3=new WeakMap,O3=!1;function XG(t){if(!R3.has(t)&&(R3.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ma,O3)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),O3=!0}}function D3(t,e){let n=e.startContainer,s=e.startOffset,r=e.endContainer,a=e.endOffset,l=t.domAtPos(t.state.selection.anchor);return kd(l.node,l.offset,r,a)&&([n,s,r,a]=[r,a,n,s]),{anchorNode:n,anchorOffset:s,focusNode:r,focusOffset:a}}function ZG(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return D3(t,r)}let n;function s(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",s,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",s,!0),n?D3(t,n):null}function JG(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let s=t.docView.nearestDesc(n,!0);if(s&&s.node.isBlock)return n}return null}function QG(t,e){var n;let{focusNode:s,focusOffset:r}=t.domSelectionRange();for(let a of e)if(((n=a.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let l=a.nextSibling;for(;l&&l.nodeName!="TD"&&l.nodeName!="TH";)l=l.nextSibling;if(l){let c=l;for(;;){let u=c.firstChild;if(!u||u.nodeType!=1||u.contentEditable=="false"||/^(BR|IMG)$/.test(u.nodeName))break;c=u}c.insertBefore(a,c.firstChild),s==a&&t.domSelection().collapse(a,r)}else a.parentNode.removeChild(a)}}function eq(t,e,n,s){let{node:r,fromOffset:a,toOffset:l,from:c,to:u}=t.docView.parseRange(e,n),f=t.domSelectionRange(),m,g=f.anchorNode;if(g&&t.dom.contains(g.nodeType==1?g:g.parentNode)&&(m=[{node:g,offset:f.anchorOffset}],Ab(f)||m.push({node:f.focusNode,offset:f.focusOffset})),hs&&t.input.lastKeyCode===8)for(let _=l;_>a;_--){let E=r.childNodes[_-1],k=E.pmViewDesc;if(E.nodeName=="BR"&&!k){l=_;break}if(!k||k.size)break}let x=t.state.doc,b=t.someProp("domParser")||Ql.fromSchema(t.state.schema),v=x.resolve(c),w=null,N=b.parse(r,{topNode:v.parent,topMatch:v.parent.contentMatchAt(v.index()),topOpen:!0,from:a,to:l,preserveWhitespace:v.parent.type.whitespace=="pre"?"full":!0,findPositions:m,ruleFromNode:tq(s),context:v});if(m&&m[0].pos!=null){let _=m[0].pos,E=m[1]&&m[1].pos;E==null&&(E=_),w={anchor:_+c,head:E+c}}return{doc:N,sel:w,from:c,to:u}}const tq=t=>e=>{let n=e.pmViewDesc;if(n)return n.parseRule(t);if(e.nodeName=="BR"&&e.parentNode){if(Ds&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let s=document.createElement("div");return s.appendChild(document.createElement("li")),{skip:s}}else if(e.parentNode.lastChild==e||Ds&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null},nq=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function iq(t,e,n,s,r){let a=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let M=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,O=h_(t,M);if(O&&!t.state.selection.eq(O)){if(hs&&Uo&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",H=>H(t,Kc(13,"Enter"))))return;let P=t.state.tr.setSelection(O);M=="pointer"?P.setMeta("pointer",!0):M=="key"&&P.scrollIntoView(),a&&P.setMeta("composition",a),t.dispatch(P)}return}let l=t.state.doc.resolve(e),c=l.sharedDepth(n);e=l.before(c+1),n=t.state.doc.resolve(n).after(c+1);let u=t.state.selection,f=eq(t,e,n,r),m=t.state.doc,g=m.slice(f.from,f.to),x,b;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(x=t.state.selection.to,b="end"):(x=t.state.selection.from,b="start"),t.input.lastKeyCode=null;let v=aq(g.content,f.doc.content,f.from,x,b);if(v&&t.input.domChangeCount++,(lh&&t.input.lastIOSEnter>Date.now()-225||Uo)&&r.some(M=>M.nodeType==1&&!nq.test(M.nodeName))&&(!v||v.endA>=v.endB)&&t.someProp("handleKeyDown",M=>M(t,Kc(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!v)if(s&&u instanceof Ue&&!u.empty&&u.$head.sameParent(u.$anchor)&&!t.composing&&!(f.sel&&f.sel.anchor!=f.sel.head))v={start:u.from,endA:u.to,endB:u.to};else{if(f.sel){let M=L3(t,t.state.doc,f.sel);if(M&&!M.eq(t.state.selection)){let O=t.state.tr.setSelection(M);a&&O.setMeta("composition",a),t.dispatch(O)}}return}t.state.selection.from<t.state.selection.to&&v.start==v.endB&&t.state.selection instanceof Ue&&(v.start>t.state.selection.from&&v.start<=t.state.selection.from+2&&t.state.selection.from>=f.from?v.start=t.state.selection.from:v.endA<t.state.selection.to&&v.endA>=t.state.selection.to-2&&t.state.selection.to<=f.to&&(v.endB+=t.state.selection.to-v.endA,v.endA=t.state.selection.to)),hr&&ec<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>f.from&&f.doc.textBetween(v.start-f.from-1,v.start-f.from+1)==" Â "&&(v.start--,v.endA--,v.endB--);let w=f.doc.resolveNoCache(v.start-f.from),N=f.doc.resolveNoCache(v.endB-f.from),_=m.resolve(v.start),E=w.sameParent(N)&&w.parent.inlineContent&&_.end()>=v.endA;if((lh&&t.input.lastIOSEnter>Date.now()-225&&(!E||r.some(M=>M.nodeName=="DIV"||M.nodeName=="P"))||!E&&w.pos<f.doc.content.size&&(!w.sameParent(N)||!w.parent.inlineContent)&&w.pos<N.pos&&!/\S/.test(f.doc.textBetween(w.pos,N.pos,"","")))&&t.someProp("handleKeyDown",M=>M(t,Kc(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>v.start&&rq(m,v.start,v.endA,w,N)&&t.someProp("handleKeyDown",M=>M(t,Kc(8,"Backspace")))){Uo&&hs&&t.domObserver.suppressSelectionUpdates();return}hs&&v.endB==v.start&&(t.input.lastChromeDelete=Date.now()),Uo&&!E&&w.start()!=N.start()&&N.parentOffset==0&&w.depth==N.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==v.endA&&(v.endB-=2,N=f.doc.resolveNoCache(v.endB-f.from),setTimeout(()=>{t.someProp("handleKeyDown",function(M){return M(t,Kc(13,"Enter"))})},20));let k=v.start,C=v.endA,A=M=>{let O=M||t.state.tr.replace(k,C,f.doc.slice(v.start-f.from,v.endB-f.from));if(f.sel){let P=L3(t,O.doc,f.sel);P&&!(hs&&t.composing&&P.empty&&(v.start!=v.endB||t.input.lastChromeDelete<Date.now()-100)&&(P.head==k||P.head==O.mapping.map(C)-1)||hr&&P.empty&&P.head==k)&&O.setSelection(P)}return a&&O.setMeta("composition",a),O.scrollIntoView()},L;if(E)if(w.pos==N.pos){hr&&ec<=11&&w.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ko(t),20));let M=A(t.state.tr.delete(k,C)),O=m.resolve(v.start).marksAcross(m.resolve(v.endA));O&&M.ensureMarks(O),t.dispatch(M)}else if(v.endA==v.endB&&(L=sq(w.parent.content.cut(w.parentOffset,N.parentOffset),_.parent.content.cut(_.parentOffset,v.endA-_.start())))){let M=A(t.state.tr);L.type=="add"?M.addMark(k,C,L.mark):M.removeMark(k,C,L.mark),t.dispatch(M)}else if(w.parent.child(w.index()).isText&&w.index()==N.index()-(N.textOffset?0:1)){let M=w.parent.textBetween(w.parentOffset,N.parentOffset),O=()=>A(t.state.tr.insertText(M,k,C));t.someProp("handleTextInput",P=>P(t,k,C,M,O))||t.dispatch(O())}else t.dispatch(A());else t.dispatch(A())}function L3(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:f_(t,e.resolve(n.anchor),e.resolve(n.head))}function sq(t,e){let n=t.firstChild.marks,s=e.firstChild.marks,r=n,a=s,l,c,u;for(let m=0;m<s.length;m++)r=s[m].removeFromSet(r);for(let m=0;m<n.length;m++)a=n[m].removeFromSet(a);if(r.length==1&&a.length==0)c=r[0],l="add",u=m=>m.mark(c.addToSet(m.marks));else if(r.length==0&&a.length==1)c=a[0],l="remove",u=m=>m.mark(c.removeFromSet(m.marks));else return null;let f=[];for(let m=0;m<e.childCount;m++)f.push(u(e.child(m)));
vendor: 5,002 bytes, line 90
90if(be.from(f).eq(t))return{mark:c,type:l}}function rq(t,e,n,s,r){if(n-e<=r.pos-s.pos||Lw(s,!0,!1)<r.pos)return!1;let a=t.resolve(e);if(!s.parent.isTextblock){let c=a.nodeAfter;return c!=null&&n==e+c.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let l=t.resolve(Lw(a,!0,!0));return!l.parent.isTextblock||l.pos>n||Lw(l,!0,!1)<n?!1:s.parent.content.cut(s.parentOffset).eq(l.parent.content)}function Lw(t,e,n){let s=t.depth,r=e?t.end():t.pos;for(;s>0&&(e||t.indexAfter(s)==t.node(s).childCount);)s--,r++,e=!1;if(n){let a=t.node(s).maybeChild(t.indexAfter(s));for(;a&&!a.isLeaf;)a=a.firstChild,r++}return r}function aq(t,e,n,s,r){let a=t.findDiffStart(e,n),l=n+t.size,c=n+e.size;if(a==null)return null;let{a:u,b:f}=t.findDiffEnd(e,l,c);if(r=="end"){let m=Math.max(0,a-Math.min(u,f));s-=u+m-a}if(u<a&&l<c){let m=s<=a&&s>=u?a-s:0;a-=m,f=a+(f-u),u=a}else if(f<a){let m=s<=a&&s>=f?a-s:0;a-=m,u=a+(u-f),f=a}return{start:a,endA:u,endB:f}}class gD{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new NG,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(F3),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=B3(this),P3(this),this.nodeViews=z3(this),this.docView=y3(this.state.doc,I3(this),Dw(this),this.dom,this),this.domObserver=new YG(this,(s,r,a,l)=>iq(this,s,r,a,l)),this.domObserver.start(),SG(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&_N(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(F3),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let s in this._props)n[s]=this._props[s];n.state=this.state;for(let s in e)n[s]=e[s];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var s;let r=this.state,a=!1,l=!1;e.storedMarks&&this.composing&&(cD(this),l=!0),this.state=e;let c=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(c||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let b=z3(this);lq(b,this.nodeViews)&&(this.nodeViews=b,a=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&_N(this),this.editable=B3(this),P3(this);let u=Dw(this),f=I3(this),m=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",g=a||!this.docView.matchesNode(e.doc,f,u);(g||!e.selection.eq(r.selection))&&(l=!0);let x=m=="preserve"&&l&&this.dom.style.overflowAnchor==null&&PV(this);if(l){this.domObserver.stop();let b=g&&(hr||hs)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&oq(r.selection,e.selection);if(g){let w=hs?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=BG(this)),(a||!this.docView.update(e.doc,f,u,this))&&(this.docView.updateOuterDeco(f),this.docView.destroy(),this.docView=y3(e.doc,f,u,this.dom,this)),w&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(b=!0)}let v=this.input.mouseDown;b||!(v&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&oG(this)&&v.delaySelUpdate())?Ko(this,b):(YO(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((s=this.dragging)===null||s===void 0)&&s.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),m=="reset"?this.dom.scrollTop=0:m=="to selection"?this.scrollToSelection():x&&BV(x)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Ye){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&f3(this,n.getBoundingClientRect(),e)}else f3(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let s=this.directPlugins[n];s.spec.view&&this.pluginViews.push(s.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let s=this.state.plugins[n];s.spec.view&&this.pluginViews.push(s.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let s=this.pluginViews[n];s.update&&s.update(this,e)}}updateDraggedNode(e,n){let s=e.node,r=-1;
vendor: 4,645 bytes, line 90
90if(s.from<this.state.doc.content.size&&this.state.doc.nodeAt(s.from)==s.node)r=s.from;else{let a=s.from+(this.state.doc.content.size-n.doc.content.size);(a>0&&a<this.state.doc.content.size&&this.state.doc.nodeAt(a))==s.node&&(r=a)}this.dragging=new uD(e.slice,e.move,r<0?void 0:Ye.create(this.state.doc,r))}someProp(e,n){let s=this._props&&this._props[e],r;if(s!=null&&(r=n?n(s):s))return r;for(let l=0;l<this.directPlugins.length;l++){let c=this.directPlugins[l].props[e];if(c!=null&&(r=n?n(c):c))return r}let a=this.state.plugins;if(a)for(let l=0;l<a.length;l++){let c=a[l].props[e];if(c!=null&&(r=n?n(c):c))return r}}hasFocus(){if(hr){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&zV(this.dom),Ko(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return WV(this,e)}coordsAtPos(e,n=1){return HO(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,s=-1){let r=this.docView.posFromDOM(e,n,s);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return YV(this,n||this.state,e)}pasteHTML(e,n){return ip(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return ip(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return m_(this,e)}destroy(){this.docView&&(_G(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Dw(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,kV())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return EG(this,e)}domSelectionRange(){let e=this.domSelection();return e?Ds&&this.root.nodeType===11&&RV(this.dom.ownerDocument)==this.dom&&ZG(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}gD.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function I3(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let s in n)s=="class"?e.class+=" "+n[s]:s=="style"?e.style=(e.style?e.style+";":"")+n[s]:!e[s]&&s!="contenteditable"&&s!="nodeName"&&(e[s]=String(n[s]))}),e.translate||(e.translate="no"),[Bi.node(0,t.state.doc.content.size,e)]}function P3(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Bi.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function B3(t){return!t.someProp("editable",e=>e(t.state)===!1)}function oq(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function z3(t){let e=Object.create(null);function n(s){for(let r in s)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=s[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function lq(t,e){let n=0,s=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)s++;return n!=s}function F3(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var lc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},uy={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'}
90,cq=typeof navigator<"u"&&/Mac/.test(navigator.platform),dq=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ds=0;ds<10;ds++)lc[48+ds]=lc[96+ds]=String(ds);for(var ds=1;ds<=24;ds++)lc[ds+111]="F"+ds;for(var ds=65;ds<=90;ds++)lc[ds]=String.fromCharCode(ds+32),uy[ds]=String.fromCharCode(ds);for(var Iw in lc)uy.hasOwnProperty(Iw)||(uy[Iw]=lc[Iw]);function uq(t){var e=cq&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||dq&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?uy:lc)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const hq=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),fq=typeof navigator<"u"&&/Win/.test(navigator.platform);function mq(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let s,r,a,l;for(let c=0;c<e.length-1;c++){let u=e[c];if(/^(cmd|meta|m)$/i.test(u))l=!0;else if(/^a(lt)?$/i.test(u))s=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))hq?l=!0:r=!0;else throw new Error("Unrecognized modifier name: "+u)}return s&&(n="Alt-"+n),r&&(n="Ctrl-"+n),l&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function pq(t){let e=Object.create(null);for(let n in t)e[mq(n)]=t[n];return e}function Pw(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function gq(t){return new ln({props:{handleKeyDown:v_(t)}})}function v_(t){let e=pq(t);return function(n,s){let r=uq(s),a,l=e[Pw(r,s)];if(l&&l(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(s.shiftKey){let c=e[Pw(r,s,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((s.altKey||s.metaKey||s.ctrlKey)&&!(fq&&s.ctrlKey&&s.altKey)&&(a=lc[s.keyCode])&&a!=r){let c=e[Pw(a,s)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}function Rb(t){const{state:e,transaction:n}=t;let{selection:s}=n,{doc:r}=n,{storedMarks:a}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return a},get selection(){return s},get doc(){return r},get tr(){return s=n.selection,r=n.doc,a=n.storedMarks,n}}}var Zu=class xD{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:s}=this,{view:r}=n,{tr:a}=s,l=this.buildProps(a);return Object.fromEntries(Object.entries(e).map(([c,u])=>[c,(...m)=>{const g=u(...m)(l);return!a.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(a),g}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:s,editor:r,state:a}=this,{view:l}=r,c=[],u=!!e,f=e||a.tr,m=()=>(!u&&n&&!f.getMeta("preventDispatch")&&!this.hasCustomState&&l.dispatch(f),c.every(x=>x===!0)),g={...Object.fromEntries(Object.entries(s).map(([x,b])=>[x,(...w)=>{const N=this.buildProps(f,n),_=b(...w)(N);return c.push(_),g}])),run:m};return g}static createFakeChain(){const e=new Proxy({},{get:(n,s)=>{if(s!=="then")return s==="run"?()=>!1:()=>e}});return e}createCan(e){const{rawCommands:n,state:s}=this,r=!1,a=e||s.tr,l=this.buildProps(a,r);return{...Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...f)=>u(...f)({...l,dispatch:void 0})])),chain:()=>this.createChain(a,r)}}static createFallbackCan(){const e=xD.createFakeChain();return new Proxy({chain:()=>e},{get:(n,s)=>{if(s!=="then")return s==="chain"?n.chain:()=>!1}})}buildProps(e,n=!0){const{rawCommands:s,editor:r,state:a}=this,{view:l}=r,c={tr:e,editor:r,view:l,state:Rb({state:a,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(s).map(([u,f])=>[u,(...m)=>f(...m)(c)]))}};return c}};const xq=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{if(!t.isDestroyed){var n;
90e.dom.blur(),(n=window)===null||n===void 0||(n=n.getSelection())===null||n===void 0||n.removeAllRanges()}}),!0),yq=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),bq=()=>({state:t,tr:e,dispatch:n})=>{const{selection:s}=e,{ranges:r}=s;return n&&r.forEach(({$from:a,$to:l})=>{t.doc.nodesBetween(a.pos,l.pos,(c,u)=>{if(c.type.isText)return;const{doc:f,mapping:m}=e,g=f.resolve(m.map(u)),x=f.resolve(m.map(u+c.nodeSize)),b=g.blockRange(x);if(!b)return;const v=Th(b);if(c.type.isTextblock){const{defaultType:w}=g.parent.contentMatchAt(g.index());e.setNodeMarkup(b.start,w)}(v||v===0)&&e.lift(b,v)})}),!0},vq=t=>e=>t(e),wq=()=>({state:t,dispatch:e})=>AO(t,e),Nq=(t,e)=>({editor:n,tr:s})=>{const{state:r}=n,a=r.doc.slice(t.from,t.to);s.deleteRange(t.from,t.to);const l=s.mapping.map(e);return s.insert(l,a.content),s.setSelection(new Ue(s.doc.resolve(Math.max(l-1,0)))),!0},Sq=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,s=n.$anchor.node();if(s.content.size>0)return!1;const r=t.selection.$anchor;for(let a=r.depth;a>0;a-=1)if(r.node(a).type===s.type){if(e){const l=r.before(a),c=r.after(a);t.delete(l,c).scrollIntoView()}return!0}return!1};function zi(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}const _q=t=>({tr:e,state:n,dispatch:s})=>{const r=zi(t,n.schema),a=e.selection.$anchor;for(let l=a.depth;l>0;l-=1)if(a.node(l).type===r){if(s){const c=a.before(l),u=a.after(l);e.delete(c,u).scrollIntoView()}return!0}return!1},jq=t=>({tr:e,dispatch:n})=>{const{from:s,to:r}=t;return n&&e.delete(s,r),!0},Eq=t=>t.content?/^text(\*|\+)/.test(t.content):!1,H3=(t,e,n)=>{if(!t.parent.isInline||n==="left"&&t.pos>t.start()||n==="right"&&t.pos<t.end())return t.pos;const s=e.nodes[t.parent.type.name].spec;return Eq(s)?n==="left"?t.start()-1:t.end()+1:t.pos},kq=(t,e,n)=>({from:H3(t,n,"left"),to:H3(e,n,"right")}),Cq=()=>({state:t,dispatch:e})=>{if(t.selection.empty)return!1;if(e){const n=t.tr,{ranges:s}=t.selection,r=n.steps.length;s.forEach(a=>{const l=n.mapping.slice(r),c=n.doc.resolve(l.map(a.$from.pos)),u=n.doc.resolve(l.map(a.$to.pos)),{from:f,to:m}=kq(c,u,t.schema);n.deleteRange(f,m)}),n.selection.empty||n.setSelection(Ue.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),e(n)}return!0},Tq=()=>({commands:t})=>t.keyboardShortcut("Enter"),Aq=()=>({state:t,dispatch:e})=>hV(t,e);function w_(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function hy(t,e,n={strict:!0}){const s=Object.keys(e);return s.length?s.every(r=>n.strict?e[r]===t[r]:w_(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function yD(t,e,n={}){return t.find(s=>s.type===e&&hy(Object.fromEntries(Object.keys(n).map(r=>[r,s.attrs[r]])),n))}function $3(t,e,n={}){return!!yD(t,e,n)}function N_(t,e,n){if(!t||!e)return;let s=t.parent.childAfter(t.parentOffset);if((!s.node||!s.node.marks.some(u=>u.type===e))&&(s=t.parent.childBefore(t.parentOffset)),!s.node||!s.node.marks.some(u=>u.type===e))return;if(!n){const u=s.node.marks.find(f=>f.type===e);u&&(n=u.attrs)}if(!yD([...s.node.marks],e,n))return;let r=s.index,a=t.start()+s.offset,l=r+1,c=a+s.node.nodeSize;for(;r>0&&$3([...t.parent.child(r-1).marks],e,n);)r-=1,a-=t.parent.child(r).nodeSize;for(;l<t.parent.childCount&&$3([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function rl(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const Mq=(t,e)=>({tr:n,state:s,dispatch:r})=>{const a=rl(t,s.schema),{doc:l,selection:c}=n,{$from:u,from:f,to:m}=c;if(r){const g=N_(u,a,e);if(g&&g.from<=f&&g.to>=m){const x=Ue.create(l,g.from,g.to);n.setSelection(x)}}return!0},Rq=t=>e=>{const n=typeof t=="function"?t(e):t;for(let s=0;s<n.length;s+=1)if(n[s](e))return!0;return!1};function bD(t){return t instanceof Ue}function ed(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function jN(t,e=null){if(!e)return null;const n=it.atStart(t),s=it.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return s;const r=n.from,a=s.to;return e==="all"?Ue.create(t,ed(0,r,a),ed(t.content.size,r,a)):Ue.create(t,ed(e,r,a),ed(e,r,a))}function U3(){return["Android"].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function fy(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Oq(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}const Dq=(t=null,e={})=>({editor:n,view:s,tr:r,dispatch:a})=>{e={scrollIntoView:!0,...e};const l=()=>{(fy()||U3())&&s.dom.focus(),Oq()&&!fy()&&!U3()&&s.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(s.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(s.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(a&&t===null&&!bD(n.state.selection))return l(),!0;const c=jN(r.doc,t)||n.state.selection,u=n.state.selection.eq(c);return a&&(u||r.setSelection(c),u&&r.storedMarks&&r.setStoredMarks(r.storedMarks),l()),!0},Lq=(t,e)=>n=>t.every((s,r)=>e(s,{...n,index:r})),Iq=(t,e)=>({tr:n,commands:s})=>s.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),vD=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const s=e[n];s.nodeType===3&&s.nodeValue&&/^(\n\s\s|\n)$/.test(s.nodeValue)?t.removeChild(s):s.nodeType===1&&vD(s)}return t};function jx(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return vD(n)}
90function wD(t){return typeof t?.nodesBetween=="function"}function ch(t,e,n){if(wD(t))return t;const s=typeof t=="object"&&t!==null;n={slice:!0,parseOptions:{},...n};const r=typeof t=="string";if(s)try{if(Array.isArray(t)&&t.length>0)return be.fromArray(t.map(l=>e.nodeFromJSON(l)));const a=e.nodeFromJSON(t);return n.errorOnInvalidContent&&a.check(),a}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",a),ch("",e,n)}if(r){if(n.errorOnInvalidContent){let l=!1,c="";const u=new nO({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:f=>(l=!0,c=typeof f=="string"?f:f.outerHTML,null)}]}})});if(n.slice?Ql.fromSchema(u).parseSlice(jx(t),n.parseOptions):Ql.fromSchema(u).parse(jx(t),n.parseOptions),n.errorOnInvalidContent&&l)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${c}`)})}const a=Ql.fromSchema(e);return n.slice?a.parseSlice(jx(t),n.parseOptions).content:a.parse(jx(t),n.parseOptions)}return ch("",e,n)}function ND(t){return!("type"in t)}function SD(t,e,n){const s=t.steps.length-1;if(s<e)return;const r=t.steps[s];if(!(r instanceof ui||r instanceof Xi))return;const a=t.mapping.maps[s];let l=0;a.forEach((c,u,f,m)=>{l===0&&(l=m)}),t.setSelection(it.near(t.doc.resolve(l),n))}const Pq=(t,e,n)=>({tr:s,dispatch:r,editor:a})=>{if(r){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let c;const u=N=>{a.emit("contentError",{editor:a,error:N,disableCollaboration:()=>{"collaboration"in a.storage&&typeof a.storage.collaboration=="object"&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},f={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{ch(e,a.schema,{parseOptions:f,errorOnInvalidContent:!0})}catch(N){u(N)}try{var l;c=ch(e,a.schema,{parseOptions:f,errorOnInvalidContent:(l=n.errorOnInvalidContent)!==null&&l!==void 0?l:a.options.enableContentCheck})}catch(N){return u(N),!1}let{from:m,to:g}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},x=!0,b=!0;const v=ND(c)?c.content:[c];if(v.forEach(N=>{N.check(),x=x?N.isText&&N.marks.length===0:!1,b=b?N.isBlock:!1}),m===g&&b){const{parent:N}=s.doc.resolve(m);N.isTextblock&&!N.type.spec.code&&!N.childCount&&(m-=1,g+=1)}let w;if(x)Array.isArray(e)?w=e.map(N=>N.text||"").join(""):wD(e)?w=v.map(N=>{var _;return(_=N.text)!==null&&_!==void 0?_:""}).join(""):typeof e=="object"&&e&&e.text?w=e.text:w=e,s.insertText(w,m,g);else{w=be.from(v);const N=s.doc.resolve(m),_=N.node(),E=N.parentOffset===0,k=_.isText||_.isTextblock,C=_.content.size>0;E&&k&&C&&b&&(m=Math.max(0,m-1)),s.replaceWith(m,g,v)}n.updateSelection&&SD(s,s.steps.length-1,-1),n.applyInputRules&&s.setMeta("applyInputRules",{from:m,text:w}),n.applyPasteRules&&s.setMeta("applyPasteRules",{from:m,text:w})}return!0};function _D(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Bq=(t={})=>({tr:e,dispatch:n,editor:s})=>{const{pos:r,attrs:a,content:l,updateSelection:c=!0}=t;let u;typeof r=="number"?u=e.doc.resolve(r):r?u=r:u=e.selection.$from;const f=_D(u.parent.contentMatchAt(u.index()));if(!f)return!1;const m=Object.keys(f.spec.attrs||{}),g=a?Object.fromEntries(Object.entries(a).filter(([b])=>m.includes(b))):{};let x;if(l){const b=ch(l,s.schema);x=f.createAndFill(g,b)}else x=f.createAndFill(g);return x?(n&&(e.insert(u.pos,x),c&&SD(e,e.steps.length-1,-1)),!0):!1},zq=()=>({state:t,dispatch:e})=>cV(t,e),Fq=()=>({state:t,dispatch:e})=>dV(t,e),Hq=()=>({state:t,dispatch:e})=>SO(t,e),$q=()=>({state:t,dispatch:e})=>kO(t,e),Uq=()=>({state:t,dispatch:e,tr:n})=>{try{const s=kb(t.doc,t.selection.$from.pos,-1);return s==null?!1:(n.join(s,2),e&&e(n),!0)}catch{return!1}},Wq=()=>({state:t,dispatch:e,tr:n})=>{try{const s=kb(t.doc,t.selection.$from.pos,1);return s==null?!1:(n.join(s,2),e&&e(n),!0)}catch{return!1}},Vq=()=>({state:t,dispatch:e})=>oV(t,e),Gq=()=>({state:t,dispatch:e})=>lV(t,e);function jD(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function qq(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let s,r,a,l;for(let c=0;c<e.length-1;c+=1){const u=e[c];if(/^(cmd|meta|m)$/i.test(u))l=!0;else if(/^a(lt)?$/i.test(u))s=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))fy()||jD()?l=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${u}`)}return s&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),l&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}const Kq=t=>({editor:e,view:n,tr:s,dispatch:r})=>{const a=qq(t).split(/-(?!$)/),l=a.find(f=>!["Alt","Ctrl","Meta","Shift"].includes(f)),c=new KeyboardEvent("keydown",{key:l==="Space"?" ":l,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),u=e.captureTransaction(()=>{n.someProp("handleKeyDown",f=>f(n,c))});return u?.steps.forEach(f=>{const m=f.map(s.mapping);m&&r&&s.maybeStep(m)}),!0};function Qo(t,e,n={}){const{from:s,to:r,empty:a}=t.selection,l=e?zi(e,t.schema):null,c=[];t.doc.nodesBetween(s,r,(m,g)=>{if(m.isText)return;const x=Math.max(s,g),b=Math.min(r,g+m.nodeSize);c.push({node:m,from:x,to:b})});const u=r-s,f=c.filter(m=>
vendor: 4,079 bytes, line 90
90l?l.name===m.node.type.name:!0).filter(m=>hy(m.node.attrs,n,{strict:!1}));return a?!!f.length:f.reduce((m,g)=>m+g.to-g.from,0)>=u}const Yq=(t,e={})=>({state:n,dispatch:s})=>Qo(n,zi(t,n.schema),e)?uV(n,s):!1,Xq=()=>({state:t,dispatch:e})=>MO(t,e),Zq=t=>({state:e,dispatch:n})=>{const s=zi(t,e.schema);return SV(s)(e,n)},Jq=()=>({state:t,dispatch:e})=>TO(t,e);function Ob(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function W3(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((s,r)=>(n.includes(r)||(s[r]=t[r]),s),{})}const Qq=(t,e)=>({tr:n,state:s,dispatch:r})=>{let a=null,l=null;const c=Ob(typeof t=="string"?t:t.name,s.schema);if(!c)return!1;c==="node"&&(a=zi(t,s.schema)),c==="mark"&&(l=rl(t,s.schema));let u=!1;return n.selection.ranges.forEach(f=>{s.doc.nodesBetween(f.$from.pos,f.$to.pos,(m,g)=>{a&&a===m.type&&(u=!0,r&&n.setNodeMarkup(g,void 0,W3(m.attrs,e))),l&&m.marks.length&&m.marks.forEach(x=>{l===x.type&&(u=!0,r&&n.addMark(g,g+m.nodeSize,l.create(W3(x.attrs,e))))})})}),u},eK=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),tK=()=>({tr:t,dispatch:e})=>{if(e){const n=new Br(t.doc);t.setSelection(n)}return!0},nK=()=>({state:t,dispatch:e})=>jO(t,e),iK=()=>({state:t,dispatch:e})=>CO(t,e),sK=()=>({state:t,dispatch:e})=>pV(t,e),rK=()=>({state:t,dispatch:e})=>yV(t,e),aK=()=>({state:t,dispatch:e})=>xV(t,e);function EN(t,e,n={},s={}){return ch(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:s.errorOnInvalidContent})}const oK=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:s={}}={})=>({editor:r,tr:a,dispatch:l,commands:c})=>{const{doc:u}=a;if(s.preserveWhitespace!=="full"){const f=EN(t,r.schema,s,{errorOnInvalidContent:e??r.options.enableContentCheck});if(l){const m=ND(f)?f.content:[f];a.replaceWith(0,u.content.size,m).setMeta("preventUpdate",!n)}return!0}return l&&a.setMeta("preventUpdate",!n),c.insertContentAt({from:0,to:u.content.size},t,{parseOptions:s,errorOnInvalidContent:e??r.options.enableContentCheck})};function ED(t,e){const n=rl(e,t.schema),{from:s,to:r,empty:a}=t.selection,l=[];a?(t.storedMarks&&l.push(...t.storedMarks),l.push(...t.selection.$head.marks())):t.doc.nodesBetween(s,r,u=>{l.push(...u.marks)});const c=l.find(u=>u.type.name===n.name);return c?{...c.attrs}:{}}function kD(t,e){const n=new r_(t);return e.forEach(s=>{s.steps.forEach(r=>{n.step(r)})}),n}function kN(t,e){const n=[];return t.descendants((s,r)=>{e(s)&&n.push({node:s,pos:r})}),n}function lK(t,e,n){const s=[];return t.nodesBetween(e.from,e.to,(r,a)=>{n(r)&&s.push({node:r,pos:a})}),s}function rp(t,e){for(let n=t.depth;n>0;n-=1){const s=t.node(n);if(e(s))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:s}}}function Db(t){return e=>rp(e.$from,t)}function We(t,e,n){return t.config[e]===void 0&&t.parent?We(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?We(t.parent,e,n):null}):t.config[e]}function S_(t){return t.map(e=>{const n=We(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return n?[e,...S_(n())]:e}).flat(10)}function __(t,e){const n=Ld.fromSchema(e).serializeFragment(t),s=document.implementation.createHTMLDocument().createElement("div");return s.appendChild(n),s.innerHTML}function CD(t){return typeof t=="function"}function Ut(t,e=void 0,...n){return CD(t)?e?t.bind(e)(...n):t(...n):t}function cK(t={}){return Object.keys(t).length===0&&t.constructor===Object}function dh(t){return{baseExtensions:t.filter(e=>e.type==="extension"),nodeExtensions:t.filter(e=>e.type==="node"),markExtensions:t.filter(e=>e.type==="mark")}}function TD(t){const e=[],{nodeExtensions:n,markExtensions:s}=dh(t),r=[...n,...s],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},l=n.filter(f=>f.name!=="text").map(f=>f.name),c=s.map(f=>f.name),u=[...l,...c];return t.forEach(f=>{const m=We(f,"addGlobalAttributes",{name:f.name,options:f.options,storage:f.storage,extensions:r});m&&m().forEach(g=>{let x;Array.isArray(g.types)?x=g.types:g.types==="*"?x=u:g.types==="nodes"?x=l:g.types==="marks"?x=c:x=[],x.forEach(b=>
90{Object.entries(g.attributes).forEach(([v,w])=>{e.push({type:b,name:v,attribute:{...a,...w}})})})})}),r.forEach(f=>{const m=We(f,"addAttributes",{name:f.name,options:f.options,storage:f.storage});if(!m)return;const g=m();Object.entries(g).forEach(([x,b])=>{const v={...a,...b};typeof v?.default=="function"&&(v.default=v.default()),v?.isRequired&&v?.default===void 0&&delete v.default,e.push({type:f.name,name:x,attribute:v})})}),e}function dK(t){const e=[];let n="",s=!1,r=!1,a=0;const l=t.length;for(let c=0;c<l;c+=1){const u=t[c];if(u==="'"&&!r){s=!s,n+=u;continue}if(u==='"'&&!s){r=!r,n+=u;continue}if(!s&&!r){if(u==="("){a+=1,n+=u;continue}if(u===")"&&a>0){a-=1,n+=u;continue}if(u===";"&&a===0){e.push(n),n="";continue}}n+=u}return n&&e.push(n),e}function V3(t){const e=[],n=dK(t||""),s=n.length;for(let r=0;r<s;r+=1){const a=n[r],l=a.indexOf(":");if(l===-1)continue;const c=a.slice(0,l).trim(),u=a.slice(l+1).trim();c&&u&&e.push([c,u])}return e}function on(...t){return t.filter(e=>!!e).reduce((e,n)=>{const s={...e};return Object.entries(n).forEach(([r,a])=>{if(r==="__proto__"){Object.defineProperty(s,r,{configurable:!0,enumerable:!0,value:a,writable:!0});return}if(!s[r]){s[r]=a;return}if(r==="class"){const l=a?String(a).split(" "):[],c=s[r]?s[r].split(" "):[],u=l.filter(f=>!c.includes(f));s[r]=[...c,...u].join(" ")}else if(r==="style"){const l=new Map([...V3(s[r]),...V3(a)]);s[r]=Array.from(l.entries()).map(([c,u])=>`${c}: ${u}`).join("; ")}else s[r]=a}),s},{})}function uh(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,s)=>on(n,s),{})}function uK(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function G3(t,e){return"style"in t?t:{...t,getAttrs:n=>{const s=t.getAttrs?t.getAttrs(n):t.attrs;if(s===!1)return!1;const r=e.reduce((a,l)=>{const c=l.attribute.parseHTML?l.attribute.parseHTML(n):uK(n.getAttribute(l.name));return c==null?a:{...a,[l.name]:c}},{});return{...s,...r}}}}function q3(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&cK(n)?!1:n!=null))}function K3(t){var e,n;const s={};return!(!(t==null||(e=t.attribute)===null||e===void 0)&&e.isRequired)&&"default"in(t?.attribute||{})&&(s.default=t.attribute.default),(t==null||(n=t.attribute)===null||n===void 0?void 0:n.validate)!==void 0&&(s.validate=t.attribute.validate),[t.name,s]}function hK(t,e){var n;const s=TD(t),{nodeExtensions:r,markExtensions:a}=dh(t),l=(n=r.find(f=>We(f,"topNode")))===null||n===void 0?void 0:n.name,c=Object.fromEntries(r.map(f=>{const m=s.filter(N=>N.type===f.name),g={name:f.name,options:f.options,storage:f.storage,editor:e},x=q3({...t.reduce((N,_)=>{const E=We(_,"extendNodeSchema",g);return{...N,...E?E(f):{}}},{}),content:Ut(We(f,"content",g)),marks:Ut(We(f,"marks",g)),group:Ut(We(f,"group",g)),inline:Ut(We(f,"inline",g)),atom:Ut(We(f,"atom",g)),selectable:Ut(We(f,"selectable",g)),draggable:Ut(We(f,"draggable",g)),code:Ut(We(f,"code",g)),whitespace:Ut(We(f,"whitespace",g)),linebreakReplacement:Ut(We(f,"linebreakReplacement",g)),defining:Ut(We(f,"defining",g)),isolating:Ut(We(f,"isolating",g)),attrs:Object.fromEntries(m.map(K3))}),b=Ut(We(f,"parseHTML",g));b&&(x.parseDOM=b.map(N=>G3(N,m)));const v=We(f,"renderHTML",g);v&&(x.toDOM=N=>v({node:N,HTMLAttributes:uh(N,m)}));const w=We(f,"renderText",g);return w&&(x.toText=w),[f.name,x]})),u=Object.fromEntries(a.map(f=>{const m=s.filter(w=>w.type===f.name),g={name:f.name,options:f.options,storage:f.storage,editor:e},x=q3({...t.reduce((w,N)=>{const _=We(N,"extendMarkSchema",g);return{...w,..._?_(f):{}}},{}),inclusive:Ut(We(f,"inclusive",g)),excludes:Ut(We(f,"excludes",g)),group:Ut(We(f,"group",g)),spanning:Ut(We(f,"spanning",g)),code:Ut(We(f,"code",g)),attrs:Object.fromEntries(m.map(K3))}),b=Ut(We(f,"parseHTML",g));b&&(x.parseDOM=b.map(w=>G3(w,m)));const v=We(f,"renderHTML",g);return v&&(x.toDOM=w=>v({mark:w,HTMLAttributes:uh(w,m)})),[f.name,x]}));return new nO({topNode:l,nodes:c,marks:u})}function fK(t){const e=t.filter((n,s)=>t.indexOf(n)!==s);return Array.from(new Set(e))}function vm(t){return t.sort((n,s)=>{const r=We(n,"priority")||100,a=We(s,"priority")||100;return r>a?-1:r<a?1:0})}function AD(t){const e=vm(S_(t)),n=fK(e.map(s=>s.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(s=>`'${s}'`).join(", ")}]. This can lead to issues.`),e}function MD(t,e,n){const{from:s,to:r}=e,{blockSeparator:a=` 91
92`,textSerializers:l={}}=n||{};let c="";return t.nodesBetween(s,r,(u,f,m,g)=>{u.isBlock&&f>s&&(c+=a);const x=l?.[u.type.name];if(x)return m&&(c+=x({node:u,pos:f,parent:m,index:g,range:e})),!1;if(u.isText){var b;c+=u==null||(b=u.text)===null||b===void 0?void 0:b.slice(Math.max(s,f)-f,r-f)}}),c}function mK(t,e){return MD(t,{from:0,to:t.content.size},e)}function RD(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function pK(t,e){const n=zi(e,t.schema),{from:s,to:r}=t.selection,a=[];t.doc.nodesBetween(s,r,c=>{a.push(c)});const l=a.reverse().find(c=>c.type.name===n.name);return l?{...l.attrs}:{}}function OD(t,e){const n=Ob(typeof e=="string"?e:e.name,t.schema);return n==="node"?pK(t,e):n==="mark"?ED(t,e):{}}function gK(t,e=JSON.stringify){const n={};return t.filter(s=>{const r=e(s);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function xK(t){const e=gK(t);return e.length===1?e:e.filter((n,s)=>!e.filter((r,a)=>a!==s).some(r=>n.oldRange.from>=r.oldRange.from&&n.oldRange.to<=r.oldRange.to&&n.newRange.from>=r.newRange.from&&n.newRange.to<=r.newRange.to))}function Lb(t){const{mapping:e,steps:n}=t,s=[];return e.maps.forEach((r,a)=>{const l=[];if(r.ranges.length)r.forEach((c,u)=>{l.push({from:c,to:u})});else{const{from:c,to:u}=n[a];if(c===void 0||u===void 0)return;l.push({from:c,to:u})}l.forEach(({from:c,to:u})=>{const f=e.slice(a).map(c,-1),m=e.slice(a).map(u),g=e.invert().map(f,-1),x=e.invert().map(m);s.push({oldRange:{from:g,to:x},newRange:{from:f,to:m}})})}),xK(s)}function j_(t,e,n){const s=[];return t===e?n.resolve(t).marks().forEach(r=>{const a=N_(n.resolve(t),r.type);a&&s.push({mark:r,...a})}):n.nodesBetween(t,e,(r,a)=>{!r||r?.nodeSize===void 0||s.push(...r.marks.map(l=>({from:a,to:a+r.nodeSize,mark:l})))}),s}const yK=(t,e,n,s=20)=>{const r=t.doc.resolve(n);let a=s,l=null;for(;a>0&&l===null;){const c=r.node(a);c?.type.name===e?l=c:a-=1}return[l,a]},bK=t=>{const e=t.depth-1;if(e<0)return null;const n=t.index(e);return n===0?null:t.node(e).child(n-1)};function vu(t,e){return e.nodes[t]||e.marks[t]||null}function A0(t,e,n){return Object.fromEntries(Object.entries(n).filter(([s])=>{const r=t.find(a=>a.type===e&&a.name===s);return r?r.attribute.keepOnSplit:!1}))}const vK=(t,e=500)=>{let n="";const s=t.parentOffset;return t.parent.nodesBetween(Math.max(0,s-e),s,(r,a,l,c)=>{var u,f;const m=((u=(f=r.type.spec).toText)===null||u===void 0?void 0:u.call(f,{node:r,pos:a,parent:l,index:c}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?m:m.slice(0,Math.max(0,s-a))}),n};function CN(t,e,n={}){const{empty:s,ranges:r}=t.selection,a=e?rl(e,t.schema):null;if(s)return!!(t.storedMarks||t.selection.$from.marks()).filter(m=>a?a.name===m.type.name:!0).find(m=>hy(m.attrs,n,{strict:!1}));let l=0;const c=[];if(r.forEach(({$from:m,$to:g})=>{const x=m.pos,b=g.pos;t.doc.nodesBetween(x,b,(v,w)=>{if(a&&v.inlineContent&&!v.type.allowsMarkType(a))return!1;if(!v.isText&&!v.marks.length)return;const N=Math.max(x,w),_=Math.min(b,w+v.nodeSize),E=_-N;l+=E,c.push(...v.marks.map(k=>({mark:k,from:N,to:_})))})}),l===0)return!1;const u=c.filter(m=>a?a.name===m.mark.type.name:!0).filter(m=>hy(m.mark.attrs,n,{strict:!1})).reduce((m,g)=>m+g.to-g.from,0),f=c.filter(m=>a?m.mark.type!==a&&m.mark.type.excludes(a):!0).reduce((m,g)=>m+g.to-g.from,0);return(u>0?u+f:u)>=l}function wK(t,e,n={}){if(!e)return Qo(t,null,n)||CN(t,null,n);const s=Ob(e,t.schema);return s==="node"?Qo(t,e,n):s==="mark"?CN(t,e,n):!1}const NK=(t,e)=>{const{$from:n,$to:s,$anchor:r}=t.selection;if(e){const a=Db(c=>c.type.name===e)(t.selection);if(!a)return!1;const l=t.doc.resolve(a.pos+1);return r.pos+1===l.end()}return!(s.parentOffset<s.parent.nodeSize-2||n.pos!==s.pos)},SK=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function Y3(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Bw(t,e){const{nodeExtensions:n}=dh(e),s=n.find(a=>a.name===t);if(!s)return!1;const r=Ut(We(s,"group",{name:s.name,options:s.options,storage:s.storage}));return typeof r!="string"?!1:r.split(" ").includes("list")}function zp(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){if(n){if(t.type.name==="hardBreak")return!0;
vendor: 4,210 bytes, line 92
92if(t.isText){var s;return!/\S/.test((s=t.text)!==null&&s!==void 0?s:"")}}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(a=>{r!==!1&&(zp(a,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function DD(t){return t instanceof Ye}var LD=class ID{constructor(e){this.position=e}static fromJSON(e){return new ID(e.position)}toJSON(){return{position:this.position}}};function _K(t,e){const n=e.mapping.mapResult(t.position);return{position:new LD(n.pos),mapResult:n}}function jK(t){return new LD(t)}function EK(t,e,n){const{selection:s}=e;let r=null;if(bD(s)&&(r=s.$cursor),r){var a;const c=(a=t.storedMarks)!==null&&a!==void 0?a:r.marks();return r.parent.type.allowsMarkType(n)&&(!!n.isInSet(c)||!c.some(u=>u.type.excludes(n)))}const{ranges:l}=s;return l.some(({$from:c,$to:u})=>{let f=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,u.pos,(m,g,x)=>{if(f)return!1;if(m.isInline){const b=!x||x.type.allowsMarkType(n),v=!!n.isInSet(m.marks)||!m.marks.some(w=>w.type.excludes(n));f=b&&v}return!f}),f})}const kK=(t,e={})=>({tr:n,state:s,dispatch:r})=>{const{selection:a}=n,{empty:l,ranges:c}=a,u=rl(t,s.schema);if(r)if(l){const f=ED(s,u);n.addStoredMark(u.create({...f,...e}))}else c.forEach(f=>{const m=f.$from.pos,g=f.$to.pos;s.doc.nodesBetween(m,g,(x,b)=>{const v=Math.max(b,m),w=Math.min(b+x.nodeSize,g);x.marks.find(N=>N.type===u)?x.marks.forEach(N=>{u===N.type&&n.addMark(v,w,u.create({...N.attrs,...e}))}):n.addMark(v,w,u.create(e))})});return EK(s,n,u)},CK=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),TK=(t,e={})=>({state:n,dispatch:s,chain:r})=>{const a=zi(t,n.schema);let l;return n.selection.$anchor.sameParent(n.selection.$head)&&(l=n.selection.$anchor.parent.attrs),a.isTextblock?r().command(({commands:c})=>d3(a,{...l,...e})(n)?!0:c.clearNodes()).command(({state:c})=>d3(a,{...l,...e})(c,s)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},AK=t=>({tr:e,dispatch:n})=>{if(n){const{doc:s}=e,r=ed(t,0,s.content.size),a=Ye.create(s,r);e.setSelection(a)}return!0},MK=(t,e)=>({tr:n,state:s,dispatch:r})=>{const{selection:a}=s;let l,c;return typeof e=="number"?(l=e,c=e):e&&"from"in e&&"to"in e?(l=e.from,c=e.to):(l=a.from,c=a.to),r&&n.doc.nodesBetween(l,c,(u,f)=>{u.isText||n.setNodeMarkup(f,void 0,{...u.attrs,dir:t})}),!0},RK=t=>({tr:e,dispatch:n})=>{if(n){const{doc:s}=e,{from:r,to:a}=typeof t=="number"?{from:t,to:t}:t,l=Ue.atStart(s).from,c=Ue.atEnd(s).to,u=ed(r,l,c),f=ed(a,l,c),m=Ue.create(s,u,f);e.setSelection(m)}return!0},OK=t=>({state:e,dispatch:n})=>{const s=zi(t,e.schema);return EV(s)(e,n)};function X3(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const s=n.filter(r=>e?.includes(r.type.name));t.tr.ensureMarks(s)}}const DK=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:s,editor:r})=>{const{selection:a,doc:l}=e,{$from:c,$to:u}=a,f=r.extensionManager.attributes,m=A0(f,c.node().type.name,c.node().attrs);if(a instanceof Ye&&a.node.isBlock)return!c.parentOffset||!qo(l,c.pos)?!1:(s&&(t&&X3(n,r.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const g=u.parentOffset===u.parent.content.size,x=c.depth===0?void 0:_D(c.node(-1).contentMatchAt(c.indexAfter(-1)));let b=g&&x?[{type:x,attrs:m}]:void 0,v=qo(e.doc,e.mapping.map(c.pos),1,b);if(!b&&!v&&qo(e.doc,e.mapping.map(c.pos),1,x?[{type:x}]:void 0)&&(v=!0,b=x?[{type:x,attrs:m}]:void 0),s){if(v&&(a instanceof Ue&&e.deleteSelection(),e.split(e.mapping.map(c.pos),1,b),x&&!g&&!c.parentOffset&&c.parent.type!==x)){const w=e.mapping.map(c.before()),N=e.doc.resolve(w);c.node(-1).canReplaceWith(N.index(),N.index()+1,x)&&e.setNodeMarkup(e.mapping.map(c.before()),x)}t&&X3(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return v},LK=(t,e={})=>({tr:n,state:s,dispatch:r,editor:a})=>{const l=zi(t,s.schema),{$from:c,$to:u}=s.selection,f=s.selection.node;if(f&&f.isBlock||c.depth<2||!c.sameParent(u))return!1;const m=c.node(-1);if(m.type!==l)return!1;const g=a.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if
92(c.depth===2||c.node(-3).type!==l||c.index(-2)!==c.node(-2).childCount-1)return!1;if(r){var x;let _=be.empty;const E=c.index(-1)?1:c.index(-2)?2:3;for(let O=c.depth-E;O>=c.depth-3;O-=1)_=be.from(c.node(O).copy(_));const k=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,C={...A0(g,c.node().type.name,c.node().attrs),...e},A=((x=l.contentMatch.defaultType)===null||x===void 0?void 0:x.createAndFill(C))||void 0;_=_.append(be.from(l.createAndFill(null,A)||void 0));const L=c.before(c.depth-(E-1));n.replace(L,c.after(-k),new De(_,4-E,0));let M=-1;n.doc.nodesBetween(L,n.doc.content.size,(O,P)=>{if(M>-1)return!1;O.isTextblock&&O.content.size===0&&(M=P+1)}),M>-1&&n.setSelection(Ue.near(n.doc.resolve(M))),n.scrollIntoView()}return!0}const b=u.pos===c.end()?m.contentMatchAt(0).defaultType:null,v={...A0(g,m.type.name,m.attrs),...e},w={...A0(g,c.node().type.name,c.node().attrs),...e};n.delete(c.pos,u.pos);const N=b?[{type:l,attrs:v},{type:b,attrs:w}]:[{type:l,attrs:v}];if(!qo(n.doc,c.pos,2))return!1;if(r){const{selection:_,storedMarks:E}=s,{splittableMarks:k}=a.extensionManager,C=E||_.$to.parentOffset&&_.$from.marks();if(n.split(c.pos,2,N).scrollIntoView(),!C||!r)return!0;const A=C.filter(L=>k.includes(L.type.name));n.ensureMarks(A)}return!0};function Z3(t){return!t||t==="1"?null:t}function PD(t,e){return Z3(t)===Z3(e)}const zw=(t,e)=>{const n=Db(a=>a.type===e)(t.selection);if(!n)return!0;const s=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(s===void 0)return!0;const r=t.doc.nodeAt(s);return!(n.node.type===r?.type&&pc(t.doc,n.pos))||!PD(n.node.attrs.type,r?.attrs.type)||t.join(n.pos),!0},Fw=(t,e)=>{const n=Db(a=>a.type===e)(t.selection);if(!n)return!0;const s=t.doc.resolve(n.start).after(n.depth);if(s===void 0)return!0;const r=t.doc.nodeAt(s);return!(n.node.type===r?.type&&pc(t.doc,s))||!PD(n.node.attrs.type,r?.attrs.type)||t.join(s),!0};function IK(t){const e=t.doc,n=e.firstChild;if(!n)return null;const s=e.resolve(1),r=e.resolve(n.nodeSize-1);return Ue.between(s,r)}const PK=(t,e,n,s={})=>({editor:r,tr:a,state:l,dispatch:c,chain:u,commands:f,can:m})=>{const{extensions:g,splittableMarks:x}=r.extensionManager,b=zi(t,l.schema),v=zi(e,l.schema),{selection:w,storedMarks:N}=l,{$from:_,$to:E}=w,k=_.blockRange(E),C=N||w.$to.parentOffset&&w.$from.marks();if(!k)return!1;const A=Db(U=>Bw(U.type.name,g))(w),L=w.from===0&&w.to===l.doc.content.size,M=l.doc.content.content,O=M.length===1?M[0]:null,P=L&&O&&Bw(O.type.name,g)?{node:O,pos:0}:null,H=A??P,V=!!A&&k.depth>=1&&k.depth-A.depth<=1,F=!!P;if((V||F)&&H){if(H.node.type===b)return L&&F?u().command(({tr:U,dispatch:q})=>{const ae=IK(U);return ae?(U.setSelection(ae),q&&q(U),!0):!1}).liftListItem(v).run():f.liftListItem(v);if(Bw(H.node.type.name,g)&&b.validContent(H.node.content))return u().command(()=>(a.setNodeMarkup(H.pos,b),!0)).command(()=>zw(a,b)).command(()=>Fw(a,b)).run()}return!n||!C||!c?u().command(()=>m().wrapInList(b,s)?!0:f.clearNodes()).wrapInList(b,s).command(()=>zw(a,b)).command(()=>Fw(a,b)).run():u().command(()=>{const U=m().wrapInList(b,s),q=C.filter(ae=>x.includes(ae.type.name));return a.ensureMarks(q),U?!0:f.clearNodes()}).wrapInList(b,s).command(()=>zw(a,b)).command(()=>Fw(a,b)).run()},BK=(t,e={},n={})=>({state:s,commands:r})=>{const{extendEmptyMarkRange:a=!1}=n,l=rl(t,s.schema);return CN(s,l,e)?r.unsetMark(l,{extendEmptyMarkRange:a}):r.setMark(l,e)},zK=(t,e,n={})=>({state:s,commands:r})=>{const a=zi(t,s.schema),l=zi(e,s.schema),c=Qo(s,a,n);let u;return s.selection.$anchor.sameParent(s.selection.$head)&&(u=s.selection.$anchor.parent.attrs),c?r.setNode(l,u):r.setNode(a,{...u,...n})},FK=(t,e={})=>({state:n,commands:s})=>{const r=zi(t,n.schema);return Qo(n,r,e)?s.lift(r):s.wrapIn(r,e)},HK=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let s=0;s<n.length;s+=1){const r=n[s];let a;if(r.spec.isInputRules&&(a=r.getState(t))){if(e){const l=t.tr,c=a.transform;for(let u=c.steps.length-1;u>=0;u-=1)l.step(c.steps[u].invert(c.docs[u]));if(a.text){const u=l.doc.resolve(a.from).marks();l.replaceWith(a.from,a.to,t.schema.text(a.text,u))}else l.delete(a.from,a.to)}return!0}}return!1},$K=(t={})=>({tr:e,dispatch:n,editor:s})=>{const{ignoreClearable:r=!1}=t,{selection:a}=e,{empty:l,ranges:c}=a;if(l)return!0;const{nonClearableMarks:u}=s.extensionManager;if(n){const f=Object.values(s.schema.marks).filter(m=>r||!u.includes(m.name));
92c.forEach(m=>{for(const g of f)e.removeMark(m.$from.pos,m.$to.pos,g)})}return!0},UK=(t,e={})=>({tr:n,state:s,dispatch:r})=>{const{extendEmptyMarkRange:a=!1}=e,{selection:l}=n,c=rl(t,s.schema),{$from:u,empty:f,ranges:m}=l;if(!r)return!0;if(f&&a){var g;let{from:x,to:b}=l;const v=N_(u,c,(g=u.marks().find(w=>w.type===c))===null||g===void 0?void 0:g.attrs);v&&(x=v.from,b=v.to),n.removeMark(x,b,c)}else m.forEach(x=>{n.removeMark(x.$from.pos,x.$to.pos,c)});return n.removeStoredMark(c),!0},WK=t=>({tr:e,state:n,dispatch:s})=>{const{selection:r}=n;let a,l;return typeof t=="number"?(a=t,l=t):t&&"from"in t&&"to"in t?(a=t.from,l=t.to):(a=r.from,l=r.to),s&&e.doc.nodesBetween(a,l,(c,u)=>{if(c.isText)return;const f={...c.attrs};delete f.dir,e.setNodeMarkup(u,void 0,f)}),!0},VK=(t,e={})=>({tr:n,state:s,dispatch:r})=>{let a=null,l=null;const c=Ob(typeof t=="string"?t:t.name,s.schema);if(!c)return!1;c==="node"&&(a=zi(t,s.schema)),c==="mark"&&(l=rl(t,s.schema));let u=!1;return n.selection.ranges.forEach(f=>{const m=f.$from.pos,g=f.$to.pos;let x,b,v,w;n.selection.empty?s.doc.nodesBetween(m,g,(N,_)=>{a&&a===N.type&&(u=!0,v=Math.max(_,m),w=Math.min(_+N.nodeSize,g),x=_,b=N)}):s.doc.nodesBetween(m,g,(N,_)=>{_<m&&a&&a===N.type&&(u=!0,v=Math.max(_,m),w=Math.min(_+N.nodeSize,g),x=_,b=N),_>=m&&_<=g&&(a&&a===N.type&&(u=!0,r&&n.setNodeMarkup(_,void 0,{...N.attrs,...e})),l&&N.marks.length&&N.marks.forEach(E=>{if(l===E.type&&(u=!0,r)){const k=Math.max(_,m),C=Math.min(_+N.nodeSize,g);n.addMark(k,C,l.create({...E.attrs,...e}))}}))}),b&&(x!==void 0&&r&&n.setNodeMarkup(x,void 0,{...b.attrs,...e}),l&&b.marks.length&&b.marks.forEach(N=>{l===N.type&&r&&n.addMark(v,w,l.create({...N.attrs,...e}))}))}),u},Ou=new Fn("__tiptap_decorations__"),GK=t=>({tr:e,dispatch:n})=>(n&&e.setMeta(Ou,{type:"force",name:t}),!0),qK=(t,e={})=>({state:n,dispatch:s})=>{const r=zi(t,n.schema);return bV(r,e)(n,s)},KK=(t,e={})=>({state:n,dispatch:s})=>{const r=zi(t,n.schema);return vV(r,e)(n,s)};var YK=hW({blur:()=>xq,clearContent:()=>yq,clearNodes:()=>bq,command:()=>vq,createParagraphNear:()=>wq,cut:()=>Nq,deleteCurrentNode:()=>Sq,deleteNode:()=>_q,deleteRange:()=>jq,deleteSelection:()=>Cq,enter:()=>Tq,exitCode:()=>Aq,extendMarkRange:()=>Mq,first:()=>Rq,focus:()=>Dq,forEach:()=>Lq,insertContent:()=>Iq,insertContentAt:()=>Pq,insertDefaultBlock:()=>Bq,joinBackward:()=>Hq,joinDown:()=>Fq,joinForward:()=>$q,joinItemBackward:()=>Uq,joinItemForward:()=>Wq,joinTextblockBackward:()=>Vq,joinTextblockForward:()=>Gq,joinUp:()=>zq,keyboardShortcut:()=>Kq,lift:()=>Yq,liftEmptyBlock:()=>Xq,liftListItem:()=>Zq,newlineInCode:()=>Jq,resetAttributes:()=>Qq,scrollIntoView:()=>eK,selectAll:()=>tK,selectNodeBackward:()=>nK,selectNodeForward:()=>iK,selectParentNode:()=>sK,selectTextblockEnd:()=>rK,selectTextblockStart:()=>aK,setContent:()=>oK,setMark:()=>kK,setMeta:()=>CK,setNode:()=>TK,setNodeSelection:()=>AK,setTextDirection:()=>MK,setTextSelection:()=>RK,sinkListItem:()=>OK,splitBlock:()=>DK,splitListItem:()=>LK,toggleList:()=>PK,toggleMark:()=>BK,toggleNode:()=>zK,toggleWrap:()=>FK,undoInputRule:()=>HK,unsetAllMarks:()=>$K,unsetMark:()=>UK,unsetTextDirection:()=>WK,updateAttributes:()=>VK,updateDecorations:()=>GK,wrapIn:()=>qK,wrapInList:()=>KK});const Pf=new WeakMap;function XK(t,e){var n;Pf.set(t,((n=Pf.get(t))!==null&&n!==void 0?n:0)+1);try{return e()}finally{var s;const r=((s=Pf.get(t))!==null&&s!==void 0?s:1)-1;r>0?Pf.set(t,r):Pf.delete(t)}}var ZK=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(s=>s.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(s=>s!==e):delete this.callbacks[t]),this}once(t,e){const n=(...s)=>{this.off(t,n),e.apply(this,s)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}};function JK(t){return t.kind==="widget"}function BD(t,e){const n=[],s=new Set;for(const r of t)r.kind==="widget"&&JK(r)&&s.add(r.key),n.push(r.toPMDecoration(e));return{decorations:n,widgetKeys:s}}function QK(t,e,n){const{decorations:s,widgetKeys:r}=BD(e,n);return{set:Ot.create(t,s),widgetKeys:r}}function zD({position:t,from:e,to:n,docSize:s}){return t<e?!1:t<n?!0:t===n&&n===s}function eY({decorations:t,from:e,to:n,docSize:s,extensionName:r,warnedExtensions:a}){return t.filter(l=>zD({position:l.anchor,from:e,to:n,docSize:s})?!0:(l.anchor===n||a.has(r)||(a.add(r),console.warn(`[tiptap warn]: Extension "${r}" returned a decoration outside the requested range [${e}, ${n}). It was ignored.`)),!1))}function tY(t){var e;const n=(e=t.spec)===null||e===void 0?void 0:e.key;return typeof n=="string"?n:void 0}function FD(t){return t.jsonID==="attr"}function nY(t){let e=!1;
92if(t.getMap().forEach(()=>{e=!0}),e||FD(t))return!0;const n=t;return typeof n.from=="number"&&typeof n.to=="number"}function iY(t,e){let n=null,s=0,r=0;for(let a=0;a<t.childCount&&!(r>e.to);a+=1){const l=r+t.child(a).nodeSize;l>=e.from&&(n===null&&(n=r),s=l),r=l}return n===null?null:{from:n,to:s}}function sY(t,e){if(t.steps.some(a=>!nY(a)))return{type:"full"};const n=Lb(t).map(({newRange:a})=>a);t.steps.forEach((a,l)=>{if(!FD(a))return;const c=t.mapping.slice(l);n.push({from:c.map(a.pos,-1),to:c.map(a.pos+1)})});const s=[];for(const a of n){const l=iY(e,a);l&&s.push(l)}s.sort((a,l)=>a.from-l.from);const r=[];for(const a of s){const l=r[r.length-1];l&&a.from<=l.to?l.to=Math.max(l.to,a.to):r.push({...a})}return{type:"ranges",ranges:r}}function HD(t,e,n,s){return t.map(e,n,{onRemove:r=>{const a=r?.key;typeof a=="string"&&s.delete(a)}})}function rY(t,e,n){var s,r;const a=(s=e.decorationSetsByExtension[t])!==null&&s!==void 0?s:Ot.empty,l=new Set((r=e.widgetKeysByExtension[t])!==null&&r!==void 0?r:[]);return{set:HD(a,n.mapping,n.doc,l),widgetKeys:l}}function J3(t,e){const n=Object.values(e).flatMap(s=>s.find());return Ot.create(t,n)}function Q3(t){const e=new Set;for(const n of Object.values(t))for(const s of n)e.add(s);return e}function aY(t,e){var n;switch((n=e.update)!==null&&n!==void 0?n:"document"){case"document":if(e.createInRange)throw new Error(`[tiptap error]: Extension "${t}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case"changedRanges":if(!e.createInRange)throw new Error(`[tiptap error]: Extension "${t}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case"manual":if(e.createInRange)throw new Error(`[tiptap error]: Extension "${t}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(e.shouldUpdate)throw new Error(`[tiptap error]: Extension "${t}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw new Error(`[tiptap error]: Extension "${t}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function oY(t,e,n){return n?!0:t.update==="manual"?!1:t.shouldUpdate?t.shouldUpdate(e):e.tr.docChanged}const lY=new Set;var cY=class{constructor(t){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{const n=Ou.getState(e);n&&this.warnDuplicateWidgetKeys(n)},this.editor=t.editor,this.entries=this.resolveEntries(t.entries),this.entries.forEach(({name:e,spec:n})=>aY(e,n)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on("beforeTransaction",this.handleBeforeTransaction)}destroy(){this.editor.off("beforeTransaction",this.handleBeforeTransaction)}liveWidgetKeys(){var t,e;return(t=(e=Ou.getState(this.editor.state))===null||e===void 0?void 0:e.widgetKeys)!==null&&t!==void 0?t:lY}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(t){const e=[];for(const{name:n,addDecorations:s}of t){const r=s();r&&e.push({name:n,spec:r})}return e}createPlugin(){const{editor:t,entries:e}=this;return new ln({key:Ou,state:{init:(n,s)=>{const r={},a={};for(const{name:c,spec:u}of e){const{set:f,widgetKeys:m}=this.buildFullSet(c,u,s);r[c]=f,a[c]=m}const l={decorationSetsByExtension:r,widgetKeysByExtension:a,mergedDecorationSet:this.buildMergedSet(s.doc,r),widgetKeys:Q3(a)};return this.warnDuplicateWidgetKeys(l),l},apply:(n,s,r,a)=>{const l=n.getMeta(Ou),c=l?.type==="force"&&!l.name,u=l?.type==="force"?l.name:void 0,f={},m={},g=new Set;return XK(t,()=>{for(const{name:x,spec:b}of e){const v=c||u===x;if(oY(b,{editor:t,tr:n,oldState:r,newState:a},v))if(b.update==="changedRanges"&&n.docChanged&&!v){const w=this.applyChangedRangesRecompute(x,b,s,n,a);f[x]=w.set,m[x]=w.widgetKeys,g.add(x)}else{const{set:w,widgetKeys:N}=this.buildFullSet(x,b,a);f[x]=w,m[x]=N,g.add(x)}else{const w=rY(x,s,n);f[x]=w.set,m[x]=w.widgetKeys}}}),g.size===0&&!n.docChanged?s:{decorationSetsByExtension:f,widgetKeysByExtension:m,mergedDecorationSet:this.mergeAfterApply({entries:e,previous:s,tr:n,decorationSetsByExtension:f,recomputedNames:g}),widgetKeys:Q3(m)}}},props:{decorations(n){var s,r;return(s=(r=Ou.getState(n))===null||r===void 0?void 0:r.mergedDecorationSet)!==null&&s!==void 0?s:Ot.empty}}})}applyChangedRangesRecompute(t,e,n,s,r){const a=sY(s,r.doc);return a.type==="full"?this.buildFullSet(t,e,r):this.rebuildRanges(t,e,n,s,r,a.ranges)}rebuildRanges(t,e,n,s,r,a){var l,c;const u=(l=n.decorationSetsByExtension[t])!==null&&l!==void 0?l:Ot.empty,f=new Set((c=n.widgetKeysByExtension[t])!==null&&c!==void 0?c:[]);let m=HD(u,s.mapping,s.doc,f);const g=r.doc.content.size;
92for(const{from:x,to:b}of a){const v=m.find(x,b).filter(_=>zD({position:_.from,from:x,to:b,docSize:g}));for(const _ of v){const E=tY(_);E&&f.delete(E)}m=m.remove(v);const{decorations:w,widgetKeys:N}=BD(eY({decorations:this.runCreate(t,"createInRange",()=>e.createInRange({editor:this.editor,state:r,view:this.mountedView,from:x,to:b})),from:x,to:b,docSize:g,extensionName:t,warnedExtensions:this.warnedOutOfRangeExtensions}),t);m=m.add(r.doc,w);for(const _ of N)f.add(_)}return{set:m,widgetKeys:f}}buildFullSet(t,e,n){const s=this.runCreate(t,"create",()=>e.create({editor:this.editor,state:n,view:this.mountedView}));return QK(n.doc,s,t)}runCreate(t,e,n){try{return n()}catch(s){return console.error(`[tiptap error]: Extension "${t}" threw in \`addDecorations().${e}()\`. Its decorations were dropped for this update.`,s),[]}}warnDuplicateWidgetKeys(t){}buildMergedSet(t,e){const n=Object.keys(e);return n.length===1?e[n[0]]:J3(t,e)}mergeAfterApply({entries:t,previous:e,tr:n,decorationSetsByExtension:s,recomputedNames:r}){return t.length===1?s[t[0].name]:r.size===0?e.mergedDecorationSet.map(n.mapping,n.doc):J3(n.doc,s)}};function dY(t,e){const{selection:n}=t,{$from:s}=n;if(n instanceof Ye){const a=s.index();return s.parent.canReplaceWith(a,a+1,e)}let r=s.depth;for(;r>=0;){const a=s.index(r);if(s.node(r).contentMatchAt(a).matchType(e))return!0;r-=1}return!1}function uY(t,e,n){const s=document.querySelector("style[data-tiptap-style]");if(s!==null)return s;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}function Ah(t,e){const n=t.getAttribute("style");if(!n)return null;const s=n.split(";").map(a=>a.trim()).filter(Boolean),r=e.toLowerCase();for(let a=s.length-1;a>=0;a-=1){const l=s[a],c=l.indexOf(":");if(c!==-1&&l.slice(0,c).trim().toLowerCase()===r)return l.slice(c+1).trim()}return null}function hY(t){return typeof t=="number"}function fY(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ex(t){return fY(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function eM(t,e,n){const s=t.split(` 93`),r=[];let a="",l=0;const c=e.baseIndentSize||2;for(;l<s.length;){const m=s[l],g=m.match(e.itemPattern);if(!g){if(r.length>0)break;if(m.trim()===""){l+=1,a=`${a}${m} 94`;continue}else return}const x=e.extractItemData(g),{indentLevel:b,mainContent:v}=x;a=`${a}${m} 95`;const w=[v];for(l+=1;l<s.length;){var u;const k=s[l];if(k.trim()===""){var f;const C=s.slice(l+1).findIndex(A=>A.trim()!=="");if(C===-1)break;if((((f=s[l+1+C].match(/^(\s*)/))===null||f===void 0||(f=f[1])===null||f===void 0?void 0:f.length)||0)>b){w.push(k),a=`${a}${k} 96`,l+=1;continue}else break}if((((u=k.match(/^(\s*)/))===null||u===void 0||(u=u[1])===null||u===void 0?void 0:u.length)||0)>b)w.push(k),a=`${a}${k} 97`,l+=1;else break}let N;const _=w.slice(1);if(_.length>0){const k=_.map(C=>C.slice(b+c)).join(` 98`);k.trim()&&(e.customNestedParser?N=e.customNestedParser(k):N=n.blockTokens(k))}const E=e.createToken(x,N);r.push(E)}if(r.length!==0)return{items:r,raw:a}}const tM=4;function nM(t){let e=0;for(const n of t)e=n===" "?e+tM-e%tM:e+1;return e}function $D(t,e,n,s,r){if(!t||!Array.isArray(t.content))return"";const a=typeof n=="function"?n(s):n,[l,...c]=t.content;let u=`${a}${e.renderChildren([l])}`;return c&&c.length>0&&c.forEach((f,m)=>{var g,x;const b=(g=(x=e.renderChild)===null||x===void 0?void 0:x.call(e,f,m+1))!==null&&g!==void 0?g:e.renderChildren([f]);if(b!=null){const v=N=>{if(!r?.alignNestedToPrefix)return e.indent(N);const _=e.indent(""),E=nM(a);return(nM(_)>=E?_:" ".repeat(E))+N},w=b.split(` 99`).map(N=>v(N||"")).join(` 100`);u+=f.type==="paragraph"?` 101 102${w}`:` 103${w}`}}),u}function UD(t,e){const n={...t};return Ex(t)&&Ex(e)&&Object.keys(e).forEach(s=>{Ex(e[s])&&Ex(t[s])?n[s]=UD(t[s],e[s]):n[s]=e[s]}),n}function mY(t,e,n={}){const{state:s}=e,{doc:r,tr:a}=s,l=t;r.descendants((c,u)=>{const f=a.mapping.map(u),m=a.mapping.map(u)+c.nodeSize;let g=null;if(c.marks.forEach(b=>{if(b!==l)return!1;g=b}),!g)return;let x=!1;
103if(Object.keys(n).forEach(b=>{n[b]!==g.attrs[b]&&(x=!0)}),x){const b=t.type.create({...t.attrs,...n});a.removeMark(f,m,t.type),a.addMark(f,m,b)}}),a.docChanged&&e.view.dispatch(a)}var Fp=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!==null&&e!==void 0?e:!0}};const pY=(t,e)=>{if(w_(e))return e.exec(t);const n=e(t);if(!n)return null;const s=[n.text];return s.index=n.index,s.input=t,s.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),s.push(n.replaceWith)),s};function kx(t){var e;const{editor:n,from:s,to:r,text:a,rules:l,plugin:c}=t,{view:u}=n;if(u.composing)return!1;const f=u.state.doc.resolve(s);if(f.parent.type.spec.code||!((e=f.nodeBefore||f.nodeAfter)===null||e===void 0)&&e.marks.find(x=>x.type.spec.code))return!1;let m=!1;const g=vK(f)+a;return l.forEach(x=>{if(m)return;const b=pY(g,x.find);if(!b)return;const v=b[0].length-a.length;if(v>0){const A=f.parentOffset-v;if(A<0||f.parent.textBetween(A,f.parentOffset)!==b[0].slice(0,v))return}const w=u.state.tr,N=Rb({state:u.state,transaction:w}),_={from:s-(b[0].length-a.length),to:r},{commands:E,chain:k,can:C}=new Zu({editor:n,state:N});x.handler({state:N,range:_,match:b,commands:E,chain:k,can:C})===null||!w.steps.length||(x.undoable&&w.setMeta(c,{transform:w,from:s,to:r,text:a}),u.dispatch(w),m=!0)}),m}function gY(t){const{editor:e,rules:n}=t,s=new ln({state:{init(){return null},apply(r,a,l){const c=r.getMeta(s);if(c)return c;const u=r.getMeta("applyInputRules");return u&&setTimeout(()=>{let{text:f}=u;typeof f=="string"?f=f:f=__(be.from(f),l.schema);const{from:m}=u,g=m+f.length;kx({editor:e,from:m,to:g,text:f,rules:n,plugin:s})}),r.selectionSet||r.docChanged?null:a}},props:{handleTextInput(r,a,l,c){return kx({editor:e,from:a,to:l,text:c,rules:n,plugin:s})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:a}=r.state.selection;a&&kx({editor:e,from:a.pos,to:a.pos,text:"",rules:n,plugin:s})}),!1)},handleKeyDown(r,a){if(a.key!=="Enter")return!1;const{$cursor:l}=r.state.selection;return l?kx({editor:e,from:l.pos,to:l.pos,text:` 104`,rules:n,plugin:s}):!1}},isInputRules:!0});return s}var E_=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...Ut(We(this,"addOptions",{name:this.name}))}}get storage(){return{...Ut(We(this,"addStorage",{name:this.name,options:this.options}))}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>UD(this.options,t)});return e.name=this.name,e.parent=this.parent,this.child=null,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},al=class WD extends E_{constructor(...e){super(...e),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new WD(n)}static handleExit({editor:e,mark:n}){const{tr:s}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const a=r.marks();if(!a.find(c=>
vendor: 4,363 bytes, line 104
104c?.type.name===n.name))return!1;const l=a.find(c=>c?.type.name===n.name);return l&&s.removeStoredMark(l),s.insertText(" ",r.pos),e.view.dispatch(s),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},VD=class{constructor(t){this.find=t.find,this.handler=t.handler}};const xY=(t,e,n)=>{if(w_(e))return[...t.matchAll(e)];const s=e(t,n);return s?s.map(r=>{const a=[r.text];return a.index=r.index,a.input=t,a.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),a.push(r.replaceWith)),a}):[]};function yY(t){const{editor:e,state:n,from:s,to:r,rule:a,pasteEvent:l,dropEvent:c}=t,{commands:u,chain:f,can:m}=new Zu({editor:e,state:n}),g=[];return n.doc.nodesBetween(s,r,(x,b)=>{var v,w,N,_;if(!((v=x.type)===null||v===void 0||(v=v.spec)===null||v===void 0)&&v.code||!(x.isText||x.isTextblock||x.isInline))return;const E=(w=(N=(_=x.content)===null||_===void 0?void 0:_.size)!==null&&N!==void 0?N:x.nodeSize)!==null&&w!==void 0?w:0,k=Math.max(s,b),C=Math.min(r,b+E);if(k>=C)return;const A=x.isText?x.text||"":x.textBetween(k-b,C-b,void 0,"");xY(A,a.find,l).forEach(L=>{if(L.index===void 0)return;const M=k+L.index+1,O=M+L[0].length,P={from:n.tr.mapping.map(M),to:n.tr.mapping.map(O)},H=a.handler({state:n,range:P,match:L,commands:u,chain:f,can:m,pasteEvent:l,dropEvent:c});g.push(H)})}),g.every(x=>x!==null)}let Cx=null;const bY=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function vY(t){const{editor:e,rules:n}=t;let s=null,r=!1,a=!1,l=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,c;try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}const u=({state:f,from:m,to:g,rule:x,pasteEvt:b})=>{const v=f.tr,w=Rb({state:f,transaction:v});if(!(!yY({editor:e,state:w,from:Math.max(m-1,0),to:g.b-1,rule:x,pasteEvent:b,dropEvent:c})||!v.steps.length)){try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}return l=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,v}};return n.map(f=>new ln({view(m){const g=b=>{var v;s=!((v=m.dom.parentElement)===null||v===void 0)&&v.contains(b.target)?m.dom.parentElement:null,s&&(Cx=e)},x=()=>{Cx&&(Cx=null)};return window.addEventListener("dragstart",g),window.addEventListener("dragend",x),{destroy(){window.removeEventListener("dragstart",g),window.removeEventListener("dragend",x)}}},props:{handleDOMEvents:{drop:(m,g)=>{if(a=s===m.dom.parentElement,c=g,!a){const x=Cx;x?.isEditable&&setTimeout(()=>{const b=x.state.selection;b&&x.commands.deleteRange({from:b.from,to:b.to})},10)}return!1},paste:(m,g)=>{var x;const b=(x=g.clipboardData)===null||x===void 0?void 0:x.getData("text/html");return l=g,r=!!b?.includes("data-pm-slice"),!1}}},appendTransaction:(m,g,x)=>{const b=m[0],v=b.getMeta("uiEvent")==="paste"&&!r,w=b.getMeta("uiEvent")==="drop"&&!a,N=b.getMeta("applyPasteRules"),_=!!N;if(!v&&!w&&!_)return;if(_){let{text:C}=N;typeof C=="string"?C=C:C=__(be.from(C),x.schema);const{from:A}=N,L=A+C.length,M=bY(C);return u({rule:f,state:x,from:A,to:{b:L},pasteEvt:M})}const E=g.doc.content.findDiffStart(x.doc.content),k=g.doc.content.findDiffEnd(x.doc.content);if(!(!hY(E)||!k||E===k.b))return u({rule:f,state:x,from:E,to:k,pasteEvt:l})}}))}var Ib=class{constructor(t,e){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=e,this.baseExtensions=t,this.extensions=AD(t),this.schema=hK(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n=We(e,"addCommands",{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:vu(e.name,this.schema)});return n?{...t,...n()}:t},{})}get plugins(){const{editor:t}=this,e=vm([...this.extensions].reverse()).flatMap(s=>{const r={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:t,type:vu(s.name,this.schema)},a=[],l=We(s,"addKeyboardShortcuts",r);let c={};if(s.type==="mark"&&We(s,"exitable",r)&&(c.ArrowRight=()=>al.handleExit({editor:t,mark:s})),l){const x=Object.fromEntries(Object.entries(l()).map(([b,v])=>[b,()=>v({editor:t})]));c={...c,...x}}const u=gq(c);a.push(u);const f=We(s,"addInputRules",r);
104if(Y3(s,t.options.enableInputRules)&&f){const x=f();if(x&&x.length){const b=gY({editor:t,rules:x}),v=Array.isArray(b)?b:[b];a.push(...v)}}const m=We(s,"addPasteRules",r);if(Y3(s,t.options.enablePasteRules)&&m){const x=m();if(x&&x.length){const b=vY({editor:t,rules:x});a.push(...b)}}const g=We(s,"addProseMirrorPlugins",r);if(g){const x=g();a.push(...x)}return a}),n=this.createDecorationPlugin();return n&&e.push(n),e}createDecorationPlugin(){var t;const{editor:e}=this;(t=this.decorationManager)===null||t===void 0||t.destroy();const n=[];return this.extensions.forEach(s=>{const r=We(s,"addDecorations",{name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:e,type:vu(s.name,this.schema)});r&&n.push({name:s.name,addDecorations:r})}),this.decorationManager=new cY({editor:e,entries:n}),this.decorationManager.plugin}get attributes(){return TD(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=dh(this.extensions);return Object.fromEntries(e.filter(n=>!!We(n,"addNodeView")).map(n=>{const s=this.attributes.filter(c=>c.type===n.name),r=We(n,"addNodeView",{name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:zi(n.name,this.schema)});if(!r)return[];const a=r();if(!a)return[];const l=(c,u,f,m,g)=>{const x=uh(c,s);return a({node:c,view:u,getPos:f,decorations:m,innerDecorations:g,editor:t,extension:n,HTMLAttributes:x})};return[n.name,l]}))}dispatchTransaction(t){const{editor:e}=this;return vm([...this.extensions].reverse()).reduceRight((n,s)=>{const r={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:e,type:vu(s.name,this.schema)},a=We(s,"dispatchTransaction",r);return a?l=>{a.call(r,{transaction:l,next:n})}:n},t)}transformPastedHTML(t){const{editor:e}=this;return vm([...this.extensions]).reduce((n,s)=>{const r={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:e,type:vu(s.name,this.schema)},a=We(s,"transformPastedHTML",r);return a?(l,c)=>{const u=n(l,c);return a.call(r,u)}:n},t||(n=>n))}get markViews(){const{editor:t}=this,{markExtensions:e}=dh(this.extensions);return Object.fromEntries(e.filter(n=>!!We(n,"addMarkView")).map(n=>{const s=this.attributes.filter(l=>l.type===n.name),r=We(n,"addMarkView",{name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:rl(n.name,this.schema)});if(!r)return[];const a=(l,c,u)=>{const f=uh(l,s);return r()({mark:l,view:c,inline:u,editor:t,extension:n,HTMLAttributes:f,updateAttributes:m=>{mY(l,t,m)}})};return[n.name,a]}))}destroy(){var t;(t=this.decorationManager)===null||t===void 0||t.destroy(),this.extensions.forEach(e=>{let n=e;for(;n.parent;){const s=n.parent;s.child===n&&(s.child=null),n=s}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:vu(e.name,this.schema)};if(e.type==="mark"){var s,r;(!((s=Ut(We(e,"keepOnSplit",n)))!==null&&s!==void 0)||s)&&this.splittableMarks.push(e.name),!((r=Ut(We(e,"clearable",n)))!==null&&r!==void 0)||r||this.nonClearableMarks.push(e.name)}const a=We(e,"onBeforeCreate",n),l=We(e,"onCreate",n),c=We(e,"onUpdate",n),u=We(e,"onSelectionUpdate",n),f=We(e,"onTransaction",n),m=We(e,"onFocus",n),g=We(e,"onBlur",n),x=We(e,"onDestroy",n);a&&this.editor.on("beforeCreate",a),l&&this.editor.on("create",l),c&&this.editor.on("update",c),u&&this.editor.on("selectionUpdate",u),f&&this.editor.on("transaction",f),m&&this.editor.on("focus",m),g&&this.editor.on("blur",g),x&&this.editor.on("destroy",x)})}};Ib.resolve=AD;Ib.sort=vm;Ib.flatten=S_;var Yt=class GD extends E_{constructor(...e){super(...e),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new GD(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};
104const wY=Yt.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new ln({key:new Fn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:s,selection:r}=e,a=RD(n),{blockSeparator:l}=this.options,c={...l!==void 0?{blockSeparator:l}:{},textSerializers:a};return[...r.ranges].sort((u,f)=>u.$from.pos-f.$from.pos).map(({$from:u,$to:f})=>MD(s,{from:u.pos,to:f.pos},c)).join(l??` 105 106`)}}})]}}),NY=Yt.create({name:"commands",addCommands(){return{...YK}}}),SY=Yt.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,s;const r=()=>{var a,l,c;if((a=(l=this.editor.options.coreExtensionOptions)===null||l===void 0||(l=l.delete)===null||l===void 0||(c=l.filterTransaction)===null||c===void 0?void 0:c.call(l,t))!==null&&a!==void 0?a:t.getMeta("y-sync$"))return;const u=kD(t.before,[t,...e]);Lb(u).forEach(m=>{u.mapping.mapResult(m.oldRange.from).deletedAfter&&u.mapping.mapResult(m.oldRange.to).deletedBefore&&u.before.nodesBetween(m.oldRange.from,m.oldRange.to,(g,x)=>{const b=x+g.nodeSize-2,v=m.oldRange.from<=x&&b<=m.oldRange.to;this.editor.emit("delete",{type:"node",node:g,from:x,to:b,newFrom:u.mapping.map(x),newTo:u.mapping.map(b),deletedRange:m.oldRange,newRange:m.newRange,partial:!v,editor:this.editor,transaction:t,combinedTransform:u})})});const f=u.mapping;u.steps.forEach((m,g)=>{if(m instanceof Da){var x,b;const v=f.slice(g).map(m.from,-1),w=f.slice(g).map(m.to),N=f.invert().map(v,-1),_=f.invert().map(w),E=v>0?(x=u.doc.nodeAt(v-1))===null||x===void 0?void 0:x.marks.some(C=>C.eq(m.mark)):!1,k=(b=u.doc.nodeAt(w))===null||b===void 0?void 0:b.marks.some(C=>C.eq(m.mark));this.editor.emit("delete",{type:"mark",mark:m.mark,from:m.from,to:m.to,deletedRange:{from:N,to:_},newRange:{from:v,to:w},partial:!!(k||E),editor:this.editor,transaction:t,combinedTransform:u})}})};!((n=(s=this.editor.options.coreExtensionOptions)===null||s===void 0||(s=s.delete)===null||s===void 0?void 0:s.async)!==null&&n!==void 0)||n?setTimeout(r,0):r()}}),_Y=Yt.create({name:"drop",addProseMirrorPlugins(){return[new ln({key:new Fn("tiptapDrop"),props:{handleDrop:(t,e,n,s)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:s})}}})]}}),jY=Yt.create({name:"editable",addProseMirrorPlugins(){return[new ln({key:new Fn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),EY=new Fn("focusEvents"),kY=Yt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new ln({key:EY,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const s=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(s),!1},blur:(e,n)=>{t.isFocused=!1;const s=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(s),!1}}}})]}}),CY=Yt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:l})=>[()=>l.undoInputRule(),()=>l.command(({tr:c})=>{const{selection:u,doc:f}=c,{empty:m,$anchor:g}=u,{pos:x,parent:b}=g,v=g.parent.isTextblock&&x>0?c.doc.resolve(x-1):g,w=v.parent.type.spec.isolating,N=g.pos-g.parentOffset,_=w&&v.parent.childCount===1?N===g.pos:it.atStart(f).from===x;return!m||!b.type.isTextblock||b.textContent.length||!_||_&&g.parent.type.name==="paragraph"?!1:l.clearNodes()}),()=>l.deleteSelection(),()=>l.joinBackward(),()=>l.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:l})=>[()=>l.deleteSelection(),()=>l.deleteCurrentNode(),()=>l.joinForward(),()=>l.selectNodeForward()]),s={Enter:()=>this.editor.commands.first(({commands:l})=>[()=>l.newlineInCode(),()=>l.createParagraphNear(),()=>l.liftEmptyBlock(),()=>l.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...s},a={...s,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return fy()||jD()?a:r},addProseMirrorPlugins(){return[new ln({key:new Fn("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(b=>b.getMeta("composition")))return;const s=t.some(b=>b.docChanged)&&!e.doc.eq(n.doc),r=t.some(b=>b.getMeta("preventClearDocument"));if(!s||r)return;const{empty:a,from:l,to:c}=e.selection,u=it.atStart(e.doc).from,f=it.atEnd(e.doc).to;
vendor: 13,791 bytes, lines 106-176
106if(a||!(l===u&&c===f)||!zp(n.doc))return;const m=n.tr,g=Rb({state:n,transaction:m}),{commands:x}=new Zu({editor:this.editor,state:g});if(x.clearNodes(),!!m.steps.length)return m}})]}}),TY=Yt.create({name:"paste",addProseMirrorPlugins(){return[new ln({key:new Fn("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),AY=Yt.create({name:"tabindex",addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new ln({key:new Fn("tabindex"),props:{attributes:()=>{var t;return!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(t=this.options.value)!==null&&t!==void 0?t:"0"}}}})]}}),MY=Yt.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=dh(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new ln({key:new Fn("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}});let iM=!1;function RY(t){if(iM)return;iM=!0;let e;try{e=ui.fromJSON(t,{from:0,to:0}).slice.content}catch{return}e instanceof be||console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.")}var OY=class nm{get name(){return this.node.type.name}constructor(e,n,s=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=s,this.resolvedPos=e,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,s=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,s=this.to-1}this.editor.commands.insertContentAt({from:n,to:s},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new nm(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new nm(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new nm(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,s)=>{const r=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,l=n.isInline,c=this.pos+s+(a?0:1);if(c<0||c>this.resolvedPos.doc.nodeSize-2)return;const u=this.resolvedPos.doc.resolve(c);if(!r&&!l&&u.depth<=this.depth)return;const f=new nm(u,this.editor,r,r||l?n:null);r&&(f.actualDepth=this.depth+1),e.push(f)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let s=null,r=this.parent;for(;r&&!s;){if(r.node.type.name===e)if(Object.keys(n).length>0){const a=r.node.attrs,l=Object.keys(n);for(let c=0;c<l.length;c+=1){const u=l[c];if(a[u]!==n[u])break}}else s=r;r=r.parent}return s}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},s=!1){let r=[];if(!this.children||this.children.length===0)return r;const a=Object.keys(n);return this.children.forEach(l=>{s&&r.length>0||(l.node.type.name===e&&a.every(c=>n[c]===l.node.attrs[c])&&r.push(l),!(s&&r.length>0)&&(r=r.concat(l.querySelectorAll(e,n,s))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}};const DY=`.ProseMirror { 107 position: relative; 108} 109 110.ProseMirror { 111 word-wrap: break-word; 112 white-space: pre-wrap; 113 white-space: break-spaces; 114 -webkit-font-variant-ligatures: none; 115 font-variant-ligatures: none; 116 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 117} 118 119.ProseMirror [contenteditable="false"] { 120 white-space: normal; 121} 122 123.ProseMirror [contenteditable="false"] [contenteditable="true"] { 124 white-space: pre-wrap; 125} 126 127.ProseMirror pre { 128 white-space: pre-wrap; 129} 130 131img.ProseMirror-separator { 132 display: inline !important; 133 border: none !important; 134 margin: 0 !important; 135 width: 0 !important; 136 height: 0 !important; 137} 138 139.ProseMirror-gapcursor { 140 display: none; 141 pointer-events: none; 142 position: absolute; 143 margin: 0; 144} 145 146.ProseMirror-gapcursor:after { 147 content: ""; 148 display: block; 149 position: absolute; 150 top: -2px; 151 width: 20px; 152 border-top: 1px solid black; 153 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 154} 155 156@keyframes ProseMirror-cursor-blink { 157 to { 158 visibility: hidden; 159 } 160} 161 162.ProseMirror-hideselection *::selection { 163 background: transparent; 164} 165 166.ProseMirror-hideselection *::-moz-selection { 167 background: transparent; 168} 169 170.ProseMirror-hideselection * { 171 caret-color: transparent; 172} 173 174.ProseMirror-focused .ProseMirror-gapcursor { 175 display: block; 176}`;var LY=class extends ZK{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:_K,createMappablePosition:jK},this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:s,moved:r})=>this.options.onDrop(n,s,r)),this.on("paste",({event:n,slice:s})=>this.options.onPaste(n,s)),this.on("delete",this.options.onDelete);const e=this.createDoc();if(!this.editorState){const n=jN(e,this.options.autofocus);this.editorState=Zc.create({doc:e,schema:this.schema,selection:n||void 0})}RY(this.schema),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;const t=this.editorView.dom;t?.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():Zu.createFakeChain()}can(){return this.commandManager?this.commandManager.can():Zu.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=uY(DY,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){const n=CD(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],s=this.state.reconfigure({plugins:n});return this.view.updateState(s),s}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(r=>{const a=typeof r=="string"?`${r}$`:r.key;n=n.filter(l=>!l.key.startsWith(a))}),e.length===n.length)return;const s=this.state.reconfigure({plugins:n});return this.view.updateState(s),s}createExtensionManager(){var t,e;const n=[...this.options.enableCoreExtensions?[jY,wY.configure({blockSeparator:(t=this.options.coreExtensionOptions)===null||t===void 0||(t=t.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),NY,kY,CY,AY.configure({value:(e=this.options.coreExtensionOptions)===null||e===void 0||(e=e.tabindex)===null||e===void 0?void 0:e.value}),_Y,TY,SY,MY.configure({direction:this.options.textDirection})].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s?.type));this.extensionManager=new Ib(n,this)}createCommandManager(){this.commandManager=new Zu({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=EN(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message))throw e;const n=EN(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=Zc.create({doc:n,schema:this.schema,selection:jN(n,this.options.autofocus)||void 0}),this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(s=>s.name!=="collaboration"),this.createExtensionManager()}}),this.editorState.doc}return t}createView(t){const{editorProps:e,enableExtensionDispatchTransaction:n}=this.options,s=e.dispatchTransaction||this.dispatchTransaction.bind(this),r=n?this.extensionManager.dispatchTransaction(s):s,a=e.transformPastedHTML,l=this.extensionManager.transformPastedHTML(a);this.editorView=new gD(t,{...e,attributes:{role:"textbox",...e?.attributes},dispatchTransaction:r,transformPastedHTML:l,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const c=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(c),this.prependClass(),this.injectCSS();const u=this.view.dom;u.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(f=>{var m;return(m=this.capturedTransaction)===null||m===void 0?void 0:m.step(f)});return}const{state:e,transactions:n}=this.state.applyTransaction(t),s=!this.state.selection.eq(e.selection),r=n.includes(t),a=this.state;
176if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),!r)return;this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:n.slice(1)}),s&&this.emit("selectionUpdate",{editor:this,transaction:t});const l=n.findLast(f=>f.getMeta("focus")||f.getMeta("blur")),c=l?.getMeta("focus"),u=l?.getMeta("blur");c&&this.emit("focus",{editor:this,event:c.event,transaction:l}),u&&this.emit("blur",{editor:this,event:u.event,transaction:l}),!(t.getMeta("preventUpdate")||!n.some(f=>f.docChanged)||a.doc.eq(e.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:n.slice(1)})}getAttributes(t){return OD(this.state,t)}isActive(t,e){const n=typeof t=="string"?t:null,s=typeof t=="string"?e:t;return wK(this.state,n,s)}getJSON(){return this.state.doc.toJSON()}getHTML(){return __(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=` 177 178`,textSerializers:n={}}=t||{};return mK(this.state.doc,{blockSeparator:e,textSerializers:{...RD(this.schema),...n}})}get isEmpty(){return zp(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){var t,e;return(t=(e=this.editorView)===null||e===void 0?void 0:e.isDestroyed)!==null&&t!==void 0?t:!0}$node(t,e){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t),n=t>0&&e.nodeAfter&&!e.nodeAfter.isText&&e.nodeAfter.isAtom?e.nodeAfter:null;return new OY(e,this,!1,n)}get $doc(){return this.$pos(0)}};function cc(t){return new Fp({find:t.find,handler:({state:e,range:n,match:s})=>{const r=Ut(t.getAttributes,void 0,s);if(r===!1||r===null)return null;const{tr:a}=e,l=s[s.length-1],c=s[0];if(l){const u=c.search(/\S/),f=n.from+c.indexOf(l),m=f+l.length;if(j_(n.from,n.to,e.doc).filter(x=>x.mark.type.excluded.find(b=>b===t.type&&b!==x.mark.type)).filter(x=>x.to>f).length)return null;m<n.to&&a.delete(m,n.to),f>n.from&&a.delete(n.from+u,f);const g=n.from+u+l.length;a.addMark(n.from+u,g,t.type.create(r||{})),a.removeStoredMark(t.type)}},undoable:t.undoable})}function qD(t){return new Fp({find:t.find,handler:({state:e,range:n,match:s})=>{const r=Ut(t.getAttributes,void 0,s)||{},{tr:a}=e,l=n.from;let c=n.to;const u=t.type.create(r);if(s[1]){let f=l+s[0].lastIndexOf(s[1]);f>c?f=c:c=f+s[1].length;const m=s[0][s[0].length-1];a.insertText(m,l+s[0].length-1),a.replaceWith(f,c,u)}else if(s[0]){const f=t.type.isInline?l:l-1;a.insert(f,t.type.create(r)).delete(a.mapping.map(l),a.mapping.map(c))}a.scrollIntoView()},undoable:t.undoable})}function TN(t){return new Fp({find:t.find,handler:({state:e,range:n,match:s})=>{const r=e.doc.resolve(n.from),a=Ut(t.getAttributes,void 0,s)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,a)},undoable:t.undoable})}function hh(t){return new Fp({find:t.find,handler:({state:e,range:n,match:s,chain:r})=>{const a=Ut(t.getAttributes,void 0,s)||{},l=e.tr.delete(n.from,n.to),c=l.doc.resolve(n.from).blockRange(),u=c&&s_(c,t.type,a);if(!u)return null;if(l.wrap(c,u),t.keepMarks&&t.editor){const{selection:m,storedMarks:g}=e,{splittableMarks:x}=t.editor.extensionManager,b=g||m.$to.parentOffset&&m.$from.marks();if(b){const v=b.filter(w=>x.includes(w.type.name));l.ensureMarks(v)}}if(t.keepAttributes){const m=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(m,a).run()}const f=l.doc.resolve(n.from-1).nodeBefore;f&&f.type===t.type&&pc(l.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(s,f))&&l.join(n.from-1)},undoable:t.undoable})}const IY=t=>"touches"in t;var PY=class{constructor(t){var e,n,s,r,a,l;this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=c=>{if(!this.isResizing||!this.activeHandle)return;const u=c.clientX-this.startX,f=c.clientY-this.startY;this.handleResize(u,f)},this.handleTouchMove=c=>{if(!this.isResizing||!this.activeHandle)return;const u=c.touches[0];if(!u)return;const f=u.clientX-this.startX,m=u.clientY-this.startY;this.handleResize(f,m)},this.handleMouseUp=()=>
178{if(!this.isResizing)return;const c=this.element.offsetWidth,u=this.element.offsetHeight;this.onCommit(c,u),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=c=>{c.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=c=>{c.key==="Shift"&&(this.isShiftKeyPressed=!1)},this.node=t.node,this.editor=t.editor,this.element=t.element,this.element.draggable=!1,this.contentElement=t.contentElement,this.getPos=t.getPos,this.onResize=t.onResize,this.onCommit=t.onCommit,this.onUpdate=t.onUpdate,!((e=t.options)===null||e===void 0)&&e.min&&(this.minSize={...this.minSize,...t.options.min}),!((n=t.options)===null||n===void 0)&&n.max&&(this.maxSize=t.options.max),!(t==null||(s=t.options)===null||s===void 0)&&s.directions&&(this.directions=t.options.directions),!((r=t.options)===null||r===void 0)&&r.preserveAspectRatio&&(this.preserveAspectRatio=t.options.preserveAspectRatio),!((a=t.options)===null||a===void 0)&&a.className&&(this.classNames={container:t.options.className.container||"",wrapper:t.options.className.wrapper||"",handle:t.options.className.handle||"",resizing:t.options.className.resizing||""}),!((l=t.options)===null||l===void 0)&&l.createCustomHandle&&(this.createCustomHandle=t.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var t;return(t=this.contentElement)!==null&&t!==void 0?t:null}handleEditorUpdate(){const t=this.editor.isEditable;t!==this.lastEditableState&&(this.lastEditableState=t,t?t&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(t,e,n){return t.type!==this.node.type?!1:(this.node=t,this.onUpdate?this.onUpdate(t,e,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const t=document.createElement("div");return t.dataset.resizeContainer="",t.dataset.node=this.node.type.name,t.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(t.className=this.classNames.container),t.appendChild(this.wrapper),t}createWrapper(){const t=document.createElement("div");return t.style.position="relative",t.style.display="block",t.dataset.resizeWrapper="",this.classNames.wrapper&&(t.className=this.classNames.wrapper),t.appendChild(this.element),t}createHandle(t){const e=document.createElement("div");return e.dataset.resizeHandle=t,e.style.position="absolute",this.classNames.handle&&(e.className=this.classNames.handle),e}positionHandle(t,e){const n=e.includes("top"),s=e.includes("bottom"),r=e.includes("left"),a=e.includes("right");n&&(t.style.top="0"),s&&(t.style.bottom="0"),r&&(t.style.left="0"),a&&(t.style.right="0"),(e==="top"||e==="bottom")&&(t.style.left="0",t.style.right="0"),(e==="left"||e==="right")&&(t.style.top="0",t.style.bottom="0")}attachHandles(){this.directions.forEach(t=>{let e;this.createCustomHandle?e=this.createCustomHandle(t):e=this.createHandle(t),e instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${t}") did not return an HTMLElement. Falling back to default handle.`),e=this.createHandle(t)),this.createCustomHandle||this.positionHandle(e,t),e.addEventListener("mousedown",n=>this.handleResizeStart(n,t)),e.addEventListener("touchstart",n=>this.handleResizeStart(n,t)),this.handleMap.set(t,e),this.wrapper.appendChild(e)})}
178removeHandles(){this.handleMap.forEach(t=>t.remove()),this.handleMap.clear()}applyInitialSize(){const t=this.node.attrs.width,e=this.node.attrs.height;t?(this.element.style.width=`${t}px`,this.initialWidth=t):this.initialWidth=this.element.offsetWidth,e?(this.element.style.height=`${e}px`,this.initialHeight=e):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(t,e){t.preventDefault(),t.stopPropagation(),this.isResizing=!0,this.activeHandle=e,IY(t)?(this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY):(this.startX=t.clientX,this.startY=t.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(t,e){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:s,height:r}=this.calculateNewDimensions(this.activeHandle,t,e),a=this.applyConstraints(s,r,n);this.element.style.width=`${a.width}px`,this.element.style.height=`${a.height}px`,this.onResize&&this.onResize(a.width,a.height)}calculateNewDimensions(t,e,n){let s=this.startWidth,r=this.startHeight;const a=t.includes("right"),l=t.includes("left"),c=t.includes("bottom"),u=t.includes("top");return a?s=this.startWidth+e:l&&(s=this.startWidth-e),c?r=this.startHeight+n:u&&(r=this.startHeight-n),(t==="right"||t==="left")&&(s=this.startWidth+(a?e:-e)),(t==="top"||t==="bottom")&&(r=this.startHeight+(c?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(s,r,t):{width:s,height:r}}applyConstraints(t,e,n){var s,r;if(!n){var a,l;let f=Math.max(this.minSize.width,t),m=Math.max(this.minSize.height,e);return!((a=this.maxSize)===null||a===void 0)&&a.width&&(f=Math.min(this.maxSize.width,f)),!((l=this.maxSize)===null||l===void 0)&&l.height&&(m=Math.min(this.maxSize.height,m)),{width:f,height:m}}
178let c=t,u=e;return c<this.minSize.width&&(c=this.minSize.width,u=c/this.aspectRatio),u<this.minSize.height&&(u=this.minSize.height,c=u*this.aspectRatio),!((s=this.maxSize)===null||s===void 0)&&s.width&&c>this.maxSize.width&&(c=this.maxSize.width,u=c/this.aspectRatio),!((r=this.maxSize)===null||r===void 0)&&r.height&&u>this.maxSize.height&&(u=this.maxSize.height,c=u*this.aspectRatio),{width:c,height:u}}applyAspectRatio(t,e,n){const s=n==="left"||n==="right",r=n==="top"||n==="bottom";return s?{width:t,height:t/this.aspectRatio}:r?{width:e*this.aspectRatio,height:e}:{width:t,height:t/this.aspectRatio}}},Qi=class KD extends E_{constructor(...e){super(...e),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new KD(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function el(t){return new VD({find:t.find,handler:({state:e,range:n,match:s,pasteEvent:r})=>{const a=Ut(t.getAttributes,void 0,s,r);if(a===!1||a===null)return null;const{tr:l}=e,c=s[s.length-1],u=s[0];let f=n.to;if(c){const m=u.search(/\S/),g=n.from+u.indexOf(c),x=g+c.length;if(j_(n.from,n.to,e.doc).filter(b=>b.mark.type.excluded.find(v=>v===t.type&&v!==b.mark.type)).filter(b=>b.to>g).length)return null;x<n.to&&l.delete(x,n.to),g>n.from&&l.delete(n.from+m,g),f=n.from+m+c.length,l.addMark(n.from+m,f,t.type.create(a||{})),s.index!==void 0&&s.input!==void 0&&s.index+s[0].length>=s.input.length||l.removeStoredMark(t.type)}}})}const{getOwnPropertyNames:BY,getOwnPropertySymbols:zY}=Object,{hasOwnProperty:FY}=Object.prototype;function Bf(t,e){return function(s,r,a){return t(s,r,a)&&e(s,r,a)}}function zf(t){return function(n,s,r){if(!n||!s||typeof n!="object"||typeof s!="object")return t(n,s,r);const{cache:a}=r,l=a.get(n),c=a.get(s);if(l&&c)return l===s&&c===n;a.set(n,s),a.set(s,n);const u=t(n,s,r);return a.delete(n),a.delete(s),u}}function HY(t){return t?.[Symbol.toStringTag]}function sM(t){return BY(t).concat(zY(t))}const $Y=Object.hasOwn||((t,e)=>FY.call(t,e));function Id(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const UY="__v",WY="__o",VY="_owner",GY=typeof Float16Array<"u",{getOwnPropertyDescriptor:rM,keys:aM}=Object;function qY(t,e){return t.byteLength===e.byteLength&&my(new Uint8Array(t),new Uint8Array(e))}function KY(t,e,n){let s=t.length;if(e.length!==s)return!1;for(;s-- >0;)if(!n.equals(t[s],e[s],s,s,t,e,n))return!1;return!0}function YY(t,e){return t.byteLength===e.byteLength&&my(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function XY(t,e){return Id(t.getTime(),e.getTime())}function oM(t,e,n){return t.name===e.name&&t.message===e.message&&t.stack===e.stack&&n.equals(t.cause,e.cause,"cause","cause",t,e,n)}function ZY(t,e){return t===e}function lM(t,e,n){const s=t.size;if(s!==e.size)return!1;if(!s)return!0;const r=new Array(s),a=t.entries();let l,c,u=0;for(;(l=a.next())&&!l.done;){const f=e.entries();let m=!1,g=0;for(;(c=f.next())&&!c.done;){if(r[g]){g++;continue}const x=l.value,b=c.value;if(n.equals(x[0],b[0],u,g,t,e,n)&&n.equals(x[1],b[1],x[0],b[0],t,e,n)){m=r[g]=!0;break}g++}if(!m)return!1;u++}return!0}const JY=Id;function cM(t,e,n){const s=aM(t);let r=s.length;if(aM(e).length!==r)return!1;for(;r-- >0;)if(!YD(t,e,n,s[r]))return!1;return!0}function wu(t,e,n){const s=sM(t);let r=s.length;if(sM(e).length!==r)return!1;let a,l,c;for(;r-- >0;)if(a=s[r],!YD(t,e,n,a)||(l=rM(t,a),c=rM(e,a),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function QY(t,e){return Id(t.valueOf(),e.valueOf())}function eX(t,e){return t.source===e.source&&t.flags===e.flags}function dM(t,e,n){const s=t.size;if(s!==e.size)return!1;if(!s)return!0;const r=new Array(s),a=t.values();let l,c;for(;(l=a.next())&&!l.done;){const u=e.values();let f=!1,m=0;for(;(c=u.next())&&!c.done;){if(!r[m]&&n.equals(l.value,c.value,l.value,c.value,t,e,n)){f=r[m]=!0;break}m++}if(!f)return!1}return!0}function my(t,e){let n=t.length;if(e.length!==n||t.byteOffset!==e.byteOffset)return!1;if(t instanceof Float64Array||t instanceof Float32Array||GY&&t instanceof Float16Array){for(;n-- >0;)if(t[n]!==e[n]&&(t[n]===t[n]||e[n]===e[n]))return!1;return!0}for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function tX(t,e){return t.href===e.href?!0:t.protocol===e.protocol&&t.username===e.username&&t.password===e.password&&t.host===e.host&&t.pathname===e.pathname&&t.hash===e.hash&&nX(t.searchParams,e.searchParams)}function nX(t,e){const n=t.toString(),s=e.toString();return n===s||uM(n)===uM(s)}function uM(t){return t.split("&").sort().join("&")}function YD(t,e,n,s){return(s===VY||s===WY||s===UY)&&(t.$$typeof||e.$$typeof)?!0:$Y(e,s)&&n.equals(t[s],e[s],s,s,t,e,n)}const iX="[object ArrayBuffer]",sX="[object Arguments]",rX="[object Boolean]",aX="[object DataView]",oX="[object Date]",lX="[object Error]",cX="[object Map]",dX="[object Number]",uX="[object Object]",hX="[object RegExp]",fX="[object Set]",m
178X="[object String]",pX={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},gX="[object URL]",xX=Object.prototype.toString;function yX({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:s,areErrorsEqual:r,areFunctionsEqual:a,areMapsEqual:l,areNumbersEqual:c,areObjectsEqual:u,arePrimitiveWrappersEqual:f,areRegExpsEqual:m,areSetsEqual:g,areTypedArraysEqual:x,areUrlsEqual:b,unknownTagComparators:v}){return function(N,_,E){if(N===_)return!0;if(N==null||_==null)return!1;const k=typeof N;if(k!==typeof _)return!1;if(k!=="object")return k==="number"?c(N,_,E):k==="function"?a(N,_,E):!1;const C=N.constructor;if(C!==_.constructor)return!1;if(C===Object)return u(N,_,E);if(Array.isArray(N))return e(N,_,E);if(C===Date)return s(N,_,E);if(C===RegExp)return m(N,_,E);if(C===Map)return l(N,_,E);if(C===Set)return g(N,_,E);if(C==null)return u(N,_,E);const A=xX.call(N);if(A===oX)return s(N,_,E);if(A===hX)return m(N,_,E);if(A===cX)return l(N,_,E);if(A===fX)return g(N,_,E);if(A===uX)return typeof N.then!="function"&&typeof _.then!="function"&&u(N,_,E);if(A===gX)return b(N,_,E);if(A===lX)return r(N,_,E);if(A===sX)return u(N,_,E);if(pX[A])return x(N,_,E);if(A===iX)return t(N,_,E);if(A===aX)return n(N,_,E);if(A===rX||A===dX||A===mX)return f(N,_,E);if(v){let L=v[A];if(!L){const M=HY(N);M&&(L=v[M])}if(L)return L(N,_,E)}return!1}}function bX({circular:t,createCustomConfig:e,strict:n}){let s={areArrayBuffersEqual:qY,areArraysEqual:n?wu:KY,areDataViewsEqual:YY,areDatesEqual:XY,areErrorsEqual:n?Bf(oM,wu):Bf(oM,cM),areFunctionsEqual:ZY,areMapsEqual:n?Bf(lM,wu):lM,areNumbersEqual:JY,areObjectsEqual:n?wu:cM,arePrimitiveWrappersEqual:QY,areRegExpsEqual:eX,areSetsEqual:n?Bf(dM,wu):dM,areTypedArraysEqual:n?Bf(my,wu):my,areUrlsEqual:tX,unknownTagComparators:void 0};if(e&&(s=Object.assign({},s,e(s))),t){const r=zf(s.areArraysEqual),a=zf(s.areErrorsEqual),l=zf(s.areMapsEqual),c=zf(s.areObjectsEqual),u=zf(s.areSetsEqual);s=Object.assign({},s,{areArraysEqual:r,areErrorsEqual:a,areMapsEqual:l,areObjectsEqual:c,areSetsEqual:u})}return s}function vX(t){return function(e,n,s,r,a,l,c){return t(e,n,c)}}function wX({circular:t,comparator:e,createState:n,equals:s,strict:r}){if(n)return function(c,u){const{cache:f=t?new WeakMap:void 0,meta:m}=n();return e(c,u,{cache:f,equals:s,meta:m,strict:r})};if(t)return function(c,u){return e(c,u,{cache:new WeakMap,equals:s,meta:void 0,strict:r})};const a={cache:void 0,equals:s,meta:void 0,strict:r};return function(c,u){return e(c,u,a)}}const NX=xc();xc({strict:!0});xc({circular:!0});xc({circular:!0,strict:!0});xc({createInternalComparator:()=>Id});xc({strict:!0,createInternalComparator:()=>Id});xc({circular:!0,createInternalComparator:()=>Id});xc({circular:!0,createInternalComparator:()=>Id,strict:!0});function xc(t={}){const{circular:e=!1,createInternalComparator:n,createState:s,strict:r=!1}=t,a=bX(t),l=yX(a),c=n?n(l):vX(l);return wX({circular:e,comparator:l,createState:s,equals:c,strict:r})}var Hw={exports:{}},$w={};/** 179 * @license React 180 * use-sync-external-store-shim/with-selector.production.js 181 * 182 * Copyright (c) Meta Platforms, Inc. and affiliates. 183 * 184 * This source code is licensed under the MIT license found in the 185 * LICENSE file in the root directory of this source tree. 186 */var hM;function SX(){if(hM)return $w;hM=1;var t=Ba(),e=a5();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var s=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,a=t.useRef,l=t.useEffect,c=t.useMemo,u=t.useDebugValue;return $w.useSyncExternalStoreWithSelector=function(f,m,g,x,b){var v=a(null);if(v.current===null){var w={hasValue:!1,value:null};v.current=w}else w=v.current;v=c(function(){function _(L){if(!E){if(E=!0,k=L,L=x(L),b!==void 0&&w.hasValue){var M=w.value;if(b(M,L))return C=M}return C=L}if(M=C,s(k,L))return M;var O=x(L);return b!==void 0&&b(M,O)?(k=L,M):(k=L,C=O)}var E=!1,k,C,A=g===void 0?null:g;return[function(){return _(m())},A===null?void 0:function(){return _(A())}]},[m,g,x,b]);var N=r(f,v[0],v[1]);return l(function(){w.hasValue=!0,w.value=N},[N]),u(N),N},$w}var fM;function _X(){return fM||(fM=1,Hw.exports=SX()),Hw.exports}var jX=_X();const EX=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},kX=({contentComponent:t})=>{const e=KS.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return o.jsx(o.Fragment,{children:Object.values(e)})};function CX(){const t=new Set;let e={},n=!1;const s=()=>{n||!t.size||(n=!0,queueMicrotask(()=>{n=!1,t.forEach(r=>r())}))};return{subscribe(r){return t.add(r),()=>{t.delete(r)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(r,a){e={...e,[r]:uF.createPortal(a.reactElement,a.element,r)},s()},removeRenderer(r){const a={...e};delete a[r],e=a,s()}}}var TX=class extends $e.Component{constructor(t){super(t),this.editorContentRef=$e.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const e=this.props.editor;if(e&&!e.isDestroyed&&(!((t=e.view.dom)===null||t===void 0)&&t.parentNode)){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n}),e.contentComponent=CX(),e.createNodeViews(),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){const t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{var e;if(!(!((e=t.view.dom)===null||e===void 0)&&e.parentNode))return;const n=document.createElement("div");n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n})}catch{}}}render(){const{editor:t,innerRef:e,...n}=this.props;return o.jsxs(o.Fragment,{children:[o.jsx("div",{ref:EX(e,this.editorContentRef),...n}),t?.contentComponent&&o.jsx(kX,{contentComponent:t.contentComponent})]})}};const AX=T.forwardRef((t,e)=>{const n=$e.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return $e.createElement(TX,{key:n,innerRef:e,...t})}),XD=$e.memo(AX),MX=typeof window<"u"?T.useLayoutEffect:T.useEffect;var RX=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0}
186,this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){let e;const n=r=>{r?.transaction!==void 0&&r.transaction===e||(e=r?.transaction,this.transactionNumber+=1,this.subscribers.forEach(a=>a()))},s=this.editor;return s.on("transaction",n),s.on("update",n),()=>{s.off("transaction",n),s.off("update",n)}}}};function OX(t){var e;const[n]=T.useState(()=>new RX(t.editor)),s=jX.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:NX);return MX(()=>n.watch(t.editor),[t.editor,n]),T.useDebugValue(s),s}const DX=!1,ZD=typeof window>"u",LX=ZD||!!(typeof window<"u"&&window.next);var IX=class JD{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){const e=this.options.current.immediatelyRender;let n=e??!0;return ZD?(n&&DX&&console.warn("SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches"),n=!1):LX&&e===void 0&&(n=!1),n?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...n)=>{var s,r;return(s=(r=this.options.current).onBeforeCreate)===null||s===void 0?void 0:s.call(r,...n)},onBlur:(...n)=>{var s,r;return(s=(r=this.options.current).onBlur)===null||s===void 0?void 0:s.call(r,...n)},onCreate:(...n)=>{var s,r;return(s=(r=this.options.current).onCreate)===null||s===void 0?void 0:s.call(r,...n)},onDestroy:(...n)=>{var s,r;return(s=(r=this.options.current).onDestroy)===null||s===void 0?void 0:s.call(r,...n)},onFocus:(...n)=>{var s,r;return(s=(r=this.options.current).onFocus)===null||s===void 0?void 0:s.call(r,...n)},onSelectionUpdate:(...n)=>{var s,r;return(s=(r=this.options.current).onSelectionUpdate)===null||s===void 0?void 0:s.call(r,...n)},onTransaction:(...n)=>{var s,r;return(s=(r=this.options.current).onTransaction)===null||s===void 0?void 0:s.call(r,...n)},onUpdate:(...n)=>{var s,r;return(s=(r=this.options.current).onUpdate)===null||s===void 0?void 0:s.call(r,...n)},onContentError:(...n)=>{var s,r;return(s=(r=this.options.current).onContentError)===null||s===void 0?void 0:s.call(r,...n)},onDrop:(...n)=>{var s,r;return(s=(r=this.options.current).onDrop)===null||s===void 0?void 0:s.call(r,...n)},onPaste:(...n)=>{var s,r;return(s=(r=this.options.current).onPaste)===null||s===void 0?void 0:s.call(r,...n)},onDelete:(...n)=>{var s,r;return(s=(r=this.options.current).onDelete)===null||s===void 0?void 0:s.call(r,...n)},onMount:(...n)=>{var s,r;return(s=(r=this.options.current).onMount)===null||s===void 0?void 0:s.call(r,...n)},onUnmount:(...n)=>{var s,r;return(s=(r=this.options.current).onUnmount)===null||s===void 0?void 0:s.call(r,...n)}};return new LY(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(s=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(s)?!0:s==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((r,a)=>{var l;return r===((l=n.extensions)===null||l===void 0?void 0:l[a])}):e[s]===n[s])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?JD.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}
186):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((n,s)=>n===e[s]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function PX(t={},e=[]){const n=T.useRef(t);n.current=t;const[s]=T.useState(()=>new IX(n)),r=KS.useSyncExternalStore(s.subscribe,s.getEditor,s.getServerSnapshot);return T.useDebugValue(r),T.useEffect(s.onRender(e)),OX({editor:r,selector:({transactionNumber:a})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&a===0?0:a+1}),r}const QD=T.createContext({editor:null});QD.Consumer;const BX=T.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),zX=()=>T.useContext(BX);$e.forwardRef((t,e)=>{const{onDragStart:n}=zX(),s=t.as||"div";return o.jsx(s,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});$e.createContext({markViewContentRef:()=>{}});const k_=T.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});k_.displayName="TiptapContext";const FX=()=>T.useContext(k_);function eL({children:t,...e}){const n="editor"in e?e.editor:e.instance;if(!n)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const s=T.useMemo(()=>({editor:n}),[n]),r=T.useMemo(()=>({editor:n}),[n]);return o.jsx(QD.Provider,{value:r,children:o.jsx(k_.Provider,{value:s,children:t})})}eL.displayName="Tiptap";function tL({...t}){const{editor:e}=FX();return o.jsx(XD,{editor:e,...t})}tL.displayName="Tiptap.Content";Object.assign(eL,{Content:tL});const nL=new WeakSet,iL=new WeakSet;function Bc(t){const e=t;return nL.add(e),e}function AN(t){return Array.isArray(t)&&nL.has(t)}function sL(t){return t.flatMap(e=>e==null?[]:Array.isArray(e)&&iL.has(e)&&!AN(e)?sL(e):[e])}function HX(t,e){if(t==="slot")return 0;if(t instanceof Function){const r=t(e);return Array.isArray(r)&&!AN(r)&&!iL.has(r)?Bc(r):r}const{children:n,...s}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");if(Array.isArray(n)){if(AN(n))return Bc([t,s,n]);if(n.length===0)return Bc([t,s]);const r=sL(n);return r.length===0?Bc([t,s]):Bc([t,s,...r])}return n!=null?Bc([t,s,n]):Bc([t,s])}const py=(t,e)=>HX(t,e),$X=(t,e)=>{var n;const{state:s}=t,{selection:r}=s;if(!r.empty)return!1;const{$from:a}=r;if(a.parentOffset!==0)return!1;const l=a.depth-1;if(l<0)return!1;const c=a.node(l),u=a.index(l);if(u===0)return!1;if(c.type===e)return t.commands.lift(e.name);const f=c.child(u-1);if(f.type!==e||!(!((n=f.lastChild)===null||n===void 0)&&n.isTextblock))return!1;const m=a.before()-1-1;return t.commands.command(({tr:g,dispatch:x})=>{if(!x)return!0;const b=a.parent.content,v=new De(b,0,0);return g.replace(m,a.after(),v),g.setSelection(Ue.create(g.doc,m+b.size)),g.scrollIntoView(),x(g),!0})},UX=/^\s*>\s$/,WX=Qi.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return py("blockquote",{...on(this.options.HTMLAttributes,t),children:py("slot",{})})},parseMarkdown:(t,e)=>{var n;const s=(n=e.parseBlockChildren)!==null&&n!==void 0?n:e.parseChildren;return e.createNode("blockquote",void 0,s(t.tokens||[]))},renderMarkdown:(t,e)=>{if(!t.content)return"";const n=">",s=[];return t.content.forEach((r,a)=>{var l,c;const u=((l=(c=e.renderChild)===null||c===void 0?void 0:c.call(e,r,a))!==null&&l!==void 0?l:e.renderChildren([r])).split(` 187`).map(f=>f.trim()===""?n:`${n} ${f}`);s.push(u.join(` 188`))}),s.join(` 189${n} 190`)},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}}
vendor: 2,440 bytes, line 190
190,addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>$X(this.editor,this.type)}},addInputRules(){return[hh({find:UX,type:this.type})]}}),VX=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,GX=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,qX=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,KX=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,YX=al.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return py("strong",{...on(this.options.HTMLAttributes,t),children:py("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[cc({find:VX,type:this.type}),cc({find:qX,type:this.type})]},addPasteRules(){return[el({find:GX,type:this.type}),el({find:KX,type:this.type})]}}),XX=t=>{const e=/`([^`]+)`(?!`)$/.exec(t);return!e||e.index>0&&t[e.index-1]==="`"?null:{index:e.index,text:e[0],replaceWith:e[1]}},ZX=t=>{const e=/`([^`]+)`(?!`)/g,n=[];let s;for(;(s=e.exec(t))!==null;)s.index>0&&t[s.index-1]==="`"||n.push({index:s.index,text:s[0],replaceWith:s[1]});return n},JX=al.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",on(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:(t,e)=>e.applyMark("code",[{type:"text",text:t.text||""}]),renderMarkdown:(t,e)=>t.content?`\`${e.renderChildren(t.content)}\``:"",addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}}
vendor: 7,364 bytes, lines 190-211
190,addInputRules(){return[cc({find:XX,type:this.type})]},addPasteRules(){return[el({find:ZX,type:this.type})]}}),Uw=4,QX=/^```([a-z]+)?[\s\n]$/,eZ=/^~~~([a-z]+)?[\s\n]$/,rL=Qi.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:Uw,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;if(!n)return null;const s=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(r=>r.startsWith(n)).map(r=>r.replace(n,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",on(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(t,e)=>{var n,s;return((n=t.raw)===null||n===void 0?void 0:n.startsWith("```"))===!1&&((s=t.raw)===null||s===void 0?void 0:s.startsWith("~~~"))===!1&&t.codeBlockStyle!=="indented"?[]:e.createNode("codeBlock",{language:t.lang||null},t.text?[e.createTextNode(t.text)]:[])},renderMarkdown:(t,e)=>{var n;let s="";const r=((n=t.attrs)===null||n===void 0?void 0:n.language)||"";return t.content?s=[`\`\`\`${r}`,e.renderChildren(t.content),"```"].join(` 191`):s=`\`\`\`${r} 192 193\`\`\``,s},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!==null&&e!==void 0?e:Uw,{state:s}=t,{selection:r}=s,{$from:a,empty:l}=r;if(a.parent.type!==this.type)return!1;const c=" ".repeat(n);return l?t.commands.insertContent(c):t.commands.command(({tr:u})=>{const{from:f,to:m}=r,g=s.doc.textBetween(f,m,` 194`,` 195`).split(` 196`).map(x=>c+x).join(` 197`);return u.replaceWith(f,m,s.schema.text(g)),!0})},"Shift-Tab":({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!==null&&e!==void 0?e:Uw,{state:s}=t,{selection:r}=s,{$from:a,empty:l}=r;return a.parent.type!==this.type?!1:l?t.commands.command(({tr:c})=>{var u;const{pos:f}=a,m=a.start(),g=a.end(),x=s.doc.textBetween(m,g,` 198`,` 199`).split(` 200`);let b=0,v=0;const w=f-m;for(let k=0;k<x.length;k+=1){if(v+x[k].length>=w){b=k;break}v+=x[k].length+1}const N=((u=x[b].match(/^ */))===null||u===void 0?void 0:u[0])||"",_=Math.min(N.length,n);if(_===0)return!0;let E=m;for(let k=0;k<b;k+=1)E+=x[k].length+1;return c.delete(E,E+_),f-E<=_&&c.setSelection(Ue.create(c.doc,E)),!0}):t.commands.command(({tr:c})=>{const{from:u,to:f}=r,m=s.doc.textBetween(u,f,` 201`,` 202`).split(` 203`).map(g=>{var x;const b=((x=g.match(/^ */))===null||x===void 0?void 0:x[0])||"",v=Math.min(b.length,n);return g.slice(v)}).join(` 204`);return c.replaceWith(u,f,s.schema.text(m)),!0})},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:s,empty:r}=n;if(!r||s.parent.type!==this.type)return!1;const a=s.parentOffset===s.parent.nodeSize-2,l=s.parent.textContent.endsWith(` 205 206`);return!a||!l?!1:t.chain().command(({tr:c})=>(c.delete(s.pos-2,s.pos),!0)).exitCode().run()},ArrowUp:({editor:t})=>{if(!this.options.exitOnArrowUp)return!1;const{state:e}=t,{selection:n}=e,{$from:s,empty:r}=n;if(!r||s.parent.type!==this.type||s.parentOffset!==0)return!1;const a=s.before();return a>0?!1:t.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:s}=e,{$from:r,empty:a}=n;if(!a||r.parent.type!==this.type||r.parentOffset!==r.parent.nodeSize-2)return!1;const l=r.after();return l===void 0?!1:s.nodeAt(l)?t.commands.command(({tr:c})=>(c.setSelection(it.near(s.resolve(l))),!0)):t.commands.exitCode()}}},addInputRules(){return[TN({find:QX,type:this.type,getAttributes:t=>({language:t[1]})}),TN({find:eZ,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new ln({key:new Fn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),s=e.clipboardData.getData("vscode-editor-data"),r=s?JSON.parse(s):void 0,a=r?.mode;if(!n||!a)return!1;const{tr:l,schema:c}=t.state,u=c.text(n.replace(/\r\n?/g,` 207`));return l.replaceSelectionWith(this.type.create({language:a},u)),l.selection.$from.parent.type!==this.type&&l.setSelection(Ue.near(l.doc.resolve(Math.max(0,l.selection.from-2)))),l.setMeta("paste",!0),t.dispatch(l),!0}}})]}}),tZ=Qi.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,` 208 209`):""}),nZ=Qi.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",on(this.options.HTMLAttributes,t)]},renderText(){return` 210`},renderMarkdown:()=>` 211`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:s})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:a}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:l}=this.options,{splittableMarks:c}=s.extensionManager,u=a||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:f,dispatch:m})=>{if(m&&u&&l){const g=u.filter(x=>c.includes(x.type.name));f.ensureMarks(g)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),iZ=Qi.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,on(this.options.HTMLAttributes,e),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;const s=!((n=t.attrs)===null||n===void 0)&&n.level?parseInt(t.attrs.level,10):1,r="#".repeat(s);return t.content?`${r} ${e.renderChildren(t.content)}`:""},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>TN({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}}
211)\\s$`),type:this.type,getAttributes:{level:t}}))}}),sZ=Qi.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",on(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:(t,e)=>e.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!dY(e,e.schema.nodes[this.name]))return!1;const{selection:n}=e,{$to:s}=n,r=t();return DD(n)?r.insertContentAt(s.pos,{type:this.name}):r.insertContent({type:this.name}),r.command(({state:a,tr:l,dispatch:c})=>{if(c){const{$to:u}=l.selection,f=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?l.setSelection(Ue.create(l.doc,u.pos+1)):u.nodeAfter.isBlock?l.setSelection(Ye.create(l.doc,u.pos)):l.setSelection(Ue.create(l.doc,u.pos));else{const m=a.schema.nodes[this.options.nextNodeType]||u.parent.type.contentMatch.defaultType,g=m?.create();g&&(l.insert(f,g),l.setSelection(Ue.create(l.doc,f+1)))}l.scrollIntoView()}return!0}).run()}}},addInputRules(){return[qD({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
vendor: 1,046 bytes, line 211
211ype})]}}),rZ=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,aZ=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,oZ=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,lZ=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,cZ=al.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",on(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}}
211,addInputRules(){return[cc({find:rZ,type:this.type}),cc({find:oZ,type:this.type})]},addPasteRules(){return[el({find:aZ,type:this.type}),el({find:lZ,type:this.type})]}}),dZ="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yac
211hts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",uZ="ελ1Ï 2бг1ел3деÑи4еÑ2каÑолик6ом3мкд2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5را٠ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5٠غرب5٠ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2٠اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ 3٠صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4Ù٠راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å «å¦2å ¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å 2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2",MN="numeric",RN="ascii",ON="alpha",wm="asciinumeric",im="alphanumeric",DN="domain",aL="emoji",hZ="scheme",fZ="slashscheme",Ww="whitespace";function mZ(t,e){return t in e||(e[t]=[]),e[t]}function td(t,e,n){e[MN]&&(e[wm]=!0,e[im]=!0),e[RN]&&(e[wm]=!0,e[ON]=!0),e[wm]&&(e[im]=!0),e[ON]&&(e[im]=!0),e[im]&&(e[DN]=!0),e[aL]&&(e[DN]=!0);for(const s in e){const r=mZ(s,n);r.indexOf(t)<0&&r.push(t)}}function pZ(t,e){const n={};for(const s in e)e[s].indexOf(t)>=0&&(n[s]=!0);return n}function lr(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}lr.groups={};lr.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let s=0;s<e.jr.length;s++){const r=e.jr[s][0],a=e.jr[s][1];if(a&&r.test(t))return a}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,s){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,s)},tr(t,e,n,s){s=s||lr.groups;let r;return e&&e.j?r=e:(r=new lr(e),n&&s&&td(e,n,s)),this.jr.push([t,r]),r},ts(t,e,n,s){let r=this;const a=t.length;if(!a)return r;for(let l=0;l<a-1;l++)r=r.tt(t[l]);return r.tt(t[a-1],e,n,s)},tt(t,e,n,s){s=s||lr.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const a=e;let l,c=r.go(t);if(c?(l=new lr,Object.assign(l.j,c.j),l.jr.push.apply(l.jr,c.jr),l.jd=c.jd,l.t=c.t):l=new lr,a){if(s)if(l.t&&typeof l.t=="string"){const u=Object.assign(pZ(l.t,s),n);td(a,u,s)}else n&&td(a,n,s);l.t=a}return r.j[t]=l,l}};const xt=(t,e,n,s,r)=>t.ta(e,n,s,r),Qn=(t,e,n,s,r)=>t.tr(e,n,s,r),mM=(t,e,n,s,r)=>t.ts(e,n,s,r),je=(t,e,n,s,r)=>t.tt(e,n,s,r),Lo="WORD",LN="UWORD",oL="ASCIINUMERICAL",lL="ALPHANUMERICAL",ap="LOCALHOST",IN="TLD",PN="UTLD",M0="SCHEME",Du="SLASH_SCHEME",C_="NUM",BN="WS",T_="NL",Nm="OPENBRACE",Sm="CLOSEBRACE",gy="OPENBRACKET",xy="CLOSEBRACKET",yy="OPENPAREN",by="CLOSEPAREN",vy="OPENANGLEBRACKET",wy="CLOSEANGLEBRACKET",Ny="FULLWIDTHLEFTPAREN",Sy="FULLWIDTHRIGHTPAREN",_y="LEFTCORNERBRACKET",jy="RIGHTCORNERBRACKET",Ey="LEFTWHITECORNERBRACKET",ky="RIGHTWHITECORNERBRACKET",Cy="FULLWIDTHLESSTHAN",Ty="FULLWIDTHGREATERTHAN",Ay="AMPERSAND",My="APOSTROPHE",Ry="ASTERISK",$l="AT",Oy="BACKSLASH",Dy="BACKTICK",Ly="CARET",nd="COLON",A_="COMMA",Iy="DOLLAR",Xa="DOT",Py="EQUALS",M_="EXCLAMATION",sa="HYPHEN",_m="PERCENT",By="PIPE",zy="PLUS",Fy="POUND",jm="QUERY",R_="QUOTE",cL="FULLWIDTHMIDDLEDOT",O_="SEMI",Za="SLASH",Em="TILDE",Hy="UNDERSCORE",dL="EMOJI",$y="SYM";var uL=Object.freeze({__proto__:null,ALPHANUMERICAL:lL,AMPERSAND:Ay,APOSTROPHE:My,ASCIINUMERICAL:oL,ASTERISK:Ry,AT:$l,BACKSLASH:Oy,BACKTICK:Dy,CARET:Ly,CLOSEANGLEBRACKET:wy,CLOSEBRACE:Sm,CLOSEBRACKET:xy,CLOSEPAREN:by,COLON:nd,COMMA:A_,DOLLAR:Iy,DOT:Xa,EMOJI:dL,EQUALS:Py,EXCLAMATION:M_,FULLWIDTHGREATERTHAN:Ty,FULLWIDTHLEFTPAREN:Ny,FULLWIDTHLESSTHAN:Cy,FULLWIDTHMIDDLEDOT:cL,FULLWIDTHRIGHTPAREN:Sy,HYPHEN:sa,LEFTCORNERBRACKET:_y,LEFTWHITECORNERBRACKET:Ey,LOCALHOST:ap,NL:T_,NUM:C_,OPENANGLEBRACKET:vy,OPENBRACE:Nm,OPENBRACKET:gy,OPENPAREN:yy,PERCENT:_m,PIPE:By,PLUS:zy,POUND:Fy,QUERY:jm,QUOTE:R_,RIGHTCORNERBRACKET:jy,RIGHTWHITECORNERBRACKET:ky,SCHEME:M0,SEMI:O_,SLASH:Za,SLASH_SCHEME:Du,SYM:$y,TILDE:Em,TLD:IN,UNDERSCORE:Hy,UTLD:PN,UWORD:LN,WORD:Lo,WS:BN});const To=/[a-z]/,Ff=new RegExp("\\p{L}","u"),Vw=new RegExp("\\p{Emoji}","u"),Ao=/\d/,Gw=/\s/,pM="\r",qw=` 212`,gZ="ï¸",xZ="â",Kw="";let Tx=null,Ax=null;function yZ(t=[]){const e={};lr.groups=e;const n=new lr;Tx==null&&(Tx=gM(dZ)),Ax==null&&(Ax=gM(uZ)),je(n,"'",My),je(n,"{",Nm),je(n,"}",Sm),je(n,"[",gy),je(n,"]",xy),je(n,"(",yy),je(n,")",by),je(n,"<",vy),je(n,">",wy),je(n,"ï¼",Ny),je(n,"ï¼",Sy),je(n,"ã",_y),je(n,"ã",jy),je(n,"ã",Ey),je(n,"ã",ky),je(n,"ï¼",Cy),je(n,"ï¼",Ty),je(n,"&",Ay),je(n,"*",Ry),je(n,"@",$l),je(n,"`",Dy),je(n,"^",Ly),je(n,":",nd),je(n,",",A_),je(n,"$",Iy),je(n,".",Xa),je(n,"=",Py),je(n,"!",M_),je(n,"-",sa),je(n,"%",_m),je(n,"|",By),je(n,"+",zy
vendor: 8,780 bytes, lines 212-215
212),je(n,"#",Fy),je(n,"?",jm),je(n,'"',R_),je(n,"/",Za),je(n,";",O_),je(n,"~",Em),je(n,"_",Hy),je(n,"\\",Oy),je(n,"ã»",cL);const s=Qn(n,Ao,C_,{[MN]:!0});Qn(s,Ao,s);const r=Qn(s,To,oL,{[wm]:!0}),a=Qn(s,Ff,lL,{[im]:!0}),l=Qn(n,To,Lo,{[RN]:!0});Qn(l,Ao,r),Qn(l,To,l),Qn(r,Ao,r),Qn(r,To,r);const c=Qn(n,Ff,LN,{[ON]:!0});Qn(c,To),Qn(c,Ao,a),Qn(c,Ff,c),Qn(a,Ao,a),Qn(a,To),Qn(a,Ff,a);const u=je(n,qw,T_,{[Ww]:!0}),f=je(n,pM,BN,{[Ww]:!0}),m=Qn(n,Gw,BN,{[Ww]:!0});je(n,Kw,m),je(f,qw,u),je(f,Kw,m),Qn(f,Gw,m),je(m,pM),je(m,qw),Qn(m,Gw,m),je(m,Kw,m);const g=Qn(n,Vw,dL,{[aL]:!0});je(g,"#"),Qn(g,Vw,g),je(g,gZ,g);const x=je(g,xZ);je(x,"#"),Qn(x,Vw,g);const b=[[To,l],[Ao,r]],v=[[To,null],[Ff,c],[Ao,a]];for(let w=0;w<Tx.length;w++)Ml(n,Tx[w],IN,Lo,b);for(let w=0;w<Ax.length;w++)Ml(n,Ax[w],PN,LN,v);td(IN,{tld:!0,ascii:!0},e),td(PN,{utld:!0,alpha:!0},e),Ml(n,"file",M0,Lo,b),Ml(n,"mailto",M0,Lo,b),Ml(n,"http",Du,Lo,b),Ml(n,"https",Du,Lo,b),Ml(n,"ftp",Du,Lo,b),Ml(n,"ftps",Du,Lo,b),td(M0,{scheme:!0,ascii:!0},e),td(Du,{slashscheme:!0,ascii:!0},e),t=t.sort((w,N)=>w[0]>N[0]?1:-1);for(let w=0;w<t.length;w++){const N=t[w][0],E=t[w][1]?{[hZ]:!0}:{[fZ]:!0};N.indexOf("-")>=0?E[DN]=!0:To.test(N)?Ao.test(N)?E[wm]=!0:E[RN]=!0:E[MN]=!0,mM(n,N,N,E)}return mM(n,"localhost",ap,{ascii:!0}),n.jd=new lr($y),{start:n,tokens:Object.assign({groups:e},uL)}}function hL(t,e){const n=bZ(e.replace(/[A-Z]/g,c=>c.toLowerCase())),s=n.length,r=[];let a=0,l=0;for(;l<s;){let c=t,u=null,f=0,m=null,g=-1,x=-1;for(;l<s&&(u=c.go(n[l]));)c=u,c.accepts()?(g=0,x=0,m=c):g>=0&&(g+=n[l].length,x++),f+=n[l].length,a+=n[l].length,l++;a-=g,l-=x,f-=g,r.push({t:m.t,v:e.slice(a-f,a),s:a-f,e:a})}return r}function bZ(t){const e=[],n=t.length;let s=0;for(;s<n;){let r=t.charCodeAt(s),a,l=r<55296||r>56319||s+1===n||(a=t.charCodeAt(s+1))<56320||a>57343?t[s]:t.slice(s,s+2);e.push(l),s+=l.length}return e}function Ml(t,e,n,s,r){let a;const l=e.length;for(let c=0;c<l-1;c++){const u=e[c];t.j[u]?a=t.j[u]:(a=new lr(s),a.jr=r.slice(),t.j[u]=a),t=a}return a=new lr(n),a.jr=r.slice(),t.j[e[l-1]]=a,a}function gM(t){const e=[],n=[];let s=0,r="0123456789";for(;s<t.length;){let a=0;for(;r.indexOf(t[s+a])>=0;)a++;if(a>0){e.push(n.join(""));for(let l=parseInt(t.substring(s,s+a),10);l>0;l--)n.pop();s+=a}else n.push(t[s]),s++}return e}const op={defaultProtocol:"http",events:null,format:xM,formatHref:xM,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function D_(t,e=null){let n=Object.assign({},op);t&&(n=Object.assign(n,t instanceof D_?t.o:t));const s=n.ignoreTags,r=[];for(let a=0;a<s.length;a++)r.push(s[a].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}D_.prototype={o:op,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const s=e!=null;let r=this.o[t];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:op[t],typeof r=="function"&&s&&(r=r(e,n))):typeof r=="function"&&s&&(r=r(e,n.t,n)),r)},getObj(t,e,n){let s=this.o[t];return typeof s=="function"&&e!=null&&(s=s(e,n.t,n)),s},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function xM(t){return t}function fL(t,e){this.t="token",this.v=t,this.tk=e}fL.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),s=t.get("format",e,this);return n&&s.length>n?s.substring(0,n)+"â¦":s},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=op.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),s=t.get("formatHref",n,this),r=t.get("tagName",n,e),a=this.toFormattedString(t),l={},c=t.get("className",n,e),u=t.get("target",n,e),f=t.get("rel",n,e),m=t.getObj("attributes",n,e),g=t.getObj("events",n,e);return l.href=s,c&&(l.class=c),u&&(l.target=u),f&&(l.rel=f),m&&Object.assign(l,m),{tagName:r,attributes:l,content:a,eventListeners:g}}};function Pb(t,e){class n extends fL{constructor(r,a){super(r,a),this.t=t}}for(const s in e)n.prototype[s]=e[s];return n.t=t,n}const vZ=Pb("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),yM=Pb("text"),wZ=Pb("nl"),Mx=Pb("url",{isLink:!0,toHref(t=op.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==ap&&t[1].t===nd}}),Qr=t=>new lr(t);function NZ({groups:t}){const e=t.domain.concat([Ay,Ry,$l,Oy,Dy,Ly,Iy,Py,sa,C_,_m,By,zy,Fy,Za,$y,Em,Hy]),n=[My,nd,A_,Xa,M_,_m,jm,R_,O_,vy,wy,Nm,Sm,xy,gy,yy,by,Ny,Sy,_y,jy,Ey,ky,Cy,Ty],s=[Ay,My,Ry,Oy,Dy,Ly,Iy,Py,sa,Nm,Sm,_m,By,zy,Fy,jm,Za,$y,Em,Hy],r=Qr(),a=je(r,Em);xt(a,s,a),xt(a,t.domain,a);const l=Qr(),c=Qr(),u=Qr();xt(r,t.domain,l),xt(r,t.scheme,c),xt(r,t.slashscheme,u),xt(l,s,a),xt(l,t.domain,l);const f=je(l,$l);je(a,$l,f),je(c,$l,f),je(u,$l,f);const m=je(a,Xa);xt(m,s,a),xt(m,t.domain,a);const g=Qr();xt(f,t.domain,g),xt(g,t.domain,g);const x=je(g,Xa);xt(x,t.domain,g);const b=Qr(vZ);xt(x,t.tld,b),xt(x,t.utld,b),je(f,ap,b);const v=je(g,sa);je(v,sa,v),xt(v,t.domain,g),xt(b,t.domain,g),je(b,Xa,x),je(b,sa,v);const w=je(l,sa),N=je(l,Xa);je(w,sa,w),xt(w,t.domain,l),xt(N,s,a),xt(N,t.domain,l);const _=Qr(Mx);xt(N,t.tld,_),xt(N,t.utld,_),xt(_,t.domain,l),xt(_,s,a),je(_,Xa,N),je(_,sa,w),je(_,$l,f);const E=je(_,nd),k=Qr(Mx);xt(E,t.numeric,k);const C=Qr(Mx),A=Qr();xt(C,e,C),xt(C,n,A),xt(A,e,C),xt(A,n,A),je(_,Za,C),je(k,Za,C);const L=je(c,nd),M=je(u,nd),O=je(M,Za),P=je(O,Za);xt(c,t.domain,l),je(c,Xa,N),je(c,sa,w),xt(u,t.domain,l),je(u,Xa,N),je(u,sa,w),xt(L,t.domain,C),je(L,Za,C),je(L,jm,C),xt(P,t.domain,C),xt(P,e,C),je(P,Za,C);const H=[[Nm,Sm],[gy,xy],[yy,by],[vy,wy],[Ny,Sy],[_y,jy],[Ey,ky],[Cy,Ty]];for(let V=0;V<H.length;V++){const[F,U]=H[V],q=je(C,F);je(A,F,q);const ae=Qr(Mx);xt(q,e,ae);const B=Qr();xt(q,n,B),je(q,U,C),xt(ae,e,ae),xt(ae,n,B),xt(B,e,ae),xt(B,n,B),je(ae,U,C),je(B,U,C)}return je(r,ap,_),je(r,T_,wZ),{start:r,tokens:uL}}function SZ(t,e,n){let s=n.length,r=0,a=[],l=[];for(;r<s;){let c=t,u=null,f=null,m=0,g=null,x=-1;for(;r<s&&!(u=c.go(n[r].t));)l.push(n[r++]);for(;r<s&&(f=u||c.go(n[r].t));)u=null,c=f,c.accepts()?(x=0,g=c):x>=0&&x++,r++,m++;if(x<0)r-=m,r<s&&(l.push(n[r]),r++);else{l.length>0&&(a.push(Yw(yM,e,l)),l=[]),r-=x,m-=x;const b=g.t,v=n.slice(r-m,r);a.push(Yw(b,e,v))}}return l.length>0&&a.push(Yw(yM,e,l)),a}function Yw(t,e,n){const s=n[0].s,r=n[n.length-1].e,a=e.slice(s,r);return new t(a,n)}const _Z=typeof console<"u"&&console&&console.warn||(()=>{}),jZ="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",An={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function EZ(){return lr.groups={},An.scanner=null,An.parser=null,An.tokenQueue=[],An.pluginQueue=[],An.customSchemes=[],An.initialized=!1,An}function bM(t,e=!1){if(An.initialized&&_Z(`linkifyjs: already initialized - will not register custom scheme "${t}" ${jZ}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format. 2131. Must only contain digits, lowercase ASCII letters or "-" 2142. Cannot start or end with "-" 2153. "-" cannot repeat`);An.customSchemes.push([t,e])}function kZ(){An.scanner=yZ(An.customSchemes);for(let t=0;t<An.tokenQueue.length;t++)An.tokenQueue[t][1]({scanner:An.scanner});An.parser=NZ(An.scanner.tokens);for(let t=0;t<An.pluginQueue.length;t++)An.pluginQueue[t][1]({scanner:An.scanner,parser:An.parser});return An.initialized=!0,An}function L_(t){return An.initialized||kZ(),SZ(An.parser.start,t,hL(An.scanner.start,t))}L_.scan=hL;function mL(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const s=new D_(n),r=L_(t),a=[];for(let l=0;l<r.length;l++){const c=r[l];c.isLink&&(!e||c.t===e)&&s.check(c)&&a.push(c.toFormattedObject(s))}return a}const I_="[\0-  áá â-\u2029âã]",CZ=new RegExp(I_),TZ=new RegExp(`${I_}$`),AZ=new RegExp(I_,"g");function MZ(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function RZ(t){return new ln({key:new Fn("autolink"),appendTransaction:(e,n,s)=>{const r=e.some(u=>u.docChanged)&&!n.doc.eq(s.doc),a=e.some(u=>u.getMeta("preventAutolink"));if(!r||a)return;const{tr:l}=s,c=kD(n.doc,[...e]);
215if(Lb(c).forEach(({newRange:u})=>{const f=lK(s.doc,u,x=>x.isTextblock);let m,g;if(f.length>1)m=f[0],g=s.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ");else if(f.length){const x=s.doc.textBetween(u.from,u.to," "," ");if(!TZ.test(x))return;m=f[0],g=s.doc.textBetween(m.pos,u.to,void 0," ")}if(m&&g){const x=g.split(CZ).filter(Boolean);if(x.length<=0)return!1;const b=x[x.length-1],v=m.pos+g.lastIndexOf(b);if(!b)return!1;const w=L_(b).map(N=>N.toObject(t.defaultProtocol));if(!MZ(w))return!1;w.filter(N=>N.isLink).map(N=>({...N,from:v+N.start+1,to:v+N.end+1})).filter(N=>s.schema.marks.code?!s.doc.rangeHasMark(N.from,N.to,s.schema.marks.code):!0).filter(N=>t.validate(N.value)).filter(N=>t.shouldAutoLink(N.value)).forEach(N=>{j_(N.from,N.to,s.doc).some(_=>_.mark.type===t.type)||l.addMark(N.from,N.to,t.type.create({href:N.href}))})}}),!!l.steps.length)return l}})}function OZ(t){return new ln({key:new Fn("handleClickLink"),props:{handleClick:(e,n,s)=>{if(s.button!==0||!e.editable)return!1;let r=null;if(s.target instanceof HTMLAnchorElement)r=s.target;else{const u=s.target;if(!u)return!1;const f=t.editor.view.dom;r=u.closest("a"),r&&!f.contains(r)&&(r=null)}if(!r)return!1;let a=!1;if(t.enableClickSelection&&(a=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){var l,c;const u=OD(e.state,t.type.name),f=(l=r.href)!==null&&l!==void 0?l:u.href,m=(c=r.target)!==null&&c!==void 0?c:u.target;f&&(window.open(f,m),a=!0)}return a}}})}const DZ=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|â(.*?)â|â(.*?)â))?\)$/,LZ=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|â(.*?)â|â(.*?)â))?\)/g;function pL(t,e){let n=0;for(let s=e-1;s>=0&&t[s]==="\\";s-=1)n+=1;return n%2===1}function IZ(t,e){let n=0,s=0;for(;s<e;){if(t[s]!=="`"){s+=1;continue}if(n===0&&pL(t,s)){s+=1;continue}let r=0;for(;s<e&&t[s]==="`";)r+=1,s+=1;n===0?n=r:r===n&&(n=0)}return n>0}function gL(t,e,n){var s,r;const[,a,l]=e;return(e.index?t[e.index-1]:void 0)==="!"||pL(t,(s=e.index)!==null&&s!==void 0?s:0)||IZ(t,(r=e.index)!==null&&r!==void 0?r:0)?!1:!!a.trim()&&n(l)}function xL(t){var e,n;const[s,r,a,,l,c,u]=t,f=(e=l??c)!==null&&e!==void 0?e:u;return{index:(n=t.index)!==null&&n!==void 0?n:0,text:s,replaceWith:r,data:{href:a,title:f||null,markdown:!0}}}function PZ(t,e){return t.index<e.index+e.text.length&&e.index<t.index+t.text.length}function yL(t){var e,n,s;return{href:(e=t.data)===null||e===void 0?void 0:e.href,title:(n=(s=t.data)===null||s===void 0?void 0:s.title)!==null&&n!==void 0?n:null}}function BZ(t){const e=cc({find:n=>{const s=DZ.exec(n);return!s||!gL(n,s,t.isAllowedHref)?null:xL(s)},type:t.type,getAttributes:yL});return new Fp({find:e.find,handler:n=>{const s=e.handler(n);return s!==null&&n.state.tr.steps.length&&n.state.tr.setMeta("preventAutolink",!0),s}})}function zZ(t){const e=el({find:n=>{var s,r;const a=[];for(const c of n.matchAll(LZ))gL(n,c,t.isAllowedHref)&&a.push(xL(c));const l=((s=(r=t.findPlainUrls)===null||r===void 0?void 0:r.call(t,n))!==null&&s!==void 0?s:[]).filter(c=>!a.some(u=>PZ(u,c)));return[...a,...l]},type:t.type,getAttributes:yL});return new VD({find:e.find,handler:n=>{var s;const r=e.handler(n);return r!==null&&n.state.tr.steps.length&&(!((s=n.match.data)===null||s===void 0)&&s.markdown)&&n.state.tr.setMeta("preventAutolink",!0),r}})}function FZ(t){return new ln({key:new Fn("handlePasteLink"),props:{handlePaste:(e,n,s)=>{const{shouldAutoLink:r}=t,{state:a}=e,{selection:l}=a,{empty:c}=l;if(c)return!1;let u="";s.content.forEach(m=>{u+=m.textContent});const f=mL(u,{defaultProtocol:t.defaultProtocol}).find(m=>m.isLink&&m.value===u);return!u||!f||r!==void 0&&!r(f.value)?!1:t.editor.commands.setMark(t.type,{href:f.href})}}})}function Mo(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(s=>{const r=typeof s=="string"?s:s.scheme;r&&n.push(r)}),!t||t.replace(AZ,"").match(new RegExp(`^(?:(?:${n.map(s=>s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,"i"))}const bL=al.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `val
215idate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){bM(t);return}bM(t.scheme,t.optionalSlashes)})},onDestroy(){EZ()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Mo(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>{const e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),n=/^[a-z][a-z0-9+.-]*:/i.test(t);if(e||n&&!t.includes("@"))return!0;const s=(t.includes("@")?t.split("@").pop():t).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(s)||!/\./.test(s))}}},addAttributes(){var t,e,n;return{href:{default:null,parseHTML(s){return s.getAttribute("href")}},target:{default:(t=this.options.HTMLAttributes.target)!==null&&t!==void 0?t:null},rel:{default:(e=this.options.HTMLAttributes.rel)!==null&&e!==void 0?e:null},class:{default:(n=this.options.HTMLAttributes.class)!==null&&n!==void 0?n:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Mo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Mo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",on(this.options.HTMLAttributes,t),0]:["a",on(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n,s,r,a;const l=(n=(s=t.attrs)===null||s===void 0?void 0:s.href)!==null&&n!==void 0?n:"",c=(r=(a=t.attrs)===null||a===void 0?void 0:a.title)!==null&&r!==void 0?r:"",u=e.renderChildren(t);return c?`[${u}](${l} "${c}")`:`[${u}](${l})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:s=>!!Mo(s,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:s=>!!Mo(s,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addInputRules(){return this.options.markdownLinks?[BZ({type:this.type,isAllowedHref:t=>this.options.isAllowedUri(t,{defaultValidate:e=>!!Mo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){const t=e=>{const n=[];if(e){const{protocols:s,defaultProtocol:r}=this.options;mL(e).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:l=>!!Mo(l,s),protocols:s,defaultProtocol:r})).forEach(a=>{this.options.shouldAutoLink(a.value)&&n.push({text:a.value,data:{href:a.href},index:a.start})})}return n};return this.options.markdownLinks?[zZ({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:n=>!!Mo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:t})]:[el({find:t,type:this.type,getAttributes:e=>{var n;return{href:(n=e.data)===null||n===void 0?void 0:n.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(RZ({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:s=>this.options.isAllowedUri(s,{defaultValidate:r=>!!Mo(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink}
vendor: 1,348 bytes, lines 215-216
215)),t.push(OZ({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(FZ({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}}),HZ="listItem",vM="textStyle",wM=/^\s*([-+*])\s$/,vL=Qi.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",on(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,` 216`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(HZ,this.editor.getAttributes(vM)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
216,addInputRules(){let t=hh({find:wM,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=hh({find:wM,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(vM),editor:this.editor})),[t]}}),$Z=(t,e,n)=>{const{selection:s}=t;if(!s.empty)return null;const{$from:r}=s;if(!r.parent.isTextblock||r.parentOffset!==r.parent.content.size)return null;let a=-1;for(let b=r.depth;b>0;b-=1)if(r.node(b).type.name===e){a=b;break}if(a<0)return null;const l=r.node(a),c=r.index(a);if(c+1>=l.childCount)return null;const u=l.child(c+1);if(!n.includes(u.type.name))return null;const f=t.schema.nodes[e];let m=!1;if(u.forEach(b=>{b.type===f&&b.childCount>1&&(m=!0)}),!m)return null;const g=t.doc.resolve(r.after()).nodeAfter;if(!g||!n.includes(g.type.name))return null;const x=[];return g.forEach(b=>{x.push(b)}),x.length===0?null:{listItemDepth:a,nestedList:g,nestedListPos:r.after(),insertPos:r.after(a),items:x}},UZ=(t,e,n,s)=>{const r=$Z(t,n,s);if(!r)return!1;const{selection:a}=t,{nestedList:l,nestedListPos:c,insertPos:u,items:f}=r,m=t.tr;m.delete(c,c+l.nodeSize);const g=m.mapping.map(u);return m.insert(g,be.from(f)),m.setSelection(a.map(m.doc,m.mapping)),e&&e(m),!0},WZ=(t,e,n)=>UZ(t.state,t.view.dispatch,e,n),wL=(t,e)=>Yt.create({name:`${t}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){const n=()=>WZ(this.editor,t,e);return{Delete:n,"Mod-Delete":n}}}),NL=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],Rx="abcdefghijklmnopqrstuvwxyz",SL=String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;function Bb(t){let e=t,n="";for(const[s,r]of NL)for(;e>=s;)n+=r,e-=s;return n}function P_(t){return Bb(t).toUpperCase()}function _L(t){const e=t.toLowerCase();let n=0,s=0;for(;n<e.length;){let r=!1;for(const[a,l]of NL)if(e.startsWith(l,n)){s+=a,n+=l.length,r=!0;break}if(!r)return 0}return s}function VZ(t){if(!/^[ivxlcdmIVXLCDM]+$/.test(t))return!1;const e=_L(t);return e<=0?!1:(t===t.toLowerCase()?Bb(e):P_(e))===t}function GZ(t){const e=t.toLowerCase();if(e.length===1)return e.charCodeAt(0)-97+1;if(e.length===2){const n=e.charCodeAt(0)-97,s=e.charCodeAt(1)-97;return(n+1)*26+s+1}return 0}function Uy(t){if(t<=26)return Rx[t-1];const e=Math.floor((t-1)/26)-1,n=(t-1)%26;return e<0?Rx[n]:Rx[e]+Rx[n]}function zb(t){if(!(!t||/^\d+$/.test(t))){if(VZ(t))return t===t.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(t))return"a";if(/^[A-Z]{1,2}$/.test(t))return"A"}}function B_(t){if(/^\d+$/.test(t))return parseInt(t,10);const e=zb(t);if(e==="i"||e==="I")return _L(t);if(e==="a"||e==="A"){const s=GZ(t);return s>0?s:1}const n=parseInt(t,10);return Number.isNaN(n)?1:n}function qZ(t,e){if(t==="numeric")return String(e);switch(t){case"a":return Uy(e);case"A":return Uy(e).toUpperCase();case"i":return Bb(e);case"I":return P_(e);default:return String(e)}}function KZ(t){var e;if(t.length===0)return!1;const n=(e=zb(t[0]))!==null&&e!==void 0?e:"numeric",s=B_(t[0]);if(s<1)return!1;for(let r=0;r<t.length;r++){const a=qZ(n,s+r);if(t[r]!==a)return!1}return!0}function YZ(t){return{type:zb(t),start:B_(t)}}function XZ(t){const{type:e,start:n}=YZ(t),s={};return e&&(s.type=e),n!==1&&(s.start=n),s}function ZZ(t,e,n=". "){const s=e+1;if(!t||t==="1")return`${s}${n}`;switch(t){case"a":return`${Uy(s)}${n}`;case"A":return`${Uy(s).toUpperCase()}${n}`;case"i":return`${Bb(s)}${n}`;case"I":return`${P_(s)}${n}`;default:return`${s}${n}`}}function JZ(t){var e,n;const s=(e=t.tokens)===null||e===void 0?void 0:e[0];return!!(t.text&&((n=t.tokens)===null||n===void 0?void 0:n.length)===1&&s?.type==="list"&&s.ordered&&s.raw===t.text)}function QZ(t,e){return e.tokenizeInline?e.parseInline(e.tokenizeInline(t)):e.parseInline([{type:"text",raw:t,text:t}])}const jL=Qi.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",on(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{var n;if(t.type!=="list_item")return[];const s=(n=e.parseBlockChildren)!==null&&n!==void 0?n:e.parseChildren;let r=[];if(t.tokens&&t.tokens.length>0){if(JZ(t))return{type:"listItem",content:[{type:"paragraph",content:QZ(t.text||"",e)}]};if(t.tokens.some(a=>a.type==="paragraph"))r=s(t.tokens);else{const a=t.tokens[0];if(a&&a.type==="text"&&a.tokens&&a.tokens.length>0){if(r=[{type:"paragraph",content:e.parseInline(a.tokens)}],t.tokens.length>1){const l=s(t.tokens.slice(1));r.push(...l)}}else r=s(t.tokens)}}return r.length===0&&(r=[{type:"paragraph",content:[]}]),{type:"listItem",content:r}},renderMarkdown:(t,e,n)=>$D(t,e,s=>{if(s.parentType==="bulletList")return"- ";if(s.parentType==="orderedList"){var r,a;const l=((r=s.meta)===null||r===void 0||(r=r.parentAttrs)===null||r===void 0?void 0:r.start)||1;return ZZ((a=s.meta)===null||a===void 0||(a=a.parentAttrs)===null||a===void 0?void 0:a.type,l-1+(s.index||0),". ")}return"- "},n,{alignNestedToPrefix:n?.parentType==="orderedList"}),addExtensions(){return[wL(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),z_=(t,e)=>{const{$from:n}=e.selection,s=zi(t,e.schema);let r=null,a=n.depth,l=n.pos,c=null;for(;a>0&&c===null;)r=n.node(a),r.type===s?c=a:(a-=1,l-=1);return c===null?null:{$pos:e.doc.resolve(l),depth:c}},EL=(t,e)=>{const n=z_(t,e);if(!n)return!1;const[,s]=yK(e,t,n.$pos.pos+4);return s},eJ=(t,e,n)=>{const{$anchor:s}=t.selection,r=Math.max(0,s.pos-2),a=t.doc.resolve(r).node();return!(!a||!n.includes(a.type.name))},NM=(t,e,n)=>{if(t.commands.undoInputRule())return!0;
216if(t.state.selection.from!==t.state.selection.to)return!1;if(!Qo(t.state,e)&&eJ(t.state,e,n)){const{$anchor:a}=t.state.selection,l=t.state.doc.resolve(a.before()-1),c=[];l.node().descendants((m,g)=>{m.type.name===e&&c.push({node:m,pos:g})});const u=c.at(-1);if(!u)return!1;const f=t.state.doc.resolve(l.start()+u.pos+1);return t.chain().cut({from:a.start()-1,to:a.end()+1},f.end()).joinForward().run()}if(!Qo(t.state,e)||!SK(t.state))return!1;const{$from:s}=t.state.selection,r=s.depth-1;return s.node(r).type!==t.schema.nodes[e]||s.index(r)!==0?!1:t.chain().liftListItem(e).run()},tJ=(t,e)=>{const n=EL(t,e),s=z_(t,e);return!s||!n?!1:n>s.depth},nJ=(t,e)=>{const n=EL(t,e),s=z_(t,e);return!s||!n?!1:n<s.depth},SM=(t,e)=>{if(!Qo(t.state,e)||!NK(t.state,e))return!1;const{selection:n}=t.state,{$from:s,$to:r}=n;return!n.empty&&s.sameParent(r)?!1:tJ(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():nJ(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},iJ=(t,e,n)=>{const{state:s}=t,{selection:r}=s;if(!r.empty)return!1;const{$from:a}=r;if(a.parentOffset!==0||!a.parent.isTextblock||Qo(s,e))return!1;const l=bK(a);
216if(!l||!n.includes(l.type.name))return!1;const c=l.lastChild;if(!c||c.type.name!==e)return!1;const u=a.parent;if(!c.canReplace(c.childCount,c.childCount,be.from(u)))return!1;const f=a.before(),m=a.after(),g=f-2;return t.commands.command(({tr:x,dispatch:b})=>(b&&(x.delete(f,m).insert(g,be.from(u)),x.setSelection(Ue.create(x.doc,g+1)),x.scrollIntoView()),!0))},kL=Yt.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&SM(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&SM(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:s})=>{t.state.schema.nodes[n]!==void 0&&NM(t,n,s)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:s})=>{t.state.schema.nodes[n]!==void 0&&NM(t,n,s)&&(e=!0)}),e},Tab:({editor:t})=>{for(const{itemName:e,wrapperNames:n}of this.options.listTypes)if(t.state.schema.nodes[e]!==void 0&&iJ(t,e,n))return!0;return!1}}}}),zN=new RegExp(`^(\\s*)(${SL})([.)])\\s+(.*)$`),sJ=/^\s/,Lu={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function rJ(t){return zN.test(t.trimStart())}function aJ(t){const e=t.trimStart();return Lu.bulletItem.test(e)||rJ(e)||Lu.heading.test(e)||Lu.thematicBreak.test(e)&&!e.startsWith("-")||/^>\s?/.test(e)||Lu.codeFence.test(e)||Lu.blockMath.test(e)}function oJ(t){return Object.values(Lu).some(e=>e.test(t))}function lJ(t){const e=[],n=[];let s=!1;return t.forEach(r=>{if(s){n.push(r);return}if(r.trim()===""){s=!0,n.push(r);return}if(e.length>0&&aJ(r)){s=!0,n.push(r);return}e.push(r)}),{paragraphLines:e,blockLines:n}}function cJ(t){const e=[];let n=0,s=0;for(;n<t.length;){const r=t[n],a=r.match(zN);if(!a)break;const[,l,c,u,f]=a,m=l.length,g=parseInt(c,10),x=isNaN(g)?zb(c):void 0,b=isNaN(g)?B_(c):g,v=[f];let w=n+1;const N=[r];let _=!1;for(;w<t.length;){const E=t[w];if(E.match(zN))break;if(E.trim()==="")N.push(E),v.push(""),_=!0,w+=1;else if(E.match(sJ)){const k=E.length-E.trimStart().length,C=m+c.length+1;N.push(E),v.push(E.slice(Math.min(k,C))),w+=1}else{if(_||oJ(E))break;N.push(E),v.push(E),w+=1}}e.push({indent:m,number:b,type:x,content:v.join(` 217`).trim(),contentLines:v,raw:N.join(` 218`)}),s=w,n=w}return[e,s]}const dJ=new RegExp(`^(${SL})([.)])\\s+(.+)$`);function uJ(t){const e=t.split(` 219`).filter(s=>s.trim().length>0);if(e.length===0)return null;const n=[];for(const s of e){const r=s.trim().match(dJ);if(!r)return null;n.push({marker:r[1],content:r[3]})}return KZ(n.map(s=>s.marker))?{type:"orderedList",attrs:XZ(n[0].marker),content:n.map(s=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:s.content}]}]}))}:null}function CL(t,e,n){const s=[];let r=0;for(;r<t.length;){const a=t[r];if(a.indent===e){const{paragraphLines:l,blockLines:c}=lJ(a.contentLines),u=l.join(` 220`).trim(),f=[];u&&f.push({type:"paragraph",raw:u,tokens:n.inlineTokens(u)});const m=c.join(` 221`).trim();if(m){const b=n.blockTokens(m);f.push(...b)}let g=r+1;const x=[];for(;g<t.length&&t[g].indent>e;)x.push(t[g]),g+=1;if(x.length>0){const b=CL(x,Math.min(...x.map(v=>v.indent)),n);f.push({type:"list",ordered:!0,start:x[0].number,typeMarker:x[0].type,items:b,raw:x.map(v=>v.raw).join(` 222`)})}s.push({type:"list_item",raw:a.raw,tokens:f}),r=g}else r+=1}return s}function hJ(t,e){return t.map(n=>{if(n.type!=="list_item")return e.parseChildren([n])[0];const s=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(r=>{if(r.type==="paragraph"||r.type==="list"||r.type==="blockquote"||r.type==="code")s.push(...e.parseChildren([r]));else if(r.type==="text"&&r.tokens){const a=e.parseChildren([r]);s.push({type:"paragraph",content:a})}else{const a=e.parseChildren([r]);a.length>0&&s.push(...a)}}),{type:"listItem",content:s}})}const fJ="listItem",_M="textStyle",jM=/^(\d+)\.\s$/;function EM(t){const e=t.match(/list-style-type\s*:\s*([^;]+)/i);if(!e)return null;switch(e[1].trim().toLowerCase()){case"upper-roman":return"I";case"lower-roman":return"i";case"upper-alpha":case"upper-latin":return"A";case"lower-alpha":case"lower-latin":return"a";default:return null}}const TL=Qi.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>{const e=t.getAttribute("type");if(e)return e;const n=t.getAttribute("style");if(n){const r=EM(n);if(r)return r}const s=t.querySelector("li");if(s){const r=s.getAttribute("style");if(r){const a=EM(r);if(a)return a}}return null}}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,type:n,...s}=t,r=on(this.options.HTMLAttributes,s);return e!==1&&(r.start=e),n&&n!=="1"&&(r.type=n),["ol",r,0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{if(t.type!=="list"||!t.ordered)return[];const n=t.start||1,s=t.typeMarker,r=t.items?hJ(t.items,e):[],a={};return n!==1&&(a.start=n),s&&(a.type=s),Object.keys(a).length>0?{type:"orderedList",attrs:a,content:r}:{type:"orderedList",content:r}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,` 223`):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>-1,tokenize:(t,e,n)=>{var s,r;const a=t.split(` 224`),[l,c]=cJ(a);if(l.length===0)return;const u=CL(l,l[0].indent,n);if(u.length!==0)return{type:"list",ordered:!0,start:((s=l[0])===null||s===void 0?void 0:s.number)||1,typeMarker:(r=l[0])===null||r===void 0?void 0:r.type,items:u,raw:a.slice(0,c).join(` 225`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(fJ,this.editor.getAttributes(_M)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}
225,addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new ln({props:{handlePaste:(t,e)=>{var n,s;const r=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text/html");if(r?.trim())return!1;const a=(s=e.clipboardData)===null||s===void 0?void 0:s.getData("text/plain");if(!a)return!1;const l=uJ(a);if(!l)return!1;try{const c=t.state.schema.nodeFromJSON(l),u=t.state.tr.replaceSelectionWith(c);return t.dispatch(u),!0}catch{return!1}}}})]},addInputRules(){const t=(n,s)=>(!s.attrs.type||s.attrs.type==="1")&&s.childCount+s.attrs.start===+n[1];let e=hh({find:jM,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:t});return(this.options.keepMarks||this.options.keepAttributes)&&(e=hh({find:jM,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:n=>({start:+n[1],...this.editor.getAttributes(_M)}),joinPredicate:t,editor:this.editor})),[e]}}),mJ=/^\s*(\[([( |x])?\])\s$/,pJ="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0",gJ=(t,e,n)=>{var s;return(n==null||(s=n.checkboxLabel)===null||s===void 0?void 0:s.call(n,t,e))||`Task item checkbox for ${t.textContent||"empty task item"}`},xJ=Qi.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:t=>{var e;return(e=t.querySelector("div"))!==null&&e!==void 0?e:t}}]},renderHTML({node:t,HTMLAttributes:e}){return["li",on(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const s=e.parseChildren(t.nestedTokens);n.push(...s)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const s=`- [${!((n=t.attrs)===null||n===void 0)&&n.checked?"x":" "}] `;return $D(t,e,s)},addExtensions(){return this.options.nested?[wL(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:s})=>{const r=document.createElement("li"),a=document.createElement("label"),l=document.createElement("span"),c=document.createElement("input"),u=document.createElement("div");l.style.cssText=pJ;const f=g=>{const x=gJ(g,g.attrs.checked,this.options.a11y);c.setAttribute("aria-label",x),l.textContent=x};f(t),a.contentEditable="false",c.type="checkbox",c.addEventListener("mousedown",g=>g.preventDefault()),c.addEventListener("change",g=>{if(!s.isEditable&&!this.options.onReadOnlyChecked){c.checked=!c.checked;return}const{checked:x}=g.target;s.isEditable&&typeof n=="function"&&s.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:b})=>{const v=n();if(typeof v!="number")return!1;const w=b.doc.nodeAt(v);return b.setNodeMarkup(v,void 0,{...w?.attrs,checked:x}),!0}).run(),!s.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,x)||(c.checked=!c.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([g,x])=>{r.setAttribute(g,x)}),r.dataset.checked=t.attrs.checked,c.checked=t.attrs.checked,a.append(c,l),r.append(a,u),Object.entries(e).forEach(([g,x])=>{r.setAttribute(g,x)});let m=new Set(Object.keys(e));return{dom:r,contentDOM:u,update:g=>
225{if(g.type!==this.type)return!1;r.dataset.checked=g.attrs.checked,c.checked=g.attrs.checked,f(g);const x=s.extensionManager.attributes,b=uh(g,x),v=new Set(Object.keys(b)),w=this.options.HTMLAttributes;return m.forEach(N=>{v.has(N)||(N in w?r.setAttribute(N,w[N]):r.removeAttribute(N))}),Object.entries(b).forEach(([N,_])=>{_==null?N in w?r.setAttribute(N,w[N]):r.removeAttribute(N):r.setAttribute(N,_)}),m=v,!0}}}},addInputRules(){return[hh({find:mJ,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),yJ=Qi.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",on(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,` 226`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))===null||e===void 0?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const s=a=>{const l=eM(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:c=>({indentLevel:c[1].length,mainContent:c[4],checked:c[3].toLowerCase()==="x"}),createToken:(c,u)=>({type:"taskItem",raw:"",mainContent:c.mainContent,indentLevel:c.indentLevel,checked:c.checked,text:c.mainContent,tokens:n.inlineTokens(c.mainContent),nestedTokens:u}),customNestedParser:s},n);if(l){const c={type:"taskList",raw:l.raw,items:l.items},u=a.slice(l.raw.length);return u.trim()?[c,...n.blockTokens(u)]:[c]}return n.blockTokens(a)},r=eM(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:s},n);if(r)return{type:"taskList",raw:r.raw,items:r.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Yt.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(vL.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(jL.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(kL.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(TL.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(xJ.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(yJ.configure(this.options.taskList)),t}});const Ox=" ",Xw="Â ",bJ=Qi.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",on(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const s=e.parseInline(n);return n.length===1&&n[0].type==="text"&&(n[0].raw===Ox||n[0].text===Ox||n[0].raw===Xw||n[0].text===Xw)&&s.length===1&&s[0].type==="text"&&(s[0].text===Ox||s[0].text===Xw)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,s)},renderMarkdown:(t,e,n)=>{if(!t)return"";const s=Array.isArray(t.content)?t.content:[];if(s.length===0){var r,a;const l=Array.isArray(n==null||(r=n.previousNode)===null||r===void 0?void 0:r.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)===null||a===void 0?void 0:a.type)==="paragraph"&&l.length===0?Ox:""}return e.renderChildren(s)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),vJ=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,wJ=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,NJ=al.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",on(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>
vendor: 6,498 bytes, line 226
226e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[cc({find:vJ,type:this.type})]},addPasteRules(){return[el({find:wJ,type:this.type})]}}),SJ=Qi.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),AL=al.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",on(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const s=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!s)return;const r=s[2].trim();return{type:"underline",raw:s[0],text:r,tokens:n.inlineTokens(r)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function _J(t={}){return new ln({view(e){return new jJ(e,t)}})}class jJ{constructor(e,n){var s;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=(s=n.width)!==null&&s!==void 0?s:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let a=l=>{this[r](l)};return e.dom.addEventListener(r,a),{name:r,handler:a}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){if(this.cursorPos!=null&&n.doc!=e.state.doc)if(this.lastDragEvent){let s=this.computeTarget(this.lastDragEvent);s==this.cursorPos?this.updateOverlay():this.setCursor(s)}else this.updateOverlay()}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,s,r=this.editorView.dom,a=r.getBoundingClientRect(),l=a.width/r.offsetWidth,c=a.height/r.offsetHeight;if(n){let g=e.nodeBefore,x=e.nodeAfter;if(g||x){let b=this.editorView.nodeDOM(this.cursorPos-(g?g.nodeSize:0));if(b){let v=b.getBoundingClientRect(),w=g?v.bottom:v.top;g&&x&&(w=(w+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let N=this.width/2*c;s={left:v.left,right:v.right,top:w-N,bottom:w+N}}}}if(!s){let g=this.editorView.coordsAtPos(this.cursorPos),x=this.width/2*l;s={left:g.left-x,right:g.left+x,top:g.top,bottom:g.bottom}}let u=this.editorView.dom.offsetParent;this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let f,m;if(!u||u==document.body&&getComputedStyle(u).position=="static")f=-pageXOffset,m=-pageYOffset;else{let g=u.getBoundingClientRect(),x=g.width/u.offsetWidth,b=g.height/u.offsetHeight;f=g.left-u.scrollLeft*x,m=g.top-u.scrollTop*b}this.element.style.left=(s.left-f)/l+"px",this.element.style.top=(s.top-m)/c+"px",this.element.style.width=(s.right-s.left)/l+"px",this.element.style.height=(s.bottom-s.top)/c+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),s=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=s&&s.type.spec.disableDropCursor,a=typeof r=="function"?r(this.editorView,n,e):r;if(!n||a)return null;let l=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let c=fO(this.editorView.state.doc,l,this.editorView.dragging.slice);c!=null&&(l=c)}return l}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let n=this.computeTarget(e);n!=null&&(this.setCursor(n),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class ti extends it{constructor(e){super(e,e)}map(e,n){let s=e.resolve(n.map(this.head));return ti.valid(s)?new ti(s):it.near(s)}content(){return De.empty}eq(e){return e instanceof ti&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ti(e.resolve(n.pos))}getBookmark(){return new F_(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!EJ(e)||!kJ(e))return!1;let s=n.type.spec.allowGapCursor;if(s!=null)return s;let r=n.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,n,s=!1){e:for(;;){if(!s&&ti.valid(e))return e;let r=e.pos,a=null;for(let l=e.depth;;l--){let c=e.node(l);if(n>0?e.indexAfter(l)<c.childCount:e.index(l)>0){a=c.child(n>0?e.indexAfter(l):e.index(l)-1);break}else if(l==0)return null;r+=n;let u=e.doc.resolve(r);if(ti.valid(u))return u}for(;;){let l=n>0?a.firstChild:a.lastChild;if(!l){if(a.isAtom&&!a.isText&&!Ye.isSelectable(a)){e=e.doc.resolve(r+a.nodeSize*n),s=!1;continue e}break}a=l,r+=n;let c=e.doc.resolve(r);if(ti.valid(c))return c}return null}}}ti.prototype.visible=!1;ti.findFrom=ti.findGapCursorFrom;it.jsonID("gapcursor",ti);class F_{constructor(e){this.pos=e}map(e){return new F_(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ti.valid(n)?new ti(n):it.near(n)}}function ML(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function EJ(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),s=t.node(e);if(n==0){if(s.type.spec.isolating)return!0;continue}for(let r=s.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||ML(r.type))return!0;
vendor: 10,534 bytes, line 226
226if(r.inlineContent)return!1}}return!0}function kJ(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),s=t.node(e);if(n==s.childCount){if(s.type.spec.isolating)return!0;continue}for(let r=s.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||ML(r.type))return!0;if(r.inlineContent)return!1}}return!0}function CJ(){return new ln({props:{decorations:RJ,createSelectionBetween(t,e,n){return e.pos==n.pos&&ti.valid(n)?new ti(n):null},handleClick:AJ,handleKeyDown:TJ,handleDOMEvents:{beforeinput:MJ}}})}const TJ=v_({ArrowLeft:Dx("horiz",-1),ArrowRight:Dx("horiz",1),ArrowUp:Dx("vert",-1),ArrowDown:Dx("vert",1)});function Dx(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(s,r,a){let l=s.selection,c=e>0?l.$to:l.$from,u=l.empty;if(l instanceof Ue){if(!a.endOfTextblock(n)||c.depth==0)return!1;u=!1,c=s.doc.resolve(e>0?c.after():c.before())}let f=ti.findGapCursorFrom(c,e,u);return f?(r&&r(s.tr.setSelection(new ti(f))),!0):!1}}function AJ(t,e,n){if(!t||!t.editable)return!1;let s=t.state.doc.resolve(e);if(!ti.valid(s))return!1;let r=t.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&Ye.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ti(s))),!0)}function MJ(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ti))return!1;let{$from:n}=t.state.selection,s=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!s)return!1;let r=be.empty;for(let l=s.length-1;l>=0;l--)r=be.from(s[l].createAndFill(null,r));let a=t.state.tr.replace(n.pos,n.pos,new De(r,0,0));return a.setSelection(Ue.near(a.doc.resolve(n.pos+1))),t.dispatch(a),!1}function RJ(t){if(!(t.selection instanceof ti))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Ot.create(t.doc,[Bi.widget(t.selection.head,e,{key:"gapcursor"})])}var Wy=200,Zi=function(){};Zi.prototype.append=function(e){return e.length?(e=Zi.from(e),!this.length&&e||e.length<Wy&&this.leafAppend(e)||this.length<Wy&&e.leafPrepend(this)||this.appendInner(e)):this};Zi.prototype.prepend=function(e){return e.length?Zi.from(e).append(this):this};Zi.prototype.appendInner=function(e){return new OJ(this,e)};Zi.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Zi.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};Zi.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Zi.prototype.forEach=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length),n<=s?this.forEachInner(e,n,s,0):this.forEachInvertedInner(e,n,s,0)};Zi.prototype.map=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length);var r=[];return this.forEach(function(a,l){return r.push(e(a,l))},n,s),r};Zi.from=function(e){return e instanceof Zi?e:e&&e.length?new RL(e):Zi.empty};var RL=(function(t){function e(s){t.call(this),this.values=s}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,a){return r==0&&a==this.length?this:new e(this.values.slice(r,a))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,a,l,c){for(var u=a;u<l;u++)if(r(this.values[u],c+u)===!1)return!1},e.prototype.forEachInvertedInner=function(r,a,l,c){for(var u=a-1;u>=l;u--)if(r(this.values[u],c+u)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=Wy)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=Wy)return new e(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Zi);Zi.empty=new RL([]);var OJ=(function(t){function e(n,s){t.call(this),this.left=n,this.right=s,this.length=n.length+s.length,this.depth=Math.max(n.depth,s.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(s){return s<this.left.length?this.left.get(s):this.right.get(s-this.left.length)},e.prototype.forEachInner=function(s,r,a,l){var c=this.left.length;if(r<c&&this.left.forEachInner(s,r,Math.min(a,c),l)===!1||a>c&&this.right.forEachInner(s,Math.max(r-c,0),Math.min(this.length,a)-c,l+c)===!1)return!1},e.prototype.forEachInvertedInner=function(s,r,a,l){var c=this.left.length;if(r>c&&this.right.forEachInvertedInner(s,r-c,Math.max(a,c)-c,l+c)===!1||a<c&&this.left.forEachInvertedInner(s,Math.min(r,c),a,l)===!1)return!1},e.prototype.sliceInner=function(s,r){if(s==0&&r==this.length)return this;var a=this.left.length;return r<=a?this.left.slice(s,r):s>=a?this.right.slice(s-a,r-a):this.left.slice(s,a).append(this.right.slice(0,r-a))},e.prototype.leafAppend=function(s){var r=this.right.leafAppend(s);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(s){var r=this.left.leafPrepend(s);if(r)return new e(r,this.right)},e.prototype.appendInner=function(s){return this.left.depth>=Math.max(this.right.depth,s.depth)+1?new e(this.left,new e(this.right,s)):new e(this,s)},e})(Zi);const DJ=500;class Oa{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}let r,a;n&&(r=this.remapping(s,this.items.length),a=r.maps.length);let l=e.tr,c,u,f=[],m=[];return this.items.forEach((g,x)=>{if(!g.step){r||(r=this.remapping(s,x+1),a=r.maps.length),a--,m.push(g);return}if(r){m.push(new Ja(g.map));let b=g.step.map(r.slice(a)),v;b&&l.maybeStep(b).doc&&(v=l.mapping.maps[l.mapping.maps.length-1],f.push(new Ja(v,void 0,void 0,f.length+m.length))),a--,v&&r.appendMap(v,a)}else l.maybeStep(g.step);if(g.selection)return c=r?g.selection.map(r.slice(a)):g.selection,u=new Oa(this.items.slice(0,s).append(m.reverse().concat(f)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:l,selection:c}}addTransform(e,n,s,r){let a=[],l=this.eventCount,c=this.items,u=!r&&c.length?c.get(c.length-1):null;for(let m=0;m<e.steps.length;m++){let g=e.steps[m].invert(e.docs[m]),x=new Ja(e.mapping.maps[m],g,n),b;(b=u&&u.merge(x))&&(x=b,m?a.pop():c=c.slice(0,c.length-1)),a.push(x),n&&(l++,n=void 0),r||(u=x)}let f=l-s.depth;return f>IJ&&(c=LJ(c,f),l-=f),new Oa(c.append(a),l)}remapping(e,n){let s=new ep;return this.items.forEach((r,a)=>{let l=r.mirrorOffset!=null&&a-r.mirrorOffset>=e?s.maps.length-r.mirrorOffset:void 0;s.appendMap(r.map,l)},e,n),s}addMaps(e){return this.eventCount==0?this:new Oa(this.items.append(e.map(n=>new Ja(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let s=[],r=Math.max(0,this.items.length-n),a=e.mapping,l=e.steps.length,c=this.eventCount;this.items.forEach(x=>{x.selection&&c--},r);let u=n;this.items.forEach(x=>{let b=a.getMirror(--u);if(b==null)return;l=Math.min(l,b);let v=a.maps[b];if(x.step){let w=e.steps[b].invert(e.docs[b]),N=x.selection&&x.selection.map(a.slice(u+1,b));N&&c++,s.push(new Ja(v,w,N))}else s.push(new Ja(v))},r);let f=[];for(let x=n;x<l;x++)f.push(new Ja(a.maps[x]));let m=this.items.slice(0,r).append(f).append(s),g=new Oa(m,c);return g.emptyItemCount()>DJ&&(g=g.compress(this.items.length-s.length)),g}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),s=n.maps.length,r=[],a=0;return this.items.forEach((l,c)=>{if(c>=e)r.push(l),l.selection&&a++;else if(l.step){let u=l.step.map(n.slice(s)),f=u&&u.getMap();if(s--,f&&n.appendMap(f,s),u){let m=l.selection&&l.selection.map(n.slice(s));m&&a++;let g=new Ja(f.invert(),u,m),x,b=r.length-1;(x=r.length&&r[b].merge(g))?r[b]=x:r.push(g)}}else l.map&&s--},this.items.length,0),new Oa(Zi.from(r.reverse()),a)}}Oa.empty=new Oa(Zi.empty,0);function LJ(t,e){let n;return t.forEach((s,r)=>{if(s.selection&&e--==0)return n=r,!1}),t.slice(n)}class Ja{constructor(e,n,s,r){this.map=e,this.step=n,this.selection=s,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Ja(n.getMap().invert(),n,this.selection)}}}class Ul{constructor(e,n,s,r,a){this.done=e,this.undone=n,this.prevRanges=s,this.prevTime=r,this.prevComposition=a}}const IJ=20;function PJ(t,e,n,s){let r=n.getMeta(hd),a;if(r)return r.historyState;n.getMeta(FJ)&&(t=new Ul(t.done,t.undone,null,0,-1));let l=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(l&&l.getMeta(hd))return l.getMeta(hd).redo?new Ul(t.done.addTransform(n,void 0,s,R0(e)),t.undone,kM(n.mapping.maps),t.prevTime,t.prevComposition):new Ul(t.done,t.undone.addTransform(n,void 0,s,R0(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(l&&l.getMeta("addToHistory")===!1)){let c=n.getMeta("composition"),u=t.prevTime==0||!l&&t.prevComposition!=c&&(t.prevTime<(n.time||0)-s.newGroupDelay||!BJ(n,t.prevRanges)),f=l?Zw(t.prevRanges,n.mapping):kM(n.mapping.maps);return new Ul(t.done.addTransform(n,u?e.selection.getBookmark():void 0,s,R0(e)),Oa.empty,f,n.time,c??t.prevComposition)}else return(a=n.getMeta("rebased"))?new Ul(t.done.rebased(n,a),t.undone.rebased(n,a),Zw(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Ul(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Zw(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function BJ(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((s,r)=>{for(let a=0;a<e.length;a+=2)s<=e[a+1]&&r>=e[a]&&(n=!0)}),n}function kM(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((s,r,a,l)=>e.push(a,l));return e}function Zw(t,e){if(!t)return null;let n=[];for(let s=0;s<t.length;s+=2){let r=e.map(t[s],1),a=e.map(t[s+1],-1);r<=a&&n.push(r,a)}return n}function zJ(t,e,n){let s=R0(e),r=hd.get(e).spec.config,a=(n?t.undone:t.done).popEvent(e,s);if(!a)return null;let l=a.selection.resolve(a.transform.doc),c=(n?t.done:t.undone).addTransform(a.transform,e.selection.getBookmark(),r,s),u=new Ul(n?c:a.remaining,n?a.remaining:c,null,0,-1);return a.transform.setSelection(l).setMeta(hd,{redo:n,historyState:u})}let Jw=!1,CM=null;function R0(t){let e=t.plugins;if(CM!=e){Jw=!1,CM=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Jw=!0;break}}return Jw}const hd=new Fn("history"),FJ=new Fn("closeHistory");function HJ(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500}
226,new ln({key:hd,state:{init(){return new Ul(Oa.empty,Oa.empty,null,0,-1)},apply(e,n,s){return PJ(n,s,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let s=n.inputType,r=s=="historyUndo"?DL:s=="historyRedo"?LL:null;return!r||!e.editable?!1:(n.preventDefault(),r(e.state,e.dispatch))}}}})}function OL(t,e){return(n,s)=>{let r=hd.getState(n);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(s){let a=zJ(r,n,t);a&&s(e?a.scrollIntoView():a)}return!0}}const DL=OL(!1,!0),LL=OL(!0,!0),$J=Yt.create({name:"characterCount",addOptions(){return{limit:null,autoTrim:!0,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const n=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(n)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new ln({key:new Fn("characterCount"),appendTransaction:(e,n,s)=>{if(t)return;const r=this.options.limit,a=this.options.autoTrim;if(r==null||r===0||a===!1){t=!0;return}const l=this.storage.characters({node:s.doc});if(l>r){const c=l-r,u=0,f=c;console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);const m=s.tr.deleteRange(u,f);return t=!0,m}t=!0},filterTransaction:(e,n)=>{const s=this.options.limit;if(!e.docChanged||s===0||s===null||s===void 0)return!0;const r=this.storage.characters({node:n.doc}),a=this.storage.characters({node:e.doc});if(a<=s||r>s&&a>s&&a<=r)return!0;if(r>s&&a>s&&a>r||!e.getMeta("paste"))return!1;const l=e.selection.$head.pos,c=l-(a-s),u=l;return e.deleteRange(c,u),!(this.storage.characters({node:e.doc})>s)}})]}}),UJ=Yt.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[_J(this.options)]}});Yt.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new ln({key:new Fn("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:s}=this.editor,{anchor:r}=e,a=[];if(!n||!s)return Ot.create(t,[]);let l=0;this.options.mode==="deepest"&&t.descendants((u,f)=>{if(!u.isText){if(!(r>=f&&r<=f+u.nodeSize-1))return!1;l+=1}});let c=0;return t.descendants((u,f)=>{if(u.isText||!(r>=f&&r<=f+u.nodeSize-1))return!1;if(c+=1,this.options.mode==="deepest"&&l-c>0||this.options.mode==="shallowest"&&c>1)return this.options.mode==="deepest";a.push(Bi.node(f,f+u.nodeSize,{class:this.options.className}))}),Ot.create(t,a)}}})]}});const WJ=Yt.create({name:"gapCursor",addProseMirrorPlugins(){return[CJ()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Ut(We(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),IL="placeholder",TM=new Fn("tiptap__placeholder");function PL(t){const{editor:e,placeholder:n,dataAttribute:s,pos:r,node:a,isEmptyDoc:l,hasAnchor:c,classes:{emptyNode:u,emptyEditor:f}}=t,m=[u];return l&&m.push(f),Bi.node(r,r+a.nodeSize,{class:m.join(" "),[s]:typeof n=="function"?n({editor:e,node:a,pos:r,hasAnchor:c}):n})}function BL(t,e){return typeof t=="function"?t(e):t}function zL({editor:t,options:e,dataAttribute:n,doc:s,selection:r,from:a,to:l}){const{anchor:c}=r,u=[],f=t.isEmpty;return s.nodesBetween(a,l,(m,g)=>{const x=c>=g&&c<=g+m.nodeSize,b=!m.isLeaf&&zp(m);return m.type.isTextblock&&(x||!e.showOnlyCurrent)&&b&&u.push(PL({editor:t,isEmptyDoc:f,dataAttribute:n,hasAnchor:x,placeholder:e.placeholder,classes:{emptyEditor:e.emptyEditorClass,emptyNode:BL(e.emptyNodeClass,{editor:t,node:m,pos:g,hasAnchor:x})},node:m,pos:g})),e.includeChildren}),u}function FL({editor:t,options:e,dataAttribute:n,doc:s,selection:r}){if(!(t.isEditable||!e.showOnlyWhenEditable))return null;const{anchor:a}=r,l=[],c=t.isEmpty;if(e.showOnlyCurrent&&!e.includeChildren){const u=s.resolve(a),f=u.depth>0?u.node(1):u.nodeAfter,m=u.depth>0?u.before(1):a;if(f&&f.type.isTextblock&&zp(f)){const g=a>
226=m&&a<=m+f.nodeSize;l.push(PL({editor:t,isEmptyDoc:c,dataAttribute:n,hasAnchor:g,placeholder:e.placeholder,classes:{emptyEditor:e.emptyEditorClass,emptyNode:BL(e.emptyNodeClass,{editor:t,node:f,pos:m,hasAnchor:g})},node:f,pos:m}))}}else l.push(...zL({editor:t,options:e,dataAttribute:n,doc:s,selection:r,from:0,to:s.content.size}));return Ot.create(s,l)}function km(t,e){const n=t.resolve(e);if(n.depth===0){var s;const a=(s=n.nodeAfter)!==null&&s!==void 0?s:n.nodeBefore;if(!a)return{from:e,to:e};const l=n.nodeAfter?e:e-a.nodeSize;return{from:l,to:l+a.nodeSize}}const r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function Cm(t,e){return{from:Math.max(0,e.from-1),to:Math.min(t.content.size,e.to-1)}}function VJ(t,e,n){const s=[];return t.forEach((r,a)=>{const l=a,c=l+r.nodeSize,u=l+1,f=c+1;u<n&&f>e&&s.push({from:l,to:c})}),s}function GJ(t){if(t.length===0)return[];const e=[...t].sort((s,r)=>s.from-r.from),n=[{...e[0]}];for(let s=1;s<e.length;s+=1){const r=n[n.length-1],a=e[s];a.from<=r.to?r.to=Math.max(r.to,a.to):n.push({...a})}return n}function qJ(t,e){const n=VJ(t,e.from,e.to);return n.push(Cm(t,km(t,e.from))),e.to>e.from?n.push(Cm(t,km(t,Math.min(e.to,t.content.size+1)-1))):e.from<t.content.size+1&&n.push(Cm(t,km(t,Math.min(e.from+1,t.content.size)))),n}function KJ(t,e,n){const s=[];if(t.docChanged){const r=Lb(t);for(const a of r)s.push(...qJ(n.doc,a.newRange))}return t.selectionSet&&(s.push(Cm(n.doc,km(n.doc,t.mapping.map(e.selection.anchor)))),s.push(Cm(n.doc,km(n.doc,n.selection.anchor)))),GJ(s)}function YJ(t,e,n){const s=Math.max(0,Math.min(t,n.content.size));return{from:s,to:Math.max(s,Math.min(e,n.content.size))}}function XJ({decorations:t,ranges:e,editor:n,options:s,dataAttribute:r,doc:a,selection:l}){let c=t;for(const u of e){const{from:f,to:m}=YJ(u.from,u.to,a),g=c.find(f,m).filter(b=>b.from>=f&&b.to<=m);g.length&&(c=c.remove(g));const x=zL({editor:n,options:s,dataAttribute:r,doc:a,selection:l,from:f,to:m});x.length&&(c=c.add(a,x))}return c}function ZJ({editor:t,options:e,dataAttribute:n}){return{init(s,r){const a=FL({editor:t,options:e,dataAttribute:n,doc:r.doc,selection:r.selection});return a??Ot.empty},apply(s,r,a,l){return!s.docChanged&&!s.selectionSet?r:XJ({decorations:r.map(s.mapping,s.doc),ranges:KJ(s,a,l),editor:t,options:e,dataAttribute:n,doc:l.doc,selection:l.selection})}}}function JJ(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}function QJ({editor:t,options:e}){const n=e.dataAttribute?`data-${JJ(e.dataAttribute)}`:`data-${IL}`,s=e.showOnlyCurrent&&!e.includeChildren;return new ln({key:TM,...s?{}:{state:ZJ({editor:t,options:e,dataAttribute:n})},props:{decorations:s?({doc:r,selection:a})=>FL({editor:t,options:e,dataAttribute:n,doc:r,selection:a}):r=>{var a;return e.showOnlyWhenEditable&&!t.isEditable?Ot.empty:(a=TM.getState(r))!==null&&a!==void 0?a:Ot.empty}}})}const eQ=Yt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:IL,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[QJ({editor:this.editor,options:this.options})]}});function FN(t,e){return!t.selection.empty&&!DD(t.selection)&&e.isEditable}function tQ(t,e){return FN(t,e)&&!e.isFocused&&!e.view.dragging}function nQ(){var t;(t=window.getSelection())===null||t===void 0||t.removeAllRanges()}function iQ(t){t.focus()}Yt.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new ln({key:new Fn("selection"),props:{decorations(n){return tQ(n,t)?Ot.create(n.doc,[Bi.inline(n.selection.from,n.selection.to,{class:e.className})]):null},handleDOMEvents:{blur(n){return FN(n.state,t)&&nQ(),!1},focus(n){return FN(n.state,t)&&requestAnimationFrame(()=>{!t.isDestroyed&&n.hasFocus()&&iQ(n)}),!1}}}})]}});function AM({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}const sQ=Yt.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new Fn(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)===null||t===void 0?void 0:t.name)||"paragraph",s=Object.entries(this.editor.schema.nodes).map(([,r])=>r).filter(r=>(this.options.notAfter||[]).concat(n).includes(r.name));return[new ln({key:e,appendTransaction:(r,a,l)=>{const{doc:c,tr:u,schema:f}=l,m=e.getState(l),g=c.content.size,x=f.nodes[n];if(!r.some(b=>b.getMeta("skipTrailingNode"))&&m)return u.insert(g,x.create())},state:{init:(r,a)=>{const l=a.tr.doc.lastChild;return!AM({node:l,types:s})},apply:(r,a)=>{if(!r.docChanged||r.getMeta("__uniqueIDTransaction"))return a;const l=r.doc.lastChild;return!AM({node:l,types:s})}}})]}}),rQ=Yt.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>DL(t,e),redo:()=>({state:t,dispatch:e})=>LL(t,e)}},addProseMirrorPlugins(){return[HJ(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),aQ=Yt.create({name:"starterKit",addExtensions(){const t=[];
226if(this.options.bold!==!1&&t.push(YX.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(WX.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(vL.configure(this.options.bulletList)),this.options.code!==!1&&t.push(JX.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(rL.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(tZ.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(UJ.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(WJ.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(nZ.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(iZ.configure(this.options.heading)),this.options.undoRedo!==!1&&t.push(rQ.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&t.push(sZ.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(cZ.configure(this.options.italic)),this.options.listItem!==!1&&t.push(jL.configure(this.options.listItem)),this.options.listKeymap!==!1){var e;t.push(kL.configure((e=this.options)===null||e===void 0?void 0:e.listKeymap))}if(this.options.link!==!1){var n;t.push(bL.configure((n=this.options)===null||n===void 0?void 0:n.link))}if(this.options.orderedList!==!1&&t.push(TL.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(bJ.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(NJ.configure(this.options.strike)),this.options.text!==!1&&t.push(SJ.configure(this.options.text)),this.options.underline!==!1){var s;t.push(AL.configure((s=this.options)===null||s===void 0?void 0:s.underline))}if(this.options.trailingNode!==!1){var r;t.push(sQ.configure((r=this.options)===null||r===void 0?void 0:r.trailingNode))}return t}});var oQ=aQ;const lQ=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,cQ=Qi.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",on(this.options.HTMLAttributes,t)]},parseMarkdown:(t,e)=>e.createNode("image",{src:t.href,title:t.title,alt:t.text}),renderMarkdown:t=>{var e,n,s,r,a,l;const c=(e=(n=t.attrs)===null||n===void 0?void 0:n.src)!==null&&e!==void 0?e:"",u=(s=(r=t.attrs)===null||r===void 0?void 0:r.alt)!==null&&s!==void 0?s:"",f=(a=(l=t.attrs)===null||l===void 0?void 0:l.title)!==null&&a!==void 0?a:"";return f?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:t,minWidth:e,minHeight:n,alwaysPreserveAspectRatio:s}=this.options.resize,r=new Set(["src","width","height"]);return({node:a,getPos:l,HTMLAttributes:c,editor:u})=>{const f=document.createElement("img");f.draggable=!1;const m=on(this.options.HTMLAttributes,c);Object.entries(m).forEach(([_,E])=>{if(E!=null)switch(_){case"src":case"width":case"height":break;default:f.setAttribute(_,E)}}),m.src!==null&&(f.src=m.src);let g={...c};const x=_=>{if(typeof _=="string"&&_!==""){f.getAttribute("src")!==_&&(f.src=_);return}f.hasAttribute("src")&&f.removeAttribute("src"),f.src!==""&&(f.src="")};x(c.src);const b=_=>{if(_.type!==a.type)return!1;const E=u.extensionManager.attributes.filter(C=>C.type===_.type.name),k=uh(_,E);return Object.keys(g).forEach(C=>{!r.has(C)&&!(C in k)&&f.removeAttribute(C)}),Object.entries(k).forEach(([C,A])=>{r.has(C)||(A!=null?f.setAttribute(C,A):f.removeAttribute(C))}),x(k.src),g=k,!0},v=new PY({element:f,editor:u,node:a,getPos:l,onResize:(_,E)=>{f.style.width=`${_}px`,f.style.height=`${E}px`},onCommit:(_,E)=>{const k=l();k!==void 0&&this.editor.chain().setNodeSelection(k).updateAttributes(this.name,{width:_,height:E}).run()},onUpdate:b,options:{directions:t,min:{width:e,height:n},preserveAspectRatio:s===!0}}),w=v.dom,N=()=>{w.style.visibility="",w.style.pointerEvents=""};
226return w.style.visibility="hidden",w.style.pointerEvents="none",f.complete&&f.naturalWidth>0?N():(f.onload=N,f.onerror=N),v}},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[qD({find:lQ,type:this.type,getAttributes:t=>{const[,,e,n,s]=t;return{src:n,alt:e,title:s}}})]}});let HN,$N;if(typeof WeakMap<"u"){let t=new WeakMap;HN=e=>t.get(e),$N=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;HN=s=>{for(let r=0;r<t.length;r+=2)if(t[r]==s)return t[r+1]},$N=(s,r)=>(n==10&&(n=0),t[n++]=s,t[n++]=r)}var ni=class{constructor(t,e,n,s){this.width=t,this.height=e,this.map=n,this.problems=s}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const s=e%this.width,r=e/this.width|0;let a=s+1,l=r+1;for(let c=1;a<this.width&&this.map[e+c]==n;c++)a++;for(let c=1;l<this.height&&this.map[e+this.width*c]==n;c++)l++;return{left:s,top:r,right:a,bottom:l}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:s,right:r,top:a,bottom:l}=this.findCell(t);return e=="horiz"?(n<0?s==0:r==this.width)?null:this.map[a*this.width+(n<0?s-1:r)]:(n<0?a==0:l==this.height)?null:this.map[s+this.width*(n<0?a-1:l)]}rectBetween(t,e){const{left:n,right:s,top:r,bottom:a}=this.findCell(t),{left:l,right:c,top:u,bottom:f}=this.findCell(e);return{left:Math.min(n,l),top:Math.min(r,u),right:Math.max(s,c),bottom:Math.max(a,f)}}cellsInRect(t){const e=[],n={};for(let s=t.top;s<t.bottom;s++)for(let r=t.left;r<t.right;r++){const a=s*this.width+r,l=this.map[a];n[l]||(n[l]=!0,!(r==t.left&&r&&this.map[a-1]==l||s==t.top&&s&&this.map[a-this.width]==l)&&e.push(l))}return e}positionAt(t,e,n){for(let s=0,r=0;;s++){const a=r+n.child(s).nodeSize;if(s==t){let l=e+t*this.width;const c=(t+1)*this.width;for(;l<c&&this.map[l]<r;)l++;return l==c?a-1:this.map[l]}r=a}}static get(t){return HN(t)||$N(t,dQ(t))}};function dQ(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=uQ(t),n=t.childCount,s=[];let r=0,a=null;const l=[];for(let f=0,m=e*n;f<m;f++)s[f]=0;for(let f=0,m=0;f<n;f++){const g=t.child(f);m++;for(let v=0;;v++){for(;r<s.length&&s[r]!=0;)r++;if(v==g.childCount)break;const w=g.child(v),{colspan:N,rowspan:_,colwidth:E}=w.attrs;for(let k=0;k<_;k++){if(k+f>=n){(a||(a=[])).push({type:"overlong_rowspan",pos:m,n:_-k});break}const C=r+k*e;for(let A=0;A<N;A++){s[C+A]==0?s[C+A]=m:(a||(a=[])).push({type:"collision",row:f,pos:m,n:N-A});const L=E&&E[A];if(L){const M=(C+A)%e*2,O=l[M];O==null||O!=L&&l[M+1]==1?(l[M]=L,l[M+1]=1):O==L&&l[M+1]++}}}r+=N,m+=w.nodeSize}const x=(f+1)*e;let b=0;for(;r<x;)s[r++]==0&&b++;b&&(a||(a=[])).push({type:"missing",row:f,n:b}),m++}(e===0||n===0)&&(a||(a=[])).push({type:"zero_sized"});const c=new ni(e,n,s,a);let u=!1;for(let f=0;!u&&f<l.length;f+=2)l[f]!=null&&l[f+1]<n&&(u=!0);return u&&hQ(c,l,t),c}function uQ(t){let e=-1,n=!1;for(let s=0;s<t.childCount;s++){const r=t.child(s);let a=0;if(n)for(let l=0;l<s;l++){const c=t.child(l);for(let u=0;u<c.childCount;u++){const f=c.child(u);l+f.attrs.rowspan>s&&(a+=f.attrs.colspan)}}for(let l=0;l<r.childCount;l++){const c=r.child(l);a+=c.attrs.colspan,c.attrs.rowspan>1&&(n=!0)}e==-1?e=a:e!=a&&(e=Math.max(e,a))}return e}function hQ(t,e,n){t.problems||(t.problems=[]);const s={};for(let r=0;r<t.map.length;r++){const a=t.map[r];if(s[a])continue;s[a]=!0;const l=n.nodeAt(a);if(!l)throw new RangeError(`No cell with offset ${a} found`);let c=null;const u=l.attrs;for(let f=0;f<u.colspan;f++){const m=e[(r+f)%t.width*2];m!=null&&(!u.colwidth||u.colwidth[f]!=m)&&((c||(c=fQ(u)))[f]=m)}c&&t.problems.unshift({type:"colwidth mismatch",pos:a,colwidth:c})}}function fQ(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function Ls(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const n in t.nodes){const s=t.nodes[n],r=s.spec.tableRole;r&&(e[r]=s)}}return e}const Vl=new Fn("selectingCells");function Cd(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function mQ(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function Ha(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function Fb(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=Cd(e.$head)||pQ(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function pQ(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const s=e.type.spec.tableRole;if(s=="cell"||s=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const s=e.type.spec.tableRole;if(s=="cell"||s=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function UN(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function gQ(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function H_(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function HL(t,e,n){const s=t.node(-1),r=ni.get(s),a=t.start(-1),l=r.nextCell(t.pos-a,e,n);return l==null?null:t.node(0).resolve(a+l)}function Td(t,e,n=1){const s={...t,colspan:t.colspan-n};return s.colwidth&&(s.colwidth=s.colwidth.slice(),s.colwidth.splice(e,n),s.colwidth.some(r=>r>0)||(s.colwidth=null)),s}function $L(t,e,n=1){const s={...t,colspan:t.colspan+n};if(s.colwidth){s.colwidth=s.colwidth.slice();for(let r=0;r<n;r++)s.colwidth.splice(e,0,0)}return s}function xQ(t,e,n){const s=Ls(e.type.schema).header_cell;for(let r=0;r<t.height;r++)if(e.nodeAt(t.map[n+r*t.width]).type!=s)return!1;return!0}var En=class Io extends it{constructor(e,n=e){const s=e.node(-1),r=ni.get(s),a=e.start(-1),l=r.rectBetween(e.pos-a,n.pos-a),c=e.node(0),u=r.cellsInRect(l).filter(m=>m!=n.pos-a);u.unshift(n.pos-a);const f=u.map(m=>{const g=s.nodeAt(m);
vendor: 4,579 bytes, line 226
226if(!g)throw new RangeError(`No cell with offset ${m} found`);const x=a+m+1;return new yO(c.resolve(x),c.resolve(x+g.content.size))});super(f[0].$from,f[0].$to,f),this.$anchorCell=e,this.$headCell=n}map(e,n){const s=e.resolve(n.map(this.$anchorCell.pos)),r=e.resolve(n.map(this.$headCell.pos));if(UN(s)&&UN(r)&&H_(s,r)){const a=this.$anchorCell.node(-1)!=s.node(-1);return a&&this.isRowSelection()?Io.rowSelection(s,r):a&&this.isColSelection()?Io.colSelection(s,r):new Io(s,r)}return Ue.between(s,r)}content(){const e=this.$anchorCell.node(-1),n=ni.get(e),s=this.$anchorCell.start(-1),r=n.rectBetween(this.$anchorCell.pos-s,this.$headCell.pos-s),a={},l=[];for(let u=r.top;u<r.bottom;u++){const f=[];for(let m=u*n.width+r.left,g=r.left;g<r.right;g++,m++){const x=n.map[m];if(a[x])continue;a[x]=!0;const b=n.findCell(x);let v=e.nodeAt(x);if(!v)throw new RangeError(`No cell with offset ${x} found`);const w=r.left-b.left,N=b.right-r.right;if(w>0||N>0){let _=v.attrs;if(w>0&&(_=Td(_,0,w)),N>0&&(_=Td(_,_.colspan-N,N)),b.left<r.left){if(v=v.type.createAndFill(_),!v)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(_)}`)}else v=v.type.create(_,v.content)}if(b.top<r.top||b.bottom>r.bottom){const _={...v.attrs,rowspan:Math.min(b.bottom,r.bottom)-Math.max(b.top,r.top)};b.top<r.top?v=v.type.createAndFill(_):v=v.type.create(_,v.content)}f.push(v)}l.push(e.child(u).copy(be.from(f)))}const c=this.isColSelection()&&this.isRowSelection()?e:l;return new De(be.from(c),1,1)}replace(e,n=De.empty){const s=e.steps.length,r=this.ranges;for(let l=0;l<r.length;l++){const{$from:c,$to:u}=r[l],f=e.mapping.slice(s);e.replace(f.map(c.pos),f.map(u.pos),l?De.empty:n)}const a=it.findFrom(e.doc.resolve(e.mapping.slice(s).map(this.to)),-1);a&&e.setSelection(a)}replaceWith(e,n){this.replace(e,new De(be.from(n),0,0))}forEachCell(e){const n=this.$anchorCell.node(-1),s=ni.get(n),r=this.$anchorCell.start(-1),a=s.cellsInRect(s.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let l=0;l<a.length;l++)e(n.nodeAt(a[l]),r+a[l])}isColSelection(){const e=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(e,n)>0)return!1;const s=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(s,r)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const s=e.node(-1),r=ni.get(s),a=e.start(-1),l=r.findCell(e.pos-a),c=r.findCell(n.pos-a),u=e.node(0);return l.top<=c.top?(l.top>0&&(e=u.resolve(a+r.map[l.left])),c.bottom<r.height&&(n=u.resolve(a+r.map[r.width*(r.height-1)+c.right-1]))):(c.top>0&&(n=u.resolve(a+r.map[c.left])),l.bottom<r.height&&(e=u.resolve(a+r.map[r.width*(r.height-1)+l.right-1]))),new Io(e,n)}isRowSelection(){const e=this.$anchorCell.node(-1),n=ni.get(e),s=this.$anchorCell.start(-1),r=n.colCount(this.$anchorCell.pos-s),a=n.colCount(this.$headCell.pos-s);if(Math.min(r,a)>0)return!1;const l=r+this.$anchorCell.nodeAfter.attrs.colspan,c=a+this.$headCell.nodeAfter.attrs.colspan;return Math.max(l,c)==n.width}eq(e){return e instanceof Io&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const s=e.node(-1),r=ni.get(s),a=e.start(-1),l=r.findCell(e.pos-a),c=r.findCell(n.pos-a),u=e.node(0);return l.left<=c.left?(l.left>0&&(e=u.resolve(a+r.map[l.top*r.width])),c.right<r.width&&(n=u.resolve(a+r.map[r.width*(c.top+1)-1]))):(c.left>0&&(n=u.resolve(a+r.map[c.top*r.width])),l.right<r.width&&(e=u.resolve(a+r.map[r.width*(l.top+1)-1]))),new Io(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new Io(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,s=n){return new Io(e.resolve(n),e.resolve(s))}getBookmark(){return new yQ(this.$anchorCell.pos,this.$headCell.pos)}};En.prototype.visible=!1;it.jsonID("cell",En);var yQ=class UL{constructor(e,n){this.anchor=e,this.head=n}map(e){return new UL(e.map(this.anchor),e.map(this.head))}resolve(e){const n=e.resolve(this.anchor),s=e.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&s.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&s.index()<s.parent.childCount&&H_(n,s)?new En(n,s):it.near(s,1)}};function bQ(t){if(!(t.selection instanceof En))return null;const e=[];return t.selection.forEachCell((n,s)=>{e.push(Bi.node(s,s+n.nodeSize,{class:"selectedCell"}))}),Ot.create(t.doc,e)}function vQ({$from:t,$to:e}){if(t.pos==e.pos||t.pos<e.pos-6)return!1;let n=t.pos,s=e.pos,r=t.depth;for(;r>=0&&!(t.after(r+1)<t.end(r));r--,n++);for(let a=e.depth;a>=0&&!(e.before(a+1)>e.start(a));a--,s--);
226return n==s&&/row|table/.test(t.node(r).type.spec.tableRole)}function wQ({$from:t,$to:e}){let n,s;for(let r=t.depth;r>0;r--){const a=t.node(r);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){n=a;break}}for(let r=e.depth;r>0;r--){const a=e.node(r);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){s=a;break}}return n!==s&&e.parentOffset===0}function NQ(t,e,n){const s=(e||t).selection,r=(e||t).doc;let a,l;if(s instanceof Ye&&(l=s.node.type.spec.tableRole)){if(l=="cell"||l=="header_cell")a=En.create(r,s.from);else if(l=="row"){const c=r.resolve(s.from+1);a=En.rowSelection(c,c)}else if(!n){const c=ni.get(s.node),u=s.from+1,f=u+c.map[c.width*c.height-1];a=En.create(r,u+1,f)}}else s instanceof Ue&&vQ(s)?a=Ue.create(r,s.from):s instanceof Ue&&wQ(s)&&(a=Ue.create(r,s.$from.start(),s.$from.end()));return a&&(e||(e=t.tr)).setSelection(a),e}const SQ=new Fn("fix-tables");function WL(t,e,n,s){const r=t.childCount,a=e.childCount;e:for(let l=0,c=0;l<a;l++){const u=e.child(l);for(let f=c,m=Math.min(r,l+3);f<m;f++)if(t.child(f)==u){c=f+1,n+=u.nodeSize;continue e}s(u,n),c<r&&t.child(c).sameMarkup(u)?WL(t.child(c),u,n+1,s):u.nodesBetween(0,u.content.size,s,n+1),n+=u.nodeSize}}function VL(t,e){let n;const s=(r,a)=>{r.type.spec.tableRole=="table"&&(n=_Q(t,r,a,n))};return e?e.doc!=t.doc&&WL(e.doc,t.doc,0,s):t.doc.descendants(s),n}function _Q(t,e,n,s){const r=ni.get(e);if(!r.problems)return s;s||(s=t.tr);const a=[];for(let u=0;u<r.height;u++)a.push(0);for(let u=0;u<r.problems.length;u++){const f=r.problems[u];if(f.type=="collision"){const m=e.nodeAt(f.pos);if(!m)continue;const g=m.attrs;for(let x=0;x<g.rowspan;x++)a[f.row+x]+=f.n;s.setNodeMarkup(s.mapping.map(n+1+f.pos),null,Td(g,g.colspan-f.n,f.n))}else if(f.type=="missing")a[f.row]+=f.n;else if(f.type=="overlong_rowspan"){const m=e.nodeAt(f.pos);if(!m)continue;s.setNodeMarkup(s.mapping.map(n+1+f.pos),null,{...m.attrs,rowspan:m.attrs.rowspan-f.n})}else if(f.type=="colwidth mismatch"){const m=e.nodeAt(f.pos);if(!m)continue;s.setNodeMarkup(s.mapping.map(n+1+f.pos),null,{...m.attrs,colwidth:f.colwidth})}else if(f.type=="zero_sized"){const m=s.mapping.map(n);s.delete(m,m+e.nodeSize)}}let l,c;for(let u=0;u<a.length;u++)a[u]&&(l==null&&(l=u),c=u);for(let u=0,f=n+1;u<r.height;u++){const m=e.child(u),g=f+m.nodeSize,x=a[u];if(x>0){let b="cell";m.firstChild&&(b=m.firstChild.type.spec.tableRole);const v=[];for(let N=0;N<x;N++){const _=Ls(t.schema)[b].createAndFill();_&&v.push(_)}const w=(u==0||l==u-1)&&c==u?f+1:g-1;s.insert(s.mapping.map(w),v)}f=g}return s.setMeta(SQ,{fixTables:!0})}function fo(t){const e=t.selection,n=Fb(t),s=n.node(-1),r=n.start(-1),a=ni.get(s);return{...e instanceof En?a.rectBetween(e.$anchorCell.pos-r,e.$headCell.pos-r):a.findCell(n.pos-r),tableStart:r,map:a,table:s}}function GL(t,{map:e,tableStart:n,table:s},r){let a=r>0?-1:0;xQ(e,s,r+a)&&(a=r==0||r==e.width?null:0);for(let l=0;l<e.height;l++){const c=l*e.width+r;if(r>0&&r<e.width&&e.map[c-1]==e.map[c]){const u=e.map[c],f=s.nodeAt(u);t.setNodeMarkup(t.mapping.map(n+u),null,$L(f.attrs,r-e.colCount(u))),l+=f.attrs.rowspan-1}else{const u=a==null?Ls(s.type.schema).cell:s.nodeAt(e.map[c+a]).type,f=e.positionAt(l,r,s);t.insert(t.mapping.map(n+f),u.createAndFill())}}return t}function jQ(t,e){if(!Ha(t))return!1;if(e){const n=fo(t);e(GL(t.tr,n,n.left))}return!0}function EQ(t,e){if(!Ha(t))return!1;if(e){const n=fo(t);e(GL(t.tr,n,n.right))}return!0}function kQ(t,{map:e,table:n,tableStart:s},r){const a=t.mapping.maps.length;for(let l=0;l<e.height;){const c=l*e.width+r,u=e.map[c],f=n.nodeAt(u),m=f.attrs;if(r>0&&e.map[c-1]==u||r<e.width-1&&e.map[c+1]==u)t.setNodeMarkup(t.mapping.slice(a).map(s+u),null,Td(m,r-e.colCount(u)));else{const g=t.mapping.slice(a).map(s+u);t.delete(g,g+f.nodeSize)}l+=m.rowspan}}function CQ(t,e){if(!Ha(t))return!1;if(e){const n=fo(t),s=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let r=n.right-1;kQ(s,n,r),r!=n.left;r--){const a=n.tableStart?s.doc.nodeAt(n.tableStart-1):s.doc;if(!a)throw new RangeError("No table found");n.table=a,n.map=ni.get(a)}e(s)}return!0}function TQ(t,e,n){var s;const r=Ls(e.type.schema).header_cell;for(let a=0;a<t.width;a++)if(((s=e.nodeAt(t.map[a+n*t.width]))===null||s===void 0?void 0:s.type)!=r)return!1;return!0}function qL(t,{map:e,tableStart:n,table:s},r){let a=n;for(let f=0;f<r;f++)a+=s.child(f).nodeSize;const l=[];let c=r>0?-1:0;TQ(e,s,r+c)&&(c=r==0||r==e.height?null:0);for(let f=0,m=e.width*r;f<e.width;f++,m++)if(r>0&&r<e.height&&e.map[m]==e.map[m-e.width]){const g=e.map[m],x=s.nodeAt(g).attrs;t.setNodeMarkup(n+g,null,{...x,rowspan:x.rowspan+1}),f+=x.colspan-1}else{var u;const g=c==null?Ls(s.type.schema).cell:(u=s.nodeAt(e.map[m+c*e.width]))===null||u===void 0?void 0:u.type,x=g?.createAndFill();x&&l.push(x)}return t.insert(a,Ls(s.type.schema).row.create(null,l)),t}function AQ(t,e){if(!Ha(t))return!1;if(e){const n=fo(t);e(qL(t.tr,n,n.top))}return!0}function MQ(t,e){if(!Ha(t))return!1;if(e){const n=fo(t);e(qL(t.tr,n,n.bottom))}return!0}function RQ(t,{map:e,table:n,tableStart:s},r){let a=0;for(let f=0;f<r;f++)a+=n.child(f).nodeSize;const l=a+n.child(r).nodeSize,c=t.mapping.maps.length;t.delete(a+s,l+s);const u=new Set;for(let f=0,m=r*e.width;f<e.width;f++,m++){const g=e.map[m];if(!u.has(g)){if(u.add(g),r>0&&g==e.map[m-e.width]){const x=n.nodeAt(g).attrs;t.setNodeMarkup(t.mapping.slice(c).map(g+s),null,{...x,rowspan:x.rowspan-1}),f+=x.colspan-1}else if(r<e.height&&g==e.map[m+e.width]){const x=n.nodeAt(g),b=x.attrs,v=x.type.create({...b,rowspan:x.attrs.rowspan-1},x.content),w=e.positionAt(r+1,f,n);t.insert(t.mapping.slice(c).map(s+w),v),f+=b.colspan-1}}}}function OQ(t,e){if(!Ha(t))return!1;if(e){const n=fo(t),s=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let r=n.bottom-1;RQ(s,n,r),r!=n.top;r--){const a=n.tableStart?s.doc.nodeAt(n.tableStart-1):s.doc;if(!a)throw new RangeError("No table found");n.table=a,n.map=ni.get(n.table)}e(s)}return!0}function MM(t){const e=t.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function DQ({width:t,height:e,map:n},s){let r=s.top*t+s.left,a=r,l=(s.bottom-1)*t+s.left,c=r+(s.right-s.left-1);for(let u=s.top;u<s.bottom;u++){if(s.left>0&&n[a]==n[a-1]||s.right<t&&n[c]==n[c+1])return!0;a+=t,c+=t}for(let u=s.left;u<s.right;u++){if(s.top>0&&n[r]==n[r-t]||s.bottom<e&&n[l]==n[l+t])return!0;r++,l++}return!1}function RM(t,e){const n=t.selection;if(!(n instanceof En)||n.$anchorCell.pos==n.$headCell.pos)return!1;const s=fo(t),{map:r}=s;if(DQ(r,s))return!1;if(e){const a=t.tr,l={};let c=be.empty,u,f;for(let m=s.top;m<s.bottom;m++)for(let g=s.left;g<s.right;g++){const x=r.map[m*r.width+g],b=s.table.nodeAt(x);if(!(l[x]||!b))if(l[x]=!0,u==null)u=x,f=b;else{MM(b)||(c=c.append(b.content));const v=a.mapping.map(x+s.tableStart);a.delete(v,v+b.nodeSize)}}if(u==null||f==null)return!0;
vendor: 4,227 bytes, line 226
226if(a.setNodeMarkup(u+s.tableStart,null,{...$L(f.attrs,f.attrs.colspan,s.right-s.left-f.attrs.colspan),rowspan:s.bottom-s.top}),c.size>0){const m=u+1+f.content.size,g=MM(f)?u+1:m;a.replaceWith(g+s.tableStart,m+s.tableStart,c)}a.setSelection(new En(a.doc.resolve(u+s.tableStart))),e(a)}return!0}function OM(t,e){const n=Ls(t.schema);return LQ(({node:s})=>n[s.type.spec.tableRole])(t,e)}function LQ(t){return(e,n)=>{const s=e.selection;let r,a;if(s instanceof En){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;r=s.$anchorCell.nodeAfter,a=s.$anchorCell.pos}else{var l;if(r=mQ(s.$from),!r)return!1;a=(l=Cd(s.$from))===null||l===void 0?void 0:l.pos}if(r==null||a==null||r.attrs.colspan==1&&r.attrs.rowspan==1)return!1;if(n){let c=r.attrs;const u=[],f=c.colwidth;c.rowspan>1&&(c={...c,rowspan:1}),c.colspan>1&&(c={...c,colspan:1});const m=fo(e),g=e.tr;for(let b=0;b<m.right-m.left;b++)u.push(f?{...c,colwidth:f&&f[b]?[f[b]]:null}:c);let x;for(let b=m.top;b<m.bottom;b++){let v=m.map.positionAt(b,m.left,m.table);b==m.top&&(v+=r.nodeSize);for(let w=m.left,N=0;w<m.right;w++,N++)w==m.left&&b==m.top||g.insert(x=g.mapping.map(v+m.tableStart,1),t({node:r,row:b,col:w}).createAndFill(u[N]))}g.setNodeMarkup(a,t({node:r,row:m.top,col:m.left}),u[0]),s instanceof En&&g.setSelection(new En(g.doc.resolve(s.$anchorCell.pos),x?g.doc.resolve(x):void 0)),n(g)}return!0}}function IQ(t,e){return function(n,s){if(!Ha(n))return!1;const r=Fb(n);if(r.nodeAfter.attrs[t]===e)return!1;if(s){const a=n.tr;n.selection instanceof En?n.selection.forEachCell((l,c)=>{l.attrs[t]!==e&&a.setNodeMarkup(c,null,{...l.attrs,[t]:e})}):a.setNodeMarkup(r.pos,null,{...r.nodeAfter.attrs,[t]:e}),s(a)}return!0}}function PQ(t){return function(e,n){if(!Ha(e))return!1;if(n){const s=Ls(e.schema),r=fo(e),a=e.tr,l=r.map.cellsInRect(t=="column"?{left:r.left,top:0,right:r.right,bottom:r.map.height}:t=="row"?{left:0,top:r.top,right:r.map.width,bottom:r.bottom}:r),c=l.map(u=>r.table.nodeAt(u));for(let u=0;u<l.length;u++)c[u].type==s.header_cell&&a.setNodeMarkup(r.tableStart+l[u],s.cell,c[u].attrs);if(a.steps.length===0)for(let u=0;u<l.length;u++)a.setNodeMarkup(r.tableStart+l[u],s.header_cell,c[u].attrs);n(a)}return!0}}function DM(t,e,n){const s=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let r=0;r<s.length;r++){const a=e.table.nodeAt(s[r]);if(a&&a.type!==n.header_cell)return!1}return!0}function lp(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?PQ(t):function(n,s){if(!Ha(n))return!1;if(s){const r=Ls(n.schema),a=fo(n),l=n.tr,c=DM("row",a,r),u=DM("column",a,r),f=(t==="column"?c:t==="row"&&u)?1:0,m=t=="column"?{left:0,top:f,right:1,bottom:a.map.height}:t=="row"?{left:f,top:0,right:a.map.width,bottom:1}:a,g=t=="column"?u?r.cell:r.header_cell:t=="row"?c?r.cell:r.header_cell:r.cell;a.map.cellsInRect(m).forEach(x=>{const b=x+a.tableStart,v=l.doc.nodeAt(b);v&&l.setNodeMarkup(b,g,v.attrs)}),s(l)}return!0}}lp("row",{useDeprecatedLogic:!0});lp("column",{useDeprecatedLogic:!0});const BQ=lp("cell",{useDeprecatedLogic:!0});function zQ(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let s=t.index(-1)-1,r=t.before();s>=0;s--){const a=t.node(-1).child(s),l=a.lastChild;if(l)return r-1-l.nodeSize;r-=a.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const n=t.node(-1);for(let s=t.indexAfter(-1),r=t.after();s<n.childCount;s++){const a=n.child(s);if(a.childCount)return r+1;r+=a.nodeSize}}return null}function LM(t){return function(e,n){if(!Ha(e))return!1;const s=zQ(Fb(e),t);if(s==null)return!1;if(n){const r=e.doc.resolve(s);n(e.tr.setSelection(Ue.between(r,gQ(r))).scrollIntoView())}return!0}}function FQ(t,e){const n=t.selection.$anchor;for(let s=n.depth;s>0;s--)if(n.node(s).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(s),n.after(s)).scrollIntoView()),!0;return!1}function Lx(t,e){const n=t.selection;if(!(n instanceof En))return!1;if(e){const s=t.tr,r=Ls(t.schema).cell.createAndFill().content;n.forEachCell((a,l)=>{a.content.eq(r)||s.replace(s.mapping.map(l+1),s.mapping.map(l+a.nodeSize-1),new De(r,0,0))}),s.docChanged&&e(s)}return!0}function HQ(t){if(t.size===0)return null;let{content:e,openStart:n,openEnd:s}=t;
226for(;e.childCount==1&&(n>0&&s>0||e.child(0).type.spec.tableRole=="table");)n--,s--,e=e.child(0).content;const r=e.child(0),a=r.type.spec.tableRole,l=r.type.schema,c=[];if(a=="row")for(let u=0;u<e.childCount;u++){let f=e.child(u).content;const m=u?0:Math.max(0,n-1),g=u<e.childCount-1?0:Math.max(0,s-1);(m||g)&&(f=WN(Ls(l).row,new De(f,m,g)).content),c.push(f)}else if(a=="cell"||a=="header_cell")c.push(n||s?WN(Ls(l).row,new De(e,n,s)).content:e);else return null;return $Q(l,c)}function $Q(t,e){const n=[];for(let r=0;r<e.length;r++){const a=e[r];for(let l=a.childCount-1;l>=0;l--){const{rowspan:c,colspan:u}=a.child(l).attrs;for(let f=r;f<r+c;f++)n[f]=(n[f]||0)+u}}let s=0;for(let r=0;r<n.length;r++)s=Math.max(s,n[r]);for(let r=0;r<n.length;r++)if(r>=e.length&&e.push(be.empty),n[r]<s){const a=Ls(t).cell.createAndFill(),l=[];for(let c=n[r];c<s;c++)l.push(a);e[r]=e[r].append(be.from(l))}return{height:e.length,width:s,rows:e}}function WN(t,e){const n=t.createAndFill();return new r_(n).replace(0,n.content.size,e).doc}function UQ({width:t,height:e,rows:n},s,r){if(t!=s){const a=[],l=[];for(let c=0;c<n.length;c++){const u=n[c],f=[];for(let m=a[c]||0,g=0;m<s;g++){let x=u.child(g%u.childCount);m+x.attrs.colspan>s&&(x=x.type.createChecked(Td(x.attrs,x.attrs.colspan,m+x.attrs.colspan-s),x.content)),f.push(x),m+=x.attrs.colspan;for(let b=1;b<x.attrs.rowspan;b++)a[c+b]=(a[c+b]||0)+x.attrs.colspan}l.push(be.from(f))}n=l,t=s}if(e!=r){const a=[];for(let l=0,c=0;l<r;l++,c++){const u=[],f=n[c%e];for(let m=0;m<f.childCount;m++){let g=f.child(m);l+g.attrs.rowspan>r&&(g=g.type.create({...g.attrs,rowspan:Math.max(1,r-g.attrs.rowspan)},g.content)),u.push(g)}a.push(be.from(u))}n=a,e=r}return{width:t,height:e,rows:n}}function WQ(t,e,n,s,r,a,l){const c=t.doc.type.schema,u=Ls(c);let f,m;if(r>e.width)for(let g=0,x=0;g<e.height;g++){const b=n.child(g);x+=b.nodeSize;const v=[];let w;b.lastChild==null||b.lastChild.type==u.cell?w=f||(f=u.cell.createAndFill()):w=m||(m=u.header_cell.createAndFill());for(let N=e.width;N<r;N++)v.push(w);t.insert(t.mapping.slice(l).map(x-1+s),v)}if(a>e.height){const g=[];for(let v=0,w=(e.height-1)*e.width;v<Math.max(e.width,r);v++){const N=v>=e.width?!1:n.nodeAt(e.map[w+v]).type==u.header_cell;g.push(N?m||(m=u.header_cell.createAndFill()):f||(f=u.cell.createAndFill()))}const x=u.row.create(null,be.from(g)),b=[];for(let v=e.height;v<a;v++)b.push(x);t.insert(t.mapping.slice(l).map(s+n.nodeSize-2),b)}return!!(f||m)}function IM(t,e,n,s,r,a,l,c){if(l==0||l==e.height)return!1;let u=!1;for(let f=r;f<a;f++){const m=l*e.width+f,g=e.map[m];if(e.map[m-e.width]==g){u=!0;const x=n.nodeAt(g),{top:b,left:v}=e.findCell(g);t.setNodeMarkup(t.mapping.slice(c).map(g+s),null,{...x.attrs,rowspan:l-b}),t.insert(t.mapping.slice(c).map(e.positionAt(l,v,n)),x.type.createAndFill({...x.attrs,rowspan:b+x.attrs.rowspan-l})),f+=x.attrs.colspan-1}}return u}function PM(t,e,n,s,r,a,l,c){if(l==0||l==e.width)return!1;let u=!1;for(let f=r;f<a;f++){const m=f*e.width+l,g=e.map[m];if(e.map[m-1]==g){u=!0;const x=n.nodeAt(g),b=e.colCount(g),v=t.mapping.slice(c).map(g+s);t.setNodeMarkup(v,null,Td(x.attrs,l-b,x.attrs.colspan-(l-b))),t.insert(v+x.nodeSize,x.type.createAndFill(Td(x.attrs,0,l-b))),f+=x.attrs.rowspan-1}}return u}function BM(t,e,n,s,r){let a=n?t.doc.nodeAt(n-1):t.doc;if(!a)throw new Error("No table found");let l=ni.get(a);const{top:c,left:u}=s,f=u+r.width,m=c+r.height,g=t.tr;let x=0;function b(){if(a=n?g.doc.nodeAt(n-1):g.doc,!a)throw new Error("No table found");l=ni.get(a),x=g.mapping.maps.length}WQ(g,l,a,n,f,m,x)&&b(),IM(g,l,a,n,u,f,c,x)&&b(),IM(g,l,a,n,u,f,m,x)&&b(),PM(g,l,a,n,c,m,u,x)&&b(),PM(g,l,a,n,c,m,f,x)&&b();for(let v=c;v<m;v++){const w=l.positionAt(v,u,a),N=l.positionAt(v,f,a);g.replace(g.mapping.slice(x).map(w+n),g.mapping.slice(x).map(N+n),new De(r.rows[v-c],0,0))}b(),g.setSelection(new En(g.doc.resolve(n+l.positionAt(c,u,a)),g.doc.resolve(n+l.positionAt(m-1,f-1,a)))),e(g)}const VQ=v_({ArrowLeft:Ix("horiz",-1),ArrowRight:Ix("horiz",1),ArrowUp:Ix("vert",-1),ArrowDown:Ix("vert",1),"Shift-ArrowLeft":Px("horiz",-1),"Shift-ArrowRight":Px("horiz",1),"Shift-ArrowUp":Px("vert",-1),"Shift-ArrowDown":Px("vert",1),Backspace:Lx,"Mod-Backspace":Lx,Delete:Lx,"Mod-Delete":Lx});function O0(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function Ix(t,e){return(n,s,r)=>
226{if(!r)return!1;const a=n.selection;if(a instanceof En)return O0(n,s,it.near(a.$headCell,e));if(t!="horiz"&&!a.empty)return!1;const l=KL(r,t,e);if(l==null)return!1;if(t=="horiz")return O0(n,s,it.near(n.doc.resolve(a.head+e),e));{const c=n.doc.resolve(l),u=HL(c,t,e);let f;return u?f=it.near(u,1):e<0?f=it.near(n.doc.resolve(c.before(-1)),-1):f=it.near(n.doc.resolve(c.after(-1)),1),O0(n,s,f)}}}function Px(t,e){return(n,s,r)=>{if(!r)return!1;const a=n.selection;let l;if(a instanceof En)l=a;else{const u=KL(r,t,e);if(u==null)return!1;l=new En(n.doc.resolve(u))}const c=HL(l.$headCell,t,e);return c?O0(n,s,new En(l.$anchorCell,c)):!1}}function GQ(t,e){const n=t.state.doc,s=Cd(n.resolve(e));return s?(t.dispatch(t.state.tr.setSelection(new En(s))),!0):!1}function qQ(t,e,n){if(!Ha(t.state))return!1;let s=HQ(n);const r=t.state.selection;if(r instanceof En){s||(s={width:1,height:1,rows:[be.from(WN(Ls(t.state.schema).cell,n))]});const a=r.$anchorCell.node(-1),l=r.$anchorCell.start(-1),c=ni.get(a).rectBetween(r.$anchorCell.pos-l,r.$headCell.pos-l);return s=UQ(s,c.right-c.left,c.bottom-c.top),BM(t.state,t.dispatch,l,c,s),!0}else if(s){const a=Fb(t.state),l=a.start(-1);return BM(t.state,t.dispatch,l,ni.get(a.node(-1)).findCell(a.pos-l),s),!0}else return!1}function KQ(t,e){var n;if(e.button!=0||e.ctrlKey||e.metaKey)return;const s=zM(t,e.target);let r;if(e.shiftKey&&t.state.selection instanceof En)a(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&s&&(r=Cd(t.state.selection.$anchor))!=null&&((n=Qw(t,e))===null||n===void 0?void 0:n.pos)!=r.pos)a(r,e),e.preventDefault();else if(!s)return;function a(u,f){let m=Qw(t,f);const g=Vl.getState(t.state)==null;if(!m||!H_(u,m))if(g)m=u;else return;const x=new En(u,m);if(g||!t.state.selection.eq(x)){const b=t.state.tr.setSelection(x);g&&b.setMeta(Vl,u.pos),t.dispatch(b)}}function l(){t.root.removeEventListener("mouseup",l),t.root.removeEventListener("dragstart",l),t.root.removeEventListener("mousemove",c),Vl.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(Vl,-1))}function c(u){const f=u,m=Vl.getState(t.state);let g;if(m!=null)g=t.state.doc.resolve(m);else if(zM(t,f.target)!=s&&(g=Qw(t,e),!g))return l();g&&a(g,f)}t.root.addEventListener("mouseup",l),t.root.addEventListener("dragstart",l),t.root.addEventListener("mousemove",c)}function KL(t,e,n){if(!(t.state.selection instanceof Ue))return null;const{$head:s}=t.state.selection;for(let r=s.depth-1;r>=0;r--){const a=s.node(r);if((n<0?s.index(r):s.indexAfter(r))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole=="cell"||a.type.spec.tableRole=="header_cell"){const l=s.before(r),c=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(c)?l:null}}return null}function zM(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function Qw(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});if(!n)return null;let{inside:s,pos:r}=n;return s>=0&&Cd(t.state.doc.resolve(s))||Cd(t.state.doc.resolve(r))}var YQ=class{constructor(e,n){this.node=e,this.defaultCellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${n}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),VN(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,VN(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function VN(t,e,n,s,r,a){let l=0,c=!0,u=e.firstChild;const f=t.firstChild;if(f){for(let g=0,x=0;g<f.childCount;g++){const{colspan:b,colwidth:v}=f.child(g).attrs;for(let w=0;w<b;w++,x++){const N=r==x?a:v&&v[w],_=N?N+"px":"";if(l+=N||s,N||(c=!1),u)u.style.width!=_&&(u.style.width=_),u=u.nextSibling;else{const E=document.createElement("col");E.style.width=_,e.appendChild(E)}}}for(;u;){var m;const g=u.nextSibling;(m=u.parentNode)===null||m===void 0||m.removeChild(u),u=g}c?(n.style.width=l+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=l+"px")}}const Dr=new Fn("tableColumnResizing");function XQ({handleWidth:t=5,cellMinWidth:e=25,defaultCellMinWidth:n=100,View:s=YQ,lastColumnResizable:r=!0}={}){const a=new ln({key:Dr,state:{init(l,c){var u;const f=(u=a.spec)===null||u===void 0||(u=u.props)===null||u===void 0?void 0:u.nodeViews,m=Ls(c.schema).table.name;return s&&f&&(f[m]=(g,x)=>new s(g,n,x)),new ZQ(-1,!1)},apply(l,c){return c.apply(l)}},props:{attributes:l=>{const c=Dr.getState(l);return c&&c.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(l,c)=>{JQ(l,c,t,r)},mouseleave:l=>{QQ(l)},mousedown:(l,c)=>{eee(l,c,e,n)}},decorations:l=>{const c=Dr.getState(l);if(c&&c.activeHandle>-1)return ree(l,c.activeHandle)},nodeViews:{}}});return a}var ZQ=class D0{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){const n=this,s=e.getMeta(Dr);
226if(s&&s.setHandle!=null)return new D0(s.setHandle,!1);if(s&&s.setDragging!==void 0)return new D0(n.activeHandle,s.setDragging);if(n.activeHandle>-1&&e.docChanged){let r=e.mapping.map(n.activeHandle,-1);return UN(e.doc.resolve(r))||(r=-1),new D0(r,n.dragging)}return n}};function JQ(t,e,n,s){if(!t.editable)return;const r=Dr.getState(t.state);if(r&&!r.dragging){const a=nee(e.target);let l=-1;if(a){const{left:c,right:u}=a.getBoundingClientRect();e.clientX-c<=n?l=FM(t,e,"left",n):u-e.clientX<=n&&(l=FM(t,e,"right",n))}if(l!=r.activeHandle){if(!s&&l!==-1){const c=t.state.doc.resolve(l),u=c.node(-1),f=ni.get(u),m=c.start(-1);if(f.colCount(c.pos-m)+c.nodeAfter.attrs.colspan-1==f.width-1)return}YL(t,l)}}}function QQ(t){if(!t.editable)return;const e=Dr.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&YL(t,-1)}function eee(t,e,n,s){var r;if(!t.editable)return!1;const a=(r=t.dom.ownerDocument.defaultView)!==null&&r!==void 0?r:window,l=Dr.getState(t.state);if(!l||l.activeHandle==-1||l.dragging)return!1;const c=t.state.doc.nodeAt(l.activeHandle),u=tee(t,l.activeHandle,c.attrs);t.dispatch(t.state.tr.setMeta(Dr,{setDragging:{startX:e.clientX,startWidth:u}}));function f(g){a.removeEventListener("mouseup",f),a.removeEventListener("mousemove",m);const x=Dr.getState(t.state);
vendor: 1,253 bytes, line 226
226x?.dragging&&(iee(t,x.activeHandle,HM(x.dragging,g,n)),t.dispatch(t.state.tr.setMeta(Dr,{setDragging:null})))}function m(g){if(!g.which)return f(g);const x=Dr.getState(t.state);if(x&&x.dragging){const b=HM(x.dragging,g,n);$M(t,x.activeHandle,b,s)}}return $M(t,l.activeHandle,u,s),a.addEventListener("mouseup",f),a.addEventListener("mousemove",m),e.preventDefault(),!0}function tee(t,e,{colspan:n,colwidth:s}){const r=s&&s[s.length-1];if(r)return r;const a=t.domAtPos(e);let l=a.node.childNodes[a.offset].offsetWidth,c=n;if(s)for(let u=0;u<n;u++)s[u]&&(l-=s[u],c--);return l/c}function nee(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function FM(t,e,n,s){const r=n=="right"?-s:s,a=t.posAtCoords({left:e.clientX+r,top:e.clientY});if(!a)return-1;const{pos:l}=a,c=Cd(t.state.doc.resolve(l));if(!c)return-1;if(n=="right")return c.pos;const u=ni.get(c.node(-1)),f=c.start(-1),m=u.map.indexOf(c.pos-f);return m%u.width==0?-1:f+u.map[m-1]}function HM(t,e,n){const s=e.clientX-t.startX;return Math.max(n,t.startWidth+s)}function YL(t,e){t.dispatch(t.state.tr.setMeta(Dr,{setHandle:e}))}function iee(t,e,n){const s=t.state.doc.resolve(e),r=s.node(-1),a=ni.get(r),l=s.start(-1),c=a.c
226olCount(s.pos-l)+s.nodeAfter.attrs.colspan-1,u=t.state.tr;for(let f=0;f<a.height;f++){const m=f*a.width+c;if(f&&a.map[m]==a.map[m-a.width])continue;const g=a.map[m],x=r.nodeAt(g).attrs,b=x.colspan==1?0:c-a.colCount(g);if(x.colwidth&&x.colwidth[b]==n)continue;const v=x.colwidth?x.colwidth.slice():see(x.colspan);v[b]=n,u.setNodeMarkup(l+g,null,{...x,colwidth:v})}u.docChanged&&t.dispatch(u)}function $M(t,e,n,s){const r=t.state.doc.resolve(e),a=r.node(-1),l=r.start(-1),c=ni.get(a).colCount(r.pos-l)+r.nodeAfter.attrs.colspan-1;let u=t.domAtPos(r.start(-1)).node;for(;u&&u.nodeName!="TABLE";)u=u.parentNode;u&&VN(a,u.firstChild,u,s,c,n)}function see(t){return Array(t).fill(0)}function ree(t,e){const n=[],s=t.doc.resolve(e),r=s.node(-1);if(!r)return Ot.empty;const a=ni.get(r),l=s.start(-1),c=a.colCount(s.pos-l)+s.nodeAfter.attrs.colspan-1;for(let f=0;f<a.height;f++){const m=c+f*a.width;if((c==a.width-1||a.map[m]!=a.map[m+1])&&(f==0||a.map[m]!=a.map[m-a.width])){var u;const g=a.map[m],x=l+g+r.nodeAt(g).nodeSize-1,b=document.createElement("div");b.className="column-resize-handle",!((u=Dr.getState(t))===null||u===void 0)&&u.dragging&&n.push(Bi.node(l+g,l+g+r.nodeAt(g).nodeSize,{class:"column-resize-dragging"})),n.push(Bi.widget(x,b))}}return Ot.create(t.doc,n)}function aee({allowTableNodeSelection:t=!1}={}){return new ln({key:Vl,state:{init(){return null},apply(e,n){const s=e.getMeta(Vl);if(s!=null)return s==-1?null:s;if(n==null||!e.docChanged)return n;const{deleted:r,pos:a}=e.mapping.mapResult(n);return r?null:a}},props:{decorations:bQ,handleDOMEvents:{mousedown:KQ},createSelectionBetween(e){return Vl.getState(e.state)!=null?e.state.selection:null},handleTripleClick:GQ,handleKeyDown:VQ,handlePaste:qQ},appendTransaction(e,n,s){return NQ(s,VL(s,n),t)}})}function Vy(t){return t==="left"||t==="right"||t==="center"?t:null}function oee(t){const e=(t.style.textAlign||"").trim().toLowerCase(),n=(t.getAttribute("align")||"").trim().toLowerCase();return Vy(e||n)}function lee(t){return Vy(t?.align)}function XL(){return{default:null,parseHTML:t=>oee(t),renderHTML:t=>t.align?{style:`text-align: ${t.align}`}:{}}}function cee(t){var e;const n=t.parentElement,s=t.closest("table");if(!n||!s)return null;const r=Array.from(n.children).indexOf(t),a=(e=s.querySelectorAll("colgroup > col")[r])===null||e===void 0?void 0:e.getAttribute("width");return a?[parseInt(a,10)]:null}function ZL(t){const e=t.getAttribute("colwidth");return e?e.split(",").map(n=>parseInt(n,10)):cee(t)}const dee=/[ \t\r\n\f]+/g;function JL(t){var e;return t.children.length>0?!1:((e=t.textContent)!==null&&e!==void 0?e:"").replace(dee,"")===""}function QL(t){const e=t.createAndFill();if(!e)throw new Error(`[tiptap error]: "${t.name}" has no default content to backfill.`);return e.content}const eI=Qi.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:ZL},align:XL()}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td",getAttrs:t=>JL(t)?{}:!1,getContent:(t,e)=>QL(e.nodes[this.name])},{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",on(this.options.HTMLAttributes,t),0]}}),tI=Qi.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:ZL},align:XL()}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th",getAttrs:t=>JL(t)?{}:!1,getContent:(t,e)=>QL(e.nodes[this.name])},{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",on(this.options.HTMLAttributes,t),0]}}),nI=Qi.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",on(this.options.HTMLAttributes,t),0]}});function GN(t,e){return e?["width",`${Math.max(e,t)}px`]:["min-width",`${t}px`]}function UM(t,e,n,s,r,a){let l=0,c=!0,u=e.firstChild;const f=t.firstChild;if(f!==null)for(let x=0,b=0;x<f.childCount;x+=1){const{colspan:v,colwidth:w}=f.child(x).attrs;for(let N=0;N<v;N+=1,b+=1){const _=r===b?a:w&&w[N],E=_?`${_}px`:"";if(l+=_||s,_||(c=!1),u){if(u.style.width!==E){const[k,C]=GN(s,_);u.style.setProperty(k,C)}u=u.nextSibling}
226else{const k=document.createElement("col"),[C,A]=GN(s,_);k.style.setProperty(C,A),e.appendChild(k)}}}for(;u;){var m;const x=u.nextSibling;(m=u.parentNode)===null||m===void 0||m.removeChild(u),u=x}const g=t.attrs.style&&typeof t.attrs.style=="string"&&/\bwidth\s*:/i.test(t.attrs.style);c&&!g?(n.style.width=`${l}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${l}px`)}var uee=class{constructor(t,e,n,s={}){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table"));for(const[r,a]of Object.entries(s))a!=null&&(r==="style"?this.table.style.cssText=String(a):this.table.setAttribute(r,String(a)));t.attrs.style&&(this.table.style.cssText=t.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),UM(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!==this.node.type?!1:(this.node=t,UM(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){const e=t.target,n=this.dom.contains(e),s=this.contentDOM.contains(e);return!!(n&&!s&&(t.type==="attributes"||t.type==="childList"||t.type==="characterData"))}};function hee(t,e,n,s){let r=0,a=!0;const l=[],c=t.firstChild;if(!c)return{};for(let m=0,g=0;m<c.childCount;m+=1){const{colspan:x,colwidth:b}=c.child(m).attrs;for(let v=0;v<x;v+=1,g+=1){const w=n===g?s:b&&b[v];r+=w||e,w||(a=!1);const[N,_]=GN(e,w);l.push(["col",{style:`${N}: ${_}`}])}}const u=a?`${r}px`:"",f=a?"":`${r}px`;return{colgroup:["colgroup",{},...l],tableWidth:u,tableMinWidth:f}}function WM(t,e){return t.createAndFill()}function fee(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach(n=>{const s=t.nodes[n];s.spec.tableRole&&(e[s.spec.tableRole]=s)}),t.cached.tableNodeTypes=e,e}function mee(t,e,n,s,r){const a=fee(t),l=[],c=[];for(let f=0;f<n;f+=1){const m=WM(a.cell);if(m&&c.push(m),s){const g=WM(a.header_cell);g&&l.push(g)}}const u=[];for(let f=0;f<e;f+=1)u.push(a.row.createChecked(null,s&&f===0?l:c));return a.table.createChecked(null,u)}function pee(t){return t instanceof En}const Bx=({editor:t})=>{const{selection:e}=t.state;if(!pee(e))return!1;let n=0;const s=rp(e.ranges[0].$from,r=>r.type.name==="table");return s?.node.descendants(r=>{if(r.type.name==="table")return!1;["tableCell","tableHeader"].includes(r.type.name)&&(n+=1)}),n!==e.ranges.length?!1:(t.commands.deleteTable(),!0)};function VM(t,e){const n=t.mapping.map(e),s=rp(t.selection.$from,l=>l.type.name==="table");if(s?.pos===n)return;const r=t.doc.nodeAt(n);if(!r)return;const a=n+r.nodeSize-1;t.setSelection(Ue.near(t.doc.resolve(a),-1))}function gee(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){e+=t[n]+t[n+1],n+=2;continue}if(t[n]!=="`"){e+=t[n++];continue}let s=0;for(;n+s<t.length&&t[n+s]==="`";)s+=1;let r=n+s,a=!1;for(;r<t.length;){if(t[r]!=="`"){r+=1;continue}let l=0;for(;r+l<t.length&&t[r+l]==="`";)l+=1;if(l===s){const c=t.slice(n+s,r);e+=t.slice(n,n+s)+c.replace(/\\\||\|/g,u=>u==="|"?"\\|":u)+t.slice(r,r+s),n=r+s,a=!0;break}r+=l}a||(e+=t.slice(n,n+s),n+=s)}return e}function xee(t){return t.split(` 227`).map(e=>!e.includes("|")||!e.includes("`")?e:gee(e)).join(` 228`)}function yee(t){return(t||"").replace(/\s+/g," ").trim()}function bee(t,e,n={}){var s;const r=(s=n.cellLineSeparator)!==null&&s!==void 0?s:"�";if(!t||!t.content||t.content.length===0)return"";const a=[];t.content.forEach(v=>{const w=[];v.content&&v.content.forEach(N=>{let _="";N.content&&Array.isArray(N.content)&&N.content.length>1?_=N.content.map(A=>
228e.renderChildren(A)).join(r):_=N.content?e.renderChildren(N.content):"";const E=yee(_.split(r).join(` 229`).replace(/[ \t]*\r?\n[ \t]*/g,"<br>")),k=N.type==="tableHeader",C=lee(N.attrs);w.push({text:E,isHeader:k,align:C})}),a.push(w)});const l=a.reduce((v,w)=>Math.max(v,w.length),0);if(l===0)return"";const c=Array.from({length:l}).fill(0);a.forEach(v=>{for(let N=0;N<l;N+=1){var w;const _=(((w=v[N])===null||w===void 0?void 0:w.text)||"").length;_>c[N]&&(c[N]=_),c[N]<3&&(c[N]=3)}});const u=(v,w)=>v+" ".repeat(Math.max(0,w-v.length)),f=a[0],m=f.some(v=>v.isHeader),g=Array.from({length:l}).fill(null);a.forEach(v=>{for(let N=0;N<l;N+=1){var w;!g[N]&&(!((w=v[N])===null||w===void 0)&&w.align)&&(g[N]=v[N].align)}});let x=` 230`;const b=Array.from({length:l}).map((v,w)=>m&&f[w]&&f[w].text||"");return x+=`| ${b.map((v,w)=>u(v,c[w])).join(" | ")} | 231`,x+=`| ${c.map((v,w)=>{const N=Math.max(3,v),_=g[w];return _==="left"?`:${"-".repeat(N)}`:_==="right"?`${"-".repeat(N)}:`:_==="center"?`:${"-".repeat(N)}:`:"-".repeat(N)}).join(" | ")} | 232`,(m?a.slice(1):a).forEach(v=>{x+=`| ${Array.from({length:l}).fill(0).map((w,N)=>u(v[N]&&v[N].text||"",c[N])).join(" | ")} | 233`}),x}const iI=Qi.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:uee,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){const{colgroup:n,tableWidth:s,tableMinWidth:r}=hee(t,this.options.cellMinWidth),a=e.style;function l(){return a||(s?`width: ${s}`:`min-width: ${r}`)}const c=["table",on(this.options.HTMLAttributes,e,{style:l()}),n,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},c]:c},parseMarkdown:(t,e)=>{const n=[],s=Array.isArray(t.align)?t.align:[];if(t.header){const r=[];t.header.forEach((a,l)=>{var c;const u=Vy((c=s[l])!==null&&c!==void 0?c:a.align),f=u?{align:u}:{};r.push(e.createNode("tableHeader",f,[{type:"paragraph",content:e.parseInline(a.tokens)}]))}),n.push(e.createNode("tableRow",{},r))}return t.rows&&t.rows.forEach(r=>{const a=[];r.forEach((l,c)=>{var u;const f=Vy((u=s[c])!==null&&u!==void 0?u:l.align),m=f?{align:f}:{};a.push(e.createNode("tableCell",m,[{type:"paragraph",content:e.parseInline(l.tokens)}]))}),n.push(e.createNode("tableRow",{},a))}),e.createNode("table",void 0,n)},renderMarkdown:(t,e)=>bee(t,e),markdownTokenizer:{name:"table",level:"block",start:t=>{const e=t.split(` 234`);if(e.length<2)return-1;const n=e[1];return!/^[ \t|:]*-[ \t|:-]*$/.test(n)||!n.includes("|")?-1:e[0].includes("|")?0:-1},tokenize(t,e,n){const s=t.indexOf(` 235 236`),r=s>=0?t.slice(0,s):t,a=r.split(` 237`);if(a.length<2)return;const l=a[1];if(!/^[ \t|:]*-[ \t|:-]*$/.test(l)||!l.includes("|"))return;const c=xee(r);if(c===r)return;const u=n.blockTokens(c)[0];if(u?.type!=="table"||!u.raw)return;const f=u.raw.split(` 238`).length,m=t.split(` 239`).slice(0,f).join(` 240`);return{...u,raw:m}}},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:s,dispatch:r,editor:a})=>{const l=mee(a.schema,t,e,n);if(r){const c=s.selection.from+1;s.replaceSelectionWith(l).scrollIntoView().setSelection(Ue.near(s.doc.resolve(c)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>jQ(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>EQ(t,e),deleteColumn:()=>({state:t,dispatch:e})=>{const n=rp(t.selection.$from,s=>s.type.name==="table");return CQ(t,e&&(s=>{n&&VM(s,n.pos),e(s)}))},addRowBefore:()=>({state:t,dispatch:e})=>AQ(t,e),addRowAfter:()=>({state:t,dispatch:e})=>MQ(t,e),deleteRow:()=>({state:t,dispatch:e})=>{const n=rp(t.selection.$from,s=>s.type.name==="table");return OQ(t,e&&(s=>{n&&VM(s,n.pos),e(s)}))},deleteTable:()=>({state:t,dispatch:e})=>FQ(t,e),mergeCells:()=>({state:t,dispatch:e})=>RM(t,e),splitCell:()=>({state:t,dispatch:e})=>OM(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>lp("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>lp("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>BQ(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>RM(t,e)?!0:OM(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:s})=>IQ(t,e)(n,s),goToNextCell:()=>({state:t,dispatch:e})=>LM(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>LM(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&VL(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const s=En.create(e.doc,t.anchorCell,t.headCell);e.setSelection(s)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Bx,"Mod-Backspace":Bx,Delete:Bx,"Mod-Delete":Bx}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[XQ({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],aee({allowTableNodeSelection:this.options.allowTableNodeSelection})]},addNodeView(){const t=this.options.resizable&&this.editor.isEditable,e=this.options.View;return t||!e?null:({node:n,view:s,HTMLAttributes:r})=>{const a=on(this.options.HTMLAttributes,r);return new e(n,this.options.cellMinWidth,s,a)}},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:Ut(We(t,"tableRole",e))}}});Yt.create({name:"tableKit",addExtensions(){const t=[];return this.options.table!==!1&&t.push(iI.configure(this.options.table)),this.options.tableCell!==!1&&t.push(eI.configure(this.options.tableCell)),this.options.tableHeader!==!1&&t.push(tI.configure(this.options.tableHeader)),this.options.tableRow!==!1&&t.push(nI.configure(this.options.tableRow)),t}});const vee=Yt.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).some(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).some(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}}
240,addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),wee=20,sI=(t,e=0)=>{const n=[];return!t.children.length||e>wee||Array.from(t.children).forEach(s=>{s.tagName==="SPAN"?n.push(s):s.children.length&&n.push(...sI(s,e+1))}),n},Nee=t=>{if(!t.children.length)return;const e=sI(t);e&&e.forEach(n=>{var s;const r=n.getAttribute("style"),a=(s=n.parentElement)===null||s===void 0||(s=s.closest("span"))===null||s===void 0?void 0:s.getAttribute("style");n.setAttribute("style",`${a};${r}`)})},rI=al.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!0}},parseHTML(){return[{tag:"span",consuming:!1,getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&Nee(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",on(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleTextStyle:t=>({commands:e})=>e.toggleMark(this.name,t),removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,s)=>{if(!n.isInline)return!0;n.marks.filter(r=>r.type===this.type).some(r=>Object.values(r.attrs).some(a=>!!a))||t.removeMark(s,s+n.nodeSize,this.type)}),!0}}}}),See=Yt.create({name:"backgroundColor",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,parseHTML:t=>{var e;const n=(e=Ah(t,"background-color"))!==null&&e!==void 0?e:t.style.backgroundColor;return n?.replace(/['"]+/g,"")},renderHTML:t=>t.backgroundColor?{style:`background-color: ${t.backgroundColor}`}:{}}}}]},addCommands(){return{setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).removeEmptyTextStyle().run()}}}),aI=Yt.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;const n=(e=Ah(t,"color"))!==null&&e!==void 0?e:t.style.color;return n?.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),_ee=Yt.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{var e;return(e=Ah(t,"font-family"))!==null&&e!==void 0?e:t.style.fontFamily},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),jee=Yt.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>{var e;return(e=Ah(t,"font-size"))!==null&&e!==void 0?e:t.style.fontSize},renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),Eee=Yt.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>{var e;return(e=Ah(t,"line-height"))!==null&&e!==void 0?e:t.style.lineHeight},renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t}).run(),unsetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).removeEmptyTextStyle().run()}}});Yt.create({name:"textStyleKit",addExtensions(){const t=[];return this.options.backgroundColor!==!1&&t.push(See.configure(this.options.backgroundColor)),this.options.color!==!1&&t.push(aI.configure(this.options.color)),this.options.fontFamily!==!1&&t.push(_ee.configure(this.options.fontFamily)),this.options.fontSize!==!1&&t.push(jee.configure(this.options.fontSize)),this.options.lineHeight!==!1&&t.push(Eee.configure(this.options.lineHeight)),this.options.textStyle!==!1&&t.push(rI.configure(this.options.textStyle)),t}});const kee=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Cee=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,Tee=al.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||Ah(t,"background-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",on(this.options.HTMLAttributes,t),0]},renderMarkdown:(t,e)=>`==${e.renderChildren(t)}==`,parseMarkdown:(t,e)=>
240e.applyMark("highlight",e.parseInline(t.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:t=>t.indexOf("=="),tokenize(t,e,n){const s=/^(==)([^=]+)(==)/.exec(t);if(s){const r=s[2].trim(),a=n.inlineTokens(r);return{type:"highlight",raw:s[0],text:r,tokens:a}}}},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[cc({find:kee,type:this.type})]},addPasteRules(){return[el({find:Cee,type:this.type})]}});var e2,GM;function Aee(){if(GM)return e2;GM=1;function t(D){return D instanceof Map?D.clear=D.delete=D.set=function(){throw new Error("map is read-only")}:D instanceof Set&&(D.add=D.clear=D.delete=function(){throw new Error("set is read-only")}),Object.freeze(D),Object.getOwnPropertyNames(D).forEach(W=>{const ne=D[W],Ne=typeof ne;(Ne==="object"||Ne==="function")&&!Object.isFrozen(ne)&&t(ne)}),D}class e{constructor(W){W.data===void 0&&(W.data={}),this.data=W.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(D){return D.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(D,...W){const ne=Object.create(null);for(const Ne in D)ne[Ne]=D[Ne];return W.forEach(function(Ne){for(const Ee in Ne)ne[Ee]=Ne[Ee]}),ne}const r="</span>",a=D=>!!D.scope,l=(D,{prefix:W})=>{if(D.startsWith("language:"))return D.replace("language:","language-");if(D.includes(".")){const ne=D.split(".");return[`${W}${ne.shift()}`,...ne.map((Ne,Ee)=>`${Ne}${"_".repeat(Ee+1)}`)].join(" ")}return`${W}${D}`};class c{constructor(W,ne){this.buffer="",this.classPrefix=ne.classPrefix,W.walk(this)}addText(W){this.buffer+=n(W)}openNode(W){if(!a(W))return;const ne=l(W.scope,{prefix:this.classPrefix});this.span(ne)}closeNode(W){a(W)&&(this.buffer+=r)}value(){return this.buffer}span(W){this.buffer+=`<span class="${W}">`}}const u=(D={})=>{const W={children:[]};return Object.assign(W,D),W};class f{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(W){this.top.children.push(W)}openNode(W){const ne=u({scope:W});this.add(ne),this.stack.push(ne)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(W){return this.constructor._walk(W,this.rootNode)}static _walk(W,ne){return typeof ne=="string"?W.addText(ne):ne.children&&(W.openNode(ne),ne.children.forEach(Ne=>this._walk(W,Ne)),W.closeNode(ne)),W}static _collapse(W){typeof W!="string"&&W.children&&(W.children.every(ne=>typeof ne=="string")?W.children=[W.children.join("")]:W.children.forEach(ne=>{f._collapse(ne)}))}}class m extends f{constructor(W){super(),this.options=W}addText(W){W!==""&&this.add(W)}startScope(W){this.openNode(W)}endScope(){this.closeNode()}__addSublanguage(W,ne){const Ne=W.root;ne&&(Ne.scope=`language:${ne}`),this.add(Ne)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}
240function g(D){return D?typeof D=="string"?D:D.source:null}function x(D){return w("(?=",D,")")}function b(D){return w("(?:",D,")*")}function v(D){return w("(?:",D,")?")}function w(...D){return D.map(ne=>g(ne)).join("")}function N(D){const W=D[D.length-1];return typeof W=="object"&&W.constructor===Object?(D.splice(D.length-1,1),W):{}}function _(...D){return"("+(N(D).capture?"":"?:")+D.map(Ne=>g(Ne)).join("|")+")"}function E(D){return new RegExp(D.toString()+"|").exec("").length-1}function k(D,W){const ne=D&&D.exec(W);return ne&&ne.index===0}const C=new RegExp(_(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function A(D,{joinWith:W}){let ne=0;return D.map(Ne=>{ne+=1;const Ee=ne;let _e=g(Ne),re="";for(;_e.length>0;){const K=C.exec(_e);if(!K){re+=_e;break}re+=_e.substring(0,K.index),_e=_e.substring(K.index+K[0].length),K[0][0]==="\\"&&K[1]?re+="\\"+String(Number(K[1])+Ee):(re+=K[0],(K[0]==="("||/^\(\?[<']/.test(K[0]))&&ne++)}return re}).map(Ne=>`(${Ne})`).join(W)}const L=/\b\B/,M="[a-zA-Z]\\w*",O="[a-zA-Z_]\\w*",P="\\b\\d+(\\.\\d+)?",H="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",V="\\b(0b[01]+)",F="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",U=(D={})=>{const W=/^#![ ]*\//;return D.binary&&(D.begin=w(W,/.*\b/,D.binary,/\b.*/)),s({scope:"meta",begin:W,end:/$/,relevance:0,"on:begin":(ne,Ne)=>{ne.index!==0&&Ne.ignoreMatch()}},D)},q={begin:"\\\\[\\s\\S]",relevance:0},ae={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[q]},B={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[q]},$={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(D,W,ne={}){const Ne=s({scope:"comment",begin:D,end:W,contains:[]},ne);Ne.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});
vendor: 7,252 bytes, line 240
240const Ee=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ne.contains.push({begin:w(/[ ]+/,"(",Ee,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ne},xe=X("//","$"),I=X("/\\*","\\*/"),Z=X("#","$"),le={scope:"number",begin:P,relevance:0},fe={scope:"number",begin:H,relevance:0},we={scope:"number",begin:V,relevance:0},Ie={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[q,{begin:/\[/,end:/\]/,relevance:0,contains:[q]}]},Re={scope:"title",begin:M,relevance:0},Oe={scope:"title",begin:O,relevance:0},Te={begin:"\\.\\s*"+O,relevance:0};var Ze=Object.freeze({__proto__:null,APOS_STRING_MODE:ae,BACKSLASH_ESCAPE:q,BINARY_NUMBER_MODE:we,BINARY_NUMBER_RE:V,COMMENT:X,C_BLOCK_COMMENT_MODE:I,C_LINE_COMMENT_MODE:xe,C_NUMBER_MODE:fe,C_NUMBER_RE:H,END_SAME_AS_BEGIN:function(D){return Object.assign(D,{"on:begin":(W,ne)=>{ne.data._beginMatch=W[1]},"on:end":(W,ne)=>{ne.data._beginMatch!==W[1]&&ne.ignoreMatch()}})},HASH_COMMENT_MODE:Z,IDENT_RE:M,MATCH_NOTHING_RE:L,METHOD_GUARD:Te,NUMBER_MODE:le,NUMBER_RE:P,PHRASAL_WORDS_MODE:$,QUOTE_STRING_MODE:B,REGEXP_MODE:Ie,RE_STARTERS_RE:F,SHEBANG:U,TITLE_MODE:Re,UNDERSCORE_IDENT_RE:O,UNDERSCORE_TITLE_MODE:Oe});function Tt(D,W){D.input[D.index-1]==="."&&W.ignoreMatch()}function mt(D,W){D.className!==void 0&&(D.scope=D.className,delete D.className)}function Ke(D,W){W&&D.beginKeywords&&(D.begin="\\b("+D.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",D.__beforeBegin=Tt,D.keywords=D.keywords||D.beginKeywords,delete D.beginKeywords,D.relevance===void 0&&(D.relevance=0))}function ct(D,W){Array.isArray(D.illegal)&&(D.illegal=_(...D.illegal))}function kn(D,W){if(D.match){if(D.begin||D.end)throw new Error("begin & end are not supported with match");D.begin=D.match,delete D.match}}function et(D,W){D.relevance===void 0&&(D.relevance=1)}const se=(D,W)=>{if(!D.beforeMatch)return;if(D.starts)throw new Error("beforeMatch cannot be used with starts");const ne=Object.assign({},D);Object.keys(D).forEach(Ne=>{delete D[Ne]}),D.keywords=ne.keywords,D.begin=w(ne.beforeMatch,x(ne.begin)),D.starts={relevance:0,contains:[Object.assign(ne,{endsParent:!0})]},D.relevance=0,delete ne.beforeMatch},Pe=["of","and","for","in","not","or","if","then","parent","list","value"],Mt="keyword";function xn(D,W,ne=Mt){const Ne=Object.create(null);return typeof D=="string"?Ee(ne,D.split(" ")):Array.isArray(D)?Ee(ne,D):Object.keys(D).forEach(function(_e){Object.assign(Ne,xn(D[_e],W,_e))}),Ne;function Ee(_e,re){W&&(re=re.map(K=>K.toLowerCase())),re.forEach(function(K){const ce=K.split("|");Ne[ce[0]]=[_e,pt(ce[0],ce[1])]})}}function pt(D,W){return W?Number(W):Fi(D)?0:1}function Fi(D){return Pe.includes(D.toLowerCase())}const ji={},Ft=D=>{console.error(D)},yn=(D,...W)=>{console.log(`WARN: ${D}`,...W)},tn=(D,W)=>{ji[`${D}/${W}`]||(console.log(`Deprecated as of ${D}. ${W}`),ji[`${D}/${W}`]=!0)},ot=new Error;function bn(D,W,{key:ne}){let Ne=0;const Ee=D[ne],_e={},re={};for(let K=1;K<=W.length;K++)re[K+Ne]=Ee[K],_e[K+Ne]=!0,Ne+=E(W[K-1]);D[ne]=re,D[ne]._emit=_e,D[ne]._multi=!0}function Vt(D){if(Array.isArray(D.begin)){if(D.skip||D.excludeBegin||D.returnBegin)throw Ft("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ot;if(typeof D.beginScope!="object"||D.beginScope===null)throw Ft("beginScope must be object"),ot;bn(D,D.begin,{key:"beginScope"}),D.begin=A(D.begin,{joinWith:""})}}function Bs(D){if(Array.isArray(D.end)){if(D.skip||D.excludeEnd||D.returnEnd)throw Ft("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ot;if(typeof D.endScope!="object"||D.endScope===null)throw Ft("endScope must be object"),ot;bn(D,D.end,{key:"endScope"}),D.end=A(D.end,{joinWith:""})}}function ya(D){D.scope&&typeof D.scope=="object"&&D.scope!==null&&(D.beginScope=D.scope,delete D.scope)}function vn(D){ya(D),typeof D.beginScope=="string"&&(D.beginScope={_wrap:D.beginScope}),typeof D.endScope=="string"&&(D.endScope={_wrap:D.endScope}),Vt(D),Bs(D)}function yr(D){function W(re,K){return new RegExp(g(re),"m"+(D.case_insensitive?"i":"")+(D.unicodeRegex?"u":"")+(K?"g":""))}class ne{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(K,ce){ce.position=this.position++,this.matchIndexes[this.matchAt]=ce,this.regexes.push([ce,K]),this.matchAt+=E(K)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const K=this.regexes.map(ce=>ce[1]);this.matcherRe=W(A(K,{joinWith:"|"}),!0),this.lastIndex=0}exec(K){this.matcherRe.lastIndex=this.lastIndex;const ce=this.matcherRe.exec(K);if(!ce)return null;const Se=ce.findIndex((Pt,lt)=>lt>0&&Pt!==void 0),ke=this.matchIndexes[Se];return ce.splice(0,Se),Object.assign(ce,ke)}}class Ne{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(K){if(this.multiRegexes[K])return this.multiRegexes[K];const ce=new ne;return this.rules.slice(K).forEach(([Se,ke])=>ce.addRule(Se,ke)),ce.compile(),this.multiRegexes[K]=ce,ce}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(K,ce){this.rules.push([K,ce]),ce.type==="begin"&&this.count++}exec(K){const ce=this.getMatcher(this.regexIndex);ce.lastIndex=this.lastIndex;let Se=ce.exec(K);if(this.resumingScanAtSamePosition()&&!(Se&&Se.index===this.lastIndex)){const ke=this.getMatcher(0);ke.lastIndex=this.lastIndex+1,Se=ke.exec(K)}return Se&&(this.regexIndex+=Se.position+1,this.regexIndex===this.count&&this.considerAll()),Se}}function Ee(re){const K=new Ne;return re.contains.forEach(ce=>K.addRule(ce.begin,{rule:ce,type:"begin"})),re.terminatorEnd&&K.addRule(re.terminatorEnd,{type:"end"}),re.illegal&&K.addRule(re.illegal,{type:"illegal"}),K}function _e(re,K){const ce=re;if(re.isCompiled)return ce;[mt,kn,vn,se].forEach(ke=>ke(re,K)),D.compilerExtensions.forEach(ke=>ke(re,K)),re.__beforeBegin=null,[Ke,ct,et].forEach(ke=>ke(re,K)),re.isCompiled=!0;let Se=null;return typeof re.keywords=="object"&&re.keywords.$pattern&&(re.keywords=Object.assign({},re.keywords),Se=re.keywords.$pattern,delete re.keywords.$pattern),Se=Se||/\w+/,re.keywords&&(re.keywords=xn(re.keywords,D.case_insensitive)),ce.keywordPatternRe=W(Se,!0),K&&(re.begin||(re.begin=/\B|\b/),ce.beginRe=W(ce.begin),!re.end&&!re.endsWithParent&&(re.end=/\B|\b/),re.end&&(ce.endRe=W(ce.end)),ce.terminatorEnd=g(ce.end)||"",re.endsWithParent&&K.terminatorEnd&&(ce.terminatorEnd+=(re.end?"|":"")+K.terminatorEnd)),re.illegal&&(ce.illegalRe=W(re.illegal)),re.contains||(re.contains=[]),re.contains=[].concat(...re.contains.map(function(ke){return Hi(ke==="self"?re:ke)})),re.contains.forEach(function(ke){_e(ke,ce)}),re.starts&&_e(re.starts,K),ce.matcher=Ee(ce),ce}if(D.compilerExtensions||(D.compilerExtensions=[]),D.contains&&D.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return D.classNameAliases=s(D.classNameAliases||{}),_e(D)}function mi(D){return D?D.endsWithParent||mi(D.starts):!1}function Hi(D){return D.variants&&!D.cachedVariants&&(D.cachedVariants=D.variants.map(function(W){return s(D,{variants:null},W)})),D.cachedVariants?D.cachedVariants:mi(D)?s(D,{starts:D.starts?s(D.starts):null}):Object.isFrozen(D)?s(D):D}var zs="11.12.0";
240class $i extends Error{constructor(W,ne){super(W),this.name="HTMLInjectionError",this.html=ne}}const es=n,rt=s,ys=Symbol("nomatch"),Ei=7,Hn=function(D){const W=Object.create(null),ne=Object.create(null),Ne=[];let Ee=!0;const _e="Could not find the language '{}', did you forget to load/include a language module?",re={disableAutodetect:!0,name:"Plain text",contains:[]};let K={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function ce(ee){return K.noHighlightRe.test(ee)}function Se(ee){let me=ee.className+" ";me+=ee.parentNode?ee.parentNode.className:"";const Me=K.languageDetectRe.exec(me);if(Me){const Fe=ht(Me[1]);return Fe||(yn(_e.replace("{}",Me[1])),yn("Falling back to no-highlight mode for this block.",ee)),Fe?Me[1]:"no-highlight"}return me.split(/\s+/).find(Fe=>ce(Fe)||ht(Fe))}function ke(ee,me,Me){let Fe="",Xe="";typeof me=="object"?(Fe=ee,Me=me.ignoreIllegals,Xe=me.language):(tn("10.7.0","highlight(lang, code, ...args) has been deprecated."),tn("10.7.0",`Please use highlight(code, options) instead. 241https://github.com/highlightjs/highlight.js/issues/2277`),Xe=ee,Fe=me),Me===void 0&&(Me=!0);const Tn={code:Fe,language:Xe};Ui("before:highlight",Tn);const pi=Tn.result?Tn.result:Pt(Tn.language,Tn.code,Me);return pi.code=Tn.code,Ui("after:highlight",pi),pi}function Pt(ee,me,Me,Fe){const Xe=Object.create(null);function Tn(ue,pe){return ue.keywords[pe]}function pi(){if(!Ce.keywords){vt.addText(Ge);return}let ue=0;Ce.keywordPatternRe.lastIndex=0;let pe=Ce.keywordPatternRe.exec(Ge),Ae="";for(;pe;){Ae+=Ge.substring(ue,pe.index);const He=On.case_insensitive?pe[0].toLowerCase():pe[0],_t=Tn(Ce,He);if(_t){const[Xn,mo]=_t;if(vt.addText(Ae),Ae="",Xe[He]=(Xe[He]||0)+1,Xe[He]<=Ei&&(ba+=mo),Xn.startsWith("_"))Ae+=pe[0];else{const wr=On.classNameAliases[Xn]||Xn;Un(pe[0],wr)}}else Ae+=pe[0];ue=Ce.keywordPatternRe.lastIndex,pe=Ce.keywordPatternRe.exec(Ge)}Ae+=Ge.substring(ue),vt.addText(Ae)}
vendor: 4,124 bytes, lines 241-242
241function Yn(){if(Ge==="")return;let ue=null;if(typeof Ce.subLanguage=="string"){if(!W[Ce.subLanguage]){vt.addText(Ge);return}ue=Pt(Ce.subLanguage,Ge,!0,ll[Ce.subLanguage]),ll[Ce.subLanguage]=ue._top}else ue=Bt(Ge,Ce.subLanguage.length?Ce.subLanguage:null);Ce.relevance>0&&(ba+=ue.relevance),vt.__addSublanguage(ue._emitter,ue.language)}function Gt(){Ce.subLanguage!=null?Yn():pi(),Ge=""}function Un(ue,pe){ue!==""&&(vt.startScope(pe),vt.addText(ue),vt.endScope())}function $a(ue,pe){let Ae=1;const He=pe.length-1;for(;Ae<=He;){if(!ue._emit[Ae]){Ae++;continue}const _t=On.classNameAliases[ue[Ae]]||ue[Ae],Xn=pe[Ae];_t?Un(Xn,_t):(Ge=Xn,pi(),Ge=""),Ae++}}function ol(ue,pe){return ue.scope&&typeof ue.scope=="string"&&vt.openNode(On.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(Un(Ge,On.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),Ge=""):ue.beginScope._multi&&($a(ue.beginScope,pe),Ge="")),Ce=Object.create(ue,{parent:{value:Ce}}),Ce}function Ua(ue,pe,Ae){let He=k(ue.endRe,Ae);if(He){if(ue["on:end"]){const _t=new e(ue);ue["on:end"](pe,_t),_t.isMatchIgnored&&(He=!1)}if(He){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return Ua(ue.parent,pe,Ae)}function Dh(ue){return Ce.matcher.regexIndex===0?(Ge+=ue[0],1):(va=!0,0)}function vs(ue){const pe=ue[0],Ae=ue.rule,He=new e(Ae),_t=[Ae.__beforeBegin,Ae["on:begin"]];for(const Xn of _t)if(Xn&&(Xn(ue,He),He.isMatchIgnored))return Dh(pe);return Ae.skip?Ge+=pe:(Ae.excludeBegin&&(Ge+=pe),Gt(),!Ae.returnBegin&&!Ae.excludeBegin&&(Ge=pe)),ol(Ae,ue),Ae.returnBegin?0:pe.length}function wc(ue){const pe=ue[0],Ae=me.substring(ue.index),He=Ua(Ce,ue,Ae);if(!He)return ys;const _t=Ce;Ce.endScope&&Ce.endScope._wrap?(Gt(),Un(pe,Ce.endScope._wrap)):Ce.endScope&&Ce.endScope._multi?(Gt(),$a(Ce.endScope,ue)):_t.skip?Ge+=pe:(_t.returnEnd||_t.excludeEnd||(Ge+=pe),Gt(),_t.excludeEnd&&(Ge=pe));do Ce.scope&&vt.closeNode(),!Ce.skip&&!Ce.subLanguage&&(ba+=Ce.relevance),Ce=Ce.parent;while(Ce!==He.parent);return He.starts&&ol(He.starts,ue),_t.returnEnd?0:pe.length}function zd(){const ue=[];for(let pe=Ce;pe!==On;pe=pe.parent)pe.scope&&ue.unshift(pe.scope);ue.forEach(pe=>vt.openNode(pe))}let vr={};function Wr(ue,pe){const Ae=pe&&pe[0];if(Ge+=ue,Ae==null)return Gt(),0;if(vr.type==="begin"&&pe.type==="end"&&vr.index===pe.index&&Ae===""){if(Ge+=me.slice(pe.index,pe.index+1),!Ee){const He=new Error(`0 width match regex (${ee})`);throw He.languageName=ee,He.badRule=vr.rule,He}return 1}if(vr=pe,pe.type==="begin")return vs(pe);if(pe.type==="illegal"&&!Me){const He=new Error('Illegal lexeme "'+Ae+'" for mode "'+(Ce.scope||"<unnamed>")+'"');throw He.mode=Ce,He}else if(pe.type==="end"){const He=wc(pe);if(He!==ys)return He}if(pe.type==="illegal"&&Ae==="")return pe.index===me.length||(Ge+=` 242`),1;if(Vr>1e5&&Vr>pe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ge+=Ae,Ae.length}const On=ht(ee);if(!On)throw Ft(_e.replace("{}",ee)),new Error('Unknown language: "'+ee+'"');const Fd=yr(On);let er="",Ce=Fe||Fd;const ll={},vt=new K.__emitter(K);zd();let Ge="",ba=0,ns=0,Vr=0,va=!1;try{if(On.__emitTokens)On.__emitTokens(me,vt);else{for(Ce.matcher.considerAll();;){Vr++,va?va=!1:Ce.matcher.considerAll(),Ce.matcher.lastIndex=ns;const ue=Ce.matcher.exec(me);if(!ue)break;const pe=me.substring(ns,ue.index),Ae=Wr(pe,ue);ns=ue.index+Ae}Wr(me.substring(ns))}return vt.finalize(),er=vt.toHTML(),{language:ee,value:er,relevance:ba,illegal:!1,_emitter:vt,_top:Ce}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:ee,value:es(me),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:ns,context:me.slice(ns-100,ns+100),mode:ue.mode,resultSoFar:er},_emitter:vt};if(Ee)return{language:ee,value:es(me),illegal:!1,relevance:0,errorRaised:ue,_emitter:vt,_top:Ce};throw ue}}function lt(ee){const me={value:es(ee),illegal:!1,relevance:0,_top:re,_emitter:new K.__emitter(K)};return me._emitter.addText(ee),me}function Bt(ee,me){me=me||K.languages||Object.keys(W);const Me=lt(ee),Fe=me.filter(ht).filter(br).map(Gt=>Pt(Gt,ee,!1));Fe.unshift(Me);const Xe=Fe.sort((Gt,Un)=>
242{if(Gt.relevance!==Un.relevance)return Un.relevance-Gt.relevance;if(Gt.language&&Un.language){if(ht(Gt.language).supersetOf===Un.language)return 1;if(ht(Un.language).supersetOf===Gt.language)return-1}return 0}),[Tn,pi]=Xe,Yn=Tn;return Yn.secondBest=pi,Yn}function wn(ee,me,Me){const Fe=me&&ne[me]||Me;ee.classList.add("hljs"),ee.classList.add(`language-${Fe}`)}function Lt(ee){let me=null;const Me=Se(ee);if(ce(Me))return;if(Ui("before:highlightElement",{el:ee,language:Me}),ee.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ee);return}if(ee.children.length>0&&(K.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ee)),K.throwUnescapedHTML))throw new $i("One of your code blocks includes unescaped HTML.",ee.innerHTML);me=ee;const Fe=me.textContent,Xe=Me?ke(Fe,{language:Me,ignoreIllegals:!0}):Bt(Fe);ee.innerHTML=Xe.value,ee.dataset.highlighted="yes",wn(ee,Me,Xe.language),ee.result={language:Xe.language,re:Xe.relevance,relevance:Xe.relevance},Xe.secondBest&&(ee.secondBest={language:Xe.secondBest.language,relevance:Xe.secondBest.relevance}),Ui("after:highlightElement",{el:ee,result:Xe,text:Fe})}function Rt(ee){K=rt(K,ee)}const bt=()=>{ut(),tn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function si(){ut(),tn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let At=!1;function ut(){function ee(){ut()}if(document.readyState==="loading"){At||window.addEventListener("DOMContentLoaded",ee,!1),At=!0;return}document.querySelectorAll(K.cssSelector).forEach(Lt)}function ts(ee,me){let Me=null;try{Me=me(D)}catch(Fe){if(Ft("Language definition for '{}' could not be registered.".replace("{}",ee)),Ee)Ft(Fe);else throw Fe;Me=re}Me.name||(Me.name=ee),W[ee]=Me,Me.rawDefinition=me.bind(null,D),Me.aliases&&Fs(Me.aliases,{languageName:ee})}function Rn(ee){delete W[ee];for(const me of Object.keys(ne))ne[me]===ee&&delete ne[me]}function Xt(){return Object.keys(W)}function ht(ee){return ee=(ee||"").toLowerCase(),W[ee]||W[ne[ee]]}function Fs(ee,{languageName:me}){typeof ee=="string"&&(ee=[ee]),ee.forEach(Me=>{ne[Me.toLowerCase()]=me})}function br(ee){const me=ht(ee);return me&&!me.disableAutodetect}function $n(ee){ee["before:highlightBlock"]&&!ee["before:highlightElement"]&&(ee["before:highlightElement"]=me=>{ee["before:highlightBlock"](Object.assign({block:me.el},me))}),ee["after:highlightBlock"]&&!ee["after:highlightElement"]&&(ee["after:highlightElement"]=me=>{ee["after:highlightBlock"](Object.assign({block:me.el},me))})}function Cn(ee){$n(ee),Ne.push(ee)}function ki(ee){const me=Ne.indexOf(ee);me!==-1&&Ne.splice(me,1)}function Ui(ee,me){const Me=ee;Ne.forEach(function(Fe){Fe[Me]&&Fe[Me](me)})}function bs(ee){return tn("10.7.0","highlightBlock will be removed entirely in v12.0"),tn("10.7.0","Please use highlightElement now."),Lt(ee)}Object.assign(D,{highlight:ke,highlightAuto:Bt,highlightAll:ut,highlightElement:Lt,highlightBlock:bs,configure:Rt,initHighlighting:bt,initHighlightingOnLoad:si,registerLanguage:ts,unregisterLanguage:Rn,listLanguages:Xt,getLanguage:ht,registerAliases:Fs,autoDetection:br,inherit:rt,addPlugin:Cn,removePlugin:ki}),D.debugMode=function(){Ee=!1},D.safeMode=function(){Ee=!0},D.versionString=zs,D.regex={concat:w,lookahead:x,either:_,optional:v,anyNumberOfTimes:b};for(const ee in Ze)typeof Ze[ee]=="object"&&t(Ze[ee]);return Object.assign(D,Ze),D},cn=Hn({});return cn.newInstance=()=>Hn({}),e2=cn,cn.HighlightJS=cn,cn.default=cn,e2}var Mee=Aee();const Ree=Dd(Mee);function oI(t,e=[]){return t.flatMap(n=>{const s=[...e,...n.properties?n.properties.className:[]];return n.children?oI(n.children,s):{text:n.value,classes:s}})}function qM(t){return t.value||t.children||[]}function Oee(t){return!!Ree.getLanguage(t)}function KM({doc:t,name:e,lowlight:n,defaultLanguage:s}){const r=[];return kN(t,a=>a.type.name===e).forEach(a=>{var l;let c=a.pos+1;const u=a.node.attrs.language||s,f=n.listLanguages();oI(u&&(f.includes(u)||Oee(u)||!((l=n.registered)===null||l===void 0)&&l.call(n,u))?qM(n.highlight(u,a.node.textContent)):qM(n.highlightAuto(a.node.textContent))).forEac
242h(m=>{const g=c+m.text.length;if(m.classes.length){const x=Bi.inline(c,g,{class:m.classes.join(" ")});r.push(x)}c=g})}),Ot.create(t,r)}function Dee(t){return typeof t=="function"}function Lee({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(r=>Dee(e[r])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const s=new ln({key:new Fn("lowlight"),state:{init:(r,{doc:a})=>KM({doc:a,name:t,lowlight:e,defaultLanguage:n}),apply:(r,a,l,c)=>{const u=l.selection.$head.parent.type.name,f=c.selection.$head.parent.type.name,m=kN(l.doc,x=>x.type.name===t),g=kN(c.doc,x=>x.type.name===t);return r.docChanged&&([u,f].includes(t)||g.length!==m.length||r.steps.some(x=>x.from!==void 0&&x.to!==void 0&&m.some(b=>b.pos>=x.from&&b.pos+b.node.nodeSize<=x.to)))?KM({doc:r.doc,name:t,lowlight:e,defaultLanguage:n}):a.map(r.mapping,r.doc)}},props:{decorations(r){return s.getState(r)}}});return s}const Iee=rL.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],Lee({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function Pee(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",l="(?!struct)("+s+"|"+e.optional(r)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:e.optional(r)+t.IDENT_RE,relevance:0},b=e.optional(r)+t.IDENT_RE+"\\s*\\(",v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
242noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],w=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],N=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:w,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:N},A={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:e.concat(/\b/,`(?!${v.join("|")})`,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},L=[A,g,c,n,t.C_BLOCK_COMMENT_MODE,m,f],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:L.concat([{begin:/\(/,end:/\)/,keywords:C,contains:L.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+l+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:C,relevance:0},{begin:b,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,t.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,O,A,L,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",c]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Bee(t){const e={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","
242EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Pee(t),s=n.keywords;return s.type=[...s.type,...e.type],s.literal=[...s.literal,...e.literal],s.built_in=[...s.built_in,...e.built_in],s._hints=e._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function zee(t){const e=t.regex,n={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},a=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n,r]};r.contains.push(c);const u={match:/\\"/},f={className:"string",begin:/'/,end:/'/},m={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,n]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],b=t.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),v={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],N=["true","false"],_={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],k=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],A=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:w,literal:N,built_in:[...E,...k,"set","shopt",...C,...A]}
vendor: 5,661 bytes, line 242
242,contains:[b,t.SHEBANG(),v,g,a,l,_,c,u,f,m,n]}}function Fee(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",l="("+s+"|"+e.optional(r)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:e.optional(r)+t.IDENT_RE,relevance:0},b=e.optional(r)+t.IDENT_RE+"\\s*\\(",N={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},_=[g,c,n,t.C_BLOCK_COMMENT_MODE,m,f],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:_.concat([{begin:/\(/,end:/\)/,keywords:N,contains:_.concat(["self"]),relevance:0}]),relevance:0},k={begin:"("+l+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:N,relevance:0},{begin:b,returnBegin:!0,contains:[t.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,t.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:N,disableAutodetect:!0,illegal:"</",contains:[].concat(E,k,_,[g,{begin:t.IDENT_RE+"::",keywords:N},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:g,strings:f,keywords:N}}}function Hee(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",l="(?!struct)("+s+"|"+e.optional(r)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:e.optional(r)+t.IDENT_RE,relevance:0},b=e.optional(r)+t.IDENT_RE+"\\s*\\(",v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
242noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],w=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],N=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:w,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:N},A={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:e.concat(/\b/,`(?!${v.join("|")})`,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},L=[A,g,c,n,t.C_BLOCK_COMMENT_MODE,m,f],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:L.concat([{begin:/\(/,end:/\)/,keywords:C,contains:L.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+l+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:C,relevance:0},{begin:b,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,t.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,O,A,L,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",c]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function $ee(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],r=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","
242sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],l={keyword:r.concat(a),built_in:e,literal:s},c=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9'_]+|(\\b[\\d'_]+(\\.[\\d'_]*)?|\\.[\\d'_]+)([eE][-+]?[\\d'_]+)?)"}],relevance:0},f={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=t.inherit(m,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:l},b=t.inherit(x,{illegal:/\n/}),v={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,b]},w={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},N=t.inherit(w,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]});x.contains=[w,v,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.C_BLOCK_COMMENT_MODE],b.contains=[N,v,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const _={variants:[f,w,v,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},k=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:l,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},_,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+k+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:l,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,relevance:0,contains:[_,u,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},C]}}const Uee=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,4}(-[0-9A-Fa-f][0-9A-Fa-f]{0,4})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Wee=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Vee=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Gee=[...Wee,...Vee],qee=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Kee=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invali
242d","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Yee=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Xee=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
242area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Zee(t){const e=t.regex,n=Uee(t),s={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",a=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",c=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,s,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0}
vendor: 8,907 bytes, line 242
242,{className:"selector-class",begin:"\\."+l,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Kee.join("|")+")"},{begin:":(:)?("+Yee.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Xee.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,n.UNICODE_RANGE,...c,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...c,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:qee.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...c,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Gee.join("|")+")\\b"}]}}function Jee(t){const e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Qee(t){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function ete(t){const e=t.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:e.concat(n,e.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function tte(t){const e=t.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},s=t.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[s,a,r,l,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,f=/"(\\"|[^"])*"/,m=/'[^']*'/,g=e.either(u,f,m),x=e.concat(g,"(\\s*\\.\\s*",g,")*",e.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:x,className:"attr",starts:{end:/$/,contains:[s,c,a,r,l,n]}}]}}var Iu="[0-9](_*[0-9])*",zx=`\\.(${Iu})`,Fx="[0-9a-fA-F](_*[0-9a-fA-F])*",YM={className:"number",variants:[{begin:`(\\b(${Iu})((${zx})|\\.)?|(${zx}))[eE][+-]?(${Iu})[fFdD]?\\b`},{begin:`\\b(${Iu})((${zx})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${zx})[fFdD]?\\b`},{begin:`\\b(${Iu})[fFdD]\\b`},{begin:`\\b0[xX]((${Fx})\\.?|(${Fx})?\\.(${Fx}))[pP][+-]?(${Iu})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Fx})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function lI(t,e,n){return n===-1?"":t.replace(e,s=>lI(t,e,n-1))}function nte(t){const e=t.regex,n="[Ã-ʸa-zA-Z_$][Ã-ʸa-zA-Z_$0-9]*",s=n+lI("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},f={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},m={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[m,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+s+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[f,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,YM,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},YM,f]}}const XM="[A-Za-z$_][0-9A-Za-z$_]*",ite=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ste=["true","false","null","undefined","NaN","Infinity"],cI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],dI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],uI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],rte=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ate=[].concat(uI,cI,dI);function ote(t){const e=t.regex,n=(X,{after:xe})=>{const I="</"+X[0].slice(1);return X.input.indexOf(I,xe)!==-1},s=XM,r={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,xe)=>{const I=X[0].length+X.index,Z=X.input[I];if(Z==="<"||Z===","){xe.ignoreMatch();return}Z===">"&&(n(X,{after:I})||xe.ignoreMatch());let le;const fe=X.input.substring(I);if(le=fe.match(/^\s*=/)){xe.ignoreMatch();return}
vendor: 4,330 bytes, line 242
242if((le=fe.match(/^\s+extends\s+/))&&le.index===0){xe.ignoreMatch();return}}},c={$pattern:XM,keyword:ite,literal:ste,built_in:ate,"variable.language":rte},u="[0-9](_?[0-9])*",f=`\\.(${u})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${m})((${f})|\\.)?|(${f}))[eE][+-]?(${u})\\b`},{begin:`\\b(${m})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,x],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,x]},E={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},k=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,b,v,w,N,{match:/\$\d+/},g];x.contains=k.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(k)});const C=[].concat(E,x.contains),A=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(C)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:A},M={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,e.concat(s,"(",e.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...cI,...dI]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},H={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},V={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function F(X){return e.concat("(?!",X.join("|"),")")}const U={match:e.concat(/\b/,F([...uI,"super","import","await"].map(X=>`${X}\\s*\\(`)),s,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:O},illegal:/#(?![$_A-Za-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,b,v,w,N,E,{match:/\$\d+/},g,O,{scope:"attr",match:s+e.lookahead(":"),relevance:0},$,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,t.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:a},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},H,{beginKeywords:"while if switch catch for"}
vendor: 11,739 bytes, lines 242-243
242,{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,t.inherit(t.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},U,V,M,ae,{match:/\$[(.]/}]}}const lte="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",cte={scope:"number",match:lte,relevance:0};function dte(t){const e={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],r={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:s},contains:[e,n,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,r,cte,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Pu="[0-9](_*[0-9])*",Hx=`\\.(${Pu})`,$x="[0-9a-fA-F](_*[0-9a-fA-F])*",ute={className:"number",variants:[{begin:`(\\b(${Pu})((${Hx})|\\.)?|(${Hx}))[eE][+-]?(${Pu})[fFdD]?\\b`},{begin:`\\b(${Pu})((${Hx})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Hx})[fFdD]?\\b`},{begin:`\\b(${Pu})[fFdD]\\b`},{begin:`\\b0[xX]((${$x})\\.?|(${$x})?\\.(${$x}))[pP][+-]?(${Pu})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${$x})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function hte(t){const e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},s={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},l={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,r]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,a,r]}]};r.contains.push(l);const c={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(l,{className:"string"}),"self"]}]},f=ute,m=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},x=g;return x.variants[1].contains=[g],g.variants[1].contains=[x],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,m,n,s,c,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,t.C_LINE_COMMENT_MODE,m],relevance:0},t.C_LINE_COMMENT_MODE,m,c,u,l,t.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,u]},l,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` 243`},f]}}const fte=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,4}(-[0-9A-Fa-f][0-9A-Fa-f]{0,4})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),mte=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],pte=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],gte=[...mte,...pte],xte=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),hI=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),fI=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),yte=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
243area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),bte=hI.concat(fI).sort().reverse();function vte(t){const e=fte(t),n=bte,s="and or not only",r="[\\w-]+",a="("+r+"|@\\{"+r+"\\})",l=[],c=[],u=function(k){return{className:"string",begin:"~?"+k+".*?"+k}},f=function(k,C,A){return{className:k,begin:C,relevance:A}},m={$pattern:/[a-z-]+/,keyword:s,attribute:xte.join(" ")},g={begin:"\\(",end:"\\)",contains:c,keywords:m,relevance:0};c.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,u("'"),u('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.UNICODE_RANGE,e.HEXCOLOR,g,f("variable","@@?"+r,10),f("variable","@\\{"+r+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);const x=c.concat({begin:/\{/,end:/\}/,contains:l}),b={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(c)},v={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+yte.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:c}}]},w={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?ke
243yframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:m,returnEnd:!0,contains:c,relevance:0}},N={className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r}],starts:{end:"[;}]",returnEnd:!0,contains:x}},_={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,b,f("keyword","all\\b"),f("variable","@\\{"+r+"\\}"),{begin:"\\b("+gte.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,f("selector-tag",a,0),f("selector-id","#"+a),f("selector-class","\\."+a,0),f("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+hI.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+fI.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:x},{begin:"!important"},e.FUNCTION_DISPATCH]},E={begin:r+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[_]};return l.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,w,N,E,v,_,b,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:l}}function wte(t){const e="\\[=*\\[",n="\\]=*\\]",s={begin:e,end:n,contains:["self"]},r=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,n,{contains:[s],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:n,contains:[s],relevance:5}])}}function Nte(t){const e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e]},s={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e,n]},r={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,e,n,s,r,a,l]}}function Ste(t){const e=t.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},r={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},l={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0}
vendor: 19,022 bytes, lines 243-244
243,{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},f={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=t.inherit(f,{contains:[]}),x=t.inherit(m,{contains:[]});f.contains.push(x),m.contains.push(g);let b=[n,u];return[f,m,g,x].forEach(_=>{_.contains=_.contains.concat(b)}),b=b.concat(f,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},n,a,f,m,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},r,s,u,l,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function _te(t){const e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function jte(t){const e=t.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],s=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},l={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},f={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},m=[t.BACKSLASH_ESCAPE,a,u],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(w,N,_="\\1")=>{const E=_==="\\1"?_:e.concat(_,N);return e.concat(e.concat("(?:",w,")"),N,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,_,s)},b=(w,N,_)=>e.concat(e.concat("(?:",w,")"),N,/(?:\\.|[^\\\/])*?/,_,s),v=[u,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),l,{className:"string",contains:m,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},f,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",e.either(...g,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:b("(?:m|qr)?",/\//,/\//)},{begin:b("m|qr",e.either(...g,{capture:!0}),/\1/)},{begin:b("m|qr",/\(/,/\)/)},{begin:b("m|qr",/\[/,/\]/)},{begin:b("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,c,f]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=v,l.contains=v,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:v}}function Ete(t){const e=t.regex,n=/(?![A-Za-z0-9])(?![$])/,s=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),r=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=e.concat(/[A-Z]+/,n),l={scope:"variable",match:"\\$+"+s},c={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},f=t.inherit(t.APOS_STRING_MODE,{illegal:null}),m=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(u)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(q,ae)=>{ae.data._beginMatch=q[1]||q[2]},"on:end":(q,ae)=>{ae.data._beginMatch!==q[1]&&ae.ignoreMatch()}},x=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),b=`[ 244]`,v={scope:"string",variants:[m,f,g,x]},w={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},N=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:_,literal:(q=>{const ae=[];return q.forEach(B=>{ae.push(B),B.toLowerCase()===B?ae.push(B.toUpperCase()):ae.push(B.toLowerCase())}),ae})(N),built_in:E},A=q=>q.map(ae=>ae.replace(/\|\d+$/,"")),L={variants:[{match:[/new/,e.concat(b,"+"),e.concat("(?!",A(E).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},M=e.concat(s,"\\b(?!\\()"),O={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,e.concat(/::/,e.lookahead(/(?!class\b)/)),M],scope:{1:"title.class",3:"variable.constant"}},{match:[r,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},P={scope:"attr",match:e.concat(s,e.lookahead(":"),e.lookahead(/(?!::)/))},H={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[P,l,O,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,v,w,L]},V={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",A(_).join("\\b|"),"|",A(E).join("\\b|"),"\\b)"),s,e.concat(b,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[H]};H.contains.push(V);const F=[P,O,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,v,w,L],U={begin:e.concat(/#\[\s*\\?/,e.either(r,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:N,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:N,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:r},{match:a}]}]};return{case_insensitive:!1,keywords:C,contains:[U,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},c,{scope:"variable.language",match:/\$this\b/},l,V,O,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},L,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",U,l,O,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,v,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},v,w]}}function kte(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Cte(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Tte(t){const e=t.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},m={begin:/\{\{/,relevance:0},g={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u,m,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u,m,f]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,m,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,m,f]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",b=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,v=`\\b|${s.join("|")}`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${b}))[eE][+-]?(${x})[jJ]?(?=${v})`},{begin:`(${b})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${v})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${v})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`},{begin:`\\b(${x})[jJ](?=${v})`}]},N={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},_={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",u,w,g,t.HASH_COMMENT_MODE]}]};return f.contains=[g,w,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[u,w,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,N,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[_]}
vendor: 3,902 bytes, line 244
244,{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[w,_,g]}]}}function Ate(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Mte(t){const e=t.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[r,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[a,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Rte(t){const e=t.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=e.concat(s,/(::\w+)*/),l={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepe
vendor: 8,718 bytes, line 244
244nd","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},f=[t.COMMENT("#","$",{contains:[c]}),t.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:l},g={className:"string",contains:[t.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,m]})]}]},x="[1-9](_?[0-9])*|0",b="[0-9](_?[0-9])*",v={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${b}))?([eE][+-]?(${b})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},w={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:l}]},L=[g,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:l},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:l},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[w]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:n}],relevance:0},v,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:l},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,f),relevance:0}].concat(u,f);m.contains=L,w.contains=L;const H=[{begin:/^\s*=>/,starts:{end:"$",contains:L}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:l,contains:L}}];return f.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:l,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(H).concat(f).concat(L)}}function Ote(t){const e=t.regex,n=/(r#)?/,s=e.concat(n,t.UNDERSCORE_IDENT_RE),r=e.concat(n,t.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let|for|while|if|else|match\b)/,r,e.lookahead(/\s*\(/))},l="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],u=["true","false","Some","None","Ok","Err"],f=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],m=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:m,keyword:c,literal:u,built_in:f},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+l},{begin:"\\b0o([0-7_]+)"+l},{begin:"\\b0x([A-Fa-f0-9_]+)"+l},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+l}],relevance:0},{begin:[/fn/,/\s+/,s],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,s],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,s,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:f,type:m}},{className:"punctuation",begin:"->"},a]}}const Dte=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,4}(-[0-9A-Fa-f][0-9A-Fa-f]{0,4})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Lte=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ite=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Pte=[...Lte,...Ite],Bte=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),zte=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invali
244d","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Fte=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Hte=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
244area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function $te(t){const e=Dte(t),n=Fte,s=zte,r="@[a-z-]+",a="and or not only",c={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0}
vendor: 1,113 bytes, line 244
244,{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Pte.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+s.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Hte.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inl
244ine-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,c,e.HEXCOLOR,e.CSS_NUMBER_MODE,e.UNICODE_RANGE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:r,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Bte.join(" ")},contains:[{begin:r,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},c,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}function Ute(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Wte(t){const e=t.regex,n=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],l=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","ver
244sioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],b=m,v=[...f,...u].filter(A=>!m.includes(A)),w={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},N={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:e.concat(/\b/,e.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function E(A){return e.concat(/\b/,e.either(...A.map(L=>L.replace(/\s+/,"\\s+"))),/\b/)}const k={scope:"keyword",match:E(x),relevance:0};function C(A,{exceptions:L,when:M}={}){const O=M;return L=L||[],A.map(P=>P.match(/\|\d+$/)||L.includes(P)?P:O(P)?`${P}|0`:P)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(v,{when:A=>A.length<3}),literal:a,type:c,built_in:g},contains:[{scope:"type",match:E(l)},k,_,w,s,r,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,N]}}function mI(t){return t?typeof t=="string"?t:t.source:null}function Hf(t){return an("(?=",t,")")}function an(...t){return t.map(n=>mI(n)).join("")}function Vte(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Vs(...t){return"("+(Vte(t).capture?"":"?:")+t.map(s=>mI(s)).join("|")+")"}const $_=t=>an(/\b/,t,/\w$/.test(t)?/\b/:/\B/),Gte=["Protocol","Type"].map($_),ZM=["init","self"].map($_),qte=["Any","Self"],t2=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],JM=["false","nil","true"],Kte=["assignment","associativity","higherThan","left","lowerThan","none","right"],Yte=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],QM=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","
vendor: 13,298 bytes, line 244
244withoutActuallyEscaping","zip"],pI=Vs(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),gI=Vs(pI,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),n2=an(pI,gI,"*"),xI=Vs(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Gy=Vs(xI,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ya=an(xI,Gy,"*"),Ux=an(/[A-Z]/,Gy,"*"),Xte=["attached","autoclosure",an(/convention\(/,Vs("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",an(/objc\(/,Ya,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Zte=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Jte(t){const e={match:/\s+/,relevance:0},n=t.COMMENT("/\\*","\\*/",{contains:["self"]}),s=[t.C_LINE_COMMENT_MODE,n],r={match:[/\./,Vs(...Gte,...ZM)],className:{2:"keyword"}},a={match:an(/\./,Vs(...t2)),relevance:0},l=t2.filter(et=>typeof et=="string").concat(["_|0"]),c=t2.filter(et=>typeof et!="string").concat(qte).map($_),u={variants:[{className:"keyword",match:Vs(...c,...ZM)}]},f={$pattern:Vs(/\b\w+/,/#\w+/),keyword:l.concat(Yte),literal:JM},m=[r,a,u],g={match:an(/\./,Vs(...QM)),relevance:0},x={className:"built_in",match:an(/\b/,Vs(...QM),/(?=\()/)},b=[g,x],v={match:/->/,relevance:0},w={className:"operator",relevance:0,variants:[{match:n2},{match:`\\.(\\.|${gI})+`}]},N=[v,w],_="([0-9]_*)+",E="([0-9a-fA-F]_*)+",k={className:"number",relevance:0,variants:[{match:`\\b(${_})(\\.(${_}))?([eE][+-]?(${_}))?\\b`},{match:`\\b0x(${E})(\\.(${E}))?([pP][+-]?(${_}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},C=(et="")=>({className:"subst",variants:[{match:an(/\\/,et,/[0\\tnr"']/)},{match:an(/\\/,et,/u\{[0-9a-fA-F]{1,8}\}/)}]}),A=(et="")=>({className:"subst",match:an(/\\/,et,/[\t ]*(?:[\r\n]|\r\n)/)}),L=(et="")=>({className:"subst",label:"interpol",begin:an(/\\/,et,/\(/),end:/\)/}),M=(et="")=>({begin:an(et,/"""/),end:an(/"""/,et),contains:[C(et),A(et),L(et)]}),O=(et="")=>({begin:an(et,/"/),end:an(/"/,et),contains:[C(et),L(et)]}),P={className:"string",variants:[M(),M("#"),M("##"),M("###"),O(),O("#"),O("##"),O("###")]},H=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],V={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:H},F=et=>{const se=an(et,/\//),Pe=an(/\//,et);return{begin:se,end:Pe,contains:[...H,{scope:"comment",begin:`#(?!.*${Pe})`,end:/$/}]}},U={scope:"regexp",variants:[F("###"),F("##"),F("#"),V]},q={match:an(/`/,Ya,/`/)},ae={className:"variable",match:/\$\d+/},B={className:"variable",match:`\\$${Gy}+`},$=[q,ae,B],X={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Zte,contains:[...N,k,P]}]}},xe={scope:"keyword",match:an(/@/,Vs(...Xte),Hf(Vs(/\(/,/\s+/)))},I={scope:"meta",match:an(/@/,Ya)},Z=[X,xe,I],le={match:Hf(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:an(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Gy,"+")},{className:"type",match:Ux,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:an(/\s+&\s+/,Hf(Ux)),relevance:0}]},fe={begin:/</,end:/>/,keywords:f,contains:[...s,...m,...Z,v,le]};le.contains.push(fe);const we={match:an(Ya,/\s*:/),keywords:"_|0",relevance:0},Ie={begin:/\(/,end:/\)/,relevance:0,keywords:f,contains:["self",we,...s,U,...m,...b,...N,k,P,...$,...Z,le]},Re={begin:/</,end:/>/,keywords:"repeat each",contains:[...s,le]},Oe={begin:Vs(Hf(an(Ya,/\s*:/)),Hf(an(Ya,/\s+/,Ya,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ya}]},Te={begin:/\(/,end:/\)/,keywords:f,contains:[Oe,...s,...m,...N,k,P,...Z,le,Ie],endsParent:!0,illegal:/["']/},Qe={match:[/(func|macro)/,/\s+/,Vs(q.match,Ya,n2)],className:{1:"keyword",3:"title.function"},contains:[Re,Te,e],illegal:[/\[/,/%/]},Ze={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Re,Te,e],illegal:/\[|%/},Tt={match:[/operator/,/\s+/,n2],className:{1:"keyword",3:"title"}},mt={begin:[/precedencegroup/,/\s+/,Ux],className:{1:"keyword",3:"title"},contains:[le],keywords:[...Kte,...JM],end:/}/},Ke={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},ct={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},kn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ya,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:f,contains:[Re,...m,{begin:/:/,end:/\{/,keywords:f,contains:[{scope:"title.class.inherited",match:Ux},...m],relevance:0}]};for(const et of P.variants){const se=et.contains.find(Mt=>Mt.label==="interpol");se.keywords=f;const Pe=[...m,...b,...N,k,P,...$];se.contains=[...Pe,{begin:/\(/,end:/\)/,contains:["self",...Pe]}]}return{name:"Swift",keywords:f,contains:[...s,Qe,Ze,Ke,ct,kn,Tt,mt,{beginKeywords:"import",end:/$/,contains:[...s],relevance:0},U,...m,...b,...N,k,P,...$,...Z,le,Ie]}}const qy="[A-Za-z$_][0-9A-Za-z$_]*",yI=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],bI=["true","false","null","undefined","NaN","Infinity"],vI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],wI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],NI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],SI=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_I=[].concat(NI,vI,wI);function Qte(t){const e=t.regex,n=(X,{after:xe})=>{const I="</"+X[0].slice(1);return X.input.indexOf(I,xe)!==-1},s=qy,r={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,xe)=>{const I=X[0].length+X.index,Z=X.input[I];if(Z==="<"||Z===","){xe.ignoreMatch();return}Z===">"&&(n(X,{after:I})||xe.ignoreMatch());let le;const fe=X.input.substring(I);if(le=fe.match(/^\s*=/)){xe.ignoreMatch();return}if((le=fe.match(/^\s+extends\s+/))&&le.index===0){xe.ignoreMatch();return}}},c={$pattern:qy,keyword:yI,literal:bI,built_in:_I,"variable.language":SI},u="[0-9](_?[0-9])*",f=`\\.(${u})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${m})((${f})|\\.)?|(${f}))[eE][+-]?(${u})\\b`},{begin:`\\b(${m})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,x],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,x]},E={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},k=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,b,v,w,N,{match:/\$\d+/},g];x.contains=k.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(k)});const C=[].concat(E,x.contains),A=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(C)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:A},M={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,e.concat(s,"(",e.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...vI,...wI]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},H={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},V={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function F(X){return e.concat("(?!",X.join("|"),")")}const U={match:e.concat(/\b/,F([...NI,"super","import","await"].map(X=>`${X}\\s*\\(`)),s,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:O},illegal:/#(?![$_A-Za-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,b,v,w,N,E,{match:/\$\d+/},g,O,{scope:"attr",match:s+e.lookahead(":"),relevance:0},$,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,t.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:a},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},H,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,t.inherit(t.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},U,V,M,ae,{match:/\$[(.]/}]}}function ene(t){const e=t.regex,n=Qte(t),s=qy,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},c={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},u=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:qy,keyword:yI.concat(u),literal:bI,built_in:_I.concat(r),"variable.language":SI},m={className:"meta",begin:"@"+s},g=(w,N,_)=>
244{const E=w.contains.findIndex(k=>k.label===N);if(E===-1)throw new Error("can not find mode to replace");w.contains.splice(E,1,_)};Object.assign(n.keywords,f),n.exports.PARAMS_CONTAINS.push(m);const x=n.contains.find(w=>w.scope==="attr"),b=Object.assign({},x,{match:e.concat(s,e.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,x,b]),n.contains=n.contains.concat([m,a,l,b]),g(n,"shebang",t.SHEBANG()),g(n,"use_strict",c);const v=n.contains.find(w=>w.label==="func.def");return v.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function tne(t){const e=t.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,l=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:e.concat(/# */,e.either(a,r),/ *#/)},{begin:e.concat(/# */,c,/ *#/)},{begin:e.concat(/# */,l,/ *#/)},{begin:e.concat(/# */,e.either(a,r),/ +/,e.either(l,c),/ *#/)}]},f={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},m={className:"label",begin:/^\w+:/},g=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,s,u,f,m,g,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}function nne(t){t.regex;const e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");const n=t.COMMENT(/;;/,/$/),s=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},l={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},f={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?
vendor: 4,555 bytes, line 244
244:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[n,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,l,r,t.QUOTE_STRING_MODE,u,f,c]}}function ine(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=t.inherit(a,{begin:/\(/,end:/\)/}),c=t.inherit(t.APOS_STRING_MODE,{className:"string"}),u=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,u,c,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,l,u,c]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:f}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function sne(t){const e="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},l={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,r]},c=t.inherit(l,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},b={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},v={begin:/\{/,end:/\}/,contains:[b],illegal:"\\n",relevance:0},w={begin:"\\[",end:"\\]",contains:[b],illegal:"\\n",relevance:0},N=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},x,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},v,w,a,l],_=[...N];return _.pop(),_.push(c),b.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:N}}const rne={arduino:Bee,bash:zee,c:Fee,cpp:Hee,csharp:$ee,css:Zee,diff:Jee,go:Qee,graphql:ete,ini:tte,java:nte,javascript:ote,json:dte,kotlin:hte,less:vte,lua:wte,makefile:Nte,markdown:Ste,objectivec:_te,perl:jte,php:Ete,"php-template":kte,plaintext:Cte,python:Tte,"python-repl":Ate,r:Mte,ruby:Rte,rust:Ote,scss:$te,shell:Ute,sql:Wte,swift:Jte,typescript:ene,vbnet:tne,wasm:nne,xml:ine,yaml:sne};var i2,e4;function ane(){if(e4)return i2;e4=1;
244function t(D){return D instanceof Map?D.clear=D.delete=D.set=function(){throw new Error("map is read-only")}:D instanceof Set&&(D.add=D.clear=D.delete=function(){throw new Error("set is read-only")}),Object.freeze(D),Object.getOwnPropertyNames(D).forEach(W=>{const ne=D[W],Ne=typeof ne;(Ne==="object"||Ne==="function")&&!Object.isFrozen(ne)&&t(ne)}),D}class e{constructor(W){W.data===void 0&&(W.data={}),this.data=W.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(D){return D.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(D,...W){const ne=Object.create(null);for(const Ne in D)ne[Ne]=D[Ne];return W.forEach(function(Ne){for(const Ee in Ne)ne[Ee]=Ne[Ee]}),ne}const r="</span>",a=D=>!!D.scope,l=(D,{prefix:W})=>{if(D.startsWith("language:"))return D.replace("language:","language-");if(D.includes(".")){const ne=D.split(".");return[`${W}${ne.shift()}`,...ne.map((Ne,Ee)=>`${Ne}${"_".repeat(Ee+1)}`)].join(" ")}return`${W}${D}`};class c{constructor(W,ne){this.buffer="",this.classPrefix=ne.classPrefix,W.walk(this)}addText(W){this.buffer+=n(W)}openNode(W){if(!a(W))return;const ne=l(W.scope,{prefix:this.classPrefix});this.span(ne)}closeNode(W){a(W)&&(this.buffer+=r)}value(){return this.buffer}span(W){this.buffer+=`<span class="${W}">`}}const u=(D={})=>{const W={children:[]};return Object.assign(W,D),W};class f{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(W){this.top.children.push(W)}openNode(W){const ne=u({scope:W});this.add(ne),this.stack.push(ne)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(W){return this.constructor._walk(W,this.rootNode)}static _walk(W,ne){return typeof ne=="string"?W.addText(ne):ne.children&&(W.openNode(ne),ne.children.forEach(Ne=>this._walk(W,Ne)),W.closeNode(ne)),W}static _collapse(W){typeof W!="string"&&W.children&&(W.children.every(ne=>typeof ne=="string")?W.children=[W.children.join("")]:W.children.forEach(ne=>{f._collapse(ne)}))}}class m extends f{constructor(W){super(),this.options=W}addText(W){W!==""&&this.add(W)}startScope(W){this.openNode(W)}endScope(){this.closeNode()}__addSublanguage(W,ne){const Ne=W.root;ne&&(Ne.scope=`language:${ne}`),this.add(Ne)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}
244function g(D){return D?typeof D=="string"?D:D.source:null}function x(D){return w("(?=",D,")")}function b(D){return w("(?:",D,")*")}function v(D){return w("(?:",D,")?")}function w(...D){return D.map(ne=>g(ne)).join("")}function N(D){const W=D[D.length-1];return typeof W=="object"&&W.constructor===Object?(D.splice(D.length-1,1),W):{}}function _(...D){return"("+(N(D).capture?"":"?:")+D.map(Ne=>g(Ne)).join("|")+")"}function E(D){return new RegExp(D.toString()+"|").exec("").length-1}function k(D,W){const ne=D&&D.exec(W);return ne&&ne.index===0}const C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function A(D,{joinWith:W}){let ne=0;return D.map(Ne=>{ne+=1;const Ee=ne;let _e=g(Ne),re="";for(;_e.length>0;){const K=C.exec(_e);if(!K){re+=_e;break}re+=_e.substring(0,K.index),_e=_e.substring(K.index+K[0].length),K[0][0]==="\\"&&K[1]?re+="\\"+String(Number(K[1])+Ee):(re+=K[0],K[0]==="("&&ne++)}return re}).map(Ne=>`(${Ne})`).join(W)}const L=/\b\B/,M="[a-zA-Z]\\w*",O="[a-zA-Z_]\\w*",P="\\b\\d+(\\.\\d+)?",H="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",V="\\b(0b[01]+)",F="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",U=(D={})=>{const W=/^#![ ]*\//;return D.binary&&(D.begin=w(W,/.*\b/,D.binary,/\b.*/)),s({scope:"meta",begin:W,end:/$/,relevance:0,"on:begin":(ne,Ne)=>{ne.index!==0&&Ne.ignoreMatch()}},D)},q={begin:"\\\\[\\s\\S]",relevance:0},ae={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[q]},B={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[q]},$={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(D,W,ne={}){const Ne=s({scope:"comment",begin:D,end:W,contains:[]},ne);Ne.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});
vendor: 7,252 bytes, line 244
244const Ee=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ne.contains.push({begin:w(/[ ]+/,"(",Ee,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ne},xe=X("//","$"),I=X("/\\*","\\*/"),Z=X("#","$"),le={scope:"number",begin:P,relevance:0},fe={scope:"number",begin:H,relevance:0},we={scope:"number",begin:V,relevance:0},Ie={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[q,{begin:/\[/,end:/\]/,relevance:0,contains:[q]}]},Re={scope:"title",begin:M,relevance:0},Oe={scope:"title",begin:O,relevance:0},Te={begin:"\\.\\s*"+O,relevance:0};var Ze=Object.freeze({__proto__:null,APOS_STRING_MODE:ae,BACKSLASH_ESCAPE:q,BINARY_NUMBER_MODE:we,BINARY_NUMBER_RE:V,COMMENT:X,C_BLOCK_COMMENT_MODE:I,C_LINE_COMMENT_MODE:xe,C_NUMBER_MODE:fe,C_NUMBER_RE:H,END_SAME_AS_BEGIN:function(D){return Object.assign(D,{"on:begin":(W,ne)=>{ne.data._beginMatch=W[1]},"on:end":(W,ne)=>{ne.data._beginMatch!==W[1]&&ne.ignoreMatch()}})},HASH_COMMENT_MODE:Z,IDENT_RE:M,MATCH_NOTHING_RE:L,METHOD_GUARD:Te,NUMBER_MODE:le,NUMBER_RE:P,PHRASAL_WORDS_MODE:$,QUOTE_STRING_MODE:B,REGEXP_MODE:Ie,RE_STARTERS_RE:F,SHEBANG:U,TITLE_MODE:Re,UNDERSCORE_IDENT_RE:O,UNDERSCORE_TITLE_MODE:Oe});function Tt(D,W){D.input[D.index-1]==="."&&W.ignoreMatch()}function mt(D,W){D.className!==void 0&&(D.scope=D.className,delete D.className)}function Ke(D,W){W&&D.beginKeywords&&(D.begin="\\b("+D.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",D.__beforeBegin=Tt,D.keywords=D.keywords||D.beginKeywords,delete D.beginKeywords,D.relevance===void 0&&(D.relevance=0))}function ct(D,W){Array.isArray(D.illegal)&&(D.illegal=_(...D.illegal))}function kn(D,W){if(D.match){if(D.begin||D.end)throw new Error("begin & end are not supported with match");D.begin=D.match,delete D.match}}function et(D,W){D.relevance===void 0&&(D.relevance=1)}const se=(D,W)=>{if(!D.beforeMatch)return;if(D.starts)throw new Error("beforeMatch cannot be used with starts");const ne=Object.assign({},D);Object.keys(D).forEach(Ne=>{delete D[Ne]}),D.keywords=ne.keywords,D.begin=w(ne.beforeMatch,x(ne.begin)),D.starts={relevance:0,contains:[Object.assign(ne,{endsParent:!0})]},D.relevance=0,delete ne.beforeMatch},Pe=["of","and","for","in","not","or","if","then","parent","list","value"],Mt="keyword";function xn(D,W,ne=Mt){const Ne=Object.create(null);return typeof D=="string"?Ee(ne,D.split(" ")):Array.isArray(D)?Ee(ne,D):Object.keys(D).forEach(function(_e){Object.assign(Ne,xn(D[_e],W,_e))}),Ne;function Ee(_e,re){W&&(re=re.map(K=>K.toLowerCase())),re.forEach(function(K){const ce=K.split("|");Ne[ce[0]]=[_e,pt(ce[0],ce[1])]})}}function pt(D,W){return W?Number(W):Fi(D)?0:1}function Fi(D){return Pe.includes(D.toLowerCase())}const ji={},Ft=D=>{console.error(D)},yn=(D,...W)=>{console.log(`WARN: ${D}`,...W)},tn=(D,W)=>{ji[`${D}/${W}`]||(console.log(`Deprecated as of ${D}. ${W}`),ji[`${D}/${W}`]=!0)},ot=new Error;function bn(D,W,{key:ne}){let Ne=0;const Ee=D[ne],_e={},re={};for(let K=1;K<=W.length;K++)re[K+Ne]=Ee[K],_e[K+Ne]=!0,Ne+=E(W[K-1]);D[ne]=re,D[ne]._emit=_e,D[ne]._multi=!0}function Vt(D){if(Array.isArray(D.begin)){if(D.skip||D.excludeBegin||D.returnBegin)throw Ft("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ot;if(typeof D.beginScope!="object"||D.beginScope===null)throw Ft("beginScope must be object"),ot;bn(D,D.begin,{key:"beginScope"}),D.begin=A(D.begin,{joinWith:""})}}function Bs(D){if(Array.isArray(D.end)){if(D.skip||D.excludeEnd||D.returnEnd)throw Ft("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ot;if(typeof D.endScope!="object"||D.endScope===null)throw Ft("endScope must be object"),ot;bn(D,D.end,{key:"endScope"}),D.end=A(D.end,{joinWith:""})}}function ya(D){D.scope&&typeof D.scope=="object"&&D.scope!==null&&(D.beginScope=D.scope,delete D.scope)}function vn(D){ya(D),typeof D.beginScope=="string"&&(D.beginScope={_wrap:D.beginScope}),typeof D.endScope=="string"&&(D.endScope={_wrap:D.endScope}),Vt(D),Bs(D)}function yr(D){function W(re,K){return new RegExp(g(re),"m"+(D.case_insensitive?"i":"")+(D.unicodeRegex?"u":"")+(K?"g":""))}class ne{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(K,ce){ce.position=this.position++,this.matchIndexes[this.matchAt]=ce,this.regexes.push([ce,K]),this.matchAt+=E(K)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const K=this.regexes.map(ce=>ce[1]);this.matcherRe=W(A(K,{joinWith:"|"}),!0),this.lastIndex=0}exec(K){this.matcherRe.lastIndex=this.lastIndex;const ce=this.matcherRe.exec(K);if(!ce)return null;const Se=ce.findIndex((Pt,lt)=>lt>0&&Pt!==void 0),ke=this.matchIndexes[Se];return ce.splice(0,Se),Object.assign(ce,ke)}}class Ne{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(K){if(this.multiRegexes[K])return this.multiRegexes[K];const ce=new ne;return this.rules.slice(K).forEach(([Se,ke])=>ce.addRule(Se,ke)),ce.compile(),this.multiRegexes[K]=ce,ce}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(K,ce){this.rules.push([K,ce]),ce.type==="begin"&&this.count++}exec(K){const ce=this.getMatcher(this.regexIndex);ce.lastIndex=this.lastIndex;let Se=ce.exec(K);if(this.resumingScanAtSamePosition()&&!(Se&&Se.index===this.lastIndex)){const ke=this.getMatcher(0);ke.lastIndex=this.lastIndex+1,Se=ke.exec(K)}return Se&&(this.regexIndex+=Se.position+1,this.regexIndex===this.count&&this.considerAll()),Se}}function Ee(re){const K=new Ne;return re.contains.forEach(ce=>K.addRule(ce.begin,{rule:ce,type:"begin"})),re.terminatorEnd&&K.addRule(re.terminatorEnd,{type:"end"}),re.illegal&&K.addRule(re.illegal,{type:"illegal"}),K}function _e(re,K){const ce=re;if(re.isCompiled)return ce;[mt,kn,vn,se].forEach(ke=>ke(re,K)),D.compilerExtensions.forEach(ke=>ke(re,K)),re.__beforeBegin=null,[Ke,ct,et].forEach(ke=>ke(re,K)),re.isCompiled=!0;let Se=null;return typeof re.keywords=="object"&&re.keywords.$pattern&&(re.keywords=Object.assign({},re.keywords),Se=re.keywords.$pattern,delete re.keywords.$pattern),Se=Se||/\w+/,re.keywords&&(re.keywords=xn(re.keywords,D.case_insensitive)),ce.keywordPatternRe=W(Se,!0),K&&(re.begin||(re.begin=/\B|\b/),ce.beginRe=W(ce.begin),!re.end&&!re.endsWithParent&&(re.end=/\B|\b/),re.end&&(ce.endRe=W(ce.end)),ce.terminatorEnd=g(ce.end)||"",re.endsWithParent&&K.terminatorEnd&&(ce.terminatorEnd+=(re.end?"|":"")+K.terminatorEnd)),re.illegal&&(ce.illegalRe=W(re.illegal)),re.contains||(re.contains=[]),re.contains=[].concat(...re.contains.map(function(ke){return Hi(ke==="self"?re:ke)})),re.contains.forEach(function(ke){_e(ke,ce)}),re.starts&&_e(re.starts,K),ce.matcher=Ee(ce),ce}if(D.compilerExtensions||(D.compilerExtensions=[]),D.contains&&D.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return D.classNameAliases=s(D.classNameAliases||{}),_e(D)}function mi(D){return D?D.endsWithParent||mi(D.starts):!1}function Hi(D){return D.variants&&!D.cachedVariants&&(D.cachedVariants=D.variants.map(function(W){return s(D,{variants:null},W)})),D.cachedVariants?D.cachedVariants:mi(D)?s(D,{starts:D.starts?s(D.starts):null}):Object.isFrozen(D)?s(D):D}var zs="11.11.2";
244class $i extends Error{constructor(W,ne){super(W),this.name="HTMLInjectionError",this.html=ne}}const es=n,rt=s,ys=Symbol("nomatch"),Ei=7,Hn=function(D){const W=Object.create(null),ne=Object.create(null),Ne=[];let Ee=!0;const _e="Could not find the language '{}', did you forget to load/include a language module?",re={disableAutodetect:!0,name:"Plain text",contains:[]};let K={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function ce(ee){return K.noHighlightRe.test(ee)}function Se(ee){let me=ee.className+" ";me+=ee.parentNode?ee.parentNode.className:"";const Me=K.languageDetectRe.exec(me);if(Me){const Fe=ht(Me[1]);return Fe||(yn(_e.replace("{}",Me[1])),yn("Falling back to no-highlight mode for this block.",ee)),Fe?Me[1]:"no-highlight"}return me.split(/\s+/).find(Fe=>ce(Fe)||ht(Fe))}function ke(ee,me,Me){let Fe="",Xe="";typeof me=="object"?(Fe=ee,Me=me.ignoreIllegals,Xe=me.language):(tn("10.7.0","highlight(lang, code, ...args) has been deprecated."),tn("10.7.0",`Please use highlight(code, options) instead. 245https://github.com/highlightjs/highlight.js/issues/2277`),Xe=ee,Fe=me),Me===void 0&&(Me=!0);const Tn={code:Fe,language:Xe};Ui("before:highlight",Tn);const pi=Tn.result?Tn.result:Pt(Tn.language,Tn.code,Me);return pi.code=Tn.code,Ui("after:highlight",pi),pi}function Pt(ee,me,Me,Fe){const Xe=Object.create(null);function Tn(ue,pe){return ue.keywords[pe]}function pi(){if(!Ce.keywords){vt.addText(Ge);return}let ue=0;Ce.keywordPatternRe.lastIndex=0;let pe=Ce.keywordPatternRe.exec(Ge),Ae="";for(;pe;){Ae+=Ge.substring(ue,pe.index);const He=On.case_insensitive?pe[0].toLowerCase():pe[0],_t=Tn(Ce,He);if(_t){const[Xn,mo]=_t;if(vt.addText(Ae),Ae="",Xe[He]=(Xe[He]||0)+1,Xe[He]<=Ei&&(ba+=mo),Xn.startsWith("_"))Ae+=pe[0];else{const wr=On.classNameAliases[Xn]||Xn;Un(pe[0],wr)}}else Ae+=pe[0];ue=Ce.keywordPatternRe.lastIndex,pe=Ce.keywordPatternRe.exec(Ge)}Ae+=Ge.substring(ue),vt.addText(Ae)}
vendor: 4,124 bytes, lines 245-246
245function Yn(){if(Ge==="")return;let ue=null;if(typeof Ce.subLanguage=="string"){if(!W[Ce.subLanguage]){vt.addText(Ge);return}ue=Pt(Ce.subLanguage,Ge,!0,ll[Ce.subLanguage]),ll[Ce.subLanguage]=ue._top}else ue=Bt(Ge,Ce.subLanguage.length?Ce.subLanguage:null);Ce.relevance>0&&(ba+=ue.relevance),vt.__addSublanguage(ue._emitter,ue.language)}function Gt(){Ce.subLanguage!=null?Yn():pi(),Ge=""}function Un(ue,pe){ue!==""&&(vt.startScope(pe),vt.addText(ue),vt.endScope())}function $a(ue,pe){let Ae=1;const He=pe.length-1;for(;Ae<=He;){if(!ue._emit[Ae]){Ae++;continue}const _t=On.classNameAliases[ue[Ae]]||ue[Ae],Xn=pe[Ae];_t?Un(Xn,_t):(Ge=Xn,pi(),Ge=""),Ae++}}function ol(ue,pe){return ue.scope&&typeof ue.scope=="string"&&vt.openNode(On.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(Un(Ge,On.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),Ge=""):ue.beginScope._multi&&($a(ue.beginScope,pe),Ge="")),Ce=Object.create(ue,{parent:{value:Ce}}),Ce}function Ua(ue,pe,Ae){let He=k(ue.endRe,Ae);if(He){if(ue["on:end"]){const _t=new e(ue);ue["on:end"](pe,_t),_t.isMatchIgnored&&(He=!1)}if(He){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return Ua(ue.parent,pe,Ae)}function Dh(ue){return Ce.matcher.regexIndex===0?(Ge+=ue[0],1):(va=!0,0)}function vs(ue){const pe=ue[0],Ae=ue.rule,He=new e(Ae),_t=[Ae.__beforeBegin,Ae["on:begin"]];for(const Xn of _t)if(Xn&&(Xn(ue,He),He.isMatchIgnored))return Dh(pe);return Ae.skip?Ge+=pe:(Ae.excludeBegin&&(Ge+=pe),Gt(),!Ae.returnBegin&&!Ae.excludeBegin&&(Ge=pe)),ol(Ae,ue),Ae.returnBegin?0:pe.length}function wc(ue){const pe=ue[0],Ae=me.substring(ue.index),He=Ua(Ce,ue,Ae);if(!He)return ys;const _t=Ce;Ce.endScope&&Ce.endScope._wrap?(Gt(),Un(pe,Ce.endScope._wrap)):Ce.endScope&&Ce.endScope._multi?(Gt(),$a(Ce.endScope,ue)):_t.skip?Ge+=pe:(_t.returnEnd||_t.excludeEnd||(Ge+=pe),Gt(),_t.excludeEnd&&(Ge=pe));do Ce.scope&&vt.closeNode(),!Ce.skip&&!Ce.subLanguage&&(ba+=Ce.relevance),Ce=Ce.parent;while(Ce!==He.parent);return He.starts&&ol(He.starts,ue),_t.returnEnd?0:pe.length}function zd(){const ue=[];for(let pe=Ce;pe!==On;pe=pe.parent)pe.scope&&ue.unshift(pe.scope);ue.forEach(pe=>vt.openNode(pe))}let vr={};function Wr(ue,pe){const Ae=pe&&pe[0];if(Ge+=ue,Ae==null)return Gt(),0;if(vr.type==="begin"&&pe.type==="end"&&vr.index===pe.index&&Ae===""){if(Ge+=me.slice(pe.index,pe.index+1),!Ee){const He=new Error(`0 width match regex (${ee})`);throw He.languageName=ee,He.badRule=vr.rule,He}return 1}if(vr=pe,pe.type==="begin")return vs(pe);if(pe.type==="illegal"&&!Me){const He=new Error('Illegal lexeme "'+Ae+'" for mode "'+(Ce.scope||"<unnamed>")+'"');throw He.mode=Ce,He}else if(pe.type==="end"){const He=wc(pe);if(He!==ys)return He}if(pe.type==="illegal"&&Ae==="")return pe.index===me.length||(Ge+=` 246`),1;if(Vr>1e5&&Vr>pe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ge+=Ae,Ae.length}const On=ht(ee);if(!On)throw Ft(_e.replace("{}",ee)),new Error('Unknown language: "'+ee+'"');const Fd=yr(On);let er="",Ce=Fe||Fd;const ll={},vt=new K.__emitter(K);zd();let Ge="",ba=0,ns=0,Vr=0,va=!1;try{if(On.__emitTokens)On.__emitTokens(me,vt);else{for(Ce.matcher.considerAll();;){Vr++,va?va=!1:Ce.matcher.considerAll(),Ce.matcher.lastIndex=ns;const ue=Ce.matcher.exec(me);if(!ue)break;const pe=me.substring(ns,ue.index),Ae=Wr(pe,ue);ns=ue.index+Ae}Wr(me.substring(ns))}return vt.finalize(),er=vt.toHTML(),{language:ee,value:er,relevance:ba,illegal:!1,_emitter:vt,_top:Ce}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:ee,value:es(me),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:ns,context:me.slice(ns-100,ns+100),mode:ue.mode,resultSoFar:er},_emitter:vt};if(Ee)return{language:ee,value:es(me),illegal:!1,relevance:0,errorRaised:ue,_emitter:vt,_top:Ce};throw ue}}function lt(ee){const me={value:es(ee),illegal:!1,relevance:0,_top:re,_emitter:new K.__emitter(K)};return me._emitter.addText(ee),me}function Bt(ee,me){me=me||K.languages||Object.keys(W);const Me=lt(ee),Fe=me.filter(ht).filter(br).map(Gt=>Pt(Gt,ee,!1));Fe.unshift(Me);const Xe=Fe.sort((Gt,Un)=>
246{if(Gt.relevance!==Un.relevance)return Un.relevance-Gt.relevance;if(Gt.language&&Un.language){if(ht(Gt.language).supersetOf===Un.language)return 1;if(ht(Un.language).supersetOf===Gt.language)return-1}return 0}),[Tn,pi]=Xe,Yn=Tn;return Yn.secondBest=pi,Yn}function wn(ee,me,Me){const Fe=me&&ne[me]||Me;ee.classList.add("hljs"),ee.classList.add(`language-${Fe}`)}function Lt(ee){let me=null;const Me=Se(ee);if(ce(Me))return;if(Ui("before:highlightElement",{el:ee,language:Me}),ee.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ee);return}if(ee.children.length>0&&(K.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ee)),K.throwUnescapedHTML))throw new $i("One of your code blocks includes unescaped HTML.",ee.innerHTML);me=ee;const Fe=me.textContent,Xe=Me?ke(Fe,{language:Me,ignoreIllegals:!0}):Bt(Fe);ee.innerHTML=Xe.value,ee.dataset.highlighted="yes",wn(ee,Me,Xe.language),ee.result={language:Xe.language,re:Xe.relevance,relevance:Xe.relevance},Xe.secondBest&&(ee.secondBest={language:Xe.secondBest.language,relevance:Xe.secondBest.relevance}),Ui("after:highlightElement",{el:ee,result:Xe,text:Fe})}function Rt(ee){K=rt(K,ee)}const bt=()=>{ut(),tn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function si(){ut(),tn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let At=!1;function ut(){function ee(){ut()}if(document.readyState==="loading"){At||window.addEventListener("DOMContentLoaded",ee,!1),At=!0;return}document.querySelectorAll(K.cssSelector).forEach(Lt)}function ts(ee,me){let Me=null;try{Me=me(D)}catch(Fe){if(Ft("Language definition for '{}' could not be registered.".replace("{}",ee)),Ee)Ft(Fe);else throw Fe;Me=re}Me.name||(Me.name=ee),W[ee]=Me,Me.rawDefinition=me.bind(null,D),Me.aliases&&Fs(Me.aliases,{languageName:ee})}function Rn(ee){delete W[ee];for(const me of Object.keys(ne))ne[me]===ee&&delete ne[me]}function Xt(){return Object.keys(W)}function ht(ee){return ee=(ee||"").toLowerCase(),W[ee]||W[ne[ee]]}function Fs(ee,{languageName:me}){typeof ee=="string"&&(ee=[ee]),ee.forEach(Me=>{ne[Me.toLowerCase()]=me})}function br(ee){const me=ht(ee);return me&&!me.disableAutodetect}function $n(ee){ee["before:highlightBlock"]&&!ee["before:highlightElement"]&&(ee["before:highlightElement"]=me=>{ee["before:highlightBlock"](Object.assign({block:me.el},me))}),ee["after:highlightBlock"]&&!ee["after:highlightElement"]&&(ee["after:highlightElement"]=me=>{ee["after:highlightBlock"](Object.assign({block:me.el},me))})}function Cn(ee){$n(ee),Ne.push(ee)}function ki(ee){const me=Ne.indexOf(ee);me!==-1&&Ne.splice(me,1)}function Ui(ee,me){const Me=ee;Ne.forEach(function(Fe){Fe[Me]&&Fe[Me](me)})}function bs(ee){return tn("10.7.0","highlightBlock will be removed entirely in v12.0"),tn("10.7.0","Please use highlightElement now."),Lt(ee)}Object.assign(D,{highlight:ke,highlightAuto:Bt,highlightAll:ut,highlightElement:Lt,highlightBlock:bs,configure:Rt,initHighlighting:bt,initHighlightingOnLoad:si,registerLanguage:ts,unregisterLanguage:Rn,listLanguages:Xt,getLanguage:ht,registerAliases:Fs,autoDetection:br,inherit:rt,addPlugin:Cn,removePlugin:ki}),D.debugMode=function(){Ee=!1},D.safeMode=function(){Ee=!0},D.versionString=zs,D.regex={concat:w,lookahead:x,either:_,optional:v,anyNumberOfTimes:b};for(const ee in Ze)typeof Ze[ee]=="object"&&t(Ze[ee]);return Object.assign(D,Ze),D},cn=Hn({});return cn.newInstance=()=>Hn({}),i2=cn,cn.HighlightJS=cn,cn.default=cn,i2}var one=ane();const lne=Dd(one),t4={},cne="hljs-";function dne(t){const e=lne.newInstance();return t&&a(t),{highlight:n,highlightAuto:s,listLanguages:r,register:a,registerAlias:l,registered:c};function n(u,f,m){const g=m||t4,x=typeof g.prefix=="string"?g.prefix:cne;if(!e.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");e.configure({__emitter:une,classPrefix:x});const b=e.highlight(f,{ignoreIllegals:!0,language:u});if(b.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:b.errorRaised});const v=b._emitter.root,w=v.data;return w.language=b.language,w.relevance=b.relevance,v}function s(u,f){const g=(f||t4).subset||r();let x=-1,b=0,v;for(;++x<g.length;){const w=g[x];if(!e.getLanguage(w))continue;const N=n(w,u,f);N.data&&N.data.relevance!==void 0&&N.data.relevance>b&&(b=N.data.relevance,v=N)}return v||{type:"root",children:[],data:{language:void 0,relevance:b}}}function r(){return e.listLanguages()}function a(u,f){if(typeof u=="string")e.registerLanguage(u,f);else{let m;
246for(m in u)Object.hasOwn(u,m)&&e.registerLanguage(m,u[m])}}function l(u,f){if(typeof u=="string")e.registerAliases(typeof f=="string"?f:[...f],{languageName:u});else{let m;for(m in u)if(Object.hasOwn(u,m)){const g=u[m];e.registerAliases(typeof g=="string"?g:[...g],{languageName:m})}}}function c(u){return!!e.getLanguage(u)}}class une{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;const n=this.stack[this.stack.length-1],s=n.children[n.children.length-1];s&&s.type==="text"?s.value+=e:n.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,n){const s=this.stack[this.stack.length-1],r=e.root.children;n?s.children.push({type:"element",tagName:"span",properties:{className:[n]},children:r}):s.children.push(...r)}openNode(e){const n=this,s=e.split(".").map(function(l,c){return c?l+"_".repeat(c):n.options.classPrefix+l}),r=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:s},children:[]};r.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const hne=dne(rne);function Vn({onClick:t,active:e,disabled:n,title:s,children:r}){return o.jsx("button",{type:"button",onClick:t,disabled:n,title:s,"aria-label":s,className:`p-1.5 rounded text-sm transition-all select-none ${e?"bg-[#1C3664] text-white":"text-[#475569] hover:bg-[#f1f5f9] hover:text-[#1C3664]"} disabled:opacity-30 disabled:cursor-not-allowed`,children:r})}function zc(){return o.jsx("div",{className:"w-px h-5 bg-[#e2e8f0] mx-0.5 self-center"})}function fne({content:t,onChange:e}){const n=T.useRef(null),[s,r]=$e.useState(!1),a=PX({extensions:[oQ.configure({codeBlock:!1}),Iee.configure({lowlight:hne}),cQ.configure({inline:!1,allowBase64:!1}),bL.configure({openOnClick:!1,autolink:!0,linkOnPaste:!0}),iI.configure({resizable:!0}),nI,tI,eI,vee.configure({types:["heading","paragraph"]}),AL,rI,aI,Tee.configure({multicolor:!0}),eQ.configure({placeholder:"Start writing your blog postâ¦"}),$J],content:t||"",onUpdate:({editor:m})=>{e(m.getHTML())},editorProps:{attributes:{class:"prose prose-lg max-w-none min-h-[400px] focus:outline-none px-6 py-5"}}}),l=T.useCallback(async m=>{if(!(!m||!a)){r(!0);try{const g=new FormData;g.append("image",m);const{data:x}=await ms.post("/blogs/admin/upload-image",g,{headers:{"Content-Type":"multipart/form-data"}});a.chain().focus().setImage({src:x.url,alt:m.name}).run()}catch(g){alert("Image upload failed: "+(g.response?.data?.message||g.message))}finally{r(!1)}}},[a]),c=T.useCallback(()=>{if(!a)return;const m=a.getAttributes("link").href||"",g=window.prompt("Enter URL:",m);if(g!==null){if(g===""){a.chain().focus().extendMarkToNextWord().unsetLink().run();return}a.chain().focus().extendMarkToNextWord().setLink({href:g}).run()}},[a]);if(!a)return null;const u=a.storage.characterCount?.characters()??0,f=a.storage.characterCount?.words()??0;return o.jsxs("div",{className:"border border-[#e2e8f0] rounded-xl overflow-hidden bg-white shadow-sm",children:[o.jsxs("div",{className:"border-b border-[#e2e8f0] bg-[#f8fafc] px-3 py-2 flex flex-wrap gap-0.5 items-center",children:[o.jsx(Vn,{title:"Undo",onClick:()=>a.chain().focus().undo().run(),disabled:!a.can().undo(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})})}),o.jsx(Vn,{title:"Redo",onClick:()=>a.chain().focus().redo().run(),disabled:!a.can().redo(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 10H11a8 8 0 00-8 8v2m18-10l-6 6m6-6l-6-6"})})}),o.jsx(zc,{}),[1,2,3].map(m=>o.jsx(Vn,{title:`Heading ${m}`,active:a.isActive("heading",{level:m}),onClick:()=>a.chain().focus().toggleHeading({level:m}).run(),children:o.jsxs("span",{className:"font-bold text-xs",children:["H",m]})},m)),o.jsx(Vn,{title:"Paragraph",active:a.isActive("paragraph"),onClick:()=>a.chain().focus().setParagraph().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h8m-8 6h16"})})}),o.jsx(zc,{}),o.jsx(Vn,{title:"Bold",active:a.isActive("bold"),onClick:()=>a.chain().focus().toggleBold().run(),children:o.jsx("span",{className:"font-bold text-xs w-4 text-center",children:"B"})}),o.jsx(Vn,{title:"Italic",active:a.isActive("italic"),onClick:()=>a.chain().focus().toggleItalic().run(),children:o.jsx("span",{className:"italic text-xs w-4 text-center",children:"I"})}),o.jsx(Vn,{title:"Underline",active:a.isActive("underline"),onClick:()=>a.chain().focus().toggleUnderline().run(),children:o.jsx("span",{className:"underline text-xs w-4 text-center",children:"U"})}
246),o.jsx(Vn,{title:"Strikethrough",active:a.isActive("strike"),onClick:()=>a.chain().focus().toggleStrike().run(),children:o.jsx("span",{className:"line-through text-xs w-4 text-center",children:"S"})}),o.jsx(Vn,{title:"Inline Code",active:a.isActive("code"),onClick:()=>a.chain().focus().toggleCode().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})})}),o.jsx(zc,{}),o.jsx(Vn,{title:"Highlight",active:a.isActive("highlight"),onClick:()=>a.chain().focus().toggleHighlight({color:"#fef08a"}).run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M9.243 3.03a1 1 0 01.727 1.19L9.53 6h2.94l.5-2.22a1 1 0 011.94.44L14.47 6H17a1 1 0 110 2h-2.97l-1 4.5H15a1 1 0 110 2h-2.42l-.5 2.22a1 1 0 01-1.94-.44l.44-1.78H7.53l-.5 2.22a1 1 0 01-1.94-.44L5.53 14H3a1 1 0 110-2h2.97l1-4.5H5a1 1 0 010-2h2.42l.5-2.22a1 1 0 011.331-.728zM9.03 8l-1 4.5h2.94l1-4.5H9.03z"})})}),o.jsxs("label",{title:"Text Color",className:"relative cursor-pointer p-1.5 rounded hover:bg-[#f1f5f9] transition-all",children:[o.jsx("svg",{className:"w-4 h-4 text-[#475569]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})}),o.jsx("input",{type:"color",className:"absolute inset-0 opacity-0 w-full h-full cursor-pointer",onInput:m=>a.chain().focus().setColor(m.target.value).run()})]}),o.jsx(zc,{}),["left","center","right","justify"].map(m=>o.jsxs(Vn,{title:`Align ${m}`,active:a.isActive({textAlign:m}),onClick:()=>a.chain().focus().setTextAlign(m).run(),children:[m==="left"&&o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h10M4 18h16"})}),m==="center"&&o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M7 12h10M4 18h16"})}),m==="right"&&o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M10 12h10M4 18h16"})}),m==="justify"&&o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})]},m)),o.jsx(zc,{}),o.jsx(Vn,{title:"Bullet List",active:a.isActive("bulletList"),onClick:()=>a.chain().focus().toggleBulletList().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 10h16M4 14h16M4 18h16"})})}),o.jsx(Vn,{title:"Ordered List",active:a.isActive("orderedList"),onClick:()=>a.chain().focus().toggleOrderedList().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})})}),o.jsx(Vn,{title:"Blockquote",active:a.isActive("blockquote"),onClick:()=>a.chain().focus().toggleBlockquote().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})})}),o.jsx(Vn,{title:"Code Block",active:a.isActive("codeBlock"),onClick:()=>a.chain().focus().toggleCodeBlock().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),o.jsx(Vn,{title:"Horizontal Rule",onClick:()=>a.chain().focus().setHorizontalRule().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})}),o.jsx(zc,{}),o.jsx(Vn,{title:"Insert Table",onClick:()=>a.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),children:o.jsxs("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[o.jsx("rect",{x:"3",y:"3",width:"7",height:"7",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("rect",{x:"14",y:"3",width:"7",height:"7",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("rect",{x:"3",y:"14",width:"7",height:"7",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("rect",{x:"14",y:"14",width:"7",height:"7",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}),a.isActive("table")&&o.jsxs(o.Fragment,{children:[o.jsx(Vn,{title:"Add Column",onClick:()=>a.chain().focus().addColumnAfter().run(),children:"+Col"}),o.jsx(Vn,{title:"Add Row",onClick:()=>a.chain().focus().addRowAfter().run(),children:"+Row"}),o.jsx(Vn,{title:"Delete Table",onClick:()=>a.chain().focus().deleteTable().run(),children:o.jsx("svg",{className:"w-4 h-4 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]}),o.jsx(zc,{}),o.jsx(Vn,{title:"Add Link",active:a.isActive("link"),onClick:c,children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})})}),a.isActive("link")&&o.jsx(Vn,{title:"Remove Link",onClick:()=>a.chain().focus().unsetLink().run(),children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"})})}),o.jsx(Vn,{title:"Insert Image",onClick:()=>n.current?.click(),disabled:s,children:s?o.jsx("div",{className:"w-4 h-4 border-2 border-[#1C3664]/40 border-t-[#1C3664] rounded-full animate-spin"}):o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),o.jsx("input",{ref:n,type:"file",accept:"image/*",className:"hidden",onChange:m=>{const g=m.target.files?.[0];g&&l(g),m.target.value=""}})]}),o.jsx("div",{className:"max-h-[390px] overflow-y-auto",children:o.jsx(XD,{editor:a,className:"tiptap-editor"})}),o.jsxs("div",{className:"border-t border-[#e2e8f0] bg-[#f8fafc] px-4 py-1.5 flex items-center justify-end gap-4",children:[o.jsxs("span",{className:"text-xs text-[#94a3b8]",children:[f," words"]}),o.jsxs("span",{className:"text-xs text-[#94a3b8]",children:[u," chars"]})]})]})}const mne={title:"",slug:"",excerpt:"",content:"",tags:"",status:"draft",featured:!1,author:{name:"Amatir Team",bio:""},seo:{metaTitle:"",metaDescription:"",canonicalUrl:"",keywords:""},coverImage:{url:"",publicId:"",altText:""}};function n4(t){return t.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-")}function ea({label:t,required:e,hint:n,children:s}){return o.jsxs("div",{className:"space-y-1.5",children:[o.jsxs("label",{className:"block text-sm font-semibold text-[#1C3664]",children:[t,e&&o.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),n&&o.jsx("p",{className:"text-xs text-[#94a3b8]",children:n}),s]})}function Rl({className:t="",...e}){return o.jsx("input",{className:`w-full px-3.5 py-2.5 border border-[#e2e8f0] rounded-lg text-sm text-[#1C3664] placeholder-[#94a3b8] focus:outline-none focus:border-[#1C3664] focus:ring-2 focus:ring-[#1C3664]/10 transition-all bg-white ${t}`,...e})}function s2({className:t="",...e}){return o.jsx("textarea",{className:`w-full px-3.5 py-2.5 border border-[#e2e8f0] rounded-lg text-sm text-[#1C3664] placeholder-[#94a3b8] focus:outline-none focus:border-[#1C3664] focus:ring-2 focus:ring-[#1C3664]/10 transition-all bg-white resize-none ${t}`,...e})}function i4(){const{id:t}=L6(),e=Is(),n=!!t,s=T.useRef(null),[r,a]=T.useState(mne),[l,c]=T.useState(null),[u,f]=T.useState(""),[m,g]=T.useState(!1),[x,b]=T.useState(n),[v,w]=T.useState(""),[N,_]=T.useState(!1),[E,k]=T.useState("content"),C=T.useRef(!1);T.useEffect(()=>{n&&(b(!0),ms.get(`/blogs/admin/${t}`).then(({data:U})=>{const q=U.blog;a({title:q.title||"",slug:q.slug||"",excerpt:q.excerpt||"",content:q.content||"",tags:(q.tags||[]).join(", "),status:q.status||"draft",featured:q.featured||!1,author:q.author||{name:"Amatir Team",bio:""},seo:{metaTitle:q.seo?.metaTitle||"",metaDescription:q.seo?.metaDescription||"",canonicalUrl:q.seo?.canonicalUrl||"",keywords:(q.seo?.keywords||[]).join(", ")},coverImage:q.coverImage||{url:"",publicId:"",altText:""}}),q.coverImage?.url&&f(q.coverImage.url),C.current=!0}
246).catch(()=>w("Failed to load blog post")).finally(()=>b(!1)))},[t,n]);const A=U=>{const q=U.target.value;a(ae=>({...ae,title:q,slug:C.current?ae.slug:n4(q),seo:{...ae.seo,metaTitle:ae.seo.metaTitle===ae.title?q.slice(0,70):ae.seo.metaTitle}}))},L=(U,q)=>{U==="slug"&&(C.current=!0),a(ae=>({...ae,[U]:q}))},M=(U,q,ae)=>{a(B=>({...B,[U]:{...B[U],[q]:ae}}))},O=U=>{const q=U.target.files?.[0];q&&(c(q),f(URL.createObjectURL(q)))},P=()=>{c(null),f(""),a(U=>({...U,coverImage:{url:"",publicId:"",altText:""}})),s.current&&(s.current.value="")},H=async(U,q)=>{if(U?.preventDefault(),w(""),!r.title.trim()){w("Title is required");return}if(!r.content||r.content==="<p></p>"||r.content.trim()===""){w("Content is required");return}g(!0),w("");try{const ae={...r,status:q||r.status,tags:r.tags.split(",").map(X=>X.trim()).filter(Boolean),seo:{...r.seo,keywords:r.seo.keywords.split(",").map(X=>X.trim()).filter(Boolean)}},B=new FormData;B.append("blogData",JSON.stringify(ae)),l&&B.append("coverImage",l);const{data:$}=n?await ms.put(`/blogs/${t}`,B,{headers:{"Content-Type":"multipart/form-data"}}):await ms.post("/blogs",B,{headers:{"Content-Type":"multipart/form-data"}});_(!0),n?($.blog.coverImage?.url&&f($.blog.coverImage.url),a(X=>({...X,status:$.blog.status,slug:$.blog.slug}))):e("/dashboard/blogs",{replace:!0})}catch(ae){w(ae.response?.data?.message||"Save failed. Please try again.")}finally{g(!1)}};if(x)return o.jsx(ty,{children:o.jsx("div",{className:"flex items-center justify-center py-24",children:o.jsx("div",{className:"w-10 h-10 border-4 border-[#1C3664] border-t-transparent rounded-full animate-spin"})})});const V=r.seo.metaDescription.length,F=r.seo.metaTitle.length;return o.jsx(ty,{children:o.jsxs("form",{onSubmit:H,noValidate:!0,children:[o.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-[#1C3664] text-2xl font-bold",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:n?"Edit Blog Post":"New Blog Post"}),o.jsx("p",{className:"text-[#64748b] text-sm mt-0.5",children:n?`Editing: ${r.title||"â¦"}`:"Fill in the details to create a new post"})]}),o.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[o.jsx("button",{type:"button",onClick:()=>e("/dashboard"),className:"px-4 py-2 text-sm text-[#64748b] border border-[#e2e8f0] rounded-lg hover:bg-[#f1f5f9] transition-colors",children:"â Back"}),o.jsx("button",{type:"button",onClick:U=>H(U,"draft"),disabled:m,className:"px-4 py-2 text-sm text-[#1C3664] border border-[#1C3664] rounded-lg hover:bg-[#1C3664]/5 transition-colors disabled:opacity-50 cursor-pointer",children:"Save Draft"}),o.jsxs("button",{type:"button",onClick:U=>H(U,"published"),disabled:m,className:"cursor-pointer flex items-center gap-2 px-5 py-2 text-sm text-white rounded-lg font-semibold transition-all hover:opacity-90 disabled:opacity-50",style:{background:"linear-gradient(135deg, #ED6D23, #f5883f)"},children:[m?o.jsx("div",{className:"w-4 h-4 border-2 border-white/40 border-t-white rounded-full animate-spin"}):o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),r.status==="published"?"Update":"Publish"]})]})]}),v&&o.jsxs("div",{className:"mb-4 flex items-start gap-2 bg-red-50 border border-red-200 rounded-xl px-4 py-3",children:[o.jsx("svg",{className:"w-5 h-5 text-red-500 shrink-0 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o.jsx("p",{className:"text-red-700 text-sm",children:v})]}),N&&o.jsxs("div",{className:"mb-4 flex items-center gap-2 bg-green-50 border border-green-200 rounded-xl px-4 py-3",children:[o.jsx("svg",{className:"w-5 h-5 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),o.jsx("p",{className:"text-green-700 text-sm font-medium",children:"Saved successfully!"})]}),o.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-[1fr_320px] gap-6",children:[o.jsxs("div",{className:"space-y-5",children:[o.jsxs("div",{className:"bg-white rounded-xl border border-[#e2e8f0] shadow-sm p-5 space-y-4",children:[o.jsx(ea,{label:"Title",required:!0,children:o.jsx(Rl,{value:r.title,onChange:A,placeholder:"Enter a compelling blog titleâ¦",maxLength:200})}),o.jsx(ea,{label:"Slug",hint:"Auto-generated from title. Lowercase, hyphens only.",children:o.jsxs("div",{className:"flex items-center",children:[o.jsx("span",{className:"px-3 py-2.5 bg-[#f8fafc] border border-r-0 border-[#e2e8f0] rounded-l-lg text-xs text-[#94a3b8]",children:"/blogs/"}),o.jsx(Rl,{value:r.slug,onChange:U=>L("slug",n4(U.target.value)),placeholder:"your-post-slug",className:"rounded-l-none"})]})}),o.jsxs(ea,{label:"Excerpt",hint:"Brief summary shown on the blog listing page (max 500 chars)",children:[o.jsx(s2,{value:r.excerpt,onChange:U=>L("excerpt",U.target.value),rows:3,placeholder:"Write a short, engaging excerptâ¦",maxLength:500}),o.jsxs("p",{className:"text-right text-xs text-[#94a3b8] mt-1",children:[r.excerpt.length,"/500"]})]})]}),o.jsxs("div",{className:"bg-white rounded-xl border border-[#e2e8f0] shadow-sm overflow-hidden",children:[o.jsx("div",{className:"flex border-b border-[#e2e8f0]",children:[{key:"content",label:"Content"},{key:"seo",label:"SEO"},{key:"author",label:"Author"}].map(({key:U,label:q})=>o.jsx("button",{type:"button",onClick:()=>k(U),className:`px-5 py-3 cursor-pointer text-sm font-medium transition-colors border-b-2 -mb-px ${E===U?"border-[#
246ED6D23] text-[#ED6D23]":"border-transparent text-[#64748b] hover:text-[#1C3664]"}`,children:q},U))}),o.jsxs("div",{className:"p-5",children:[E==="content"&&o.jsx(fne,{content:r.content,onChange:U=>L("content",U)}),E==="seo"&&o.jsxs("div",{className:"space-y-4",children:[o.jsxs(ea,{label:"Meta Title",hint:`${F}/70 chars â ideal: 50â70`,children:[o.jsx(Rl,{value:r.seo.metaTitle,onChange:U=>M("seo","metaTitle",U.target.value),placeholder:"SEO title for search engines",maxLength:70}),o.jsx("div",{className:"mt-1 h-1 rounded-full bg-[#e2e8f0] overflow-hidden",children:o.jsx("div",{className:`h-full rounded-full transition-all ${F>70?"bg-red-500":F>=50?"bg-green-500":"bg-yellow-400"}`,style:{width:`${Math.min(100,F/70*100)}%`}})})]}),o.jsxs(ea,{label:"Meta Description",hint:`${V}/160 chars â ideal: 120â160`,children:[o.jsx(s2,{value:r.seo.metaDescription,onChange:U=>M("seo","metaDescription",U.target.value),rows:3,placeholder:"Describe this post for search enginesâ¦",maxLength:160}),o.jsx("div",{className:"mt-1 h-1 rounded-full bg-[#e2e8f0] overflow-hidden",children:o.jsx("div",{className:`h-full rounded-full transition-all ${V>160?"bg-red-500":V>=120?"bg-green-500":"bg-yellow-400"}`,style:{width:`${Math.min(100,V/160*100)}%`}})})]}),o.jsx(ea,{label:"Canonical URL",hint:"Leave blank to use the default blog URL",children:o.jsx(Rl,{value:r.seo.canonicalUrl,onChange:U=>M("seo","canonicalUrl",U.target.value),placeholder:"https://example.com/blogs/your-post",type:"url"})}),o.jsx(ea,{label:"Keywords",hint:"Comma-separated keywords for meta tags",children:o.jsx(Rl,{value:r.seo.keywords,onChange:U=>M("seo","keywords",U.target.value),placeholder:"education, gurukul, boarding schoolâ¦"})}),o.jsxs("div",{className:"bg-[#f8fafc] rounded-xl border border-[#e2e8f0] p-4",children:[o.jsx("p",{className:"text-xs font-semibold text-[#64748b] uppercase tracking-wider mb-3",children:"SERP Preview"}),o.jsx("p",{className:"text-[#1a0dab] text-base font-medium leading-tight truncate",children:r.seo.metaTitle||r.title||"Page Title"}),o.jsxs("p",{className:"text-green-700 text-xs mt-0.5",children:["amatir.in/blogs/",r.slug||"your-post-slug"]}),o.jsx("p",{className:"text-[#4d5156] text-sm mt-1 leading-relaxed line-clamp-2",children:r.seo.metaDescription||r.excerpt||"Page description will appear hereâ¦"})]})]}),E==="author"&&o.jsxs("div",{className:"space-y-4",children:[o.jsx(ea,{label:"Author Name",children:o.jsx(Rl,{value:r.author.name,onChange:U=>M("author","name",U.target.value),placeholder:"Author name"})}),o.jsx(ea,{label:"Author Bio",hint:"Shown at the bottom of the blog post",children:o.jsx(s2,{value:r.author.bio,onChange:U=>M("author","bio",U.target.value),rows:4,placeholder:"Brief author biographyâ¦"})})]})]})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"bg-white rounded-xl border border-[#e2e8f0] shadow-sm p-5 space-y-4",children:[o.jsx("h3",{className:"text-sm font-bold text-[#1C3664] uppercase tracking-wider",children:"Publish"}),o.jsx(ea,{label:"Status",children:o.jsxs("select",{value:r.status,onChange:U=>L("status",U.target.value),className:"w-full px-3.5 py-2.5 border border-[#e2e8f0] rounded-lg text-sm text-[#1C3664] focus:outline-none focus:border-[#1C3664] focus:ring-2 focus:ring-[#1C3664]/10 bg-white",children:[o.jsx("option",{value:"draft",children:"Draft"}),o.jsx("option",{value:"published",children:"Published"})]})}),o.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer",children:[o.jsxs("div",{className:"relative",children:[o.jsx("input",{type:"checkbox",className:"sr-only",checked:r.featured,onChange:U=>L("featured",U.target.checked)}),o.jsx("div",{className:`w-10 h-5 rounded-full transition-colors ${r.featured?"bg-[#ED6D23]":"bg-[#e2e8f0]"}`}),o.jsx("div",{className:`absolute top-0.5 left-0.5 w-4 h-4 bg-white rounded-full shadow transition-transform ${r.featured?"translate-x-5":""}`})]}),o.jsx("span",{className:"text-sm text-[#1C3664] font-medium",children:"Featured Post"})]}),o.jsxs("div",{className:"pt-2 border-t border-[#e2e8f0] flex flex-col gap-2",children:[o.jsx("button",{type:"button",onClick:U=>H(U,"draft"),disabled:m,className:"w-full py-2 cursor-pointer text-sm text-[#1C3664] border border-[#1C3664] rounded-lg hover:bg-[#1C3664]/5 transition-colors font-medium disabled:opacity-50",children:"Save as Draft"}),o.jsxs("button",{type:"button",onClick:U=>H(U,"published"),disabled:m,className:"w-full flex cursor-pointer items-center justify-center gap-2 py-2 text-sm text-white rounded-lg font-semibold transition-all hover:opacity-90 disabled:opacity-50",style:{background:"linear-gradient(135deg, #ED6D23, #f5883f)"},children:[m&&o.jsx("div",{className:"w-3.5 h-3.5 border-2 border-white/40 border-t-white rounded-full animate-spin"}
246),r.status==="published"?"Update Post":"Publish Now"]})]})]}),o.jsxs("div",{className:"bg-white rounded-xl border border-[#e2e8f0] shadow-sm p-5 space-y-3",children:[o.jsx("h3",{className:"text-sm font-bold text-[#1C3664] uppercase tracking-wider",children:"Cover Image"}),u?o.jsxs("div",{className:"relative",children:[o.jsx("img",{src:u,alt:"Cover preview",className:"w-full h-40 object-cover rounded-lg border border-[#e2e8f0]"}),o.jsx("button",{type:"button",onClick:P,className:"absolute top-2 right-2 p-1 bg-white/90 rounded-full shadow text-red-500 hover:bg-red-50 transition-colors",children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}):o.jsxs("label",{className:"flex flex-col items-center justify-center h-32 border-2 border-dashed border-[#e2e8f0] rounded-lg cursor-pointer hover:border-[#1C3664]/40 hover:bg-[#f8fafc] transition-all",children:[o.jsx("svg",{className:"w-8 h-8 text-[#cbd5e1] mb-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),o.jsx("p",{className:"text-xs text-[#94a3b8]",children:"Click to upload cover image"}),o.jsx("p",{className:"text-xs text-[#cbd5e1] mt-0.5",children:"PNG, JPG, WebP â max 8MB"}),o.jsx("input",{ref:s,type:"file",accept:"image/*",className:"hidden",onChange:O})]}),o.jsx(ea,{label:"Alt Text",children:o.jsx(Rl,{value:r.coverImage.altText,onChange:U=>M("coverImage","altText",U.target.value),placeholder:"Describe the imageâ¦"})})]}),o.jsxs("div",{className:"bg-white rounded-xl border border-[#e2e8f0] shadow-sm p-5 space-y-4",children:[o.jsx("h3",{className:"text-sm font-bold text-[#1C3664] uppercase tracking-wider",children:"Tags"}),o.jsxs(ea,{hint:"Comma-separated",children:[o.jsx(Rl,{value:r.tags,onChange:U=>L("tags",U.target.value),placeholder:"gurukul, education, boardingâ¦"}),r.tags&&o.jsx("div",{className:"flex flex-wrap gap-1.5 mt-2",children:r.tags.split(",").filter(U=>U.trim()).map((U,q)=>o.jsx("span",{className:"px-2 py-0.5 bg-[#f1f5f9] text-[#1C3664] text-xs rounded-full",children:U.trim()},q))})]})]})]})]})]})})}const xs=({title:t,description:e,keywords:n,canonical:s})=>{T.useEffect(()=>{const a=t?`${t}`:"Amatir";document.title=a;const l=(u,f,m)=>{if(!m)return;let g=document.querySelector(`meta[${u}="${f}"]`);g||(g=document.createElement("meta"),g.setAttribute(u,f),document.head.appendChild(g)),g.setAttribute("content",m)},c=(u,f)=>{if(!f)return;let m=document.querySelector(`link[rel="${u}"]`);m||(m=document.createElement("link"),m.setAttribute("rel",u),document.head.appendChild(m)),m.setAttribute("href",f)};l("name","description",e),l("name","keywords",n),l("property","og:title",a),l("property","og:description",e),l("name","twitter:title",a),l("name","twitter:description",e),c("canonical",s)},[t,e,n,s])},cp="#1C3664",fd="#ED6D23";function pne({blog:t}){const e=t.publishedAt?new Date(t.publishedAt).toLocaleDateString("en-IN",{day:"numeric",month:"long",year:"numeric"}):"";return o.jsxs(Ve,{to:`/blogs/${t.slug}`,className:"group flex flex-col bg-white rounded-2xl overflow-hidden border border-[#e8eef6] shadow-sm hover:shadow-xl hover:-translate-y-1 transition-all duration-300","aria-label":`Read: ${t.title}`,children:[o.jsxs("div",{className:"relative overflow-hidden bg-[#f0f4f8] aspect-[16/9]",children:[t.coverImage?.url?o.jsx("img",{src:sh(t.coverImage.url,{w:640,h:360}),alt:t.coverImage.altText||t.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"}):o.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{background:`linear-gradient(135deg, ${cp}15, ${fd}15)`},children:o.jsx("svg",{className:"w-12 h-12 text-[#cbd5e1]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})})}),t.featured&&o.jsx("span",{className:"absolute top-3 left-3 px-2.5 py-1 rounded-full text-[10px] font-bold uppercase tracking-widest text-white",style:{background:fd},children:"Featured"})]}),o.jsxs("div",{className:"flex flex-col flex-1 p-5",children:[o.jsx("h2",{className:"text-[#1C3664] text-lg leading-snug mb-2 line-clamp-2 group-hover:text-[#ED6D23] transition-colors",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:t.title}),t.excerpt&&o.jsx("p",{className:"text-[#64748b] text-sm leading-relaxed line-clamp-3 mb-4 flex-1",children:t.excerpt}),o.jsxs("div",{className:"flex items-center justify-between mt-auto pt-4 border-t border-[#f1f5f9]",children:[o.jsx("div",{className:"flex items-center gap-2",children:o.jsx("div",{children:e&&o.jsx("p",{className:"text-[10px] text-[#94a3b8] mt-0.5",children:e})})}),o.jsxs("div",{className:"flex items-center gap-3 text-[#94a3b8]",children:[t.readingTime>0&&o.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[o.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),t.readingTime," min"]}),o.jsx("svg",{className:"w-4 h-4 group-hover:translate-x-1 transition-transform",style:{color:fd},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]})]})]})]})}function gne({blog:t}){const e=t.publishedAt?new Date(t.publishedAt).toLocaleDateString("en-IN",{day:"numeric",month:"long",year:"numeric"}):"";return o.jsxs(Ve,{to:`/blogs/${t.slug}`,className:"group relative flex flex-col md:flex-row overflow-hidden rounded-2xl shadow-md hover:shadow-2xl transition-all duration-300 border border-[#e8eef6]","aria-label":`Read featured post: ${t.title}`,children:[o.jsxs("div",{className:"relative md:w-1/2 bg-[#f0f4f8] aspect-[16/9] md:aspect-auto",children:[t.coverImage?.url?o.jsx("img",{src:sh(t.coverImage.url,{w:900,h:506}),alt:t.coverImage.altText||t.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"eager"}):o.jsx("div",{className:"w-full h-full min-h-[220px] flex items-center justify-center",style:{background:`linear-gradient(135deg, ${cp}, #2a4a84)`},children:o.jsx("svg",{className:"w-16 h-16 text-white/20",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})})}),o.jsx("span",{className:"absolute top-4 left-4 px-3 py-1 rounded-full text-[10px] font-bold uppercase tracking-widest text-white",style:{background:fd},children:"Featured"})]}),o.jsxs("div",{className:"md:w-1/2 flex flex-col justify-center p-6 md:p-10 bg-white",children:[o.jsx("h2",{className:"text-[#1C3664] text-2xl md:text-3xl leading-tight mb-3 group-hover:text-[#ED6D23] transition-colors",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:t.title}),t.excerpt&&o.jsx("p",{className:"text-[#64748b] text-sm leading-relaxed mb-5 line-clamp-3",children:t.excerpt}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold shrink-0",style:{background:cp},children:(t.author?.name||"A")[0].toUpperCase()}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-[#1C3664]",children:t.author?.name||"Amatir Team"}),e&&o.jsx("p",{className:"text-xs text-[#94a3b8]",children:e})]}),o.jsxs("div",{className:"ml-auto flex items-center gap-1.5 font-semibold text-sm",style:{color:fd},children:["Read",o.jsx("svg",{className:"w-4 h-4 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]})]})]})]})}function xne(){xs({title:"Blog â Amatir Kanya Gurukul",description:"Insights, updates, and stories from Amatir Kanya Gurukul. Explore our latest articles on education, boarding life, academics, and more."});const[t,e]=T.useState([]),[n,s]=T.useState(null),[r,a]=T.useState({}),[l,c]=T.useState(!0),[u,f]=T.useState(""),[m,g]=T.useState(1),[x,b]=T.useState(""),[v,w]=T.useState(""),N=T.useCallback(async()=>{c(!0),f("");try{const k=new URLSearchParams({page:m,limit:9});x&&k.set("search",x);const{data:C}=await ms.get(`/blogs?${k}`);e(C.blogs||[]),a(C.pagination||{})}catch{f("Failed to load blog posts. Please try again.")}finally{c(!1)}},[m,x]),_=T.useCallback(async()=>{try{const{data:k}=await ms.get("/blogs?featured=true&limit=1");k.blogs?.length&&s(k.blogs[0])}catch{}},[]);T.useEffect(()=>{_()},[_]),T.useEffect(()=>{N()},[N]);const E=k=>{k.preventDefault(),b(v.trim()),g(1)};return o.jsxs(o.Fragment,{children:[o.jsx("section",{className:"pt-28 pb-16 px-4",style:{background:`linear-gradient(135deg, ${cp} 0%, #2a4a84 100%)`},children:o.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[o.jsx("p",{className:"text-[#ED6D23] text-xs font-bold uppercase tracking-[0.3em] mb-3",children:"Our Blog"}),o.jsx("h1",{className:"text-white text-4xl md:text-5xl leading-tight mb-4",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Insights & Stories"}),o.jsx("p",{className:"text-white/70 text-base md:text-lg max-w-xl mx-auto mb-8",children:"Explore articles on education, boarding life, academics, and the journey of nurturing excellence at Amatir Kanya Gurukul."}),o.jsxs("form",{onSubmit:E,className:"max-w-xl mx-auto relative",children:[o.jsx("input",{type:"text",value:v,onCh
246ange:k=>w(k.target.value),placeholder:"Search articlesâ¦",className:"w-full pl-5 pr-14 py-3.5 rounded-full text-sm text-[#1C3664] placeholder-[#94a3b8] bg-white focus:outline-none focus:ring-2 focus:ring-white/40 shadow-lg","aria-label":"Search blogs"}),o.jsx("button",{type:"submit",className:"absolute right-2 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full flex items-center justify-center text-white transition-opacity hover:opacity-90",style:{background:fd},"aria-label":"Search",children:o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})]})}),o.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[x&&o.jsxs("div",{className:"flex items-center gap-2 mb-6 flex-wrap",children:[o.jsxs("span",{className:"text-sm text-[#64748b]",children:[r.total??0," result",(r.total??0)!==1?"s":"",` for "${x}"`]}),o.jsx("button",{onClick:()=>{b(""),w(""),g(1)},className:"text-xs text-[#ED6D23] hover:underline",children:"Clear"})]}),n&&m===1&&!x&&o.jsx("div",{className:"mb-12",children:o.jsx(gne,{blog:n})}),l&&o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:Array.from({length:6}).map((k,C)=>o.jsxs("div",{className:"bg-white rounded-2xl overflow-hidden border border-[#e8eef6] animate-pulse",children:[o.jsx("div",{className:"aspect-[16/9] bg-[#e2e8f0]"}),o.jsxs("div",{className:"p-5 space-y-3",children:[o.jsx("div",{className:"h-4 bg-[#e2e8f0] rounded w-3/4"}),o.jsx("div",{className:"h-3 bg-[#e2e8f0] rounded w-full"}),o.jsx("div",{className:"h-3 bg-[#e2e8f0] rounded w-5/6"})]})]},C))}),!l&&u&&o.jsxs("div",{className:"text-center py-16",children:[o.jsx("p",{className:"text-red-500 text-sm mb-3",children:u}),o.jsx("button",{onClick:N,className:"px-5 py-2 rounded-lg text-sm text-white font-medium",style:{background:fd},children:"Try Again"})]}),!l&&!u&&t.length===0&&o.jsxs("div",{className:"text-center py-20",children:[o.jsx("svg",{className:"w-16 h-16 text-[#cbd5e1] mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),o.jsx("h3",{className:"text-[#1C3664] text-xl font-semibold mb-2",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"No articles yet"}),o.jsx("p",{className:"text-[#94a3b8] text-sm",children:"Check back soon for new posts."})]}),!l&&!u&&t.length>0&&o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:t.filter(k=>!n||k._id!==n._id).map(k=>o.jsx(pne,{blog:k},k._id))}),!l&&r.pages>1&&o.jsxs("div",{className:"mt-12 flex items-center justify-center gap-2 flex-wrap",children:[o.jsxs("button",{onClick:()=>{g(k=>Math.max(1,k-1)),window.scrollTo({top:0,behavior:"smooth"})},disabled:!r.hasPrev,className:"flex items-center gap-1.5 px-5 py-2.5 rounded-full text-sm font-medium border border-[#e2e8f0] text-[#1C3664] disabled:opacity-40 hover:border-[#1C3664] transition-colors bg-white",children:[o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"Previous"]}),Array.from({length:r.pages},(k,C)=>C+1).filter(k=>k===1||k===r.pages||Math.abs(k-m)<=1).reduce((k,C,A,L)=>(A>0&&C-L[A-1]>1&&k.push("â¦"),k.push(C),k),[]).map((k,C)=>k==="â¦"?o.jsx("span",{className:"px-2 text-[#94a3b8] text-sm",children:"â¦"},`ellipsis-${C}`):o.jsx("button",{onClick:()=>{g(k),window.scrollTo({top:0,behavior:"smooth"})},className:`w-9 h-9 rounded-full text-sm font-medium transition-all ${m===k?"text-white shadow-md":"text-[#64748b] bg-white border border-[#e2e8f0] hover:border-[#1C3664] hover:text-[#1C3664]"}`,style:m===k?{background:cp}:{},children:k},k)),o.jsxs("button",{onClick:()=>{g(k=>k+1),window.scrollTo({top:0,behavior:"smooth"})},disabled:!r.hasNext,className:"flex items-center gap-1.5 px-5 py-2.5 rounded-full text-sm font-medium border border-[#e2e8f0] text-[#1C3664] disabled:opacity-40 hover:border-[#1C3664] transition-colors bg-white",children:["Next",o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]})}const r2="#1C3664",Ro="#ED6D23";function yne({blog:t}){return T.useEffect(()=>{if(!t)return;const e=t.seo?.metaTitle||t.title,n=t.seo?.metaDescription||t.excerpt||"",s=t.seo?.ogImage||sh(t.coverImage?.url,{w:1200})||"",r=t.seo?.canonicalUrl||`${window.location.origin}/blogs/${t.slug}`,a=t.seo?.keywords?.join(", ")||t.tags?.join(", ")||"";document.title=`${e} â Amatir Kanya Gurukul`;const l=(u,f,m=!1)=>
246{if(!f)return;const g=m?"property":"name";let x=document.querySelector(`meta[${g}="${u}"]`);x||(x=document.createElement("meta"),x.setAttribute(g,u),document.head.appendChild(x)),x.setAttribute("content",f)},c=(u,f)=>{if(!f)return;let m=document.querySelector(`link[rel="${u}"]`);m||(m=document.createElement("link"),m.setAttribute("rel",u),document.head.appendChild(m)),m.setAttribute("href",f)};return l("description",n),l("keywords",a),l("author",t.author?.name||"Amatir Team"),l("og:title",e,!0),l("og:description",n,!0),l("og:image",s,!0),l("og:type","article",!0),l("og:url",r,!0),l("twitter:card","summary_large_image"),l("twitter:title",e),l("twitter:description",n),l("twitter:image",s),t.publishedAt&&l("article:published_time",new Date(t.publishedAt).toISOString(),!0),t.updatedAt&&l("article:modified_time",new Date(t.updatedAt).toISOString(),!0),c("canonical",r),()=>{document.title="Amatir Kanya Gurukul"}},[t]),null}const bne=` 247 .blog-prose h1 { font-family: 'CentSchbkCyrill BT', serif; font-size: clamp(1.6rem,3vw,2rem); color: #1C3664; margin: 1.5em 0 0.5em; line-height: 1.25; } 248 .blog-prose h2 { font-family: 'CentSchbkCyrill BT', serif; font-size: clamp(1.3rem,2.5vw,1.6rem); color: #1C3664; margin: 1.4em 0 0.5em; line-height: 1.3; } 249 .blog-prose h3 { font-family: 'CentSchbkCyrill BT', serif; font-size: clamp(1.1rem,2vw,1.3rem); color: #1C3664; margin: 1.2em 0 0.4em; } 250 .blog-prose h4, .blog-prose h5, .blog-prose h6 { font-family: 'CentSchbkCyrill BT', serif; color: #1C3664; margin: 1em 0 0.3em; } 251 .blog-prose p { font-size: 1.0625rem; line-height: 1.8; color: #374151; margin: 0 0 1em; } 252 .blog-prose a { color: #ED6D23; text-decoration: underline; text-underline-offset: 2px; } 253 .blog-prose a:hover { color: #1C3664; } 254 .blog-prose strong { font-weight: 700; color: #1C3664; } 255 .blog-prose em { font-style: italic; } 256 .blog-prose u { text-decoration: underline; } 257 .blog-prose s { text-decoration: line-through; } 258 .blog-prose code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 0.15em 0.45em; font-size: 0.875em; font-family: 'Fira Code', 'Courier New', monospace; color: #1C3664; } 259 .blog-prose pre { background: #0f172a; border-radius: 10px; padding: 1.25em 1.5em; overflow-x: auto; margin: 1.5em 0; } 260 .blog-prose pre code { background: none; border: none; padding: 0; color: #e2e8f0; font-size: 0.875em; } 261 .blog-prose blockquote { border-left: 4px solid #ED6D23; margin: 1.5em 0; padding: 0.75em 0 0.75em 1.25em; background: #fff8f5; border-radius: 0 8px 8px 0; } 262 .blog-prose blockquote p { color: #64748b; font-style: italic; margin: 0; } 263 .blog-prose ul { list-style: disc; padding-left: 1.5em; margin: 1em 0; } 264 .blog-prose ol { list-style: decimal; padding-left: 1.5em; margin: 1em 0; } 265 .blog-prose li { margin: 0.35em 0; color: #374151; line-height: 1.7; } 266 .blog-prose hr { border: none; border-top: 2px solid #e2e8f0; margin: 2em 0; } 267 .blog-prose img { max-width: 100%; border-radius: 10px; margin: 1.5em auto; display: block; } 268 .blog-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; overflow-x: auto; display: block; } 269 .blog-prose table th { background: #1C3664; color: white; padding: 0.65em 1em; text-align: left; font-weight: 600; } 270 .blog-prose table td { padding: 0.6em 1em; border-bottom: 1px solid #e2e8f0; color: #374151; } 271 .blog-prose table tr:nth-child(even) td { background: #f8fafc; } 272 .blog-prose mark { background: #fef08a; border-radius: 2px; padding: 0.1em 0.2em; } 273`;function vne(){const{slug:t}=L6(),e=Is(),[n,s]=T.useState(null),[r,a]=T.useState(!0),[l,c]=T.useState(""),[u,f]=T.useState([]),[m,g]=T.useState(!1),x=T.useRef(null);if(T.useEffect(()=>{a(!0),c(""),s(null),ms.get(`/blogs/${t}`).then(({data:w})=>{const N=w.blog;s(N);const _=N?.slug||t,E=N?.tags?.[0],k=E?ms.get(`/blogs?tag=${encodeURIComponent(E)}&limit=4`).then(A=>A.data.blogs||[]).catch(()=>[]):Promise.resolve([]),C=ms.get("/blogs?limit=6").then(A=>A.data.blogs||[]).catch(()=>[]);return Promise.all([k,C]).then(([A,L])=>{const M=new Set([_]),O=[];for(const P of[...A,...L])if(M.has(P.slug)||(M.add(P.slug),O.push(P)),O.length===3)break;f(O)})}).catch(w=>{w.response?.status===404?c("not_found"):c("server_error")}).finally(()=>a(!1))},[t]),T.useEffect(()=>{if(r||!n)return;const w=x.current;if(!w)return;w.innerHTML="";const N=document.createElement("iframe");N.id="crm-form-33",N.src=`https://crm.mediagarh.com/CRM/forms/public/33?embed=1&landing_url=${encodeURIComponent(window.location.href)}`,N.style.width="100%",N.style.height="420px",N.style.border="0",N.style.background="transparent",w.appendChild(N)},[r,n]),r)return o.jsx("div",{className:"min-h-screen bg-[#f8fafc]",children:o.jsx("div",{className:"max-w-6xl mx-auto px-4 py-24",children:o.jsxs("div",{className:"animate-pulse space-y-5",children:[o.jsx("div",{className:"h-4 bg-[#e2e8f0] rounded w-1/4"}),o.jsx("div",{className:"h-8 bg-[#e2e8f0] rounded w-3/4"}),o.jsx("div",{className:"h-8 bg-[#e2e8f0] rounded w-1/2"}),o.jsx("div",{className:"aspect-video bg-[#e2e8f0] rounded-2xl"}),Array.from({length:6}).map((w,N)=>o.jsx("div",{className:"h-4 bg-[#e2e8f0] rounded",style:{width:`${75+Math.random()*25}%`}},N))]})})});if(l==="not_found")return o.jsxs("div",{className:"min-h-screen bg-[#f8fafc] flex flex-col items-center justify-center px-4 py-24 text-center",children:[o.jsx("svg",{className:"w-16 h-16 text-[#cbd5e1] mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o.jsx("h1",{className:"text-[#1C3664] text-3xl mb-2",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Article Not Found"}),o.jsx("p",{className:"text-[#64748b] text-sm mb-6",children:"This post doesn't exist or may have been removed."}),o.jsx(Ve,{to:"/blogs",className:"px-6 py-2.5 rounded-full text-white text-sm font-semibold",style:{background:Ro},children:"â Back to Blog"})]});if(l==="server_error")return o.jsxs("div",{className:"min-h-screen bg-[#f8fafc] flex flex-col items-center justify-center px-4 py-24 text-center",children:[o.jsx("p",{className:"text-red-500 mb-4",children:"Something went wrong. Please try again."}),o.jsx("button",{onClick:()=>e(0),className:"px-5 py-2 rounded-lg text-white text-sm",style:{background:Ro},children:"Retry"})]});if(!n)return null;const b=n.publishedAt?new Date(n.publishedAt).toLocaleDateString("en-IN",{day:"numeric",month:"long",year:"numeric"}):"",v=n.updatedAt?new Date(n.updatedAt).toLocaleDateString("en-IN",{day:"numeric",month:"long",year:"numeric"}):"";return o.jsxs(o.Fragment,{children:[o.jsx(yne,{blog:n}),o.jsx("style",{children:bne}),o.jsxs("div",{className:"pt-30 pb-32 px-4 relative overflow-hidden",style:{background:`linear-gradient(135deg, ${r2}
273 0%, #1a3a6e 60%, #0e2349 100%)`},children:[o.jsx("div",{className:"absolute -top-20 -right-20 w-96 h-96 rounded-full opacity-5",style:{background:Ro}}),o.jsx("div",{className:"absolute -bottom-10 -left-10 w-64 h-64 rounded-full opacity-5",style:{background:Ro}}),o.jsxs("div",{className:"max-w-6xl mx-auto relative z-10",children:[o.jsx("nav",{className:"mb-6","aria-label":"Breadcrumb",children:o.jsxs("ol",{className:"flex items-center gap-2 text-xs text-white/50",children:[o.jsx("li",{children:o.jsx(Ve,{to:"/",className:"text-white transition-colors",children:"Home"})}),o.jsx("li",{className:"text-white/30",children:"/"}),o.jsx("li",{children:o.jsx(Ve,{to:"/blogs",className:"text-white transition-colors",children:"Blog"})}),o.jsx("li",{className:"text-white/30",children:"/"}),o.jsx("li",{className:"text-white/40 truncate max-w-[200px]",children:n.title})]})}),o.jsx("h1",{className:"text-white text-3xl md:text-4xl lg:text-5xl leading-tight mb-6",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:n.title}),o.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[o.jsx("div",{className:"flex items-center gap-2.5",children:o.jsxs("div",{children:[o.jsx("p",{className:"text-white text-sm font-semibold leading-none",children:n.author?.name||"Amatir Team"}),b&&o.jsx("p",{className:"text-white/50 text-xs mt-1",children:b})]})}),o.jsx("div",{className:"ml-auto",children:o.jsx("button",{onClick:()=>{navigator.clipboard?.writeText(window.location.href).then(()=>{g(!0),setTimeout(()=>g(!1),2e3)})},className:"flex cursor-pointer items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium border transition-all",style:{color:m?"#fff":"rgba(255,255,255,0.7)",borderColor:m?Ro:"rgba(255,255,255,0.2)",background:m?Ro:"transparent"},children:m?o.jsxs(o.Fragment,{children:[o.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Copied!"]}):o.jsxs(o.Fragment,{children:[o.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"})}),"Share"]})})})]})]})]}),n.coverImage?.url&&o.jsx("div",{className:"bg-white -mt-[80px] mx-[14px]",children:o.jsxs("div",{className:"max-w-6xl mx-auto relative",children:[o.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[o.jsxs("div",{className:"flex-1 min-w-0 bg-white lg:p-5 p-3 rounded-xl blog-content-wrapper border border-[#dce6f0] shadow-[0_4px_24px_rgba(28,54,100,0.08),0_1px_4px_rgba(28,54,100,0.05)]",children:[o.jsx("div",{className:"relative mb-4",children:o.jsx("img",{src:sh(n.coverImage.url,{w:1200}),alt:n.coverImage.altText||n.title,className:"w-full object-cover max-h-[520px] rounded-xl",loading:"eager"})}),n.excerpt&&o.jsx("p",{className:"lg:text-lg text-[16px] text-[#374151] leading-relaxed italic border-l-4 pl-5 mb-8 py-1",style:{borderColor:Ro},children:n.excerpt}),o.jsx("div",{className:"blog-prose",dangerouslySetInnerHTML:{__html:n.content}}),n.tags?.length>0&&o.jsxs("div",{className:"mt-8 bg-white rounded-2xl border border-[#e8eef6] shadow-sm p-5",children:[o.jsx("p",{className:"text-xs font-bold text-[#94a3b8] uppercase tracking-widest mb-3",children:"Tags"}),o.jsx("div",{className:"flex flex-wrap gap-2",children:n.tags.map(w=>o.jsxs("span",{className:"px-3 py-1.5 rounded-full text-xs font-medium text-[#1C3664] bg-[#f0f4f8] transition-all",children:["#",w]},w))})]}),n.author?.bio&&o.jsxs("div",{className:"mt-6 bg-white rounded-2xl border border-[#e8eef6] shadow-sm p-6 flex items-start gap-4",children:[o.jsx("div",{className:"w-14 h-14 rounded-full flex items-center justify-center text-white text-xl font-bold shrink-0",style:{background:r2},children:(n.author.name||"A")[0].toUpperCase()}),o.jsxs("div",{children:[o.jsx("p",{className:"text-base font-bold text-[#1C3664]",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:n.author.name}),o.jsx("p",{className:"text-sm text-[#64748b] mt-1 leading-relaxed",children:n.author.bio})]})]}),v&&v!==b&&o.jsxs("p",{className:"mt-4 text-xs text-center text-[#94a3b8]",children:["Last updated: ",v]})]}),o.jsxs("aside",{className:"lg:w-72 xl:w-80 space-y-6 shrink-0",children:[o.jsxs("div",{className:"rounded-2xl overflow-hidden border border-[#e8eef6] bg-white shadow-sm",children:[o.jsxs("div",{className:"px-5 pt-5 pb-3",style:{background:`linear-gradient(135deg, ${r2} 0%, #2a4a84 100%)`},children:[o.jsx("p",{className:"text-white text-lg mb-1",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Enquire Now"}),o.jsx("p",{className:"text-white/60 text-xs leading-relaxed",children:"Interested in Amatir Kanya Gurukul? We'll get back to you."})]}),o.jsx("div",{ref:x,id:"crm-form-container-33",className:"w-full h-full bg-white p-3"})]}),u.length>0&&o.jsxs("div",{className:"rounded-2xl border border-[#e8eef6] bg-white shadow-sm overflow-hidden",children:[o.jsx("div",{className:"px-5 py-4 border-b border-[#e8eef6]",children:o.jsx("p",{className:"text-base font-bold text-[#1C3664]",style:{fontFamily:"CentSchbkCyrill BT, serif"},children:"Related Articles"})}),o.jsx("ul",{className:"divide-y divide-[#f0f4f8]",children:u.map(w=>{const N=w.publishedAt?new Date(w.publishedAt).toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"}):"";return o.jsx("li",{children:o.jsxs(Ve,{to:`/blogs/${w.slug}`,className:"flex gap-3 p-4 hover:bg-[#f8fafc] transition-colors group",children:[w.coverImage?.url&&o.jsx("img",{src:sh(w.coverImage.url,{w:120}),alt:w.coverImage.altText||w.title,className:"w-16 h-16 rounded-lg object-cover shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-semibold text-[#1C3664] leading-snug line-clamp-2 group-hover:text-[#ED6D23] transition-colors",children:w.title}),N&&o.jsx("p",{className:"text-xs text-[#94a3b8] mt-1",children:N})]})]})},w._id||w.slug)})}),o.jsx("div",{className:"px-5 py-3 border-t border-[#f0f4f8]",children:o.jsx(Ve,{to:"/blogs",className:"text-xs font-semibold transition-colors hover:opacity-80",style:{color:Ro},children:"View all articles â"})})]})]})]}),o.jsx("div",{className:"my-8",children:o.jsxs(Ve,{to:"/blogs",className:"inline-flex items-center gap-2 text-sm font-medium transition-colors hover:opacity-80",style:{color:Ro},children:[o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),"Back to all articles"]})})]})})]})}function wne(t,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function Nne(t,e,n){return e&&wne(t.prototype,e),t}/*! 274 * Observer 3.13.0 275 * https://gsap.com 276 * 277 * @license Copyright 2008-2025, GreenSock. All rights reserved. 278 * Subject to the terms at https://gsap.com/standard-license 279 * @author: Jack Doyle, [email protected] 280*/var fs,L0,Lr,Kl,Yl,Ju,jI,Uc,Tm,EI,Vo,Ma,kI,CI=function(){return fs||typeof window<"u"&&(fs=window.gsap)&&fs.registerPlugin&&fs},TI=1,$u=[],St=[],oo=[],Am=Date.now,qN=function(e,n){return n},Sne=function(){var e=Tm.core,n=e.bridge||{},s=e._scrollers,r=e._proxies;s.push.apply(s,St),r.push.apply(r,oo),St=s,oo=r,qN=function(l,c){return n[l](c)}},sc=function(e,n){return~oo.indexOf(e)&&oo[oo.indexOf(e)+1][n]},Mm=function(e){return!!~EI.indexOf(e)},Us=function(e,n,s,r,a){return e.addEventListener(n,s,{passive:r!==!1,capture:!!a})},$s=function(e,n,s,r){return e.removeEventListener(n,s,!!r)},Wx="scrollLeft",Vx="scrollTop",KN=function(){return Vo&&Vo.isPressed||St.cache++},Ky=function(e,n){var s=function r(a){if(a||a===0){TI&&(Lr.history.scrollRestoration="manual");var l=Vo&&Vo.isPressed;a=r.v=Math.round(a)||(Vo&&Vo.iOS?1:0),e(a),r.cacheID=St.cache,l&&qN("ss",a)}else(n||St.cache!==r.cacheID||qN("ref"))&&(r.cacheID=St.cache,r.v=e());return r.v+r.offset};return s.offset=0,e&&s},Ys={s:Wx,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ky(function(t){return arguments.length?Lr.scrollTo(t,Oi.sc()):Lr.pageXOffset||Kl[Wx]||Yl[Wx]||Ju[Wx]||0})},Oi={s:Vx,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ys,sc:Ky(function(t){return arguments.length?Lr.scrollTo(Ys.sc(),t):Lr.pageYOffset||Kl[Vx]||Yl[Vx]||Ju[Vx]||0})},or=function(e,n){return(n&&n._ctx&&n._ctx.selector||fs.utils.toArray)(e)[0]||(typeof e=="string"&&fs.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},_ne=function(e,n){for(var s=n.length;s--;)if(n[s]===e||n[s].contains(e))return!0;return!1},dc=function(e,n){var s=n.s,r=n.sc;Mm(e)&&(e=Kl.scrollingElement||Yl);var a=St.indexOf(e),l=r===Oi.sc?1:2;!~a&&(a=St.push(e)-1),St[a+l]||Us(e,"scroll",KN);var c=St[a+l],u=c||(St[a+l]=Ky(sc(e,s),!0)||(Mm(e)?r:Ky(function(f){return arguments.length?e[s]=f:e[s]})));return u.target=e,c||(u.smooth=fs.getProperty(e,"scrollBehavior")==="smooth"),u},YN=function(e,n,s){var r=e,a=e,l=Am(),c=l,u=n||50,f=Math.max(500,u*3),m=function(v,w){var N=Am();w||N-l>u?(a=r,r=v,c=l,l=N):s?r+=v:r=a+(v-a)/(N-c)*(l-c)},g=function(){a=r=s?0:r,c=l=0},x=function(v){var w=c,N=a,_=Am();return(v||v===0)&&v!==r&&m(v),l===c||_-c>f?0:(r+(s?N:-N))/((s?_:l)-w)*1e3};return{update:m,reset:g,getVelocity:x}},$f=function(e,n){return n&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},s4=function(e){var n=Math.max.apply(Math,e),s=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(s)?n:s},AI=function(){Tm=fs.core.globals().ScrollTrigger,Tm&&Tm.core&&Sne()},MI=function(e){return fs=e||CI(),!L0&&fs&&typeof document<"u"&&document.body&&(Lr=window,Kl=document,Yl=Kl.documentElement,Ju=Kl.body,EI=[Lr,Kl,Yl,Ju],fs.utils.clamp,kI=fs.core.context||function(){},Uc="onpointerenter"in Ju?"pointer":"mouse",jI=hi.isTouch=Lr.matchMedia&&Lr.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Lr||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ma=hi.eventTypes=("ontouchstart"in Yl?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Yl?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return TI=0},500),AI(),L0=1),L0};Ys.op=Oi;St.cache=0;var hi=(function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(s){L0||MI(fs)||console.warn("Please gsap.registerPlugin(Observer)"),Tm||AI();var r=s.tolerance,a=s.dragMinimum,l=s.type,c=s.target,u=s.lineHeight,f=s.debounce,m=s.preventDefault,g=s.onStop,x=s.onStopDelay,b=s.ignore,v=s.wheelSpeed,w=s.event,N=s.onDragStart,_=s.onDragEnd,E=s.onDrag,k=s.onPress,C=s.onRelease,A=s.onRight,L=s.onLeft,M=s.onUp,O=s.onDown,P=s.onChangeX,H=s.onChangeY,V=s.onChange,F=s.onToggleX,U=s.onToggleY,q=s.onHover,ae=s.onHoverEnd,B=s.onMove,$=s.ignoreCheck,X=s.isNormalizer,xe=s.onGestureStart,I=s.onGestureEnd,Z=s.onWheel,le=s.onEnable,fe=s.onDisable,we=s.onClick,Ie=s.scrollSpeed,Re=s.capture,Oe=s.allowClicks,Te=s.lockAxis,Qe=s.onLockAxis;this.target=c=or(c)||Yl,this.vars=s,b&&(b=fs.utils.toArray(b)),r=r||1e-9,a=a||0,v=v||1,Ie=Ie||1,l=l||"wheel,touch,pointer",f=f!==!1,u||(u=parseFloat(Lr.getComputedStyle(Ju).lineHeight)||22);var Ze,Tt,mt,Ke,ct,kn,et,se=this,Pe=0,Mt=0,xn=s.passive||!m&&s.passive!==!1,pt=dc(c,Ys),Fi=dc(c,O
280i),ji=pt(),Ft=Fi(),yn=~l.indexOf("touch")&&!~l.indexOf("pointer")&&Ma[0]==="pointerdown",tn=Mm(c),ot=c.ownerDocument||Kl,bn=[0,0,0],Vt=[0,0,0],Bs=0,ya=function(){return Bs=Am()},vn=function(_e,re){return(se.event=_e)&&b&&_ne(_e.target,b)||re&&yn&&_e.pointerType!=="touch"||$&&$(_e,re)},yr=function(){se._vx.reset(),se._vy.reset(),Tt.pause(),g&&g(se)},mi=function(){var _e=se.deltaX=s4(bn),re=se.deltaY=s4(Vt),K=Math.abs(_e)>=r,ce=Math.abs(re)>=r;V&&(K||ce)&&V(se,_e,re,bn,Vt),K&&(A&&se.deltaX>0&&A(se),L&&se.deltaX<0&&L(se),P&&P(se),F&&se.deltaX<0!=Pe<0&&F(se),Pe=se.deltaX,bn[0]=bn[1]=bn[2]=0),ce&&(O&&se.deltaY>0&&O(se),M&&se.deltaY<0&&M(se),H&&H(se),U&&se.deltaY<0!=Mt<0&&U(se),Mt=se.deltaY,Vt[0]=Vt[1]=Vt[2]=0),(Ke||mt)&&(B&&B(se),mt&&(N&&mt===1&&N(se),E&&E(se),mt=0),Ke=!1),kn&&!(kn=!1)&&Qe&&Qe(se),ct&&(Z(se),ct=!1),Ze=0},Hi=function(_e,re,K){bn[K]+=_e,Vt[K]+=re,se._vx.update(_e),se._vy.update(re),f?Ze||(Ze=requestAnimationFrame(mi)):mi()},zs=function(_e,re){Te&&!et&&(se.axis=et=Math.abs(_e)>Math.abs(re)?"x":"y",kn=!0),et!=="y"&&(bn[2]+=_e,se._vx.update(_e,!0)),et!=="x"&&(Vt[2]+=re,se._vy.update(re,!0)),f?Ze||(Ze=requestAnimationFrame(mi)):mi()},$i=function(_e){if(!vn(_e,1)){_e=$f(_e,m);var re=_e.clientX,K=_e.clientY,ce=re-se.x,Se=K-se.y,ke=se.isDragging;se.x=re,se.y=K,(ke||(ce||Se)&&(Math.abs(se.startX-re)>=a||Math.abs(se.startY-K)>=a))&&(mt=ke?2:1,ke||(se.isDragging=!0),zs(ce,Se))}},es=se.onPress=function(Ee){vn(Ee,1)||Ee&&Ee.button||(se.axis=et=null,Tt.pause(),se.isPressed=!0,Ee=$f(Ee),Pe=Mt=0,se.startX=se.x=Ee.clientX,se.startY=se.y=Ee.clientY,se._vx.reset(),se._vy.reset(),Us(X?c:ot,Ma[1],$i,xn,!0),se.deltaX=se.deltaY=0,k&&k(se))},rt=se.onRelease=function(Ee){if(!vn(Ee,1)){$s(X?c:ot,Ma[1],$i,!0);var _e=!isNaN(se.y-se.startY),re=se.isDragging,K=re&&(Math.abs(se.x-se.startX)>3||Math.abs(se.y-se.startY)>3),ce=$f(Ee);!K&&_e&&(se._vx.reset(),se._vy.reset(),m&&Oe&&fs.delayedCall(.08,function(){if(Am()-Bs>300&&!Ee.defaultPrevented){if(Ee.target.click)Ee.target.click();else if(ot.createEvent){var Se=ot.createEvent("MouseEvents");Se.initMouseEvent("click",!0,!0,Lr,1,ce.screenX,ce.screenY,ce.clientX,ce.clientY,!1,!1,!1,!1,0,null),Ee.target.dispatchEvent(Se)}}})),se.isDragging=se.isGesturing=se.isPressed=!1,g&&re&&!X&&Tt.restart(!0),mt&&mi(),_&&re&&_(se),C&&C(se,K)}},ys=function(_e){return _e.touches&&_e.touches.length>1&&(se.isGesturing=!0)&&xe(_e,se.isDragging)},Ei=function(){return(se.isGesturing=!1)||I(se)},Hn=function(_e){if(!vn(_e)){var re=pt(),K=Fi();Hi((re-ji)*Ie,(K-Ft)*Ie,1),ji=re,Ft=K,g&&Tt.restart(!0)}},cn=function(_e){if(!vn(_e)){_e=$f(_e,m),Z&&(ct=!0);var re=(_e.deltaMode===1?u:_e.deltaMode===2?Lr.innerHeight:1)*v;Hi(_e.deltaX*re,_e.deltaY*re,0),g&&!X&&Tt.restart(!0)}},D=function(_e){if(!vn(_e)){var re=_e.clientX,K=_e.clientY,ce=re-se.x,Se=K-se.y;se.x=re,se.y=K,Ke=!0,g&&Tt.restart(!0),(ce||Se)&&zs(ce,Se)}},W=function(_e){se.event=_e,q(se)},ne=function(_e){se.event=_e,ae(se)},Ne=function(_e){return vn(_e)||$f(_e,m)&&we(se)};Tt=se._dc=fs.delayedCall(x||.25,yr).pause(),se.deltaX=se.deltaY=0,se._vx=YN(0,50,!0),se._vy=YN(0,50,!0),se.scrollX=pt,se.scrollY=Fi,se.isDragging=se.isGesturing=se.isPressed=!1,kI(this),se.enable=function(Ee){return se.isEnabled||(Us(tn?ot:c,"scroll",KN),l.indexOf("scroll")>=0&&Us(tn?ot:c,"scroll",Hn,xn,Re),l.indexOf("wheel")>=0&&Us(c,"wheel",cn,xn,Re),(l.indexOf("touch")>=0&&jI||l.indexOf("pointer")>=0)&&(Us(c,Ma[0],es,xn,Re),Us(ot,Ma[2],rt),Us(ot,Ma[3],rt),Oe&&Us(c,"click",ya,!0,!0),we&&Us(c,"click",Ne),xe&&Us(ot,"gesturestart",ys),I&&Us(ot,"gestureend",Ei),q&&Us(c,Uc+"enter",W),ae&&Us(c,Uc+"leave",ne),B&&Us(c,Uc+"move",D)),se.isEnabled=!0,se.isDragging=se.isGesturing=se.isPressed=Ke=mt=!1,se._vx.reset(),se._vy.reset(),ji=pt(),Ft=Fi(),Ee&&Ee.type&&es(Ee),le&&le(se)),se},se.disable=function(){se.isEnabled&&($u.filter(function(Ee){return Ee!==se&&Mm(Ee.target)}).length||$s(tn?ot:c,"scroll",KN),se.isPressed&&(se._vx.reset(),se._vy.reset(),$s(X?c:ot,Ma[1],$i,!0)),$s(tn?ot:c,"scroll",Hn,Re),$s(c,"wheel",cn,Re),$s(c,Ma[0],es,Re),$s(ot,Ma[2],rt),$s(ot,Ma[3],rt),$s(c,"click",ya,!0),$s(c,"click",Ne),$s(ot,"gesturestart",ys),$s(ot,"gestureend",Ei),$s(c,Uc+"enter",W),$s(c,Uc+"leave",ne),$s(c,Uc+"move",D),se.isEnabled=se.isPressed=se.isDragging=!1,fe&&fe(se))},se.kill=se.revert=function(){se.disable();var Ee=$u.indexOf(se);Ee>=0&&$u.splice(Ee,1),Vo===se&&(Vo=0)},$u.push(se),X&&Mm(c)&&(Vo=se),se.enable(w)},Nne(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t})();hi.version="3.13.0";hi.create=function(t){return new hi(t)};hi.register=MI;hi.getAll=function(){return $u.slice()};hi.getById=function(t){return $u.filter(function(e){return e.vars.id===t})[0]};CI()&&fs.registerPlugin(hi);/*! 281 * ScrollTrigger 3.13.0 282 * https://gsap.com 283 * 284 * @license Copyright 2008-2025, GreenSock. All rights reserved. 285 * Subject to the terms at https://gsap.com/standard-license 286 * @author: Jack Doyle, [email protected] 287*/var Be,Bu,Nt,Sn,Rr,Kt,U_,Yy,dp,Rm,sm,Gx,js,Hb,XN,qs,r4,a4,zu,RI,a2,OI,Gs,ZN,DI,LI,zl,JN,W_,Qu,V_,Xy,QN,o2,qx=1,Cs=Date.now,l2=Cs(),ga=0,rm=0,o4=function(e,n,s){var r=Ar(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return s["_"+n+"Clamp"]=r,r?e.substr(6,e.length-7):e},l4=function(e,n){return n&&(!Ar(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},jne=function t(){return rm&&requestAnimationFrame(t)},c4=function(){return Hb=1},d4=function(){return Hb=0},Qa=function(e){return e},am=function(e){return Math.round(e*1e5)/1e5||0},II=function(){return typeof window<"u"},PI=function(){return Be||II()&&(Be=window.gsap)&&Be.registerPlugin&&Be},Ad=function(e){return!!~U_.indexOf(e)},BI=function(e){return(e==="Height"?V_:Nt["inner"+e])||Rr["client"+e]||Kt["client"+e]},zI=function(e){return sc(e,"getBoundingClientRect")||(Ad(e)?function(){return F0.width=Nt.innerWidth,F0.height=V_,F0}:function(){return Ho(e)})},Ene=function(e,n,s){var r=s.d,a=s.d2,l=s.a;return(l=sc(e,"getBoundingClientRect"))?function(){return l()[r]}:function(){return(n?BI(a):e["client"+a])||0}},kne=function(e,n){return!n||~oo.indexOf(e)?zI(e):function(){return F0}},ro=function(e,n){var s=n.s,r=n.d2,a=n.d,l=n.a;return Math.max(0,(s="scroll"+r)&&(l=sc(e,s))?l()-zI(e)()[a]:Ad(e)?(Rr[s]||Kt[s])-BI(r):e[s]-e["offset"+r])},Kx=function(e,n){for(var s=0;s<zu.length;s+=3)(!n||~n.indexOf(zu[s+1]))&&e(zu[s],zu[s+1],zu[s+2])},Ar=function(e){return typeof e=="string"},Ts=function(e){return typeof e=="function"},om=function(e){return typeof e=="number"},Wc=function(e){return typeof e=="object"},Uf=function(e,n,s){return e&&e.progress(n?0:1)&&s&&e.pause()},c2=function(e,n){if(e.enabled){var s=e._ctx?e._ctx.add(function(){return n(e)}):n(e);
287s&&s.totalTime&&(e.callbackAnimation=s)}},Nu=Math.abs,FI="left",HI="top",G_="right",q_="bottom",md="width",pd="height",Om="Right",Dm="Left",Lm="Top",Im="Bottom",vi="padding",la="margin",fh="Width",K_="Height",Ri="px",ca=function(e){return Nt.getComputedStyle(e)},Cne=function(e){var n=ca(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},u4=function(e,n){for(var s in n)s in e||(e[s]=n[s]);return e},Ho=function(e,n){var s=n&&ca(e)[XN]!=="matrix(1, 0, 0, 1, 0, 0)"&&Be.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect();return s&&s.progress(0).kill(),r},Zy=function(e,n){var s=n.d2;return e["offset"+s]||e["client"+s]||0},$I=function(e){var n=[],s=e.labels,r=e.duration(),a;for(a in s)n.push(s[a]/r);return n},Tne=function(e){return function(n){return Be.utils.snap($I(e),n)}},Y_=function(e){var n=Be.utils.snap(e),s=Array.isArray(e)&&e.slice(0).sort(function(r,a){return r-a});return s?function(r,a,l){l===void 0&&(l=.001);var c;if(!a)return n(r);if(a>0){for(r-=l,c=0;c<s.length;c++)if(s[c]>=r)return s[c];return s[c-1]}else for(c=s.length,r+=l;c--;)if(s[c]<=r)return s[c];return s[0]}:function(r,a,l){l===void 0&&(l=.001);var c=n(r);return!a||Math.abs(c-r)<l||c-r<0==a<0?c:n(a<0?r-e:r+e)}},Ane=function(e){return function(n,s){return Y_($I(e))(n,s.direction)}},Yx=function(e,n,s,r){return s.split(",").forEach(function(a){return e(n,a,r)})},Ki=function(e,n,s,r,a){return e.addEventListener(n,s,{passive:!r,capture:!!a})},qi=function(e,n,s,r){return e.removeEventListener(n,s,!!r)},Xx=function(e,n,s){s=s&&s.wheelHandler,s&&(e(n,"wheel",s),e(n,"touchmove",s))},h4={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Zx={toggleActions:"play",anticipatePin:0},Jy={top:0,left:0,center:.5,bottom:1,right:1},I0=function(e,n){if(Ar(e)){var s=e.indexOf("="),r=~s?+(e.charAt(s-1)+1)*parseFloat(e.substr(s+1)):0;~s&&(e.indexOf("%")>s&&(r*=n/100),e=e.substr(0,s-1)),e=r+(e in Jy?Jy[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},Jx=function(e,n,s,r,a,l,c,u){var f=a.startColor,m=a.endColor,g=a.fontSize,x=a.indent,b=a.fontWeight,v=Sn.createElement("div"),w=Ad(s)||sc(s,"pinType")==="fixed",N=e.indexOf("scroller")!==-1,_=w?Kt:s,E=e.indexOf("start")!==-1,k=E?f:m,C="border-color:"+k+";font-size:"+g+";color:"+k+";font-weight:"+b+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return C+="position:"+((N||u)&&w?"fixed;":"absolute;"),(N||u||!w)&&(C+=(r===Oi?G_:q_)+":"+(l+parseFloat(x))+"px;"),c&&(C+="box-sizing:border-box;text-align:left;width:"+c.offsetWidth+"px;"),v._isStart=E,v.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),v.style.cssText=C,v.innerText=n||n===0?e+"-"+n:e,_.children[0]?_.insertBefore(v,_.children[0]):_.appendChild(v),v._offset=v["offset"+r.op.d2],P0(v,0,r,E),v},P0=function(e,n,s,r){var a={display:"block"},l=s[r?"os2":"p2"],c=s[r?"p2":"os2"];e._isFlipped=r,a[s.a+"Percent"]=r?-100:0,a[s.a]=r?"1px":0,a["border"+l+fh]=1,a["border"+c+fh]=0,a[s.p]=n+"px",Be.set(e,a)},yt=[],eS={},up,f4=function(){return Cs()-ga>34&&(up||(up=requestAnimationFrame(Yo)))},Su=function(){(!Gs||!Gs.isPressed||Gs.startX>Kt.clientWidth)&&(St.cache++,Gs?up||(up=requestAnimationFrame(Yo)):Yo(),ga||Rd("scrollStart"),ga=Cs())},d2=function(){LI=Nt.innerWidth,DI=Nt.innerHeight},lm=function(e){St.cache++,(e===!0||!js&&!OI&&!Sn.fullscreenElement&&!Sn.webkitFullscreenElement&&(!ZN||LI!==Nt.innerWidth||Math.abs(Nt.innerHe
287ight-DI)>Nt.innerHeight*.25))&&Yy.restart(!0)},Md={},Mne=[],UI=function t(){return qi(dt,"scrollEnd",t)||id(!0)},Rd=function(e){return Md[e]&&Md[e].map(function(n){return n()})||Mne},Tr=[],WI=function(e){for(var n=0;n<Tr.length;n+=5)(!e||Tr[n+4]&&Tr[n+4].query===e)&&(Tr[n].style.cssText=Tr[n+1],Tr[n].getBBox&&Tr[n].setAttribute("transform",Tr[n+2]||""),Tr[n+3].uncache=1)},X_=function(e,n){var s;for(qs=0;qs<yt.length;qs++)s=yt[qs],s&&(!n||s._ctx===n)&&(e?s.kill(1):s.revert(!0,!0));Xy=!0,n&&WI(n),n||Rd("revert")},VI=function(e,n){St.cache++,(n||!Ks)&&St.forEach(function(s){return Ts(s)&&s.cacheID++&&(s.rec=0)}),Ar(e)&&(Nt.history.scrollRestoration=W_=e)},Ks,gd=0,m4,Rne=function(){if(m4!==gd){var e=m4=gd;requestAnimationFrame(function(){return e===gd&&id(!0)})}},GI=function(){Kt.appendChild(Qu),V_=!Gs&&Qu.offsetHeight||Nt.innerHeight,Kt.removeChild(Qu)},p4=function(e){return dp(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},id=function(e,n){if(Rr=Sn.documentElement,Kt=Sn.body,U_=[Nt,Sn,Rr,Kt],ga&&!e&&!Xy){Ki(dt,"scrollEnd",UI);return}GI(),Ks=dt.isRefreshing=!0,St.forEach(function(r){return Ts(r)&&++r.cacheID&&(r.rec=r())});var s=Rd("refreshInit");RI&&dt.sort(),n||X_(),St.forEach(function(r){Ts(r)&&(r.smooth&&(r.target.style.scrollBehavior="auto"),r(0))}),yt.slice(0).forEach(function(r){return r.refresh()}),Xy=!1,yt.forEach(function(r){if(r._subPinOffset&&r.pin){var a=r.vars.horizontal?"offsetWidth":"offsetHeight",l=r.pin[a];r.revert(!0,1),r.adjustPinSpacing(r.pin[a]-l),r.refresh()}}),QN=1,p4(!0),yt.forEach(function(r){var a=ro(r.scroller,r._dir),l=r.vars.end==="max"||r._endClamp&&r.end>a,c=r._startClamp&&r.start>=a;(l||c)&&r.setPositions(c?a-1:r.start,l?Math.max(c?a:r.start+1,a):r.end,!0)}),p4(!1),QN=0,s.forEach(function(r){return r&&r.render&&r.render(-1)}),St.forEach(function(r){Ts(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),VI(W_,1),Yy.pause(),gd++,Ks=2,Yo(2),yt.forEach(function(r){return Ts(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Ks=dt.isRefreshing=!1,Rd("refresh")},tS=0,B0=1,Pm,Yo=function(e){if(e===2||!Ks&&!Xy){dt.isUpdating=!0,Pm&&Pm.update(0);var n=yt.length,s=Cs(),r=s-l2>=50,a=n&&yt[0].scroll();if(B0=tS>a?-1:1,Ks||(tS=a),r&&(ga&&!Hb&&s-ga>200&&(ga=0,Rd("scrollEnd")),sm=l2,l2=s),B0<0){for(qs=n;qs-- >0;)yt[qs]&&yt[qs].update(0,r);B0=1}else for(qs=0;qs<n;qs++)yt[qs]&&yt[qs].update(0,r);dt.isUpdating=!1}up=0},nS=[FI,HI,q_,G_,la+Im,la+Om,la+Lm,la+Dm,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],z0=nS.concat([md,pd,"boxSizing","max"+fh,"max"+K_,"position",la,vi,vi+Lm,vi+Om,vi+Im,vi+Dm]),One=function(e,n,s){eh(s);var r=e._gsap;if(r.spacerIsNative)eh(r.spacerState);else if(e._gsap.swappedIn){var a=n.parentNode;a&&(a.insertBefore(e,n),a.removeChild(n))}e._gsap.swappedIn=!1},u2=function(e,n,s,r){if(!e._gsap.swappedIn){for(var a=nS.length,l=n.style,c=e.style,u;a--;)u=nS[a],l[u]=s[u];l.position=s.position==="absolute"?"absolute":"relative",s.display==="inline"&&(l.display="inline-block"),c[q_]=c[G_]="auto",l.flexBasis=s.flexBasis||"auto",l.overflow="visible",l.boxSizing="border-box",l[md]=Zy(e,Ys)+Ri,l[pd]=Zy(e,Oi)+Ri,l[vi]=c[la]=c[HI]=c[FI]="0",eh(r),c[md]=c["max"+fh]=s[md],c[pd]=c["max"+K_]=s[pd],c[vi]=s[vi],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},Dne=/([A-Z])/g,eh=function(e){if(e){var n=e.t.style,s=e.length,r=0,a,l;for((e.t._gsap||Be.core.getCache(e.t)).uncache=1;r<s;r+=2)l=e[r+1],a=e[r],l?n[a]=l:n[a]&&n.removeProperty(a.replace(Dne,"-$1").toLowerCase())}},Qx=function(e){for(var n=z0.length,s=e.style,r=[],a=0;a<n;a++)r.push(z0[a],s[z0[a]]);return r.t=e,r},Lne=function(e,n,s){for(var r=[],a=e.length,l=s?8:0,c;l<a;l+=2)c=e[l],r.push(c,c in n?n[c]:e[l+1]);return r.t=e.t,r},F0={left:0,top:0},g4=function(e,n,s,r,a,l,c,u,f,m,g,x,b,v){Ts(e)&&(e=e(u)),Ar(e)&&e.substr(0,3)==="max"&&(e=x+(e.charAt(4)==="="?I0("0"+e.substr(3),s):0));var w=b?b.time():0,N,_,E;if(b&&b.seek(0),isNaN(e)||(e=+e),om(e))b&&(e=Be.utils.mapRange(b.scrollTrigger.start,b.scrollTrigger.end,0,x,e)),c&&P0(c,s,r,!0);else{Ts(n)&&(n=n(u));var k=(e||"0").split(" "),C,A,L,M;E=or(n,u)||Kt,C=Ho(E)||{},(!C||!C.left&&!C.top)&&ca(E).display==="none"&&(M=E.style.display,E.style.display="block",C=Ho(E),M?E.style.display=M:E.style.removeProperty("display")),A=I0(k[0],C[r.d]),L=I0(k[1]||"0",s),e=C[r.p]-f[r.p]-m+A+a-L,c&&P0(c,L,r,s-L<20||c._isStart&&L>20),s-=s-L}if(v&&(u[v]=e||-.001,e<0&&(e=0)),l){var O=e+s,P=l._isStart;N="scroll"+r.d2,P0(l,O,r,P&&O>20||!P&&(g?Math.max(Kt[N],Rr[N]):l.parentNode[N])<=O+1),g&&(f=Ho(c),g&&(l.style[r.op.p]=f[r.op.p]-r.op.m-l._offset+Ri))}return b&&E&&(N=Ho(E),b.seek(x),_=Ho(E),b._caScrollDist=N[r.p]-_[r.p],e=e/b._caScrollDist*x),b&&b.seek(w),b?e:Math.round(e)},Ine=/(webkit|moz|length|cssText|inset)/i,x4=function(e,n,s,r){if(e.parentNode!==n){var a=e.style,l,c;if(n===Kt){e._stOrig=a.cssText,c=ca(e);for(l in c)!+l&&!Ine.test(l)&&c[l]&&typeof a[l]=="string"&&l!=="0"&&(a[l]=c[l]);
287a.top=s,a.left=r}else a.cssText=e._stOrig;Be.core.getCache(e).uncache=1,n.appendChild(e)}},qI=function(e,n,s){var r=n,a=r;return function(l){var c=Math.round(e());return c!==r&&c!==a&&Math.abs(c-r)>3&&Math.abs(c-a)>3&&(l=c,s&&s()),a=r,r=Math.round(l),r}},e0=function(e,n,s){var r={};r[n.p]="+="+s,Be.set(e,r)},y4=function(e,n){var s=dc(e,n),r="_scroll"+n.p2,a=function l(c,u,f,m,g){var x=l.tween,b=u.onComplete,v={};f=f||s();var w=qI(s,f,function(){x.kill(),l.tween=0});return g=m&&g||0,m=m||c-f,x&&x.kill(),u[r]=c,u.inherit=!1,u.modifiers=v,v[r]=function(){return w(f+m*x.ratio+g*x.ratio*x.ratio)},u.onUpdate=function(){St.cache++,l.tween&&Yo()},u.onComplete=function(){l.tween=0,b&&b.call(x)},x=l.tween=Be.to(e,u),x};return e[r]=s,s.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},Ki(e,"wheel",s.wheelHandler),dt.isTouch&&Ki(e,"touchmove",s.wheelHandler),a},dt=(function(){function t(n,s){Bu||t.register(Be)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),JN(this),this.init(n,s)}var e=t.prototype;return e.init=function(s,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!rm){this.update=this.refresh=this.kill=Qa;return}s=u4(Ar(s)||om(s)||s.nodeType?{trigger:s}:s,Zx);var a=s,l=a.onUpdate,c=a.toggleClass,u=a.id,f=a.onToggle,m=a.onRefresh,g=a.scrub,x=a.trigger,b=a.pin,v=a.pinSpacing,w=a.invalidateOnRefresh,N=a.anticipatePin,_=a.onScrubComplete,E=a.onSnapComplete,k=a.once,C=a.snap,A=a.pinReparent,L=a.pinSpacer,M=a.containerAnimation,O=a.fastScrollEnd,P=a.preventOverlaps,H=s.horizontal||s.containerAnimation&&s.horizontal!==!1?Ys:Oi,V=!g&&g!==0,F=or(s.scroller||Nt),U=Be.core.getCache(F),q=Ad(F),ae=("pinType"in s?s.pinType:sc(F,"pinType")||q&&"fixed")==="fixed",B=[s.onEnter,s.onLeave,s.onEnterBack,s.onLeaveBack],$=V&&s.toggleActions.split(" "),X="markers"in s?s.markers:Zx.markers,xe=q?0:parseFloat(ca(F)["border"+H.p2+fh])||0,I=this,Z=s.onRefreshInit&&function(){return s.onRefreshInit(I)},le=Ene(F,q,H),fe=kne(F,q),we=0,Ie=0,Re=0,Oe=dc(F,H),Te,Qe,Ze,Tt,mt,Ke,ct,kn,et,se,Pe,Mt,xn,pt,Fi,ji,Ft,yn,tn,ot,bn,Vt,Bs,ya,vn,yr,mi,Hi,zs,$i,es,rt,ys,Ei,Hn,cn,D,W,ne;if(I._startClamp=I._endClamp=!1,I._dir=H,N*=45,I.scroller=F,I.scroll=M?M.time.bind(M):Oe,Tt=Oe(),I.vars=s,r=r||s.animation,"refreshPriority"in s&&(RI=1,s.refreshPriority===-9999&&(Pm=I)),U.tweenScroll=U.tweenScroll||{top:y4(F,Oi),left:y4(F,Ys)},I.tweenTo=Te=U.tweenScroll[H.p],I.scrubDuration=function(K){ys=om(K)&&K,ys?rt?rt.duration(K):rt=Be.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:ys,paused:!0,onComplete:function(){return _&&_(I)}}):(rt&&rt.progress(1).kill(),rt=0)},r&&(r.vars.lazy=!1,r._initted&&!I.isReverted||r.vars.immediateRender!==!1&&s.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),I.animation=r.pause(),r.scrollTrigger=I,I.scrubDuration(g),$i=0,u||(u=r.vars.id)),C&&((!Wc(C)||C.push)&&(C={snapTo:C}),"scrollBehavior"in Kt.style&&Be.set(q?[Kt,Rr]:F,{scrollBehavior:"auto"}),St.forEach(function(K){return Ts(K)&&K.target===(q?Sn.scrollingElement||Rr:F)&&(K.smooth=!1)}),Ze=Ts(C.snapTo)?C.snapTo:C.snapTo==="labels"?Tne(r):C.snapTo==="labelsDirectional"?Ane(r):C.directional!==!1?function(K,ce){return Y_(C.snapTo)(K,Cs()-Ie<500?0:ce.direction)}:Be.utils.snap(C.snapTo),Ei=C.duration||{min:.1,max:2},Ei=Wc(Ei)?Rm(Ei.min,Ei.max):Rm(Ei,Ei),Hn=Be.delayedCall(C.delay||ys/2||.1,function(){var K=Oe(),ce=Cs()-Ie<500,Se=Te.tween;if((ce||Math.abs(I.getVelocity())<10)&&!Se&&!Hb&&we!==K){var ke=(K-Ke)/pt,Pt=r&&!V?r.totalProgress():ke,lt=ce?0:(Pt-es)/(Cs()-sm)*1e3||0,Bt=Be.utils.clamp(-ke,1-ke,Nu(lt/2)*lt/.185),wn=ke+(C.inertia===!1?0:Bt),Lt,Rt,bt=C,si=bt.onStart,At=bt.onInterrupt,ut=bt.onComplete;if(Lt=Ze(wn,I),om(Lt)||(Lt=wn),Rt=Math.max(0,Math.round(Ke+Lt*pt)),K<=ct&&K>=Ke&&Rt!==K){if(Se&&!Se._initted&&Se.data<=Nu(Rt-K))return;C.inertia===!1&&(Bt=Lt-ke),Te(Rt,{duration:Ei(Nu(Math.max(Nu(wn-Pt),Nu(Lt-Pt))*.185/lt/.05||0)),ease:C.ease||"power3",data:Nu(Rt-K),onInterrupt:function(){return Hn.restart(!0)&&At&&At(I)},onComplete:function(){I.update(),we=Oe(),r&&!V&&(rt?rt.resetTo("totalProgress",Lt,r._tTime/r._tDur):r.progress(Lt)),$i=es=r&&!V?r.totalProgress():I.progress,E&&E(I),ut&&ut(I)}},K,Bt*pt,Rt-K-Bt*pt),si&&si(I,Te.tween)}}else I.isActive&&we!==K&&Hn.restart(!0)}).pause()),u&&(eS[u]=I),x=I.trigger=or(x||b!==!0&&b),ne=x&&x._gsap&&x._gsap.stRevert,ne&&(ne=ne(I)),b=b===!0?x:or(b),Ar(c)&&(c={targets:x,className:c}),b&&(v===!1||v===la||(v=!v&&b.parentNode&&b.parentNode.style&&ca(b.parentNode).display==="flex"?!1:vi),I.pin=b,Qe=Be.core.getCache(b),Qe.spacer?Fi=Qe.pinState:(L&&(L=or(L),L&&!L.nodeType&&(L=L.current||L.nativeElement),Qe.spacerIsNative=!!L,L&&(Qe.spacerState=Qx(L))),Qe.spacer=yn=L||Sn.createElement("div"),yn.classList.add("pin-spacer"),u&&yn.classList.add("pin-spacer-"+u),Qe.pinState=Fi=Qx(b)),s.force3D!==!1&&Be.set(b,{force3D:!0}),I.spacer=yn=Qe.spacer,zs=ca(b),ya=zs[v+H.os2],ot=Be.getProperty(b),bn=Be.quickSetter(b,H.a,Ri),u2(b,yn,zs),Ft=Qx(b)),X){Mt=Wc(X)?u4(X,h4):h4,se=Jx("scroller-start",u,F,H,Mt,0),Pe=Jx("scroller-end",u,F,H,Mt,0,se),tn=se["offset"+H.op.d2];var Ne=or(sc(F,"content")||F);kn=this.markerStart=Jx("start",u,Ne,H,Mt,tn,0,M),et=this.markerEnd=Jx("end",u,Ne,H,Mt,tn,0,M),M&&(W=Be.quickSetter([kn,et],H.a,Ri)),!ae&&!(oo.length&&sc(F,"fixedMarkers")===!0)&&(Cne(q?Kt:F),Be.set([se,Pe],{force3D:!0}),yr=Be.quickSetter(se,H.a,Ri),Hi=Be.quickSetter(Pe,H.a,Ri))}
287if(M){var Ee=M.vars.onUpdate,_e=M.vars.onUpdateParams;M.eventCallback("onUpdate",function(){I.update(0,0,1),Ee&&Ee.apply(M,_e||[])})}if(I.previous=function(){return yt[yt.indexOf(I)-1]},I.next=function(){return yt[yt.indexOf(I)+1]},I.revert=function(K,ce){if(!ce)return I.kill(!0);var Se=K!==!1||!I.enabled,ke=js;Se!==I.isReverted&&(Se&&(cn=Math.max(Oe(),I.scroll.rec||0),Re=I.progress,D=r&&r.progress()),kn&&[kn,et,se,Pe].forEach(function(Pt){return Pt.style.display=Se?"none":"block"}),Se&&(js=I,I.update(Se)),b&&(!A||!I.isActive)&&(Se?One(b,yn,Fi):u2(b,yn,ca(b),vn)),Se||I.update(Se),js=ke,I.isReverted=Se)},I.refresh=function(K,ce,Se,ke){if(!((js||!I.enabled)&&!ce)){if(b&&K&&ga){Ki(t,"scrollEnd",UI);return}!Ks&&Z&&Z(I),js=I,Te.tween&&!Se&&(Te.tween.kill(),Te.tween=0),rt&&rt.pause(),w&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren&&r.getChildren(!0,!0,!1).forEach(function(Xe){return Xe.vars.immediateRender&&Xe.render(0,!0,!0)})),I.isReverted||I.revert(!0,!0),I._subPinOffset=!1;var Pt=le(),lt=fe(),Bt=M?M.duration():ro(F,H),wn=pt<=.01||!pt,Lt=0,Rt=ke||0,bt=Wc(Se)?Se.end:s.end,si=s.endTrigger||x,At=Wc(Se)?Se.start:s.start||(s.start===0||!x?0:b?"0 0":"0 100%"),ut=I.pinnedContainer=s.pinnedContainer&&or(s.pinnedContainer,I),ts=x&&Math.max(0,yt.indexOf(I))||0,Rn=ts,Xt,ht,Fs,br,$n,Cn,ki,Ui,bs,ee,me,Me,Fe;for(X&&Wc(Se)&&(Me=Be.getProperty(se,H.p),Fe=Be.getProperty(Pe,H.p));Rn-- >0;)Cn=yt[Rn],Cn.end||Cn.refresh(0,1)||(js=I),ki=Cn.pin,ki&&(ki===x||ki===b||ki===ut)&&!Cn.isReverted&&(ee||(ee=[]),ee.unshift(Cn),Cn.revert(!0,!0)),Cn!==yt[Rn]&&(ts--,Rn--);for(Ts(At)&&(At=At(I)),At=o4(At,"start",I),Ke=g4(At,x,Pt,H,Oe(),kn,se,I,lt,xe,ae,Bt,M,I._startClamp&&"_startClamp")||(b?-.001:0),Ts(bt)&&(bt=bt(I)),Ar(bt)&&!bt.indexOf("+=")&&(~bt.indexOf(" ")?bt=(Ar(At)?At.split(" ")[0]:"")+bt:(Lt=I0(bt.substr(2),Pt),bt=Ar(At)?At:(M?Be.utils.mapRange(0,M.duration(),M.scrollTrigger.start,M.scrollTrigger.end,Ke):Ke)+Lt,si=x)),bt=o4(bt,"end",I),ct=Math.max(Ke,g4(bt||(si?"100% 0":Bt),si,Pt,H,Oe()+Lt,et,Pe,I,lt,xe,ae,Bt,M,I._endClamp&&"_endClamp"))||-.001,Lt=0,Rn=ts;Rn--;)Cn=yt[Rn],ki=Cn.pin,ki&&Cn.start-Cn._pinPush<=Ke&&!M&&Cn.end>0&&(Xt=Cn.end-(I._startClamp?Math.max(0,Cn.start):Cn.start),(ki===x&&Cn.start-Cn._pinPush<Ke||ki===ut)&&isNaN(At)&&(Lt+=Xt*(1-Cn.progress)),ki===b&&(Rt+=Xt));if(Ke+=Lt,ct+=Lt,I._startClamp&&(I._startClamp+=Lt),I._endClamp&&!Ks&&(I._endClamp=ct||-.001,ct=Math.min(ct,ro(F,H))),pt=ct-Ke||(Ke-=.01)&&.001,wn&&(Re=Be.utils.clamp(0,1,Be.utils.normalize(Ke,ct,cn))),I._pinPush=Rt,kn&&Lt&&(Xt={},Xt[H.a]="+="+Lt,ut&&(Xt[H.p]="-="+Oe()),Be.set([kn,et],Xt)),b&&!(QN&&I.end>=ro(F,H)))Xt=ca(b),br=H===Oi,Fs=Oe(),Vt=parseFloat(ot(H.a))+Rt,!Bt&&ct>1&&(me=(q?Sn.scrollingElement||Rr:F).style,me={style:me,value:me["overflow"+H.a.toUpperCase()]},q&&ca(Kt)["overflow"+H.a.toUpperCase()]!=="scroll"&&(me.style["overflow"+H.a.toUpperCase()]="scroll")),u2(b,yn,Xt),Ft=Qx(b),ht=Ho(b,!0),Ui=ae&&dc(F,br?Ys:Oi)(),v?(vn=[v+H.os2,pt+Rt+Ri],vn.t=yn,Rn=v===vi?Zy(b,H)+pt+Rt:0,Rn&&(vn.push(H.d,Rn+Ri),yn.style.flexBasis!=="auto"&&(yn.style.flexBasis=Rn+Ri)),eh(vn),ut&&yt.forEach(function(Xe){Xe.pin===ut&&Xe.vars.pinSpacing!==!1&&(Xe._subPinOffset=!0)}),ae&&Oe(cn)):(Rn=Zy(b,H),Rn&&yn.style.flexBasis!=="auto"&&(yn.style.flexBasis=Rn+Ri)),ae&&($n={top:ht.top+(br?Fs-Ke:Ui)+Ri,left:ht.left+(br?Ui:Fs-Ke)+Ri,boxSizing:"border-box",position:"fixed"},$n[md]=$n["max"+fh]=Math.ceil(ht.width)+Ri,$n[pd]=$n["max"+K_]=Math.ceil(ht.height)+Ri,$n[la]=$n[la+Lm]=$n[la+Om]=$n[la+Im]=$n[la+Dm]="0",$n[vi]=Xt[vi],$n[vi+Lm]=Xt[vi+Lm],$n[vi+Om]=Xt[vi+Om],$n[vi+Im]=Xt[vi+Im],$n[vi+Dm]=Xt[vi+Dm],ji=Lne(Fi,$n,A),Ks&&Oe(0)),r?(bs=r._initted,a2(1),r.render(r.duration(),!0,!0),Bs=ot(H.a)-Vt+pt+Rt,mi=Math.abs(pt-Bs)>1,ae&&mi&&ji.splice(ji.length-2,2),r.render(0,!0,!0),bs||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),a2(0)):Bs=pt,me&&(me.value?me.style["overflow"+H.a.toUpperCase()]=me.value:me.style.removeProperty("overflow-"+H.a));else if(x&&Oe()&&!M)for(ht=x.parentNode;ht&&ht!==Kt;)ht._pinOffset&&(Ke-=ht._pinOffset,ct-=ht._pinOffset),ht=ht.parentNode;ee&&ee.forEach(function(Xe){return Xe.revert(!1,!0)}),I.start=Ke,I.end=ct,Tt=mt=Ks?cn:Oe(),!M&&!Ks&&(Tt<cn&&Oe(cn),I.scroll.rec=0),I.revert(!1,!0),Ie=Cs(),Hn&&(we=-1,Hn.restart(!0)),js=0,r&&V&&(r._initted||D)&&r.progress()!==D&&r.progress(D||0,!0).render(r.t
287ime(),!0,!0),(wn||Re!==I.progress||M||w||r&&!r._initted)&&(r&&!V&&(r._initted||Re||r.vars.immediateRender!==!1)&&r.totalProgress(M&&Ke<-.001&&!Re?Be.utils.normalize(Ke,ct,0):Re,!0),I.progress=wn||(Tt-Ke)/pt===Re?0:Re),b&&v&&(yn._pinOffset=Math.round(I.progress*Bs)),rt&&rt.invalidate(),isNaN(Me)||(Me-=Be.getProperty(se,H.p),Fe-=Be.getProperty(Pe,H.p),e0(se,H,Me),e0(kn,H,Me-(ke||0)),e0(Pe,H,Fe),e0(et,H,Fe-(ke||0))),wn&&!Ks&&I.update(),m&&!Ks&&!xn&&(xn=!0,m(I),xn=!1)}},I.getVelocity=function(){return(Oe()-mt)/(Cs()-sm)*1e3||0},I.endAnimation=function(){Uf(I.callbackAnimation),r&&(rt?rt.progress(1):r.paused()?V||Uf(r,I.direction<0,1):Uf(r,r.reversed()))},I.labelToScroll=function(K){return r&&r.labels&&(Ke||I.refresh()||Ke)+r.labels[K]/r.duration()*pt||0},I.getTrailing=function(K){var ce=yt.indexOf(I),Se=I.direction>0?yt.slice(0,ce).reverse():yt.slice(ce+1);return(Ar(K)?Se.filter(function(ke){return ke.vars.preventOverlaps===K}):Se).filter(function(ke){return I.direction>0?ke.end<=Ke:ke.start>=ct})},I.update=function(K,ce,Se){if(!(M&&!Se&&!K)){var ke=Ks===!0?cn:I.scroll(),Pt=K?0:(ke-Ke)/pt,lt=Pt<0?0:Pt>1?1:Pt||0,Bt=I.progress,wn,Lt,Rt,bt,si,At,ut,ts;if(ce&&(mt=Tt,Tt=M?Oe():ke,C&&(es=$i,$i=r&&!V?r.totalProgress():lt)),N&&b&&!js&&!qx&&ga&&(!lt&&Ke<ke+(ke-mt)/(Cs()-sm)*N?lt=1e-4:lt===1&&ct>ke+(ke-mt)/(Cs()-sm)*N&&(lt=.9999)),lt!==Bt&&I.enabled){if(wn=I.isActive=!!lt&<<1,Lt=!!Bt&&Bt<1,At=wn!==Lt,si=At||!!lt!=!!Bt,I.direction=lt>Bt?1:-1,I.progress=lt,si&&!js&&(Rt=lt&&!Bt?0:lt===1?1:Bt===1?2:3,V&&(bt=!At&&$[Rt+1]!=="none"&&$[Rt+1]||$[Rt],ts=r&&(bt==="complete"||bt==="reset"||bt in r))),P&&(At||ts)&&(ts||g||!r)&&(Ts(P)?P(I):I.getTrailing(P).forEach(function(Fs){return Fs.endAnimation()})),V||(rt&&!js&&!qx?(rt._dp._time-rt._start!==rt._time&&rt.render(rt._dp._time-rt._start),rt.resetTo?rt.resetTo("totalProgress",lt,r._tTime/r._tDur):(rt.vars.totalProgress=lt,rt.invalidate().restart())):r&&r.totalProgress(lt,!!(js&&(Ie||K)))),b){if(K&&v&&(yn.style[v+H.os2]=ya),!ae)bn(am(Vt+Bs*lt));else if(si){if(ut=!K&<>Bt&&ct+1>ke&&ke+1>=ro(F,H),A)if(!K&&(wn||ut)){var Rn=Ho(b,!0),Xt=ke-Ke;x4(b,Kt,Rn.top+(H===Oi?Xt:0)+Ri,Rn.left+(H===Oi?0:Xt)+Ri)}else x4(b,yn);eh(wn||ut?ji:Ft),mi&<<1&&wn||bn(Vt+(lt===1&&!ut?Bs:0))}}C&&!Te.tween&&!js&&!qx&&Hn.restart(!0),c&&(At||k&<&&(lt<1||!o2))&&dp(c.targets).forEach(function(Fs){return Fs.classList[wn||k?"add":"remove"](c.className)}),l&&!V&&!K&&l(I),si&&!js?(V&&(ts&&(bt==="complete"?r.pause().totalProgress(1):bt==="reset"?r.restart(!0).pause():bt==="restart"?r.restart(!0):r[bt]()),l&&l(I)),(At||!o2)&&(f&&At&&c2(I,f),B[Rt]&&c2(I,B[Rt]),k&&(lt===1?I.kill(!1,1):B[Rt]=0),At||(Rt=lt===1?1:3,B[Rt]&&c2(I,B[Rt]))),O&&!wn&&Math.abs(I.getVelocity())>(om(O)?O:2500)&&(Uf(I.callbackAnimation),rt?rt.progress(1):Uf(r,bt==="reverse"?1:!lt,1))):V&&l&&!js&&l(I)}if(Hi){var ht=M?ke/M.duration()*(M._caScrollDist||0):ke;yr(ht+(se._isFlipped?1:0)),Hi(ht)}W&&W(-ke/M.duration()*(M._caScrollDist||0))}},I.enable=function(K,ce){I.enabled||(I.enabled=!0,Ki(F,"resize",lm),q||Ki(F,"scroll",Su),Z&&Ki(t,"refreshInit",Z),K!==!1&&(I.progress=Re=0,Tt=mt=we=Oe()),ce!==!1&&I.refresh())},I.getTween=function(K){return K&&Te?Te.tween:rt},I.setPositions=function(K,ce,Se,ke){if(M){var Pt=M.scrollTrigger,lt=M.duration(),Bt=Pt.end-Pt.start;K=Pt.start+Bt*K/lt,ce=Pt.start+Bt*ce/lt}I.refresh(!1,!1,{start:l4(K,Se&&!!I._startClamp),end:l4(ce,Se&&!!I._endClamp)},ke),I.update()},I.adjustPinSpacing=function(K){if(vn&&K){var ce=vn.indexOf(H.d)+1;vn[ce]=parseFloat(vn[ce])+K+Ri,vn[1]=parseFloat(vn[1])+K+Ri,eh(vn)}},I.disable=function(K,ce){if(I.enabled&&(K!==!1&&I.revert(!0,!0),I.enabled=I.isActive=!1,ce||rt&&rt.pause(),cn=0,Qe&&(Qe.uncache=1),Z&&qi(t,"refreshInit",Z),Hn&&(Hn.pause(),Te.tween&&Te.tween.kill()&&(Te.tween=0)),!q)){for(var Se=yt.length;Se--;)if(yt[Se].scroller===F&&yt[Se]!==I)return;qi(F,"resize",lm),q||qi(F,"scroll",Su)}},I.kill=function(K,ce){I.disable(K,ce),rt&&!ce&&rt.kill(),u&&delete eS[u];var Se=yt.indexOf(I);Se>=0&&yt.splice(Se,1),Se===qs&&B0>0&&qs--,Se=0,yt.forEach(function(ke){return ke.scroller===I.scroller&&(Se=1)}),Se||Ks||(I.scroll.rec=0),r&&(r.scrollTrigger=null,K&&r.revert({kill:!1}),ce||r.kill()),kn&&[kn,et,se,Pe].forEach(function(ke){return ke.parentNode&&ke.parentNode.removeChild(ke)}),Pm===I&&(Pm=0),b&&(Qe&&(Qe.uncache=1),Se=0,yt.forEach(function(ke){return ke.pin===b&&Se++}),Se||(Qe.spacer=0)),s.onKill&&s.onKill(I)},yt.push(I),I.enable(!1,!1),ne&&ne(I),r&&r.add&&!pt){var re=I.update;I.update=function(){I.update=re,St.cache++,Ke||ct||I.refresh()},Be.delayedCall(.01,I.update),pt=.01,Ke=ct=0}else I.refresh();b&&Rne()},t.register=function(s){return Bu||(Be=s||PI(),II()&&window.document&&t.enable(),Bu=rm),Bu},t.defaults=function(s){if(s)for(var r in s)Zx[r]=s[r];return Zx},t.disable=function(s,r){rm=0,yt.forEach(function(l){return l[r?"kill":"disable"](s)}),qi(Nt,"wheel",Su),qi(Sn,"scroll",Su),clearInterval(Gx),qi(Sn,"touchcancel",Qa),qi(Kt,"touchstart",Qa),Yx(qi,Sn,"pointerdown,touchstart,mousedown",c4),Yx(qi,Sn,"pointerup,touchend,mouseup",d4),Yy.kill(),Kx(qi);for(var a=0;a<St.length;a+=3)Xx(qi,St[a],St[a+1]),Xx(qi,St[a],St[a+2])},t.enable=function(){if(Nt=window,Sn=document,Rr=Sn.documentElement,Kt=Sn.body,Be&&(dp=Be.utils.toArray,Rm=Be.utils.clamp,JN=Be.core.context||Qa,a2=Be.core.suppressOverwrites||Qa,W_=Nt.history.scrollRestoration||"auto",tS=Nt.pageYOffset||0,Be.core.globals("ScrollTrigger",t),Kt)){rm=1,Qu=
287document.createElement("div"),Qu.style.height="100vh",Qu.style.position="absolute",GI(),jne(),hi.register(Be),t.isTouch=hi.isTouch,zl=hi.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ZN=hi.isTouch===1,Ki(Nt,"wheel",Su),U_=[Nt,Sn,Rr,Kt],Be.matchMedia?(t.matchMedia=function(f){var m=Be.matchMedia(),g;for(g in f)m.add(g,f[g]);return m},Be.addEventListener("matchMediaInit",function(){return X_()}),Be.addEventListener("matchMediaRevert",function(){return WI()}),Be.addEventListener("matchMedia",function(){id(0,1),Rd("matchMedia")}),Be.matchMedia().add("(orientation: portrait)",function(){return d2(),d2})):console.warn("Requires GSAP 3.11.0 or later"),d2(),Ki(Sn,"scroll",Su);var s=Kt.hasAttribute("style"),r=Kt.style,a=r.borderTopStyle,l=Be.core.Animation.prototype,c,u;for(l.revert||Object.defineProperty(l,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",c=Ho(Kt),Oi.m=Math.round(c.top+Oi.sc())||0,Ys.m=Math.round(c.left+Ys.sc())||0,a?r.borderTopStyle=a:r.removeProperty("border-top-style"),s||(Kt.setAttribute("style",""),Kt.removeAttribute("style")),Gx=setInterval(f4,250),Be.delayedCall(.5,function(){return qx=0}),Ki(Sn,"touchcancel",Qa),Ki(Kt,"touchstart",Qa),Yx(Ki,Sn,"pointerdown,touchstart,mousedown",c4),Yx(Ki,Sn,"pointerup,touchend,mouseup",d4),XN=Be.utils.checkPrefix("transform"),z0.push(XN),Bu=Cs(),Yy=Be.delayedCall(.2,id).pause(),zu=[Sn,"visibilitychange",function(){var f=Nt.innerWidth,m=Nt.innerHeight;Sn.hidden?(r4=f,a4=m):(r4!==f||a4!==m)&&lm()},Sn,"DOMContentLoaded",id,Nt,"load",id,Nt,"resize",lm],Kx(Ki),yt.forEach(function(f){return f.enable(0,1)}),u=0;u<St.length;u+=3)Xx(qi,St[u],St[u+1]),Xx(qi,St[u],St[u+2])}},t.config=function(s){"limitCallbacks"in s&&(o2=!!s.limitCallbacks);var r=s.syncInterval;r&&clearInterval(Gx)||(Gx=r)&&setInterval(f4,r),"ignoreMobileResize"in s&&(ZN=t.isTouch===1&&s.ignoreMobileResize),"autoRefreshEvents"in s&&(Kx(qi)||Kx(Ki,s.autoRefreshEvents||"none"),OI=(s.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(s,r){var a=or(s),l=St.indexOf(a),c=Ad(a);~l&&St.splice(l,c?6:2),r&&(c?oo.unshift(Nt,r,Kt,r,Rr,r):oo.unshift(a,r))},t.clearMatchMedia=function(s){yt.forEach(function(r){return r._ctx&&r._ctx.query===s&&r._ctx.kill(!0,!0)})},t.isInViewport=function(s,r,a){var l=(Ar(s)?or(s):s).getBoundingClientRect(),c=l[a?md:pd]*r||0;return a?l.right-c>0&&l.left+c<Nt.innerWidth:l.bottom-c>0&&l.top+c<Nt.innerHeight},t.positionInViewport=function(s,r,a){Ar(s)&&(s=or(s));var l=s.getBoundingClientRect(),c=l[a?md:pd],u=r==null?c/2:r in Jy?Jy[r]*c:~r.indexOf("%")?parseFloat(r)*c/100:parseFloat(r)||0;return a?(l.left+u)/Nt.innerWidth:(l.top+u)/Nt.innerHeight},t.killAll=function(s){if(yt.slice(0).forEach(function(a){return a.vars.id!=="ScrollSmoother"&&a.kill()}),s!==!0){var r=Md.killAll||[];Md={},r.forEach(function(a){return a()})}},t})();dt.version="3.13.0";dt.saveStyles=function(t){return t?dp(t).forEach(function(e){if(e&&e.style){var n=Tr.indexOf(e);n>=0&&Tr.splice(n,5),Tr.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Be.core.getCache(e),JN())}}):Tr};dt.revert=function(t,e){return X_(!t,e)};dt.create=function(t,e){return new dt(t,e)};dt.refresh=function(t){return t?lm(!0):(Bu||dt.register())&&id(!0)};dt.update=function(t){return++St.cache&&Yo(t===!0?2:0)};dt.clearScrollMemory=VI;dt.maxScroll=function(t,e){return ro(t,e?Ys:Oi)};dt.getScrollFunc=function(t,e){return dc(or(t),e?Ys:Oi)};dt.getById=function(t){return eS[t]};dt.getAll=function(){return yt.filter(function(t){return t.vars.id!=="ScrollSmoother"})};dt.isScrolling=function(){return!!ga};dt.snapDirectional=Y_;dt.addEventListener=function(t,e){var n=Md[t]||(Md[t]=[]);~n.indexOf(e)||n.push(e)};dt.removeEventListener=function(t,e){var n=Md[t],s=n&&n.indexOf(e);s>=0&&n.splice(s,1)};dt.batch=function(t,e){var n=[],s={},r=e.interval||.016,a=e.batchMax||1e9,l=function(f,m){var g=[],x=[],b=Be.delayedCall(r,function(){m(g,x),g=[],x=[]}).pause();return function(v){g.length||b.restart(!0),g.push(v.trigger),x.push(v),a<=g.length&&b.progress(1)}},c;for(c in e)s[c]=c.substr(0,2)==="on"&&Ts(e[c])&&c!=="onRefreshInit"?l(c,e[c]):e[c];return Ts(a)&&(a=a(),Ki(dt,"refresh",function(){return a=e.batchMax()})),dp(t).forEach(function(u){var f={};for(c in s)f[c]=s[c];f.trigger=u,n.push(dt.create(f))}),n};var b4=function(e,n,s,r){return n>r?e(r):n<0&&e(0),s>r?(r-n)/(s-n):s<0?n/(n-s):1},h2=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+(hi.isTouch?" pinch-zoom":""):"none",e===Rr&&t(Kt,n)},t0={auto:1,scroll:1},Pne=function(e){var n=e.event,s=e.target,r=e.axis,a=(n.changedTouches?n.changedTouches[0]:n).target,l=a._gsap||Be.core.getCache(a),c=Cs(),u;if(!l._isScrollT||c-l._isScrollT>2e3){for(;
287a&&a!==Kt&&(a.scrollHeight<=a.clientHeight&&a.scrollWidth<=a.clientWidth||!(t0[(u=ca(a)).overflowY]||t0[u.overflowX]));)a=a.parentNode;l._isScroll=a&&a!==s&&!Ad(a)&&(t0[(u=ca(a)).overflowY]||t0[u.overflowX]),l._isScrollT=c}(l._isScroll||r==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},KI=function(e,n,s,r){return hi.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:r=r&&Pne,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return s&&Ki(Sn,hi.eventTypes[0],w4,!1,!0)},onDisable:function(){return qi(Sn,hi.eventTypes[0],w4,!0)}})},Bne=/(input|label|select|textarea)/i,v4,w4=function(e){var n=Bne.test(e.target.tagName);(n||v4)&&(e._gsapAllow=!0,v4=n)},zne=function(e){Wc(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,s=n.normalizeScrollX,r=n.momentum,a=n.allowNestedScroll,l=n.onRelease,c,u,f=or(e.target)||Rr,m=Be.core.globals().ScrollSmoother,g=m&&m.get(),x=zl&&(e.content&&or(e.content)||g&&e.content!==!1&&!g.smooth()&&g.content()),b=dc(f,Oi),v=dc(f,Ys),w=1,N=(hi.isTouch&&Nt.visualViewport?Nt.visualViewport.scale*Nt.visualViewport.width:Nt.outerWidth)/Nt.innerWidth,_=0,E=Ts(r)?function(){return r(c)}:function(){return r||2.8},k,C,A=KI(f,e.type,!0,a),L=function(){return C=!1},M=Qa,O=Qa,P=function(){u=ro(f,Oi),O=Rm(zl?1:0,u),s&&(M=Rm(0,ro(f,Ys))),k=gd},H=function(){x._gsap.y=am(parseFloat(x._gsap.y)+b.offset)+"px",x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(x._gsap.y)+", 0, 1)",b.offset=b.cacheID=0},V=function(){if(C){requestAnimationFrame(L);var X=am(c.deltaY/2),xe=O(b.v-X);if(x&&xe!==b.v+b.offset){b.offset=xe-b.v;var I=am((parseFloat(x&&x._gsap.y)||0)-b.offset);x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+I+", 0, 1)",x._gsap.y=I+"px",b.cacheID=St.cache,Yo()}return!0}b.offset&&H(),C=!0},F,U,q,ae,B=function(){P(),F.isActive()&&F.vars.scrollY>u&&(b()>u?F.progress(1)&&b(u):F.resetTo("scrollY",u))};return x&&Be.set(x,{y:"+=0"}),e.ignoreCheck=function($){return zl&&$.type==="touchmove"&&V()||w>1.05&&$.type!=="touchstart"||c.isGesturing||$.touches&&$.touches.length>1},e.onPress=function(){C=!1;var $=w;w=am((Nt.visualViewport&&Nt.visualViewport.scale||1)/N),F.pause(),$!==w&&h2(f,w>1.01?!0:s?!1:"x"),U=v(),q=b(),P(),k=gd},e.onRelease=e.onGestureStart=function($,X){if(b.offset&&H(),!X)ae.restart(!0);else{St.cache++;var xe=E(),I,Z;s&&(I=v(),Z=I+xe*.05*-$.velocityX/.227,xe*=b4(v,I,Z,ro(f,Ys)),F.vars.scrollX=M(Z)),I=b(),Z=I+xe*.05*-$.velocityY/.227,xe*=b4(b,I,Z,ro(f,Oi)),F.vars.scrollY=O(Z),F.invalidate().duration(xe).play(.01),(zl&&F.vars.scrollY>=u||I>=u-1)&&Be.to({},{onUpdate:B,duration:xe})}l&&l($)},e.onWheel=function(){F._ts&&F.pause(),Cs()-_>1e3&&(k=0,_=Cs())},e.onChange=function($,X,xe,I,Z){if(gd!==k&&P(),X&&s&&v(M(I[2]===X?U+($.startX-$.x):v()+X-I[1])),xe){b.offset&&H();var le=Z[2]===xe,fe=le?q+$.startY-$.y:b()+xe-Z[1],we=O(fe);le&&fe!==we&&(q+=we-fe),b(we)}(xe||X)&&Yo()},e.onEnable=function(){h2(f,s?!1:"x"),dt.addEventListener("refresh",B),Ki(Nt,"resize",B),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=v.smooth=!1),A.enable()},e.onDisable=function(){h2(f,!0),qi(Nt,"resize",B),dt.removeEventListener("refresh",B),A.kill()},e.lockAxis=e.lockAxis!==!1,c=new hi(e),c.iOS=zl,zl&&!b()&&b(1),zl&&Be.ticker.add(Qa),ae=c._dc,F=Be.to(c,{ease:"power4",paused:!0,inherit:!1,scrollX:s?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:qI(b,b(),function(){return F.pause()})},onUpdate:Yo,onComplete:ae.vars.onComplete}),c};dt.sort=function(t){if(Ts(t))return yt.sort(t);var e=Nt.pageYOffset||0;return dt.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+Nt.innerHeight}),yt.sort(t||function(n,s){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((s.vars.containerAnimation?1e6:s._sortY)+(s.vars.refreshPriority||0)*-1e6)})};dt.observe=function(t){return new hi(t)};dt.normalizeScroll=function(t){if(typeof t>"u")return Gs;if(t===!0&&Gs)return Gs.enable();if(t===!1){Gs&&Gs.kill(),Gs=t;return}var e=t instanceof hi?t:zne(t);return Gs&&Gs.target===e.target&&Gs.kill(),Ad(e.target)&&(Gs=e),e};dt.core={_getVelocityProp:YN,_inputObserver:KI,_scrollers:St,_proxies:oo,bridge:{ss:function(){ga||Rd("scrollStart"),ga=Cs()},ref:function(){return js}}};PI()&&Be.registerPlugin(dt);function Bo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function YI(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*! 288 * GSAP 3.13.0 289 * https://gsap.com 290 * 291 * @license Copyright 2008-2025, GreenSock. All rights reserved. 292 * Subject to the terms at https://gsap.com/standard-license 293 * @author: Jack Doyle, [email protected] 294*/var zr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},mh={duration:.5,overwrite:!1,delay:0},Z_,ps,Bn,ua=1e8,pn=1/ua,iS=Math.PI*2,Fne=iS/4,Hne=0,XI=Math.sqrt,$ne=Math.cos,Une=Math.sin,Ji=function(e){return typeof e=="string"},ii=function(e){return typeof e=="function"},tl=function(e){return typeof e=="number"},J_=function(e){return typeof e>"u"},ho=function(e){return typeof e=="object"},fr=function(e){return e!==!1},Q_=function(){return typeof window<"u"},n0=function(e){return ii(e)||Ji(e)},ZI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Os=Array.isArray,sS=/(?:-?\.?\d|\.)+/gi,JI=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Uu=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,f2=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,QI=/[+-]=-?[.\d]+/,e8=/[^,'"\[\]\s]+/gi,Wne=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Gn,eo,rS,ej,Hr={},Qy={},t8,n8=function(e){return(Qy=ph(e,Hr))&&xr},tj=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},hp=function(e,n){return!n&&console.warn(e)},i8=function(e,n){return e&&(Hr[e]=n)&&Qy&&(Qy[e]=n)||Hr},fp=function(){return 0},Vne={suppressEvents:!0,isStart:!0,kill:!1},H0={suppressEvents:!0,kill:!1},Gne={suppressEvents:!0},nj={},rc=[],aS={},s8,Mr={},m2={},N4=30,$0=[],ij="",sj=function(e){var n=e[0],s,r;if(ho(n)||ii(n)||(e=[e]),!(s=(n._gsap||{}).harness)){for(r=$0.length;r--&&!$0[r].targetTest(n););s=$0[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new C8(e[r],s)))||e.splice(r,1);return e},xd=function(e){return e._gsap||sj(ha(e))[0]._gsap},r8=function(e,n,s){return(s=e[n])&&ii(s)?e[n]():J_(s)&&e.getAttribute&&e.getAttribute(n)||s}
294,mr=function(e,n){return(e=e.split(",")).forEach(n)||e},di=function(e){return Math.round(e*1e5)/1e5||0},Si=function(e){return Math.round(e*1e7)/1e7||0},th=function(e,n){var s=n.charAt(0),r=parseFloat(n.substr(2));return e=parseFloat(e),s==="+"?e+r:s==="-"?e-r:s==="*"?e*r:e/r},qne=function(e,n){for(var s=n.length,r=0;e.indexOf(n[r])<0&&++r<s;);return r<s},eb=function(){var e=rc.length,n=rc.slice(0),s,r;for(aS={},rc.length=0,s=0;s<e;s++)r=n[s],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},rj=function(e){return!!(e._initted||e._startAt||e.add)},a8=function(e,n,s,r){rc.length&&!ps&&eb(),e.render(n,s,!!(ps&&n<0&&rj(e))),rc.length&&!ps&&eb()},o8=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(e8).length<2?n:Ji(e)?e.trim():e},l8=function(e){return e},$r=function(e,n){for(var s in n)s in e||(e[s]=n[s]);return e},Kne=function(e){return function(n,s){for(var r in s)r in n||r==="duration"&&e||r==="ease"||(n[r]=s[r])}},ph=function(e,n){for(var s in n)e[s]=n[s];return e},S4=function t(e,n){for(var s in n)s!=="__proto__"&&s!=="constructor"&&s!=="prototype"&&(e[s]=ho(n[s])?t(e[s]||(e[s]={}),n[s]):n[s]);return e},tb=function(e,n){var s={},r;for(r in e)r in n||(s[r]=e[r]);return s},Bm=function(e){var n=e.parent||Gn,s=e.keyframes?Kne(Os(e.keyframes)):$r;if(fr(e.inherit))for(;n;)s(e,n.vars.defaults),n=n.parent||n._dp;return e},Yne=function(e,n){for(var s=e.length,r=s===n.length;r&&s--&&e[s]===n[s];);return s<0},c8=function(e,n,s,r,a){var l=e[r],c;if(a)for(c=n[a];l&&l[a]>c;)l=l._prev;return l?(n._next=l._next,l._next=n):(n._next=e[s],e[s]=n),n._next?n._next._prev=n:e[r]=n,n._prev=l,n.parent=n._dp=e,n},$b=function(e,n,s,r){s===void 0&&(s="_first"),r===void 0&&(r="_last");var a=n._prev,l=n._next;a?a._next=l:e[s]===n&&(e[s]=l),l?l._prev=a:e[r]===n&&(e[r]=a),n._next=n._prev=n.parent=null},uc=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},yd=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var s=e;s;)s._dirty=1,s=s.parent;return e},Xne=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},oS=function(e,n,s,r){return e._startAt&&(ps?e._startAt.revert(H0):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,r))},Zne=function t(e){return!e||e._ts&&t(e.parent)},_4=function(e){return e._repeat?gh(e._tTime,e=e.duration()+e._rDelay)*e:0},gh=function(e,n){var s=Math.floor(e=Si(e/n));return e&&s===e?s-1:s},nb=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Ub=function(e){return e._end=Si(e._start+(e._tDur/Math.abs(e._ts||e._rts||pn)||0))},Wb=function(e,n){var s=e._dp;return s&&s.smoothChildTiming&&e._ts&&(e._start=Si(s._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),Ub(e),s._dirty||yd(s,e)),e},d8=function(e,n){var s;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(s=nb(e.rawTime(),n),(!n._dur||Hp(0,n.totalDuration(),s)-n._tTime>pn)&&n.render(s,!0)),yd(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(s=e;s._dp;)s.rawTime()>=0&&s.totalTime(s._tTime),s=s._dp;e._zTime=-pn}},io=function(e,n,s,r){return n.parent&&uc(n),n._start=Si((tl(s)?s:s||e!==Gn?ra(e,s,n):e._time)+n._delay),n._end=Si(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),c8(e,n,"_first","_last",e._sort?"_start":0),lS(n)||(e._recent=n),r||d8(e,n),e._ts<0&&Wb(e,e._tTime),e},u8=function(e,n){return(Hr.ScrollTrigger||tj("scrollTrigger",n))&&Hr.ScrollTrigger.create(n,e)},h8=function(e,n,s,r,a){if(oj(e,n,a),!e._initted)return 1;if(!s&&e._pt&&!ps&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&s8!==Ir.frame)return rc.push(e),e._lazy=[a,r],1},Jne=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},lS=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},Qne=function(e,n,s,r){var a=e.ratio,l=n<0||!n&&(!e._start&&Jne(e)&&!(!e._initted&&lS(e))||(e._ts<0||e._dp._ts<0)&&!lS(e))?0:1,c=e._rDelay,u=0,f,m,g;if(c&&e._repeat&&(u=Hp(0,e._tDur,n),m=gh(u,c),e._yoyo&&m&1&&(l=1-l),m!==gh(e._tTime,c)&&(a=1-l,e.vars.repeatRefresh&&e._initted&&e.invali
294date())),l!==a||ps||r||e._zTime===pn||!n&&e._zTime){if(!e._initted&&h8(e,n,r,s,u))return;for(g=e._zTime,e._zTime=n||(s?pn:0),s||(s=n&&!g),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=u,f=e._pt;f;)f.r(l,f.d),f=f._next;n<0&&oS(e,n,s,!0),e._onUpdate&&!s&&Pr(e,"onUpdate"),u&&e._repeat&&!s&&e.parent&&Pr(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===l&&(l&&uc(e,1),!s&&!ps&&(Pr(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},eie=function(e,n,s){var r;if(s>n)for(r=e._first;r&&r._start<=s;){if(r.data==="isPause"&&r._start>n)return r;r=r._next}else for(r=e._last;r&&r._start>=s;){if(r.data==="isPause"&&r._start<n)return r;r=r._prev}},xh=function(e,n,s,r){var a=e._repeat,l=Si(n)||0,c=e._tTime/e._tDur;return c&&!r&&(e._time*=l/e._dur),e._dur=l,e._tDur=a?a<0?1e10:Si(l*(a+1)+e._rDelay*a):l,c>0&&!r&&Wb(e,e._tTime=e._tDur*c),e.parent&&Ub(e),s||yd(e.parent,e),e},j4=function(e){return e instanceof Xs?yd(e):xh(e,e._dur)},tie={_start:0,endTime:fp,totalDuration:fp},ra=function t(e,n,s){var r=e.labels,a=e._recent||tie,l=e.duration()>=ua?a.endTime(!1):e._dur,c,u,f;return Ji(n)&&(isNaN(n)||n in r)?(u=n.charAt(0),f=n.substr(-1)==="%",c=n.indexOf("="),u==="<"||u===">"?(c>=0&&(n=n.replace(/=/,"")),(u==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(f?(c<0?a:s).totalDuration()/100:1)):c<0?(n in r||(r[n]=l),r[n]):(u=parseFloat(n.charAt(c-1)+n.substr(c+1)),f&&s&&(u=u/100*(Os(s)?s[0]:s).totalDuration()),c>1?t(e,n.substr(0,c-1),s)+u:l+u)):n==null?l:+n},zm=function(e,n,s){var r=tl(n[1]),a=(r?2:1)+(e<2?0:1),l=n[a],c,u;if(r&&(l.duration=n[1]),l.parent=s,e){for(c=l,u=s;u&&!("immediateRender"in c);)c=u.vars.defaults||{},u=fr(u.vars.inherit)&&u.parent;l.immediateRender=fr(c.immediateRender),e<2?l.runBackwards=1:l.startAt=n[a-1]}return new wi(n[0],l,n[a+1])},yc=function(e,n){return e||e===0?n(e):n},Hp=function(e,n,s){return s<e?e:s>n?n:s},As=function(e,n){return!Ji(e)||!(n=Wne.exec(e))?"":n[1]},nie=function(e,n,s){return yc(s,function(r){return Hp(e,n,r)})},cS=[].slice,f8=function(e,n){return e&&ho(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&ho(e[0]))&&!e.nodeType&&e!==eo},iie=function(e,n,s){return s===void 0&&(s=[]),e.forEach(function(r){var a;return Ji(r)&&!n||f8(r,1)?(a=s).push.apply(a,ha(r)):s.push(r)})||s},ha=function(e,n,s){return Bn&&!n&&Bn.selector?Bn.selector(e):Ji(e)&&!s&&(rS||!yh())?cS.call((n||ej).querySelectorAll(e),0):Os(e)?iie(e,s):f8(e)?cS.call(e,0):e?[e]:[]},dS=function(e){return e=ha(e)[0]||hp("Invalid scope")||{},function(n){var s=e.current||e.nativeElement||e;return ha(n,s.querySelectorAll?s:s===e?hp("Invalid scope")||ej.createElement("div"):e)}},m8=function(e){return e.sort(function(){return .5-Math.random()})},p8=function(e){if(ii(e))return e;var n=ho(e)?e:{each:e},s=bd(n.ease),r=n.from||0,a=parseFloat(n.base)||0,l={},c=r>0&&r<1,u=isNaN(r)||c,f=n.axis,m=r,g=r;return Ji(r)?m=g={center:.5,edges:.5,end:1}[r]||0:!c&&u&&(m=r[0],g=r[1]),function(x,b,v){var w=(v||n).length,N=l[w],_,E,k,C,A,L,M,O,P;if(!N){if(P=n.grid==="auto"?0:(n.grid||[1,ua])[1],!P){for(M=-ua;M<(M=v[P++].getBoundingClientRect().left)&&P<w;);P<w&&P--}for(N=l[w]=[],_=u?Math.min(P,w)*m-.5:r%P,E=P===ua?0:u?w*g/P-.5:r/P|0,M=0,O=ua,L=0;L<w;L++)k=L%P-_,C=E-(L/P|0),N[L]=A=f?Math.abs(f==="y"?C:k):XI(k*k+C*C),A>M&&(M=A),A<O&&(O=A);r==="random"&&m8(N),N.max=M-O,N.min=O,N.v=w=(parseFloat(n.amount)||parseFloat(n.each)*(P>w?w-1:f?f==="y"?w/P:P:Math.max(P,w/P))||0)*(r==="edges"?-1:1),N.b=w<0?a-w:a,N.u=As(n.amount||n.each)||0,s=s&&w<0?j8(s):s}return w=(N[x]-N.min)/N.max||0,Si(N.b+(s?s(w):w)*N.v)+N.u}},uS=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var r=Si(Math.round(parseFloat(s)/e)*e*n);return(r-r%1)/n+(tl(s)?0:As(s))}},g8=function(e,n){var s=Os(e),r,a;return!s&&ho(e)&&(r=s=e.radius||ua,e.values?(e=ha(e.values),(a=!tl(e[0]))&&(r*=r)):e=uS(e.increment)),yc(n,s?ii(e)?function(l){return a=e(l),Math.abs(a-l)<=r?a:l}:function(l){for(var c=parseFloat(a?l.x:l),u=parseFloat(a?l.y:0),f=ua,m=0,g=e.length,x,b;g--;)a?(x=e[g].x-c,b=e[g].y-u,x=x*x+b*b):x=Math.abs(e[g]-c),x<f&&(f=x,m=g);return m=!r||f<=r?e[m]:l,a||m===l||tl(l)?m:m+As(l)}:uS(e))},x8=function(e,n,s,r){return yc(Os(e)?!n:s===!0?!!(s=0):!r,function(){return Os(e)?e[~~(Math.random()*e.length)]:(s=s||1e-5)&&(r=s<1?Math.pow(10,(s+"").length-2):1)&&Math.floor(Math.round((e-s/2+Math.random()*(n-e+s*.99))/s)*s*r)/r})},sie=function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return function(r){return n.reduce(function(a,l){return l(a)},r)}},rie=function(e,n){return function(s){return e(parseFloat(s))+(n||As(s))}},aie=function(e,n,s){return b8(e,n,0,1,s)},y8=function(e,n,s){return yc(s,function(r){return e[~~n(r)]})},oie=function t(e,n,s){var r=n-e;return Os(e)?y8(e,t(0,e.length),n):yc(s,function(a){return(r+(a-e)%r)%r+e})},lie=function t(e,n,s){var r=n-e,a=r*2;return Os(e)?y8(e,t(0,e.length-1),n):yc(s,function(l){return l=(a+(l-e)%a)%a||0,e+(l>
294r?a-l:l)})},mp=function(e){for(var n=0,s="",r,a,l,c;~(r=e.indexOf("random(",n));)l=e.indexOf(")",r),c=e.charAt(r+7)==="[",a=e.substr(r+7,l-r-7).match(c?e8:sS),s+=e.substr(n,r-n)+x8(c?a:+a[0],c?0:+a[1],+a[2]||1e-5),n=l+1;return s+e.substr(n,e.length-n)},b8=function(e,n,s,r,a){var l=n-e,c=r-s;return yc(a,function(u){return s+((u-e)/l*c||0)})},cie=function t(e,n,s,r){var a=isNaN(e+n)?0:function(b){return(1-b)*e+b*n};if(!a){var l=Ji(e),c={},u,f,m,g,x;if(s===!0&&(r=1)&&(s=null),l)e={p:e},n={p:n};else if(Os(e)&&!Os(n)){for(m=[],g=e.length,x=g-2,f=1;f<g;f++)m.push(t(e[f-1],e[f]));g--,a=function(v){v*=g;var w=Math.min(x,~~v);return m[w](v-w)},s=n}else r||(e=ph(Os(e)?[]:{},e));if(!m){for(u in n)aj.call(c,e,u,"get",n[u]);a=function(v){return dj(v,c)||(l?e.p:e)}}}return yc(s,a)},E4=function(e,n,s){var r=e.labels,a=ua,l,c,u;for(l in r)c=r[l]-n,c<0==!!s&&c&&a>(c=Math.abs(c))&&(u=l,a=c);return u},Pr=function(e,n,s){var r=e.vars,a=r[n],l=Bn,c=e._ctx,u,f,m;if(a)return u=r[n+"Params"],f=r.callbackScope||e,s&&rc.length&&eb(),c&&(Bn=c),m=u?a.apply(f,u):a.call(f),Bn=l,m},cm=function(e){return uc(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ps),e.progress()<1&&Pr(e,"onInterrupt"),e},Wu,v8=[],w8=function(e){if(e)if(e=!e.name&&e.default||e,Q_()||e.headless){var n=e.name,s=ii(e),r=n&&!s&&e.init?function(){this._props=[]}:e,a={init:fp,render:dj,add:aj,kill:jie,modifier:_ie,rawVars:0},l={targetTest:0,get:0,getSetter:cj,aliases:{},register:0};if(yh(),e!==r){if(Mr[n])return;$r(r,$r(tb(e,a),l)),ph(r.prototype,ph(a,tb(e,l))),Mr[r.prop=n]=r,e.targetTest&&($0.push(r),nj[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}i8(n,r),e.register&&e.register(xr,r,pr)}else v8.push(e)},hn=255,dm={aqua:[0,hn,hn],lime:[0,hn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,hn],navy:[0,0,128],white:[hn,hn,hn],olive:[128,128,0],yellow:[hn,hn,0],orange:[hn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[hn,0,0],pink:[hn,192,203],cyan:[0,hn,hn],transparent:[hn,hn,hn,0]},p2=function(e,n,s){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(s-n)*e*6:e<.5?s:e*3<2?n+(s-n)*(2/3-e)*6:n)*hn+.5|0},N8=function(e,n,s){var r=e?tl(e)?[e>>16,e>>8&hn,e&hn]:0:dm.black,a,l,c,u,f,m,g,x,b,v;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),dm[e])r=dm[e];else if(e.charAt(0)==="#"){if(e.length<6&&(a=e.charAt(1),l=e.charAt(2),c=e.charAt(3),e="#"+a+a+l+l+c+c+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&hn,r&hn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&hn,e&hn]}else if(e.substr(0,3)==="hsl"){if(r=v=e.match(sS),!n)u=+r[0]%360/360,f=+r[1]/100,m=+r[2]/100,l=m<=.5?m*(f+1):m+f-m*f,a=m*2-l,r.length>3&&(r[3]*=1),r[0]=p2(u+1/3,a,l),r[1]=p2(u,a,l),r[2]=p2(u-1/3,a,l);else if(~e.indexOf("="))return r=e.match(JI),s&&r.length<4&&(r[3]=1),r}else r=e.match(sS)||dm.transparent;r=r.map(Number)}return n&&!v&&(a=r[0]/hn,l=r[1]/hn,c=r[2]/hn,g=Math.max(a,l,c),x=Math.min(a,l,c),m=(g+x)/2,g===x?u=f=0:(b=g-x,f=m>.5?b/(2-g-x):b/(g+x),u=g===a?(l-c)/b+(l<c?6:0):g===l?(c-a)/b+2:(a-l)/b+4,u*=60),r[0]=~~(u+.5),r[1]=~~(f*100+.5),r[2]=~~(m*100+.5)),s&&r.length<4&&(r[3]=1),r},S8=function(e){var n=[],s=[],r=-1;return e.split(ac).forEach(function(a){var l=a.match(Uu)||[];n.push.apply(n,l),s.push(r+=l.length+1)}),n.c=s,n},k4=function(e,n,s){var r="",a=(e+r).match(ac),l=n?"hsla(":"rgba(",c=0,u,f,m,g;if(!a)return e;if(a=a.map(function(x){return(x=N8(x,n,1))&&l+(n?x[0]+","+x[1]+"%,"+x[2]+"%,"+x[3]:x.join(","))+")"}),s&&(m=S8(e),u=s.c,u.join(r)!==m.c.join(r)))for(f=e.replace(ac,"1").split(Uu),g=f.length-1;c<g;c++)r+=f[c]+(~u.indexOf(c)?a.shift()||l+"0,0,0,0)":(m.length?m:a.length?a:s).shift());if(!f)for(f=e.split(ac),g=f.length-1;c<g;c++)r+=f[c]+a[c];return r+f[g]},ac=(function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in dm)t+="|"+e+"\\b";return new RegExp(t+")","gi")})(),die=/hsl[a]?\(/,_8=function(e){var n=e.join(" "),s;if(ac.lastIndex=0,ac.test(n))return s=die.test(n),e[1]=k4(e[1],s),e[0]=k4(e[0],s,S8(e[1])),!0},pp,Ir=(function(){var t=Date.now,e=500,n=33,s=t(),r=s,a=1e3/240,l=a,c=[],u,f,m,g,x,b,v=function w(N){var _=t()-r,E=N===!0,k,C,A,L;if((_>e||_<0)&&(s+=_-n),r+=_,A=r-s,k=A-l,(k>0||E)&&(L=++g.frame,x=A-g.time*1e3,g.time=A=A/1e3,l+=k+(k>=a?4:a-k),C=1),E||(u=f(w)),C)for(b=0;b<c.length;b++)c[b](A,x,L,N)};return g={time:0,frame:0,tick:function(){v(!0)},deltaRatio:function(N){return x/(1e3/(N||60))},wake:function(){t8&&(!rS&&Q_()&&(eo=rS=window,ej=eo.document||{}
294,Hr.gsap=xr,(eo.gsapVersions||(eo.gsapVersions=[])).push(xr.version),n8(Qy||eo.GreenSockGlobals||!eo.gsap&&eo||{}),v8.forEach(w8)),m=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&g.sleep(),f=m||function(N){return setTimeout(N,l-g.time*1e3+1|0)},pp=1,v(2))},sleep:function(){(m?cancelAnimationFrame:clearTimeout)(u),pp=0,f=fp},lagSmoothing:function(N,_){e=N||1/0,n=Math.min(_||33,e)},fps:function(N){a=1e3/(N||240),l=g.time*1e3+a},add:function(N,_,E){var k=_?function(C,A,L,M){N(C,A,L,M),g.remove(k)}:N;return g.remove(N),c[E?"unshift":"push"](k),yh(),k},remove:function(N,_){~(_=c.indexOf(N))&&c.splice(_,1)&&b>=_&&b--},_listeners:c},g})(),yh=function(){return!pp&&Ir.wake()},Dt={},uie=/^[\d.\-M][\d.\-,\s]/,hie=/["']/g,fie=function(e){for(var n={},s=e.substr(1,e.length-3).split(":"),r=s[0],a=1,l=s.length,c,u,f;a<l;a++)u=s[a],c=a!==l-1?u.lastIndexOf(","):u.length,f=u.substr(0,c),n[r]=isNaN(f)?f.replace(hie,"").trim():+f,r=u.substr(c+1).trim();return n},mie=function(e){var n=e.indexOf("(")+1,s=e.indexOf(")"),r=e.indexOf("(",n);return e.substring(n,~r&&r<s?e.indexOf(")",s+1):s)},pie=function(e){var n=(e+"").split("("),s=Dt[n[0]];return s&&n.length>1&&s.config?s.config.apply(null,~e.indexOf("{")?[fie(n[1])]:mie(e).split(",").map(o8)):Dt._CE&&uie.test(e)?Dt._CE("",e):s},j8=function(e){return function(n){return 1-e(1-n)}},E8=function t(e,n){for(var s=e._first,r;s;)s instanceof Xs?t(s,n):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==n&&(s.timeline?t(s.timeline,n):(r=s._ease,s._ease=s._yEase,s._yEase=r,s._yoyo=n)),s=s._next},bd=function(e,n){return e&&(ii(e)?e:Dt[e]||pie(e))||n},Pd=function(e,n,s,r){s===void 0&&(s=function(u){return 1-n(1-u)}),r===void 0&&(r=function(u){return u<.5?n(u*2)/2:1-n((1-u)*2)/2});var a={easeIn:n,easeOut:s,easeInOut:r},l;return mr(e,function(c){Dt[c]=Hr[c]=a,Dt[l=c.toLowerCase()]=s;for(var u in a)Dt[l+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=Dt[c+"."+u]=a[u]}),a},k8=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},g2=function t(e,n,s){var r=n>=1?n:1,a=(s||(e?.3:.45))/(n<1?n:1),l=a/iS*(Math.asin(1/r)||0),c=function(m){return m===1?1:r*Math.pow(2,-10*m)*Une((m-l)*a)+1},u=e==="out"?c:e==="in"?function(f){return 1-c(1-f)}:k8(c);return a=iS/a,u.config=function(f,m){return t(e,f,m)},u},x2=function t(e,n){n===void 0&&(n=1.70158);var s=function(l){return l?--l*l*((n+1)*l+n)+1:0},r=e==="out"?s:e==="in"?function(a){return 1-s(1-a)}:k8(s);return r.config=function(a){return t(e,a)},r};mr("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Pd(t+",Power"+(n-1),e?function(s){return Math.pow(s,n)}:function(s){return s},function(s){return 1-Math.pow(1-s,n)},function(s){return s<.5?Math.pow(s*2,n)/2:1-Math.pow((1-s)*2,n)/2})});Dt.Linear.easeNone=Dt.none=Dt.Linear.easeIn;Pd("Elastic",g2("in"),g2("out"),g2());(function(t,e){var n=1/e,s=2*n,r=2.5*n,a=function(c){return c<n?t*c*c:c<s?t*Math.pow(c-1.5/e,2)+.75:c<r?t*(c-=2.25/e)*c+.9375:t*Math.pow(c-2.625/e,2)+.984375};Pd("Bounce",function(l){return 1-a(1-l)},a)})(7.5625,2.75);Pd("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});Pd("Circ",function(t){return-(XI(1-t*t)-1)});Pd("Sine",function(t){return t===1?1:-$ne(t*Fne)+1});Pd("Back",x2("in"),x2("out"),x2());Dt.SteppedEase=Dt.steps=Hr.SteppedEase={config:function(e,n){e===void 0&&(e=1);var s=1/e,r=e+(n?0:1),a=n?1:0,l=1-pn;return function(c){return((r*Hp(0,l,c)|0)+a)*s}}};mh.ease=Dt["quad.out"];mr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ij+=t+","+t+"Params,"});var C8=function(e,n){this.id=Hne++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:r8,this.set=n?n.getSetter:cj},gp=(function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,xh(this,+n.duration,1,1),this.data=n.data,Bn&&(this._ctx=Bn,Bn.data.push(this)),pp||Ir.wake()}var e=t.prototype;return e.delay=function(s){return s||s===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+s-this._delay),this._delay=s,this):this._delay},e.duration=function(s){return arguments.length?this.totalDuration(this._repeat>0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,xh(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,r){if(yh(),!arguments.length)return this._tTime;var a=this._dp;
294if(a&&a.smoothChildTiming&&this._ts){for(Wb(this,s),!a._dp||a.parent||d8(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s<this._tDur||this._ts<0&&s>0||!this._tDur&&!s)&&io(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===pn||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),a8(this,s,r)),this},e.time=function(s,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+_4(this))%(this._dur+this._rDelay)||(s?this._dur:0),r):this._time},e.totalProgress=function(s,r){return arguments.length?this.totalTime(this.totalDuration()*s,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(s,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+_4(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(s,r){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*a,r):this._repeat?gh(this._tTime,a)+1:1},e.timeScale=function(s,r){if(!arguments.length)return this._rts===-pn?0:this._rts;if(this._rts===s)return this;var a=this.parent&&this._ts?nb(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-pn?0:this._rts,this.totalTime(Hp(-Math.abs(this._delay),this.totalDuration(),a),r!==!1),Ub(this),Xne(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(yh(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==pn&&(this._tTime-=pn)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&io(r,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(fr(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var r=this.parent||this._dp;return r?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?nb(r.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=Gne);var r=ps;return ps=s,rj(this)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),ps=r,this},e.globalTime=function(s){for(var r=this,a=arguments.length?s:r.rawTime();r;)a=r._start+a/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(s):a},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,j4(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var r=this._time;return this._rDelay=s,j4(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,r){return this.totalTime(ra(this,s),fr(r))},e.restart=function(s,r){return this.play().totalTime(s?-this._delay:0,fr(r)),this._dur||(this._zTime=-pn),this},e.play=function(s,r){return s!=null&&this.seek(s,r),this.reversed(!1).paused(!1)},e.reverse=function(s,r){return s!=null&&this.seek(s||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(s,r){return s!=null&&this.seek(s,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-pn:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-pn,this},e.isActive=function(){var s=this.parent||this._dp,r=this._start,a;return!!(!s||this._ts&&this._initted&&s.isActive()&&(a=s.rawTime(!0))>=r&&a<this.endTime(!0)-pn)},e.eventCallback=function(s,r,a){var l=this.vars;return arguments.length>1?(r?(l[s]=r,a&&(l[s+"Params"]=a),s==="onUpdate"&&(this._onUpdate=r)):delete l[s],this):l[s]},e.then=function(s){var r=this;return new Promise(function(a){var l=ii(s)?s:l8,c=function(){var f=r.then;r.then=null,ii(l)&&(l=l(r))&&(l.then||l===r)&&(r.then=f),a(l),r.then=f};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?c():r._prom=c})},e.kill=function(){cm(this)},t})();$r(gp.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-pn,_prom:0,_ps:!1,_rts:1});var Xs=(function(t){YI(e,t);function e(s,r){var a;return s===void 0&&(s={}),a=t.call(this,s)||this,a.labels={},a.smoothChildTiming=!!s.smoothChildTiming,a.autoRemoveChildren=!!s.autoRemoveChildren,a._sort=fr(s.sortChildren),Gn&&io(s.parent||Gn,Bo(a),r),s.reversed&&a.reverse(),s.paused&&a.paused(!0),s.scrollTrigger&&u8(B
294o(a),s.scrollTrigger),a}var n=e.prototype;return n.to=function(r,a,l){return zm(0,arguments,this),this},n.from=function(r,a,l){return zm(1,arguments,this),this},n.fromTo=function(r,a,l,c){return zm(2,arguments,this),this},n.set=function(r,a,l){return a.duration=0,a.parent=this,Bm(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new wi(r,a,ra(this,l),1),this},n.call=function(r,a,l){return io(this,wi.delayedCall(0,r,a),l)},n.staggerTo=function(r,a,l,c,u,f,m){return l.duration=a,l.stagger=l.stagger||c,l.onComplete=f,l.onCompleteParams=m,l.parent=this,new wi(r,l,ra(this,u)),this},n.staggerFrom=function(r,a,l,c,u,f,m){return l.runBackwards=1,Bm(l).immediateRender=fr(l.immediateRender),this.staggerTo(r,a,l,c,u,f,m)},n.staggerFromTo=function(r,a,l,c,u,f,m,g){return c.startAt=l,Bm(c).immediateRender=fr(c.immediateRender),this.staggerTo(r,a,c,u,f,m,g)},n.render=function(r,a,l){var c=this._time,u=this._dirty?this.totalDuration():this._tDur,f=this._dur,m=r<=0?0:Si(r),g=this._zTime<0!=r<0&&(this._initted||!f),x,b,v,w,N,_,E,k,C,A,L,M;if(this!==Gn&&m>u&&r>=0&&(m=u),m!==this._tTime||l||g){if(c!==this._time&&f&&(m+=this._time-c,r+=this._time-c),x=m,C=this._start,k=this._ts,_=!k,g&&(f||(c=this._zTime),(r||!a)&&(this._zTime=r)),this._repeat){if(L=this._yoyo,N=f+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(N*100+r,a,l);if(x=Si(m%N),m===u?(w=this._repeat,x=f):(A=Si(m/N),w=~~A,w&&w===A&&(x=f,w--),x>f&&(x=f)),A=gh(this._tTime,N),!c&&this._tTime&&A!==w&&this._tTime-A*N-this._dur<=0&&(A=w),L&&w&1&&(x=f-x,M=1),w!==A&&!this._lock){var O=L&&A&1,P=O===(L&&w&1);if(w<A&&(O=!O),c=O?0:m%f?f:m,this._lock=1,this.render(c||(M?0:Si(w*N)),a,!f)._lock=0,this._tTime=m,!a&&this.parent&&Pr(this,"onRepeat"),this.vars.repeatRefresh&&!M&&(this.invalidate()._lock=1),c&&c!==this._time||_!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(f=this._dur,u=this._tDur,P&&(this._lock=2,c=O?f:-1e-4,this.render(c,!0),this.vars.repeatRefresh&&!M&&this.invalidate()),this._lock=0,!this._ts&&!_)return this;E8(this,M)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(E=eie(this,Si(c),Si(x)),E&&(m-=x-(x=E._start))),this._tTime=m,this._time=x,this._act=!k,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,c=0),!c&&m&&!a&&!A&&(Pr(this,"onStart"),this._tTime!==m))return this;if(x>=c&&r>=0)for(b=this._first;b;){if(v=b._next,(b._act||x>=b._start)&&b._ts&&E!==b){if(b.parent!==this)return this.render(r,a,l);if(b.render(b._ts>0?(x-b._start)*b._ts:(b._dirty?b.totalDuration():b._tDur)+(x-b._start)*b._ts,a,l),x!==this._time||!this._ts&&!_){E=0,v&&(m+=this._zTime=-pn);break}}b=v}else{b=this._last;for(var H=r<0?r:x;b;){if(v=b._prev,(b._act||H<=b._end)&&b._ts&&E!==b){if(b.parent!==this)return this.render(r,a,l);if(b.render(b._ts>0?(H-b._start)*b._ts:(b._dirty?b.totalDuration():b._tDur)+(H-b._start)*b._ts,a,l||ps&&rj(b)),x!==this._time||!this._ts&&!_){E=0,v&&(m+=this._zTime=H?-pn:pn);break}}b=v}}if(E&&!a&&(this.pause(),E.render(x>=c?0:-pn)._zTime=x>=c?1:-1,this._ts))return this._start=C,Ub(this),this.render(r,a,l);this._onUpdate&&!a&&Pr(this,"onUpdate",!0),(m===u&&this._tTime>=this.totalDuration()||!m&&c)&&(C===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((r||!f)&&(m===u&&this._ts>0||!m&&this._ts<0)&&uc(this,1),!a&&!(r<0&&!c)&&(m||c||!u)&&(Pr(this,m===u&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(m<u&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(r,a){var l=this;if(tl(a)||(a=ra(this,a,r)),!(r instanceof gp)){if(Os(r))return r.forEach(function(c){return l.add(c,a)}),this;if(Ji(r))return this.addLabel(r,a);if(ii(r))r=wi.delayedCall(0,r);else return this}return this!==r?io(this,r,a):this},n.getChildren=function(r,a,l,c){r===void 0&&(r=!0),a===void 0&&(a=!0),l===void 0&&(l=!0),c===void 0&&(c=-ua);for(var u=[],f=this._first;f;)f._start>=c&&(f instanceof wi?a&&u.push(f):(l&&u.push(f),r&&u.push.apply(u,f.getChildren(!0,a,l)))),f=f._next;return u},n.getById=function(r){for(var a=this.getChildren(1,1,1),l=a.length;l--;)if(a[l].vars.id===r)return a[l]},n.remove=function(r){return Ji(r)?this.removeLabel(r):ii(r)?this.killTweensOf(r):(r.parent===this&&$b(this,r),r===this._recent&&(this._recent=this._last),yd(this))},n.totalTime=function(r,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Si(Ir.time-(this._ts>
2940?r/this._ts:(this.totalDuration()-r)/-this._ts))),t.prototype.totalTime.call(this,r,a),this._forcing=0,this):this._tTime},n.addLabel=function(r,a){return this.labels[r]=ra(this,a),this},n.removeLabel=function(r){return delete this.labels[r],this},n.addPause=function(r,a,l){var c=wi.delayedCall(0,a||fp,l);return c.data="isPause",this._hasPause=1,io(this,c,ra(this,r))},n.removePause=function(r){var a=this._first;for(r=ra(this,r);a;)a._start===r&&a.data==="isPause"&&uc(a),a=a._next},n.killTweensOf=function(r,a,l){for(var c=this.getTweensOf(r,l),u=c.length;u--;)Xl!==c[u]&&c[u].kill(r,a);return this},n.getTweensOf=function(r,a){for(var l=[],c=ha(r),u=this._first,f=tl(a),m;u;)u instanceof wi?qne(u._targets,c)&&(f?(!Xl||u._initted&&u._ts)&&u.globalTime(0)<=a&&u.globalTime(u.totalDuration())>a:!a||u.isActive())&&l.push(u):(m=u.getTweensOf(c,a)).length&&l.push.apply(l,m),u=u._next;return l},n.tweenTo=function(r,a){a=a||{};var l=this,c=ra(l,r),u=a,f=u.startAt,m=u.onStart,g=u.onStartParams,x=u.immediateRender,b,v=wi.to(l,$r({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:c,overwrite:"auto",duration:a.duration||Math.abs((c-(f&&"time"in f?f.time:l._time))/l.timeScale())||pn,onStart:function(){if(l.pause(),!b){var N=a.duration||Math.abs((c-(f&&"time"in f?f.time:l._time))/l.timeScale());v._dur!==N&&xh(v,N,0,1).render(v._time,!0,!0),b=1}m&&m.apply(v,g||[])}},a));return x?v.render(0):v},n.tweenFromTo=function(r,a,l){return this.tweenTo(a,$r({startAt:{time:ra(this,r)}},l))},n.recent=function(){return this._recent},n.nextLabel=function(r){return r===void 0&&(r=this._time),E4(this,ra(this,r))},n.previousLabel=function(r){return r===void 0&&(r=this._time),E4(this,ra(this,r),1)},n.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+pn)},n.shiftChildren=function(r,a,l){l===void 0&&(l=0);for(var c=this._first,u=this.labels,f;c;)c._start>=l&&(c._start+=r,c._end+=r),c=c._next;if(a)for(f in u)u[f]>=l&&(u[f]+=r);return yd(this)},n.invalidate=function(r){var a=this._first;for(this._lock=0;a;)a.invalidate(r),a=a._next;return t.prototype.invalidate.call(this,r)},n.clear=function(r){r===void 0&&(r=!0);for(var a=this._first,l;a;)l=a._next,this.remove(a),a=l;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),yd(this)},n.totalDuration=function(r){var a=0,l=this,c=l._last,u=ua,f,m,g;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-r:r));if(l._dirty){for(g=l.parent;c;)f=c._prev,c._dirty&&c.totalDuration(),m=c._start,m>u&&l._sort&&c._ts&&!l._lock?(l._lock=1,io(l,c,m-c._delay,1)._lock=0):u=m,m<0&&c._ts&&(a-=m,(!g&&!l._dp||g&&g.smoothChildTiming)&&(l._start+=m/l._ts,l._time-=m,l._tTime-=m),l.shiftChildren(-m,!1,-1/0),u=0),c._end>a&&c._ts&&(a=c._end),c=f;xh(l,l===Gn&&l._time>a?l._time:a,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(r){if(Gn._ts&&(a8(Gn,nb(r,Gn)),s8=Ir.frame),Ir.frame>=N4){N4+=zr.autoSleep||120;var a=Gn._first;if((!a||!a._ts)&&zr.autoSleep&&Ir._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Ir.sleep()}}},e})(gp);$r(Xs.prototype,{_lock:0,_hasPause:0,_forcing:0});var gie=function(e,n,s,r,a,l,c){var u=new pr(this._pt,e,n,0,1,D8,null,a),f=0,m=0,g,x,b,v,w,N,_,E;for(u.b=s,u.e=r,s+="",r+="",(_=~r.indexOf("random("))&&(r=mp(r)),l&&(E=[s,r],l(E,e,n),s=E[0],r=E[1]),x=s.match(f2)||[];g=f2.exec(r);)v=g[0],w=r.substring(f,g.index),b?b=(b+1)%5:w.substr(-5)==="rgba("&&(b=1),v!==x[m++]&&(N=parseFloat(x[m-1])||0,u._pt={_next:u._pt,p:w||m===1?w:",",s:N,c:v.charAt(1)==="="?th(N,v)-N:parseFloat(v)-N,m:b&&b<4?Math.round:0},f=f2.lastIndex);return u.c=f<r.length?r.substring(f,r.length):"",u.fp=c,(QI.test(r)||_)&&(u.e=0),this._pt=u,u},aj=function(e,n,s,r,a,l,c,u,f,m){ii(r)&&(r=r(a||0,e,l));var g=e[n],x=s!=="get"?s:ii(g)?f?e[n.indexOf("set")||!ii(e["get"+n.substr(3)])?n:"get"+n.substr(3)](f):e[n]():g,b=ii(g)?f?wie:R8:lj,v;if(Ji(r)&&(~r.indexOf("random(")&&(r=mp(r)),r.charAt(1)==="="&&(v=th(x,r)+(As(x)||0),(v||v===0)&&(r=v))),!m||x!==r||hS)return!isNaN(x*r)&&r!==""?(v=new pr(this._pt,e,n,+x||0,r-(x||0),typeof g=="boolean"?Sie:O8,0,b),f&&(v.fp=f),c&&v.modifier(c,this,e),this._pt=v):(!g&&!(n in e)&&tj(n,r),gie.call(this,e,n,x,r,b,u||zr.stringFilter,f))},xie=function(e,n,s,r,a){if(ii(e)&&(e=Fm(e,a,n,s,r)),!ho(e)||e.style&&e.nodeType||Os(e)||ZI(e))return Ji(e)?Fm(e,a,n,s,r):e;var l={},c;for(c in e)l[c]=Fm(e[c],a,n,s,r);return l},T8=function(e,n,s,r,a,l){var c,u,f,m;if(Mr[e]&&(c=new Mr[e]).init(a,c.rawVars?n[e]:xie(n[e],r,a,l,s),s,r,l)!==!1&&(s._pt=u=new pr(s._pt,a,e,0,1,c.render,c,0,c.priority),s!==Wu))for(f=s._ptLookup[s._targets.indexOf(a)],m=c._props.length;m--;)f[c._props[m]]=u;return c},Xl,hS,oj=function t(e,n,s){var r=e.vars,a=r.ease,l=r.startAt,c=r.immediateRender,u=r.lazy,f=r.onUpdate,m=r.runBackwards,g=r.yoyoEase,x=r.keyframes,b=r.autoRevert,v=e._dur,w=e._startAt,N=e._targets,_=e.parent,E=_&&_.data==="nested"?_.vars.targets:N,k=e._overwrite==="auto"&&!Z_,C=e.timeline,A,L,M,O,P,H,V,F,U,q,ae,B,$;if(C&&(!x||!a)&&(a="none"),e._ease=bd(a,mh.ease),e._yEase=g?j8(bd(g===!0?a:g,mh.ease)):0,g&&e._yoyo&&!e._repeat&&(g=e._yEase,e._yEase=e._ease,e._ease=g),e._from=!C&&!!r.runBackwards,!C||x&&!r.stagger){if(F=N[0]?xd(N[0]).harness:0,B=F&&r[F.prop],A=tb(r,nj),w&&(w._zTime<0&&w.progress(1),n<0&&m&&c&&!b?w.render(-1,!0):w.revert(m&&v?H0:Vne),w._lazy=0),l){if(uc(e._startAt=wi.set(N,$r({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!w&&fr(u),startAt:null,delay:0,onUpdate:f&&function(){return Pr(e,"onUpdate")},stagger:0},l))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(ps||!c&&!b)&&e._startAt.revert(H0),c&&v&&n<=0&&s<=0){n&&(e._zTime=n);return}}else if(m&&v&&!w){if(n&&(c=!1),M=$r({overwrite:!1,data:"isFromStart",lazy:c&&!w&&fr(u),immediateRender:c,stagger:0,parent:_},A),B&&(M[F.prop]=B),uc(e._startAt=wi.set(N,M)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(ps?e._startAt.revert(H0):e._startAt.render(-1,!0)),e._zTime=n,!c)t(e._startAt,pn,pn);else if(!n)return}for(e._pt=e._ptCache=0,u=v&&fr(u)||u&&!v,L=0;L<N.length;L++){if(P=N[L],V=P._gsap||sj(N)[L]._gsap,e._ptLookup[L]=q={},aS[V.id]&&rc.length&&eb(),ae=E===N?L:E.indexOf(P),F&&(U=new F).init(P,B||A,e,ae,E)!==!1&&(e._pt=O=new pr(e._pt,P,U.name,0,1,U.render,U,0,U.priority),U._props.forEach(function(X){q[X]=O}
294),U.priority&&(H=1)),!F||B)for(M in A)Mr[M]&&(U=T8(M,A,e,ae,P,E))?U.priority&&(H=1):q[M]=O=aj.call(e,P,M,"get",A[M],ae,E,0,r.stringFilter);e._op&&e._op[L]&&e.kill(P,e._op[L]),k&&e._pt&&(Xl=e,Gn.killTweensOf(P,q,e.globalTime(n)),$=!e.parent,Xl=0),e._pt&&u&&(aS[V.id]=1)}H&&L8(e),e._onInit&&e._onInit(e)}e._onUpdate=f,e._initted=(!e._op||e._pt)&&!$,x&&n<=0&&C.render(ua,!0,!0)},yie=function(e,n,s,r,a,l,c,u){var f=(e._pt&&e._ptCache||(e._ptCache={}))[n],m,g,x,b;if(!f)for(f=e._ptCache[n]=[],x=e._ptLookup,b=e._targets.length;b--;){if(m=x[b][n],m&&m.d&&m.d._pt)for(m=m.d._pt;m&&m.p!==n&&m.fp!==n;)m=m._next;if(!m)return hS=1,e.vars[n]="+=0",oj(e,c),hS=0,u?hp(n+" not eligible for reset"):1;f.push(m)}for(b=f.length;b--;)g=f[b],m=g._pt||g,m.s=(r||r===0)&&!a?r:m.s+(r||0)+l*m.c,m.c=s-m.s,g.e&&(g.e=di(s)+As(g.e)),g.b&&(g.b=m.s+As(g.b))},bie=function(e,n){var s=e[0]?xd(e[0]).harness:0,r=s&&s.aliases,a,l,c,u;if(!r)return n;a=ph({},n);for(l in r)if(l in a)for(u=r[l].split(","),c=u.length;c--;)a[u[c]]=a[l];return a},vie=function(e,n,s,r){var a=n.ease||r||"power1.inOut",l,c;
294if(Os(n))c=s[e]||(s[e]=[]),n.forEach(function(u,f){return c.push({t:f/(n.length-1)*100,v:u,e:a})});else for(l in n)c=s[l]||(s[l]=[]),l==="ease"||c.push({t:parseFloat(e),v:n[l],e:a})},Fm=function(e,n,s,r,a){return ii(e)?e.call(n,s,r,a):Ji(e)&&~e.indexOf("random(")?mp(e):e},A8=ij+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",M8={};mr(A8+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return M8[t]=1});var wi=(function(t){YI(e,t);function e(s,r,a,l){var c;typeof r=="number"&&(a.duration=r,r=a,a=null),c=t.call(this,l?r:Bm(r))||this;var u=c.vars,f=u.duration,m=u.delay,g=u.immediateRender,x=u.stagger,b=u.overwrite,v=u.keyframes,w=u.defaults,N=u.scrollTrigger,_=u.yoyoEase,E=r.parent||Gn,k=(Os(s)||ZI(s)?tl(s[0]):"length"in r)?[s]:ha(s),C,A,L,M,O,P,H,V;if(c._targets=k.length?sj(k):hp("GSAP target "+s+" not found. https://gsap.com",!zr.nullTargetWarn)||[],c._ptLookup=[],c._overwrite=b,v||x||n0(f)||n0(m)){if(r=c.vars,C=c.timeline=new Xs({data:"nested",defaults:w||{},targets:E&&E.data==="nested"?E.vars.targets:k}),C.kill(),C.parent=C._dp=Bo(c),C._start=0,x||n0(f)||n0(m)){if(M=k.length,H=x&&p8(x),ho(x))for(O in x)~A8.indexOf(O)&&(V||(V={}),V[O]=x[O]);for(A=0;A<M;A++)L=tb(r,M8),L.stagger=0,_&&(L.yoyoEase=_),V&&ph(L,V),P=k[A],L.duration=+Fm(f,Bo(c),A,P,k),L.delay=(+Fm(m,Bo(c),A,P,k)||0)-c._delay,!x&&M===1&&L.delay&&(c._delay=m=L.delay,c._start+=m,L.delay=0),C.to(P,L,H?H(A,P,k):0),C._ease=Dt.none;C.duration()?f=m=0:c.timeline=0}else if(v){Bm($r(C.vars.defaults,{ease:"none"})),C._ease=bd(v.ease||r.ease||"none");var F=0,U,q,ae;if(Os(v))v.forEach(function(B){return C.to(k,B,">")}),C.duration();else{L={};for(O in v)O==="ease"||O==="easeEach"||vie(O,v[O],L,v.easeEach);for(O in L)for(U=L[O].sort(function(B,$){return B.t-$.t}),F=0,A=0;A<U.length;A++)q=U[A],ae={ease:q.e,duration:(q.t-(A?U[A-1].t:0))/100*f},ae[O]=q.v,C.to(k,ae,F),F+=ae.duration;C.duration()<f&&C.to({},{duration:f-C.duration()})}}f||c.duration(f=C.duration())}else c.timeline=0;return b===!0&&!Z_&&(Xl=Bo(c),Gn.killTweensOf(k),Xl=0),io(E,Bo(c),a),r.reversed&&c.reverse(),r.paused&&c.paused(!0),(g||!f&&!v&&c._start===Si(E._time)&&fr(g)&&Zne(Bo(c))&&E.data!=="nested")&&(c._tTime=-pn,c.render(Math.max(0,-m)||0)),N&&u8(Bo(c),N),c}var n=e.prototype;return n.render=function(r,a,l){var c=this._time,u=this._tDur,f=this._dur,m=r<0,g=r>u-pn&&!m?u:r<pn?0:r,x,b,v,w,N,_,E,k,C;if(!f)Qne(this,r,a,l);else if(g!==this._tTime||!r||l||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(x=g,k=this.timeline,this._repeat){if(w=f+this._rDelay,this._repeat<-1&&m)return this.totalTime(w*100+r,a,l);if(x=Si(g%w),g===u?(v=this._repeat,x=f):(N=Si(g/w),v=~~N,v&&v===N?(x=f,v--):x>f&&(x=f)),_=this._yoyo&&v&1,_&&(C=this._yEase,x=f-x),N=gh(this._tTime,w),x===c&&!l&&this._initted&&v===N)return this._tTime=g,this;v!==N&&(k&&this._yEase&&E8(k,_),this.vars.repeatRefresh&&!_&&!this._lock&&x!==w&&this._initted&&(this._lock=l=1,this.render(Si(w*v),!0).invalidate()._lock=0))}if(!this._initted){if(h8(this,m?r:x,l,a,g))return this._tTime=0,this;if(c!==this._time&&!(l&&this.vars.repeatRefresh&&v!==N))return this;if(f!==this._dur)return this.render(r,a,l)}if(this._tTime=g,this._time=x,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=E=(C||this._ease)(x/f),this._from&&(this.ratio=E=1-E),!c&&g&&!a&&!N&&(Pr(this,"onStart"),this._tTime!==g))return this;for(b=this._pt;b;)b.r(E,b.d),b=b._next;k&&k.render(r<0?r:k._dur*k._ease(x/this._dur),a,l)||this._startAt&&(this._zTime=r),this._onUpdate&&!a&&(m&&oS(this,r,a,l),Pr(this,"onUpdate")),this._repeat&&v!==N&&this.vars.onRepeat&&!a&&this.parent&&Pr(this,"onRepeat"),(g===this._tDur||!g)&&this._tTime===g&&(m&&!this._onUpdate&&oS(this,r,!0,!0),(r||!f)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&uc(this,1),!a&&!(m&&!c)&&(g||c||_)&&(Pr(this,g===u?"onComplete":"onReverseComplete",!0),this._prom&&!(g<u&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),t.prototype.invalidate.call(this,r)},n.resetTo=function(r,a,l,c,u){pp||Ir.wake(),this._ts||this.play();
294var f=Math.min(this._dur,(this._dp._time-this._start)*this._ts),m;return this._initted||oj(this,f),m=this._ease(f/this._dur),yie(this,r,a,l,c,m,f,u)?this.resetTo(r,a,l,c,1):(Wb(this,0),this.parent||c8(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(r,a){if(a===void 0&&(a="all"),!r&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?cm(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ps),this;if(this.timeline){var l=this.timeline.totalDuration();return this.timeline.killTweensOf(r,a,Xl&&Xl.vars.overwrite!==!0)._first||cm(this),this.parent&&l!==this.timeline.totalDuration()&&xh(this,this._dur*this.timeline._tDur/l,0,1),this}var c=this._targets,u=r?ha(r):c,f=this._ptLookup,m=this._pt,g,x,b,v,w,N,_;if((!a||a==="all")&&Yne(c,u))return a==="all"&&(this._pt=0),cm(this);for(g=this._op=this._op||[],a!=="all"&&(Ji(a)&&(w={},mr(a,function(E){return w[E]=1}),a=w),a=bie(c,a)),_=c.length;_--;)if(~u.indexOf(c[_])){x=f[_],a==="all"?(g[_]=a,v=x,b={}):(b=g[_]=g[_]||{},v=a);for(w in v)N=x&&x[w],N&&((!("kill"in N.d)||N.d.kill(w)===!0)&&$b(this,N,"_pt"),delete x[w]),b!=="all"&&(b[w]=1)}return this._initted&&!this._pt&&m&&cm(this),this},e.to=function(r,a){return new e(r,a,arguments[2])},e.from=function(r,a){return zm(1,arguments)},e.delayedCall=function(r,a,l,c){return new e(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:a,onReverseComplete:a,onCompleteParams:l,onReverseCompleteParams:l,callbackScope:c})},e.fromTo=function(r,a,l){return zm(2,arguments)},e.set=function(r,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new e(r,a)},e.killTweensOf=function(r,a,l){return Gn.killTweensOf(r,a,l)},e})(gp);$r(wi.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});mr("staggerTo,staggerFrom,staggerFromTo",function(t){wi[t]=function(){var e=new Xs,n=cS.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var lj=function(e,n,s){return e[n]=s},R8=function(e,n,s){return e[n](s)},wie=function(e,n,s,r){return e[n](r.fp,s)},Nie=function(e,n,s){return e.setAttribute(n,s)},cj=function(e,n){return ii(e[n])?R8:J_(e[n])&&e.setAttribute?Nie:lj},O8=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},Sie=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},D8=function(e,n){var s=n._pt,r="";if(!e&&n.b)r=n.b;else if(e===1&&n.e)r=n.e;else{for(;s;)r=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+r,s=s._next;r+=n.c}n.set(n.t,n.p,r,n)},dj=function(e,n){for(var s=n._pt;s;)s.r(e,s.d),s=s._next},_ie=function(e,n,s,r){for(var a=this._pt,l;a;)l=a._next,a.p===r&&a.modifier(e,n,s),a=l},jie=function(e){for(var n=this._pt,s,r;n;)r=n._next,n.p===e&&!n.op||n.op===e?$b(this,n,"_pt"):n.dep||(s=1),n=r;return!s},Eie=function(e,n,s,r){r.mSet(e,n,r.m.call(r.tween,s,r.mt),r)},L8=function(e){for(var n=e._pt,s,r,a,l;n;){for(s=n._next,r=a;r&&r.pr>n.pr;)r=r._next;(n._prev=r?r._prev:l)?n._prev._next=n:a=n,(n._next=r)?r._prev=n:l=n,n=s}e._pt=a},pr=(function(){function t(n,s,r,a,l,c,u,f,m){this.t=s,this.s=a,this.c=l,this.p=r,this.r=c||O8,this.d=u||this,this.set=f||lj,this.pr=m||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(s,r,a){this.mSet=this.mSet||this.set,this.set=Eie,this.m=s,this.mt=a,this.tween=r},t})();mr(ij+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return nj[t]=1});Hr.TweenMax=Hr.TweenLite=wi;Hr.TimelineLite=Hr.TimelineMax=Xs;Gn=new Xs({sortChildren:!1,defaults:mh,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});zr.stringFilter=_8;var vd=[],U0={},kie=[],C4=0,Cie=0,y2=function(e){return(U0[e]||kie).map(function(n){return n()})},fS=function(){var e=Date.now(),n=[];e-C4>2&&(y2("matchMediaInit"),vd.forEach(function(s){var r=s.queries,a=s.conditions,l,c,u,f;for(c in r)l=eo.matchMedia(r[c]).matches,l&&(u=1),l!==a[c]&&(a[c]=l,f=1);f&&(s.revert(),u&&n.push(s))}),y2("matchMediaRevert"),n.forEach(function(s){return s.onMatch(s,function(r){return s.add(null,r)}
294)}),C4=e,y2("matchMedia"))},I8=(function(){function t(n,s){this.selector=s&&dS(s),this.data=[],this._r=[],this.isReverted=!1,this.id=Cie++,n&&this.add(n)}var e=t.prototype;return e.add=function(s,r,a){ii(s)&&(a=r,r=s,s=ii);var l=this,c=function(){var f=Bn,m=l.selector,g;return f&&f!==l&&f.data.push(l),a&&(l.selector=dS(a)),Bn=l,g=r.apply(l,arguments),ii(g)&&l._r.push(g),Bn=f,l.selector=m,l.isReverted=!1,g};return l.last=c,s===ii?c(l,function(u){return l.add(null,u)}):s?l[s]=c:c},e.ignore=function(s){var r=Bn;Bn=null,s(this),Bn=r},e.getTweens=function(){var s=[];return this.data.forEach(function(r){return r instanceof t?s.push.apply(s,r.getTweens()):r instanceof wi&&!(r.parent&&r.parent.data==="nested")&&s.push(r)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,r){var a=this;if(s?(function(){for(var c=a.getTweens(),u=a.data.length,f;u--;)f=a.data[u],f.data==="isFlip"&&(f.revert(),f.getChildren(!0,!0,!1).forEach(function(m){return c.splice(c.indexOf(m),1)}));for(c.map(function(m){return{g:m._dur||m._delay||m._sat&&!m._sat.vars.immediateRender?m.globalTime(0):-1/0,t:m}}).sort(function(m,g){return g.g-m.g||-1/0}).forEach(function(m){return m.t.revert(s)}),u=a.data.length;u--;)f=a.data[u],f instanceof Xs?f.data!=="nested"&&(f.scrollTrigger&&f.scrollTrigger.revert(),f.kill()):!(f instanceof wi)&&f.revert&&f.revert(s);a._r.forEach(function(m){return m(s,a)}),a.isReverted=!0})():this.data.forEach(function(c){return c.kill&&c.kill()}),this.clear(),r)for(var l=vd.length;l--;)vd[l].id===this.id&&vd.splice(l,1)},e.revert=function(s){this.kill(s||{})},t})(),Tie=(function(){function t(n){this.contexts=[],this.scope=n,Bn&&Bn.data.push(this)}var e=t.prototype;return e.add=function(s,r,a){ho(s)||(s={matches:s});var l=new I8(0,a||this.scope),c=l.conditions={},u,f,m;Bn&&!l.selector&&(l.selector=Bn.selector),this.contexts.push(l),r=l.add("onMatch",r),l.queries=s;for(f in s)f==="all"?m=1:(u=eo.matchMedia(s[f]),u&&(vd.indexOf(l)<0&&vd.push(l),(c[f]=u.matches)&&(m=1),u.addListener?u.addListener(fS):u.addEventListener("change",fS)));return m&&r(l,function(g){return l.add(null,g)}),this},e.revert=function(s){this.kill(s||{})}
294,e.kill=function(s){this.contexts.forEach(function(r){return r.kill(s,!0)})},t})(),ib={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];n.forEach(function(r){return w8(r)})},timeline:function(e){return new Xs(e)},getTweensOf:function(e,n){return Gn.getTweensOf(e,n)},getProperty:function(e,n,s,r){Ji(e)&&(e=ha(e)[0]);var a=xd(e||{}).get,l=s?l8:o8;return s==="native"&&(s=""),e&&(n?l((Mr[n]&&Mr[n].get||a)(e,n,s,r)):function(c,u,f){return l((Mr[c]&&Mr[c].get||a)(e,c,u,f))})},quickSetter:function(e,n,s){if(e=ha(e),e.length>1){var r=e.map(function(m){return xr.quickSetter(m,n,s)}),a=r.length;return function(m){for(var g=a;g--;)r[g](m)}}e=e[0]||{};var l=Mr[n],c=xd(e),u=c.harness&&(c.harness.aliases||{})[n]||n,f=l?function(m){var g=new l;Wu._pt=0,g.init(e,s?m+s:m,Wu,0,[e]),g.render(1,g),Wu._pt&&dj(1,Wu)}:c.set(e,u);return l?f:function(m){return f(e,u,s?m+s:m,c,1)}},quickTo:function(e,n,s){var r,a=xr.to(e,$r((r={},r[n]="+=0.1",r.paused=!0,r.stagger=0,r),s||{})),l=function(u,f,m){return a.resetTo(n,u,f,m)};return l.tween=a,l},isTweening:function(e){return Gn.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=bd(e.ease,mh.ease)),S4(mh,e||{})},config:function(e){return S4(zr,e||{})},registerEffect:function(e){var n=e.name,s=e.effect,r=e.plugins,a=e.defaults,l=e.extendTimeline;(r||"").split(",").forEach(function(c){return c&&!Mr[c]&&!Hr[c]&&hp(n+" effect requires "+c+" plugin.")}),m2[n]=function(c,u,f){return s(ha(c),$r(u||{},a),f)},l&&(Xs.prototype[n]=function(c,u,f){return this.add(m2[n](c,ho(u)?u:(f=u)&&{},this),f)})},registerEase:function(e,n){Dt[e]=bd(n)},parseEase:function(e,n){return arguments.length?bd(e,n):Dt},getById:function(e){return Gn.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var s=new Xs(e),r,a;for(s.smoothChildTiming=fr(e.smoothChildTiming),Gn.remove(s),s._dp=0,s._time=s._tTime=Gn._time,r=Gn._first;r;)a=r._next,(n||!(!r._dur&&r instanceof wi&&r.vars.onComplete===r._targets[0]))&&io(s,r,r._start-r._delay),r=a;return io(Gn,s,0),s},context:function(e,n){return e?new I8(e,n):Bn},matchMedia:function(e){return new Tie(e)},matchMediaRefresh:function(){return vd.forEach(function(e){var n=e.conditions,s,r;for(r in n)n[r]&&(n[r]=!1,s=1);s&&e.revert()})||fS()},addEventListener:function(e,n){var s=U0[e]||(U0[e]=[]);~s.indexOf(n)||s.push(n)},removeEventListener:function(e,n){var s=U0[e],r=s&&s.indexOf(n);r>=0&&s.splice(r,1)},utils:{wrap:oie,wrapYoyo:lie,distribute:p8,random:x8,snap:g8,normalize:aie,getUnit:As,clamp:nie,splitColor:N8,toArray:ha,selector:dS,mapRange:b8,pipe:sie,unitize:rie,interpolate:cie,shuffle:m8},install:n8,effects:m2,ticker:Ir,updateRoot:Xs.updateRoot,plugins:Mr,globalTimeline:Gn,core:{PropTween:pr,globals:i8,Tween:wi,Timeline:Xs,Animation:gp,getCache:xd,_removeLinkedListItem:$b,reverting:function(){return ps},context:function(e){return e&&Bn&&(Bn.data.push(e),e._ctx=Bn),Bn},suppressOverwrites:function(e){return Z_=e}}};mr("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return ib[t]=wi[t]});Ir.add(Xs.updateRoot);Wu=ib.to({},{duration:0});var Aie=function(e,n){for(var s=e._pt;s&&s.p!==n&&s.op!==n&&s.fp!==n;)s=s._next;return s},Mie=function(e,n){var s=e._targets,r,a,l;for(r in n)for(a=s.length;a--;)l=e._ptLookup[a][r],l&&(l=l.d)&&(l._pt&&(l=Aie(l,r)),l&&l.modifier&&l.modifier(n[r],e,s[a],r))},b2=function(e,n){return{name:e,headless:1,rawVars:1,init:function(r,a,l){l._onInit=function(c){var u,f;if(Ji(a)&&(u={},mr(a,function(m){return u[m]=1}),a=u),n){u={};for(f in a)u[f]=n(a[f]);a=u}Mie(c,a)}}}},xr=ib.registerPlugin({name:"attr",init:function(e,n,s,r,a){var l,c,u;this.tween=s;for(l in n)u=e.getAttribute(l)||"",c=this.add(e,"setAttribute",(u||0)+"",n[l],r,a,0,0,l),c.op=l,c.b=u,this._props.push(l)},render:function(e,n){for(var s=n._pt;s;)ps?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",headless:1,init:function(e,n){for(var s=n.length;s--;)this.add(e,s,e[s]||0,n[s],0,0,0,0,0,1)}},b2("roundProps",uS),b2("modifiers"),b2("snap",g8))||ib;wi.version=Xs.version=xr.version="3.13.0";t8=1;Q_()&&yh();Dt.Power0;Dt.Power1;Dt.Power2;Dt.Power3;Dt.Power4;Dt.Linear;Dt.Quad;Dt.Cubic;Dt.Quart;Dt.Quint;Dt.Strong;Dt.Elastic;Dt.Back;Dt.SteppedEase;Dt.Bounce;Dt.Sine;Dt.Expo;Dt.Circ;/*! 295 * CSSPlugin 3.13.0 296 * https://gsap.com 297 * 298 * Copyright 2008-2025, GreenSock. All rights reserved. 299 * Subject to the terms at https://gsap.com/standard-license 300 * @author: Jack Doyle, [email protected] 301*/var T4,Zl,nh,uj,sd,A4,hj,Rie=function(){return typeof window<"u"},nl={},Vc=180/Math.PI,ih=Math.PI/180,_u=Math.atan2,M4=1e8,fj=/([A-Z])/g,Oie=/(left|right|width|margin|padding|x)/i,Die=/[\s,\(]\S/,ao={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},mS=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Lie=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Iie=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},Pie=function(e,n){var s=n.s+n.c*e;n.set(n.t,n.p,~~(s+(s<0?-.5:.5))+n.u,n)},P8=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)}
301,B8=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Bie=function(e,n,s){return e.style[n]=s},zie=function(e,n,s){return e.style.setProperty(n,s)},Fie=function(e,n,s){return e._gsap[n]=s},Hie=function(e,n,s){return e._gsap.scaleX=e._gsap.scaleY=s},$ie=function(e,n,s,r,a){var l=e._gsap;l.scaleX=l.scaleY=s,l.renderTransform(a,l)},Uie=function(e,n,s,r,a){var l=e._gsap;l[n]=s,l.renderTransform(a,l)},qn="transform",gr=qn+"Origin",Wie=function t(e,n){var s=this,r=this.target,a=r.style,l=r._gsap;if(e in nl&&a){if(this.tfm=this.tfm||{},e!=="transform")e=ao[e]||e,~e.indexOf(",")?e.split(",").forEach(function(c){return s.tfm[c]=zo(r,c)}):this.tfm[e]=l.x?l[e]:zo(r,e),e===gr&&(this.tfm.zOrigin=l.zOrigin);else return ao.transform.split(",").forEach(function(c){return t.call(s,c,n)});if(this.props.indexOf(qn)>=0)return;l.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(gr,n,"")),e=qn}(a||n)&&this.props.push(e,n,a[e])},z8=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Vie=function(){var e=this.props,n=this.target,s=n.style,r=n._gsap,a,l;for(a=0;a<e.length;a+=3)e[a+1]?e[a+1]===2?n[e[a]](e[a+2]):n[e[a]]=e[a+2]:e[a+2]?s[e[a]]=e[a+2]:s.removeProperty(e[a].substr(0,2)==="--"?e[a]:e[a].replace(fj,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)r[l]=this.tfm[l];r.svg&&(r.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),a=hj(),(!a||!a.isStart)&&!s[qn]&&(z8(s),r.zOrigin&&s[gr]&&(s[gr]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},F8=function(e,n){var s={target:e,props:[],revert:Vie,save:Wie};return e._gsap||xr.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(r){return s.save(r)}),s},H8,pS=function(e,n){var s=Zl.createElementNS?Zl.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Zl.createElement(e);return s&&s.style?s:Zl.createElement(e)},fa=function t(e,n,s){var r=getComputedStyle(e);return r[n]||r.getPropertyValue(n.replace(fj,"-$1").toLowerCase())||r.getPropertyValue(n)||!s&&t(e,bh(n)||n,1)||""},R4="O,Moz,ms,Ms,Webkit".split(","),bh=function(e,n,s){var r=n||sd,a=r.style,l=5;if(e in a&&!s)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(R4[l]+e in a););return l<0?null:(l===3?"ms":l>=0?R4[l]:"")+e},gS=function(){Rie()&&window.document&&(T4=window,Zl=T4.document,nh=Zl.documentElement,sd=pS("div")||{style:{}},pS("div"),qn=bh(qn),gr=qn+"Origin",sd.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",H8=!!bh("perspective"),hj=xr.core.reverting,uj=1)},O4=function(e){var n=e.ownerSVGElement,s=pS("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),a;r.style.display="block",s.appendChild(r),nh.appendChild(s);try{a=r.getBBox()}catch{}return s.removeChild(r),nh.removeChild(s),a},D4=function(e,n){for(var s=n.length;s--;)if(e.hasAttribute(n[s]))return e.getAttribute(n[s])},$8=function(e){var n,s;try{n=e.getBBox()}catch{n=O4(e),s=1}return n&&(n.width||n.height)||s||(n=O4(e)),n&&!n.width&&!n.x&&!n.y?{x:+D4(e,["x","cx","x1"])||0,y:+D4(e,["y","cy","y1"])||0,width:0,height:0}:n},U8=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&$8(e))},Od=function(e,n){if(n){var s=e.style,r;n in nl&&n!==gr&&(n=qn),s.removeProperty?(r=n.substr(0,2),(r==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),s.removeProperty(r==="--"?n:n.replace(fj,"-$1").toLowerCase())):s.removeAttribute(n)}},Jl=function(e,n,s,r,a,l){var c=new pr(e._pt,n,s,0,1,l?B8:P8);return e._pt=c,c.b=r,c.e=a,e._props.push(s),c},L4={deg:1,rad:1,turn:1},Gie={grid:1,flex:1},hc=function t(e,n,s,r){var a=parseFloat(s)||0,l=(s+"").trim().substr((a+"").length)||"px",c=sd.style,u=Oie.test(n),f=e.tagName.toLowerCase()==="svg",m=(f?"client":"offset")+(u?"Width":"Height"),g=100,x=r==="px",b=r==="%",v,w,N,_;if(r===l||!a||L4[r]||L4[l])return a;if(l!=="px"&&!x&&(a=t(e,n,s,"px")),_=e.getCTM&&U8(e),(b||l==="%")&&(nl[n]||~n.indexOf("adius")))return v=_?e.getBBox()[u?"width":"height"]:e[m],di(b?a/v*g:a/100*v);if(c[u?"width":"height"]=g+(x?l:r),w=r!=="rem"&&~n.indexOf("adius")||r==="em"&&e.appendChild&&!f?e:e.parentNode,_&&(w=(e.ownerSVGElement||{}).parentNode),(!w||w===Zl||!w.appendChild)&&(w=Zl.body),N=w._gsap,N&&b&&N.width&&u&&N.time===Ir.time&&!N.uncache)return di(a/N.width*g);if(b&&(n==="height"||n==="width")){var E=e.style[n];e.style[n]=g+r,v=e[m],E?e.style[n]=E:Od(e,n)}
301else(b||l==="%")&&!Gie[fa(w,"display")]&&(c.position=fa(e,"position")),w===e&&(c.position="static"),w.appendChild(sd),v=sd[m],w.removeChild(sd),c.position="absolute";return u&&b&&(N=xd(w),N.time=Ir.time,N.width=w[m]),di(x?v*a/g:v&&a?g/v*a:0)},zo=function(e,n,s,r){var a;return uj||gS(),n in ao&&n!=="transform"&&(n=ao[n],~n.indexOf(",")&&(n=n.split(",")[0])),nl[n]&&n!=="transform"?(a=yp(e,r),a=n!=="transformOrigin"?a[n]:a.svg?a.origin:rb(fa(e,gr))+" "+a.zOrigin+"px"):(a=e.style[n],(!a||a==="auto"||r||~(a+"").indexOf("calc("))&&(a=sb[n]&&sb[n](e,n,s)||fa(e,n)||r8(e,n)||(n==="opacity"?1:0))),s&&!~(a+"").trim().indexOf(" ")?hc(e,n,a,s)+s:a},qie=function(e,n,s,r){if(!s||s==="none"){var a=bh(n,e,1),l=a&&fa(e,a,1);l&&l!==s?(n=a,s=l):n==="borderColor"&&(s=fa(e,"borderTopColor"))}var c=new pr(this._pt,e.style,n,0,1,D8),u=0,f=0,m,g,x,b,v,w,N,_,E,k,C,A;if(c.b=s,c.e=r,s+="",r+="",r.substring(0,6)==="var(--"&&(r=fa(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(w=e.style[n],e.style[n]=r,r=fa(e,n)||r,w?e.style[n]=w:Od(e,n)),m=[s,r],_8(m),s=m[0],r=m[1],x=s.match(Uu)||[],A=r.match(Uu)||[],A.length){for(;g=Uu.exec(r);)N=g[0],E=r.substring(u,g.index),v?v=(v+1)%5:(E.substr(-5)==="rgba("||E.substr(-5)==="hsla(")&&(v=1),N!==(w=x[f++]||"")&&(b=parseFloat(w)||0,C=w.substr((b+"").length),N.charAt(1)==="="&&(N=th(b,N)+C),_=parseFloat(N),k=N.substr((_+"").length),u=Uu.lastIndex-k.length,k||(k=k||zr.units[n]||C,u===r.length&&(r+=k,c.e+=k)),C!==k&&(b=hc(e,n,w,k)||0),c._pt={_next:c._pt,p:E||f===1?E:",",s:b,c:_-b,m:v&&v<4||n==="zIndex"?Math.round:0});c.c=u<r.length?r.substring(u,r.length):""}else c.r=n==="display"&&r==="none"?B8:P8;return QI.test(r)&&(c.e=0),this._pt=c,c},I4={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Kie=function(e){var n=e.split(" "),s=n[0],r=n[1]||"50%";return(s==="top"||s==="bottom"||r==="left"||r==="right")&&(e=s,s=r,r=e),n[0]=I4[s]||s,n[1]=I4[r]||r,n.join(" ")},Yie=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var s=n.t,r=s.style,a=n.u,l=s._gsap,c,u,f;if(a==="all"||a===!0)r.cssText="",u=1;else for(a=a.split(","),f=a.length;--f>-1;)c=a[f],nl[c]&&(u=1,c=c==="transformOrigin"?gr:qn),Od(s,c);u&&(Od(s,qn),l&&(l.svg&&s.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",yp(s,1),l.uncache=1,z8(r)))}},sb={clearProps:function(e,n,s,r,a){if(a.data!=="isFromStart"){var l=e._pt=new pr(e._pt,n,s,0,0,Yie);return l.u=r,l.pr=-10,l.tween=a,e._props.push(s),1}}},xp=[1,0,0,1,0,0],W8={},V8=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},P4=function(e){var n=fa(e,qn);return V8(n)?xp:n.substr(7).match(JI).map(di)},mj=function(e,n){var s=e._gsap||xd(e),r=e.style,a=P4(e),l,c,u,f;return s.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,a=[u.a,u.b,u.c,u.d,u.e,u.f],a.join(",")==="1,0,0,1,0,0"?xp:a):(a===xp&&!e.offsetParent&&e!==nh&&!s.svg&&(u=r.display,r.display="block",l=e.parentNode,(!l||!e.offsetParent&&!e.getBoundingClientRect().width)&&(f=1,c=e.nextElementSibling,nh.appendChild(e)),a=P4(e),u?r.display=u:Od(e,"display"),f&&(c?l.insertBefore(e,c):l?l.appendChild(e):nh.removeChild(e))),n&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},xS=function(e,n,s,r,a,l){var c=e._gsap,u=a||mj(e,!0),f=c.xOrigin||0,m=c.yOrigin||0,g=c.xOffset||0,x=c.yOffset||0,b=u[0],v=u[1],w=u[2],N=u[3],_=u[4],E=u[5],k=n.split(" "),C=parseFloat(k[0])||0,A=parseFloat(k[1])||0,L,M,O,P;s?u!==xp&&(M=b*N-v*w)&&(O=C*(N/M)+A*(-w/M)+(w*E-N*_)/M,P=C*(-v/M)+A*(b/M)-(b*E-v*_)/M,C=O,A=P):(L=$8(e),C=L.x+(~k[0].indexOf("%")?C/100*L.width:C),A=L.y+(~(k[1]||k[0]).indexOf("%")?A/100*L.height:A)),r||r!==!1&&c.smooth?(_=C-f,E=A-m,c.xOffset=g+(_*b+E*w)-_,c.yOffset=x+(_*v+E*N)-E):c.xOffset=c.yOffset=0,c.xOrigin=C,c.yOrigin=A,c.smooth=!!r,c.origin=n,c.originIsAbsolute=!!s,e.style[gr]="0px 0px",l&&(Jl(l,c,"xOrigin",f,C),Jl(l,c,"yOrigin",m,A),Jl(l,c,"xOffset",g,c.xOffset),Jl(l,c,"yOffset",x,c.yOffset)),e.setAttribute("data-svg-origin",C+" "+A)},yp=function(e,n){var s=e._gsap||new C8(e);if("x"in s&&!n&&!s.uncache)return s;var r=e.style,a=s.scaleX<0,l="px",c="deg",u=getComputedStyle(e),f=fa(e,gr)||"0",m,g,x,b,v,w,N,_,E,k,C,A,L,M,O,P,H,V,F,U,q,ae,B,$,X,xe,I,Z,le,fe,we,Ie;return m=g=x=w=N=_=E=k=C=0,b=v=1,s.svg=!!(e.getCTM&&U8(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(r[qn]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[qn]!=="none"?u[qn]:"")),r.scale=r.rotate=r.translate="none"),M=mj(e,s.svg),s.svg&&(s.uncache?(X=e.getBBox(),f=s.xOrigin-X.x+"px "+(s.yOrigin-X.y)+"px",$=""):$=!n&&e.getAttribute("data-svg-origin"),xS(e,$||f,!!$||s.originIsAbsolute,s.smooth!==!1,M)),A=s.xOrigin||0,L=s.yOrigin||0,M!==xp&&(V=M[0],F=M[1],U=M[2],q=M[3],m=ae=M[4],g=B=M[5],M.length===6?(b=Math.sqrt(V*V+F*F),v=Math.sqrt(q*q+U*U),w=V||F?_u(F,V)*Vc:0,E=U||q?_u(U,q)*Vc+w:0,E&&(v*=Math.abs(Math.cos(E*ih))),s.svg&&(m-=A-(A*V+L*U),g-=L-(A*F+L*q))):(Ie=M[6],fe=M[7],I=M[8],Z=M[9],le=M[10],we=M[11],m=M[12],g=M[13],x=M[14],O=_u(Ie,le),N=O*Vc,O&&(P=Math.cos(-O),H=Math.sin(-O),$=ae*P+I*H,X=B*P+Z*H,xe=Ie*P+le*H,I=ae*-H+I*P,Z=B*-H+Z*P,le=Ie*-H+le*P,we=fe*-H+we*P,ae=$,B=X,Ie=xe),O=_u(-U,le),_=O*Vc,O&&(P=Math.cos(-O),H=Math.sin(-O),$=V*P-I*H,X=F*P-Z*H,xe=U*P-le*H,we=q*H+we*P,V=$,F=X,U=xe),O=_u(F,V),w=O*Vc,O&&(P=Math.cos(O),H=Math.sin(O),$=V*P+F*H,X=ae*P+B*H,F=F*P-V*H,B=B*P-ae*H,V=$,ae=X),N&&Math.abs(N)+Math.abs(w)>359.9&&(N=w=0,_=180-_),b=di(Math.sqrt(V*V+F*F+U*U)),v=di(Math.sqrt(B*B+Ie*Ie)),O=_u(ae,B),E=Math.abs(O)>2e-4?O*Vc:0,C=we?1/(we<0?-we:we):0),s.svg&&($=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!V8(fa(e,qn)),$&&e.setAttribute("transform",$))),Math.abs(E)>90&&Math.abs(E)<270&&(a?(b*=-1,E+=w<=0?180:-180,w+=w<=0?180:-180):(v*=-1,E+=E<=0?180:-180)),n=n||s.uncache,s.x=m-((s.xPercent=m&&(!n&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-m)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+l,s.y=g-((s.yPercent=g&&(!n&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-g)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+l,s.z=x+l,s.scaleX=di(b),s.scaleY=di(v),s.rotation=di(w)+c,s.rotationX=di(N)+c,s.rotationY=di(_)+c,s.skewX=E+c,s.skewY=k+c,s.transformPerspective=C+l,(s.zOrigin=parseFloat(f.split(" ")[2])||!n&&s.zOrigin||0)&&(r[gr]=rb(f)),s.xOffset=s.yOffset=0,s.force3D=zr.force3D,s.renderTransform=s.svg?Zie:H8?G8:Xie,s.uncache=0,s},rb=function(e){return(e=e.split(" "))[0]+" "+e[1]},v2=function(e,n,s){var r=As(n);return di(parseFloat(n)+parseFloat(hc(e,"x",s+"px",r)))+r}
301,Xie=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,G8(e,n)},Fc="0deg",Wf="0px",Hc=") ",G8=function(e,n){var s=n||this,r=s.xPercent,a=s.yPercent,l=s.x,c=s.y,u=s.z,f=s.rotation,m=s.rotationY,g=s.rotationX,x=s.skewX,b=s.skewY,v=s.scaleX,w=s.scaleY,N=s.transformPerspective,_=s.force3D,E=s.target,k=s.zOrigin,C="",A=_==="auto"&&e&&e!==1||_===!0;if(k&&(g!==Fc||m!==Fc)){var L=parseFloat(m)*ih,M=Math.sin(L),O=Math.cos(L),P;L=parseFloat(g)*ih,P=Math.cos(L),l=v2(E,l,M*P*-k),c=v2(E,c,-Math.sin(L)*-k),u=v2(E,u,O*P*-k+k)}N!==Wf&&(C+="perspective("+N+Hc),(r||a)&&(C+="translate("+r+"%, "+a+"%) "),(A||l!==Wf||c!==Wf||u!==Wf)&&(C+=u!==Wf||A?"translate3d("+l+", "+c+", "+u+") ":"translate("+l+", "+c+Hc),f!==Fc&&(C+="rotate("+f+Hc),m!==Fc&&(C+="rotateY("+m+Hc),g!==Fc&&(C+="rotateX("+g+Hc),(x!==Fc||b!==Fc)&&(C+="skew("+x+", "+b+Hc),(v!==1||w!==1)&&(C+="scale("+v+", "+w+Hc),E.style[qn]=C||"translate(0, 0)"},Zie=function(e,n){var s=n||this,r=s.xPercent,a=s.yPercent,l=s.x,c=s.y,u=s.rotation,f=s.skewX,m=s.skewY,g=s.scaleX,x=s.scaleY,b=s.target,v=s.xOrigin,w=s.yOrigin,N=s.xOffset,_=s.yOffset,E=s.forceCSS,k=parseFloat(l),C=parseFloat(c),A,L,M,O,P;u=parseFloat(u),f=parseFloat(f),m=parseFloat(m),m&&(m=parseFloat(m),f+=m,u+=m),u||f?(u*=ih,f*=ih,A=Math.cos(u)*g,L=Math.sin(u)*g,M=Math.sin(u-f)*-x,O=Math.cos(u-f)*x,f&&(m*=ih,P=Math.tan(f-m),P=Math.sqrt(1+P*P),M*=P,O*=P,m&&(P=Math.tan(m),P=Math.sqrt(1+P*P),A*=P,L*=P)),A=di(A),L=di(L),M=di(M),O=di(O)):(A=g,O=x,L=M=0),(k&&!~(l+"").indexOf("px")||C&&!~(c+"").indexOf("px"))&&(k=hc(b,"x",l,"px"),C=hc(b,"y",c,"px")),(v||w||N||_)&&(k=di(k+v-(v*A+w*M)+N),C=di(C+w-(v*L+w*O)+_)),(r||a)&&(P=b.getBBox(),k=di(k+r/100*P.width),C=di(C+a/100*P.height)),P="matrix("+A+","+L+","+M+","+O+","+k+","+C+")",b.setAttribute("transform",P),E&&(b.style[qn]=P)},Jie=function(e,n,s,r,a){var l=360,c=Ji(a),u=parseFloat(a)*(c&&~a.indexOf("rad")?Vc:1),f=u-r,m=r+f+"deg",g,x;return c&&(g=a.split("_")[1],g==="short"&&(f%=l,f!==f%(l/2)&&(f+=f<0?l:-l)),g==="cw"&&f<0?f=(f+l*M4)%l-~~(f/l)*l:g==="ccw"&&f>0&&(f=(f-l*M4)%l-~~(f/l)*l)),e._pt=x=new pr(e._pt,n,s,r,f,Lie),x.e=m,x.u="deg",e._props.push(s),x},B4=function(e,n){for(var s in n)e[s]=n[s];return e},Qie=function(e,n,s){var r=B4({},s._gsap),a="perspective,force3D,transformOrigin,svgOrigin",l=s.style,c,u,f,m,g,x,b,v;r.svg?(f=s.getAttribute("transform"),s.setAttribute("transform",""),l[qn]=n,c=yp(s,1),Od(s,qn),s.setAttribute("transform",f)):(f=getComputedStyle(s)[qn],l[qn]=n,c=yp(s,1),l[qn]=f);for(u in nl)f=r[u],m=c[u],f!==m&&a.indexOf(u)<0&&(b=As(f),v=As(m),g=b!==v?hc(s,u,f,v):parseFloat(f),x=parseFloat(m),e._pt=new pr(e._pt,c,u,g,x-g,mS),e._pt.u=v||0,e._props.push(u));B4(c,r)};mr("padding,margin,Width,Radius",function(t,e){var n="Top",s="Right",r="Bottom",a="Left",l=(e<3?[n,s,r,a]:[n+a,n+s,r+s,r+a]).map(function(c){return e<2?t+c:"border"+c+t});sb[e>1?"border"+t:t]=function(c,u,f,m,g){var x,b;if(arguments.length<4)return x=l.map(function(v){return zo(c,v,f)}),b=x.join(" "),b.split(x[0]).length===5?x[0]:b;x=(m+"").split(" "),b={},l.forEach(function(v,w){return b[v]=x[w]=x[w]||x[(w-1)/2|0]}),c.init(u,b,g)}});var q8={name:"css",register:gS,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,s,r,a){var l=this._props,c=e.style,u=s.vars.startAt,f,m,g,x,b,v,w,N,_,E,k,C,A,L,M,O;uj||gS(),this.styles=this.styles||F8(e),O=this.styles.props,this.tween=s;for(w in n)if(w!=="autoRound"&&(m=n[w],!(Mr[w]&&T8(w,n,s,r,e,a)))){if(b=typeof m,v=sb[w],b==="function"&&(m=m.call(s,r,e,a),b=typeof m),b==="string"&&~m.indexOf("random(")&&(m=mp(m)),v)v(this,e,w,m,s)&&(M=1);else if(w.substr(0,2)==="--")f=(getComputedStyle(e).getPropertyValue(w)+"").trim(),m+="",ac.lastIndex=0,ac.test(f)||(N=As(f),_=As(m)),_?N!==_&&(f=hc(e,w,f,_)+_):N&&(m+=N),this.add(c,"setProperty",f,m,r,a,0,0,w),l.push(w),O.push(w,0,c[w]);else if(b!=="undefined"){if(u&&w in u?(f=typeof u[w]=="function"?u[w].call(s,r,e,a):u[w],Ji(f)&&~f.indexOf("random(")&&(f=mp(f)),As(f+"")||f==="auto"||(f+=zr.units[w]||As(zo(e,w))||""),(f+"").charAt(1)==="="&&(f=zo(e,w))):f=zo(e,w),x=parseFloat(f),E=b==="string"&&m.charAt(1)==="="&&m.substr(0,2),E&&(m=m.substr(2)),g=parseFloat(m),w in ao&&(w==="autoAlpha"&&(x===1&&zo(e,"visibility")==="hidden"&&g&&(x=0),O.push("visibility",0,c.visibility),Jl(this,c,"visibility",x?"inherit":"hidden",g?"inherit":"hidden",!g)),w!=="scale"&&w!=="transform"&&(w=ao[w],~w.indexOf(",")&&(w=w.split(",")[0]))),k=w in nl,k){if(this.styles.save(w),b==="string"&&m.substring(0,6)==="var(--"&&(m=fa(e,m.substring(4,m.indexOf(")"))),g=parseFloat(m)),C||(A=e._gsap,A.renderTransform&&!n.parseTransform||yp(e,n.parseTransform),L=n.smoothOrigin!==!1&&A.smooth,C=this._pt=new pr(this._pt,c,qn,0,1,A.renderTransform,A,0,-1),C.dep=1),w==="scale")this._pt=new pr(this._pt,A,"scaleY",A.scaleY,(E?th(A.scaleY,E+g):g)-A.scaleY||0,mS),this._pt.u=0,l.push("scaleY",w),w+="X";else if(w==="transformOrigin"){O.push(gr,0,c[gr]),m=Kie(m),A.svg?xS(e,m,0,L,0,this):(_=parseFloat(m.split(" ")[2])||0,_!==A.zOrigin&&Jl(this,A,"zOrigin",A.zOrigin,_),Jl(this,c,w,rb(f),rb(m)));continue}else if(w==="svgOrigin"){xS(e,m,1,L,0,this);continue}else if(w in W8){Jie(this,A,w,x,E?th(x,E+m):m);continue}else if(w==="smoothOrigin"){Jl(this,A,"smooth",A.smooth,m);continue}else if(w==="force3D"){A[w]=m;continue}else if(w==="transform"){Qie(this,m,e);continue}}else w in c||(w=bh(w)||w);if(k||(g||g===0)&&(x||x===0)&&!Die.test(m)&&w in c)N=(f+"").substr((x+"").length),g||(g=0),_=As(m)||(w in zr.units?zr.units[w]:N),N!==_&&(x=hc(e,w,f,_)),this._pt=new pr(this._pt,k?A:c,w,x,(E?th(x,E+g):g)-x,!k&&(_==="px"||w==="zIndex")&&n.autoRound!==!1?Pie:mS),this._pt.u=_||0,N!==_&&_!=="%"&&(this._pt.b=f,this._pt.r=Iie);else if(w in c)qie.call(this,e,w,f,E?E+m:m);else if(w in e)this.add(e,w,f||e[w],E?E+m:m,r,a);else if(w!=="parseTransform"){tj(w,m);continue}k||(w in c?O.push(w,0,c[w]):typeof e[w]=="function"?O.push(w,2,e[w]()):O.push(w,1,f||e[w])),l.push(w)}}M&&L8(this)},render:function(e,n){if(n.tween._time||!hj())for(var s=n._pt;s;)s.r(e,s.d),s=s._next;else n.styles.revert()},get:zo,aliases:ao,getSetter:function(e,n,s){var r=ao[n];return r&&r.indexOf(",")<0&&(n=r),n in nl&&n!==gr&&(e._gsap.x||zo(e,"x"))?s&&A4===s?n==="scale"?Hie:Fie:(A4=s||{})&&(n==="scale"?$ie:Uie):e.style&&!J_(e.style[n])?Bie:~n.indexOf("-")?zie:cj(e,n)},core:{_removeProperty:Od,_getMatrix:mj}};xr.utils.checkPrefix=bh;xr.core.getStyleSaver=F8;(function(t,e,n,s){var r=mr(t+","+e+","+n,function(a){nl[a]=1});mr(e,function(a){zr.units[a]="deg",W8[a]=1}),ao[r[13]]=t+","+e,mr(s,function(a){var l=a.split(":");ao[l[1]]=r[l[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");mr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){zr.units[t]="px"});xr.registerPlugin(q8);var us=xr.registerPlugin(q8)||xr;us.core.Tween;const ese=({bigSrc:t="/images/Amatir_Kanya_Gurukul_big_pic_skec9b.jpg",smallSrc:e="/images/image_1_fzoxjw.jpg"})=>{const n=Y({maxWidth:767}),s=Y({minWidth:768,maxWidth:1023}),r=Y({minWidth:1024,maxWidth:1365});Y({minWidth:1366});const a=Is(),l=n?"300px":s?"380px":r?"420px":"450px",c=n?"120px":s?"150px":r?"180px":"200px",u=$e.useRef(null),f=$e.useRef(null);return T.useLayoutEffect(()=>{const m=u.current,g=f.current;if(!m||!g)return;g.offsetHeight,m.offsetHeight;const x=g.getBoundingClientRect(),b=m.getBoundingClientRect(),v=b.top-x.top,w=b.height,N=v+w/2,_=window.innerHeight/2,E=window.getComputedStyle(g),k=parseFloat(E.paddingTop),C=parseFloat(E.marginTop),A=parseFloat(E.borderTopWidth),L=N-_+k+C+A;window.innerWidth===1024&&window.innerHeight===600&&console.log("1024x600 Debug:",{railTopRelativeToSection:v,railHeight:w,railCenterRelativeToSection:N,viewportCenter:_,scrollOffsetFromSectionStart:L,offsetPercentage:L/window.innerHeight*100}),us.to(m,{scrollTrigger:{trigger:m,start:"top top",end:"+=1000",scrub:!0,pin:!0,pinSpacing:!0,pinType:"fixed",markers:!1,onUpdate:M=>{M.progress>.99&&(M.progress=0)},onEnter:()=>{us.to(m,{scrollTrigger:{scrub:!0,pin:!0,pinSpacing:!0,pinType:"fixed",markers:!1,onUpdate:M=>{M.progress>.99&&(M.progress=0)}}})},onLeave:()=>{us.to(m,{scrollTrigger:{scrub:!0,pin:!1,pinSpacing:!1,pinType:"fixed",markers:!1,onUpdate:M=>{M.progress>.99&&(M.progress=0)}}})}}})},[]),T.useLayoutEffect(()=>{const m=()=>{dt.refresh()};return window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)}},[]),o.jsxs("section",{className:"relative w-full h-screen bg-white px-[3%]",children:[o.jsx("div",{className:"absolute bottom-0 right-0 z-50",style:{transform:"translateY(50%)"},children:o.jsxs("svg",{width:"186",height:"371",viewBox:"0 0 186 371",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M251.017 11.9733C225.698 12.8406 201.392 27.9367 188.505 48.8151C187.514 50.3639 186.481 50.8596 185.511 50.8596C184.54 50.8596 183.508 50.3639 182.516 48.8151C169.63 27.9367 145.323 12.8406 120.005 11.9733C117.837 11.9733 116.742 12.6548 117.878 15.1329C131.281 45.6142 151.478 87.5155 185.511 87.722C219.544 87.5155 239.741 45.6142 253.144 15.1329C254.3 12.6548 253.185 11.9733 251.017 11.9733Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M197.798 11.9732C197.798 18.5816 192.284 23.9509 185.49 23.9509C178.696 23.9509 173.182 18.5816 173.182 11.9732C173.182 5.36482 178.696 -0.0045166 185.49 -0.0045166C192.284 -0.0045166 197.798 5.36482 197.798 11.9732Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M197.798 358.997C197.798 365.606 192.284 370.975 185.49 370.975C178.696 370.975 173.182 365.606 173.182 358.997C173.182 352.389 178.696 347.02 185.49 347.02C192.284 347.02 197.798 352.389 197.798 358.997Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M71.5159 316.889C66.8487 321.556 59.1458 321.453 54.3547 316.662C49.543 311.85 49.4397 304.168 54.1276 299.501C58.8154 294.834 66.4977 294.937 71.2888 299.728C76.1005 304.54 76.2038 312.222 71.5159 316.889Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M11.9777 197.793C5.36932 197.793 0 192.279 0 185.485C0 178.691 5.36932 173.177 11.9777 173.177C18.5861 173.177 23.9555 178.691 23.9555 185.485C23.9555 192.279 18.5861 197.793 11.9777 197.793Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M54.1062 71.4902C49.439 66.823 49.5423 59.1201 54.3334 54.329C59.1451 49.5172 66.8274 49.414 71.4946 54.1018C76.1618 58.769 76.0585 66.4719 71.2674 71.263C66.4557 76.0747 58.7734 76.178 54.1062 71.4902Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M119.985 358.997C145.303 358.13 169.61 343.033 182.496 322.155C183.487 320.606 184.52 320.111 185.49 320.111C186.461 320.111 187.494 320.606 188.485 322.155C201.371 343.033 225.678 358.13 250.996 358.997C253.165 358.997 254.259 358.315 253.123 355.837C239.721 325.356 219.524 283.455 185.49 283.248C151.457 283.455 131.26 325.356 117.858 355.837C116.701 358.315 117.816 358.997 119.985 358.997Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M16.4789 261.854C35.0031 279.139 62.8616 285.644 86.7345 280.006C88.5311 279.614 89.6256 280.006 90.3071 280.688C90.968 281.348 91.381 282.464 90.968 284.26C85.3302 308.154 91.8353 335.992 109.12 354.516C110.649 356.044 111.908 356.333 112.858 353.772C124.939 322.754 140.283 278.829 116.369 254.626C92.1451 230.712 48.2405 246.055 17.2223 258.136C14.6616 259.066 14.9507 260.346 16.4789 261.874",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M11.9775 119.979C12.8449 145.298 27.941 169.604 48.8194 182.491C50.3682 183.482 50.8638 184.514 50.8638 185.485C50.8638 186.456 50.3682 187.488 48.8194 188.479C27.941 201.386 12.8449 225.672 11.9775 250.991C11.9775 253.159 12.659 254.254 15.1372 253.118C45.6184 239.715 87.5198 219.518 87.7263 185.485C87.5198 151.452 45.6184 131.255 15.1372 117.852C12.659 116.696 11.9775 117.811 11.9775 119.958",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M109.141 16.4754C91.8558 34.9995 85.3507 62.8581 90.9885 86.7309C91.3809 88.5276 90.9885 89.6221 90.3276 90.3036C89.6668 90.9644 88.5516 91.3775 86.755 90.9644C62.8615 85.3267 35.0029 91.8318 16.4994 109.117C14.9712 110.645 14.6821 111.905 17.2429 112.855C48.261 124.936 92.1863 140.28 116.39 116.365C140.304 92.1416 124.96 48.237 112.879
30117.2188C111.95 14.6581 110.669 14.9472 109.141 16.4754Z",fill:"black",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}})]})}),o.jsx("div",{className:"absolute left-1/2 top-[-10%] w-0.5 h-[110%] bg-[#ED6D23] transform -translate-x-1/2 z-10"}),o.jsxs("div",{className:"flex h-full",style:{overflow:"visible"},children:[o.jsx("div",{className:"w-1/2 relative flex items-center justify-center",style:{overflow:"visible"},children:o.jsxs("div",{className:"relative",style:{width:l,height:l,overflow:"visible",marginRight:`calc(${c} / 2)`},children:[o.jsx("div",{className:"relative overflow-hidden rounded-b-[50%] w-full h-full",children:o.jsx("img",{src:t,alt:"Students at Amatir Kanya Gurukul",className:"h-full w-full object-cover"})}),o.jsx("div",{className:"absolute overflow-hidden rounded-t-[50%] border-4 border-white shadow-lg",style:{width:c,height:c,top:`calc(${c} * 0.25)`,right:`calc(-${c} * 0.5)`},children:o.jsx("img",{src:e,alt:"Focused study",className:"h-full w-full object-cover"})})]})}),o.jsx("div",{className:"w-1/2 flex items-center pl-12",children:o.jsxs("div",{children:[o.jsx("h2",{className:"font-['PT_Serif'] text-[#1C3664] text-4xl leading-tight",children:"Amatir Kanya Gurukul "}),o.jsx("p",{className:"mt-2 text-[#1C3664] text-xl opacity-90",children:"A CBSE Girls Boarding School"}),o.jsx("p",{className:"mt-6 text-[#1C1C1C] text-base leading-relaxed max-w-lg",children:"Rooted in Bharat's timeless
301wisdom and strengthened by modern education, Amatir nurtures academic excellence, life skills, and inner strength through personalized mentorship, state-of-the-art facilities, and a home-like environment. Every girl who walks through our gates is empowered to thrive with values that last a lifetime."}),o.jsx("button",{onClick:()=>a("/contact"),className:"mt-7 bg-[#ED6D23] text-white px-6 py-3 rounded-full font-semibold cursor-pointer",children:"Get in touch"})]})})]})]})},K8=()=>{const t=Y({maxWidth:767}),e=t?"280px":"320px",n=t?"60px 20px":"80px 40px",s=t?"32px":"36px",r=t?"18px":"20px",a=t?"16px":"18px",l=t?"12px 24px":"14px 28px";return o.jsx("section",{className:"relative w-full bg-white",style:{padding:n},children:o.jsxs("div",{className:"mx-auto max-w-4xl",children:[o.jsxs("div",{className:"text-left",children:[o.jsx("h2",{className:"font-['PT_Serif'] text-[#1C3664] leading-tight mb-3",style:{fontSize:s},children:"Amatir Kanya Gurukul"}),o.jsx("p",{className:"text-[#1C3664] opacity-90 mb-6",style:{fontSize:r},children:"A CBSE Girls Boarding School"}),o.jsx("p",{className:"text-[#1C1C1C] leading-relaxed mb-8",style:{fontSize:a,maxWidth:t?"100%":"600px"}
301,children:"Rooted in Bharat's timeless wisdom and strengthened by modern education, Amatir nurtures academic excellence, life skills, and inner strength through personalized mentorship, state-of-the-art facilities, and a home-like environment. Every girl who walks through our gates is empowered to thrive with values that last a lifetime."}),o.jsx(Ve,{to:"/contact#mobile-contact",className:"bg-[#ED6D23] text-white rounded-full font-semibold cursor-pointer hover:bg-[#d55a1a] transition-colors inline-block",style:{padding:l,fontSize:t?"16px":"18px"},children:"Get in touch"})]}),o.jsx("div",{className:"flex justify-center mt-8",children:o.jsx("div",{className:"relative rounded-full overflow-hidden",style:{width:e,height:e},children:o.jsx("img",{src:"/images/AffiliationJoinImage_ibdgx9.png",alt:"Amatir Kanya Gurukul",className:"w-full h-full object-cover",loading:"lazy"})})})]})})};us.registerPlugin(dt);function pj({Slides:t}){const e=T.useRef(null),n=T.useRef(null),s=T.useRef(null),r=T.useRef(null),a=Y({maxWidth:767}),l=Y({minWidth:768,maxWidth:1023}),c=Y({minWidth:1024,maxWidth:1365}),u=Y({minWidth:1440}),f=a?"22px":l?"26px":c?"30px":u?"34px":"28px",m=a?"14px":l?"15px":"16px",g=a?"60px 0":l?"70px 0":c?"calc(2rem + 80px) 0":u?"100px 0":"80px 0",x=0,b=a?"450px":l?"500px":c?"456px":u?"650px":"600px",v=a?"calc(100% - 20px)":l?"calc(100% - 40px)":c?"calc(100% - 70px)":"calc(100% - 60px)",w=a?"24px":l?"28px":c?"32px":u?"40px":"30px",N=a?"13px":l?"14px":"15px",_=a?"75%":l?"65%":"60%",E=a?"25px":l?"30px":c?"35px":u?"45px":"35px",k=a?"15px":l?"20px":c?"25px":"30px";return T.useLayoutEffect(()=>{const C=()=>{dt.refresh()};return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[]),T.useLayoutEffect(()=>{us.registerPlugin(dt);const C=n.current,A=s.current,L=r.current;if(!C||!A||!L)return;const M=()=>A.scrollWidth-C.clientWidth,O=us.timeline({scrollTrigger:{trigger:L,pin:e.current,scrub:!0,start:"bottom top",end:()=>`+=${M()}`,invalidateOnRefresh:!0}});return O.fromTo(A,{x:0},{x:()=>-M(),ease:"none"}),()=>{O.scrollTrigger?.kill(),O.kill()}},[]),o.jsxs("section",{ref:e,className:"relative overflow-hidden bg-[#F5F5F5]",style:{padding:g},children:[o.jsxs("div",{className:"mx-auto px-[5%] text-center",style:{margin:x,maxWidth:"100%"},children:[o.jsx("h3",{className:"font-['PT_Serif']",style:{fontSize:f},children:"UNESCO Vision: Our Guiding Principles"}),o.jsx("p",{ref:r,className:"mx-auto mt-2 leading-[1.7] text-[#3A2323]",style:{fontSize:m},children:"Building a foundation of knowledge, skills, community, and individuality through the Four Pillars of Education"})]}),o.jsx("div",{ref:n,className:"relative mx-auto overflow-hidden px-[5%]",style:{height:b,marginTop:a?"25px":l?"30px":c?"35px":"40px",maxWidth:a?"100%":l?"1100px":c?"1200px":"1290px"},children:o.jsx("div",{ref:s,style:{height:b,display:"flex",gap:k},children:t.map((C,A)=>o.jsxs("article",{className:"relative h-full shrink-0 overflow-hidden rounded-[20px] text-white",style:{width:v,backgroundImage:`url(${C.img})`,backgroundSize:"cover",backgroundPosition:"center"},children:[o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(0,0,0,0)_0%,#002F82_96%)]"}),o.jsxs("div",{className:"relative z-[1] flex h-full flex-col justify-end",style:{padding:E},children:[o.jsxs("h4",{className:"font-['PT_Serif']",style:{fontSize:w},children:[C.titleTop," ",C.titleBottom]}),o.jsx("p",{style:{fontSize:N,maxWidth:_,marginTop:a?"8px":"10px",lineHeight:"1.5"},children:C.body}),C.bullets&&o.jsx("ul",{style:{marginTop:a?"12px":"15px",fontSize:N,maxWidth:_,listStyleType:"disc",paddingLeft:"20px"},children:C.bullets.map((L,M)=>o.jsx("li",{style:{marginBottom:"4px",lineHeight:"1.4"},children:L},M))}),C.key==="learning-to-know"?o.jsx("a",{href:"/academics#academics",className:"underline",style:{marginTop:a?"12px":"18px",fontSize:N},children:"Know More"}):C.key==="learning-to-do"?o.jsx("a",{href:"/co-curricular#cocurricular-hero",className:"underline",style:{marginTop:a?"12px":"18px",fontSize:N},children:"Know More"}):C.key==="learning-to-live-together"?o.jsx("a",{href:"/boarding#boarding-hero",className:"underline",style:{marginTop:a?"12px":"18px",fontSize:N},children:"Know More"}):C.key==="learning-to-be"?o.jsx("a",{href:"/academics#gurukul",className:"underline",style:{marginTop:a?"12px":"18px",fontSize:N},children:"Know More"}):o.jsx(Ve,{to:C.link,className:"underline",style:{marginTop:a?"12px":"18px",fontSize:N},children:"Know More"})]})]},C.key))})})]})}us.registerPlugin(dt);
301const tse={orange:"#ED6D23"},nse=[{key:"learning-to-know",titleTop:"Learning to",titleBottom:"Know",body:"Fostering curiosity and a love for learning through a rigorous, value-based education curriculum that promotes exploration, critical thinking, and intellectual growth, preparing students for success in higher education and beyond.",bullets:["Innovative Curriculum","Skill-Based Learning","Competitive Exams"],img:"/images/059A9916_axtwdh (1).jpg",link:"/academics"},{key:"learning-to-do",titleTop:"Learning to",titleBottom:"Do",body:"Encouraging hands-on skills and creative expression, this pillar empowers students to explore their interests and excel in diverse pursuits.",bullets:["Sports","Elevate Clubs","Fine Arts","Performing Arts","Gastronomy"],img:"/images/Rectangle_35_1_fdqy9r.jpg",link:"/co-curricular"},{key:"learning-to-live-together",titleTop:"Learning to Live",titleBottom:"Together",body:"Cultivating harmony, collaboration, and a strong sense of community, nurturing lifelong relationships and a spirit of shared responsibility.",bullets:["Chetna-Prabha","Happiness Council","Pillars of Care: Samrakshika & Samposhini","Marg Darshini"],img:"/images/IMG_1063_n2d5a6.jpg",link:"/boarding"},{key:"learning-to-be",titleTop:"Learning to",titleBottom:"Be",body:"Developing self-awareness, inner balance, and a sense of purpose, this pillar integrates the transformative practices of Atma Dhyan to help students realize their true potential.",bullets:["Hawan","Classical Isha Hatha Yoga","Inner Engineering","Sandhya "],img:"/images/Learning_to_be_yzbdez (1).jpg",link:"/academics#gurukul"}];function Vb(){const t=T.useRef(null),e=T.useRef(null),n=T.useRef(null),s=T.useRef(null),r=T.useRef(null),a=Y({maxWidth:767});Y({minWidth:768,maxWidth:1023});const l=a?"28px":"32px",c=a?"16px":"18px",u=a?"60px 0":"80px 0",f=a?"660px":"700px",m=a?"calc(100vw - 48px)":"360px",g=a?"260px":"280px",x=a?"30px":"34px",b=a?"15px":"16px",v=a?"16px":"20px",w=a?"16px":"20px";return T.useLayoutEffect(()=>{const N=()=>{dt.refresh()};return window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}},[]),T.useLayoutEffect(()=>{us.registerPlugin(dt);const N=e.current,_=n.current,E=r.current;if(!N||!_||!E)return;const k=()=>_.scrollWidth-N.clientWidth,C=()=>`+=${k()}`,A=()=>"bottom top",L=us.timeline({scrollTrigger:{trigger:E,pin:t.current,scrub:a?.5:!0,start:A,end:C,invalidateOnRefresh:!0}});return L.fromTo(_,{x:0},{x:()=>-k(),ease:"none"}),()=>{L.scrollTrigger?.kill(),L.kill()}},[a]),o.jsxs("section",{ref:t,className:"relative overflow-hidden bg-[#F5F5F5]",style:{padding:u},children:[o.jsxs("div",{className:"mx-auto px-4 text-center",children:[o.jsx("h3",{ref:r,className:"font-['PT_Serif'] text-[#1C3664]",style:{fontSize:l},children:"UNESCO Vision, Our Guiding Principles"}),o.jsx("p",{ref:s,className:"mx-auto mt-4 leading-[1.7] text-[#3A2323]",style:{fontSize:c,maxWidth:a?"100%":"600px"},children:"Building a foundation of knowledge, skills, community, and individuality through the Four Pillars of Education"})]}),o.jsx("div",{ref:e,className:"relative mx-auto overflow-hidden px-4",style:{height:f,marginTop:a?"30px":"40px",maxWidth:"100%"},children:o.jsx("div",{ref:n,style:{height:f,display:"flex",gap:w},children:nse.map((N,_)=>o.jsxs("article",{className:"relative h-full shrink-0 overflow-hidden rounded-[20px] bg-white shadow-md",style:{width:m},children:[o.jsxs("div",{className:"relative w-full overflow-hidden",style:{height:g},children:[o.jsx("img",{src:N.img,alt:`${N.titleTop} ${N.titleBottom}`,draggable:!1,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}),o.jsx("div",{className:"absolute inset-0 z-[0] bg-[linear-gradient(180deg,rgba(0,0,0,0)_0%,#002F82_96%)]"}),o.jsx("div",{className:"absolute inset-x-0 bottom-0 z-[1] p-4",children:o.jsxs("h4",{className:"font-['PT_Serif'] text-white leading-tight",style:{fontSize:x},children:[o.jsx("span",{children:N.titleTop}),o.jsx("br",{}),o.jsx("span",{children:N.titleBottom})]})})]}),o.jsxs("div",{className:"flex flex-col text-[#3A2323]",style:{padding:v},children:[o.jsx("p",{style:{fontSize:b,marginTop:a?"4px":"6px",lineHeight:"1.6"},children:N.body}),N.bullets&&o.jsx("ul",{className:"mt-3",style:{fontSize:b,listStyleType:"none",paddingLeft:"0"}
301,children:N.bullets.map((E,k)=>o.jsxs("li",{style:{marginBottom:"4px",lineHeight:"1.5"},children:["~ ",E]},k))}),o.jsx(Ve,{to:N.link,className:"mt-auto underline",style:{marginTop:a?"12px":"14px",fontSize:b,color:tse.orange},children:"Know More"})]})]},N.key))})})]})}function ise(){const t=Is(),[e,n]=T.useState(!1),s=()=>{console.log("About button clicked");try{t("/about")}catch(r){console.error("Navigation error:",r),window.location.href="/about"}};return o.jsx("section",{className:"relative w-full bg-[#F5F5F5] overflow-hidden",style:{paddingTop:"clamp(24px, min(8vh, 80px), 100px)",paddingBottom:"clamp(24px, min(8vh, 80px), 100px)","--side":"clamp(300px, min(42vw, 70vh), 645px)"},children:o.jsxs("div",{className:"mx-auto flex flex-wrap md:flex-nowrap items-center justify-center",style:{width:"min(100%, calc(var(--side) * 2))",rowGap:"24px"},children:[o.jsx("div",{className:"relative overflow-hidden",style:{width:"var(--side)",height:"var(--side)"},children:o.jsx("img",{src:"/images/DSC03260.JPG.webp",alt:"Principal at desk",className:"absolute inset-0 h-full w-full object-cover"})}),e&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:r=>{r.target===r.currentTarget&&n(!1)},children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("button",{onClick:()=>n(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"}),o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/aUzKbx04g9U?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})]})]}),o.jsxs("div",{className:"relative bg-white",style:{width:"var(--side)",height:"var(--side)",overflow:"hidden"},children:[o.jsx("div",{className:"absolute inset-0 flex items-center",style:{padding:"clamp(16px, 3.6vw, 48px)"},children:o.jsxs("div",{className:"relative",style:{width:"min(508px, calc(var(--side) - 96px))"},children:[o.jsxs("h2",{className:"text-[#1C3664] leading-[1.2]",style:{fontFamily:'"CentSchbkCyrill BT", Georgia, Cambria, "Times New Roman", serif',fontWeight:400,fontSize:"clamp(36px, 4.4vw, 62px)"},children:["Leading With",o.jsx("br",{}),"Purpose"]}),o.jsxs("div",{className:"mt-5 space-y-1 tracking-[-0.02em]",style:{fontFamily:'Univers, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif'},children:[o.jsx("p",{className:"text-[18px] leading-[150%] font-normal",children:"A Message from the Principal"}),o.jsx("p",{className:"text-[18px] leading-[150%] font-bold",children:"Mrs. Soma Debnath"}),o.jsx("p",{className:"text-[18px] leading-[150%] font-normal",children:"Amatir Kanya Gurukul"})]}),o.jsx("div",{className:"mb-4",children:o.jsx("button",{type:"button",onClick:s,className:"mt-8 inline-flex items-center justify-center rounded-full bg-[#ED6D23] text-white transition-opacity hover:opacity-90",style:{width:"146.16px",height:"50px",fontFamily:'"CentSchbkCyrill BT", Georgia, Cambria, "Times New Roman", serif',fontSize:"16px",lineHeight:"19px"},children:"About Amatir"})})]})}),o.jsx("div",{className:"pointer-events-none absolute -bottom-2 -right-2 opacity-70",children:o.jsxs("svg",{width:"272",height:"272",viewBox:"0 0 272 272",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[o.jsx("path",{d:"M368.744 17.5957C331.551 18.8698 295.845 41.046 276.914 71.7165C275.458 73.9918 273.941 74.7199 272.516 74.7199C271.09 74.7199 269.573 73.9918 268.117 71.7165C249.187 41.046 213.48 18.8698 176.287 17.5957C173.102 17.5957 171.494 18.5968 173.163 22.2372C192.851 67.0143 222.521 128.568 272.516 128.871C322.511 128.568 352.18 67.0143 371.869 22.2372C373.567 18.5968 371.929 17.5957 368.744 17.5957Z",fill:"black",fillOpacity:"0.05",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M290.566 17.5953C290.566 27.3031 282.466 35.1907 272.485 35.1907C262.504 35.1907 254.404 27.3031 254.404 17.5953C254.404 7.88757 262.504 0 272.485 0C282.466 0 290.566 7.88757 290.566 17.5953Z",fill:"black",fillOpacity:"0.05",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M17.5953 290.566C7.88756 290.566 0 282.466 0 272.485C0 262.504 7.88756 254.404 17.5953 254.404C27.3031 254.404 35.1907 262.504 35.1907 272.485C35.1907 282.466 27.3031 290.566 17.5953 290.566Z",fill:"black",fillOpacity:"0.05",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M79.4826 105.026C72.6265 98.1698 72.7782 86.8542 79.8163 79.8161C86.8848 72.7476 98.1701 72.5959 105.026 79.4824C111.882 86.3385 111.731 97.6541 104.692 104.692C97.624 111.761 86.3387 111.912 79.4826 105.026Z",fill:"black",fillOpacity:"0.05",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M17.5947 176.256C18.8689 213.449 41.0451 249.156 71.71
30155 268.086C73.9908 269.542 74.7189 271.059 74.7189 272.484C74.7189 273.91 73.9908 275.427 71.7155 276.883C41.0451 295.844 18.8689 331.52 17.5947 368.713C17.5947 371.898 18.5958 373.506 22.2363 371.837C67.0133 352.149 128.567 322.48 128.87 272.484C128.567 222.489 67.0133 192.82 22.2363 173.132C18.5958 171.433 17.5947 173.071 17.5947 176.226",fill:"black",fillOpacity:"0.05",style:{mixBlendMode:"soft-light"}}),o.jsx("path",{d:"M160.328 24.2091C134.936 51.4211 125.38 92.3455 133.662 127.415C134.238 130.054 133.662 131.662 132.691 132.663C131.72 133.634 130.082 134.241 127.443 133.634C92.343 125.352 51.4186 134.908 24.2369 160.3C21.992 162.545 21.5672 164.395 25.329 165.791C70.8949 183.538 135.421 206.078 170.976 170.948C206.106 135.363 183.566 70.867 165.819 25.3012C164.454 21.5394 162.573 21.9641 160.328 24.2091Z",fill:"black",fillOpacity:"0.05",style:{mixBlendMode:"soft-light"}})]})})]})]})})}const w2={blog1:{title:"Curriculum in Gurukuls: What Parents Should Know",excerpt:"Parents today are looking for more than just high scores. They want education that nurtures character, confidence, and clarity. The modern Gurukul system has evolved to offer just that, a balanced curriculum that blends traditional Indian wisdom with academic rigor, which is exactly why Amatir has grown into a genuinely modern Gurukul school in India rather than a relic of the past.",img:"/images/Blog_main_pic_b15a6e.jpg",date:"10 Oct 2025"},blog2:{slug:"blog2",title:"A Day in the Life of a Girl at Amatir Gurukul",img:"/images/Rectangle_110_tdkht6.jpg",date:"10 Nov 2025"},blog3:{slug:"blog3",title:"Why Gurukul Education Builds Character",img:"/images/Rectangle_111_j4hdij.jpg",date:"15 Nov 2025"}};function sse(){const t=Y({maxWidth:767}),e=Y({minWidth:1024}),n=Y({query:"(min-aspect-ratio: 16/9)"}),s=Y({query:"(max-height: 770px)"}),a=Y({query:"(min-height: 1000px)"})?10:n?11:s?13.5:12,l=3,c=Is(),u=w2.blog1,f=w2.blog2,m=w2.blog3,g=()=>{c("/blogs")};return o.jsx("section",{className:`bg-white ${e?"h-screen":"py-[80px]"}`,style:{paddingBottom:"5%"},children:o.jsxs("div",{className:"mx-auto flex h-full w-screen flex-col items-center",children:[o.jsx("h3",{className:"mt-[40px] text-center leading-[120%] text-[#1C3664]",style:{fontFamily:'"CentSchbkCyrill BT", Georgia, serif',fontWeight:400,fontStyle:"normal",fontSize:e?"48px":"40px",letterSpacing:"0",paddingBottom:"1%"},children:"Campus Buzz"}),o.jsx("div",{className:"mt-6 w-[90%] max-w-[1290px] flex-1",children:t?o.jsx("div",{className:"flex flex-col items-center",children:o.jsx("article",{className:"flex w-full max-w-[400px] flex-col rounded-[38px] border border-[#DCDCDC] bg-[#CFCFCF] p-[14px] cursor-pointer",onClick:()=>g(),children:o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-[24px] bg-[#CFCFCF]",children:[o.jsx("figure",{className:"relative overflow-hidden rounded-t-[24px] h-[230px]",children:o.jsx("img",{src:u.img,alt:"Campus gathering",className:"absolute inset-0 h-full w-full object-cover"})}),o.jsxs("div",{className:"p-[24px] text-[#1C3664]",children:[o.jsx("h4",{className:"leading-[120%]",style:{fontFamily:'"CentSchbkCyrill BT", Georgia, serif',fontWeight:400,fontStyle:"normal",fontSize:24},children:u.title}),o.jsx("p",{className:"mt-2 text-[#6B7280]",style:{fontSize:14},children:u.date}),o.jsx("p",{className:"mt-3 text-[#3A2323]",style:{lineHeight:"1.7",fontSize:15},children:u.excerpt}),o.jsx("a",{href:"#",className:"mt-5 inline-block text-[#1C3664] underline-offset-2 hover:underline",style:{fontSize:14},onClick:x=>{x.preventDefault(),c("/blogs")},children:"Know More"})]})]})})}):o.jsxs("div",{className:"grid h-full grid-cols-1 gap-[28px] lg:grid-cols-2",children:[o.jsx("article",{className:"flex h-full flex-col rounded-[38px] border border-[#DCDCDC] bg-[#F5F5F5] p-[14px] cursor-pointer",onClick:()=>g(),children:o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-[24px] bg-white",children:[o.jsx("figure",{className:"relative min-h-0 flex-1 overflow-hidden",children:o.jsx("img",{src:u.img,alt:"Campus gathering",className:"absolute inset-0 h-full w-full object-cover"})}),o.jsxs("div",{className:"p-[24px] text-[#1C3664]",children:[o.jsx("h4",{className:"leading-[120%]",style:{fontFamily:'"CentSchbkCyrill BT", Georgia, serif',fontWeight:400,fontStyle:"normal",fontSize:26},children:u.title}),o.jsx("p",{className:"mt-2 text-[#6B7280]",style:{fontSize:14},children:u.date}),o.jsx("p",{className:"mt-3 text-[#3A2323]",style:{lineHeight:"1.7",fontSize:15},children:u.excerpt}),o.jsx("a",{href:"#",className:"mt-5 inline-block text-[#1C3664] underline-offset-2 hover:underline",style:{fontSize:14},onClick:x=>{x.preventDefault(),c("/blogs")},children:"Know More"})]})]})}),o.jsxs("div",{className:"relative flex h-full flex-col",style:e?{"--gapP":`${l}%`,"--btnP":`${a}%`}:void 0,children:[o.jsx(z4,{percentHeight:e?"calc((100% - var(--gapP) - var(--btnP)) / 2)":void 0,image:f.img,title:f.title,date:f.date,slug:f.slug,onBlogClick:g}),o.jsx("div",{style:e?{height:"var(--gapP)"}:{height:16}}),o.jsx(z4,{percentHeight:e?"calc((100% - var(--gapP) - var(--btnP)) / 2)":void 0,image:m.img,title:m.title,date:m.date,slug:m.slug,onBlogClick:g}),o.jsx("div",{className:"flex items-center",style:e?{height:"var(--btnP)",marginTop:"1.5rem"}:void 0,children:o.jsx("a",{href:"#",className:"inline-flex cursor-pointer items-center rounded-full bg-[#ED6D23] px-6 py-3 text-white transition-opacity hover:opacity-90",onClick:x=>{x.preventDefault(),c("/blogs")},children:"Know More"})})]})]})})]})})}function z4({percentHeight:t,image:e,title:n,date:s,slug:r,onBlogClick:a}){return o.jsxs("article",{className:"flex w-full items-center gap-5 rounded-[38px] border border-[#DCDCDC] bg-[#F5F5F5] p-[14px] curs
301or-pointer",style:t?{height:t}:void 0,onClick:()=>a(r),children:[o.jsxs("div",{className:"flex w-[110px] shrink-0 flex-col items-center justify-center rounded-[28px] bg-white py-8 text-[#1C3664]",children:[o.jsx("span",{className:"tracking-wide",style:{fontFamily:'Univers, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:12,letterSpacing:"0.12em"},children:new Date(s).toLocaleString("en-US",{month:"short"}).toUpperCase()}),o.jsx("span",{className:"my-2",style:{fontFamily:'Univers, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontWeight:700,fontSize:28,lineHeight:1},children:new Date(s).toLocaleString("en-US",{day:"2-digit"})}),o.jsx("span",{className:"tracking-wide",style:{fontFamily:'Univers, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:12,letterSpacing:"0.12em"},children:new Date(s).toLocaleString("en-US",{weekday:"short"}).toUpperCase()})]}),o.jsxs("div",{className:"relative h-full min-w-0 flex-1 overflow-hidden rounded-[22px]",children:[o.jsx("img",{src:e,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 flex items-end bg-gradient-to-t from-black/90 via-black/20 to-transparent p-5",children:o.jsx("p",{className:"text-white leading-snug",style:{fontFamily:'"CentSchbkCyrill BT", Georgia, serif',fontWeight:400,fontStyle:"normal",fontSize:22,maxWidth:360},children:n})})]})]})}const F4={affLarge:"/images/For_download_1_tp4xmq.png"};function Y8(){const t=Y({maxWidth:767});Y({minWidth:768,maxWidth:1023});const e=Y({minWidth:1024,maxWidth:1365}),n=t?"32px":"40px",s=t?"16px":"18px",a=`calc(${t?"340px":e?"460px":"540px"} * 1.22)`,l=t?"40px":e?"50px":"60px";return o.jsx("section",{className:"relative overflow-hidden bg-white",style:{padding:t?"60px 0 80px":e?"80px 0 100px":"80px 0 110px"},children:t?o.jsxs("div",{className:"mx-auto max-w-[1290px] px-[5%]",children:[o.jsx("div",{className:"mb-8 flex justify-center",children:o.jsx("img",{src:F4.affLarge,alt:"Affiliation",className:"h-auto object-cover rounded-[20px]",style:{maxHeight:"400px",maxWidth:"100%"}})}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-['PT_Serif']",style:{fontSize:n},children:"Affiliation"}),o.jsx("p",{className:"mt-3 leading-[1.6] text-black",style:{fontSize:s},children:"Amatir Kanya Gurukul is proudly affiliated with the Central Board of Secondary Education (CBSE). That affiliation, combined with our residential setup, is why we're recognized as a dependable girls residential school by the families who send their daughters here. Explore complete details below, including mandatory disclosures and all relevant information."}),o.jsx(Ve,{to:"/essential-information#cbseDisclosure",className:"mt-6 inline-flex cursor-pointer rounded-full bg-[#ED6D23] px-6 py-3 text-white",rel:"noopener noreferrer",children:"CBSE Mandatory Disclosure"})]})]}):o.jsxs("div",{className:`mx-auto max-w-[1290px] pl-[5%] ${e?"grid grid-cols-2 items-center":"flex items-center"}`,style:{gap:l,overflow:"visible"},children:[o.jsxs("div",{className:`${e?"w-full":"max-w-[520px]"} z-[2]`,children:[o.jsx("h3",{className:"font-['PT_Serif']",style:{fontSize:n},children:"Affiliation"}),o.jsx("p",{className:"mt-3 leading-[1.6] text-black",style:{fontSize:s},children:"Amatir Kanya Gurukul is proudly affiliated with the Central Board of Secondary Education (CBSE). That affiliation, combined with our residential setup, is why we're recognized as a dependable girls residential school by the families who send their daughters here. Explore complete details below, including mandatory disclosures and all relevant information."}),o.jsx(Ve,{to:"/essential-information#cbseDisclosure",className:"mt-6 inline-flex cursor-pointer rounded-full bg-[#ED6D23] px-6 py-3 text-white",rel:"noopener noreferrer",children:"CBSE Mandatory Disclosure"})]}),o.jsx("div",{className:`${e?"w-full":"flex-1"} relative flex justify-end`,style:{height:a,overflow:"visible"},children:o.jsx("img",{src:F4.affLarge,alt:"Affiliation",className:"w-full h-full object-contain"})})]})})}const gj=[{key:"learning-to-know",titleTop:"Learning to",titleBottom:"Know",body:"Fostering curiosity and a love for learning through a rigorous, value-based education curriculum that promotes exploration, critical thinking, and intellectual growth, preparing students for success in higher education and beyond.",bullets:["Innovative Curriculum","Skill-Based
301Learning","Competitive Exams"],img:"/images/059A9916_axtwdh.jpg",link:"/academics"},{key:"learning-to-do",titleTop:"Learning to",titleBottom:"Do",body:"Encouraging hands-on skills and creative expression, this pillar empowers students to explore their interests and excel in diverse pursuits.",bullets:["Sports","Elevate Clubs","Fine Arts","Performing Arts","Gastronomy"],img:"/images/Learning_to_do_awq0kd.jpg",link:"/co-curricular"},{key:"learning-to-live-together",titleTop:"Learning to Live",titleBottom:"Together",body:"Cultivating harmony, collaboration, and a strong sense of community, nurturing lifelong relationships and a spirit of shared responsibility.",bullets:["Chetna-Prabha","Happiness Council","Pillars of Care: Samrakshika & Samposhini","Marg Darshini"],img:"/images/learning_to_live_togather_c742sy.jpg",link:"/boarding"},{key:"learning-to-be",titleTop:"Learning to",titleBottom:"Be",body:"Developing self-awareness, inner balance, and a sense of purpose, this pillar integrates the transformative practices of Atma Dhyan to help students realize their true potential.",bullets:["Hawan","Classical Isha Hatha Yoga","Inner Engineering","Sandhya"],img:"/images/Learning_to_be_yzbdez.jpg",link:"/academics#gurukul"}],Ol={heroDesktop:"/images/Header_ywiibp.mp4",heroMobile:"/images/375x424_lqnlmg.mp4",heroPoster:"/images/Screenshot_2025-08-28_234620_eke0em.png",heroIcon:"/images/Orange_Icon_i299iz.svg",buzzFeature:"/images/image_1_brnjvw.png",buzzSmall2:"/images/image_3_haggxp.png",actionBlueI:"/images/Unlock_her_Future_blueCardsIcon_zeqzxs.png",actionOrgI:"/images/Unlock_her_Future_OrangeCardIcon_nvspzg.png"};function rse(){xs({title:"CBSE Girls Boarding School Haryana | Gurukul Kurukshetra",description:"Experience Gurukul-style education at a leading CBSE girls boarding school in Haryana. Safe residential campus in Kurukshetra with values, academics, yoga & holistic learning.",keywords:""});const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023}),n=Y({minWidth:1024,maxWidth:1365});Y({minWidth:1366}),Y({minWidth:1440});const s=Y({maxWidth:1024,maxHeight:600});Y({maxHeight:600}),Y({minWidth:1440});const r=()=>t?"center 30%":s?"center 25%":"center center",a=t?"32px":"40px",l=t?"300px":e?"340px":"380px",c=t?"24px":e?"32px":"40px",u=t?"20px":e?"22px":"26px",f=t?"13px":"15px";return o.jsxs("main",{className:"text-[#1C3664]",children:[o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",minHeight:s?"400px":"480px"},children:[o.jsxs("video",{className:"absolute inset-0 h-full w-full object-cover",playsInline:!0,autoPlay:!0,muted:!0,loop:!0,poster:Ol.heroPoster,style:{objectFit:"cover",objectPosition:r()},children:[o.jsx("source",{src:Ol.heroMobile,type:"video/mp4",media:"(max-width: 767px)"}),o.jsx("source",{src:Ol.heroDesktop,type:"video/mp4"})]}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(0,0,0,0)_20%,#002F82_100%)]"}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end mt-[-8%] justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:s?"translateY(-10%)":t?"translateY(-5%)":"translateY(0)",paddingTop:s?"2rem":t?"1rem":"0",paddingBottom:s?"2rem":t?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:Ol.heroIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill z-10002",style:{lineHeight:"1.1",color:"#fff"},children:"Guided by Dharma, Prepared for the World."})]})})]}),t?o.jsx(K8,{}):o.jsx(ese,{}),t?o.jsx(Vb,{}):o.jsx(pj,{Slides:gj}),o.jsx(ise,{}),o.jsx(sse,{}),o.jsx("section",{className:"bg-[#F5F5F5]",style:{padding:t?"70px 0":e?"85px 0":n?"calc(2rem + 100px) 0":"100px 0"},children:o.jsxs("div",{className:"mx-auto max-w-[1290px] px-[5%]",children:[o.jsx("h3",{className:"cent-schbk-cyrill text-center",style:{fontSize:a},children:"Unlock Her Future"}),o.jsx("div",{className:"mt-8 overflow-hidden rounded-[20px] shadow-[0_6px_28px_rgba(0,0,0,0.08)]",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[o.jsxs("article",{className:"relative",style:{height:l},children:[o.jsx("img",{src:Ol.buzzFeature,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#002F82]/95"}),o.jsxs("div",{className:"relative z-[1] h-full text-white",style:{padding:c},children:[o.jsx("img",{src:Ol.actionBlueI,alt:"",className:"mb-5 h-[48px] w-[48px] invert"}),o.jsx("h4",{className:"cent-schbk-cyrill",style:{fontSize:u},children:"Plan a Campus Visit"}),o.jsx("p",{className:"mt-2 max-w-[520px] leading-[1.7]",style:{fontSize:f},children:"Numbers and prospectuses only tell you so much. The best way to understand why fam
301ilies keep calling Amatir the best girls boarding school is to walk the campus yourself. Schedule a guided tour to see our facilities, meet our team, and get a feel for the day-to-day life that has earned us a reputation as one of the best gurukul options for girls in India."}),o.jsx(Ve,{to:"/campus-visit",className:"mt-5 inline-block rounded-full bg-white px-5 py-2 text-[#1C3664] cursor-pointer",children:"Register Now"})]})]}),o.jsxs("article",{className:"relative",style:{height:l},children:[o.jsx("img",{src:Ol.buzzSmall2,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/95"}),o.jsxs("div",{className:"relative z-[1] h-full text-white",style:{padding:c},children:[o.jsx("img",{src:Ol.actionOrgI,alt:"",className:"mb-5 h-[48px] w-[48px] invert"}),o.jsx("h4",{className:"cent-schbk-cyrill",style:{fontSize:u},children:"Apply for the Aptitude Test"}),o.jsx("p",{className:"mt-2 max-w-[520px] leading-[1.7]",style:{fontSize:f},children:"Ready to take the next step? Amatir welcomes girls into its residential program through a straightforward aptitude test designed to understand each child's strengths and readiness for our learning environment. As a well-established Gurukul school, we look for curiosity and character as much as academic ability. Register today to begin the process."}),o.jsx("a",{href:"/admissions#aptitude-test",className:`mt-5 inline-block rounded-full 302 bg-white px-5 py-2 text-[#1C3664] cursor-pointer`,children:"Apply"})]})]})]})})]})}),o.jsx(Y8,{}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}function ase(){const t=$e.useMemo(()=>[{name:"Late Balwant Singh Nehra",role:"Founder",photo:"/images/Trustee-Balwant_pxclkm.jpg",details:"Balwant Singh Nehra, fondly known as âDada Ji,â founded Anant Charitable Trust and Amatir Kanya Gurukul at 65 to support girls in his village.An IIT (BHU) Banaras graduate and retired professor from NIT Kurukshetra, he was also a progressive farmer who has positively impacted countless families."},{name:"Ashish Nehra",role:"Principal Trustee",photo:"/images/Ashish_Nehra.jpg",details:"Ashish Nehra is a Social Edupreneur and Co-Founder of Amatir Kanya Gurukul, dedicated to making high-quality, holistic education accessible to girls from underserved communities. A Sloan Fellow from London Business School and an Army veteran, he brings 22+ years of diverse experience across technology, farming, and leadership. His mission is to transform young girls into confident, resilient leaders who will shape the future of society and nation-building."},{name:"Gursewak Singh",role:"President",photo:"/images/Gursewak_Singh.jpeg",details:"A lawyer, farmer, and passionate sportsperson, he believes deeply in the lessons taught through sportsâperseverance, patience, and confidence. A law graduate from Kurukshetra University, he brings quiet strength and vision to the Trust."},{name:"Dr. R L Kaushik",role:"Trustee",photo:"/images/Trustee-RLKaushik_fiza5i.jpg",details:"A retired professor of Chemistry and a graduate in Chemical Engineering from Punjab University, Dr. Kaushik brings with him rich academic and administrative experience. He continues to be a guiding force behind the trust and its educational mission."},{name:"Adittee Naargolkar",role:"Trustee",photo:"/images/Adittee_gyu2qb.jpg",details:"With academic credentials in Early Childhood Care, Psychology, and Special Needs Education from the UK, Adittee focuses on curriculum design, teacher training, and the creation of engaging learning tools. Her work with leading toy brands and preschools across India reflects her commitment to making learning joyful and discovery-led."},{name:"Dr. Priti Ojha",role:"Vice President",photo:"/images/Trustee-Priti_lm0jch.jpg",details:"Dr. Priti Ojha is a seasoned educationist and global trainer. As a British Council Ambassador and Core Skills Master Trainer, she has mentored over 600 schools and supported 100+ teachers in bringing global perspectives into classroom learning. She holds a Doctorate in Computer Science and remains, above all, a passionate teacher."}],[]),e=$e.useRef(null),n=$e.useRef(null),s=()=>window.matchMedia("(max-width: 900px)").matches?1:3,[r,a]=$e.useState(s()),[l,c]=$e.useState(24),[u,f]=$e.useState(0),[m,g]=$e.useState(0),[x,b]=$e.useState(0),[v,w]=$e.useState(0),N=$e.useCallback(()=>{const C=s();a(C);
302const A=e.current,L=n.current;if(!A||!L)return;const M=window.getComputedStyle(L),O=parseFloat(M.columnGap||M.gap||"24")||24;c(O);const P=A.clientWidth,H=(P-O*(C-1))/C;f(H);const V=Math.max(0,t.length-C),F=Math.min(m,V);g(F),L.style.transform=`translateX(-${F*(H+O)}px)`,C===3?(b(H+O/2),w(2*H+3*O/2)):(b(0),w(P))},[m,t.length]);$e.useEffect(()=>(N(),window.addEventListener("resize",N,{passive:!0}),()=>window.removeEventListener("resize",N)),[N]);const _=C=>{const A=Math.max(0,t.length-r),L=Math.min(Math.max(C,0),A);g(L);const M=n.current;M&&(M.style.transform=`translateX(-${L*(u+l)}px)`)},E=()=>_(m-1),k=()=>_(m+1);return o.jsxs("div",{ref:e,className:"relative mx-auto overflow-hidden",style:{width:"100%"},children:[o.jsx("div",{ref:n,className:"flex items-stretch gap-6 transition-transform duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform",children:t.map((C,A)=>o.jsxs("article",{className:"group relative overflow-hidden rounded-[20px] bg-transparent shadow-[0_8px_24px_rgba(0,0,0,.08)]",style:{flex:`0 0 ${u}px`},children:[o.jsx("img",{src:C.photo,alt:C.name,className:"block w-full object-cover",style:{aspectRatio:"1 / 1.2"}}),o.jsxs("div",{className:"p-5 text-left",children:[o.jsxs("h5",{className:"relative mb-3 text-[22px] md:text-[24px] text-[#1C3664]",children:[C.name,o.jsx("span",{className:"absolute left-0 -bottom-2 block h-[2px] w-[30px] bg-[#ED6D23]"})]}),o.jsx("p",{className:"text-[15px] text-[#3A2323]",children:C.role})]}),o.jsx("div",{className:`pointer-events-none absolute inset-0 flex h-full w-full items-start justify-start 303 p-8 md:p-10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 ease-out 304 bg-[#1C3664]/95 backdrop-blur-[2px]`,children:o.jsxs("div",{className:"max-w-[90%] text-white",children:[o.jsxs("h5",{className:"relative mb-3 text-[22px] md:text-[26px] leading-tight",children:[C.name,o.jsx("span",{className:"absolute left-0 -bottom-2 block h-[2px] w-[30px] bg-[#ED6D23]"})]}),o.jsx("p",{className:"text-white/85 text-[15px] mb-3",children:C.role}),o.jsx("div",{className:"pr-2",children:o.jsx("p",{className:"text-[14px] leading-6 md:text-[15px] md:leading-7",children:C.details})})]})})]},C.name+A))}),o.jsx("button",{type:"button",onClick:E,"aria-label":"Previous",className:"absolute top-1/2 -translate-y-1/2 grid place-items-center h-12 w-12 md:h-14 md:w-14 rounded-full bg-[#F7941D] text-white shadow-lg cursor-pointer",style:{left:r===3?`${x}px`:"-4px",transform:"translate(-50%, -50%)"},children:o.jsx("span",{className:"text-[20px] md:text-[22px] leading-none",children:"â¹"})}),o.jsx("button",{type:"button",onClick:k,"aria-label":"Next",className:"absolute top-1/2 -translate-y-1/2 grid place-items-center h-12 w-12 md:h-14 md:w-14 rounded-full bg-[#F7941D] text-white shadow-lg cursor-pointer",style:{left:r===3?`${v}px`:"calc(100% + 4px)",transform:"translate(-50%, -50%)"},children:o.jsx("span",{className:"text-[20px] md:text-[22px] leading-none",children:"âº"})})]})}const ta={heroBg:"/images/afb3c3619b5c47d084a92bd65cea4fd6_k5ucqy.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",visionBg:"/images/Rectangle_35_hhc9xi.png",missionBg:"/images/Rectangle_36_rndebv.png",anantTrust:"/images/Anant_Charitable_trust_fyw8kf.jpg",humbleBegin:"/images/Rectangle_68_xbwfg6.jpg",growthYears:"/images/About_us_growth_pic_wec7au.jpg",rootedKnowledge:"/images/Name_rooted_in_knowledge_nlbh8n.jpg",initiativesHeader:"/images/AMATIR_7_opdot9.jpg",vidyaIcon:"/images/Vidya_Scholorship_Icon_fzwkhr.png",dispensaryIcon:"/images/Charitable_Dispensary_Icon_xemjhq.svg",communityIcon:"/images/Community_Engagement_Icon_jinhvv.svg"};function ose(){xs({title:"Modern Gurukul School in India | About Amatir Kanya Gurukul",description:"Learn about Amatir Kanya Gurukul, a modern Gurukul school in India blending CBSE education, Indian values, academic excellence and holistic development for girls.",keywords:""});const t=Y({maxWidth:768}),e=Y({maxWidth:1024});Y({maxHeight:600});const n=T.useRef(null),s=T.useRef(null),r=T.useRef([]),a=T.useMemo(()=>[{date:"2002",title:"Anant Charitable Trust",text:"Founded by retired electrical engineering professor Mr. B.S. Nehra, Anant Charitable Trust began in 2002 with a vision to uplift women through educationâbasic, technical, and higher learningâby reviving the principles of the gurukul education system to meet the needs of modern times.",img:ta.anantTrust},{date:"2002 May",title:"Humble Beginnings in Kurukshetra",text:"Our all-girls residential school was established in Bachgaon Gamri, Kurukshetra, Haryana, as a beacon of traditional Indian education. Starting with just 27 girls in a modest three-room facility that served as both school and hostel, it embodied the spirit of a gurukul in India, offering character building for girls through discipline, community living, and values-based learning.",img:ta.humbleBegin},{date:"2008 April",title:"Growth Over the Years",text:"What began as a humble initiative has evolved into a thriving institution spread across a 30-acre campus. Amatir now offers holistic education from Pre-Nursery to 10+2 grades, blending ancient wisdom for girls with academic excellence and modern gurukul values. Our state-of-the-art facilities support students and staff in an environment that respects tradition while embracing progress.",img:ta.growthYears},{date:"2016",title:"A Name Rooted in Knowledge",text:"To reflect its progressive vision, Kanya Gurukul was rebranded as Amatir Kanya Gurukul, signifying âKnowledgeâ in Sanskritâa name that captures the essence of gurukul education and the schoolâs unwavering commitment to nurturing empowered, ethical, and confident young women.",img:ta.rootedKnowledge}],[]),l=T.useMemo(()=>[{name:"Late Balwant Singh Nehra",role:"Founder",photo:"/images/Trustee-Balwant_pxclkm.jpg",details:"Fondly known as âDada Ji,â he founded Anant Charitable Trust and Amatir Kanya Gurukul at 65 to support girls in his village. An IIT (BHU) Banaras graduate and retired professor from NIT Kurukshetra, he is also a progressive farmer who has positively impacted countless families."},{name:"Ashish Nehra",role:"Principal Trustee",photo:"Ashish_Nehra.jpg",details:"Ashish Nehra is a Social Edupreneur and Co-Founder of Amatir Kanya Gurukul, dedicated to making high-quality, holistic education accessible to girls from underserved communities. A Sloan Fellow from London Business Sc
304hool and an Army veteran, he brings 22+ years of diverse experience across technology, farming, and leadership. His mission is to transform young girls into confident, resilient leaders who will shape the future of society and nation-building."},{name:"Gursewak Singh",role:"President",photo:"/images/Gursewak_Singh.jpeg",details:"A lawyer, farmer, and passionate sportsperson, he believes deeply in the lessons taught through sportsâperseverance, patience, and confidence. A law graduate from Kurukshetra University, he brings quiet strength and vision to the Trust."},{name:"Dr. R L Kaushik",role:"Trustee",photo:"/images/Trustee-RLKaushik_fiza5i.jpg",details:"A retired professor of Chemistry and a graduate in Chemical Engineering from Punjab University, Dr. Kaushik brings with him rich academic and administrative experience. He continues to be a guiding force behind the trust and its educational mission."},{name:"Adittee Naargolkar",role:"Trustee",photo:"/images/Adittee_gyu2qb.jpg",details:"With academic credentials in Early Childhood Care, Psychology, and Special Needs Education from the UK, Adittee focuses on curriculum design, teacher training, and the creation of engaging learning tools. Her work with leading toy brands and preschools across India reflects her commitment to making learning joyful and discovery-led."},{name:"Dr. Priti Ojha",role:"Vice President",photo:"/images/Trustee-Priti_lm0jch.jpg",details:"Dr. Priti Ojha is a seasoned educationist and global trainer. As a British Council Ambassador and Core Skills Master Trainer, she has mentored over 600 schools and supported 100+ teachers in bringing global perspectives into classroom learning. She holds a Doctorate in Computer Science and remains, above all, a passionate teacher."}],[]),c=T.useRef(null),u=T.useRef(null),[f,m]=T.useState(0),g=()=>window.matchMedia("(max-width: 900px)").matches?1:3,[x,b]=T.useState(!1),v=w=>{const N=g(),_=Math.max(0,l.length-N),E=Math.min(Math.max(w,0),_);m(E);const k=u.current,C=c.current;if(!k||!C)return;const A=window.getComputedStyle(C),L=parseFloat(A.columnGap||A.gap||0),O=(k.clientWidth-L*(N-1))/N;C.style.transform=`translateX(-${E*(O+L)}px)`};return T.useEffect(()=>{const w=()=>v(f);return w(),window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[f,l.length]),r.current=a.map((w,N)=>r.current[N]||$e.createRef()),T.useEffect(()=>{let w=0;const N=()=>{const E=n.current,k=s.current;if(!E||!k)return;const C=window.scrollY+window.innerHeight/2;let A=0,L=1/0;r.current.forEach((ae,B)=>{const $=ae.current?.getBoundingClientRect();if(!$)return;const X=$.top+window.scrollY+$.height/2,xe=Math.abs(X-C);xe<L&&(L=xe,A=B)});const M=E.getBoundingClientRect(),O=M.top+window.scrollY,P=r.current[A]?.current?.getBoundingClientRect();if(!P)return;const V=P.top+window.scrollY+P.height/2-O,F=8,U=M.height-8,q=Math.max(F,Math.min(V,U));k.style.transform=`translate(-50%, ${q}px)`},_=()=>{w&&cancelAnimationFrame(w),w=requestAnimationFrame(N)};return _(),window.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",_),()=>{w&&cancelAnimationFrame(w),window.removeEventListener("scroll",_),window.removeEventListener("resize",_)}},[a.length]),T.useEffect(()=>{setTimeout(()=>{const N=document.getElementById("hero");N&&window.scrollTo({top:N.offsetTop,behavior:"smooth"})},100)},[]),o.jsxs("main",{className:"w-full overflow-hidden",children:[o.jsxs("section",{id:"hero",className:"relative overflow-hidden w-full",style:{height:"100vh",marginTop:"60px",minHeight:e?"400px":"480px"},children:[o.jsx("img",{src:ta.heroBg,alt:"Students in assembly",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-black/40"}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end mt-[-8%] justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:e?"translateY(-10%)":t?"translateY(-5%)":"translateY(0)",paddingTop:e?"2rem":t?"1rem":"0",paddingBottom:e?"2rem":t?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:ta.orangeIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill z-10002",style:{lineHeight:"1.1",color:"#fff"},children:"About us"})]})})]}
304),o.jsx("section",{className:"mx-auto my-10 w-[80%] max-w-[1290px] overflow-hidden rounded-[15px]",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[o.jsxs("div",{className:"relative h-[260px] md:h-[300px] flex items-center justify-start p-6 md:p-10",style:{backgroundImage:`url(${ta.visionBg})`,backgroundSize:"cover",backgroundPosition:"center",transform:"scaleX(-1)"},children:[o.jsx("div",{className:"absolute inset-0 bg-[#1C3664]/80"}),o.jsxs("div",{className:"relative max-w-[80%]",style:{transform:"scaleX(-1)"},children:[o.jsx("h3",{className:"text-white text-[28px] md:text-[40px] font-[400]",children:"Vision"}),o.jsx("p",{className:"mt-2 text-white/95 text-[16px] md:text-[19px] leading-relaxed",children:"To Create an environment that enables the making of a self-aware, autonomous, happy and a successful human being."})]})]}),o.jsxs("div",{className:"relative h-[260px] md:h-[300px] flex items-center justify-start p-6 md:p-10",style:{backgroundImage:`url(${ta.missionBg})`,backgroundSize:"cover",backgroundPosition:"center"},children:[o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/80"}),o.jsxs("div",{className:"relative max-w-[80%]",children:[o.jsx("h3",{className:"text-white text-[28px] md:text-[40px] font-[400]",children:"Mission"}),o.jsx("p",{className:"mt-2 text-white/95 text-[16px] md:text-[19px] leading-relaxed",children:"To Nurture Truly Empowered Girl Child And Open Doors For Mainstream And Alternate Careers."})]})]})]})}),o.jsx("section",{className:"bg-[#F9F9F9] py-12 md:py-16",children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1100px]",children:[o.jsx("h2",{className:"text-[#1C3664] text-center tracking-[0.02em]",style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontSize:"clamp(34px,4vw,52px)"},children:"Amatir's Journey Through the Years"}),o.jsxs("div",{className:"relative mt-10 md:mt-12",ref:n,children:[o.jsx("div",{className:"hidden md:block absolute left-1/2 top-0 bottom-0 -translate-x-1/2 w-[2px] bg-[#ED6D23]"}),o.jsx("span",{ref:s,className:"hidden md:block absolute left-1/2 z-10 h-4 w-4 rounded-full bg-[#ED6D23] transition-transform duration-500 ease-[cubic-bezier(.22,.61,.36,1)]",style:{top:0,transform:"translate(5%, 5px)",boxShadow:"0 0 0 6px rgba(237,109,35,0.35), 0 0 10px rgba(237,109,35,0.55), 0 0 22px rgba(237,109,35,0.35)"}}),a.map((w,N)=>{const _=N%2===0,E=_?"bg-[#EFF3FA]":"bg-[#F7F3ED]";return o.jsx("div",{ref:r.current[N],className:"relative py-10 md:py-14",children:o.jsxs("div",{className:`flex flex-col md:flex-row items-start md:items-center gap-8 md:gap-12 ${_?"":"md:flex-row-reverse"}`,children:[o.jsxs("div",{className:`w-full md:w-1/2 flex flex-col ${_?"items-end md:pr-10":"items-start md:pl-10"}`,children:[o.jsx("div",{className:"mb-2 text-[#1C3664] font-semibold whitespace-nowrap self-center md:self-auto",style:{fontFamily:"CentSchbkCyrill BT, serif",fontSize:"clamp(18px,2.2vw,24px)"},children:w.date}),o.jsx("img",{src:w.img,alt:w.title,className:`rounded-[10px] object-cover w-full max-w-[280px] md:max-w-[300px] ${_?"self-center md:self-end":"self-center md:self-start"}`})]}),o.jsxs("article",{className:`w-full md:w-1/2 rounded-[20px] p-6 ${E}`,children:[o.jsx("h4",{className:"text-[#1C3664] mb-2",style:{fontFamily:"CentSchbkCyrill BT, serif",fontSize:"clamp(20px,2.4vw,24px)"},children:w.title}),o.jsx("p",{className:"leading-7 text-[#555]",style:{fontFamily:"Univers, ui-sans-serif, system-ui",fontSize:"clamp(15px,1.8vw,16px)"},children:w.text})]})]})},w.title+N)})]})]})}),o.jsx("section",{className:"py-12 md:py-16",children:o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px]",children:[o.jsxs("div",{className:"relative overflow-hidden rounded-[8px]",children:[o.jsx("img",{src:ta.initiativesHeader,alt:"Initiatives",className:"h-[560px] w-full object-cover md:h-[680px]"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-[#1C3664]/60 to-[#0E2B5C]"}),o.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 bottom-10 md:bottom-16 w-[90%] text-center text-white",children:[o.jsx("h2",{className:"font-serif text-[#ED6D23] text-[48px] md:text-[64px] leading-none font-normal",children:"Initiatives"}),o.jsx("p",{className:"mx-auto mt-3 md:mt-5 max-w-[900px] text-[16px] leading-7 md:text-[20px] md:leading-9",children:"Anant Charitable Trust is deeply committed to fostering awareness, driving positive change, and uplifting the local and wider communities through initiatives such as"})]})]}),o.jsx("div",{className:"relative z-[2] -mt-10 grid grid-cols-1 gap-6 p-6 md:-mt-14 md:grid-cols-3",children:[{key:"sch",icon:ta.vidyaIcon,title:"Vidyaशà¥à¤°à¥ Scholarship",bg:"bg-[#FEF5EC]"},{key:"disp",icon:ta.dispensaryIcon,title:"Charitable Dispensary",bg:"bg-[#EEF3FA]"},{key:"comm",icon:ta.communityIcon,title:"Community Engagement",bg:"bg-[#FEF5EC]"}].map(w=>o.jsxs("article",{className:"text-center",children:[o.jsx("div",{className:`mx-auto mb-6 flex h-[120px] w-[120px] items-center justify-center rounded-full ${w.bg}`,children:o.jsx("img",{src:w.icon,alt:"",className:"h-[60px] w-[60px]"})}),o.jsx("h4",{className:"text-[#1C3664] text-[20px] md:text-[24px] mb-3",children:w.title}
304),o.jsxs("p",{className:"px-4 text-[15px] md:text-[16px] leading-7 text-[#555]",children:[w.key==="sch"&&"To uplift deserving students, the Trust offers 100% scholarships for Class 9 and 11 students. These scholarships are awarded to top performers who come from humble backgrounds, recognizing both their potential and perseverance.",w.key==="disp"&&"The Anant Charitable Trust operates a free dispensary on Amatir's premises, offering treatment and medicines to residents of neighboring villages, ensuring accessible healthcare for all.",w.key==="comm"&&"Students bring meaningful change to over 125 villages through impactful street plays and theater, raising awareness on crucial issues such as Beti Bachao Beti Padhao, sanitation, and women empowerment."]})]},w.key))})]})}),o.jsx("section",{className:"bg-[#F9F9F9] py-12 md:py-16",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[1290px]",children:[o.jsx("h2",{className:"text-center text-[#1C3664] text-[26px] md:text-[36px]",children:"Trustees and Office Bearers"}),o.jsx("p",{className:"mx-auto mb-10 max-w-[820px] text-center text-[16px] md:text-[18px] leading-8 text-[#3A2323]",children:"Behind Amatir's vision is a group of committed individualsâeducators, professionals, and changemakersâwho bring their diverse experience and shared purpose to guide the school and its students."}),o.jsx(ase,{})]})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}function lse(t,e,n){return Math.max(e,Math.min(t,n))}function cse(){const t=T.useRef(null),e=T.useRef(null),n=T.useRef([0,1,2,3].map(()=>$e.createRef())),[s,r]=T.useState(0),[a,l]=T.useState(48);T.useEffect(()=>{window.location.hash==="#aptitude-test"&&setTimeout(()=>{const m=document.getElementById("aptitude-test");if(m){const b=m.getBoundingClientRect().top+window.pageYOffset-88;window.scrollTo({top:b,behavior:"smooth"})}},100)},[]);const c=120,u=8;return T.useEffect(()=>{let f=0;const m=()=>{const x=window.scrollY+window.innerHeight/2;let b=0,v=1/0;n.current.forEach((_,E)=>{const k=_.current?.getBoundingClientRect();if(!k)return;const C=k.top+window.scrollY+k.height/2,A=Math.abs(C-x);A<v&&(v=A,b=E)}),b!==s&&r(b);const w=e.current?.getBoundingClientRect(),N=n.current[b]?.current?.getBoundingClientRect();if(w&&N){const _=N.top+window.scrollY+N.height/2,E=w.top+window.scrollY,k=_-E,C=lse(k,u+16,w.height-(u+16));l(C)}},g=()=>{f&&cancelAnimationFrame(f),f=requestAnimationFrame(m)};return g(),window.addEventListener("scroll",g,{passive:!0}),window.addEventListener("resize",g),()=>{f&&cancelAnimationFrame(f),window.removeEventListener("scroll",g),window.removeEventListener("resize",g)}},[s]),o.jsxs("section",{ref:t,className:"relative mx-auto mb-16 w-[92%] max-w-[66.25rem] pb-2",children:[o.jsx("div",{className:"absolute left-1/2 top-0 hidden h-full -translate-x-1/2 border-l-2 border-[#ED6D23] md:block"}),o.jsx("div",{ref:e,className:"pointer-events-none absolute left-1/2 top-0 hidden h-full w-[260px] -translate-x-1/2 md:block z-1000",children:o.jsxs("svg",{className:"absolute inset-0 h-full w-full","aria-hidden":"true",children:[o.jsxs("defs",{children:[o.jsxs("filter",{id:"jt-dot-glow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[o.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"5",result:"blur"}),o.jsxs("feMerge",{children:[o.jsx("feMergeNode",{in:"blur"}),o.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),o.jsxs("mask",{id:"jt-spot-mask",children:[o.jsx("rect",{width:"100%",height:"100%",fill:"white"}),o.jsx("g",{style:{transform:`translateY(${a}px)`,transition:"transform 500ms cubic-bezier(.22,.61,.36,1)"},children:o.jsx("circle",{cx:"5%",cy:"0",r:c,fill:"black"})})]})]}),o.jsx("rect",{width:"100%",height:"100%",fill:"black",opacity:"0",mask:"url(#jt-spot-mask)"}),o.jsxs("g",{style:{transform:`translateY(${a}px)`,transition:"transform 500ms cubic-bezier(.22,.61,.36,1)"}
304,filter:"url(#jt-dot-glow)",children:[o.jsx("circle",{cx:"50%",cy:"0",r:u,fill:"#ED6D23"}),o.jsx("circle",{cx:"50%",cy:"0",r:u+6,fill:"none",stroke:"#ED6D23",strokeOpacity:"0.35"})]})]})}),o.jsxs("div",{className:"flex flex-col gap-8",children:[o.jsxs("div",{ref:n.current[0],className:"grid items-stretch gap-6 md:grid-cols-2",children:[o.jsx("div",{className:"rounded-[0.75rem] bg-[#F3F5F8] p-6 md:p-7",children:o.jsx("div",{className:"mx-auto mt-3 grid place-items-center rounded-md border border-slate-200 bg-slate-50",children:o.jsx("img",{src:"/images/Addmission_1.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})}),o.jsxs("div",{className:["relative rounded-[0.75rem] bg-[#EEF4FB] p-6 md:p-7 transition-all duration-500 ease-[cubic-bezier(.22,.61,.36,1)]",s===0?"scale-[1.03] shadow-[0_15px_40px_rgba(0,0,0,0.08)]":"scale-[0.995]"].join(" "),children:[o.jsx("p",{className:"mt-2 text-[0.875rem] font-semibold text-[#1C3664]",children:"Take the First Step"}),o.jsx("h3",{id:"aptitude-test",className:"font-serif text-[1.375rem] md:text-[1.5rem]",children:"Apply for the Aptitude Test"}),o.jsx("p",{className:"mt-2 text-[0.813rem] leading-6 text-[#3E4450]",children:"Begin by filling out a simple application form. This helps us understand your daughter's background, interests, and learning needs, and ensures the rest of the process is tailored to your family's specific requirements from the outset."}),o.jsx(Ve,{to:"/campus-visit#campus-form",className:"mt-4 inline-flex h-[2.125rem] items-center rounded-full bg-[#ED6D23] px-4 text-[0.813rem] text-white hover:brightness-105 cursor-pointer",onClick:()=>{setTimeout(()=>{const f=document.getElementById("campus-form");f&&f.scrollIntoView({behavior:"smooth"})},100)},children:"Apply"})]})]}),o.jsxs("div",{ref:n.current[1],className:"grid items-stretch gap-6 md:grid-cols-2",children:[o.jsxs("div",{className:["relative order-2 rounded-[0.75rem] bg-[#FEF3EA] p-6 md:order-1 md:p-7 transition-all duration-500 ease-[cubic-bezier(.22,.61,.36,1)]",s===1?"scale-[1.03] shadow-[0_15px_40px_rgba(0,0,0,0.08)]":"scale-[0.995]"].join(" "),children:[o.jsx("h3",{className:"text-center font-serif text-[1.375rem] md:text-[1.5rem]",children:"Academic Assessment"}),o.jsx("p",{className:"mt-2 text-center text-[0.875rem] font-semibold text-[#1C3664]",children:"Appear for the Aptitude Exam"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[32.5rem] text-center text-[0.813rem] leading-6 text-[#3E4450]",children:"Once we receive the application, your daughter will be invited to take a brief aptitude test. This helps us assess her current academic level and learning strengths so we can place her in the right environment from day one."})]}),o.jsx("div",{className:"order-1 rounded-[12px] bg-[#F3F5F8] p-6 md:order-2 md:p-7",children:o.jsx("div",{className:"mx-auto mt-3 grid place-items-center rounded-md border border-slate-200 bg-slate-50",children:o.jsx("img",{src:"/images/Addmission_2.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})})]}),o.jsxs("div",{ref:n.current[2],className:"grid items-stretch gap-6 md:grid-cols-2",children:[o.jsx("div",{className:"rounded-[12px] bg-[#F3F5F8] p-6 md:p-7",children:o.jsx("div",{className:"mx-auto mt-3 grid place-items-center rounded-md border border-slate-200 bg-slate-50",children:o.jsx("img",{src:"/images/Addmission_3.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})}),o.jsxs("div",{className:["relative rounded-[12px] bg-[#EEF4FB] p-6 md:p-7 transition-all duration-500 ease-[cubic-bezier(.22,.61,.36,1)]",s===2?"scale-[1.03] shadow-[0_15px_40px_rgba(0,0,0,0.08)]":"scale-[0.995]"].join(" "),children:[o.jsx("h3",{className:"font-serif text-[22px] md:text-[24px]",children:"Counselling"}),o.jsx("p",{className:"mt-2 text-[14px] font-semibold text-[#1C3664]",children:"Share Your Story"}),o.jsx("p",{className:"mt-2 text-[13px] leading-6 text-[#3E4450]",children:"Shortlisted candidates and their guardians will be invited for an interaction with our psychologist. This is a warm, open conversation designed to understand the child better and explore how Amatir can best support her aspirations. We'll also walk you through eligibility, guidelines, and every detail you need for a smooth transition into our Residential School Admission program."})]})]}),o.jsxs("div",{ref:n.current[3],className:"grid items-stretch gap-6 md:grid-cols-2",children:[o.jsxs("div",{className:["relative order-2 rounded-[0.75rem] bg-[#FEF3EA] p-6 md:order-1 md:p-7 transition-all duration-500 ease-[
304cubic-bezier(.22,.61,.36,1)]",s===3?"scale-[1.03] shadow-[0_15px_40px_rgba(0,0,0,0.08)]":"scale-[0.995]"].join(" "),children:[o.jsx("h3",{className:"text-center font-serif text-[1.375rem] md:text-[1.5rem]",children:"Admission Confirmation"}),o.jsx("p",{className:"mt-2 text-center text-[0.875rem] font-semibold text-[#1C3664]",children:"Begin Your Educational Journey"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[32.5rem] text-center text-[0.813rem] leading-6 text-[#3E4450]",children:"Based on the outcome of the test and interview, selected students will receive an official offer of admission."}),o.jsx("div",{className:"mt-4 flex justify-center",children:o.jsx("a",{href:"/Amatir_Admission_process.pdf",target:"_blank",rel:"noopener noreferrer",children:o.jsx("button",{className:"inline-flex h-[2.125rem] items-center rounded-full bg-[#ED6D23] px-4 text-[0.813rem] text-white hover:brightness-105 cursor-pointer",children:"Admission Documents"})})})]}),o.jsx("div",{className:"order-1 rounded-[12px] bg-[#F3F5F8] p-6 md:order-2 md:p-7",children:o.jsx("div",{className:"mx-auto mt-3 grid place-items-center rounded-md border border-slate-200 bg-slate-50",children:o.jsx("img",{src:"/images/Addmission_4.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})})]})]})]})}const Ai={hero:"/images/AMATIR_6_wnap9t.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",feeBg:"publi/images/Rectangle_35_gls0ou.jpg",r100:"/images/visitcampus01_km6bdu.jpg",r101:"/images/visitcampus02_yuqzej.jpg",r102:"/images/3_15_dsxyok.jpg",r103:"/images/3_22_tfbpa0.jpg",r104:"/images/3_21_mz9q9b.jpg",r105:"/images/IMG_7695_mjsnqe.jpg",r106:"/images/3_19_qkmb6a.jpg",r108:"/images/3_10_clljar.jpg",r109:"/images/3_9_ivacze.jpg"},Oo=({src:t,left:e,top:n,scale:s=1,leftValue:r,topValue:a})=>o.jsx("img",{src:t,alt:"",draggable:"false",className:["absolute rounded-[0.625rem] object-cover","shadow-[0_1.5rem_3.75rem_rgba(0,20,60,0.18)]"].join(" "),style:{width:`${11.625*s}rem`,height:`${14.25*s}rem`,left:r?`${r*s}rem`:void 0,top:a?`${a*s}rem`:void 0}});function dse(){xs({title:"Amatir Kanya Gurukul Admission | Best Girls Boarding School",description:"Admissions open at Amatir Kanya Gurukul, a trusted residential girls school in Kurukshetra, Haryana offering CBSE education and holistic development.",keywords:""});const t=Y({maxWidth:768}),e=Y({maxWidth:1024});Y({maxHeight:600});const n=Y({maxWidth:1280}),s=Y({minWidth:1025,maxWidth:1366}),[r,a]=T.useState(window.innerWidth);T.useEffect(()=>{window.location.hash==="#aptitude-test"&&setTimeout(()=>{const g=document.getElementById("aptitude-test");if(g){const v=g.getBoundingClientRect().top+window.pageYOffset-88;window.scrollTo({top:v,behavior:"smooth"})}},200)},[]),T.useEffect(()=>{const m=()=>{a(window.innerWidth)};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const c=(()=>{const b=r/16;if(e){const w=b-1,N=Math.min(.7,w/89.063);return{containerWidth:"100%",containerHeight:"28rem",scale:Math.max(.3,N),maxWidth:"100vw",padding:"0.5rem"}}if(n){const w=b-2,N=Math.min(.8,w/89.063);return{containerWidth:"100%",containerHeight:"32rem",scale:Math.max(.4,N),maxWidth:"100vw",padding:"1rem"}}if(s){const w=b-3,N=Math.min(.9,w/89.063);return{containerWidth:"100%",containerHeight:"35rem",scale:Math.max(.5,N),maxWidth:"100vw",padding:"1.5rem"}}return{containerWidth:"88.125rem",containerHeight:"35.063rem",scale:1,maxWidth:"88.125rem",padding:"0"}})();console.log("Viewport width:",r,"px"),console.log("Collage dimensions:",c);const[u,f]=T.useState(!1);return T.useRef(null),o.jsxs("main",{className:"w-full overflow-x-hidden bg-white text-[#1C3664]",children:[o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",marginTop:"60px",minHeight:e?"400px":"480px"},children:[o.jsx("img",{src:Ai.hero,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#0E2A55]/60"}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end mt-[-8%] justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:e?"translateY(-10%)":t?"translateY(-5%)":"translateY(0)",paddingTop:e?"2rem":t?"1rem":"0",paddingBottom:e?"2rem":t?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:Ai.orangeIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill z-10002",style:{lineHeight:"1.1",color:"#fff",marginBottom:"10%"},children:"Amatir Kanya Gurukul Admissions"})]})})]}),o.jsxs("section",{className:"mx-auto w-[92%] max-w-[66.25rem] py-12 md:py-16",children:[o.jsx("h2",{className:"mx-auto mb-3 text-center",style:{fontFamily:"'CentSchbkCyrill BT', serif",fontWeight:400,fontStyle:"normal",fontSize:"44px",lineHeight:"120%",letterSpacing:"0%",textAlign:"center"},children:"Your Journey to Excellence Begins Here"}),o.jsx("p",{className:"mx-auto max-w-[47.5rem] text-center text-[18px] leading-[1.5] text-[#3E4450]",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"-0.02em",textAlign:"center"},children:"At Amatir, admissions are more than just a processâthey mark the beginning of a meaningful journey for your daughter. Whether you're considering Amatir Kanya Gurukul admission for 2025 or seeking clarity on the gurukul kurukshetra fee structure, we are here to provide guidance at every step. Here's a look at how the admission process unfolds:"})]}),o.jsx(cse,{}),o.jsx("section",{className:"relative w-full",children:o.jsxs("div",{className:"relative mx-auto h-[15.75rem] w-full overflow-hidden",children:[o.jsx("img",{src:Ai.feeBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#0E2A55]/92"}),o.jsxs("div",{className:"relative z-[1] mx-auto flex h-full w-full flex-col items-center justify-center text-center text-white",children:[o.jsx("h3",{className:"font-serif font-normal text-[32px] leading-[120%] text-center",children:"Fee Structure"}),o.jsx("p",{className:"mt-2 max-w-[45rem] text-center text-[18px] leading-[1.5] font-normal",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"-0.02em",textAlign:"center"},children:"Check the latest structure, concessions, and scholarship options."}),o.jsx("a",{href:"/FEE_STRUCTURE_2025-26.pdf",target:"_blank",rel:"noopener noreferrer",children:o.jsx("button",{className:"mt-5 inline-flex h-[2.5rem] items-center rounded-full bg-[#ED6D23] px-5 text-[0.875rem] font-medium text-white shadow-[0_0.625rem_1.25rem_rgba(237,109,35,0.35)] hover:brightness-105 cursor-pointer",children:"Download"})})]})]})}),o.jsx("section",{className:"my-16 hidden lg:block overflow-x-hidden",style:{width:c.containerWidth,maxWidth:c.maxWidth,padding:c.padding,marginLeft:"auto",marginRight:"auto"},children:o.jsxs("div",{className:"relative w-full",style:{height:c.
304containerHeight},children:[o.jsx(Oo,{src:Ai.r108,leftValue:.938,topValue:0,scale:c.scale}),o.jsx(Oo,{src:Ai.r109,leftValue:.938,topValue:15.375,scale:c.scale}),o.jsx(Oo,{src:Ai.r103,leftValue:26.438,topValue:.563,scale:c.scale}),o.jsx(Oo,{src:Ai.r102,leftValue:13.688,topValue:6.5,scale:c.scale}),o.jsx(Oo,{src:Ai.r104,leftValue:39.188,topValue:4.063,scale:c.scale}),o.jsx(Oo,{src:Ai.r105,leftValue:51.938,topValue:.563,scale:c.scale}),o.jsx(Oo,{src:Ai.r106,leftValue:64.688,topValue:6.5,scale:c.scale}),o.jsx(Oo,{src:Ai.r100,leftValue:77.438,topValue:0,scale:c.scale}),o.jsx(Oo,{src:Ai.r101,leftValue:77.438,topValue:15.375,scale:c.scale}),o.jsx("h3",{className:"absolute left-1/2 w-[90%] max-w-[27.563rem] -translate-x-1/2 text-center font-serif leading-[1.2] text-[#1C3664]",style:{top:`${21.5*c.scale}rem`,fontSize:`${2.75*c.scale}rem`},children:"Visit Campus"}),o.jsx("p",{className:"absolute left-1/2 w-[90%] max-w-[49.938rem] -translate-x-1/2 text-center leading-7 text-[#3E4450]",style:{top:`${26.375*c.scale}rem`,fontSize:`${.938*c.scale}rem`,width:window.innerWidth<=1024&&window.innerHeight<=600?"72%":void 0},children:"We warmly invite prospective parents to visit the Amatir campus, interact with our team, and experience firsthand the vibrant learning environment of our Gurukul, a place families across the region have come to know as a trusted home for their daughters' education."}),o.jsx(Ve,{to:"/campus-visit",className:"absolute left-1/2 -translate-x-1/2 inline-flex items-center justify-center rounded-full bg-[#ED6D23] text-white shadow-[0_0.625rem_1.25rem_rgba(237,109,35,0.35)] hover:brightness-105 cursor-pointer",style:{top:`${31.938*c.scale}rem`,height:`${3.125*c.scale}rem`,width:`${10.25*c.scale}rem`,fontSize:`${.938*c.scale}rem`},children:"Schedule a visit"})]})}),o.jsxs("section",{className:"px-5 lg:hidden",children:[o.jsx("h3",{className:"text-center font-serif text-[2.125rem] leading-tight",children:"Visit Campus"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[45rem] text-center text-[0.938rem] leading-7 text-[#3E4450]",children:"We warmly invite prospective parents to visit the Amatir campus, interact with our team, and experience firsthand the vibrant learning environment of our Gurukul, a place families across the region have come to know as a trusted home for their daughters' education."}),o.jsx("div",{className:"mx-auto mt-7 grid max-w-[47.5rem] grid-cols-2 gap-4",children:[Ai.r108,Ai.r103,Ai.r104,Ai.r100,Ai.r102,Ai.r105].map((m,g)=>o.jsx("img",{src:m,alt:"",className:"aspect-[186/228] w-full rounded-[0.625rem] object-cover shadow-[0_0.875rem_1.875rem_rgba(0,20,60,0.12)]"},g))}),o.jsx("div",{className:"my-8 flex justify-center",children:o.jsx("a",{href:"/campus-visit",className:"inline-flex h-[3rem] items-center rounded-full bg-[#ED6D23] px-6 text-[0.938rem] text-white shadow-[0_0.625rem_1.25rem_rgba(237,109,35,0.35)] hover:brightness-105 cursor-pointer",children:"Schedule a visit"})})]}),o.jsx("section",{className:"relative mx-auto mt-8 w-full overflow-hidden",children:o.jsxs("div",{className:"relative h-[15.25rem] w-full",children:[o.jsx("img",{src:Ai.feeBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/92 "}),o.jsxs("div",{className:"relative z-[1] flex h-full flex-col items-center justify-center text-center text-white",children:[o.jsx("h4",{className:"font-ptserif font-normal not-italic text-[2rem] leading-[120%] tracking-normal text-center",children:"Unlock her future!"}),o.jsx("p",{className:"mt-2 text-center univers-regular opacity-95",children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/Contact",className:"mt-4 inline-flex h-[2.375rem] items-center cursor-pointer rounded-full bg-[#1C3664] px-5 text-[0.875rem] font-medium text-white ring-1 ring-white/40 backdrop-blur hover:bg-[#1C3664]/20",children:"Get In Touch"})]})]})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}/** 305 * @license lucide-react v0.542.0 - ISC 306 * 307 * This source code is licensed under the ISC license. 308 * See the LICENSE file in the root directory of this source tree. 309 */const use=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hse=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,s)=>s?s.toUpperCase():n.toLowerCase()),H4=t=>{const e=hse(t);return e.charAt(0).toUpperCase()+e.slice(1)},X8=(...t)=>t.filter((e,n,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===n).join(" ").trim(),fse=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/** 310 * @license lucide-react v0.542.0 - ISC 311 * 312 * This source code is licensed under the ISC license. 313 * See the LICENSE file in the root directory of this source tree. 314 */var mse={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"};/** 315 * @license lucide-react v0.542.0 - ISC 316 * 317 * This source code is licensed under the ISC license. 318 * See the LICENSE file in the root directory of this source tree. 319 */const pse=T.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:a,iconNode:l,...c},u)=>T.createElement("svg",{ref:u,...mse,width:e,height:e,stroke:t,strokeWidth:s?Number(n)*24/Number(e):n,className:X8("lucide",r),...!a&&!fse(c)&&{"aria-hidden":"true"},...c},[...l.map(([f,m])=>T.createElement(f,m)),...Array.isArray(a)?a:[a]]));/** 320 * @license lucide-react v0.542.0 - ISC 321 * 322 * This source code is licensed under the ISC license. 323 * See the LICENSE file in the root directory of this source tree. 324 */const bc=(t,e)=>{const n=T.forwardRef(({className:s,...r},a)=>T.createElement(pse,{ref:a,iconNode:e,className:X8(`lucide-${use(H4(t))}`,`lucide-${t}`,s),...r}));return n.displayName=H4(t),n};/** 325 * @license lucide-react v0.542.0 - ISC 326 * 327 * This source code is licensed under the ISC license. 328 * See the LICENSE file in the root directory of this source tree. 329 */const gse=[["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"}]],Z8=bc("book-open",gse);/** 330 * @license lucide-react v0.542.0 - ISC 331 * 332 * This source code is licensed under the ISC license. 333 * See the LICENSE file in the root directory of this source tree. 334 */const xse=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yse=bc("chevron-down",xse);/** 335 * @license lucide-react v0.542.0 - ISC 336 * 337 * This source code is licensed under the ISC license. 338 * See the LICENSE file in the root directory of this source tree. 339 */const bse=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],$p=bc("chevron-left",bse);/** 340 * @license lucide-react v0.542.0 - ISC 341 * 342 * This source code is licensed under the ISC license. 343 * See the LICENSE file in the root directory of this source tree. 344 */const vse=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Up=bc("chevron-right",vse);/** 345 * @license lucide-react v0.542.0 - ISC 346 * 347 * This source code is licensed under the ISC license. 348 * See the LICENSE file in the root directory of this source tree. 349 */const wse=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Nse=bc("chevron-up",wse);/** 350 * @license lucide-react v0.542.0 - ISC 351 * 352 * This source code is licensed under the ISC license. 353 * See the LICENSE file in the root directory of this source tree. 354 */const Sse=[["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"}]],ab=bc("download",Sse);/** 355 * @license lucide-react v0.542.0 - ISC 356 * 357 * This source code is licensed under the ISC license. 358 * See the LICENSE file in the root directory of this source tree. 359 */const _se=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M14 13a2 2 0 0 0 2-2V9h-2",key:"zjz9hw"}],["path",{d:"M8 13a2 2 0 0 0 2-2V9H8",key:"14e02x"}]],J8=bc("message-square-quote",_se);/** 360 * @license lucide-react v0.542.0 - ISC 361 * 362 * This source code is licensed under the ISC license. 363 * See the LICENSE file in the root directory of this source tree. 364 */const jse=[["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"}]],Q8=bc("play",jse);function Ese({title:t,content:e,ctas:n=[],hovered:s,setHovered:r,index:a,height:l="h-[534px]",rounded:c="rounded-[10px]"}){const u=s===null?1:s===a?3:1,[f,m]=T.useState(!1);$e.useEffect(()=>{if(s===a){const x=setTimeout(()=>{m(!0)},600);return()=>clearTimeout(x)}else m(!1)},[s,a]);const g=x=>{switch(x){case"Classical Hatha Yoga":return"/images/IMG_1083_nvwdp3.jpg";case"Sadhana":return"/images/sadhana_img.jpg";case"Sewa":return"/images/2_6_axma0v.jpg";case"Inner Engineering":return"/images/Inner_Engineering_htmol2.jpg";case"Sandhya":return"/images/sandhya_sz7fax.jpg";case"Hawan":return"/images/Hawan02_nzsse2.jpg";case"Atma Dhyan":return"/images/Hawan02_nzsse2 (1).jpg";case"Spiritual Excursions":return"/images/Rectangle_63_phii3n.jpg";default:return"/images/Rectangle_63_phii3n.jpg"}};return o.jsxs("div",{onMouseEnter:()=>r(a),onMouseLeave:()=>r(null),className:`relative basis-0 min-w-0 ${l} ${c} overflow-hidden select-none`,style:{flexGrow:u,willChange:"flex-grow, transform",transitionProperty:"flex-grow, transform",transitionDuration:"600ms",transitionTimingFunction:"cubic-bezier(0.37, 0.0, 0.63, 1.0)"},children:[o.jsx("img",{src:g(t),alt:t,className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute left-4 bottom-4 right-4",children:o.jsx("div",{className:"text-white font-['CentSchbkCyrill_BT'] font-normal not-italic leading-[140%] tracking-[0%]",style:{fontSize:"28px"},children:t})}),o.jsx("div",{className:`absolute inset-0 grid place-items-center 365 bg-black/70 backdrop-blur-[1px] 366 transition-opacity duration-300 367 ${s===a?"opacity-100":"opacity-0 pointer-events-none"}`,children:o.jsxs("div",{className:"w-[86%] md:w-[72%] max-w-[720px] max-h-[86%] overflow-hidden rounded",children:[o.jsx("h3",{className:"text-white text-xl md:text-2xl font-semibold text-center mb-3",children:t}),o.jsx("div",{className:`text-white/95 text-sm md:text-[15px] leading-relaxed text-justify whitespace-pre-line transition-opacity duration-500 ease-out ${f?"opacity-100":"opacity-0"}`,style:{textAlign:"justify"},children:e}),n.length>0&&o.jsx("div",{className:`mt-5 flex items-center justify-center gap-3 transition-opacity duration-500 ease-out ${f?"opacity-100":"opacity-0"}`,children:n.map((x,b)=>o.jsx("button",{className:"px-4 py-2 text-sm font-medium border border-white/80 text-white/95 hover:bg-white hover:text-zinc-900 transition-colors cursor-pointer",children:x},b))})]})})]})}function $4({items:t,height:e="h-[534px]"}){const[n,s]=T.useState(null);return o.jsx("div",{className:"flex w-full gap-6 overflow-hidden",children:t.map((r,a)=>o.jsx(Ese,{...r,height:e,hovered:n,setHovered:s,index:a},r.title))})}
367function kse({id:t}){const e={Sadhana:` At Amatir Kanya Gurukul, Sadhana reflects the spirit of dedicated effort and self-discipline that shapes every studentâs journey. This disciplined way of life helps children cultivate focus, responsibility, and inner strength. 368 369From maintaining personal and shared spaces with care, observing silence during certain hours, rising early, following structured routines, to approaching learning with sincerity and humility â these daily practices nurture a sense of order, respect, and commitment. Through Sadhana, students grow into individuals who carry grace, resilience, and purpose into every aspect of their lives. 370`,Hatha:`Isha Hatha Yoga at Amatir offers authentic practices from an ancient tradition, taught in their purest form by trained teachers from Sadhguru Gurukulam. More than just physical exercise, these practices help the child build strength, balance, clarity, and inner joy â supporting overall health and well-being. 371 372The program includes Upa Yoga, Angamardana, Surya Kriya, Yogasanas, and Bhuta Shuddhi, enabling the student to align body, mind, and energies, and blossom into their fullest potential. 373`,Sandhya:`Sandhya is a cherished part of daily life at Amatir Kanya Gurukul. This evening prayer brings together all students in an atmosphere of devotion, gratitude, and positivity. 374 375Through this sacred practice, children cultivate inner calm, focus, and reverence. Sandhya nurtures a deep sense of connection â with themselves, with each other, and with something greater â offering a meaningful close to each day. 376`,Sewa:`Sewa â or selfless service â is an essential part of life at Amatir Kanya Gurukul. Through small acts of volunteering, students learn the joy of contributing without expectation, developing humility, responsibility, and compassion. 377 378Whether helping maintain their surroundings, supporting daily activities, or lending a hand to peers and teachers, children experience the value of working together for the greater good. Sewa nurtures a spirit of generosity and belonging, shaping students into mindful, caring individuals. 379`,Hawan:`At Amatir Kanya Gurukul, Hawan is a sacred morning practice where students participate in traditional fire offerings accompanied by Vedic chanting. This ancient ritual fosters purity, gratitude, and mindfulness, as children learn to offer with devotion and reverence. 380 381Through Hawan, students experience a deep sense of connection â honoring nature, cultivating inner discipline, and starting each day with positive intention and harmony. 382`,InnerEngineering:` Inner Engineering is a transformative program designed by Sadhguru, offering powerful tools to take charge of your body, mind, emotions, and energies. 383 384Rooted in the ancient science of yoga, Inner Engineering helps students build a foundation of health, clarity, and inner joy. Through guided practices and the sacred Shambhavi Mahamudra Kriya, it nurtures emotional balance, resilience, and a deep sense of harmony â empowering them to navigate modern life with confidence, ease, and meaningful connection to the world around them.`,SpiritualExcursions:` At Amatir Kanya Gurukul, spiritual excursions are an enriching part of the learning journey. The school organizes visits to sacred places like Rishikesh, Amritsar, and other centers of spiritual significance. 385 386These experiences give students the opportunity to connect with Indiaâs rich spiritual and cultural heritage, deepen their sense of devotion, and reflect on higher values. 387`},n=[{title:"Inner Engineering",content:e.InnerEngineering},{title:"Sadhana",content:e.Sadhana},{title:"Classical Hatha Yoga",content:e.Hatha}],s=[{title:"Sewa",content:e.Sewa},{title:"Hawan",content:e.Hawan},{title:"Sandhya",content:e.Sandhya},{title:"Spiritual Excursions",content:e.SpiritualExcursions}];return o.jsxs("section",{id:t,className:"w-full",style:{background:"#ED6D231A"},children:[o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1200px] pt-8 pb-4 text-center",children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsxs("svg",{width:"59",height:"38",viewBox:"0 0 59 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M57.1478 5.12402C46.3172 5.49505 35.9196 11.9527 30.4071 20.884C29.9831 21.5465 29.5414 21.7585 29.1262 21.7585C28.711 21.7585 28.2693 21.5465 27.8452 20.884C22.3328 11.9527 11.9351 5.4950
3875 1.10458 5.12402C0.17701 5.12402 -0.291193 5.41555 0.194679 6.47563C5.92797 19.5147 14.5677 37.4389 29.1262 37.5273C43.6847 37.4389 52.3244 19.5147 58.0577 6.47563C58.5524 5.41555 58.0753 5.12402 57.1478 5.12402Z",fill:"#002F82"}),o.jsx("path",{d:"M34.3818 5.12375C34.3818 7.95064 32.0231 10.2475 29.1167 10.2475C26.2103 10.2475 23.8516 7.95064 23.8516 5.12375C23.8516 2.29685 26.2103 0 29.1167 0C32.0231 0 34.3818 2.29685 34.3818 5.12375C34.3818 5.12375Z",fill:"#002F82"})]})}),o.jsx("h2",{className:"text-[#ED6D23] font-['CentSchbkCyrill_BT'] font-normal not-italic text-center leading-[120%] tracking-[0%]",style:{fontSize:"62px"},children:"Gurukul"}),o.jsx("p",{className:"mt-4 text-black text-center text-base leading-relaxed",children:"Guided by Dharma, Prepared for the World"})]}),o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1200px] pt-8 pb-4 text-center",children:[o.jsx("h3",{className:"text-[#1C3664] font-['CentSchbkCyrill_BT'] font-normal not-italic text-center leading-[120%] tracking-[0%]",style:{fontSize:"44px"},children:"Atma Dhyan"}),o.jsx("p",{className:"mt-4 text-black text-center text-base leading-relaxed max-w-4xl mx-auto",children:"Rooted in India's spiritual tradition, Atma Dhyan forms the core of our holistic education. It is more than just a practiceâit's a way of life. It helps children build a strong inner foundation, fostering clarity, strength, and balance as they grow. This connection to timeless wisdom empowers them to navigate life with confidence, purpose, and grace â making the Gurukul experience truly transformative."})]}),o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1200px]",children:[o.jsx("div",{className:"mb-6",children:o.jsx($4,{items:n,height:"h-[534px]"})}),o.jsx("div",{children:o.jsx($4,{items:s,height:"h-[534px]"})})]})]})}const Qt={hero:"/images/AMATIR_6_wfestb.jpg",orangeIcon:"/images/Orange_Icon_vejkl7.svg",foundationShot:"/images/Candid-Primary02_ijhsoz.jpg",jee:"/images/Rectangle_88_l0lzko.jpg",neet:"/images/Rectangle_89_fyffgv.jpg",cuet:"/images/CUET_apubgr.jpg",campus:"/images/Secondary_pguja6.jpg",gurukulIcon:"/images/GuruKul_BlueIcon_cxzwv1.svg",t1:"/images/Rectangle_115_lyh3q2.png",t2:"/images/Rectangle_115_1_uucvan.png",t3:"/images/Rectangle_115_2_onwmd4.png",t4:"/images/Neha_Dhiman.png",t5:"/images/Jatinder-Singh.png",t6:"/images/Sangeeta_Devi.png",t7:"/images/Aradhana_Kaushik.png",t8:"/images/Kusum_Lata.png",t9:"/images/Jisha_Raj.png",t10:"/images/Mamta.png",t11:"/images/Mahabir_Singh_Bhandari.png",t12:"/images/Archna.png",band:"/images/Sadhana_tapas_wn5vod.jpg",projectBased:"/images/Project_Based_oc2aa7.jpg",fln:"/images/Foundation_and_literacy_eiqduq.jpg",artIntegrated:"/images/Art_Integrated_nezarr.jpg",senior:"/images/senior_qucz8c.jpg"},Vf=({children:t})=>o.jsx("div",{className:"mx-auto",style:{width:"min(92vw, 72rem)"},children:t}),yi="font-['CentSchbkCyrill_BT:Roman',_serif]",ju=({src:t,alt:e="",ratio:n="100%"})=>o.jsx("div",{className:"relative w-full overflow-hidden rounded-[0.8rem] shadow-lg",children:o.jsx("div",{className:"relative w-full",style:{paddingBottom:n},children:o.jsx("img",{src:t,alt:e,className:"absolute inset-0 h-full w-full object-cover"})})});function Cse(){xs({title:"CBSE Curriculum with JEE & NEET Prep | Amatir Kanya Gurukul",description:"Looking for the best academic school in Kurukshetra? Amatir Kanya Gurukul provides CBSE education with JEE & NEET preparation and modern learning.",keywords:""});const t=Y({maxWidth:768}),e=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025});const n=Y({maxWidth:1024});Y({maxHeight:600}),T.useEffect(()=>{window.location.hash==="#gurukul"&&setTimeout(()=>{const O=document.getElementById("gurukul");if(O){const V=O.getBoundingClientRect().top+window.pageYOffset-88;window.scrollTo({top:V,behavior:"smooth"})}},200)},[]);const[s,r]=T.useState(null),[a,l]=T.useState(null),c=T.useMemo(()=>[{name:"Mr. Vijay Kumar",role:"Educator - Mathematics",photo:Qt.t1,details:"Mathematics educator focused on fostering analytical thinking, problem-solving, and concept clarity. He integrates interactive pedagogy and learner-centric strategies to make Mathematics engaging and meaningful for students."},{name:"Ms. Rishu Singh",role:"Educator - Mathematics",photo:Qt.t2,details:"Mathematics educator who promotes logical reasoning, conceptual clarity, and problem-solving skills. She designs learner-centric lessons to build confidence and mathematical thinking among middle school students."},{name:"Ms. Neha Dhiman",role:"Educator - Home Science",photo:Qt.t4,details:"PGT Home Science and Food Production, promotes experiential learning, life skills, and wellness education. She guides students in making informed lifestyle choices and developing practical, holistic competencies."},{name:"Mr. Mayank Bhardwaj",role:"Educator - PGT Fine Arts",photo:Qt.t3,details:"Integrates creativity, design thinking, and visual literacy into art education. He fosters self-expression and innovation through experiential and skill-based learning in a dynamic classroom environment."},{name:"Mr Jatinder Singh",role:"Head of Department â Mathematics",photo:Qt.t5,details:"Mathematics, Jatinder Singh is committed to making Mathematics accessible and engaging. He fosters conceptual understanding and builds supportive relationships to nurture student growth and a positive attitude toward learning."}
387,{name:"Ms. Sangeeta",role:"Educator - Science",photo:Qt.t6,details:"Science educator committed to inquiry-based learning. She fosters scientific thinking, curiosity, and conceptual clarity through hands-on exploration, real-life connections, and evidence-based instructional practices."},{name:"Ms. Aradhana",role:"Educator - English",photo:Qt.t7,details:"An experienced English educator known for transforming lessons into meaningful learning experiences. She promotes curiosity, creativity, and critical thinking through a blend of engaging strategies and student-centered instruction."},{name:"Dr. Kusum Lata",role:"Educator - PGT Hindi",photo:Qt.t8,details:"seasoned educator and poet. She nurtures language appreciation through literary exploration and empathetic teaching, while encouraging emotional expression and deep student connection in the classroom."},{name:"Ms. Jisha Raj",role:"Educator - English",photo:Qt.t9,details:"dedicated PGT English educator and Communication & Personality Development coach, she integrates language learning with soft skills training, fostering confidence, clarity, and expression through dynamic, learner-centered environments that empower students for future success."},{name:"Ms. Mamta",role:"Educator - PRT",photo:Qt.t10,details:"dedicated Hindi educator at Amatir Kanya Gurukul since 2014. She believes a teacher is not merely a source of knowledge but a guiding force that inspires and uplifts learners."},{name:"Mr. Mahabir Singh Bhandari",role:"Educator - PGT Economics",photo:Qt.t11,details:"Teaches cultivates analytical skills, economic reasoning, and inquiry-based learning. He guides students to understand contemporary issues through data interpretation, structured thinking, and real-world application."},{name:"Ms. Archna Goel",role:"Educator - Librarian",photo:Qt.t12,details:"dedicated librarian who promotes reading culture, research, and information literacy. She curates meaningful resources and supports students and staff in developing lifelong learning and independent inquiry skills."}],[]),u=T.useRef(null),f=T.useRef(null),[m,g]=T.useState(0),x=M=>{let O;window.matchMedia("(max-width: 768px)").matches?O=1:window.matchMedia("(max-width: 1024px)").matches?O=2:O=4;const P=Math.max(0,c.length-O),H=Math.min(Math.max(M,0),P);g(H);const V=u.current,F=f.current;if(!V||!F)return;const U=parseFloat(getComputedStyle(F).columnGap||"0"),ae=(V.clientWidth-U*(O-1))/O;F.style.transform=`translateX(-${H*(ae+U)}px)`};T.useEffect(()=>{const M=()=>x(m);return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[m,c.length]);const[b,v]=T.useState("Foundation"),[w,N]=T.useState("Project-Based"),_=M=>{l(null),r(M.targetTouches[0].clientX)},E=M=>{l(M.targetTouches[0].clientX)},k=()=>{if(!s||!a)return;const M=s-a,O=M>50,P=M<-50;O?x(m+1):P&&x(m-1)};T.useEffect(()=>{const M=document.querySelector(`[key="content-${b}"]`),O=document.querySelector(`[key="image-${b}"]`);M&&O&&(M.classList.remove("fadeIn"),O.classList.remove("fadeIn"),M.offsetWidth,O.offsetWidth,M.classList.add("fadeIn"),O.classList.add("fadeIn"))},[b]),T.useEffect(()=>{const M=document.querySelector(`[key="content-${w}"]`);M&&(M.classList.remove("fadeIn"),M.offsetWidth,M.classList.add("fadeIn"))},[w]),T.useEffect(()=>{const M=()=>{window.location.hash==="#gurukul"&&setTimeout(()=>{const P=document.getElementById("gurukul");P&&(P.style.opacity="0",P.style.transform="translateY(30px)",P.style.transition="opacity 0.8s ease-out, transform 0.8s ease-out",P.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{P.style.opacity="1",P.style.transform="translateY(0)"},200))},100)};return M(),window.addEventListener("hashchange",M),()=>{window.removeEventListener("hashchange",M)}},[]);const C=[{id:"Foundation",tagline:"Foundation Stage",content:"The Foundation Stage is where curiosity begins to bloom. Through hands-on projects and real-world applications, children learn by doing, asking questions, solving problems, and working together. No rote learning, no heavy textbooks, just meaningful experiences that spark independent thinking and a lifelong love for learning.",image:Qt.foundationShot},{id:"Middle",tagline:"Middle Stage",content:"In the Middle Stage, learning shifts from memorizing to mastering. A skill-based approach empowers students to think critically, communicate clearly, and solve real-world problems. With AI-powered tools like Embibe, each child learns at their own pace, gaining deeper understanding and lasting confidence. It's purposeful, personalised learning that prepares them for life beyond the classroom.",image:"/images/1_10_cqscjr.jpg"},{id:"Senior",tagline:"Senior Stage",content:"Where students grow into confident, capable individuals. Beyond academics, the focus is on building character, leadership, and purpose. With personalised academic supp
387ort and real-world problem-solving, students develop resilience, sharpen exam readiness, and take ownership of their learning journey. It's preparation for life, not just the board exams, and it's this holistic approach that has earned Amatir its reputation as the best academic school in Kurukshetra.",image:Qt.senior},{id:"Senior Secondary",tagline:"Senior Secondary Stage",content:"Shaping confident, self-aware leaders, rooted in values, ready for the world. Academic excellence goes hand-in-hand with life skills, global exposure, and purpose-driven growth. From university readiness to leadership development, students are empowered to think boldly, act responsibly, and lead with both head and heart.",image:"/images/Secondary_lmc82a.jpg"}],A=M=>{v(M)},L=()=>C.find(M=>M.id===b);return o.jsxs("main",{id:"Academics",className:"w-full overflow-hidden bg-white",children:[o.jsxs("section",{id:"academics-hero",className:"relative overflow-hidden w-full",style:{height:"100vh",marginTop:"60px",minHeight:n?"400px":"480px"},children:[o.jsx("img",{src:Qt.hero,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-[#1C3664]"}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end mt-[-8%] justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:n?"translateY(-10%)":t?"translateY(-5%)":"translateY(0)",paddingTop:n?"2rem":t?"1rem":"0",paddingBottom:n?"2rem":t?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:Qt.orangeIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill z-10002",style:{lineHeight:"1.1",color:"#fff",marginBottom:"10%"},children:"Academics"})]})})]}),o.jsx("section",{style:{paddingTop:"8vh",paddingBottom:"8vh"},children:o.jsxs(Vf,{children:[o.jsx("h2",{className:`${yi} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.6rem,3.1vw,2.6rem)",lineHeight:1.15},children:"Curriculum That Grows With Your Child"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"70ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"A future-ready curriculum, shaped by CBSE standards for girls at our Kurukshetra school, designed to grow with your child. From building curiosity in the early years to developing real-world skills, confidence, and character in higher grades, every stage prepares students not just for exams, but for life."}),o.jsx("div",{className:"mx-auto grid",style:{gridTemplateColumns:"repeat(4,1fr)",gap:"clamp(3rem,8vw,4rem)",maxWidth:"56rem",marginTop:"3.5vh"},children:C.map(M=>o.jsxs("button",{className:`${yi} relative text-[#1C3664] cursor-pointer transition-all duration-500 cubic-bezier(0.25, 0.46, 0.45, 0.94) hover:opacity-80`,style:{fontSize:"clamp(1rem,1.35vw,1.25rem)",opacity:b===M.id?1:.35,paddingBottom:"0.9rem",transform:b===M.id?"scale(1.05)":"scale(1)"},onClick:()=>A(M.id),children:[M.id,b===M.id&&o.jsx("span",{className:"absolute left-0 bottom-0 rounded-full bg-[#ED6D23] transition-all duration-500 cubic-bezier(0.25, 0.46, 0.45, 0.94)",style:{height:"0.22rem",width:"6rem"}})]},M.id))}),o.jsxs("div",{className:"mt-[4vh] grid items-start",style:{gridTemplateColumns:"1fr 1.1fr",columnGap:"clamp(2rem,4vw,3rem)"},children:[o.jsxs("div",{className:"fadeIn transition-all duration-500 cubic-bezier(0.25, 0.46, 0.45, 0.94)",children:[o.jsx("h3",{className:`${yi} text-[#1C3664] font-[400]`,style:{fontSize:"clamp(1.6rem,2.5vw,2.25rem)",lineHeight:1.2,marginBottom:"1.2rem"},children:L()?.tagline}),o.jsx("p",{className:"text-[#3a2323]/90",style:{lineHeight:1.85,fontSize:"clamp(0.98rem,1.05vw,1.05rem)"},children:L()?.content})]},`content-${b}`),o.jsx("div",{className:"fadeIn transition-all duration-500 cubic-bezier(0.25, 0.46, 0.45, 0.94)",children:o.jsx(ju,{src:L()?.image})},`image-${b}`)]})]})}),o.jsx("section",{style:{paddingTop:"8vh",paddingBottom:"8vh"},children:o.jsxs(Vf,{children:[o.jsx("h2",{className:`${yi} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.6rem,3.1vw,2.6rem)"},children:"Skill Based Learning"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"72ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"We emphasize practical learning that helps children apply concepts with confidence. By engaging in meaningful activities, they build a strong academic foun
387dation while developing abilities that support independent learning and personal growth."}),o.jsxs("div",{className:"mt-[4vh] grid items-start",style:{gridTemplateColumns:"1.1fr 1fr",columnGap:"clamp(2rem,4vw,3rem)"},children:[o.jsx(ju,{src:w==="Project-Based"?Qt.projectBased:w==="Foundational Literacy & Numeracy (FLN)"?Qt.fln:Qt.artIntegrated,alt:"Skill-based learning"}),o.jsx("div",{className:"flex flex-col",style:{gap:"2vh"},children:[{title:"Project-Based",content:"Hands-on projects that bring learning to life. Students build, experiment, and solve real-world problems while developing creativity, critical thinking, and collaboration.",image:Qt.projectBased,muted:w!=="Project-Based"},{title:"Foundational Literacy & Numeracy (FLN)",content:"Focused on strong basics in reading, writing, and math, empowering every child with the core skills needed for future learning and everyday life.",image:Qt.fln,muted:w!=="Foundational Literacy & Numeracy (FLN)"},{title:"Art-Integrated",content:"Blending art with academics to make learning fun and memorable, students explore subjects creatively through visuals, stories, and design.",image:Qt.artIntegrated,muted:w!=="Art-Integrated"}].map((M,O)=>o.jsxs("div",{className:`relative rounded-[0.8rem] ${M.muted?"opacity-40":"bg-[#F7F8FA] shadow-sm"} flex items-start transition-all duration-500 ease-[cubic-bezier(0.4,0,0.2,1)] cursor-pointer hover:opacity-80`,style:{padding:"1.2rem 1.2rem 1.2rem 1.6rem"},onClick:()=>N(M.title),children:[!M.muted&&o.jsx("span",{className:"absolute left-0 top-0 bottom-0 rounded-r-[999rem] bg-[#ED6D23]",style:{width:"0.36rem"}}),o.jsx("div",{className:"mr-4 mt-1",children:o.jsx(Z8,{className:"text-[#1C3664]",style:{width:"1.4rem",height:"1.4rem"}})}),o.jsxs("div",{className:"w-full",children:[o.jsx("h4",{className:`${yi} text-[#1C3664] transition-colors duration-200`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)",marginBottom:"0.35rem"},children:M.title}),!M.muted&&o.jsx("p",{className:"text-[#000] fadeIn",style:{fontSize:"clamp(0.95rem,1.05vw,1.05rem)",lineHeight:1.8},children:M.content},`content-${M.title}`)]})]},O))})]})]})}),o.jsx("section",{style:{paddingTop:"8vh",paddingBottom:"8vh"},children:o.jsxs(Vf,{children:[o.jsx("h2",{className:`${yi} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.6rem,3.1vw,2.6rem)"},children:"Where CBSE Education Meets JEE and NEET Readiness"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"90ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"Our association with Physics Wallah (PW) strengthens Amatirâs commitment to enabling more young women to pursue STEM careers and turn their academic aspirations into reality."}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"90ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"PW brings its structured curriculum, expert faculty and smart-board enabled learning directly to our classrooms, seamlessly integrating CBSE preparation with competitive exam readinessâreducing the need for additional evening coaching."}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"90ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"Students in Classes 9â10 develop strong conceptual and analytical foundations, while senior students receive focused preparation for JEE and NEET through interactive digital learning, regular assessments, data-driven insights and dedicated doubt-clearing sessions."}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"90ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"At Amatir, we strive to give every girl the clarity, confidence and preparation to aim higherâand succeed."}),o.jsxs("div",{className:"mt-[5vh] grid",style:{gridTemplateColumns:"repeat(4,1fr)",columnGap:"clamp(1rem,2vw,1.6rem)"},children:[o.jsx("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md relative cursor-pointer",style:{height:"clamp(308px, 22vh, 360.8px)"},children:o.jsxs("div",{className:"relative w-full h-full",children:[o.jsx(ju,{src:Qt.jee,style:{height:"100%",width:"100%",objectFit:"cover"}}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-[#ED6D23] text-white text-center transition-transform duration-300 ease-in-out group-hover:translate-y-0 translate-y-0",style:{padding:"0.85rem 1rem"},children:o.jsx("span",{className:`${yi}`,style:{fontSize:"clamp(1rem,1.15vw,1.15rem)"},children:"JEE"})}),o.jsxs("div",{className:"absolute inset-0 bg-[#ED6D23]/95 text-white p-4 flex flex-col justify-center items-center text-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out",children:[o.jsx("h4",{className:`${yi} text-white mb-3 font-[600]`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)"},children:"JEE"}),o.jsx("p",{className:"text-sm leading-relaxed",style:{fontSize:"clamp(0.85rem,1vw,0.95rem)",lineHeight:1.6},children:"A national-level entrance exam for admission to top engineering institutes like IITs and NITs."})]})]})}),o.jsx("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md relative cursor-pointer",style:{height:"clamp(308px, 22vh, 360.8px)"},children:o.jsxs("div",{className:"relative w-full h-full",children:[o.jsx(ju,{src:Qt.neet,style:{height:"100%",width:"100%",objectFit:"cover"}}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-[#ED6D23] text-white text-center transition-transform duration-300 ease-in-out group-hover:translate-y-0 translate-y-0",style:{padding:"0.85rem 1rem"},children:o.jsx("span",{className:`${yi}`,style:{fontSize:"clamp(1rem,1.15vw,1.15rem)"},children:"NEET"})}),o.jsxs("div",{className:"absolute inset-0 bg-[#ED6D23]/95 text-white p-4 flex flex-col justify-center items-center text-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out",children:[o.jsx("h4",{className:`${yi} text-white mb-3 font-[600]`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)"},children:"NEET"}),o.jsx("p",{className:"text-sm leading-relaxed",style:{fontSize:"clamp(0.85rem,1vw,0.95rem)",lineHeight:1.6},children:"The qualifying exam for students aspiring to study medicine and allied health sciences in India."})]})]})}),o.jsx("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md relative cursor-pointer",style:{height:"clamp(308px, 22vh, 360.8px)"},children:o.jsxs("div",{className:"relative w-full h-full",children:[o.jsx(ju,{src:"/images/Olympiads_vvurc0.jpg",style:{height:"100%",width:"100%",objectFit:"cover"}}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-[#ED6D23] text-white text-center transition-transform duration-300 ease-in-out group-hover:translate-y-0 translate-y-0",style:{padding:"0.85rem 1rem"},children:o.jsx("span",{className:`${yi}`,style:{fontSize:"clamp(1rem,1.15vw,1.15rem)"},children:"OLYMPIADS"})}),o.jsxs("div",{className:"absolute inset-0 bg-[#ED6D23]/95 text-white p-4 flex flex-col justify-center items-center text-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out",children:[o.jsx("h4",{className:`${yi} text-white mb-3 font-[600]`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)"},children:"OLYMPIADS"}),o.jsx("p",{className:"text-sm leading-relaxed",style:{fontSize:"clamp(0.85rem,1vw,0.95rem)",lineHeight:1.6}
387,children:"Rigorous subject-based assessments in Math and Science that nurture analytical thinking, problem-solving, and academic excellence."})]})]})}),o.jsx("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md relative cursor-pointer",style:{height:"clamp(308px, 22vh, 360.8px)"},children:o.jsxs("div",{className:"relative w-full h-full",children:[o.jsx(ju,{src:Qt.cuet,style:{height:"100%",width:"100%",objectFit:"cover"}}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-[#ED6D23] text-white text-center transition-transform duration-300 ease-in-out group-hover:translate-y-0 translate-y-0",style:{padding:"0.85rem 1rem"},children:o.jsx("span",{className:`${yi}`,style:{fontSize:"clamp(1rem,1.15vw,1.15rem)"},children:"CUET"})}),o.jsxs("div",{className:"absolute inset-0 bg-[#ED6D23]/95 text-white p-4 flex flex-col justify-center items-center text-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out",children:[o.jsx("h4",{className:`${yi} text-white mb-3 font-[600]`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)"},children:"CUET"}),o.jsx("p",{className:"text-sm leading-relaxed",style:{fontSize:"clamp(0.85rem,1vw,0.95rem)",lineHeight:1.6},children:"A national-level entrance exam for admission to central universities and other leading institutions across India, covering a wide range of undergraduate courses."})]})]})})]})]})}),o.jsx("section",{className:"relative w-full",style:{height:"35vh"},children:o.jsxs("div",{className:"relative w-full h-full overflow-hidden",children:[o.jsx("img",{src:Qt.campus,alt:"",className:"h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#1C3664]/92"}),o.jsx("div",{className:"absolute inset-0 grid place-items-center text-center text-white",style:{padding:"5vh 6vw"},children:o.jsxs("div",{style:{maxWidth:"70ch"},children:[o.jsx("h3",{className:`${yi} font-[400]`,style:{fontSize:"clamp(1.3rem,2.3vw,2rem)",marginBottom:"1vh"},children:"Discover Our Campus"}),o.jsx("p",{className:"opacity-95",style:{fontSize:"clamp(0.95rem,1.05vw,1.05rem)",lineHeight:1.8},children:"Explore a serene, tech-enabled campus where tradition meets innovationâdesigned to nurture holistic growth, learning, and well-being."}),o.jsx("a",{href:"/facilities",className:"mt-[2vh] inline-block rounded-full bg-[#ED6D23] text-white shadow-lg hover:brightness-110",style:{padding:"0.7rem 1.4rem",fontSize:"clamp(0.95rem,1.05vw,1.05rem)"},children:"View Facilities"})]})})]})}),o.jsx(kse,{id:"gurukul",image:Qt.gurukulIcon,title:"Gurukul",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}),o.jsx("section",{className:"bg-[#F8F9FB]",style:{paddingTop:"7vh",paddingBottom:"1vh"},children:o.jsxs(Vf,{children:[o.jsx("h2",{className:`${yi} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.44rem,2.79vw,2.6rem)"},children:"Know our Teachers"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"60ch",lineHeight:1.8,fontSize:"clamp(0.855rem,0.945vw,1.05rem)"},children:"Meet our dedicated team of educators who inspire and guide our students"}),o.jsxs("div",{className:"relative mt-[4vh]",children:[o.jsx("button",{onClick:()=>x(m-4),className:"absolute top-1/2 -translate-y-1/2 left-2 sm:left-0 md:-left-5 lg:-left-9 z-10 grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110",style:{width:"2.8rem",height:"2.8rem",background:"#ED6D23",boxShadow:"0 4px 10px rgba(0,0,0,0.25)",marginLeft:"-8px"},children:o.jsx($p,{style:{width:"1.3rem",height:"1.3rem"}})}),o.jsx("button",{onClick:()=>x(m+4),className:"absolute top-1/2 -translate-y-1/2 right-2 sm:right-0 md:-right-5 lg:-right-9 z-10 grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110",style:{width:"2.8rem",height:"2.8rem",background:"#ED6D23",boxShadow:"0 4px 10px rgba(0,0,0,0.25)",marginRight:"-8px"},children:o.jsx(Up,{style:{width:"1.3rem",height:"1.3rem"}})}),t&&o.jsx("div",{className:"flex justify-center mt-6 space-x-2",children:Array.from({length:c.length},(M,O)=>o.jsx("button",{onClick:()=>x(O),className:`w-2 h-2 rounded-full transition-all duration-200 ${O===m?"bg-[#ED6D23]":"bg-gray-300"}`,"aria-label":`Go to slide ${O+1}`},O))}),o.jsx("div",{ref:u,className:"overflow-hidden",onTouchStart:_,onTouchMove:E,onTouchEnd:k,
387children:o.jsx("div",{ref:f,className:"grid transition-transform duration-500 ease-out mb-12",style:{"--gap":t?"1rem":e?"1.2rem":"clamp(0.9rem,1.2rem,1.2rem)",gridAutoFlow:"column",gridAutoColumns:"calc((100% - (3 * var(--gap))) / 4)",columnGap:"var(--gap)"},children:c.map((M,O)=>o.jsxs("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md bg-white text-[#1C3664] transition-all duration-500 hover:shadow-2xl hover:-translate-y-1 cursor-pointer",style:{minWidth:0},children:[o.jsxs("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"132%"},children:[o.jsx("img",{src:M.photo,alt:M.name,className:"absolute inset-0 h-full w-full object-cover transition-all duration-500 group-hover:scale-110"}),o.jsxs("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0E2349]/95 to-[#0E2349]/90 text-white opacity-0 group-hover:opacity-100 transition-all duration-500 flex flex-col justify-center p-6 transform translate-y-2 group-hover:translate-y-0",children:[o.jsx("h5",{className:`${yi} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:M.name}),o.jsx("p",{className:"mb-4 text-center",style:{whiteSpace:"pre-line",fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:M.role}),o.jsx("p",{className:"mb-4 text-center",style:{fontSize:"clamp(0.765rem,0.855vw,0.95rem)",lineHeight:1.6},children:M.details}),o.jsxs("div",{className:"mt-auto space-y-2 text-center",children:[o.jsx("p",{className:"text-sm opacity-90",children:M.email}),o.jsx("p",{className:"text-sm opacity-90",children:M.phone})]})]})]}),o.jsxs("div",{className:"px-[1rem] pb-[1rem] pt-[0.9rem] text-left bg-white",children:[o.jsx("h5",{className:`${yi} font-[500] text-[#1C3664]`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:M.name}),o.jsx("p",{className:"text-[#3a2323] mt-1",style:{fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:M.role})]})]},M.name+O))})})]})]})}),o.jsx("section",{style:{paddingTop:"5%",paddingBottom:"10%"},children:o.jsx(Vf,{children:o.jsxs("div",{className:"grid",style:{gridTemplateColumns:"1fr 1fr"},children:[o.jsxs("article",{className:"relative overflow-hidden text-white shadow-[0_1.2rem_2.6rem_rgba(0,29,73,0.16)]",style:{minHeight:"clamp(10rem,24vh,16rem)",backgroundImage:`url(${Qt.band})`,backgroundSize:"cover",backgroundPosition:"center"},children:[o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(28,54,100,0.92)"}}),o.jsx("div",{className:"relative grid h-full place-items-center p-[2rem] text-center",children:o.jsxs("div",{style:{maxWidth:"46ch"},children:[o.jsx("h4",{className:`${yi} font-[400]`,style:{fontSize:"clamp(1.15rem,1.9vw,1.55rem)",marginBottom:"0.8rem"},children:"School Rules Handbook"}),o.jsx("p",{className:"opacity-95",style:{lineHeight:1.75,fontSize:"clamp(0.9rem,1.05vw,1.05rem)",marginBottom:"1.2rem"},children:"Find all the essential information about Hostel Rules, Hostel Schedule, Parents and Guardians Visit timings in the pdf attached below."}),o.jsx("a",{href:"/school-rules.pdf",target:"_blank",rel:"noopener noreferrer",children:o.jsx("button",{className:"rounded-full shadow-[0_0.8rem_1.8rem_rgba(0,0,0,0.15)] hover:brightness-110",style:{background:"#ED6D23",color:"white",padding:"0.6rem 1.2rem",fontSize:"clamp(0.92rem,1.05vw,1.05rem)"},children:"Download Handbook"})})]})})]}),o.jsxs("article",{className:"relative overflow-hidden text-white shadow-[0_1.2rem_2.6rem_rgba(0,29,73,0.16)]",style:{minHeight:"clamp(10rem,24vh,16rem)",backgroundImage:`url(${Qt.band})`,backgroundSize:"cover",backgroundPosition:"center"},children:[o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(237,109,35,0.92)"}}),o.jsx("div",{className:"relative grid h-full place-items-center px-[2rem] text-center",children:o.jsxs("div",{style:{maxWidth:"46ch"},children:[o.jsx("h4",{className:`${yi} font-[400]`,style:{fontSize:"clamp(1.15rem,1.9vw,1.55rem)",marginBottom:"0.8rem"},children:"Unlock her future!"}),o.jsx("p",{className:"opacity-95",style:{lineHeight:1.75,fontSize:"clamp(0.9rem,1.05vw,1.05rem)",marginBottom:"1.2rem"},children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/contact",children:o.jsx("button",{className:"rounded-full shadow-[0_0.8rem_1.8rem_rgba(0,0,0,0.15)] hover:brightness-110 cursor-pointer",style:{background:"#1C3664",color:"white",padding:"0.6rem 1.2rem",fontSize:"clamp(0.92rem,1.05vw,1.05rem)"},children:"Get in Touch"})})]})})]})]})})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}
387function Wp({images:t,title:e,subtitle:n}){return o.jsxs("section",{className:"mx-auto max-w-6xl px-5 md:px-6 py-8 md:py-12",children:[o.jsxs("div",{className:"text-center mb-6 md:mb-8",children:[o.jsx("h2",{className:"text-[32px] md:text-[44px] font-normal font-serif leading-[120%] text-center text-[#1C3664]",children:e}),o.jsx("br",{}),o.jsx("p",{className:"text-sm text-[#64748B]",children:n})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 md:gap-8",children:[o.jsx("div",{className:"md:col-span-2",children:o.jsx("div",{className:"h-[400px] md:h-[500px]",children:o.jsx("img",{src:t[0],alt:"Students in assembly",className:"h-full w-full object-cover rounded-lg"})})}),o.jsx("div",{className:"md:col-span-1",children:o.jsxs("div",{className:"space-y-6 h-[400px] md:h-[500px]",children:[o.jsx("div",{className:"h-[197px] md:h-[247px]",children:o.jsx("img",{src:t[1],alt:"Student writing in notebook",className:"h-full w-full object-cover rounded-lg"})}),o.jsx("div",{className:"h-[197px] md:h-[247px]",children:o.jsx("img",{src:t[2],alt:"Children in circle activity",className:"h-full w-full object-cover rounded-lg"})})]})}),o.jsx("div",{className:"md:col-span-1",children:o.jsx("div",{className:"h-[400px] md:h-[500px]",children:o.jsx("img",{src:t[3],alt:"Girl with building blocks",className:"h-full w-full object-cover rounded-lg"})})}),o.jsx("div",{className:"md:col-span-1",children:o.jsxs("div",{className:"space-y-6 h-[400px] md:h-[500px]",children:[o.jsx("div",{className:"h-[197px] md:h-[247px]",children:o.jsx("img",{src:t[4],alt:"Students in yoga meditation",className:"h-full w-full object-cover rounded-lg"})}),o.jsx("div",{className:"h-[197px] md:h-[247px]",children:o.jsx("img",{src:t[6],alt:"School campus aerial view",className:"h-full w-full object-cover rounded-lg"})})]})}),o.jsx("div",{className:"md:col-span-2",children:o.jsx("div",{className:"h-[400px] md:h-[500px]",children:o.jsx("img",{src:t[5],alt:"Girl observing science experiment",className:"h-full w-full object-cover rounded-lg"})})}),o.jsx("div",{className:"md:col-span-1",children:o.jsx("div",{className:"h-[400px] md:h-[500px]",children:o.jsx("img",{src:t[7],alt:"Students in science laboratory",className:"h-full w-full object-cover rounded-lg"})})})]})]})}const eP=()=>{const t=["/images/KUM_4285_1_aiwnob.jpg","/images/2_8_dfl28l.jpg","/images/2_4_fqszow.jpg","/images/2_5_y5fs2x.jpg"],[e,n]=T.useState(0),s=()=>n(a=>(a-1+t.length)%t.length),r=()=>n(a=>(a+1)%t.length);return o.jsxs("section",{className:"h-auto bg-[#F5F5F5]",children:[o.jsxs("div",{className:"mx-auto grid h-full w-[92%] max-w-[1290px] grid-cols-1 items-start gap-10 py-10 lg:grid-cols-12 lg:gap-12 lg:py-14",children:[o.jsx("div",{className:"lg:col-span-5",children:o.jsxs("div",{className:"w-full max-w-[680px]",children:[o.jsxs("h2",{className:"cent-schbk-cyrill text-[#1F3B5B] text-[40px] leading-[1.1] md:text-[56px] text-left",style:{textAlign:"left"},children:["Nutritious",o.jsx("br",{}),"Satvik Food"]}),o.jsx("p",{className:"univers-regular mt-8 text-[16px] leading-[150%] text-gray-800 md:text-[18px] text-left",style:{textAlign:"left"},children:"Fresh, farm-to-plate meals grown on campus nourish the body and mind. Dining together on the floor fosters humility, gratitude, and a strong sense of community. Meals align with the lunar calendar, with a specially curated menu on Poornima, Ekadashi, and Amavasya."})]})}),o.jsxs("div",{className:"lg:col-span-7 flex flex-col items-center",children:[o.jsx("div",{className:"relative w-full overflow-hidden rounded-2xl shadow-sm h-[46vh] md:h-[52vh] lg:h-[60vh]",children:t.map((a,l)=>o.jsx("img",{src:a,alt:"Satvik food preparation",className:`absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-out ${l===e?"opacity-100 fadeIn":"opacity-0"}`,loading:l===0?"eager":"lazy"},a))}),o.jsxs("div",{className:"mt-8 flex items-center justify-center gap-6",children:[o.jsx("button",{onClick:s,"aria-label":"Previous image",className:"flex h-12 w-12 items-center justify-center rounded-full border-2 border-[#ED6D23] text-[#ED6D23] transition hover:bg-[#
387ED6D23]/10",children:o.jsx($p,{className:"h-6 w-6",strokeWidth:2.4})}),o.jsx("button",{onClick:r,"aria-label":"Next image",className:"flex h-12 w-12 items-center justify-center rounded-full border-2 border-[#ED6D23] text-[#ED6D23] transition hover:bg-[#ED6D23]/10",children:o.jsx(Up,{className:"h-6 w-6",strokeWidth:2.4})})]})]})]}),o.jsx("style",{children:` 388 @keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } } 389 .fadeIn { animation: fadeIn 0.7s ease-out; } 390 `})]})},fn={heroBg:"/images/AMATIR_6_kphsdu.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",homeAwayBg:"/images/Rectangle_63_eof7qs.jpg",amenities_ac:"/images/Central-Air-Conditioning-System.jpg",amenities_wifi:"/images/Dormitories_with_wI-FI_mvn6xz.jpg",amenities_safety:"/images/Safety_surveillance_irayl8.jpg",amenities_laundry:"/images/Laundry_facilities_irp8cf.jpg",amenities_phone:"/images/Phone_Access_points_tzdpnx.jpg",glimpseThumb:"/images/Rectangle_91_xztylc.jpg",hc1:"/images/Health_committee_u7z1pw.jpg",hc2:"/images/Discipline_committee_cobjri.jpg",hc3:"/images/Fun_committee_omswze.jpg",hc4:"/images/Mess_committee_ylamxv.jpg",hc5:"/images/Rectangle_77_ph4zzf.jpg",g1:"/images/Boardinggallery1_ugblpr.jpg",g2:"/images/Boardinggal_rboyjb.jpg",g3:"/images/Boardinggallery2_xda2v6.jpg",g4:"/images/Hostel-Mess07_ye58ti.jpg",g5:"/images/059A9848_wnterv.jpg",g6:"/images/4_2_1_hraipr.jpg",g7:"/images/boardinggallery01_vuouzm.jpg",g8:"/images/Hostel-Kitchen02_gkjsof.jpg",ctaBlue:"/images/Rectangle_80_z1xymb.jpg",progCounsel:"/images/IndividualCounselingIcon_ua8nfd.png",progWorkshops:"/images/GroupWorkShopsIcon_xlibd4.png",progMindful:"/images/MindfullnessIcon_v23vdl.png",progEthical:"/images/EthicalDialoguesIcon_d6q0yn.png"},Pa={deepNavy:"#0E2349",orange:"#ED6D23",light:"#F5F5F5"};function bp({title:t,subtitle:e,center:n=!0}){return o.jsxs("div",{className:n?"text-center":"",children:[o.jsx("h2",{className:"font-[400] text-[44px] leading-[1.2] text-[#1C3664] text-center",style:{fontStyle:"normal",letterSpacing:"0%"},children:t}),e?o.jsx("p",{className:"mt-2 text-[#3A2323] text-[16px] md:text-[18px] max-w-[820px] mx-auto",children:e}):null]})}function Tse({title:t,subtitle:e,button:n,tone:s,bgImg:r,link:a,target:l}){const c=s==="orange"?"bg-[rgba(237,109,35,0.78)]":"bg-[rgba(28,54,100,0.85)]";return o.jsxs("section",{className:"relative",children:[o.jsx("img",{src:r,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:`absolute inset-0 ${c}`}),o.jsxs("div",{className:"relative mx-auto w-[92%] max-w-[1100px] py-12 md:py-16 text-center text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill",children:t}),o.jsx("p",{className:"mt-2 opacity-90",children:e}),o.jsx(Ve,{to:a,className:"mt-6 inline-flex items-center justify-center px-6 py-2 rounded-full transition shadow-sm hover:opacity-90 cursor-pointer",style:{backgroundColor:s==="orange"?Pa.deepNavy:Pa.orange,color:"white"},target:l,children:n})]})]})}function Ase(){return o.jsx("section",{className:" bg-white",children:o.jsx("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:o.jsxs("div",{className:"relative overflow-hidden rounded md:rounded-none",children:[o.jsx("img",{src:fn.homeAwayBg,alt:"",className:"w-full h-[220px] md:h-[300px] object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(237,109,35,0.86)"}}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-center px-6",children:o.jsxs("div",{className:"max-w-4xl text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill",children:"Your Home Away From Home"}),o.jsx("p",{className:"mt-3 md:mt-4 text-[14px] md:text-[16px] leading-relaxed",children:"At Amatir, over 300 girls from across India live in a safe, caring, and structured environment that fosters growth, independence, and lifelong friendships. It's this environment that has made Amatir home to some of the best girls boarding facilities in India."})]})})]})})})}const N2=[{key:"ac",title:"Central AC with Cooling & Heating",img:fn.amenities_ac,desc:"Spacious, well-ventilated gurukul hostel buildings equipped with central cooling and heating ensure year-round comfort."},{key:"wifi",title:"Dormitories with Wi-Fi",img:fn.amenities_wifi,desc:"Each dormitory is equipped with secure Wi-Fi, allowing students to use their personal tablets for researched based learning."},{key:"safety",title:"Safety Surveillance",img:fn.amenities_safety,desc:"Round-the-clock security with CCTV surveillance and trained guards provides a safe girls boarding school experience, where parents can rest assured about their child's well-being."},{key:"laundry",title:"Dedicated Laundry Facilities",img:fn.amenities_laundry,desc:"Modern laundry services ensure hygiene, convenience, and independence as part of the hostel routine for girls."},{key:"phone",title:"Phone Access Points",img:fn.amenities_phone,desc:"Speed-dial contacts mapped for safe, direct connection with home."}];function Mse(){const[t,e]=T.useState("ac"),n=N2.find(s=>
390s.key===t)||N2[0];return o.jsx("section",{className:"py-12 md:py-16",style:{backgroundColor:Pa.light},children:o.jsxs("div",{className:"mx-auto w-[100%] max-w-[1290px]",children:[o.jsx(bp,{title:"Amenities",subtitle:"Explore thoughtfully designed spaces and services that ensure comfort, safety, and well-being, making our boarding experience truly exceptional. As a girls boarding school with hostel facilities built around every girl's comfort, we've designed every corner of campus life with her needs in mind."}),o.jsxs("div",{className:"mt-10 grid md:grid-cols-[minmax(0,1fr)_minmax(0,1fr)] gap-10 items-start",children:[o.jsxs("div",{className:"relative rounded-xl overflow-hidden shadow-sm",children:[o.jsx("style",{children:` 391 @keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} } 392 .animate-fadeIn { animation: fadeIn .35s ease-out; } 393 `}),o.jsx("img",{src:n.img,alt:n.title,className:"w-full h-[300px] md:h-[360px] object-cover animate-fadeIn"},n.img)]}),o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"absolute left-2 top-0 bottom-0 w-px bg-[#D9DFEA]"}),o.jsx("ul",{className:"space-y-4 pl-0",children:N2.map(s=>{const r=s.key===t;return o.jsx("li",{children:o.jsx("button",{onClick:()=>e(s.key),className:"w-full text-left cursor-pointer",children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"mt-2 h-5 w-[3px] rounded",style:{backgroundColor:r?Pa.orange:"transparent"}}),o.jsxs("div",{children:[o.jsx("h4",{className:`univers-regular ${r?"text-[#1C3664]":"text-[#B7BFCC]"} text-left`,style:{textAlign:"left"},children:s.title}),r&&o.jsx("p",{className:"mt-3 text-[14px] text-[#3A2323] m",children:s.desc})]})]})})},s.key)})})]})]})]})})}const Rse=[{title:"Self & Emotional Well-being",img:"/images/Emotional_wellbeing_fzxout.jpg",desc:" Understanding emotions, managing stress and developing resilience, confidence and self-awareness."},{title:"Relationships & Social Well-being",img:"/images/social_wellbeing-team_work_woh9rj.jpg",desc:"Building empathy, respectful communication, healthy friendships and the ability to resolve conflicts."},{title:"Thinking & Responsible Choices",img:"/images/cognitive_wellbeing-confidence_vqfbne.jpg",desc:"Strengthening reflection, decision-making, digital awareness and the ability to respond thoughtfully to challenges."},{title:"Values & Character",img:"/images/Ethics_Integrity_sfkdy8.jpg",desc:" Nurturing honesty, responsibility, compassion, integrity and a sense of responsibility towards others and society."}];function Ose(){return o.jsx("section",{id:"chetna-prabha",className:"py-12 md:py-16 bg-white",children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:[o.jsx(bp,{title:"Illuminating Awareness",subtitle:`Chetna Prabha is Amatirâs distinctive initiative for the psychological, emotional, social and behavioural well-being of its students and the wider school community. 394Through 24Ã7 pastoral presence, counselling and experiential learning, it helps girls understand themselves, build healthy relationships, navigate challenges and grow into confident, responsible and grounded young women. 395`}),o.jsx("p",{className:"text-center cent-schbk-cyrill text-[#ED6D23] mt-6",children:"Our focus"}),o.jsx("div",{className:"mt-8 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:Rse.map((t,e)=>o.jsxs("div",{className:"group relative rounded-md overflow-hidden shadow-sm",children:[o.jsx("img",{src:t.img,alt:t.title,className:"w-full h-[240px] md:h-[260px] object-cover"}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 px-4 py-2 text-white",style:{backgroundColor:Pa.orange},children:o.jsx("span",{className:"univers-regular",children:t.title})}),o.jsx("div",{className:"absolute inset-0 translate-y-full group-hover:translate-y-0 transition-transform duration-300 ease-out",style:{backgroundColor:"rgba(237,109,35,0.92)"},children:o.jsxs("div",{className:"h-full w-full p-5 text-white flex flex-col",children:[o.jsx("h4",{className:"univers-regular leading-tight",children:t.title}),o.jsx("p",{className:"mt-2 text-[14px] leading-snug",children:t.desc})]})})]},e))}),o.jsx("p",{className:"py-5 text-center max-w-3xl mx-auto opacity-90",children:"Chetna Prabha goe
395s beyond one-time counselling or classroom lectures. It is an ongoing culture of care, reflection and growthâexperienced through daily life at Amatir."})]})})}const Dse=[{title:"Individual Counseling",desc:"One-on-one support to help girls talk about their feelings, handle challenges, and build confidence in a safe, private space.",iconImg:fn.progCounsel},{title:"Group Workshops",desc:"Interactive sessions where girls learn life skills, like handling peer pressure, building self-esteem, and speaking up with confidence.",iconImg:fn.progWorkshops},{title:"Mindfulness",desc:"Simple daily meditation, reflection, or quiet time to help girls feel calm, focused, and balanced.",iconImg:fn.progMindful},{title:"Ethical Dialogues",desc:"Heartfelt conversations inspired by Indian values that help girls think about right and wrong, purpose, and the kind of person they want to become.",iconImg:fn.progEthical}];function Lse(){return o.jsx("section",{className:"py-14 md:py-20",style:{backgroundColor:Pa.deepNavy,color:"white"},children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:[o.jsx("h2",{className:"cent-schbk-cyrill text-[#ED6D23] text-center",children:"Programs and Practices"}),o.jsx("p",{className:"mt-3 text-center max-w-3xl mx-auto opacity-90",children:"Includes training for teachers and staff to support adolescent well-being with empathy, part of what makes Amatir a genuinely safe residential school for girls in India."}),o.jsx("div",{className:"mt-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8",children:Dse.map((t,e)=>o.jsxs("div",{className:"text-center px-3",children:[o.jsx("div",{className:"mx-auto mb-4 grid place-items-center w-14 h-14 rounded-md border-2",style:{borderColor:"rgba(255,255,255,0.7)"},children:t.iconImg?o.jsx("img",{src:t.iconImg,alt:"",className:"w-7 h-7 object-contain"}):o.jsx(J8,{className:"w-7 h-7","aria-hidden":!0})}),o.jsx("h3",{className:"univers-regular",children:t.title}),o.jsx("p",{className:"mt-2 text-sm opacity-90",children:t.desc})]},e))})]})})}const S2=[{key:"sanrakshika",title:"Sanrakshika",desc:"Compassionate protectors, our Sanrakshikas are dedicated female caretakers who ensure safety, structure, and disciplineâoffering protective care.",img:"/images/sanrakshika_czakl0.jpg"},{key:"samposhini",title:"Samposhini",desc:"A nurturing guide and counsellor, our Samposhini offers motherly careâproviding emotional support, daily guidance, and heartfelt mentorship to help each child grow with confidence and clarity.",img:"/images/Rectangle_70_haob7j.jpg"},{key:"marg",title:"Marg Darshini",desc:"Senior students mentor younger ones, building leadership, responsibility, and empathy through peer learning.",img:"/images/Marg_Darshini_1_hn7ucq.jpg"},{key:"tutoring",title:"Tutoring",desc:"Personalized Mentorship in both scholastic and co-scholastic subjects.",img:"/images/tutoring1_nh39ez.jpg"},{key:"weekend",title:"Weekend Leisure",desc:"Regular indoor games, weekend movie screenings, and light recreational activities.",img:"/images/weekendleisure01_ugl8b3.jpg"}];function Ise(){const[t,e]=T.useState("sanrakshika"),n=S2.find(s=>s.key===t)||S2[2];return o.jsx("section",{id:"pillars-of-care",className:"py-12 md:py-16",style:{backgroundColor:Pa.light},children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:[o.jsx(bp,{title:"Pillars of Care",subtitle:"From daily care to guided learning and weekend fun, we support your child's growthâboth inside and outside the classroom."}),o.jsxs("div",{className:"mt-10 grid md:grid-cols-2 gap-10 items-start",children:[o.jsxs("div",{className:"relative rounded-xl overflow-hidden shadow-sm",children:[o.jsx("style",{children:` 396 @keyframes fadeIn { from {opacity: 0} to {opacity: 1} } 397 .animate-fadeIn { animation: fadeIn .35s ease-out; } 398 `}),o.jsx("img",{src:n.img,alt:n.title,className:"w-full h-[300px] md:h-[360px] object-cover animate-fadeIn"},n.img+t)]}),o.jsx("div",{className:"relative",children:o.jsx("ul",{className:"space-y-4 pl-0",children:S2.map(s=>{const r=s.key===t;return o.jsx("li",{children:o.jsxs("button",{onClick:()=>e(s.key),className:"w-full text-left cursor-pointer flex items-start gap-3",children:[o.jsx("span",{className:"mt-2 h-5 w-[3px] rounded flex-shrink-0",style:{backgroundColor:r?Pa.orange:"transparent"}}),o.jsxs("div",{children:[o.jsx("h4",{className:`univers-regular font-semibold text-[20px] md:text-[22px] mb-2 text-left ${r?"text-[#1C3664]":"text-[#B7BFCC]"}`,style:{textAlign:"left"},children:s.title}),r&&o.jsx("p",{className:"mt-1 text-[14px] text-[#3A2323] max-w-prose",children:s.desc})]})]})},s.key)})})})]})]})})}function U4({dir:t="left",onClick:e}){return o.jsx("button",{onClick:e,"aria-label":t==="left"?"Previous":"Next",className:"w-11 h-11 rounded-full border-2 flex items-center justify-center transition hover:bg-[#
398ED6D23] hover:text-white cursor-pointer",style:{borderColor:Pa.orange,color:Pa.orange},children:o.jsx("span",{className:"text-xl leading-none",children:t==="left"?"â¹":"âº"})})}function Pse({cards:t}){const e=T.useRef(null),n=290,s=28,r=a=>e.current?.scrollBy({left:a*(n+s),behavior:"smooth"});return o.jsxs("div",{className:"relative mt-10",children:[o.jsx("div",{ref:e,className:"flex gap-7 overflow-x-auto no-scrollbar scroll-smooth",style:{scrollSnapType:"x mandatory"},children:t.map((a,l)=>o.jsx("a",{href:"#",className:"group shrink-0 w-[290px]",style:{scrollSnapAlign:"start"},children:o.jsxs("div",{className:"relative rounded-md overflow-hidden",children:[o.jsx("img",{src:a.img,alt:a.title,className:"block w-full h-[260px] object-cover",draggable:"false"}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 px-4 py-2 text-white pointer-events-none",style:{backgroundColor:Pa.orange},children:o.jsx("span",{className:"univers-regular",children:a.title})}),o.jsx("div",{className:"absolute inset-0 translate-y-full group-hover:translate-y-0 transition-transform duration-300 ease-out",style:{backgroundColor:"rgba(237,109,35,0.96)"},children:o.jsxs("div",{className:"h-full w-full p-5 text-white flex flex-col",children:[o.jsx("h4",{className:"univers-regular leading-tight",children:a.title}),o.jsx("p",{className:"mt-2 text-[14px] leading-snug",children:a.excerpt||"Student committee managing initiatives and shared spaces."})]})})]})},l))}),o.jsxs("div",{className:"flex gap-4 justify-end mt-6 ",children:[o.jsx(U4,{dir:"left",onClick:()=>r(-1)}),o.jsx(U4,{dir:"right",onClick:()=>r(1)})]})]})}const Bse=[{img:fn.hc1,title:"Health Committee",excerpt:"Looks after studentsâ
398well-being through regular check-ups, health awareness, and support during illness."},{img:fn.hc2,title:"Discipline Committee",excerpt:"Maintains order and responsibilityâmaking sure everyone follows routines, eats well, and respects shared spaces."},{img:fn.hc3,title:"Fun Committee",excerpt:"Plans events, games, and celebrations that everyone can enjoy together."},{img:fn.hc4,title:"Mess Committee",excerpt:"Manages meals with careâoverseeing serving, cleanliness, and ensuring no food is wasted."},{img:fn.hc5,title:"Grooming Committee",excerpt:"Ensures cleanliness, proper uniform, and personal hygiene through weekend checks and grooming activities."}];function zse(){xs({title:"Girls Boarding & Hostel Facilities | Amatir Kanya Gurukul",description:"Discover safe and comfortable boarding facilities at Amatir Kanya Gurukul in Haryana. Secure hostels, nutritious meals, 24/7 care and a nurturing environment for girls.",keywords:""}),Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const[t,e]=T.useState(!1);return T.useEffect(()=>{const n=window.location.hash;(n==="#chetna-prabha"||n==="#pillars-of-care")&&setTimeout(()=>{const s=document.getElementById(n.substring(1));if(s){const l=s.getBoundingClientRect().top+window.pageYOffset-88;window.scrollTo({top:l,behavior:"smooth"})}},200)},[]),o.jsxs("main",{className:"w-full text-[#1C3664]",children:[o.jsx("style",{children:` 399 .no-scrollbar::-webkit-scrollbar { display: none; } 400 .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } 401 `}),o.jsxs("section",{id:"boarding-hero",className:"relative flex items-end",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:fn.heroBg,alt:"Boarding hero",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#002F82]/80 via-transparent to-transparent"}),o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px] pb-[4%] flex flex-col items-center",children:[o.jsx("img",{src:fn.orangeIcon,alt:"",className:"mb-3 h-12 w-12 md:h-[60px] md:w-[60px]"}),o.jsx("h1",{className:"cent-schbk-cyrill text-white text-[40px] md:text-[64px] leading-none font-semibold",style:{marginBottom:"10%"},children:"Boarding"})]})]}),o.jsx(Ase,{}),o.jsx(Mse,{}),o.jsx(Ose,{}),o.jsx(Lse,{}),o.jsx(Ise,{}),o.jsx("section",{className:"py-10 md:py-16 bg-white",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[960px]",children:[o.jsx(bp,{title:"A Glimpse into Campus living"}),o.jsxs("div",{className:"relative mt-6 rounded-lg overflow-hidden",children:[o.jsx("img",{src:fn.glimpseThumb,alt:"",className:"w-full h-[260px] md:h-[420px] object-cover"}),o.jsx("button",{onClick:()=>e(!0),className:"absolute inset-0 grid place-items-center cursor-pointer","aria-label":"Play video",children:o.jsx("span",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-white/30 backdrop-blur-sm grid place-items-center",children:o.jsx("span",{className:"ml-1 border-l-[14px] border-l-white border-y-[10px] border-y-transparent"})})})]}),t&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:n=>n.target===n.currentTarget&&e(!1),children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("button",{onClick:()=>e(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"}),o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/U5qyakZJKX4?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})]})]})]})}),o.jsx(eP,{}),o.jsx("section",{className:"py-12 md:py-20 bg-white",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[1290px]",children:[o.jsx(bp,{title:"Happiness Council",subtitle:"Rooted in kindness and led by students, the Happiness Council helps make hostel life joyful, caring, and full of connection."}),o.jsx(Pse,{cards:Bse})]})}),o.jsx(Tse,{title:"Hostel Rules Handbook",subtitle:"Find all the essential information about Hostel Rules, Hostel Schedule, Parents and Guardians Visit timings in the pdf attached below.",tone:"blue",button:"Download Handbook",bgImg:fn.ctaBlue,target:"_blank",link:"/hostel_handbook.pdf"}),o.jsx(Wp,{images:[fn.g1,fn.g2,fn.g3,fn.g4,fn.g5,fn.g6,fn.g7,fn.g8],title:"Gallery",subtitle:"Festival Celebrations at Amatir"}),o.jsx("section",{className:"relative",style:{width:"100vw",marginLeft:"calc(50% - 50vw)",marginRight:"calc(50% - 50vw)",marginTop:0,marginBottom:0},children:o.jsxs("div",{className:"relative h-[140px] md:h-[200px]",children:[o.jsx("img",{src:"/images/Rectangle_78_qtbute.jpg",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/90"}),o.jsxs("div",{className:"relative z-10 h-full flex flex-col items-center justify-center text-center",children:[o.jsx("h3",{className:"text-white text-xl md:text-2xl font-serif",children:"Unlock her future!"}),o.jsx("p",{className:"text-white/90 text-xs md:text-sm mt-1",children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/contact",className:"mt-4 inline-flex items-center rounded-full bg-[#1C3664] px-4 py-2 text-white text-sm",children:"Get in Touch"})]})]})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}
401const Eu={orange:"#ED6D23"},un={heroBg:"/images/KUM_4268_n3aexj.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",fabric:"/images/Rectangle_78_qtbute.jpg",labImgs:["/images/KUM_4063_xou2ih.jpg","/images/Maths_d5ehuh.jpg","/images/Science_txnonf.jpg","/images/English_j4htsv.jpg","/images/Home_Science_u2xuae.jpg"],playground:"/images/Rectangle_98_1_xn7cwt.jpg",library:"/images/Library_gr22nx.jpg",digital:"/images/Digitalclassroom01_lwwkhu.jpg",transport:"/images/Transport01_tzinbk.jpg",embibe:"/images/WhatsApp_Image_2025-08-20_at_11.36.56_AM_1_osxiwh.jpg",g0:"/images/Library02_w8x3om.jpg",g1:"/images/059A0066_w9uo0f.jpg",g2:"/images/facility01gallery_cjcpfx.jpg",g3:"/images/059A0109_w5gdie.jpg",g4:"/images/IMG_7710_hx7ucn.jpg",g5:"/images/IMG_8876_b4kfdn_tmj51e.png",g6:"/images/KUM_3182_pnxlpj.jpg",g7:"/images/facilitygallery002_d80z1c.jpg",videoThumb:"/images/WhatsApp_Image_2025-08-20_at_11.36.56_AM_1_osxiwh.jpg",boardingCarousel:["/images/fACI-BOARDING_ma9lsv.jpg","/images/FACI-BOARDING02_ig2wqh.jpg","/images/FACI-BOARDING03_pciakx.jpg"]};function Fse(){xs({title:"Best School Infrastructure in Haryana | Amatir Kanya Gurukul",description:"Explore Amatir Kanya Gurukul's modern campus in Kurukshetra featuring smart classrooms, science labs, sports facilities, girls hostels and a secure CBSE learning environment.",keywords:""}),Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const t=T.useMemo(()=>({playground:{title:"Active Outdoor Spaces",text:"Our spacious playground offers children a safe and active space to play, explore, and build essential physical and social skills. Daily outdoor time is a key part of our balanced learning approach, and one more reason Amatir is counted among the best school infrastructure in Haryana.",img:un.playground,alt:"Playground"},library:{title:"Building a Reading Habit",text:" A calm, welcoming space filled with age-appropriate books, educational materials, and story collections. It nurtures a love for reading, imagination, and independent learning.",img:un.library,alt:"Library"},digital:{title:"Technology-Enabled Classrooms",text:"Modern classrooms equipped with smart boards and digital learning tools bring lessons to life. This is where digital education in Gurukul meets interactivity and engagement.",img:un.digital,alt:"Digital classrooms"},transport:{title:"Secure School Transport",text:"The school transport system is designed with student safety as the top priority. GPS-enabled buses, verified drivers, and trained attendants ensure a reliable, comfortable, and secure commute for every child.",img:un.transport,alt:"School transport"},embibe:{title:"Smart Learning with Embibe",text:"Through our partnership with Embibe, we offer personalized learning support using AI-driven tools. Students benefit from tailored practice, instant feedback, and deeper understanding across subjects.",img:un.embibe,alt:"Embibe"}}),[]),[e,n]=T.useState("playground"),[s,r]=T.useState(0),a=[{key:"computer",title:"Computer",desc:"Interactive lab sessions that strengthen digital literacy and practical tech skills.",img:un.labImgs[0]},{key:"maths",title:"Maths",desc:"A focused space for logical reasoning, problem-solving, and applied mathematics.",img:un.labImgs[1]},{key:"science",title:"Science",desc:"Equipped for safe and engaging experiments that bring scientific concepts to life.",img:un.labImgs[2]},{key:"english",title:"English",desc:"Helps students build confidence in reading, writing, speaking, and listening.",img:un.labImgs[3]},{key:"home",title:"Home Science",desc:"A hands-on space to learn essential life skillsâfrom nutrition to cooking and home management.",img:un.labImgs[4]}],[l,c]=T.useState("computer"),u=a.find(v=>v.key===l)||a[2],[f,m]=T.useState(!1),g=[un.g0,un.g1,un.g2,un.g3,un.g4,un.g5,un.g6,un.g7].filter(Boolean),x=v=>g[v%g.length],b=[x(0),x(1),x(2),x(3),x(4),x(5),x(6),x(7)];return o.jsxs("main",{className:"w-full text-[#1C3664]",children:[o.jsx("style",{children:` 402 .no-scrollbar::-webkit-scrollbar { display: none; } 403 .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } 404 .tab-btn[aria-selected="true"]{ color:#002F82;border-bottom:2px solid #002F82;font-weight:600 } 405 :root { --ease-tranquil: cubic-bezier(0.4, 0, 0.2, 1); --fade-duration: 650ms } 406 .tab-btn { cursor: pointer; transition: color 300ms var(--ease-tranquil), border-color 300ms var(--ease-tranquil), border-bottom-color 300ms var(--ease-tranquil) } 407 .fade-in { opacity: 0; animation: fadeIn 80ms cubic-bezier(0.33, 1, 0.68, 1) forwards; will-change: opacity } 408 @keyframes fadeIn { to { opacity: 1 } } 409 `}),o.jsxs("section",{className:"relative flex items-end",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:un.heroBg,alt:"Facilities hero",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#002F82]/80 via-trans
409parent to-transparent"}),o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px] pb-[4%] flex flex-col items-center",children:[o.jsx("img",{src:un.orangeIcon,alt:"",className:"mb-3 h-12 w-12 md:h-[60px] md:w-[60px]"}),o.jsx("h1",{className:"cent-schbk-cyrill text-white text-[40px] md:text-[64px] leading-none font-semibold",style:{marginBottom:"10%"},children:"Facilities"})]})]}),o.jsx("section",{className:"bg-white",children:o.jsx("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:o.jsxs("div",{className:"relative overflow-hidden rounded md:rounded-none",children:[o.jsx("img",{src:un.fabric,alt:"",className:"w-full h-[220px] md:h-[300px] object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(237,109,35,0.86)"}}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-center px-6",children:o.jsxs("div",{className:"max-w-4xl text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill",children:"Campus Facilities"}),o.jsx("p",{className:"mt-3 md:mt-4 text-[14px] md:text-[16px] leading-relaxed",children:"Every corner of our CBSE school campus in Kurukshetra has been designed with one goal in mind: giving students a place where learning, comfort, and growth go hand in hand."})]})})]})})}),o.jsx("section",{className:"max-w-6xl mx-auto px-4 md:px-6 py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-10 items-center",children:[o.jsxs("div",{className:"flex flex-col justify-start h-full",children:[o.jsx("h2",{className:"text-[#1C3664] cent-schbk-cyrill",children:"Boarding"}),o.jsx("p",{className:"mt-3 max-w-[520px] text-[#3A2323] univers-regular",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"-0.02em"},children:"Boarding at Amatir is more than accommodation, it's a nurturing experience that reflects our standing among the best school facilities in Kurukshetra. Our CBSE Gurukul facilities provide a warm, caring space where children grow, build friendships, and learn independence, a true second home that nurtures physical and mental well-being. Behind that experience are some of the more thoughtfully designed girls hostel facilities in Haryana, built to feel less like a dormitory and more like home."}),o.jsx("div",{className:"mt-6 flex justify-center",children:o.jsx("a",{href:"/boarding",className:"inline-flex items-center justify-center rounded-full text-white font-serif text-[14px] cursor-pointer",style:{width:"134px",height:"50px",borderRadius:"100px",background:Eu.orange,opacity:1,textDecoration:"none"},children:"Know more"})})]}),o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"relative h-[380px] md:h-[520px] rounded-lg overflow-hidden",children:o.jsx("img",{src:un.boardingCarousel[s],alt:"Dorm rooms",className:"w-full h-full object-cover"})}),o.jsxs("div",{className:"mt-5 flex items-center justify-center gap-4",children:[o.jsx("button",{onClick:()=>r(v=>(v-1+un.boardingCarousel.length)%un.boardingCarousel.length),className:"w-11 h-11 rounded-full border-2 flex items-center justify-center transition hover:bg-[#ED6D23] hover:text-white cursor-pointer",style:{borderColor:Eu.orange,color:Eu.orange},"aria-label":"Previous image",children:o.jsx("span",{className:"text-lg",children:"â¹"})}),o.jsx("button",{onClick:()=>r(v=>(v+1)%un.boardingCarousel.length),className:"w-11 h-11 rounded-full border-2 flex items-center justify-center transition hover:bg-[#ED6D23] hover:text-white cursor-pointer",style:{borderColor:Eu.orange,color:Eu.orange},"aria-label":"Next image",children:o.jsx("span",{className:"text-lg",children:"âº"})})]})]})]})}),o.jsx("section",{className:"bg-[#F5F5F5] min-h-[100vh] flex items-center py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-4 md:px-6 py-4 w-full",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h2",{className:"mb-14 font-[400] text-[44px] leading-[1.2] text-[#1C3664]",style:{fontStyle:"normal",letterSpacing:"0%"},children:"Laboratory"}),o.jsx("p",{className:"mb-22 text-[#3A2323] max-w-[820px] mx-auto text-center univers-regular",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal"},children:"As a Gurukul academy committed to holistic education, our campus includes state-of-the-art labs, smart classrooms, and hands-on experiential learning that help students explore, experiment, and apply knowledge across disciplines. It's this
409setup that makes Amatir a genuine school with smart classrooms and science labs, not just on paper, but in the way students learn every day."})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center h-full",children:[o.jsx("div",{className:"rounded-lg overflow-hidden shadow-md self-stretch fade-in",children:o.jsx("img",{src:u.img,alt:"Science lab",className:"w-full h-full object-cover"})},l),o.jsxs("div",{className:"relative self-center",children:[o.jsx("div",{className:"absolute left-2 top-0 bottom-0 w-px bg-[#D9DFEA]"}),o.jsx("ul",{className:"space-y-4 pl-6",children:a.map(v=>{const w=v.key===l;return o.jsx("li",{children:o.jsx("button",{onClick:()=>c(v.key),className:"w-full text-left cursor-pointer",children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"mt-2 h-5 w-[3px] rounded",style:{backgroundColor:w?Eu.orange:"transparent"}}),o.jsxs("div",{children:[o.jsx("h4",{className:`${w?"text-[#1C3664]":"text-[#B7BFCC]"}`,style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"32px",lineHeight:"140%",letterSpacing:"0%"},children:v.title}),w&&o.jsx("p",{className:"mt-1 text-[14px] text-[#3A2323] max-w-prose fade-in",children:v.desc})]})]})})},v.key)})})]})]})]})}),o.jsx("section",{className:"bg-white min-h-[100vh] flex py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-4 md:px-6 w-full flex flex-col justify-center",children:[o.jsx("h1",{className:"text-center text-[#1C3664] cent-schbk-cyrill",children:"Infrastructure"}),o.jsx("p",{className:"my-3 text-center text-slate-600 max-w-[860px] mx-auto univers-regular",children:"Smart, student-first spaces built for curiosity, comfort, and connectionâbecause great learning starts with the right setting."}),o.jsx("div",{className:"mt-10 flex flex-wrap justify-center gap-8 md:gap-10",children:[["playground","Playground"],["library","Library"],["digital","Digital Classroom"],["transport","Transport"],["embibe","Embibe"]].map(([v,w])=>o.jsx("button",{onClick:()=>n(v),className:"tab-btn pb-2 cursor-pointer univers-regular","aria-selected":e===v,children:w},v))}),o.jsxs("div",{className:"mt-12 grid md:grid-cols-2 gap-10 items-center fade-in",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-[#1C3664] cent-schbk-cyrill",id:"infra-title",children:t[e].title}),o.jsx("p",{className:"mt-2 text-slate-700 univers-regular",id:"infra-copy",children:t[e].text})]}),o.jsx("div",{className:"rounded-lg overflow-hidden shadow-md",children:o.jsx("img",{src:t[e].img,alt:t[e].alt,id:"infra-image",className:"w-full h-56 md:h-80 object-cover"})})]},e)]})}),o.jsx("section",{className:"bg-white min-h-[100vh] flex items-center py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[1100px]",children:[o.jsx("h2",{className:"text-[#1C3664] text-center cent-schbk-cyrill",children:"Step Inside: Facilities and Amenities at a Glance"}),o.jsxs("div",{className:"relative group mt-6 rounded-[12px] overflow-hidden",children:[o.jsx("img",{src:un.videoThumb,alt:"Campus video",className:"w-full h-[420px] md:h-[520px] object-cover"}),o.jsx("button",{onClick:()=>m(!0),"aria-label":"Play video",className:"absolute inset-0 grid place-items-center cursor-pointer",children:o.jsx("span",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-white/30 backdrop-blur-sm grid place-items-center",children:o.jsx("span",{className:"ml-1 border-l-[14px] border-l-white border-y-[10px] border-y-transparent"})})})]})]})}),f&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:v=>{v.target===v.currentTarget&&m(!1)},children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("button",{onClick:()=>m(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"}),o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/ka7pC-SeE
409dQ?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})]})]}),o.jsx(Wp,{images:b,title:"Gallery",subtitle:"Festival Celebrations at Amatir"}),o.jsxs("section",{className:"relative isolate w-full py-14 text-center text-white",children:[o.jsx("img",{src:un.fabric,alt:"",className:"absolute inset-0 -z-10 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 -z-10 bg-[#ED6D23]/85 py-14"}),o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsx("h4",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[22px] md:text-[26px] mb-2",children:"Unlock her future!"}),o.jsx("p",{className:"mx-auto max-w-[640px] text-[14.5px] leading-[1.85] mb-4",children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/contact",className:"rounded-full bg-[#1C3664] px-6 py-2 text-white shadow-[0_12px_28px_rgba(0,29,73,0.16)] cursor-pointer",children:"Get in Touch"})]})]}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}/*! 410 * paths 3.13.0 411 * https://gsap.com 412 * 413 * Copyright 2008-2025, GreenSock. All rights reserved. 414 * Subject to the terms at https://gsap.com/standard-license 415 * @author: Jack Doyle, [email protected] 416*/var Hse=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,$se=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,Use=Math.PI/180,i0=Math.sin,s0=Math.cos,Hm=Math.abs,Gf=Math.sqrt,Wse=function(e){return typeof e=="number"},W4=1e5,Dl=function(e){return Math.round(e*W4)/W4||0};function Vse(t,e,n,s,r,a,l){for(var c=t.length,u,f,m,g,x;--c>-1;)for(u=t[c],f=u.length,m=0;m<f;m+=2)g=u[m],x=u[m+1],u[m]=g*e+x*s+a,u[m+1]=g*n+x*r+l;return t._dirty=1,t}function Gse(t,e,n,s,r,a,l,c,u){if(!(t===c&&e===u)){n=Hm(n),s=Hm(s);var f=r%360*Use,m=s0(f),g=i0(f),x=Math.PI,b=x*2,v=(t-c)/2,w=(e-u)/2,N=m*v+g*w,_=-g*v+m*w,E=N*N,k=_*_,C=E/(n*n)+k/(s*s);C>1&&(n=Gf(C)*n,s=Gf(C)*s);var A=n*n,L=s*s,M=(A*L-A*k-L*E)/(A*k+L*E);M<0&&(M=0);var O=(a===l?-1:1)*Gf(M),P=O*(n*_/s),H=O*-(s*N/n),V=(t+c)/2,F=(e+u)/2,U=V+(m*P-g*H),q=F+(g*P+m*H),ae=(N-P)/n,B=(_-H)/s,$=(-N-P)/n,X=(-_-H)/s,xe=ae*ae+B*B,I=(B<0?-1:1)*Math.acos(ae/Gf(xe)),Z=(ae*X-B*$<0?-1:1)*Math.acos((ae*$+B*X)/Gf(xe*($*$+X*X)));isNaN(Z)&&(Z=x),!l&&Z>0?Z-=b:l&&Z<0&&(Z+=b),I%=b,Z%=b;var le=Math.ceil(Hm(Z)/(b/4)),fe=[],we=Z/le,Ie=4/3*i0(we/2)/(1+s0(we/2)),Re=m*n,Oe=g*n,Te=g*-s,Qe=m*s,Ze;for(Ze=0;Ze<le;Ze++)r=I+Ze*we,N=s0(r),_=i0(r),ae=s0(r+=we),B=i0(r),fe.push(N-Ie*_,_+Ie*N,ae+Ie*B,B-Ie*ae,ae,B);for(Ze=0;Ze<fe.length;Ze+=2)N=fe[Ze],_=fe[Ze+1],fe[Ze]=N*Re+_*Te+U,fe[Ze+1]=N*Oe+_*Qe+q;return fe[Ze-2]=c,fe[Ze-1]=u,fe}}function qse(t){var e=(t+"").replace($se,function(P){var H=+P;return H<1e-4&&H>-1e-4?0:H}).match(Hse)||[],n=[],s=0,r=0,a=2/3,l=e.length,c=0,u="ERROR: malformed path: "+t,f,m,g,x,b,v,w,N,_,E,k,C,A,L,M,O=function(H,V,F,U){E=(F-H)/3,k=(U-V)/3,w.push(H+E,V+k,F-E,U-k,F,U)};if(!t||!isNaN(e[0])||isNaN(e[1]))return console.log(u),n;for(f=0;f<l;f++)if(A=b,isNaN(e[f])?(b=e[f].toUpperCase(),v=b!==e[f]):f--,g=+e[f+1],x=+e[f+2],v&&(g+=s,x+=r),f||(N=g,_=x),b==="M")w&&(w.length<8?n.length-=1:c+=w.length),s=N=g,r=_=x,w=[g,x],n.push(w),f+=2,b="L";else if(b==="C")w||(w=[0,0]),v||(s=r=0),w.push(g,x,s+e[f+3]*1,r+e[f+4]*1,s+=e[f+5]*1,r+=e[f+6]*1),f+=6;else if(b==="S")E=s,k=r,(A==="C"||A==="S")&&(E+=s-w[w.length-4],k+=r-w[w.length-3]),v||(s=r=0),w.push(E,k,g,x,s+=e[f+3]*1,r+=e[f+4]*1),f+=4;else if(b==="Q")E=s+(g-s)*a,k=r+(x-r)*a,v||(s=r=0),s+=e[f+3]*1,r+=e[f+4]*1,w.push(E,k,s+(g-s)*a,r+(x-r)*a,s,r),f+=4;else if(b==="T")E=s-w[w.length-4],k=r-w[w.length-3],w.push(s+E,r+k,g+(s+E*1.5-g)*a,x+(r+k*1.5-x)*a,s=g,r=x),f+=2;else if(b==="H")O(s,r,s=g,r),f+=1;else if(b==="V")O(s,r,s,r=g+(v?r-s:0)),f+=1;else if(b==="L"||b==="Z")b==="Z"&&(g=N,x=_,w.closed=!0),(b==="L"||Hm(s-g)>.5||Hm(r-x)>.5)&&(O(s,r,g,x),b==="L"&&(f+=2)),s=g,r=x;else if(b==="A"){if(L=e[f+4],M=e[f+5],E=e[f+6],k=e[f+7],m=7,L.length>1&&(L.length<3?(k=E,E=M,m--):(k=M,E=L.substr(2),m-=2),M=L.charAt(1),L=L.charAt(0)),C=Gse(s,r,+e[f+1],+e[f+2],+e[f+3],+L,+M,(v?s:0)+E*1,(v?r:0)+k*1),f+=m,C)for(m=0;m<C.length;m++)w.push(C[m]);s=w[w.length-2],r=w[w.length-1]}else console.log(u);return f=w.length,f<6?(n.pop(),f=0):w[0]===w[f-2]&&w[1]===w[f-1]&&
416(w.closed=!0),n.totalPoints=c+f,n}function Kse(t){Wse(t[0])&&(t=[t]);var e="",n=t.length,s,r,a,l;for(r=0;r<n;r++){for(l=t[r],e+="M"+Dl(l[0])+","+Dl(l[1])+" C",s=l.length,a=2;a<s;a++)e+=Dl(l[a++])+","+Dl(l[a++])+" "+Dl(l[a++])+","+Dl(l[a++])+" "+Dl(l[a++])+","+Dl(l[a])+" ";l.closed&&(e+="z")}return e}/*! 417 * CustomEase 3.13.0 418 * https://gsap.com 419 * 420 * @license Copyright 2008-2025, GreenSock. All rights reserved. 421 * Subject to the terms at https://gsap.com/standard-license 422 * @author: Jack Doyle, [email protected] 423*/var cr,tP,nP=function(){return cr||typeof window<"u"&&(cr=window.gsap)&&cr.registerPlugin&&cr},V4=function(){cr=nP(),cr?(cr.registerEase("_CE",Mh.create),tP=1):console.warn("Please gsap.registerPlugin(CustomEase)")},Yse=1e20,r0=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},Xse=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,Zse=/[cLlsSaAhHvVtTqQ]/g,Jse=function(e){var n=e.length,s=Yse,r;for(r=1;r<n;r+=6)+e[r]<s&&(s=+e[r]);return s},Qse=function(e,n,s){!s&&s!==0&&(s=Math.max(+e[e.length-1],+e[1]));var r=+e[0]*-1,a=-s,l=e.length,c=1/(+e[l-2]+r),u=-n||(Math.abs(+e[l-1]-+e[1])<.01*(+e[l-2]-+e[0])?Jse(e)+a:+e[l-1]+a),f;for(u?u=1/u:u=-c,f=0;f<l;f+=2)e[f]=(+e[f]+r)*c,e[f+1]=(+e[f+1]+a)*u},ere=function t(e,n,s,r,a,l,c,u,f,m,g){var x=(e+s)/2,b=(n+r)/2,v=(s+a)/2,w=(r+l)/2,N=(a+c)/2,_=(l+u)/2,E=(x+v)/2,k=(b+w)/2,C=(v+N)/2,A=(w+_)/2,L=(E+C)/2,M=(k+A)/2,O=c-e,P=u-n,H=Math.abs((s-c)*P-(r-u)*O),V=Math.abs((a-c)*P-(l-u)*O),F;return m||(m=[{x:e,y:n},{x:c,y:u}],g=1),m.splice(g||m.length-1,0,{x:L,y:M}),(H+V)*(H+V)>f*(O*O+P*P)&&(F=m.length,t(e,n,x,b,E,k,L,M,f,m,g),t(L,M,C,A,N,_,c,u,f,m,g+1+(m.length-F))),m},Mh=(function(){function t(n,s,r){tP||V4(),this.id=n,this.setData(s,r)}var e=t.prototype;return e.setData=function(s,r){r=r||{},s=s||"0,0,1,1";var a=s.match(Xse),l=1,c=[],u=[],f=r.precision||1,m=f<=1,g,x,b,v,w,N,_,E,k;if(this.data=s,(Zse.test(s)||~s.indexOf("M")&&s.indexOf("C")<0)&&(a=qse(s)[0]),g=a.length,g===4)a.unshift(0,0),a.push(1,1),g=8;else if((g-2)%6)throw"Invalid CustomEase";for((+a[0]!=0||+a[g-2]!=1)&&Qse(a,r.height,r.originY),this.segment=a,v=2;v<g;v+=6)x={x:+a[v-2],y:+a[v-1]},b={x:+a[v+4],y:+a[v+5]}
423,c.push(x,b),ere(x.x,x.y,+a[v],+a[v+1],+a[v+2],+a[v+3],b.x,b.y,1/(f*2e5),c,c.length-1);for(g=c.length,v=0;v<g;v++)_=c[v],E=c[v-1]||_,(_.x>E.x||E.y!==_.y&&E.x===_.x||_===E)&&_.x<=1?(E.cx=_.x-E.x,E.cy=_.y-E.y,E.n=_,E.nx=_.x,m&&v>1&&Math.abs(E.cy/E.cx-c[v-2].cy/c[v-2].cx)>2&&(m=0),E.cx<l&&(E.cx?l=E.cx:(E.cx=.001,v===g-1&&(E.x-=.001,l=Math.min(l,.001),m=0)))):(c.splice(v--,1),g--);if(g=1/l+1|0,w=1/g,N=0,_=c[0],m){for(v=0;v<g;v++)k=v*w,_.nx<k&&(_=c[++N]),x=_.y+(k-_.x)/_.cx*_.cy,u[v]={x:k,cx:w,y:x,cy:0,nx:9},v&&(u[v-1].cy=x-u[v-1].y);N=c[c.length-1],u[g-1].cy=N.y-x,u[g-1].cx=N.x-u[u.length-1].x}else{for(v=0;v<g;v++)_.nx<v*w&&(_=c[++N]),u[v]=_;N<c.length-1&&(u[v-1]=c[c.length-2])}return this.ease=function(C){var A=u[C*g|0]||u[g-1];return A.nx<C&&(A=A.n),A.y+(C-A.x)/A.cx*A.cy},this.ease.custom=this,this.id&&cr&&cr.registerEase(this.id,this.ease),this},e.getSVGData=function(s){return t.getSVGData(this,s)},t.create=function(s,r,a){return new t(s,r,a).ease},t.register=function(s){cr=s,V4()},t.get=function(s){return cr.parseEase(s)},t.getSVGData=function(s,r){r=r||{};var a=r.width||100,l=r.height||100,c=r.x||0,u=(r.y||0)+l,f=cr.utils.toArray(r.path)[0],m,g,x,b,v,w,N,_,E,k;if(r.invert&&(l=-l,u=0),typeof s=="string"&&(s=cr.parseEase(s)),s.custom&&(s=s.custom),s instanceof t)m=Kse(Vse([s.segment],a,0,0,-l,c,u));else{for(m=[c,u],N=Math.max(5,(r.precision||1)*200),b=1/N,N+=2,_=5/N,E=r0(c+b*a),k=r0(u+s(b)*-l),g=(k-u)/(E-c),x=2;x<N;x++)v=r0(c+x*b*a),w=r0(u+s(x*b)*-l),(Math.abs((w-k)/(v-E)-g)>_||x===N-1)&&(m.push(E,k),g=(w-k)/(v-E)),E=v,k=w;m="M"+m.join(",")}return f&&f.setAttribute("d",m),m},t})();Mh.version="3.13.0";Mh.headless=!0;nP()&&cr.registerPlugin(Mh);us.registerPlugin(dt,Mh);const ku={FeatureGridImages:[{alt:"Begin day with calm clarity and strength",url:"/images/Begin_day_with_calm_clarity_and_strength_lokmqg.jpg"},{alt:"Tradition isn't just what I know",url:"/images/Tradition_isn_t_just_what_i_know_cwcxvb.jpg"},{alt:"Student participating in sports",url:"/images/Rectangle_71_qm2vlk.jpg"},{alt:"Students celebrating a festival",url:"/images/Art_music_creative_even_cooking_y65jij.jpg"},{alt:"Student meditating",url:"/images/Rectangle_73_oe6xrk.jpg"},{alt:"Students on an educational trip",url:"/images/Gallery1_cbtzhi.jpg"}]},tre=[{image:ku.FeatureGridImages[0],theme:"peach",kicker:"Yoga and Sports",title:"I Begin My Day With Calm, Clarity and Strength",body:"Our mornings begin with a choice of three essentials: energizing sports to awaken the body, yoga to calm the mind, and mindful practices to build focus and inner strength, on a campus in Kurukshetra built around CBSE learning."},{image:ku.FeatureGridImages[1],theme:"blue",kicker:"Vedic Living and Education",title:"Tradition Isn't Just What I Know; It's How I Live",body:"Chanting, Meditation, and Hawans are part of our daily routine, held in spaces that reflect why Amatir is counted among the best school facilities in Kurukshetra. We don't just learn about tradition, we practice it, live it, and carry it forward with meaning and pride."},{image:ku.FeatureGridImages[2],theme:"peach",kicker:"Academic Learning and NEET/JEE Coaching",title:"I Study Not Just to Know, but to Grow",body:"Our CBSE curriculum goes beyond textbooks. With hands-on learning, real-world skills, and values woven in, delivered in classrooms that make Amatir a genuine school with smart classrooms and science labs, we grow into curious thinkers, confident doers, and grounded individuals."},{image:ku.FeatureGridImages[3],theme:"blue",kicker:"Art, Music, and Creative Expression",title:"I Explore Who I Am Beyond Marks",body:"Through music, dance, theatre, art, and creative expression, even cooking, we discover what excites us, build confidence, and grow into who we truly are."},{image:ku.FeatureGridImages[4],theme:"peach",kicker:"Community Living and Shared Responsibilities",title:"I Learn to Care, For Myself and the World Around Me",body:"By leading councils, managing events, and working in teams, we learn to take charge, support one another, and lead with empathy. Through Chetna-Prabha, we also grow from within, learning to care deeply for ourselves and those around us. It's an environment made possible by some of the best infrastru
423cture among schools in Haryana. "},{image:ku.FeatureGridImages[5],theme:"blue",kicker:"Reflection and Emotional Wellbeing",title:"I End My Day with Purpose, Reflection, and Joy",body:"Evenings are a blend of guided tutoring, indoor games, weekend movie nights, and joyful leisure. As the day winds down, we return to our girls' hostel facilities, cozy and comfortable, for a restful sleep. "}],nre=({data:t})=>{const e=t.theme==="peach"?"bg-[#F5E7DD]":"bg-[#E8EFF7]";return o.jsxs("div",{className:`pair-text-inner ${e} rounded-xl p-6 md:p-10`,children:[o.jsx("p",{className:"mb-2 text-[12px] uppercase tracking-widest text-[#7C8190]",children:t.kicker}),o.jsx("h3",{className:"font-serif text-[22px] md:text-[26px] leading-snug text-[#1C3664]",children:t.title}),o.jsx("p",{className:"mt-3 text-[14px] md:text-[15px] leading-7 text-[#334155]",children:t.body}),o.jsxs("a",{href:t.kicker==="Yoga and Sports"||t.kicker==="Vedic Living and Education"?"/academics#gurukul":t.kicker==="Academic Learning and NEET/JEE Coaching"?"/academics":t.kicker==="Art, Music, and Creative Expression"?"/co-curricular":t.kicker==="Community Living and Shared Responsibilities"?"/boarding#chetna-prabha":t.kicker==="Reflection and Emotional Wellbeing"?"/boarding#pillars-of-care":"#",className:"mt-6 inline-block text-[13px] font-medium text-[#1C3664] underline decoration-2 underline-offset-4",children:[t.kicker==="Yoga and Sports"&&"Explore Morning Activities",t.kicker==="Vedic Living and Education"&&"Learn About Our Traditions",t.kicker==="Academic Learning and NEET/JEE Coaching"&&"Discover Our Curriculum",t.kicker==="Art, Music, and Creative Expression"&&"See Creative Programs",t.kicker==="Community Living and Shared Responsibilities"&&"Learn About Leadership",t.kicker==="Reflection and Emotional Wellbeing"&&"Explore Evening Activities"]})]})},ire=({src:t,alt:e})=>o.jsx("div",{className:"pair-image-inner relative overflow-hidden rounded-xl",children:o.jsx("img",{src:t,alt:e,className:"absolute inset-0 h-full w-full object-cover"})});function sre(){const t=T.useRef(null);return T.useEffect(()=>{if(!t.current)return;const e=Mh.create("tranquilSineOut","M0,0 C0.39,0.575 0.565,1 1,1"),n=us.context(()=>{const s=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;us.utils.toArray(".pair-text-inner").forEach(r=>{us.fromTo(r,{opacity:0,y:24,filter:s?"none":"blur(6px)"},{opacity:1,y:0,filter:"blur(0px)",duration:1.4,ease:e,scrollTrigger:{trigger:r,start:"top 88%",end:"top 70%",toggleActions:"play none none reverse",once:!1}})}),us.utils.toArray(".pair-image-wrap").forEach((r,a)=>{const l=r.querySelector(".pair-image-inner"),c=[60,72,84][a%3];us.fromTo(l,{opacity:0,y:28,filter:s?"none":"blur(6px)"},{opacity:1,y:0,filter:"blur(0px)",duration:1.4,ease:e,scrollTrigger:{trigger:r,start:"top 90%",end:"top 72%",toggleActions:"play none none reverse",once:!1}}),s||us.fromTo(l,{yPercent:c/6},{y:-c,ease:"none",scrollTrigger:{trigger:r,start:"top bottom",end:"bottom top",scrub:.6}})})},t);return()=>n.revert()},[]),o.jsxs("section",{ref:t,className:"bg-[#F5F5F5]",style:{perspective:"1000px"},children:[o.jsx("style",{children:` 424 .pair { transform-style: preserve-3d; } 425 .pair.left { --dx: -2.5%; --dy: -1.75%; } 426 .pair.right { --dx: 2.5%; --dy: 1.75%; } 427 .pair { transform: translate3d(var(--dx), var(--dy), 0); } 428 429 /* Symmetric pulls to keep pairs close on even/odd */ 430 .pair .col-text, .pair .col-img { will-change: transform; } 431 .pair.left .col-text { transform: translateX( 2.25%); } 432 .pair.left .col-img { transform: translateX(-2.25%); } 433 .pair.right .col-text { transform: translateX(-2.25%); } 434 .pair.right .col-img { transform: translateX( 2.25%); } 435 436 .pair-image-inner { height: clamp(260px, 44vh, 520px); transform: translateZ(0); } 437 @media (prefers-reduced-motion: reduce){ 438 .pair, .pair .col-text, .pair .col-img { transform: none !important; } 439 } 440 `}),o.jsx("div",{className:"mx-auto max-w-6xl px-5 md:px-6 py-16 md:py-16",children:o.jsx("div",{className:"space-y-28 md:space-y-[10vh]",children:tre.map((e,n)=>{const s=n%2===0;return o.jsxs("div",{className:`pair ${s?"left":"right"} grid grid-cols-12 md:[grid-template-rows:1fr] items-start gap-4 md:gap-6`,children:[o.jsx("div",{className:`col-text md:row-start-1 ${s?"col-span-12 md:col-span-5 md:col-start-1":"col-span-12 md:col-span-5 md:col-start-8"}`,children:o.jsx(nre,{data:e})}),o.jsx("div",{className:`col-img md:row-start-1 ${s?"col-span-12 md:col-span-6 md:col-start-6":"col-span-12 md:col-span-6 md:col-start-1"}`,children:o.jsx("div",{className:"pair-image-wrap mt-8 md:mt-[6vh]",children:o.jsx(ire,{src:e.image.url,alt:e.image.alt})})})]},e.title)})})})]})}function rre(){xs({title:"Holistic Student Development | Amatir Kanya Gurukul",description:"Experience holistic student development at Amatir Kanya Gurukul through Gurukul values, yoga, leadership, cultural activities, life skills and character building.",keywords:""}),Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});
440const t={Hero:{Background:"/images/Life_at_Amatir_Header_khfdft.jpg",Icon:"/images/Orange_Icon_i299iz.svg"},Gallery:["/images/BA-Music02_nvhv4h.jpg","/images/Life_at_aMATIR_gALLERY_yakern.jpg","/images/1_1_mfxakz.jpg","/images/Acad-Lab18_vg2alk.jpg","/images/Hostel-Life04_wwi9bv.jpg","/images/Gallery2_az5yel.jpg","/images/Candid-Primary04_wkfkb2.jpg","/images/BA-Dance09_fsvt7l.jpg","/images/BA-Dance04_vgrzjd.jpg"]};return o.jsxs("main",{className:"text-[#1C3664]",children:[o.jsxs("section",{className:"relative flex items-end w-screen",style:{height:"100vh",marginTop:"60px",marginLeft:"calc(50% - 50vw)",marginRight:"calc(50% - 50vw)"},children:[o.jsx("img",{src:t.Hero.Background,alt:"Students in assembly",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-black/40"}),o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px] pb-[5%] flex flex-col items-center",children:[o.jsx("img",{src:t.Hero.Icon,alt:"",className:"mb-3 h-[48px] w-[48px] md:h-[60px] md:w-[60px]"}),o.jsx("h1",{className:"cent-schbk-cyrill text-white text-[40px] md:text-[64px] leading-none font-semibold",style:{marginBottom:"10%"},children:"Life at Amatir"})]})]}),o.jsx(sre,{}),o.jsx(Wp,{images:t.Gallery,title:"Gallery",subtitle:"Festival Celebrations at Amatir"}),o.jsx("section",{className:"relative",style:{width:"100vw",marginLeft:"calc(50% - 50vw)",marginRight:"calc(50% - 50vw)",marginTop:0,marginBottom:0},children:o.jsxs("div",{className:"relative h-[140px] md:h-[200px]",children:[o.jsx("img",{src:t.Gallery[2],alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/90"}),o.jsxs("div",{className:"relative z-10 h-full flex flex-col items-center justify-center text-center",children:[o.jsx("h3",{className:"text-white text-xl md:text-2xl font-serif",children:"Unlock her future!"}),o.jsx("p",{className:"text-white/90 text-xs md:text-sm mt-1",children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/contact",className:"mt-4 inline-flex items-center rounded-full bg-[#1C3664] px-4 py-2 text-white text-sm",children:"Get in Touch"})]})]})}),o.jsx("section",{className:"relative",style:{width:"100vw",marginLeft:"calc(50% - 50vw)",marginRight:"calc(50% - 50vw)",marginTop:0,marginBottom:0},children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Map",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul&output=embed",loading:"lazy",className:"block h-[320px] md:h-[420px]",style:{border:0,width:"100%",display:"block"},allowFullScreen:!0})})]})}const G4="#0E2349",q4="#1C3664",are="#F6F8FB",a0={hero:"/images/3_10_xq0avb.jpg",accent:"/images/Orange_Icon_nyaf8h.svg",videoThumb:"/images/Rectangle_98_qeqks9.jpg",bannerImg:"/images/Rectangle_63_byhglx.jpg"};function ore(){const t=Y({maxWidth:480}),e=Y({minWidth:481,maxWidth:767}),n=Y({minWidth:768,maxWidth:1023}),s=Y({minWidth:1024,maxWidth:1366});Y({minWidth:1367});const r=Y({maxWidth:1300}),a=Y({maxWidth:1024});Y({maxHeight:600});const[l,c]=$e.useState(!1),u=T.useRef(null);return T.useEffect(()=>{const f=u.current;if(f){f.innerHTML="";const m="https://crm.mediagarh.com/CRM/forms/public/35",g=window.location.href,x=m+"?embed=1&landing_url="+encodeURIComponent(g),b=document.createElement("iframe");b.id="crm-form-35",b.src=x,b.style.width="100%",b.style.height="600px",b.style.border="0",b.style.background="transparent",f.appendChild(b)}},[]),o.jsxs("div",{className:"min-h-screen w-full bg-white text-slate-800 overflow-x-hidden",children:[o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",marginTop:"60px",minHeight:a?"400px":"480px"},children:[o.jsx("img",{src:a0.hero,alt:"Campus aerial",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(14,35,73,0.35)"}}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end mt-[-8%] justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:a?"translateY(-10%)":e?"translateY(-5%)":"translateY(0)",paddingTop:a?"2rem":e?"1rem":"0",paddingBottom:a?"2rem":e?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:a0.accent})}),o.jsx("h1",{className:"cent-schbk-cyrill z-10002",style:{lineHeight:"1.1",color:"#fff",marginBottom:"10%"},children:"Campus Visit"})]})})]}),o.jsx("section",{className:`mx-auto ${t?"w-[95%]":r?"w-[94%]":"w-[92%]"} ${r?"max-w-[1200px]":"max-w-[1180px]"} ${t?"py-8":e?"py-10":s?"py-12":"py-12 md:py-20"}`,children:o.jsxs("div",{className:`flex flex-col items-start ${e?"gap-6":s?"gap-8":"gap-10"} ${n||s?"md:flex-row md:items-center md:gap-8":"md:flex-row md:items-center md:gap-14"}`,children:[o.jsxs("div",{className:"w-full md:w-1/2",children:[o.jsx("h2",{className:`mb-4 font-serif ${t?"text-[24px]":e?"text-[28px]":s?"text-[32px]":"text-[30px] md:text-[40px]"}`,style:{color:q4},children:"See It for Yourself"}),o.jsxs("div",{className:`space-y-5 text-slate-700 ${t?"text-[14px] leading-6":e?"text-[15px] leading-7":s?"text-[16px] leading-7":"text-[16px] leading-7 md:text-[17px] md:leading-8"}`,children:[o.jsx("p",{children:"Step into the world of Amatirâan inspiring girls gurukul in Kurukshetra, Haryana. Nestled in a scenic, secure, and pollution-free 30-acre campus, Amatir offers a vibrant residential experience for over 300 girls. During your interactive school visit, youâll explore our thoughtfully designed school and hostel facilities, meet our educators, and witness a unique blend of modern CBSE education and timeless Indian values."}),o.jsx("p",{children:"We place special emphasis on discipline, culture, and holistic developmentâensuring that every child grows with clarity, confidence, and character."}),o.jsx("p",{children:"We place special emphasis on discipline, culture, and holistic developmentâensuring that every child grows with clarity, confidence, and character."})]})]}),o.jsxs("div",{className:"w-full md:w-1/2",children:[o.jsxs("div",{className:"relative overflow-hidden rounded-xl shadow-lg",children:[o.jsx("img",{src:a0.videoThumb,alt:"Campus life video",className:"h-full w-full object-cover"}),o.jsx("button",{"aria-label":"Play video",className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 roun
440ded-full bg-white/90 backdrop-blur hover:bg-white ${t?"p-3":e||s?"p-4":"p-5"}`,onClick:()=>c(!0),children:o.jsx(Q8,{className:`${t?"h-6 w-6":e||s?"h-7 w-7":"h-8 w-8"}`,style:{color:G4}})})]}),l&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:f=>f.target===f.currentTarget&&c(!1),children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("button",{onClick:()=>c(!1),className:"inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"}),o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/U5qyakZJKX4?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})]})]})]})]})}),o.jsx("section",{className:`${t?"py-12":e?"py-14":s?"py-16":"py-16 md:py-20"}`,style:{background:are},children:o.jsxs("div",{className:`mx-auto ${t?"w-[95%]":r?"w-[94%]":"w-[92%]"} ${r?"max-w-[800px]":"max-w-[760px]"}`,children:[o.jsx("h3",{className:`text-center font-serif leading-tight ${t?"text-[24px]":e?"text-[26px]":s?"text-[30px]":"text-[28px] md:text-[34px]"}`,style:{color:q4},children:"Campus Visit Registration Form"}),o.jsx("p",{className:`mx-auto mt-3 ${r?"max-w-[720px]":"max-w-[680px]"} text-center ${t?"text-[14px] leading-6":e||s?"text-[15px] leading-7":"text-[15px] md:text-[16px] leading-7"} text-slate-600`,children:"Please fill out the form below to schedule your visit and let us know your preferred date and time. Our admissions team will get in touch with you shortly."}),o.jsx("div",{className:"w-full mt-8 rounded-xl overflow-hidden relative",style:{minHeight:"600px"},children:o.jsx("div",{ref:u,id:"crm-form-container-35",className:"w-full h-full"})})]})}),o.jsxs("section",{className:"relative w-full",children:[o.jsx("img",{src:a0.bannerImg,alt:"",className:`w-full object-cover ${t?"h-[200px]":e?"h-[240px]":s?"h-[280px]":"h-[260px] md:h-[300px]"}`}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(237,109,35,0.88)"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-4 text-center text-white",children:[o.jsx("h3",{className:`font-serif ${t?"text-[22px]":e?"text-[24px]":s?"text-[30px]":"text-[26px] md:text-[34px]"}`,children:"Unlock her future!"}),o.jsx("p",{className:`mt-2 ${r?"max-w-[720px]":"max-w-[680px]"} ${t?"text-[14px] leading-6":e||s?"text-[15px] leading-7":"text-[15px] leading-7 md:text-[16px]"}`,children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/contact",className:`mt-5 inline-flex items-center gap-2 rounded-full px-5 py-2 font-semibold text-white ${t?"text-[14px]":"text-[15px]"}`,style:{background:G4},children:"Get In Touch"})]})]}),o.jsx("section",{className:"relative w-full",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Location",className:`w-full ${t?"h-[300px]":e?"h-[360px]":s?"h-[400px]":"h-[420px] md:h-[520px]"}`,src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed&z=12",loading:"lazy"})})]})}const qf={hero:"/images/Copy_of_IMG_20250905_112441_pjh7h0.jpg",accent:"/images/Orange_Iocn_fnx3aw.svg",thumb:"/images/Rectangle_98_rrzfkj.jpg",openPositionsBg:"/images/Rectangle_35_tetoe6.jpg",orangeBanner:"/images/Rectangle_63_f9abnb.jpg"};function lre(){const t=Y({maxWidth:768}),e=Y({maxWidth:1024});Y({maxHeight:600});const[n,s]=T.useState("1-2"),[r,a]=T.useState("Married"),[l,c]=T.useState("Yes"),[u,f]=T.useState("Good"),[m,g]=T.useState("Internship");return o.jsxs("div",{className:"min-h-screen w-full bg-white text-slate-800",children:[o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",marginTop:"60px",minHeight:e?"400px":"480px"},children:[o.jsx("img",{src:qf.hero,alt:"Careers hero",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(14,35,73,0.42)]"}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end mt-[-8%] justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:e?"translateY(-10%)":t?"translateY(-5%)":"translateY(0)",paddingTop:e?"2rem":t?"1rem":"0",paddingBottom:e?"2rem":t?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:qf.accent})}),o.jsx("h1",{className:"cent-schbk-cyrill z-10002",style:{lineHeight:"1.1",color:"#fff",marginBottom:"10%"},children:"Careers"})]})})]}),o.jsx("section",{className:"mx-auto w-[92%] max-w-[1180px] py-12 md:py-16",children:o.jsxs("div",{className:"grid grid-cols-1 items-start gap-8 md:grid-cols-12",children:[o.jsxs("div",{className:"md:col-span-7",children:[o.jsx("h2",{className:"font-serif text-[#1C3664] text-[26px] md:text-[34px] leading-snug",children:"Teach, Inspire and Grow"}),o.jsx("p",{className:"mt-4 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:"At Amatir, we believe that teaching is more than just a profession â it is a calling to shape the minds and hearts of future generations. When you join Gurukul school life at Amatir, you be
440come part of a vibrant learning community inspired by the rich tradition of Gurukul in India, where education goes beyond academics to nurture values, integrity, curiosity, and lifelong growth."}),o.jsx("p",{className:"mt-4 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:"We are looking for passionate educators seeking teaching jobs for CBSE and who are committed to excellence, innovation, and unlocking the potential of every student. At Amatir, you will:"}),o.jsxs("ul",{className:"mt-5 list-disc space-y-3 pl-5 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:[o.jsxs("li",{children:[o.jsx("span",{className:"font-medium",children:"Work with purpose:"})," Contribute to a meaningful educational mission that prioritizes character, critical thinking, well-being, and value-based teaching roles rooted in timeless wisdom and modern relevance."]}),o.jsxs("li",{children:[o.jsx("span",{className:"font-medium",children:"Collaborate with a dedicated team:"})," Be part of a supportive environment where educators share ideas, learn from one another, and grow together, much like the Gurukul academy jobs of ancient and modern India."]}),o.jsxs("li",{children:[o.jsx("span",{className:"font-medium",children:"Make a lasting impact:"})," Inspire students to become confident, compassionate individuals who are prepared for the challenges of tomorrow."]})]}),o.jsx("p",{className:"mt-5 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:"If you are seeking a workplace that recognizes your contribution, encourages professional development, and offers the opportunity to make a real difference, we invite you to explore career with purpose opportunities at Amatir."}),o.jsx("a",{href:"#apply",className:"mt-7 inline-block rounded-full bg-[#ED6D23] px-6 py-2 text-[14px] font-semibold text-white",children:"Apply"})]}),o.jsx("div",{className:"md:col-span-5",children:o.jsxs("div",{className:"relative overflow-hidden rounded-[14px] shadow-sm",children:[o.jsx("img",{src:qf.thumb,alt:"Teach at Amatir",className:"block h-[280px] w-full object-cover md:h-[360px]"}),o.jsx("div",{className:"absolute inset-0 bg-black/20"})]})})]})}),o.jsxs("section",{className:"relative overflow-hidden border-y border-white/20",children:[o.jsx("img",{src:qf.openPositionsBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#1C3664]/92"}),o.jsx("div",{className:"relative z-[1] px-6 py-14 md:py-16",children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[980px] text-center text-white",children:[o.jsx("h2",{className:"font-serif text-[26px] md:text-[32px]",children:"Open Positions"}),o.jsx("p",{className:"mx-auto mt-3 max-w-[920px] text-[14px] md:text-[16px] leading-8 text-white/95",children:"Amatir is always looking for passionate and skilled educators who are eager to inspire young minds and contribute to a values-driven learning environment. Explore our current opportunities and discover how you can be part of a dynamic and supportive team."}),o.jsx(Ve,{to:"#apply",className:"mt-6 inline-flex items-center justify-center rounded-full bg-[#ED6D23] px-6 py-2 text-[14px] font-semibold text-white shadow-sm hover:brightness-105",children:"Download"})]})})]}),o.jsxs("section",{id:"apply",className:"mx-auto w-[92%] max-w-[740px] py-14 md:py-18",children:[o.jsx("h2",{className:"text-center font-serif text-[26px] md:text-[30px] text-[#1C3664]",children:"Apply Now"}),o.jsxs("p",{className:"mx-auto mt-2 max-w-[560px] text-center text-[14px] leading-7 text-[#3A3A3A]",children:["Ready to take the next step in your teaching career?"," ",o.jsx("br",{className:"hidden md:block"}),"Click below to view available roles and submit your application."]}),o.jsxs("div",{className:"flex-1 p-6 sm:p-8",style:{overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:[o.jsx("style",{children:` 441 div::-webkit-scrollbar {
442 display: none; 443 } 444 `}),o.jsx("iframe",{title:"Apply Now","aria-label":"Apply Now",src:"https://forms.zohopublic.in/adminama1/form/ApplyNow/formperma/bR5daVr8xzcd2v5mQwkWJw-hBeZQjZwxAXG4V9psqjU",style:{width:"calc(100% + 45px)",height:"820px",border:"none",borderRadius:"12px"},allowFullScreen:!0})]})]}),o.jsxs("section",{className:"relative w-full",children:[o.jsx("img",{src:qf.orangeBanner,alt:"",className:"h-[260px] w-full object-cover md:h-[300px]"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(237,109,35,0.88)]"}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-4 text-center text-white",children:[o.jsx("h3",{className:"font-serif text-[24px] md:text-[28px]",children:"Unlock her future!"}),o.jsx("p",{className:"mt-2 max-w-[680px] text-[14px] leading-7 md:text-[15px]",children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/contact",className:"mt-5 inline-flex items-center gap-2 rounded-full bg-[#0E2349] px-5 py-2 text-[14px] font-semibold text-white",children:"Get In Touch"})]})]}),o.jsx("section",{className:"relative w-full",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Location",className:"h-[420px] w-full md:h-[520px]",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed&z=12",loading:"lazy"})})]})}const _2={reading:"/images/Rectangle_110_1_vvwqwv.jpg",creative:"/images/Rectangle_110_2_dyyrg6.jpg",debating:"/images/Debate1_hmlmfm.jpg"},yS={bg:"#F5F5F5",heading:"#1C3664"};function iP(){const t=Y({maxWidth:767});return o.jsx("section",{style:{backgroundColor:yS.bg},className:`${t?"":"h-screen"} flex`,children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1200px] flex h-full flex-col py-8 md:py-12",children:[o.jsxs("header",{className:"text-center",children:[o.jsx("h2",{className:"mb-4 leading-[1.2]",style:{fontFamily:'"CentSchbkCyrill BT","PT Serif",serif',fontWeight:400,fontSize:"44px",lineHeight:"120%",letterSpacing:"0",color:yS.heading},children:"From Words to Expression"}),o.jsx("p",{className:"mx-auto max-w-[820px] text-[#000000]/80",style:{fontFamily:'Univers, "Roboto", system-ui, -apple-system, sans-serif',fontWeight:400,fontSize:"18px",lineHeight:"150%",letterSpacing:"-0.02em",textAlign:"center"},children:"Building strong language skills to inspire imagination, clarity, and confident communication."})]}),o.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-5 md:mt-12 md:grid-cols-3 md:gap-8",children:[o.jsx(j2,{img:_2.reading,title:"Reading",body:"Invites focus, imagination, and a lifelong love for books."}),o.jsx(j2,{img:_2.creative,title:"Creative Writing",body:"Encouraging self-expression through stories, poems, and ideas."}),o.jsx(j2,{img:_2.debating,title:"Debating",body:"Sharpening thinking, confidence, and the power to speak with clarity."})]}),o.jsx("p",{className:"mx-auto mt-10 max-w-[980px] text-center md:mt-12 text-[#000000]/80",style:{fontFamily:'Univers, "Roboto", system-ui, -apple-system, sans-serif',fontWeight:400,fontSize:"18px",lineHeight:"150%",letterSpacing:"-0.02em"},children:"Amatirâs blend of values and experiences truly reflects what makes us one of the best Gurukuls in India for girls."})]})})}function j2({img:t,title:e,body:n}){return o.jsxs("div",{className:"overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm transition-shadow hover:shadow-md",children:[o.jsx("div",{className:"relative",children:o.jsx("img",{src:t,alt:e,className:"h-[220px] w-full object-cover md:h-[240px] lg:h-[260px]"})}),o.jsxs("div",{className:"p-5 md:p-6",children:[o.jsx("h3",{className:"mb-2",style:{fontFamily:'"CentSchbkCyrill BT","PT Serif",serif',fontWeight:400,fontSize:"28px",lineHeight:"120%",letterSpacing:"0",color:yS.heading},children:e}),o.jsx("p",{className:"text-[#000000]/70",style:{fontFamily:'Univers, "Roboto", system-ui, -apple-system, sans-serif',fontWeight:400,fontSize:"16px",lineHeight:"150%",letterSpacing:"-0.02em"},children:n})]})]})}const en={orangeIcon:"/images/Orange_Icon_i299iz.svg",hero:"/images/Main-cocurricular_1_mqjnop.jpg",band:"/images/Rectangle_110_z3567i.jpg",s1:"/images/WhatsApp_Image_2025-08-20_at_10.16.46_AM_1_ddz0gj.jpg",s2:"/images/Rectangle_101_vwxaqf.jpg",s3:"/images/Rectangle_107_mjkkny.jpg",s4:"/images/Rectangle_102_hveven.jpg",s5:"/images/Rectangle_112_f2pd47.jpg",s6:"/images/Rectangle_103_lc0vlr.jpg",s7:"/images/Rectangle_108_gtjkhm.jpg",s8:"/images/WhatsApp_Image_2025-02-27_at_11.30.13_AM_bx6kqm.jpg",s9:"/images/Rectangle_113_wtshss.jpg",s10:"/images/sports3_tm2fud.jpg",s11:"/images/Rectangle_109_ibi479.jpg",s12:"/images/Rectangle_106_pqh4w0.jpg",s13
444:"/images/Rectangle_111_cqenhk.jpg",s14:"/images/Rectangle_100_1_b9eotf.jpg",sLast:"/images/Rectangle_101_1_gdw4sm.jpg",sLastMost:"/images/KUM_3689_rau4ju.jpg",performing:"/images/Dance_owgas0.jpg",gA:"/images/WhatsApp_Image_2025-08-20_at_10.16.46_AM_1_ddz0gj.jpg",gB:"/images/WhatsApp_Image_2025-08-20_at_11.36.55_AM_1_wgsj3d.jpg",gC:"/images/BA-Sports10_r5wixc.jpg",gD:"/images/cocurricular2_rzalon.jpg",gE:"/images/2_3_hkh6bu.jpg",gF:"/images/co-curricular1_urazg4.jpg",gG:"/images/cocurricular3_iwnzau.jpg",gH:"/images/4_2_ppfqip.jpg"},cre=({children:t,className:e=""})=>o.jsx("h2",{className:`font-['CentSchbkCyrill_BT:Roman',_serif] text-[#1C3664] tracking-[0.01em] text-[28px] md:text-[32px] ${e}`,children:t}),ob=({dir:t="left",onClick:e})=>o.jsx("button",{onClick:e,className:"grid h-10 w-10 place-items-center rounded-full border border-[#ED6D23] text-[#ED6D23] hover:bg-[#ED6D23] hover:text-white transition-colors cursor-pointer","aria-label":t==="left"?"Previous":"Next",children:t==="left"?o.jsx("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("path",{d:"M15 18l-6-6 6-6",strokeLinecap:"round",strokeLinejoin:"round"})}):o.jsx("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("path",{d:"M9 6l6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})})}),dre=()=>{const s=[[en.s1,en.s2,en.s3],[en.s4,en.s5],[en.s6,en.s7],[en.s8,en.s9],[en.s10,en.s11],[en.s12,en.s13],[en.s14,en.sLast,en.sLastMost]],r=l=>[0,2,4,6].includes(l)?18:109,a=({src:l})=>o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_14px_32px_rgba(0,29,73,0.14)]",style:{height:186},children:o.jsx("img",{src:l,alt:"",className:"h-full w-full object-cover"})});return o.jsx("section",{className:"bg-[#F7F9FB] py-12",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsx("div",{className:"grid grid-cols-7",style:{gap:"16px"},children:s.map((l,c)=>o.jsx("div",{style:{marginTop:r(c)},children:o.jsx("div",{className:"flex flex-col",style:{gap:"16px"},children:l.map((u,f)=>o.jsx(a,{src:u},f))})},c))}),o.jsxs("div",{className:" mx-auto text-center z-20",style:{marginTop:"-6%",width:"100%"},children:[o.jsx("h2",{className:"font-['CentSchbkCyrill_BT',_serif] font-normal not-italic text-[44px] leading-[120%] tracking-normal text-center",children:"Sports"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[720px] text-center font-['Univers',_sans-serif] font-normal not-italic text-[18px] leading-[1.5] tracking-[-0.02em] text-[#2b2b2b]",children:"At Amatir, the spirit of discipline, teamwork, and excellence is forged on the field. Through expert coaching in volleyball, basketball, football, handball, athletics, taekwondo, and access to a 400m track, our students consistently excelâfrom district tournaments to national stages like Khelo India."})]})]})})},ure=()=>{const t=["/images/NCC1_nse9hs.jpg","/images/059A0024_kgbope.jpg","/images/NCC3_p3yo6h.jpg"],[e,n]=$e.useState(0);return o.jsx("section",{className:"py-14 bg-white",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"grid items-start gap-10 md:grid-cols-[1fr_600px]",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"mb-2 font-['CentSchbkCyrill_BT',_serif] font-normal not-italic text-[44px] leading-[120%] tracking-normal text-[#1C3664]",children:"NCC"}),o.jsx("p",{className:"max-w-[520px] text-[14.5px] leading-[1.85] text-[#2b2b2b]",children:"As part of the 10th Haryana Battalion Senior Wing, our NCC unit instills discipline, leadership, and national pride. Through drills, camps, and training, cadets build resilience, responsibility, and the strength to serve society with confidence."})]}),o.jsx("div",{className:"justify-self-end",children:o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",children:o.jsx("div",{className:"relative w-[min(600px,90vw)] pb-[66%]",children:o.jsx("img",{src:t[e],alt:"NCC",className:"absolute inset-0 h-full w-full object-cover"})})})})]}),o.jsxs("div",{className:"mt-5 flex justify-center gap-6",children:[o.jsx(ob,{dir:"left",onClick:()=>n(s=>(s-1+t.length)%t.length)}),o.jsx(ob,{dir:"right",onClick:()=>n(s=>(s+1)%t.length)})]})]})})},hre=()=>{const[t,e]=$e.useState("music"),n={music:{title:"Music",content:"Opportunities to learn instruments, Indian vocals, and build confidence through rhythm, melody, and teamwork."},dance:{title:"Dance",content:"Encourages expression, coordination, and joy through Indian classical dance and creative movement."},theater:{title:"Theatre",content:"Builds communication skills, stage presence, and self-confidence through acting and storytelling."}};return o.jsx("section",{className:"py-14 bg-[#F5F5F5]",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h2",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"44px",lineHeight:"120%",letterSpacing:"0%",textAlign:"center",color:"#1C3664"},className:"mb-2",children:"Performing Arts"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[560px] text-center",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"18px",lineHeight:"150%",letterSpacing:"-0.02em",color:"#2b2b2b"},children:"Encouraging students to explore their voice, presence, and passion through meaningful artistic experiences."})]}),o.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-[560px_1fr]",children:[o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",children:o.jsx("img",{src:t==="music"?"/images/Music_kv48l2.jpg":t==="dance"?"/images/Dance_owgas0.jpg":t==="theater"?"/images/Theater_mcahmk.jpg":en.performing,alt:"",className:"h-[420px] w-full object-cover"})}),o.jsxs("div",{className:"space-y-7",children:[o.jsxs("div",{className:`flex items-start gap-4 cursor-pointer transition-all duration-200 ${t==="music"?"":"opacity-60 hover:opacity-80"}`,onClick:()=>e("music"),children:[o.jsx("div",{className:`h-8 w-[2px] transition-all duration-200 ${t==="music"?"h-20 bg-[#ED6D23]":"bg-[#1C3664]"}`}),o.jsxs("div",{children:[o.jsx("div",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"32px",lineHeight:"140%",letterSpacing:"0%",color:"#1C3664"},children:n.music.title}),t==="music"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.music.content})]})]}),o.jsxs("div",{className:`flex items-start gap-4 cursor-pointer transition-all duration-200 ${t==="dance"?"":"op
444acity-60 hover:opacity-80"}`,onClick:()=>e("dance"),children:[o.jsx("div",{className:`h-8 w-[2px] transition-all duration-200 ${t==="dance"?"h-20 bg-[#ED6D23]":"bg-[#1C3664]"}`}),o.jsxs("div",{children:[o.jsx("div",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"32px",lineHeight:"140%",letterSpacing:"0%",color:"#1C3664"},children:n.dance.title}),t==="dance"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.dance.content})]})]}),o.jsxs("div",{className:`flex items-start gap-4 cursor-pointer transition-all duration-200 ${t==="theater"?"":"opacity-60 hover:opacity-80"}`,onClick:()=>e("theater"),children:[o.jsx("div",{className:`h-8 w-[2px] transition-all duration-200 ${t==="theater"?"h-20 bg-[#ED6D23]":"bg-[#1C3664]"}`}),o.jsxs("div",{children:[o.jsx("div",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"32px",lineHeight:"140%",letterSpacing:"0%",color:"#1C3664"},children:n.theater.title}),t==="theater"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.theater.content})]})]})]})]})]})})},fre=()=>{const[t,e]=T.useState(!1);return o.jsxs("section",{className:"py-14 bg-white",children:[o.jsx("div",{className:"mx-auto w-[min(1180px,92vw)] text-center",children:o.jsx("h2",{className:"mb-6",style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"44px",lineHeight:"120%",letterSpacing:"0%",textAlign:"center",color:"#1C3664"},children:"Creative Expressions"})}),o.jsx("div",{className:"mx-auto w-[90%] max-w-[1100px]",children:o.jsxs("div",{className:"relative group mt-6 rounded-[12px] overflow-hidden",children:[o.jsx("img",{src:"/images/Reading_gghzie.jpg",alt:"Campus video",className:"w-full h-[420px] md:h-[520px] object-cover"}),o.jsx("button",{onClick:()=>e(!0),"aria-label":"Play video",className:"absolute inset-0 grid place-items-center cursor-pointer",children:o.jsx("span",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-white/30 backdrop-blur-sm grid place-items-center",children:o.jsx("span",{className:"ml-1 border-l-[14px] border-l-white border-y-[10px] border-y-transparent"})})})]})}),t&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:n=>{n.target===n.currentTarget&&e(!1)},children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("button",{onClick:()=>e(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"}),o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/aUzKbx04g9U?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})]})]})]})},mre=()=>{const t=[{id:"drawing",title:"Drawing",image:"/images/Drawing_hnprij.jpg",description:"Encourages observation and imagination as students bring their ideas to life on paper."},{id:"Paper-Recycling",title:"Paper Recycling",image:"/images/paper_recycling_hxhbap.jpg",description:"Teaches eco-friendly habits by turning waste paper into useful and creative items."},{id:"quilling",title:"Quilling",image:"/images/Quilling02_ftkvyw.jpg",description:"Builds focus and creativity through beautiful paper art made by rolling and shaping strips."},{id:"Painting",title:"Painting",image:"/images/Painting_ntq920.jpg",description:"Lets students express feelings and ideas through colors, brushwork, and visual storytelling."}];return o.jsx("section",{className:"py-14 bg-[#0E3773] text-white relative",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h3",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[28px] md:text-[32px]",children:"Fine Arts"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[700px] text-[14.5px] leading-[1.85] opacity-95",children:"Exploring creativity through diverse mediums, our Fine Arts program nurtures expression, environmental awareness, and hands-on skill development."})]}),o.jsx("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-4",children:t.map(e=>o.jsxs("article",{className:"group relative overflow-hidden rounded-[10px] bg-white text-[#1C3664] cursor-pointer",children:[o.jsx("div",{className:"relative h-[220px] overflow-hidden",children:o.jsx("img",{src:e.image,alt:e.title,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"})}),o.jsx("div",{className:"grid place-items-center bg-[#ED6D23] py-3 text-white font-['CentSchbkCyrill_BT:Roman',_serif] transition-all duration-300 group-hover:bg-[#
444ED6D23]/90",children:e.title}),o.jsxs("div",{className:"absolute inset-0 bg-[#ED6D23]/95 px-5 py-4 text-white transform translate-y-full transition-transform duration-300 group-hover:translate-y-0 flex flex-col justify-center",children:[o.jsx("div",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[20px] mb-2",children:e.title}),o.jsx("p",{className:"text-[14px] leading-[1.5] opacity-95",children:e.description})]})]},e.id))})]})})},pre=()=>{const[t,e]=$e.useState("fashion"),n={fashion:{title:"Fashion Designing",content:"Students explore creativity and style by designing outfits and learning the basics of fashion."},shark:{title:"Shark Tank",content:"A fun, hands-on club where students pitch ideas, learn about business, and build confidence in communication."},tech:{title:"Tech Hackathon",content:"Encourages teamwork and problem-solving as students use technology to build real-world solutions."},vedic:{title:"Vedic Math",content:"Ancient techniques that make math faster, easier, and funâbuilding confidence with every calculation."}};return o.jsx("section",{className:"py-14 bg-[#F5F5F5]",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("div",{className:"cent-schbk-cyrill",children:"Elevate Clubs"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[600px] text-[14.5px] leading-[1.85] text-[#2b2b2b]",children:"Our Elevate Clubs spark creativity and innovationâempowering students to explore their passions and develop real-world skills."})]}),o.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-[560px_1fr]",children:[o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",children:o.jsx("img",{src:t==="fashion"?"/images/fashion_desgining_phj71k.jpg":t==="shark"||t==="tech"?"/images/Tech_Hackathon_ryxqzm.jpg":t==="vedic"?"/images/Vedic_Math_pxwnyk.jpg":"/images/fashion_desgining_phj71k.jpg",alt:"",className:"h-[420px] w-full object-cover"})}),o.jsxs("div",{className:"space-y-7 text-left",children:[o.jsxs("div",{className:`flex items-start gap-4 cursor-pointer transition-all duration-200 ${t==="fashion"?"":"opacity-60 hover:opacity-80"}`,onClick:()=>e("fashion"),children:[o.jsx("div",{className:`h-8 w-[2px] transition-all duration-200 ${t==="fashion"?"h-20 bg-[#ED6D23]":"bg-[#1C3664]"}`}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill text-[15px] text-left text-[#1C3664]",style:{fontSize:"28px",color:"#1C3664",textAlign:"left"},children:n.fashion.title}),t==="fashion"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.fashion.content})]})]}),o.jsxs("div",{className:`flex items-start gap-4 cursor-pointer transition-all duration-200 ${t==="shark"?"":"opacity-60 hover:opacity-80"}`,onClick:()=>e("shark"),children:[o.jsx("div",{className:`h-8 w-[2px] transition-all duration-200 ${t==="shark"?"h-20 bg-[#ED6D23]":"bg-[#1C3664]"}`}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"28px",color:"#1C3664",textAlign:"left"},children:n.shark.title}),t==="shark"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.shark.content})]})]}),o.jsxs("div",{className:`flex items-start gap-4 cursor-pointer transition-all duration-200 ${t==="tech"?"":"opacity-60 hover:opacity-80"}`,onClick:()=>e("tech"),children:[o.jsx("div",{className:`h-8 w-[2px] transition-all duration-200 ${t==="tech"?"h-20 bg-[#ED6D23]":"bg-[#1C3664]"}`}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"28px",color:"#1C3664",textAlign:"left"},children:n.tech.title}),t==="tech"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.tech.content})]})]}),o.jsxs("div",{className:`flex items-start gap-4 cursor-pointer transition-all duration-200 ${t==="vedic"?"":"opacity-60 hover:opacity-80"}`,onClick:()=>e("vedic"),children:[o.jsx("div",{className:`h-8 w-[2px] transition-all duration-200 ${t==="vedic"?"h-20 bg-[#ED6D23]":"bg-[#1C3664]"}`}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"28px",color:"#1C3664",textAlign:"left"},children:n.vedic.title}),t==="vedic"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.vedic.content})]})]})]})]})]})})},gre=()=>{const t=["/images/Acad-Lab05_ellv9a.jpg","/images/BA-Cooking01_wvgalp.jpg","/images/cooking1_xvgxzy.jpg","/images/cooking2_t0benh.jpg"],[e,n]=$e.useState(0);return o.jsx("section",{className:"py-14 bg-white",children:o.jsxs("div",{className:"mx-auto grid w-[min(1180px,92vw)] items-start gap-10 md:grid-cols-[1fr_600px]",children:[o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{color:"#1C3664",marginBottom:"0.5rem"},children:"Cooking"}),o.jsx("p",{className:"max-w-[620px] text-[14.5px] leading-[1.85] text-[#2b2b2b]",children:"Cooking is a creative life skill woven into everyday learning. Students explore nutrition, hygiene, food science, and meal planning through hands-on sessions in the kitchen. Fireless Cooking introduces younger students to healthy eating and safety, while the Multi-Cuisine Club lets seniors experiment with regional and global recipesâcelebrating food diversity and teamwork. Every Sunday, senior classes prepare Sunday Snacks for the hostelâplanning, cooking, and serving meals that blend leadership with the joy of sharing. These traditions nurture confidence, collaboration, and a lifelong appreciation for wholesome food."})]}),o.jsxs("div",{className:"justify-self-end",children:[o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",children:o.jsx("div",{className:"relative w-[min(600px,90vw)] pb-[66%]",children:o.jsx("img",{src:t[e],alt:"",className:"absolute inset-0 h-full w-full object-cover"})})}),o.jsxs("div",{className:"mt-5 flex justify-center gap-6",children:[o.jsx(ob,{dir:"left",onClick:()=>n(s=>(s-1+t.length)%t.length)}),o.jsx(ob,{dir:"right",onClick:()=>n(s=>(s+1)%t.length)})]})]})]})})},xre=()=>{const e=({src:n,col:s,span:r,rows:a})=>o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.14)]",style:{gridColumn:`${s} / span ${r}`,gridRow:`span ${a}`},children:o.jsx("img",{src:n,alt:"",className:"h-full w-full object-cover"})});return o.jsx("section",{className:"py-14 bg-white",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"text-center mb-6",children:[o.jsx(cre,{style:{fontFamily:"CentSchbkCyrill BT",fontWeight:400,fontStyle:"normal",fontSize:"44px",lineHeight:"120%",letterSpacing:"0%",textAlign:"center"},children:"Gallery"}),o.jsx("p",{className:"text-[#2b2b2b] pb-7",style:{fontFamily:"Univers, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"18px",lineHeight:"150%",letterSpacing:"-0.02em",textAlign:"center"},children:"Snapshots of life beyond the classroom"})]}),o.jsxs("div",{className:"grid",style:{gridTemplateColumns:"repeat(12, 1fr)",gridAutoRows:"10px",gap:"16px"},children:[o.jsx(e,{src:en.gA,col:1,span:7,rows:26}),o.jsx(e,{src:en.gB,col:8,span:5,rows:12}),o.jsx(e,{src:en.gC,col:8,span:5,rows:12}),o.jsx(e,{src:en.gD,col:1,span:4,rows:12}
444),o.jsx(e,{src:en.gE,col:5,span:3,rows:12}),o.jsx(e,{src:en.gH,col:8,span:5,rows:24}),o.jsx(e,{src:en.gF,col:1,span:3,rows:12}),o.jsx(e,{src:en.gG,col:4,span:4,rows:12})]})]})})},yre=()=>{const[t,e]=$e.useState(window.innerHeight);return $e.useEffect(()=>{const n=()=>{e(window.innerHeight)};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t};function bre(){const t=yre(),e=Is();return o.jsxs("main",{className:"bg-white text-[#1C3664]",children:[o.jsxs("section",{id:"cocurricular-hero",className:"relative",style:{height:`${t}px`},children:[o.jsx("img",{src:en.hero,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-[#012a6a] opacity-80"}),o.jsx("div",{className:"relative z-10 flex h-full items-end justify-center text-center text-white pb-[11%]",children:o.jsxs("div",{children:[o.jsx("img",{src:en.orangeIcon,alt:"",className:"mx-auto mb-2 h-7 w-7"}),o.jsx("h1",{className:"cent-schbk-cyrill text-[34px] md:text-[42px] leading-tight",children:"Co Curricular"})]})})]}),o.jsxs("section",{className:"relative isolate w-[80%] mx-auto py-10 text-white",children:[o.jsx("img",{src:en.band,alt:"",className:"absolute inset-0 -z-10 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 -z-10 bg-[#ED6D23]/85 "}),o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)] text-center",children:[o.jsx("h3",{className:"font-['CentSchbkCyrill_BT',_serif] font-normal not-italic text-[44px] leading-[140%] tracking-normal text-center",children:"Beyond the Classroom"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[700px] text-center font-['Univers',_sans-serif] font-normal not-italic text-[16px] leading-[1.5] tracking-normal",children:"At Amatir, we believe that true education nurtures every part of a childâs being. As a leading Gurukul academy focused on holistic growth, our students go far beyond academicsâengaging in music, yoga, sports, creative arts, and leadership-building programs that cultivate balance, creativity, and inner discipline."})]})]}),o.jsx(dre,{}),o.jsx(ure,{}),o.jsx(hre,{}),o.jsx(fre,{}),o.jsx(mre,{}),o.jsx(pre,{}),o.jsx(gre,{}),o.jsx(iP,{}),o.jsx("div",{style:{padding:"3rem",height:"1px",width:"100%"},children:" "}),o.jsx(xre,{}),o.jsxs("section",{className:"relative isolate w-full py-14 text-center text-white",children:[o.jsx("img",{src:en.band,alt:"",className:"absolute inset-0 -z-10 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 -z-10 bg-[#ED6D23]/85 py-14"}),o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsx("h4",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[22px] md:text-[26px] mb-2",children:"Unlock her future!"}),o.jsx("p",{className:"mx-auto max-w-[640px] text-[14.5px] leading-[1.85] mb-4",children:"Guided by Dharma, Prepared for the World."}),o.jsx("button",{onClick:()=>e("/contact"),className:"rounded-full bg-[#1C3664] px-6 py-2 text-white shadow-[0_12px_28px_rgba(0,29,73,0.16)] cursor-pointer",children:"Get in Touch"})]})]}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}const xj=T.createContext({});function yj(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const Gb=T.createContext(null),bj=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class vre extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wre({children:t,isPresent:e}){const n=T.useId(),s=T.useRef(null),r=T.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=T.useContext(bj);return T.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:f}=r.current;if(e||!s.current||!l||!c)return;s.current.dataset.motionPopId=n;
vendor: 8,209 bytes, lines 444-452
444const m=document.createElement("style");return a&&(m.nonce=a),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` 445 [data-motion-pop-id="${n}"] { 446 position: absolute !important; 447 width: ${l}px !important; 448 height: ${c}px !important; 449 top: ${u}px !important; 450 left: ${f}px !important; 451 } 452 `),()=>{document.head.removeChild(m)}},[e]),o.jsx(vre,{isPresent:e,childRef:s,sizeRef:r,children:T.cloneElement(t,{ref:s})})}const Nre=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:a,mode:l})=>{const c=yj(Sre),u=T.useId(),f=T.useCallback(g=>{c.set(g,!0);for(const x of c.values())if(!x)return;s&&s()},[c,s]),m=T.useMemo(()=>({id:u,initial:e,isPresent:n,custom:r,onExitComplete:f,register:g=>(c.set(g,!1),()=>c.delete(g))}),a?[Math.random(),f]:[n,f]);return T.useMemo(()=>{c.forEach((g,x)=>c.set(x,!1))},[n]),T.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),l==="popLayout"&&(t=o.jsx(wre,{isPresent:n,children:t})),o.jsx(Gb.Provider,{value:m,children:t})};function Sre(){return new Map}function sP(t=!0){const e=T.useContext(Gb);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=e,a=T.useId();T.useEffect(()=>{t&&r(a)},[t]);const l=T.useCallback(()=>t&&s&&s(a),[a,s,t]);return!n&&s?[!1,l]:[!0]}const o0=t=>t.key||"";function K4(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const vj=typeof window<"u",rP=vj?T.useLayoutEffect:T.useEffect,Fu=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:a="sync",propagate:l=!1})=>{const[c,u]=sP(l),f=T.useMemo(()=>K4(t),[t]),m=l&&!c?[]:f.map(o0),g=T.useRef(!0),x=T.useRef(f),b=yj(()=>new Map),[v,w]=T.useState(f),[N,_]=T.useState(f);rP(()=>{g.current=!1,x.current=f;for(let C=0;C<N.length;C++){const A=o0(N[C]);m.includes(A)?b.delete(A):b.get(A)!==!0&&b.set(A,!1)}},[N,m.length,m.join("-")]);const E=[];if(f!==v){let C=[...f];for(let A=0;A<N.length;A++){const L=N[A],M=o0(L);m.includes(M)||(C.splice(A,0,L),E.push(L))}a==="wait"&&E.length&&(C=E),_(K4(C)),w(f);return}const{forceRender:k}=T.useContext(xj);return o.jsx(o.Fragment,{children:N.map(C=>{const A=o0(C),L=l&&!c?!1:f===N||m.includes(A),M=()=>{if(b.has(A))b.set(A,!0);else return;let O=!0;b.forEach(P=>{P||(O=!1)}),O&&(k?.(),_(x.current),l&&u?.(),s&&s())};return o.jsx(Nre,{isPresent:L,initial:!g.current||n?void 0:!1,custom:L?void 0:e,presenceAffectsLayout:r,mode:a,onExitComplete:L?void 0:M,children:C},A)})})},Fr=t=>t;let aP=Fr;function wj(t){let e;return()=>(e===void 0&&(e=t()),e)}const vh=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},Xo=t=>t*1e3,Zo=t=>t/1e3,_re={useManualTiming:!1};function jre(t){let e=new Set,n=new Set,s=!1,r=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(f){a.has(f)&&(u.schedule(f),t()),f(l)}const u={schedule:(f,m=!1,g=!1)=>{const b=g&&s?e:n;return m&&a.add(f),b.has(f)||b.add(f),f},cancel:f=>{n.delete(f),a.delete(f)},process:f=>{if(l=f,s){r=!0;return}s=!0,[e,n]=[n,e],e.forEach(c),e.clear(),s=!1,r&&(r=!1,u.process(f))}};return u}const l0=["read","resolveKeyframes","update","preRender","render","postRender"],Ere=40;function oP(t,e){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=l0.reduce((_,E)=>(_[E]=jre(a),_),{}),{read:c,resolveKeyframes:u,update:f,preRender:m,render:g,postRender:x}=l,b=()=>{const _=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(_-r.timestamp,Ere),1),r.timestamp=_,r.isProcessing=!0,c.process(r),u.process(r),f.process(r),m.process(r),g.process(r),x.process(r),r.isProcessing=!1,n&&e&&(s=!1,t(b))},v=()=>{n=!0,s=!0,r.isProcessing||t(b)};return{schedule:l0.reduce((_,E)=>{const k=l[E];return _[E]=(C,A=!1,L=!1)=>(n||v(),k.schedule(C,A,L)),_},{}),cancel:_=>{for(let E=0;E<l0.length;E++)l[l0[E]].cancel(_)},state:r,steps:l}}const{schedule:Mn,cancel:fc,state:ls,steps:E2}=oP(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fr,!0),lP=T.createContext({strict:!1}),Y4={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"]},wh={};for(const t in Y4)wh[t]={isEnabled:e=>Y4[t].some(n=>!!e[n])};function kre(t){for(const e in t)wh[e]={...wh[e],...t[e]}}const Cre=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function lb(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Cre.has(t)}let cP=t=>!lb(t);function Tre(t){t&&(cP=e=>e.startsWith("on")?!lb(e):t(e))}try{Tre(require("@emotion/is-prop-valid").default)}catch{}function Are(t,e,n){const s={};for(const r in t)r==="values"&&typeof t.values=="object"||(cP(r)||n===!0&&lb(r)||!e&&!lb(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}function Mre(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const qb=T.createContext({});function vp(t){return typeof t=="string"||Array.isArray(t)}function Kb(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Nj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sj=["initial",...Nj];function Yb(t){return Kb(t.animate)||Sj.some(e=>vp(t[e]))}function dP(t){return!!(Yb(t)||t.variants)}function Rre(t,e){if(Yb(t)){const{initial:n,animate:s}=t;return{initial:n===!1||vp(n)?n:void 0,animate:vp(s)?s:void 0}}return t.inherit!==!1?e:{}}function Ore(t){const{initial:e,animate:n}=Rre(t,T.useContext(qb));return T.useMemo(()=>({initial:e,animate:n}),[X4(e),X4(n)])}function X4(t){return Array.isArray(t)?t.join(" "):t}const Dre=Symbol.for("motionComponentSymbol");function Vu(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Lre(t,e,n){return T.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):Vu(n)&&(n.current=s))},[e])}const _j=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ire="framerAppearId",uP="data-"+_j(Ire),{schedule:jj}=oP(queueMicrotask,!1),hP=T.createContext({});function Pre(t,e,n,s,r){var a,l;const{visualElement:c}=T.useContext(qb),u=T.useContext(lP),f=T.useContext(Gb),m=T.useContext(bj).reducedMotion,g=T.useRef(null);s=s||u.renderer,!g.current&&s&&(g.current=s(t,{visualState:e,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m}));const x=g.current,b=T.useContext(hP);x&&!x.projection&&r&&(x.type==="html"||x.type==="svg")&&Bre(g.current,n,r,b);const v=T.useRef(!1);T.useInsertionEffect(()=>{x&&v.current&&x.update(n,f)});const w=n[uP],N=T.useRef(!!w&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,w))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,w)));return rP(()=>{x&&(v.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),jj.render(x.render),N.current&&x.animationState&&x.animationState.animateChanges())}),T.useEffect(()=>{x&&(!N.current&&x.animationState&&x.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)===null||_===void 0||_.call(window,w)}),N.current=!1))}),x}function Bre(t,e,n,s){const{layoutId:r,layout:a,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:fP(t.parent)),t.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!l||c&&Vu(c),visualElement:t,animationType:typeof a=="str
452ing"?a:"both",initialPromotionConfig:s,layoutScroll:u,layoutRoot:f})}function fP(t){if(t)return t.options.allowProjection!==!1?t.projection:fP(t.parent)}function zre({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:r}){var a,l;t&&kre(t);function c(f,m){let g;const x={...T.useContext(bj),...f,layoutId:Fre(f)},{isStatic:b}=x,v=Ore(f),w=s(f,b);if(!b&&vj){Hre();const N=$re(x);g=N.MeasureLayout,v.visualElement=Pre(r,w,x,e,N.ProjectionNode)}return o.jsxs(qb.Provider,{value:v,children:[g&&v.visualElement?o.jsx(g,{visualElement:v.visualElement,...x}):null,n(r,f,Lre(w,v.visualElement,m),w,b,v.visualElement)]})}c.displayName=`motion.${typeof r=="string"?r:`create(${(l=(a=r.displayName)!==null&&a!==void 0?a:r.name)!==null&&l!==void 0?l:""})`}`;const u=T.forwardRef(c);return u[Dre]=r,u}function Fre({layoutId:t}){const e=T.useContext(xj).id;return e&&t!==void 0?e+"-"+t:t}function Hre(t,e){T.useContext(lP).strict}function $re(t){const{drag:e,layout:n}=wh;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Ure=["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 Ej(t){return typeof t!="string"||t.includes("-")?!1:!!(Ure.indexOf(t)>-1||/[A-Z]/u.test(t))}function Z4(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function kj(t,e,n,s){if(typeof e=="function"){const[r,a]=Z4(s);e=e(n!==void 0?n:t.custom,r,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,a]=Z4(s);e=e(n!==void 0?n:t.custom,r,a)}return e}const bS=t=>Array.isArray(t),Wre=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Vre=t=>bS(t)?t[t.length-1]||0:t,Ms=t=>!!(t&&t.getVelocity);function W0(t){const e=Ms(t)?t.get():t;return Wre(e)?e.toValue():e}function Gre({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,r,a){const l={latestValues:qre(s,r,a,t),renderState:e()};return n&&(l.onMount=c=>n({props:s,current:c,...l}),l.onUpdate=c=>n(c)),l}const mP=t=>(e,n)=>{const s=T.useContext(qb),r=T.useContext(Gb),a=()=>Gre(t,e,s,r);return n?a():yj(a)};function qre(t,e,n,s){const r={},a=s(t,{});
vendor: 103,817 bytes, line 452
452for(const x in a)r[x]=W0(a[x]);let{initial:l,animate:c}=t;const u=Yb(t),f=dP(t);e&&f&&!u&&t.inherit!==!1&&(l===void 0&&(l=e.initial),c===void 0&&(c=e.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const g=m?c:l;if(g&&typeof g!="boolean"&&!Kb(g)){const x=Array.isArray(g)?g:[g];for(let b=0;b<x.length;b++){const v=kj(t,x[b]);if(v){const{transitionEnd:w,transition:N,..._}=v;for(const E in _){let k=_[E];if(Array.isArray(k)){const C=m?k.length-1:0;k=k[C]}k!==null&&(r[E]=k)}for(const E in w)r[E]=w[E]}}}return r}const Rh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bd=new Set(Rh),pP=t=>e=>typeof e=="string"&&e.startsWith(t),gP=pP("--"),Kre=pP("var(--"),Cj=t=>Kre(t)?Yre.test(t.split("/*")[0].trim()):!1,Yre=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,xP=(t,e)=>e&&typeof t=="number"?e.transform(t):t,il=(t,e,n)=>n>e?e:n<t?t:n,Oh={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},wp={...Oh,transform:t=>il(0,1,t)},c0={...Oh,default:1},Vp=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Fl=Vp("deg"),lo=Vp("%"),nt=Vp("px"),Xre=Vp("vh"),Zre=Vp("vw"),J4={...lo,parse:t=>lo.parse(t)/100,transform:t=>lo.transform(t*100)},Jre={borderWidth:nt,borderTopWidth:nt,borderRightWidth:nt,borderBottomWidth:nt,borderLeftWidth:nt,borderRadius:nt,radius:nt,borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomRightRadius:nt,borderBottomLeftRadius:nt,width:nt,maxWidth:nt,height:nt,maxHeight:nt,top:nt,right:nt,bottom:nt,left:nt,padding:nt,paddingTop:nt,paddingRight:nt,paddingBottom:nt,paddingLeft:nt,margin:nt,marginTop:nt,marginRight:nt,marginBottom:nt,marginLeft:nt,backgroundPositionX:nt,backgroundPositionY:nt},Qre={rotate:Fl,rotateX:Fl,rotateY:Fl,rotateZ:Fl,scale:c0,scaleX:c0,scaleY:c0,scaleZ:c0,skew:Fl,skewX:Fl,skewY:Fl,distance:nt,translateX:nt,translateY:nt,translateZ:nt,x:nt,y:nt,z:nt,perspective:nt,transformPerspective:nt,opacity:wp,originX:J4,originY:J4,originZ:nt},Q4={...Oh,transform:Math.round},Tj={...Jre,...Qre,zIndex:Q4,size:nt,fillOpacity:wp,strokeOpacity:wp,numOctaves:Q4},eae={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tae=Rh.length;function nae(t,e,n){let s="",r=!0;for(let a=0;a<tae;a++){const l=Rh[a],c=t[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const f=xP(c,Tj[l]);if(!u){r=!1;const m=eae[l]||l;s+=`${m}(${f}) `}n&&(e[l]=f)}}return s=s.trim(),n?s=n(e,r?"":s):r&&(s="none"),s}function Aj(t,e,n){const{style:s,vars:r,transformOrigin:a}=t;let l=!1,c=!1;for(const u in e){const f=e[u];if(Bd.has(u)){l=!0;continue}else if(gP(u)){r[u]=f;continue}else{const m=xP(f,Tj[u]);u.startsWith("origin")?(c=!0,a[u]=m):s[u]=m}}if(e.transform||(l||n?s.transform=nae(e,t.transform,n):s.transform&&(s.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:m=0}=a;s.transformOrigin=`${u} ${f} ${m}`}}const iae={offset:"stroke-dashoffset",array:"stroke-dasharray"},sae={offset:"strokeDashoffset",array:"strokeDasharray"};function rae(t,e,n=1,s=0,r=!0){t.pathLength=1;const a=r?iae:sae;t[a.offset]=nt.transform(-s);const l=nt.transform(e),c=nt.transform(n);t[a.array]=`${l} ${c}`}function eR(t,e,n){return typeof t=="string"?t:nt.transform(e+n*t)}function aae(t,e,n){const s=eR(e,t.x,t.width),r=eR(n,t.y,t.height);return`${s} ${r}`}function Mj(t,{attrX:e,attrY:n,attrScale:s,originX:r,originY:a,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...f},m,g){if(Aj(t,f,g),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:x,style:b,dimensions:v}=t;x.transform&&(v&&(b.transform=x.transform),delete x.transform),v&&(r!==void 0||a!==void 0||b.transform)&&(b.transformOrigin=aae(v,r!==void 0?r:.5,a!==void 0?a:.5)),e!==void 0&&(x.x=e),n!==void 0&&(x.y=n),s!==void 0&&(x.scale=s),l!==void 0&&rae(x,l,c,u,!1)}const Rj=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),yP=()=>({...Rj(),attrs:{}}),Oj=t=>typeof t=="string"&&t.toLowerCase()==="svg";function bP(t,{style:e,vars:n},s,r){Object.assign(t.style,e,r&&r.getProjectionStyles(s));for(const a in n)t.style.setProperty(a,n[a])}const vP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function wP(t,e,n,s){bP(t,e,void 0,s);for(const r in e.attrs)t.setAttribute(vP.has(r)?r:_j(r),e.attrs[r])}const cb={};function oae(t){Object.assign(cb,t)}function NP(t,{layout:e,layoutId:n}){return Bd.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!cb[t]||t==="opacity")}function Dj(t,e,n){var s;const{style:r}=t,a={};for(const l in r)(Ms(r[l])||e.style&&Ms(e.style[l])||NP(l,t)||((s=n?.getValue(l))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(a[l]=r[l]);return a}function SP(t,e,n){const s=Dj(t,e,n);for(const r in t)if(Ms(t[r])||Ms(e[r])){const a=Rh.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[a]=t[r]}return s}function lae(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const tR=["x","y","width","height","cx","cy","r"],cae={useVisualState:mP({scrapeMotionValuesFromProps:SP,createRenderState:yP,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:r})=>{if(!n)return;let a=!!t.drag;if(!a){for(const c in r)if(Bd.has(c)){a=!0;break}}if(!a)return;let l=!e;if(e)for(let c=0;c<tR.length;c++){const u=tR[c];t[u]!==e[u]&&(l=!0)}l&&Mn.read(()=>{lae(n,s),Mn.render(()=>{Mj(s,r,Oj(n.tagName),t.transformTemplate),wP(n,s)})})}})},dae={useVisualState:mP({scrapeMotionValuesFromProps:Dj,createRenderState:Rj})};function _P(t,e,n){for(const s in e)!Ms(e[s])&&!NP(s,n)&&(t[s]=e[s])}function uae({transformTemplate:t},e){return T.useMemo(()=>{const n=Rj();return Aj(n,e,t),Object.assign({},n.vars,n.style)},[e])}function hae(t,e){const n=t.style||{},s={};return _P(s,n,t),Object.assign(s,uae(t,e)),s}function fae(t,e){const n={},s=hae(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}function mae(t,e,n,s){const r=T.useMemo(()=>{const a=yP();return Mj(a,e,Oj(s),t.transformTemplate),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};_P(a,t.style,t),r.style={...a,...r.style}}return r}function pae(t=!1){return(n,s,r,{latestValues:a},l)=>{const u=(Ej(n)?mae:fae)(s,a,l,n),f=Are(s,typeof n=="string",t),m=n!==T.Fragment?{...f,...u,ref:r}:{},{children:g}=s,x=T.useMemo(()=>Ms(g)?g.get():g,[g]);return T.createElement(n,{...m,children:x})}}function gae(t,e){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const l={...Ej(s)?cae:dae,preloadedFeatures:t,useRender:pae(r),createVisualElement:e,Component:s};return zre(l)}}function jP(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Xb(t,e,n){const s=t.getProps();return kj(s,e,n!==void 0?n:s.custom,t)}const xae=wj(()=>window.ScrollTimeline!==void 0);class yae{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(r=>{if(xae()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,a)=>{r&&r(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class bae extends yae{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Lj(t,e){return t?t[e]||t.default||t:void 0}const vS=2e4;function EP(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<vS;)e+=n,s=t.next(e);return e>=vS?1/0:e}function Ij(t){return typeof t=="function"}function nR(t,e){t.timeline=e,t.onfinish=null}const Pj=t=>Array.isArray(t)&&typeof t[0]=="number",vae={linearEasing:void 0};function wae(t,e){const n=wj(t);return()=>{var s;return(s=vae[e])!==null&&s!==void 0?s:n()}}const db=wae(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),kP=(t,e,n=10)=>{let s="";const r=Math.max(Math.round(e/n),2);for(let a=0;a<r;a++)s+=t(vh(0,r-1,a))+", ";return`linear(${s.substring(0,s.length-2)})`};function CP(t){return!!(typeof t=="function"&&db()||!t||typeof t=="string"&&(t in wS||db())||Pj(t)||Array.isArray(t)&&t.every(CP))}const um=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,wS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:um([0,.65,.55,1]),circOut:um([.55,0,1,.45]),backIn:um([.31,.01,.66,-.59]),backOut:um([.33,1.53,.69,.99])};function TP(t,e){if(t)return typeof t=="function"&&db()?kP(t,e):Pj(t)?um(t):Array.isArray(t)?t.map(n=>TP(n,e)||wS.easeOut):wS[t]}const Ra={x:!1,y:!1};function AP(){return Ra.x||Ra.y}function Nae(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let r=document;const a=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}function MP(t,e){const n=Nae(t),s=new AbortController,r={passive:!0,...e,signal:s.signal};return[n,r,()=>s.abort()]}function iR(t){return e=>{e.pointerType==="touch"||AP()||t(e)}}function Sae(t,e,n={}){const[s,r,a]=MP(t,n),l=iR(c=>{const{target:u}=c,f=e(c);if(typeof f!="function"||!u)return;const m=iR(g=>{f(g),u.removeEventListener("pointerleave",m)});u.addEventListener("pointerleave",m,r)});return s.forEach(c=>{c.addEventListener("pointerenter",l,r)}),a}const RP=(t,e)=>e?t===e?!0:RP(t,e.parentElement):!1,Bj=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,_ae=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jae(t){return _ae.has(t.tagName)||t.tabIndex!==-1}const hm=new WeakSet;function sR(t){return e=>{e.key==="Enter"&&t(e)}}function k2(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Eae=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=sR(()=>{if(hm.has(n))return;k2(n,"down");const r=sR(()=>{k2(n,"up")}),a=()=>k2(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",a,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function rR(t){return Bj(t)&&!AP()}function kae(t,e,n={}){const[s,r,a]=MP(t,n),l=c=>{const u=c.currentTarget;if(!rR(c)||hm.has(u))return;hm.add(u);const f=e(c),m=(b,v)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",x),!(!rR(b)||!hm.has(u))&&(hm.delete(u),typeof f=="function"&&f(b,{success:v}))},g=b=>{m(b,n.useGlobalTarget||RP(u,b.target))},x=b=>{m(b,!1)};window.addEventListener("pointerup",g,r),window.addEventListener("pointercancel",x,r)};return s.forEach(c=>{!jae(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,r),c.addEventListener("focus",f=>Eae(f,r),r)}),a}function Cae(t){return t==="x"||t==="y"?Ra[t]?null:(Ra[t]=!0,()=>{Ra[t]=!1}):Ra.x||Ra.y?null:(Ra.x=Ra.y=!0,()=>{Ra.x=Ra.y=!1})}const OP=new Set(["width","height","top","left","right","bottom",...Rh]);let V0;function Tae(){V0=void 0}const co={now:()=>(V0===void 0&&co.set(ls.isProcessing||_re.useManualTiming?ls.timestamp:performance.now()),V0),set:t=>{V0=t,queueMicrotask(Tae)}};function zj(t,e){t.indexOf(e)===-1&&t.push(e)}function Fj(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Hj{constructor(){this.subscriptions=[]}add(e){return zj(this.subscriptions,e),()=>Fj(this.subscriptions,e)}notify(e,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,s);else for(let a=0;a<r;a++){const l=this.subscriptions[a];l&&l(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function DP(t,e){return e?t*(1e3/e):0}const aR=30,Aae=t=>!isNaN(parseFloat(t));class Mae{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const a=co.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=co.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Aae(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Hj);const s=this.events[e].add(n);return e==="change"?()=>{s(),Mn.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=co.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>aR)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,aR);return DP(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Np(t,e){return new Mae(t,e)}function Rae(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Np(n))}function Oae(t,e){const n=Xb(t,e);let{transitionEnd:s={},transition:r={},...a}=n||{};a={...a,...s};for(const l in a){const c=Vre(a[l]);Rae(t,l,c)}}function Dae(t){return!!(Ms(t)&&t.add)}function NS(t,e){const n=t.getValue("willChange");if(Dae(n))return n.add(e)}function LP(t){return t.props[uP]}const IP=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Lae=1e-7,Iae=12;function Pae(t,e,n,s,r){let a,l,c=0;do l=e+(n-e)/2,a=IP(l,s,r)-t,a>0?n=l:e=l;while(Math.abs(a)>Lae&&++c<Iae);return l}function Gp(t,e,n,s){if(t===e&&n===s)return Fr;const r=a=>Pae(a,0,1,t,n);return a=>a===0||a===1?a:IP(r(a),e,s)}const PP=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,BP=t=>e=>1-t(1-e),zP=Gp(.33,1.53,.69,.99),$j=BP(zP),FP=PP($j),HP=t=>(t*=2)<1?.5*$j(t):.5*(2-Math.pow(2,-10*(t-1))),Uj=t=>1-Math.sin(Math.acos(t)),$P=BP(Uj),UP=PP(Uj),WP=t=>/^0[^.\s]+$/u.test(t);function Bae(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||WP(t):!0}const $m=t=>Math.round(t*1e5)/1e5,Wj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zae(t){return t==null}const Fae=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vj=(t,e)=>n=>!!(typeof n=="string"&&Fae.test(n)&&n.startsWith(t)||e&&!zae(n)&&Object.prototype.hasOwnProperty.call(n,e)),VP=(t,e,n)=>s=>{if(typeof s!="string")return s;const[r,a,l,c]=s.match(Wj);return{[t]:parseFloat(r),[e]:parseFloat(a),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},Hae=t=>il(0,255,t),C2={...Oh,transform:t=>Math.round(Hae(t))},rd={test:Vj("rgb","red"),parse:VP("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+C2.transform(t)+", "+C2.transform(e)+", "+C2.transform(n)+", "+$m(wp.transform(s))+")"};function $ae(t){let e="",n="",s="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const SS={test:Vj("#"),parse:$ae,transform:rd.transform},Gu={test:Vj("hsl","hue"),parse:VP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+lo.transform($m(e))+", "+lo.transform($m(n))+", "+$m(wp.transform(s))+")"},ks={test:t=>rd.test(t)||SS.test(t)||Gu.test(t),parse:t=>rd.test(t)?rd.parse(t):Gu.test(t)?Gu.parse(t):SS.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?rd.transform(t):Gu.transform(t)},Uae=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wae(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Wj))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Uae))===null||n===void 0?void 0:n.length)||0)>0}const GP="number",qP="color",Vae="var",Gae="var(",oR="${}",qae=/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 Sp(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},r=[];let a=0;const c=e.replace(qae,u=>(ks.test(u)?(s.color.push(a),r.push(qP),n.push(ks.parse(u))):u.startsWith(Gae)?(s.var.push(a),r.push(Vae),n.push(u)):(s.number.push(a),r.push(GP),n.push(parseFloat(u))),++a,oR)).split(oR);return{values:n,split:c,indexes:s,types:r}}function KP(t){return Sp(t).values}function YP(t){const{split:e,types:n}=Sp(t),s=e.length;return r=>{let a="";for(let l=0;l<s;l++)if(a+=e[l],r[l]!==void 0){const c=n[l];c===GP?a+=$m(r[l]):c===qP?a+=ks.transform(r[l]):a+=r[l]}return a}}const Kae=t=>typeof t=="number"?0:t;function Yae(t){const e=KP(t);return YP(t)(e.map(Kae))}const mc={test:Wae,parse:KP,createTransformer:YP,getAnimatableNone:Yae},Xae=new Set(["brightness","contrast","saturate","opacity"]);function Zae(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Wj)||[];if(!s)return t;const r=n.replace(s,"");let a=Xae.has(e)?1:0;return s!==n&&(a*=100),e+"("+a+r+")"}const Jae=/\b([a-z-]*)\(.*?\)/gu,_S={...mc,getAnimatableNone:t=>{const e=t.match(Jae);return e?e.map(Zae).join(" "):t}},Qae={...Tj,color:ks,backgroundColor:ks,outlineColor:ks,fill:ks,stroke:ks,borderColor:ks,borderTopColor:ks,borderRightColor:ks,borderBottomColor:ks,borderLeftColor:ks,filter:_S,WebkitFilter:_S},Gj=t=>Qae[t];function XP(t,e){let n=Gj(t);return n!==_S&&(n=mc),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const eoe=new Set(["auto","none","0"]);function toe(t,e,n){let s=0,r;for(;s<t.length&&!r;){const a=t[s];typeof a=="string"&&!eoe.has(a)&&Sp(a).values.length&&(r=t[s]),s++}if(r&&n)for(const a of e)t[a]=XP(n,r)}const lR=t=>t===Oh||t===nt,cR=(t,e)=>parseFloat(t.split(", ")[e]),dR=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return cR(r[1],e);{const a=s.match(/^matrix\((.+)\)$/u);return a?cR(a[1],t):0}},noe=new Set(["x","y","z"]),ioe=Rh.filter(t=>!noe.has(t));function soe(t){const e=[];return ioe.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Nh={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:dR(4,13),y:dR(5,14)};Nh.translateX=Nh.x;Nh.translateY=Nh.y;const wd=new Set;let jS=!1,ES=!1;function ZP(){if(ES){const t=Array.from(wd).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const r=soe(s);r.length&&(n.set(s,r),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([a,l])=>{var c;(c=s.getValue(a))===null||c===void 0||c.set(l)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ES=!1,jS=!1,wd.forEach(t=>t.complete()),wd.clear()}function JP(){wd.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ES=!0)})}function roe(){JP(),ZP()}class qj{constructor(e,n,s,r,a,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=r,this.element=a,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(wd.add(this),jS||(jS=!0,Mn.read(JP),Mn.resolveKeyframes(ZP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:r}=this;for(let a=0;a<e.length;a++)if(e[a]===null)if(a===0){const l=r?.get(),c=e[e.length-1];if(l!==void 0)e[0]=l;else if(s&&n){const u=s.readValue(n,c);u!=null&&(e[0]=u)}e[0]===void 0&&(e[0]=c),r&&l===void 0&&r.set(e[0])}else e[a]=e[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),wd.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,wd.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const QP=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),aoe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ooe(t){const e=aoe.exec(t);if(!e)return[,];const[,n,s,r]=e;return[`--${n??s}`,r]}function eB(t,e,n=1){const[s,r]=ooe(t);if(!s)return;const a=window.getComputedStyle(e).getPropertyValue(s);if(a){const l=a.trim();return QP(l)?parseFloat(l):l}return Cj(r)?eB(r,e,n+1):r}const tB=t=>e=>e.test(t),loe={test:t=>t==="auto",parse:t=>t},nB=[Oh,nt,lo,Fl,Zre,Xre,loe],uR=t=>nB.find(tB(t));class iB extends qj{constructor(e,n,s,r,a){super(e,n,s,r,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let f=e[u];if(typeof f=="string"&&(f=f.trim(),Cj(f))){const m=eB(f,n.current);m!==void 0&&(e[u]=m),u===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!OP.has(s)||e.length!==2)return;const[r,a]=e,l=uR(r),c=uR(a);if(l!==c)if(lR(l)&&lR(c))for(let u=0;u<e.length;u++){const f=e[u];typeof f=="string"&&(e[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let r=0;r<e.length;r++)Bae(e[r])&&s.push(r);s.length&&toe(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Nh[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&e.getValue(s,r).jump(r,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const a=n.getValue(s);a&&a.jump(this.measuredOrigin,!1);const l=r.length-1,c=r[l];r[l]=Nh[s](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([u,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const hR=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(mc.test(t)||t==="0")&&!t.startsWith("url("));function coe(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function doe(t,e,n,s){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const a=t[t.length-1],l=hR(r,e),c=hR(a,e);return!l||!c?!1:coe(t)||(n==="spring"||Ij(n))&&s}const uoe=t=>t!==null;function Zb(t,{repeat:e,repeatType:n="loop"},s){const r=t.filter(uoe),a=e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const hoe=40;class sB{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=co.now(),this.options={autoplay:e,delay:n,type:s,repeat:r,repeatDelay:a,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>hoe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&roe(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=co.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:a,delay:l,onComplete:c,onUpdate:u,isGenerator:f}=this.options;if(!f&&!doe(e,s,r,a))if(l)this.options.duration=0;else{u&&u(Zb(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const m=this.initPlayback(e,n);m!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function T2(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function foe({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let r=0,a=0,l=0;if(!e)r=a=l=n;else{const c=n<.5?n*(1+e):n+e-n*e,u=2*n-c;r=T2(u,c,t+1/3),a=T2(u,c,t),l=T2(u,c,t-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:s}}function ub(t,e){return n=>n>0?e:t}const A2=(t,e,n)=>{const s=t*t,r=n*(e*e-s)+s;return r<0?0:Math.sqrt(r)},moe=[SS,rd,Gu],poe=t=>moe.find(e=>e.test(t));function fR(t){const e=poe(t);if(!e)return!1;let n=e.parse(t);return e===Gu&&(n=foe(n)),n}const mR=(t,e)=>{const n=fR(t),s=fR(e);if(!n||!s)return ub(t,e);const r={...n};return a=>(r.red=A2(n.red,s.red,a),r.green=A2(n.green,s.green,a),r.blue=A2(n.blue,s.blue,a),r.alpha=Kn(n.alpha,s.alpha,a),rd.transform(r))},goe=(t,e)=>n=>e(t(n)),qp=(...t)=>t.reduce(goe),kS=new Set(["none","hidden"]);function xoe(t,e){return kS.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function yoe(t,e){return n=>Kn(t,e,n)}function Kj(t){return typeof t=="number"?yoe:typeof t=="string"?Cj(t)?ub:ks.test(t)?mR:woe:Array.isArray(t)?rB:typeof t=="object"?ks.test(t)?mR:boe:ub}function rB(t,e){const n=[...t],s=n.length,r=t.map((a,l)=>Kj(a)(a,e[l]));return a=>{for(let l=0;l<s;l++)n[l]=r[l](a);return n}}function boe(t,e){const n={...t,...e},s={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(s[r]=Kj(t[r])(t[r],e[r]));return r=>{for(const a in s)n[a]=s[a](r);return n}}function voe(t,e){var n;const s=[],r={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){const l=e.types[a],c=t.indexes[l][r[l]],u=(n=t.values[c])!==null&&n!==void 0?n:0;s[a]=u,r[l]++}return s}const woe=(t,e)=>{const n=mc.createTransformer(e),s=Sp(t),r=Sp(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?kS.has(t)&&!r.values.length||kS.has(e)&&!s.values.length?xoe(t,e):qp(rB(voe(s,r),r.values),n):ub(t,e)};function aB(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Kj(t)(t,e)}const Noe=5;function oB(t,e,n){const s=Math.max(e-Noe,0);return DP(n-t(s),e-s)}const ei={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},M2=.001;function Soe({duration:t=ei.duration,bounce:e=ei.bounce,velocity:n=ei.velocity,mass:s=ei.mass}){let r,a,l=1-e;l=il(ei.minDamping,ei.maxDamping,l),t=il(ei.minDuration,ei.maxDuration,Zo(t)),l<1?(r=f=>{const m=f*l,g=m*t,x=m-n,b=CS(f,l),v=Math.exp(-g);return M2-x/b*v},a=f=>{const g=f*l*t,x=g*n+n,b=Math.pow(l,2)*Math.pow(f,2)*t,v=Math.exp(-g),w=CS(Math.pow(f,2),l);return(-r(f)+M2>0?-1:1)*((x-b)*v)/w}):(r=f=>{const m=Math.exp(-f*t),g=(f-n)*t+1;return-M2+m*g},a=f=>{const m=Math.exp(-f*t),g=(n-f)*(t*t);return m*g});const c=5/t,u=joe(r,a,c);if(t=Xo(t),isNaN(u))return{stiffness:ei.stiffness,damping:ei.damping,duration:t};{const f=Math.pow(u,2)*s;return{stiffness:f,damping:l*2*Math.sqrt(s*f),duration:t}}}const _oe=12;function joe(t,e,n){let s=n;for(let r=1;r<_oe;r++)s=s-t(s)/e(s);return s}function CS(t,e){return t*Math.sqrt(1-e*e)}const Eoe=["duration","bounce"],koe=["stiffness","damping","mass"];function pR(t,e){return e.some(n=>t[n]!==void 0)}function Coe(t){let e={velocity:ei.velocity,stiffness:ei.stiffness,damping:ei.damping,mass:ei.mass,isResolvedFromDuration:!1,...t};if(!pR(t,koe)&&pR(t,Eoe))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,a=2*il(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:ei.mass,stiffness:r,damping:a}}else{const n=Soe(t);e={...e,...n,mass:ei.mass},e.isResolvedFromDuration=!0}return e}function lB(t=ei.visualDuration,e=ei.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:r}=n;const a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:u,damping:f,mass:m,duration:g,velocity:x,isResolvedFromDuration:b}=Coe({...n,velocity:-Zo(n.velocity||0)}),v=x||0,w=f/(2*Math.sqrt(u*m)),N=l-a,_=Zo(Math.sqrt(u/m)),E=Math.abs(N)<5;s||(s=E?ei.restSpeed.granular:ei.restSpeed.default),r||(r=E?ei.restDelta.granular:ei.restDelta.default);let k;if(w<1){const A=CS(_,w);k=L=>{const M=Math.exp(-w*_*L);return l-M*((v+w*_*N)/A*Math.sin(A*L)+N*Math.cos(A*L))}}else if(w===1)k=A=>l-Math.exp(-_*A)*(N+(v+_*N)*A);else{const A=_*Math.sqrt(w*w-1);k=L=>{const M=Math.exp(-w*_*L),O=Math.min(A*L,300);return l-M*((v+w*_*N)*Math.sinh(O)+A*N*Math.cosh(O))/A}}const C={calculatedDuration:b&&g||null,next:A=>{const L=k(A);if(b)c.done=A>=g;else{let M=0;w<1&&(M=A===0?Xo(v):oB(k,A,L));const O=Math.abs(M)<=s,P=Math.abs(l-L)<=r;c.done=O&&P}return c.value=c.done?l:L,c},toString:()=>{const A=Math.min(EP(C),vS),L=kP(M=>C.next(A*M).value,A,30);return A+"ms "+L}};return C}function gR({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:l,min:c,max:u,restDelta:f=.5,restSpeed:m}){const g=t[0],x={done:!1,value:g},b=O=>c!==void 0&&O<c||u!==void 0&&O>u,v=O=>c===void 0?u:u===void 0||Math.abs(c-O)<Math.abs(u-O)?c:u;let w=n*e;const N=g+w,_=l===void 0?N:l(N);_!==N&&(w=_-g);const E=O=>-w*Math.exp(-O/s),k=O=>_+E(O),C=O=>{const P=E(O),H=k(O);x.done=Math.abs(P)<=f,x.value=x.done?_:H};let A,L;const M=O=>{b(x.value)&&(A=O,L=lB({keyframes:[x.value,v(x.value)],velocity:oB(k,O,x.value),damping:r,stiffness:a,restDelta:f,restSpeed:m}))};return M(0),{calculatedDuration:null,next:O=>{let P=!1;return!L&&A===void 0&&(P=!0,C(O),M(O)),A!==void 0&&O>=A?L.next(O-A):(!P&&C(O),x)}}}const Toe=Gp(.42,0,1,1),Aoe=Gp(0,0,.58,1),cB=Gp(.42,0,.58,1),Moe=t=>Array.isArray(t)&&typeof t[0]!="number",Roe={linear:Fr,easeIn:Toe,easeInOut:cB,easeOut:Aoe,circIn:Uj,circInOut:UP,circOut:$P,backIn:$j,backInOut:FP,backOut:zP,anticipate:HP},xR=t=>{if(Pj(t)){aP(t.length===4);const[e,n,s,r]=t;return Gp(e,n,s,r)}else if(typeof t=="string")return Roe[t];return t};function Ooe(t,e,n){const s=[],r=n||aB,a=t.length-1;for(let l=0;l<a;l++){let c=r(t[l],t[l+1]);if(e){const u=Array.isArray(e)?e[l]||Fr:e;c=qp(u,c)}s.push(c)}return s}function Doe(t,e,{clamp:n=!0,ease:s,mixer:r}={}){const a=t.length;if(aP(a===e.length),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const l=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=Ooe(e,s,r),u=c.length,f=m=>{if(l&&m<t[0])return e[0];let g=0;if(u>1)for(;g<t.length-2&&!(m<t[g+1]);g++);const x=vh(t[g],t[g+1],m);return c[g](x)};return n?m=>f(il(t[0],t[a-1],m)):f}function Loe(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const r=vh(0,e,s);t.push(Kn(n,1,r))}}function Ioe(t){const e=[0];return Loe(e,t.length-1),e}function Poe(t,e){return t.map(n=>n*e)}function Boe(t,e){return t.map(()=>e||cB).splice(0,t.length-1)}function hb({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const r=Moe(s)?s.map(xR):xR(s),a={done:!1,value:e[0]},l=Poe(n&&n.length===e.length?n:Ioe(e),t),c=Doe(l,e,{ease:Array.isArray(r)?r:Boe(e,r)});return{calculatedDuration:t,next:u=>(a.value=c(u),a.done=u>=t,a)}}const zoe=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Mn.update(e,!0),stop:()=>fc(e),now:()=>ls.isProcessing?ls.timestamp:co.now()}},Foe={decay:gR,inertia:gR,tween:hb,keyframes:hb,spring:lB},Hoe=t=>t/100;class Yj extends sB{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:s,element:r,keyframes:a}=this.options,l=r?.KeyframeResolver||qj,c=(u,f)=>this.onKeyframesResolved(u,f);this.resolver=new l(a,c,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:a,velocity:l=0}=this.options,c=Ij(n)?n:Foe[n]||hb;let u,f;c!==hb&&typeof e[0]!="number"&&(u=qp(Hoe,aB(e[0],e[1])),e=[0,100]);const m=c({...this.options,keyframes:e});a==="mirror"&&(f=c({...this.options,keyframes:[...e].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=EP(m));const{calculatedDuration:g}=m,x=g+r,b=x*(s+1)-r;return{generator:m,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:g,resolvedDuration:x,totalDuration:b}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:r,generator:a,mirroredGenerator:l,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:f,totalDuration:m,resolvedDuration:g}=s;if(this.startTime===null)return a.next(0);const{delay:x,repeat:b,repeatType:v,repeatDelay:w,onUpdate:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-m/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const _=this.currentTime-x*(this.speed>=0?1:-1),E=this.speed>=0?_<0:_>m;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let k=this.currentTime,C=a;if(b){const O=Math.min(this.currentTime,m)/g;let P=Math.floor(O),H=O%1;!H&&O>=1&&(H=1),H===1&&P--,P=Math.min(P,b+1),!!(P%2)&&(v==="reverse"?(H=1-H,w&&(H-=w/g)):v==="mirror"&&(C=l)),k=il(0,1,H)*g}const A=E?{done:!1,value:u[0]}:C.next(k);c&&(A.value=c(A.value));let{done:L}=A;!E&&f!==null&&(L=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return M&&r!==void 0&&(A.value=Zb(u,this.options,r)),N&&N(A.value),M&&this.finish(),A}get duration(){const{resolved:e}=this;return e?Zo(e.calculatedDuration):0}get time(){return Zo(this.currentTime)}set time(e){e=Xo(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Zo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=zoe,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(a=>this.tick(a))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const $oe=new Set(["opacity","clipPath","filter","transform"]);function Uoe(t,e,n,{delay:s=0,duration:r=300,repeat:a=0,repeatType:l="loop",ease:c="easeInOut",times:u}={}){const f={[e]:n};u&&(f.offset=u);const m=TP(c,r);return Array.isArray(m)&&(f.easing=m),t.animate(f,{delay:s,duration:r,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}const Woe=wj(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),fb=10,Voe=2e4;function Goe(t){return Ij(t.type)||t.type==="spring"||!CP(t.ease)}function qoe(t,e){const n=new Yj({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const r=[];let a=0;for(;!s.done&&a<Voe;)s=n.sample(a),r.push(s.value),a+=fb;return{times:void 0,keyframes:r,duration:a-fb,ease:"linear"}}const dB={anticipate:HP,backInOut:FP,circInOut:UP};function Koe(t){return t in dB}class yR extends sB{constructor(e){super(e);const{name:n,motionValue:s,element:r,keyframes:a}=this.options;this.resolver=new iB(a,(l,c)=>this.onKeyframesResolved(l,c),n,s,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:r,ease:a,type:l,motionValue:c,name:u,startTime:f}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&db()&&Koe(a)&&(a=dB[a]),Goe(this.options)){const{onComplete:g,onUpdate:x,motionValue:b,element:v,...w}=this.options,N=qoe(e,w);e=N.keyframes,e.length===1&&(e[1]=e[0]),s=N.duration,r=N.times,a=N.ease,l="keyframes"}const m=Uoe(c.owner.current,u,e,{...this.options,duration:s,times:r,ease:a});return m.startTime=f??this.calcStartTime(),this.pendingTimeline?(nR(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:g}=this.options;c.set(Zb(e,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:r,type:l,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Zo(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Zo(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=Xo(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Fr;const{animation:s}=n;nR(s,e)}return Fr}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:r,type:a,ease:l,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:m,onComplete:g,element:x,...b}=this.options,v=new Yj({...b,keyframes:s,duration:r,type:a,ease:l,times:c,isGenerator:!0}),w=Xo(this.time);f.setWithVelocity(v.sample(w-fb).value,v.sample(w).value,fb)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:r,repeatType:a,damping:l,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:f}=n.owner.getProps();return Woe()&&s&&$oe.has(s)&&!u&&!f&&!r&&a!=="mirror"&&l!==0&&c!=="inertia"}}const Yoe={type:"spring",stiffness:500,damping:25,restSpeed:10},Xoe=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Zoe={type:"keyframes",duration:.8},Joe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Qoe=(t,{keyframes:e})=>e.length>2?Zoe:Bd.has(t)?t.startsWith("scale")?Xoe(e[1]):Yoe:Joe;function ele({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:a,repeatType:l,repeatDelay:c,from:u,elapsed:f,...m}){return!!Object.keys(m).length}const Xj=(t,e,n,s={},r,a)=>l=>{const c=Lj(s,t)||{},u=c.delay||s.delay||0;let{elapsed:f=0}=s;f=f-Xo(u);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-f,onUpdate:x=>{e.set(x),c.onUpdate&&c.onUpdate(x)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:a?void 0:r};ele(c)||(m={...m,...Qoe(t,m)}),m.duration&&(m.duration=Xo(m.duration)),m.repeatDelay&&(m.repeatDelay=Xo(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!a&&e.get()!==void 0){const x=Zb(m.keyframes,c);if(x!==void 0)return Mn.update(()=>{m.onUpdate(x),m.onComplete()}),new bae([])}return!a&&yR.supports(m)?new yR(m):new Yj(m)};function tle({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function uB(t,e,{delay:n=0,transitionOverride:s,type:r}={}){var a;let{transition:l=t.getDefaultTransition(),transitionEnd:c,...u}=e;s&&(l=s);const f=[],m=r&&t.animationState&&t.animationState.getState()[r];for(const g in u){const x=t.getValue(g,(a=t.latestValues[g])!==null&&a!==void 0?a:null),b=u[g];if(b===void 0||m&&tle(m,g))continue;const v={delay:n,...Lj(l||{},g)};let w=!1;if(window.MotionHandoffAnimation){const _=LP(t);if(_){const E=window.MotionHandoffAnimation(_,g,Mn);E!==null&&(v.startTime=E,w=!0)}}NS(t,g),x.start(Xj(g,x,b,t.shouldReduceMotion&&OP.has(g)?{type:!1}:v,t,w));const N=x.animation;N&&f.push(N)}return c&&Promise.all(f).then(()=>{Mn.update(()=>{c&&Oae(t,c)})}),f}function TS(t,e,n={}){var s;const r=Xb(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const l=r?()=>Promise.all(uB(t,r,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:x}=a;return nle(t,e,m+f,g,x,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[f,m]=u==="beforeChildren"?[l,c]:[c,l];return f().then(()=>m())}else return Promise.all([l(),c(n.delay)])}function nle(t,e,n=0,s=0,r=1,a){const l=[],c=(t.variantChildren.size-1)*s,u=r===1?(f=0)=>f*s:(f=0)=>c-f*s;return Array.from(t.variantChildren).sort(ile).forEach((f,m)=>{f.notify("AnimationStart",e),l.push(TS(f,e,{...a,delay:n+u(m)}).then(()=>f.notify("AnimationComplete",e)))}),Promise.all(l)}function ile(t,e){return t.sortNodePosition(e)}function sle(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const r=e.map(a=>TS(t,a,n));s=Promise.all(r)}else if(typeof e=="string")s=TS(t,e,n);else{const r=typeof e=="function"?Xb(t,e,n.custom):e;s=Promise.all(uB(t,r,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const rle=Sj.length;function hB(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?hB(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<rle;n++){const s=Sj[n],r=t.props[s];(vp(r)||r===!1)&&(e[s]=r)}return e}const ale=[...Nj].reverse(),ole=Nj.length;function lle(t){return e=>Promise.all(e.map(({animation:n,options:s})=>sle(t,n,s)))}function cle(t){let e=lle(t),n=bR(),s=!0;const r=u=>(f,m)=>{var g;const x=Xb(t,m,u==="exit"?(g=t.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(x){const{transition:b,transitionEnd:v,...w}=x;f={...f,...w,...v}}return f};function a(u){e=u(t)}function l(u){const{props:f}=t,m=hB(t.parent)||{},g=[],x=new Set;let b={},v=1/0;for(let N=0;N<ole;N++){const _=ale[N],E=n[_],k=f[_]!==void 0?f[_]:m[_],C=vp(k),A=_===u?E.isActive:null;A===!1&&(v=N);let L=k===m[_]&&k!==f[_]&&C;if(L&&s&&t.manuallyAnimateOnMount&&(L=!1),E.protectedKeys={...b},!E.isActive&&A===null||!k&&!E.prevProp||Kb(k)||typeof k=="boolean")continue;const M=dle(E.prevProp,k);let O=M||_===u&&E.isActive&&!L&&C||N>v&&C,P=!1;const H=Array.isArray(k)?k:[k];let V=H.reduce(r(_),{});A===!1&&(V={});const{prevResolvedValues:F={}}=E,U={...F,...V},q=$=>{O=!0,x.has($)&&(P=!0,x.delete($)),E.needsAnimating[$]=!0;const X=t.getValue($);X&&(X.liveStyle=!1)};for(const $ in U){const X=V[$],xe=F[$];if(b.hasOwnProperty($))continue;let I=!1;bS(X)&&bS(xe)?I=!jP(X,xe):I=X!==xe,I?X!=null?q($):x.add($):X!==void 0&&x.has($)?q($):E.protectedKeys[$]=!0}E.prevProp=k,E.prevResolvedValues=V,E.isActive&&(b={...b,...V}),s&&t.blockInitialAnimation&&(O=!1),O&&(!(L&&M)||P)&&g.push(...H.map($=>({animation:$,options:{type:_}})))}if(x.size){const N={};x.forEach(_=>{const E=t.getBaseTarget(_),k=t.getValue(_);k&&(k.liveStyle=!0),N[_]=E??null}),g.push({animation:N})}let w=!!g.length;return s&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(w=!1),s=!1,w?e(g):Promise.resolve()}function c(u,f){var m;if(n[u].isActive===f)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(x=>{var b;return(b=x.animationState)===null||b===void 0?void 0:b.setActive(u,f)}),n[u].isActive=f;const g=l(u);for(const x in n)n[x].protectedKeys={};return g}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=bR(),s=!0}}}function dle(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!jP(e,t):!1}function $c(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bR(){return{animate:$c(!0),whileInView:$c(),whileHover:$c(),whileTap:$c(),whileDrag:$c(),whileFocus:$c(),exit:$c()}}class vc{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ule extends vc{constructor(e){super(e),e.animationState||(e.animationState=cle(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Kb(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let hle=0;class fle extends vc{constructor(){super(...arguments),this.id=hle++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const mle={animation:{Feature:ule},exit:{Feature:fle}};function _p(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Kp(t){return{point:{x:t.pageX,y:t.pageY}}}const ple=t=>e=>Bj(e)&&t(e,Kp(e));function Um(t,e,n,s){return _p(t,e,ple(n),s)}const vR=(t,e)=>Math.abs(t-e);function gle(t,e){const n=vR(t.x,e.x),s=vR(t.y,e.y);return Math.sqrt(n**2+s**2)}class fB{constructor(e,n,{transformPagePoint:s,contextWindow:r,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=O2(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=gle(g.offset,{x:0,y:0})>=3;if(!x&&!b)return;const{point:v}=g,{timestamp:w}=ls;this.history.push({...v,timestamp:w});const{onStart:N,onMove:_}=this.handlers;x||(N&&N(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,g)},this.handlePointerMove=(g,x)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=R2(x,this.transformPagePoint),Mn.update(this.updatePoint,!0)},this.handlePointerUp=(g,x)=>{this.end();const{onEnd:b,onSessionEnd:v,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=O2(g.type==="pointercancel"?this.lastMoveEventInfo:R2(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(g,N),v&&v(g,N)},!Bj(e))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const l=Kp(e),c=R2(l,this.transformPagePoint),{point:u}=c,{timestamp:f}=ls;this.history=[{...u,timestamp:f}];const{onSessionStart:m}=n;m&&m(e,O2(c,this.history)),this.removeListeners=qp(Um(this.contextWindow,"pointermove",this.handlePointerMove),Um(this.contextWindow,"pointerup",this.handlePointerUp),Um(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),fc(this.updatePoint)}}function R2(t,e){return e?{point:e(t.point)}:t}function wR(t,e){return{x:t.x-e.x,y:t.y-e.y}}function O2({point:t},e){return{point:t,delta:wR(t,mB(e)),offset:wR(t,xle(e)),velocity:yle(e,.1)}}function xle(t){return t[0]}function mB(t){return t[t.length-1]}function yle(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const r=mB(t);for(;n>=0&&(s=t[n],!(r.timestamp-s.timestamp>Xo(e)));)n--;if(!s)return{x:0,y:0};const a=Zo(r.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const l={x:(r.x-s.x)/a,y:(r.y-s.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const pB=1e-4,ble=1-pB,vle=1+pB,gB=.01,wle=0-gB,Nle=0+gB;function Ur(t){return t.max-t.min}function Sle(t,e,n){return Math.abs(t-e)<=n}function NR(t,e,n,s=.5){t.origin=s,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=Ur(n)/Ur(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=ble&&t.scale<=vle||isNaN(t.scale))&&(t.scale=1),(t.translate>=wle&&t.translate<=Nle||isNaN(t.translate))&&(t.translate=0)}function Wm(t,e,n,s){NR(t.x,e.x,n.x,s?s.originX:void 0),NR(t.y,e.y,n.y,s?s.originY:void 0)}function SR(t,e,n){t.min=n.min+e.min,t.max=t.min+Ur(e)}function _le(t,e,n){SR(t.x,e.x,n.x),SR(t.y,e.y,n.y)}function _R(t,e,n){t.min=e.min-n.min,t.max=t.min+Ur(e)}function Vm(t,e,n){_R(t.x,e.x,n.x),_R(t.y,e.y,n.y)}function jle(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?Kn(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?Kn(n,t,s.max):Math.min(t,n)),t}function jR(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ele(t,{top:e,left:n,bottom:s,right:r}){return{x:jR(t.x,n,r),y:jR(t.y,e,s)}}function ER(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function kle(t,e){return{x:ER(t.x,e.x),y:ER(t.y,e.y)}}function Cle(t,e){let n=.5;const s=Ur(t),r=Ur(e);return r>s?n=vh(e.min,e.max-s,t.min):s>r&&(n=vh(t.min,t.max-r,e.min)),il(0,1,n)}function Tle(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const AS=.35;function Ale(t=AS){return t===!1?t=0:t===!0&&(t=AS),{x:kR(t,"left","right"),y:kR(t,"top","bottom")}}function kR(t,e,n){return{min:CR(t,e),max:CR(t,n)}}function CR(t,e){return typeof t=="number"?t:t[e]||0}const TR=()=>({translate:0,scale:1,origin:0,originPoint:0}),qu=()=>({x:TR(),y:TR()}),AR=()=>({min:0,max:0}),ci=()=>({x:AR(),y:AR()});function aa(t){return[t("x"),t("y")]}function xB({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Mle({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Rle(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function D2(t){return t===void 0||t===1}function MS({scale:t,scaleX:e,scaleY:n}){return!D2(t)||!D2(e)||!D2(n)}function Gc(t){return MS(t)||yB(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function yB(t){return MR(t.x)||MR(t.y)}function MR(t){return t&&t!=="0%"}function mb(t,e,n){const s=t-n,r=e*s;return n+r}function RR(t,e,n,s,r){return r!==void 0&&(t=mb(t,r,s)),mb(t,n,s)+e}function RS(t,e=0,n=1,s,r){t.min=RR(t.min,e,n,s,r),t.max=RR(t.max,e,n,s,r)}function bB(t,{x:e,y:n}){RS(t.x,e.translate,e.scale,e.originPoint),RS(t.y,n.translate,n.scale,n.originPoint)}const OR=.999999999999,DR=1.0000000000001;function Ole(t,e,n,s=!1){const r=n.length;if(!r)return;e.x=e.y=1;let a,l;for(let c=0;c<r;c++){a=n[c],l=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Yu(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,bB(t,l)),s&&Gc(a.latestValues)&&Yu(t,a.latestValues))}e.x<DR&&e.x>OR&&(e.x=1),e.y<DR&&e.y>OR&&(e.y=1)}function Ku(t,e){t.min=t.min+e,t.max=t.max+e}function LR(t,e,n,s,r=.5){const a=Kn(t.min,t.max,r);RS(t,e,n,a,s)}function Yu(t,e){LR(t.x,e.x,e.scaleX,e.scale,e.originX),LR(t.y,e.y,e.scaleY,e.scale,e.originY)}function vB(t,e){return xB(Rle(t.getBoundingClientRect(),e))}function Dle(t,e,n){const s=vB(t,n),{scroll:r}=e;return r&&(Ku(s.x,r.offset.x),Ku(s.y,r.offset.y)),s}const wB=({current:t})=>t?t.ownerDocument.defaultView:null,Lle=new WeakMap;class Ile{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ci(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Kp(m).point)},a=(m,g)=>{const{drag:x,dragPropagation:b,onDragStart:v}=this.getProps();if(x&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cae(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aa(N=>{let _=this.getAxisMotionValue(N).get()||0;if(lo.test(_)){const{projection:E}=this.visualElement;if(E&&E.layout){const k=E.layout.layoutBox[N];k&&(_=Ur(k)*(parseFloat(_)/100))}}this.originPoint[N]=_}),v&&Mn.postRender(()=>v(m,g)),NS(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},l=(m,g)=>{const{dragPropagation:x,dragDirectionLock:b,onDirectionLock:v,onDrag:w}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:N}=g;if(b&&this.currentDirection===null){this.currentDirection=Ple(N),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",g.point,N),this.updateAxis("y",g.point,N),this.visualElement.render(),w&&w(m,g)},c=(m,g)=>this.stop(m,g),u=()=>aa(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new fB(e,{onSessionStart:r,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:wB(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&Mn.postRender(()=>a(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:r}=this.getProps();if(!s||!d0(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let l=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(l=jle(l,this.constraints[e],this.elastic[e])),a.set(l)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,a=this.constraints;n&&Vu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=Ele(r.layoutBox,n):this.constraints=!1,this.elastic=Ale(s),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&aa(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=Tle(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Vu(e))return!1;const s=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=Dle(s,r.root,this.visualElement.getTransformPagePoint());let l=kle(r.layout.layoutBox,a);if(n){const c=n(Mle(l));this.hasMutatedConstraints=!!c,c&&(l=xB(c))}return l}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=aa(m=>{if(!d0(m,n,this.currentDirection))return;let g=u&&u[m]||{};l&&(g={min:0,max:0});const x=r?200:1e6,b=r?40:1e7,v={type:"inertia",velocity:s?e[m]:0,bounceStiffness:x,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(m,v)});return Promise.all(f).then(c)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return NS(this.visualElement,e),s.start(Xj(e,s,0,n,this.visualElement,!1))}stopAnimation(){aa(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){aa(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){aa(n=>{const{drag:s}=this.getProps();if(!d0(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(n);if(r&&r.layout){const{min:l,max:c}=r.layout.layoutBox[n];a.set(e[n]-Kn(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Vu(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};aa(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();r[l]=Cle({min:u,max:u},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),aa(l=>{if(!d0(l,e,null))return;const c=this.getAxisMotionValue(l),{min:u,max:f}=this.constraints[l];c.set(Kn(u,f,r[l]))})}addListeners(){if(!this.visualElement.current)return;Lle.set(this.visualElement,this);const e=this.visualElement.current,n=Um(e,"pointerdown",u=>{const{drag:f,dragListener:m=!0}=this.getProps();f&&m&&this.start(u)}),s=()=>{const{dragConstraints:u}=this.getProps();Vu(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,a=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Mn.read(s);const l=_p(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(aa(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=u[m].translate,g.set(g.get()+u[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),a(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:l=AS,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:a,dragElastic:l,dragMomentum:c}}}function d0(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ple(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Ble extends vc{constructor(e){super(e),this.removeGroupControls=Fr,this.removeListeners=Fr,this.controls=new Ile(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fr}unmount(){this.removeGroupControls(),this.removeListeners()}}const IR=t=>(e,n)=>{t&&Mn.postRender(()=>t(e,n))};class zle extends vc{constructor(){super(...arguments),this.removePointerDownListener=Fr}onPointerDown(e){this.session=new fB(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wB(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:IR(e),onStart:IR(n),onMove:s,onEnd:(a,l)=>{delete this.session,r&&Mn.postRender(()=>r(a,l))}}}mount(){this.removePointerDownListener=Um(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const G0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function PR(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Kf={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(nt.test(t))t=parseFloat(t);else return t;const n=PR(t,e.target.x),s=PR(t,e.target.y);return`${n}% ${s}%`}},Fle={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,r=mc.parse(t);if(r.length>5)return s;const a=mc.createTransformer(t),l=typeof r[0]!="number"?1:0,c=n.x.scale*e.x,u=n.y.scale*e.y;r[0+l]/=c,r[1+l]/=u;const f=Kn(c,u,.5);return typeof r[2+l]=="number"&&(r[2+l]/=f),typeof r[3+l]=="number"&&(r[3+l]/=f),a(r)}};class Hle extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:a}=e;oae($le),a&&(n.group&&n.group.add(a),s&&s.register&&r&&s.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),G0.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:r,isPresent:a}=this.props,l=s.projection;return l&&(l.isPresent=a,r||e.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?l.promote():l.relegate()||Mn.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jj.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function NB(t){const[e,n]=sP(),s=T.useContext(xj);return o.jsx(Hle,{...t,layoutGroup:s,switchLayoutGroup:T.useContext(hP),isPresent:e,safeToRemove:n})}const $le={borderRadius:{...Kf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Kf,borderTopRightRadius:Kf,borderBottomLeftRadius:Kf,borderBottomRightRadius:Kf,boxShadow:Fle};function Ule(t,e,n){const s=Ms(t)?t:Np(t);return s.start(Xj("",s,e,n)),s.animation}function Wle(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Vle=(t,e)=>t.depth-e.depth;class Gle{constructor(){this.children=[],this.isDirty=!1}add(e){zj(this.children,e),this.isDirty=!0}remove(e){Fj(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Vle),this.isDirty=!1,this.children.forEach(e)}}function qle(t,e){const n=co.now(),s=({timestamp:r})=>{const a=r-n;a>=e&&(fc(s),t(a-e))};return Mn.read(s,!0),()=>fc(s)}const SB=["TopLeft","TopRight","BottomLeft","BottomRight"],Kle=SB.length,BR=t=>typeof t=="string"?parseFloat(t):t,zR=t=>typeof t=="number"||nt.test(t);function Yle(t,e,n,s,r,a){r?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,Xle(s)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,Zle(s))):a&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let l=0;l<Kle;l++){const c=`border${SB[l]}Radius`;let u=FR(e,c),f=FR(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||zR(u)===zR(f)?(t[c]=Math.max(Kn(BR(u),BR(f),s),0),(lo.test(f)||lo.test(u))&&(t[c]+="%")):t[c]=f}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,s))}function FR(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Xle=_B(0,.5,$P),Zle=_B(.5,.95,Fr);function _B(t,e,n){return s=>s<t?0:s>e?1:n(vh(t,e,s))}function HR(t,e){t.min=e.min,t.max=e.max}function na(t,e){HR(t.x,e.x),HR(t.y,e.y)}function $R(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function UR(t,e,n,s,r){return t-=e,t=mb(t,1/n,s),r!==void 0&&(t=mb(t,1/r,s)),t}function Jle(t,e=0,n=1,s=.5,r,a=t,l=t){if(lo.test(e)&&(e=parseFloat(e),e=Kn(l.min,l.max,e/100)-l.min),typeof e!="number")return;let c=Kn(a.min,a.max,s);t===a&&(c-=e),t.min=UR(t.min,e,n,c,r),t.max=UR(t.max,e,n,c,r)}function WR(t,e,[n,s,r],a,l){Jle(t,e[n],e[s],e[r],e.scale,a,l)}const Qle=["x","scaleX","originX"],ece=["y","scaleY","originY"];function VR(t,e,n,s){WR(t.x,e,Qle,n?n.x:void 0,s?s.x:void 0),WR(t.y,e,ece,n?n.y:void 0,s?s.y:void 0)}function GR(t){return t.translate===0&&t.scale===1}function jB(t){return GR(t.x)&&GR(t.y)}function qR(t,e){return t.min===e.min&&t.max===e.max}function tce(t,e){return qR(t.x,e.x)&&qR(t.y,e.y)}function KR(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function EB(t,e){return KR(t.x,e.x)&&KR(t.y,e.y)}function YR(t){return Ur(t.x)/Ur(t.y)}function XR(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nce{constructor(){this.members=[]}add(e){zj(this.members,e),e.scheduleRender()}remove(e){if(Fj(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1){s=a;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ice(t,e,n){let s="";const r=t.x.translate/e.x,a=t.y.translate/e.y,l=n?.z||0;if((r||a||l)&&(s=`translate3d(${r}px, ${a}px, ${l}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:f,rotate:m,rotateX:g,rotateY:x,skewX:b,skewY:v}=n;f&&(s=`perspective(${f}px) ${s}`),m&&(s+=`rotate(${m}deg) `),g&&(s+=`rotateX(${g}deg) `),x&&(s+=`rotateY(${x}deg) `),b&&(s+=`skewX(${b}deg) `),v&&(s+=`skewY(${v}deg) `)}const c=t.x.scale*e.x,u=t.y.scale*e.y;return(c!==1||u!==1)&&(s+=`scale(${c}, ${u})`),s||"none"}const qc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},fm=typeof window<"u"&&window.MotionDebug!==void 0,L2=["","X","Y","Z"],sce={visibility:"hidden"},ZR=1e3;let rce=0;function I2(t,e,n,s){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function kB(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=LP(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Mn,!(r||a))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&kB(s)}function CB({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(l={},c=e?.()){this.id=rce++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,fm&&(qc.totalNodes=qc.resolvedTargetDeltas=qc.recalculatedProjection=0),this.nodes.forEach(lce),this.nodes.forEach(fce),this.nodes.forEach(mce),this.nodes.forEach(cce),fm&&window.MotionDebug.record(qc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Gle)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Hj),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const u=this.eventHandlers.get(l);u&&u.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Wle(l),this.instance=l;const{layoutId:u,layout:f,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||u)&&(this.isLayoutDirty=!0),t){let g;const x=()=>this.root.updateBlockedByResize=!1;t(l,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=qle(x,250),G0.hasAnimatedSinceResize&&(G0.hasAnimatedSinceResize=!1,this.nodes.forEach(QR))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&m&&(u||f)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeTargetChanged:b,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||m.getDefaultTransition()||bce,{onLayoutAnimationStart:N,onLayoutAnimationComplete:_}=m.getProps(),E=!this.targetLayout||!EB(this.targetLayout,v)||b,k=!x&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||k||x&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,k);const C={...Lj(w,"layout"),onPlay:N,onComplete:_};(m.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else x||QR(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,fc(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(pce),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kB(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(JR);return}this.isUpdating||this.nodes.forEach(uce),this.isUpdating=!1,this.nodes.forEach(hce),this.nodes.forEach(ace),this.nodes.forEach(oce),this.clearAllSnapshots();const c=co.now();ls.delta=il(0,1e3/60,c-ls.timestamp),ls.timestamp=c,ls.isProcessing=!0,E2.update.process(ls),E2.preRender.process(ls),E2.render.process(ls),ls.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jj.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dce),this.sharedNodes.forEach(gce)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ci(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!r)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!jB(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;l&&(c||Gc(this.latestValues)||m)&&(r(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return l&&(u=this.removeTransform(u)),vce(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return ci();const u=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(wce))){const{scroll:m}=this.root;m&&(Ku(u.x,m.offset.x),Ku(u.y,m.offset.y))}return u}removeElementScroll(l){var c;const u=ci();if(na(u,l),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let f=0;f<this.path.length;f++){const m=this.path[f],{scroll:g,options:x}=m;m!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&na(u,l),Ku(u.x,g.offset.x),Ku(u.y,g.offset.y))}return u}applyTransform(l,c=!1){const u=ci();na(u,l);for(let f=0;f<this.path.length;f++){const m=this.path[f];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Yu(u,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Gc(m.latestValues)&&Yu(u,m.latestValues)}return Gc(this.latestValues)&&Yu(u,this.latestValues),u}removeTransform(l){const c=ci();na(c,l);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!Gc(f.latestValues))continue;MS(f.latestValues)&&f.updateSnapshot();const m=ci(),g=f.measurePageBox();na(m,g),VR(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,m)}return Gc(this.latestValues)&&VR(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==ls.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=ls.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ci(),this.relativeTargetOrigin=ci(),Vm(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),na(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ci(),this.targetWithTransforms=ci()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_le(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):na(this.target,this.layout.layoutBox),bB(this.target,this.targetDelta)):na(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ci(),this.relativeTargetOrigin=ci(),Vm(this.relativeTargetOrigin,this.target,b.target),na(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}fm&&qc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||MS(this.parent.latestValues)||yB(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let f=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===ls.timestamp&&(f=!1),f)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;na(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;Ole(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=ci());const{target:v}=c;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($R(this.prevProjectionDelta.x,this.projectionDelta.x),$R(this.prevProjectionDelta.y,this.projectionDelta.y)),Wm(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!XR(this.projectionDelta.x,this.prevProjectionDelta.x)||!XR(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),fm&&qc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qu(),this.projectionDelta=qu(),this.projectionDeltaWithTransform=qu()}setAnimationOrigin(l,c=!1){const u=this.snapshot,f=u?u.latestValues:{},m={...this.latestValues},g=qu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const x=ci(),b=u?u.source:void 0,v=this.layout?this.layout.source:void 0,w=b!==v,N=this.getStack(),_=!N||N.members.length<=1,E=!!(w&&!_&&this.options.crossfade===!0&&!this.path.some(yce));this.animationProgress=0;let k;this.mixTargetDelta=C=>{const A=C/1e3;e6(g.x,l.x,A),e6(g.y,l.y,A),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vm(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xce(this.relativeTarget,this.relativeTargetOrigin,x,A),k&&tce(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=ci()),na(k,this.relativeTarget)),w&&(this.animationValues=m,Yle(m,f,this.latestValues,A,E,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(fc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mn.update(()=>{G0.hasAnimatedSinceResize=!0,this.currentAnimation=Ule(0,ZR,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ZR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:m}=l;if(!(!c||!u||!f)){if(this!==l&&this.layout&&f&&TB(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||ci();const g=Ur(this.layout.layoutBox.x);u.x.min=l.target.x.min,u.x.max=u.x.min+g;const x=Ur(this.layout.layoutBox.y);u.y.min=l.target.y.min,u.y.max=u.y.min+x}na(c,u),Yu(c,m),Wm(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new nce),this.sharedNodes.get(l).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:u}={}){const f=this.getStack();f&&f.promote(this,u),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:u}=l;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const f={};u.z&&I2("z",l,f,this.animationValues);for(let m=0;m<L2.length;m++)I2(`rotate${L2[m]}`,l,f,this.animationValues),I2(`skew${L2[m]}`,l,f,this.animationValues);l.render();for(const m in f)l.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);l.scheduleRender()}getProjectionStyles(l){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sce;const f={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=W0(l?.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none",f;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=W0(l?.pointerEvents)||""),this.hasProjected&&!Gc(this.latestValues)&&(w.transform=m?m({},""):"none",this.hasProjected=!1),w}const x=g.animationValues||g.latestValues;this.applyTransformsToTarget(),f.transform=ice(this.projectionDeltaWithTransform,this.treeScale,x),m&&(f.transform=m(x,f.transform));const{x:b,y:v}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${v.origin*100}% 0`,g.animationValues?f.opacity=g===this?(u=(c=x.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:f.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const w in cb){if(x[w]===void 0)continue;const{correct:N,applyTo:_}=cb[w],E=f.transform==="none"?x[w]:N(x[w],g);if(_){const k=_.length;for(let C=0;C<k;C++)f[_[C]]=E}else f[w]=E}return this.options.layoutId&&(f.pointerEvents=g===this?W0(l?.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(JR),this.root.sharedNodes.clear()}}}function ace(t){t.updateLayout()}function oce(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=t.layout,{animationType:a}=t.options,l=n.source!==t.layout.source;a==="size"?aa(g=>{const x=l?n.measuredBox[g]:n.layoutBox[g],b=Ur(x);x.min=s[g].min,x.max=x.min+b}):TB(a,n.layoutBox,s)&&aa(g=>{const x=l?n.measuredBox[g]:n.layoutBox[g],b=Ur(s[g]);x.max=x.min+b,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+b)});const c=qu();Wm(c,s,n.layoutBox);const u=qu();l?Wm(u,t.applyTransform(r,!0),n.measuredBox):Wm(u,s,n.layoutBox);const f=!jB(c);let m=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:b}=g;if(x&&b){const v=ci();Vm(v,n.layoutBox,x.layoutBox);const w=ci();Vm(w,s,b.layoutBox),EB(v,w)||(m=!0),g.options.layoutRoot&&(t.relativeTarget=w,t.relativeTargetOrigin=v,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeTargetChanged:m})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function lce(t){fm&&qc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function cce(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function dce(t){t.clearSnapshot()}function JR(t){t.clearMeasurements()}function uce(t){t.isLayoutDirty=!1}function hce(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function QR(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function fce(t){t.resolveTargetDelta()}function mce(t){t.calcProjection()}function pce(t){t.resetSkewAndRotation()}function gce(t){t.removeLeadSnapshot()}function e6(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function t6(t,e,n,s){t.min=Kn(e.min,n.min,s),t.max=Kn(e.max,n.max,s)}function xce(t,e,n,s){t6(t.x,e.x,n.x,s),t6(t.y,e.y,n.y,s)}function yce(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bce={duration:.45,ease:[.4,0,.1,1]},n6=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),i6=n6("applewebkit/")&&!n6("chrome/")?Math.round:Fr;function s6(t){t.min=i6(t.min),t.max=i6(t.max)}function vce(t){s6(t.x),s6(t.y)}function TB(t,e,n){return t==="position"||t==="preserve-aspect"&&!Sle(YR(e),YR(n),.2)}function wce(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Nce=CB({attachResizeListener:(t,e)=>_p(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),P2={current:void 0},AB=CB({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!P2.current){const t=new Nce({});t.mount(window),t.setOptions({layoutScroll:!0}),P2.current=t}return P2.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Sce={pan:{Feature:zle},drag:{Feature:Ble,ProjectionNode:AB,MeasureLayout:NB}};function r6(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,a=s[r];a&&Mn.postRender(()=>a(e,Kp(e)))}class _ce extends vc{mount(){const{current:e}=this.node;e&&(this.unmount=Sae(e,n=>(r6(this.node,n,"Start"),s=>r6(this.node,s,"End"))))}unmount(){}}class jce extends vc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=qp(_p(this.node.current,"focus",()=>this.onFocus()),_p(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function a6(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),a=s[r];a&&Mn.postRender(()=>a(e,Kp(e)))}class Ece extends vc{mount(){const{current:e}=this.node;e&&(this.unmount=kae(e,n=>(a6(this.node,n,"Start"),(s,{success:r})=>a6(this.node,s,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const OS=new WeakMap,B2=new WeakMap,kce=t=>{const e=OS.get(t.target);e&&e(t)},Cce=t=>{t.forEach(kce)};function Tce({root:t,...e}){const n=t||document;B2.has(n)||B2.set(n,{});const s=B2.get(n),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(Cce,{root:t,...e})),s[r]}function Ace(t,e,n){const s=Tce(e);return OS.set(t,n),s.observe(t),()=>{OS.delete(t),s.unobserve(t)}}const Mce={some:0,all:1};class Rce extends vc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=e,l={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:Mce[r]},c=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),x=f?m:g;x&&x(u)};return Ace(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Oce(e,n))&&this.startObserver()}unmount(){}}function Oce({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Dce={inView:{Feature:Rce},tap:{Feature:Ece},focus:{Feature:jce},hover:{Feature:_ce}},Lce={layout:{ProjectionNode:AB,MeasureLayout:NB}},DS={current:null},MB={current:!1};function Ice(){if(MB.current=!0,!!vj)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>DS.current=t.matches;t.addListener(e),e()}else DS.current=!1}const Pce=[...nB,ks,mc],Bce=t=>Pce.find(tB(t)),o6=new WeakMap;function zce(t,e,n){for(const s in e){const r=e[s],a=n[s];if(Ms(r))t.addValue(s,r);else if(Ms(a))t.addValue(s,Np(r,{owner:t}));else if(a!==r)if(t.hasValue(s)){const l=t.getValue(s);l.liveStyle===!0?l.jump(r):l.hasAnimated||l.set(r)}else{const l=t.getStaticValue(s);t.addValue(s,Np(l!==void 0?l:r,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const l6=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fce{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=co.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Mn.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:m}=l;this.onUpdate=m,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Yb(n),this.isVariantNode=dP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in x){const v=x[b];u[b]!==void 0&&Ms(v)&&v.set(u[b],!1)}}mount(e){this.current=e,o6.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),MB.current||Ice(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:DS.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){o6.delete(this.current),this.projection&&this.projection.unmount(),fc(this.notifyUpdate),fc(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Bd.has(e),r=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Mn.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in wh){const n=wh[e];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[e]&&r&&s(this.props)&&(this.features[e]=new r(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ci()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<l6.length;s++){const r=l6[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const a="on"+r,l=e[a];l&&(this.propEventSubscriptions[r]=this.on(r,l))}this.prevMotionValues=zce(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Np(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(QP(r)||WP(r))?r=parseFloat(r):!Bce(r)&&mc.test(n)&&(r=XP(e,n)),this.setBaseTarget(e,Ms(r)?r.get():r)),Ms(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const l=kj(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(r=l[e])}if(s&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!Ms(a)?a:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Hj),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class RB extends Fce{constructor(){super(...arguments),this.KeyframeResolver=iB}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ms(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Hce(t){return window.getComputedStyle(t)}class $ce extends RB{constructor(){super(...arguments),this.type="html",this.renderInstance=bP}readValueFromInstance(e,n){if(Bd.has(n)){const s=Gj(n);return s&&s.default||0}else{const s=Hce(e),r=(gP(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return vB(e,n)}build(e,n,s){Aj(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Dj(e,n,s)}}class Uce extends RB{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ci}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Bd.has(n)){const s=Gj(n);return s&&s.default||0}return n=vP.has(n)?n:_j(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return SP(e,n,s)}build(e,n,s){Mj(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,r){wP(e,n,s,r)}mount(e){this.isSVGTag=Oj(e.tagName),super.mount(e)}}const Wce=(t,e)=>Ej(t)?new Uce(e):new $ce(e,{allowProjection:t!==T.Fragment}),Vce=gae({...mle,...Dce,...Sce,...Lce},Wce),Hu=Mre(Vce),Gce="#ED6D23",Yf="#FEF0E5",qce="#EAF1FB",to={hero:"/images/AMATIR_6_dpfwbs.jpg",accent:"/images/Orange_Icon_i299iz.svg",academicCal:"/images/AcademicCalenderIcon_imxc41.svg",holidayList:"/images/HolidayListDates_hycg6k.svg",bookReq:"/images/AcademicBo
452okRequirementsIcon_prriwy.svg",transferCert:"/images/TransferCertificatesIcon_cfiyn9.svg",rulesHandbook:"/images/SchoolRulesHandbookIcon_ewnrqx.svg",hostelHandbook:"/images/HostelHandbookIcon_pgdooh.svg",feeStructureBg:"/images/Rectangle_35_e2yzph.jpg",orangeBanner:"/images/Rectangle_63_pctc61.jpg"},Kce=[{title:"Academic & Event Calendar",desc:"Stay informed about the key academic dates, term schedules, and important events throughout the year.",icon:to.academicCal,bubble:Yf,href:"/ACADEMIC_CALANDER_2025-26.pdf"},{title:"Holiday List Dates",desc:"View detailed vacation periods and holiday list to help plan family activities and travel in advance.",icon:to.holidayList,bubble:Yf,href:"/Holidays_Exams_ PTM_2025-26.pdf"},{title:"Academic Book Requirements",desc:"Find the complete list of prescribed textbooks and learning materials for all classes.",icon:to.bookReq,bubble:Yf,href:"/Books-2026-27.xlsx"},{title:"Transfer Certificates",desc:"Download guidelines and application forms for obtaining transfer certificates smoothly.",icon:to.transferCert,bubble:qce,href:"/Transfer_Certificate_2024-25.pdf"},{title:"Hostel Handbook",desc:"Access mandatory disclosures and compliance documents as per CBSE affiliation requirements.",icon:to.hostelHandbook,bubble:Yf,href:"/hostel_handbook.pdf"},{title:"School Rules Handbook",desc:"Review our comprehensive handbook outlining school policies, student responsibilities, and code of conduct.",icon:to.rulesHandbook,bubble:Yf,href:"/school-rules.pdf"}],Yce=[["1","Name of the School","Amatir Kanya Gurukul",""],["2","Affiliation No.","530865"],["3","School Code","40834"],["4","Complete Address with Pincode","Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"],["5","Principal Name & Qualification","Mrs. Gadipalli Madhuri, MSc, BEd"],["6","School Email ID","[email protected]"],["7","Contact Details","+91 - 7027570124"]],Xce=[["1","Principal","Gadipalli Madhuri"],["2","Total No. Of Teachers","37"],["","PGT","19"],["","TGT","07"],["","PRT","05"],["3","Teachers Section Ratio","1:15"],["4","Details Of Special Educator","Ms. Malvika Lakhanpal"],["5","Details Of Counsellor And Wellness Teacher","Ms. Malvika Lakhanpal"]],Zce=[["1","Total Campus Area Of The School (In Sq Mtr)","37158"],["2","No. And Size Of The Class Rooms (In Sq Mtr)","40 & 432"],["3","No. And Size Of Laboratories Including Computer Labs (In Sq Mtr)","05 & 432"],["4","Internet Facility","Yes"],["5","No. Of Girls Toilets","23"],["6","No. Of Boys Toilets","05"],["7","Link Of Youtube Video Of The Inspection Of School Covering The Infrastructure Of The School","<a href='https://www.youtube.com/watch?v=D-M4oYowgBU' target='_blank' class='underline'>https://www.youtube.com/watch?v=D-M4oYowgBU</a>"]],Jce=[["COPIES OF AFFILIATION/UPGRADATION LETTER AND RECENT EXTENSION OF AFFILIATION, I
452F ANY","view","/Affiliation_up_to_Senior_Secondary_Level.pdf"],["COPIES OF SOCIETIES/TRUST/COMPANY REGISTRATION/RENEWAL CERTIFICATE, AS APPLICABLE","view","/Trust_Registration.pdf"],["COPY OF NO OBJECTION CERTIFICATE (NOC) ISSUED, IF APPLICABLE, BY THE STATE GOVT/UT","view","/Copy_of_No_objection_Certificate_noc.pdf"],["COPIES OF RECOGNITION CERTIFICATE UNDER RTE ACT, 2009, AND ITS RENEWAL IF APPLICABLE","view","/Copies_of_Recognition_Certificate_under_RTE_Act.pdf"],["COPY OF VALID BUILDING SAFETY CERTIFICATE AS PER THE NATIONAL BUILDING CODE","view","/Copy_of_Valid_Building_Certificate_as_per_the_National_Building_Code.pdf"],["COPY OF VALID FIRE SAFETY CERTIFICATE ISSUED BY THE COMPETENT AUTHORITY","view","/Copy_of_Fire_Safety_Certificate.pdf"],["COPY OF THE DEO CERTIFICATE SUBMITTED BY THE SCHOOL FOR AFFILIATION/UPGRADATION/EXTENSION OF AFFILIATION OR SELF CERTIFICATION BY SCHOOL","view","/Certificate_issued_by_DEO-2022.pdf"],["COPIES OF VALID WATER, HEALTH AND SANITATION CERTIFICATES","view","/Copies_of_Valid_Water,_Health_&_Sanitation_Certificates.pdf"]],Qce=[["FEE STRUCTURE OF THE SCHOOL","view","/FEE_STRUCTURE_2025-26.pdf"],["ANNUAL ACADEMIC CALENDAR","view","/ACADEMIC_CALANDER_2025-26.pdf"],["LIST OF SCHOOL MANAGEMENT COMMITTEE (SMC)","view","/School_Management_Committee.pdf"],["LIST OF PARENTS TEACHERS ASSOCIATION (PTA) MEMBERS","view","/PARENTS_TEACHERS_ASSOCIATION.pdf"],["LAST THREE-YEAR RESULT OF THE BOARD EXAMINATION AS PER APPLICABILITY","view","/Last_Three_Years_Board_Result.pdf"]],c6={class_x:[{sl_no:1,year:2025,registered_students:58,students_passed:58,pass_percentage:100,remarks:"no"}],class_xii:[{sl_no:1,year:2025,registered_students:59,students_passed:59,pass_percentage:100,remarks:"no"}]};function ede(){const t=Y({maxWidth:768}),e=Y({maxWidth:1024});Y({maxHeight:600});const[n,s]=T.useState(!1);return o.jsxs("div",{className:"min-h-screen w-full bg-white text-slate-800",children:[o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",marginTop:"60px",minHeight:e?"400px":"480px"},children:[o.jsx("img",{src:to.hero,alt:"Essential Guidelines Hero",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(14,35,73,0.42)]"}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end mt-[-8%] justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:e?"translateY(-10%)":t?"translateY(-5%)":"translateY(0)",paddingTop:e?"2rem":t?"1rem":"0",paddingBottom:e?"2rem":t?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:to.accent})}),o.jsx("h1",{className:"cent-schbk-cyrill z-10002",style:{lineHeight:"1.1",color:"#fff",marginBottom:"10%"},children:"Essential Information"})]})})]}),o.jsx("section",{className:"mx-auto w-[92%] max-w-[1180px] py-12 md:py-16",children:o.jsx("div",{className:"grid grid-cols-1 gap-y-12 gap-x-8 sm:grid-cols-2 lg:grid-cols-3",children:Kce.map((r,a)=>o.jsxs("article",{className:"flex flex-col items-center text-center",children:[o.jsx("div",{className:"mb-4 grid h-20 w-20 place-items-center rounded-full",style:{background:r.bubble},children:o.jsx("img",{src:r.icon,alt:"",className:"h-9 w-9"})}),o.jsx("h3",{className:"font-serif text-[18px] md:text-[20px] text-[#1C3664] leading-tight",style:{letterSpacing:"0.2px"},children:r.title}),o.jsx("p",{className:"mt-3 max-w-[280px] text-[13px] md:text-[14px] leading-6 text-[#3B3B3B]",children:r.desc}),o.jsxs("a",{href:r.href,className:"mt-4 inline-flex items-center gap-2 rounded-full bg-[#ED6D23] px-4 py-2 text-[12px] font-medium text-white",target:"_blank",rel:"noopener noreferrer",children:[o.jsx(ab,{className:"h-4 w-4"}),"Download"]})]},r.title+a))})}),o.jsxs("section",{className:"relative overflow-hidden",children:[o.jsx("img",{src:to.feeStructureBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"relative z-[1] bg-[#0E2349]/85 px-6 py-16 md:py-20",children:o.jsxs("div",{className:"mx-auto w-full max-w-[980px] text-center text-white",children:[o.jsx("h2",{className:"font-serif text-[24px] md:text-[28px]",children:"Fee Structure"}),o.jsx("p",{className:"mx-auto mt-3 max-w-[600px] text-[14px] md:text-[15px] leading-7 text-white/90",children:"Find all essential information about fees, concessions, and scholarships in the PDF attached below."}),o.jsxs("a",{href:"/FEE_STRUCTURE_2025-26.pdf",className:"mx-auto mt-6 inline-flex items-center gap-2 rounded-full px-5 py-2.5 text-[14px] font-semibold text-white shadow-[0_8px_24px_rgba(237,109,35,0.35)] hover:brightness-105 transition",style:{background:Gce},target:"_blank",children:[o.jsx(ab,{className:"h-4 w-4"}),"Download"]})]})})]}),o.jsxs("section",{className:"mx-auto w-[92%] max-w-[1080px] py-14 md:py-18",id:"cbseDisclosure",children:[o.jsx("h2",{className:"mb-6 text-center font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"CBSE Disclosure"}),o.jsx("h4",{className:"mb-6 text-left font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"General Information"}),o.jsx("div",{className:"overflow-x-auto rounded-md border border-slate-200",children:o.jsxs("div",{className:"min-w-[860px] md:min-w-0",children:[o.jsxs("div",{className:"grid grid-cols-12 bg-[#0E2349] text-white",children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center text-[14px]",children:"S. No."}),o.jsx("div",{className:"col-span-5 px-3 py-3 text-[14px]",children:"INFORMATION"}),o.jsx("div",{className:"col-span-6 px-3 py-3 text-[14px]",children:"DETAILS"})]}),o.jsx("div",{children:Yce.map((r,a)=>o.jsxs("div",{className:`grid grid-cols-12 text-[14px] ${a%2?"bg-[#F5F7FB]":"bg-white"}`,children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center",children:r[0]}),o.jsx("div",{className:"col-span-5 px-3 py-3",children:r[1]}),o.jsx("div",{className:"col-span-6 px-3 py-3",children:r[2]})]},a))})]})}),o.jsx("h4",{className:"mb-6 mt-6 text-left font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"Document Information"}),o.jsx("div",{className:"overflow-x-auto rounded-md border border-slate-200",children:o.jsxs("div",{className:"min-w-[860px] md:min-w-0",children:[o.jsxs("div",{className:"grid grid-cols-12 bg-[#0E2349] text-white",children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center text-[14px]",children:"S. No."}),o.jsx("div",{className:"col-span-9 px-3 py-3 text-[14px] text-center",children:"DOCUMENT / INFORMATION"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"UPLOADED"})]}),o.jsx("div",{children:Jce.map((r,a)=>o.jsxs("div",{className:`grid grid-cols-12 text-[14px] ${(a+3)%2?"bg-[#F5F7FB]":"bg-white"}`,children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center",children:a+1}),o.jsx("div",{className:"col-span-9 px-3 py-3 text-lowercase",children:r[0]}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-center",children:r[1]==="view"&&r[2]&&o.jsx("a",{href:r[2],target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline",children:r[1]})})]},a+3))})]})}),o.jsx("h4",{className:"mb-6 mt-6 text-left font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"Result and Academics"}),o.jsx("div",{className:"overflow-x-auto rounded-md border border-slate-200",children:o.jsxs("div",{className:"min-w-[860px] md:min-w-0",children:[o.jsxs("div",{className:"grid grid-cols-12 bg-[#0E2349] text-white",children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center text-[14px]",children:"S. No."}),o.jsx("div",{className:"col-span-9 px-3 py-3 text-[14px] text-center",children:"DOCUMENT / INFORMATION"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"UPLOADED"})]}),o.jsx("div",{children:Qce.map((r,a)=>o.jsxs("div",{className:`grid grid-cols-12 text-[14px] ${(a+3)%2?"bg-[#F5F7FB]":"bg-white"}`,children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center",children:a+1}),o.jsx("div",{className:"col-span-9 px-3 py-3 text-lowercase",children:r[0]}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-center",children:r[1]==="view"&&r[2]&&o.jsx("a",{href:r[2],target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline",children:r[1]})})]},a+3))})]})}),o.jsx("h4",{className:"mb-6 mt-6 text-left font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"Result Class: X"}),o.jsx("div",{className:"overflow-x-auto rounded-md border border-slate-200",children:o.jsxs("div",{className:"min-w-[860px] md:min-w-0",children:[o.jsxs("div",{className:"grid grid-cols-12 bg-[#0E2349] text-white",children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-[14px] text-center",children:"SL NO."}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"YEAR"}),o.jsx("div",{className:"col-span-3 px-3 py-3 text-[14px] text-center",children:"NO. OF REGIST
452ERED STUDENTS"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"NO. OF STUDENTS PASSED"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"PASS PERCENTAGE"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"REMARKS"})]}),o.jsx("div",{children:c6.class_x.map((r,a)=>o.jsxs("div",{className:`grid grid-cols-12 text-[14px] ${(a+3)%2?"bg-[#F5F7FB]":"bg-white"}`,children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-[14px] text-center",children:r.sl_no}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.year}),o.jsx("div",{className:"col-span-3 px-3 py-3 text-[14px] text-center",children:r.registered_students}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.students_passed}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.pass_percentage}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.remarks})]},a+3))})]})}),o.jsx("h4",{className:"mb-6 mt-6 text-left font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"Result Class: XII"}),o.jsx("div",{className:"overflow-x-auto rounded-md border border-slate-200",children:o.jsxs("div",{className:"min-w-[860px] md:min-w-0",children:[o.jsxs("div",{className:"grid grid-cols-12 bg-[#0E2349] text-white",children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-[14px] text-center",children:"SL NO."}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"YEAR"}),o.jsx("div",{className:"col-span-3 px-3 py-3 text-[14px] text-center",children:"NO. OF REGISTERED STUDENTS"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"NO. OF STUDENTS PASSED"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"PASS PERCENTAGE"}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:"REMARKS"})]}),o.jsx("div",{children:c6.class_xii.map((r,a)=>o.jsxs("div",{className:`grid grid-cols-12 text-[14px] ${(a+3)%2?"bg-[#F5F7FB]":"bg-white"}`,children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-[14px] text-center",children:r.sl_no}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.year}),o.jsx("div",{className:"col-span-3 px-3 py-3 text-[14px] text-center",children:r.registered_students}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.students_passed}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.pass_percentage}),o.jsx("div",{className:"col-span-2 px-3 py-3 text-[14px] text-center",children:r.remarks})]},a+3))})]})}),o.jsx("h4",{className:"mb-6 mt-6 text-left font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"Staff (Teaching)"}),o.jsx("div",{className:"overflow-x-auto rounded-md border border-slate-200",children:o.jsxs("div",{className:"min-w-[860px] md:min-w-0",children:[o.jsxs("div",{className:"grid grid-cols-12 bg-[#0E2349] text-white",children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center text-[14px]",children:"S. No."}),o.jsx("div",{className:"col-span-5 px-3 py-3 text-[14px]",children:"INFORMATION"}),o.jsx("div",{className:"col-span-6 px-3 py-3 text-[14px]",children:"DETAILS"})]}),o.jsx("div",{children:Xce.map((r,a)=>o.jsxs("div",{className:`grid grid-cols-12 text-[14px] ${a%2?"bg-[#F5F7FB]":"bg-white"}`,children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center",children:r[0]}),o.jsx("div",{className:"col-span-5 px-3 py-3",dangerouslySetInnerHTML:{__html:r[1]}}),o.jsx("div",{className:"col-span-6 px-3 py-3",children:r[2]})]},a))})]})}),o.jsx("h4",{className:"mb-6 mt-6 text-left font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"School Infrastructure"}),o.jsx("div",{className:"overflow-x-auto rounded-md border border-slate-200",children:o.jsxs("div",{className:"min-w-[860px] md:min-w-0",children:[o.jsxs("div",{className:"grid grid-cols-12 bg-[#0E2349] text-white",children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center text-[14px]",children:"S. No."}),o.jsx("div",{className:"col-span-5 px-3 py-3 text-[14px]",children:"INFORMATION"}),o.jsx("div",{className:"col-span-6 px-3 py-3 text-[14px]",children:"DETAILS"})]}),o.jsx("div",{children:Zce.map((r,a)=>o.jsxs("div",{className:`grid grid-cols-12 text-[14px] ${a%2?"bg-[#F5F7FB]":"bg-white"}`,children:[o.jsx("div",{className:"col-span-1 px-3 py-3 text-center",children:r[0]}),o.jsx("div",{className:"col-span-6 px-3 py-3",dangerouslySetInnerHTML:{__html:r[1]}}),o.jsx("div",{className:"col-span-5 px-3 py-3",dangerouslySetInnerHTML:{__html:r[2]}})]},a))})]})})]}),o.jsxs("section",{className:"relative w-full",children:[o.jsx("img",{src:to.orangeBanner,alt:"",className:"h-[260px] w-full object-cover md:h-[300px]"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(237,109,35,0.88)]"}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-4 text-center text-white",children:[o.jsx("h3",{className:"font-serif text-[24px] md:text-[28px]",children:"Unlock her future!"}),o.jsx("p",{className:"mt-2 max-w-[680px] text-[14px] leading-7 md:text-[15px]",children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/contact",className:"mt-5 inline-flex items-center gap-2 rounded-full bg-[#0E2349] px-5 py-2 text-[14px] font-semibold text-white",children:"Get in Touch"})]})]}),o.jsx("section",{className:"relative w-full",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Location",className:"h-[420px] w-full md:h-[520px]",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed&z=12",loading:"lazy"})})]})}const z2={email:"/images/footer_email_d2ijzo.svg",phone:"/images/footer_phone_e2vyjp.svg",location:"/images/footer_location_dph6is.svg"},d6={ink:"#0F0F0F",line:"#DADDE3"};function tde(){xs({title:"Contact Amatir Kanya Gurukul | Kurukshetra, Haryana",description:"Contact Amatir Kanya Gurukul in Kurukshetra, Haryana for admissions and enquiries. Visit our campus, call our team or connect online for more information.",keywords:""});
452const[t,e]=T.useState({name:"",email:"",phone:"",message:""}),n=T.useRef(null);return T.useEffect(()=>{const s=n.current;if(s){s.innerHTML="";const r="https://crm.mediagarh.com/CRM/forms/public/33",a=window.location.href,l=r+"?embed=1&landing_url="+encodeURIComponent(a),c=document.createElement("iframe");c.id="crm-form-33",c.src=l,c.style.width="100%",c.style.height="600px",c.style.border="0",c.style.background="transparent",s.appendChild(c)}},[]),o.jsx("main",{className:"w-screen py-8 overflow-x-hidden bg-white text-black",style:{marginTop:"60px"},children:o.jsxs("section",{className:"w-screen px-[4vw]",children:[o.jsxs("div",{className:"flex flex-col items-start md:flex-row",style:{gap:"5vw"},children:[o.jsxs("div",{className:"order-2 grow md:order-1 md:basis-[48%]",children:[o.jsx("h1",{className:"cent-schbk-cyrill font-semibold leading-tight",style:{fontSize:"clamp(2rem, 4vw, 3rem)",color:d6.ink,marginBottom:"4vh"},children:"Contact us"}),o.jsxs("ul",{children:[o.jsx(F2,{iconSrc:z2.email,label:"Email",href:"mailto:[email protected]",children:"[email protected]"}),o.jsx(F2,{iconSrc:z2.phone,label:"Phone",href:"tel:+917027570124",children:"7027570124"}),o.jsx(F2,{iconSrc:z2.location,label:"Location",href:"https://maps.google.com/?q=Amatir%20Kanya%20Gurukul%20Kurukshetra",children:o.jsxs(o.Fragment,{children:["Amatir Kanya Gurukul, Bachgaon",o.jsx("br",{}),"Gamri, Lukhi Road, Kurukshetra,",o.jsx("br",{}),"Haryana 136119"]})})]}),o.jsx("div",{className:"w-full",style:{marginTop:"4vh",overflow:"hidden",borderStyle:"solid",borderColor:d6.line,borderWidth:"0.1rem",borderRadius:"1rem"},children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Map",loading:"lazy",className:"block w-full",style:{height:"46vh"},src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed"})})]}),o.jsx("div",{className:"order-1 grow md:order-2 md:basis-[48%]",children:o.jsxs("div",{className:"mx-auto rounded-xl shadow-sm overflow-hidden p-6 md:p-8",style:{width:"500px",border:"1px solid #dadde3",overflow:"hidden",position:"relative",minHeight:"400px"},children:[o.jsx("h2",{className:"cent-schbk-cyrill font-semibold leading-tight mb-6 md:mb-8",style:{fontSize:"clamp(1.8rem, 3.5vw, 2.4rem)",color:"#0F0F0F"},children:"Enquire Now"}),o.jsx("div",{ref:n,id:"crm-form-container-33",className:"w-full h-full"})]})})]}),o.jsx("div",{className:"w-screen",style:{height:"0.15rem",background:"linear-gradient(90deg, rgba(28,54,100,0.12), rgba(237,109,35,0.28), rgba(28,54,100,0.12))",marginTop:"8vh"}})]})})}function nde({src:t,label:e}){return o.jsx("span",{"aria-hidden":"true",role:"img","aria-label":e,style:{width:"1.4rem",height:"1.4rem",display:"inline-block",backgroundColor:"#000",WebkitMaskImage:`url(${t})`,maskImage:`url(${t})`,WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"}})}function F2({iconSrc:t,label:e,href:n,children:s}){const r=o.jsx("span",{className:"univers-regular",style:{fontSize:"clamp(1rem, 1.8vw, 1.15rem)",lineHeight:1.6},children:s});return o.jsxs("li",{className:"flex items-start",style:{gap:"3.2vw",marginBottom:"2.2vh"},children:[o.jsx(nde,{src:t,label:e}),n?o.jsx("a",{href:n,className:"hover:underline",children:r}):r]})}const H2={t1:"/images/Rauktima_Royal.jpg",t2:"/images/confident-female.jpg",t4:"/images/Neha_Dhiman.png"},_n={navy:"#1C3664",orange:"#ED6D23",blueTint:"#E8EEF7",peach:"#F7EEE8",border:"rgba(0,0,0,0.08)",text:"#111827",textMuted:"#4B5563"},Di={heroDesktop:"/images/Header_ywiibp.mp4",heroMobile:"/images/375x424_lqnlmg.mp4",heroPoster:"/images/Screenshot_2025-08-28_234620_eke0em.png",heroIcon:"/images/Orange_Icon_i299iz.svg",stat1000:"/images/1000_kqkta6.svg",statPersonal:"/images/personalAttention_qajyxm.svg",stat200:"/images/200_medals_y4b9sy.svg",stat30:"/images/spacious_30_cpts76.svg",stat100:"/images/100_caring_kjseyh.svg",statRated:"/images/Rated4_5_uyx9cv.svg",g_library:"/images/Library02_w8x3om.jpg",g_hostelMess12:"/images/Candid-Happy03_wu2xkd.jpg",g_hostelMess09:"/images/Acad-School03_h41ob8.jpg",g_whatsapp:"/images/Acad-Lab19_odu4q9.jpg",g_hostelMess07:"/images/Hostel-Life04_wwi9bv.jpg",g_img20221023:"/images/BA-Music01_iljqvq.jpg",g_hostelMess02:"/images/BA-Nukkad04_i8qysl.jpg",g_hostelMess05:"/images/Assembly10_1_gklgnh.jpg",unlockBg:"/images/5a3595fd08cbede5605d612ceae4005da048dbe0_sjctvy.jpg"};function ide({isVisible:t,onClose:e}){Y({maxWidth:768}),Y({minWidth:769,maxWidth:1024}),Y({maxHeight:600}),Y({maxHeight:500});const[n,s]=T.useState({g:"",d:"",p:"",w:"",s:"",c:""});return o.jsx("div",{})}function sde(){Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const[t,e]=T.useState(!1),[n,s]=T.useState(!1),r=T.useRef(null),a=T.useRef(null),[l,c]=T.useState(!1);return T.useEffect(()=>{const u=()=>{const f=window.pageYOffset||document.documentElement.scrollTop;s(f>100)};return window.addEventListener("scroll",u),()=>window.removeEventListener("scroll",u)},[]),T.useEffect(()=>{if(!a.current)return;const u=40,f=()=>{const m=a.current.getBoundingClientRect().top+window.scrollY-u;window.scrollY>=m?c(!0):c(!1)};return window.addEventListener("scroll",f),f(),()=>window.removeEventListener("scroll",f)},[]),T.useEffect(()=>{e(!n)},[n]),o.jsxs("main",{className:"w-full overflow-x-hidden",children:[o.jsx(rde,{onShowForm:()=>e(!0),buttonRef:r,hideButton:l}),o.jsx(ide,{isVisible:t,onClose:()=>e(!1)}),o.jsx(ade,{}),o.jsx(ode,{}),o.jsx(pj,{Slides:gj}),o.jsx(lde,{}),o.jsx(cde,{touchRef:a}),o.jsx(Wp,{images:[Di.g_library,Di.g_hostelMess12,Di.g_hostelMess09,Di.g_whatsapp,Di.g_hostelMess07,Di.g_img20221023,Di.g_hostelMess02,Di.g_hostelMess05],title:"Gallery",subtitle:""}),o.jsx(dde,{}),o.jsx(ude,{})]})}function rde({onShowForm:t,buttonRef:e,hideButton:n}){const s=Y({maxWidth:768});Y({minWidth:769,maxWidth:1024}),Y({minWidth:1025}),Y({maxHeight:600}),Y({maxHeight:500}),Y({minHeight:900});const r=Y({maxWidth:1024,maxHeight:600}),a=()=>s?"center 30%":r?"center 25%":"center center";return o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",minHeight:r?"400px":"480px"},children:[o.jsxs("video",{className:"absolute inset-0 h-full w-full object-cover",playsInl
452ine:!0,autoPlay:!0,muted:!0,loop:!0,poster:Di.heroPoster,style:{objectFit:"cover",objectPosition:a()},children:[o.jsx("source",{src:Di.heroMobile,type:"video/mp4",media:"(max-width: 767px)"}),o.jsx("source",{src:Di.heroDesktop,type:"video/mp4"})]}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(0,0,0,0)_20%,#002F82_100%)]"}),o.jsx("div",{className:"relative z-10 h-full flex items-end",children:o.jsx("div",{className:"w-full px-6 sm:px-8 lg:px-10 xl:px-16 pb-8 sm:pb-12 lg:pb-16 xl:pb-20",children:o.jsxs("div",{className:"text-white max-w-4xl",children:[o.jsx("div",{className:"flex justify-start mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:Di.heroIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill font-semibold mb-4 lg:mb-6",style:{fontSize:s?"clamp(1.5rem, 6vw, 2.5rem)":"clamp(1.8rem, 3.5vw, 3.2rem)",lineHeight:1.1,textAlign:"left"},children:"Amatir Kanya Gurukul"}),o.jsx("p",{className:"univers-regular mb-6 lg:mb-8 opacity-92",style:{fontSize:s?"clamp(0.9rem, 4vw, 1.1rem)":"clamp(1rem, 1.5vw, 1.15rem)",textAlign:"left"},children:"A Heritage Residential Campus in Kurukshetra, Haryana"}),o.jsx("button",{onClick:()=>{const l=document.getElementById("request-callback-section");if(l){const u=l.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:u,behavior:"smooth"})}},ref:e,className:`fixed inline-flex items-center justify-center shadow-lg transition-transform hover:scale-105 z-[99] top-[90%] left-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-300 ease-in-out ${n?"opacity-0 pointer-events-none":"opacity-100"}`,style:{background:_n.orange,color:"#fff",padding:s?"0.8rem 1.4rem":"0.95rem 1.6rem",borderRadius:"2rem",fontSize:s?"clamp(0.9rem, 4vw, 1rem)":"clamp(0.95rem, 1.2vw, 1.05rem)"},children:"Request a Call Back"})]})})})]})}function ade(){const t=T.useMemo(()=>[{icon:Di.stat1000,bg:_n.peach,title:o.jsxs(o.Fragment,{children:["1,000+ Proud",o.jsx("br",{}),"Alumnae"]}),sub:"Trusted by families across generations."},{icon:Di.statPersonal,bg:_n.blueTint,title:o.jsxs(o.Fragment,{children:["Personal Attention",o.jsx("br",{}),"Guaranteed"]}),sub:"Low student to teacher ratio."},{icon:Di.stat200,bg:_n.peach,title:o.jsxs(o.Fragment,{children:["200+ medals in",o.jsx("br",{}),"athletics, teamwork,",o.jsx("br",{}),"and excellence."]}),sub:"Champions On and Off the Field."},{icon:Di.stat100,bg:_n.blueTint,title:o.jsxs(o.Fragment,{children:["Caring",o.jsx("br",{}),"Educators On Campus"]}
452),sub:"Experienced, full-time mentors to guide every step."},{icon:Di.stat30,bg:_n.peach,title:o.jsxs(o.Fragment,{children:["Spacious 30+ Acres of",o.jsx("br",{}),"Lush Green Campus"]}),sub:"Safe, serene, and ideal for growing minds."},{icon:Di.statRated,bg:_n.blueTint,title:o.jsxs(o.Fragment,{children:["Rated 4.5+Â Â by 400+",o.jsx("br",{}),"Parents"]}),sub:"Real reviews. Real results. Real trust."}],[]);return o.jsxs("section",{className:"w-screen bg-white",style:{paddingTop:"5rem",paddingBottom:"4rem"},children:[o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsx("h2",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:_n.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"3.5rem"},children:"Why Parents Trust Amatir"}),o.jsx("div",{className:"grid",style:{gridTemplateColumns:"repeat(3, minmax(0,1fr))",gap:"2vw"},children:t.map((e,n)=>o.jsxs("article",{className:"flex flex-col justify-between",style:{background:e.bg,borderRadius:"0.6rem",padding:"3vh 2vw",border:`0.08rem solid ${_n.border}`,minHeight:"28vh"},children:[o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center justify-center",style:{width:"3rem",height:"3rem",borderRadius:"999rem",background:"#fff",marginBottom:"2vh"},children:o.jsx("img",{src:e.icon,alt:"",style:{width:"1.6rem",height:"1.6rem"}})}),o.jsx("h3",{className:"cent-schbk-cyrill",style:{color:_n.navy,fontWeight:600,fontSize:"clamp(1.05rem,1.7vw,1.4rem)",lineHeight:1.35},children:e.title})]}),o.jsx("p",{className:"univers-regular",style:{color:_n.textMuted,fontSize:"clamp(0.9rem,1.05vw,1rem)",lineHeight:1.6,marginTop:"1.2vh"},children:e.sub})]},n))})]}),o.jsx("style",{children:` 453 @media (max-width: 900px){ 454 section .grid{ grid-template-columns: 1fr !important; } 455 section article{ min-height: 26vh !important; } 456 } 457 `})]})}function ode(){return o.jsxs("section",{className:"w-screen bg-white",style:{paddingTop:"8vh",paddingBottom:"8vh"},children:[o.jsxs("div",{className:"mx-auto grid w-[92vw] items-center md:grid-cols-2",style:{columnGap:"4vw",rowGap:"6vh"},children:[o.jsx("div",{className:"relative flex justify-center md:justify-start",children:o.jsx("div",{className:"flex justify-center items-center w-full",children:o.jsx("img",{src:"/images/Twin_Image_2_i1lcye.png",alt:"Amatir students together",style:{maxWidth:"min(54vw,46rem)",maxHeight:"min(64vh,44rem)",width:"100%",height:"auto",display:"block",margin:"0 auto",borderRadius:"1.2rem",objectFit:"contain"}})})}),o.jsxs("div",{children:[o.jsxs("h2",{className:"cent-schbk-cyrill font-semibold text-left",style:{color:_n.navy,fontSize:"clamp(1.4rem,3.2vw,2.6rem)",lineHeight:1.2,marginBottom:"2.8vh",textAlign:"left"},children:["A residential school where",o.jsx("br",{})," your daughter grows with",o.jsx("br",{})," values and confidence."]}),o.jsx("p",{className:"univers-regular text-left",style:{fontSize:"clamp(0.95rem,1.15vw,1.06rem)",lineHeight:1.8,color:_n.text,maxWidth:"60ch",textAlign:"justify"},children:"At Amatir Kanya Gurukul, your daughter will grow in a safe, all-girls campus that feels just like home. From the very first day, sheâll learn the values of discipline, independence, and Indian culture in a nurturing environment. Our balanced approach ensures that she excels not only in academics, but also in sports and the arts. Along the way, sheâll develop strong leadership qualities, confidence, and the ability to communicate clearly â skills that will support her throughout life."})]})]}),o.jsx("style",{children:` 458 @media (max-width: 980px){ 459 .md\\:grid-cols-2{ grid-template-columns: 1fr !important; } 460 } 461 `})]})}function lde(){const t=({children:a})=>o.jsx("div",{className:"mx-auto",style:{width:"min(92vw, 72rem)"},children:a}),e="font-['CentSchbkCyrill_BT:Roman',_serif]",n=Y({maxWidth:768}),s=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025}),Y({maxWidth:1024}),Y({maxHeight:600});const r=T.useMemo(()=>[{name:"Neha Dhiman",role:"Teacher",photo:H2.t4,highlight:"Empowering Life Skills",sign:"_Ms. Neha Dhiman",category:"Educator - Home Science",details:"We teach Home Science not just as a subject, but as 'Gastronomy'âthe art of living. Under the Learning to Do pillar, I mentor girls to blend scientific nutrition with traditional values. It is rewarding to see them evolve into independent, creative thinkers who take ownership of their health and environment."}
461,{name:"Shubhangi Gupta",role:"Parent",photo:H2.t2,highlight:"Security and Holistic Growth",sign:"_Shubhangi Gupta",category:"Parent",details:"The Samrakshika system gave us immediate peace of mind regarding safety. Beyond the low student-teacher ratio, seeing our daughter balance rigorous JEE prep with Atma Dhyan meditation proves that Amatir nurtures the soul as much as the mind. Itâs the best investment weâve made for her future."},{name:"Rauktima Royal, Delhi University",role:"Alumna",photo:H2.t1,highlight:"Prepared for the Real World",sign:"_Rauktima Royal",category:"Alumna - Currently at Delhi University",details:"Amatir gave me more than just the academic edge to crack CUET and enter DU; it gave me the mental discipline of Inner Engineering. While university life is fast-paced, the grounded values and self-reliance I gained at the Gurukul keep me focused and ahead of the curve."}],[]);return o.jsxs("section",{className:"w-screen bg-white",style:{paddingTop:"0vh",paddingBottom:"8vh"},children:[o.jsx("div",{className:"mx-auto grid items-start",children:o.jsx("div",{className:"relative",children:o.jsxs("section",{className:"bg-[#f8f9fbcc]",style:{paddingTop:"7vh",paddingBottom:"1vh"},children:[o.jsx("div",{style:{marginBottom:"10vh"},children:o.jsx("h2",{className:"unvers-regular cent-schbk-cyrill font-semibold leading-[1.1]",style:{color:_n.navy,fontSize:"clamp(1.6rem,3.6vw,3rem)"},children:"In Their Own Words"})}),o.jsx(t,{children:o.jsx("div",{className:"relative mt-[4vh]",children:o.jsx("div",{className:"overflow-hidden",children:o.jsx("div",{className:"grid transition-transform duration-500 ease-out mb-12",style:{"--gap":n?"1rem":s?"1.2rem":"clamp(0.9rem,1.2rem,1.2rem)",gridAutoFlow:"column",gridAutoColumns:"calc((100% - (2 * var(--gap))) / 3)",columnGap:"var(--gap)"},children:r.map((a,l)=>o.jsxs("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md bg-white text-[#1C3664] transition-all duration-500 hover:shadow-2xl hover:-translate-y-1 cursor-pointer",style:{minWidth:0},children:[o.jsxs("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"132%"},children:[o.jsx("img",{src:a.photo,alt:a.name,className:"absolute inset-0 h-full w-full object-cover transition-all duration-500 group-hover:scale-110"}),o.jsxs("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0E2349]/95 to-[#0E2349]/90 text-white opacity-0 group-hover:opacity-100 transition-all duration-500 flex flex-col justify-center p-6 transform translate-y-2 group-hover:translate-y-0",children:[o.jsx("h5",{className:`${e} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:a.highlight}),o.jsx("p",{className:"mb-4 text-center",style:{fontSize:"clamp(0.765rem,0.855vw,0.95rem)",lineHeight:1.6},children:a.details}),o.jsx("h5",{className:`${e} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:a.sign}),o.jsx("p",{className:"mb-4 text-center",style:{whiteSpace:"pre-line",fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:a.category}),o.jsxs("div",{className:"mt-auto space-y-2 text-center",children:[o.jsx("p",{className:"text-sm opacity-90",children:a.email}),o.jsx("p",{className:"text-sm opacity-90",children:a.phone})]})]})]}),o.jsxs("div",{className:"px-[1rem] pb-[1rem] pt-[0.9rem] text-left bg-white",children:[o.jsx("h5",{className:`${e} font-[500] text-[#1C3664]`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:a.name}),o.jsx("p",{className:"text-[#3a2323] mt-1",style:{fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:a.role})]})]},a.name+l))})})})})]})})}),o.jsx("style",{children:` 462 @media (max-width: 980px){ 463 section .mx-auto.grid{ grid-template-columns: 1fr !important; row-gap: 6vh; } 464 section figure[aria-label="card"]{ width: 88vw !important; height: 46vh !important; } 465 } 466 `})]})}function cde({touchRef:t}){const e=Y({maxWidth:768}),n=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025});const s=Y({maxHeight:600}),r=Y({maxHeight:500}),[a,l]=T.useState({g:"",d:"",p:"",w:"",s:"",c:""}),c=()=>r?{paddingTop:"3vh",paddingBottom:"3vh"}:s?{paddingTop:"4vh",paddingBottom:"4vh"}:e?{paddingTop:"5vh",paddingBottom:"5vh"}:n?{paddingTop:"6vh",paddingBottom:"6vh"}:{paddingTop:"7vh",paddingBottom:"7vh"},u=()=>e?{columnGap:"0",rowGap:"4vh"}:n?{columnGap:"1vw",rowGap:"3vh"}:{columnGap:"1vw",rowGap:"4vh"},f=()=>e?{width:"100%",padding:"2vh 2vw",titleSize:"clamp(0.9rem, 4vw, 1rem)",amountSize:"clamp(1.1rem, 5vw, 1.3rem)",quarterSize:"clamp(0.8rem, 3.5vw, 0.9rem)",marginBottom:"1.5vh"}:n?{width:"calc(50% - 0.5vw)",padding:"1.8vh 1.8vw",titleSize:"clamp(1rem, 1.6vw, 1.1rem)",amountSize:"clamp(1.2rem, 2vw, 1.4rem)",quarterSize:"clamp(0.85rem, 1.2vw, 0.95rem)",marginBottom:"1.2vh"}:{width:"calc(50% - 0.5vw)",padding:"1.6vh 1.6vw",titleSize:"clamp(1.05rem, 1.4vw, 1.2rem)",amountSize:"clamp(1.3rem, 1.4vw, 1.6rem)",quarterSize:"clamp(0.9rem, 1vw, 0.95rem)",marginBottom:"3vh"},m=()=>r?{padding:"2vh 2vw",titleSize:"clamp(1rem, 3vw, 1.2rem)",titleMargin:"1.5vh",gap:"1.2vh",inputSize:"clamp(0.8rem, 2.5vw, 0.9rem)",labelSize:"clamp(0.75rem, 2vw, 0.85rem)",inputPadding:"0.7rem 1rem",labelMargin:"0.5vh",buttonPadding:"0.7rem 1.4rem",buttonSize:"clamp(0.8rem, 2.5vw, 0.9rem)",buttonMargin:"1vh"}:s?{padding:"2.5vh 2.2vw",titleSize:"clamp(1.1rem, 3.5vw, 1.3rem)",titleMargin:"1.8vh",gap:"1.4vh",inputSize:"clamp(0.85rem, 2.8vw, 0.95rem)",labelSize:"clamp(0.8rem, 2.2vw, 0.9rem)",inputPadding:"0.8rem 1.1rem",labelMargin:"0.6vh",buttonPadding:"0.8rem 1.6rem",buttonSize:"clamp(0.85rem, 2.8vw, 0.95rem)",buttonMargin:"1.2vh"}:e?{padding:"3vh 2.5vw",titleSize:"clamp(1.2rem, 4vw, 1.4rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.9rem, 3.5vw, 1rem)",labelSize:"clamp(0.85rem, 3vw, 0.95rem)",inputPadding:"0.9rem 1.2rem",labelMargin:"0.7vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.9rem, 3.5vw, 1rem)",buttonMargin:"1.4vh"}:n?{padding:"3.5vh 2.5vw",titleSize:"clamp(1.3rem, 2.2vw, 1.5rem)",titleMargin:"2.2vh",gap:"1.8vh",inputSize:"clamp(0.95rem, 1.3vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.1vw, 1rem)",inputPadding:"1rem 1.3rem",labelMargin:"0.8vh",buttonPadding:"1rem 2rem",buttonSize:"clamp(0.95rem, 1.3vw, 1.05rem)",buttonMargin:"1.6vh"}:{padding:"3vh 2.2vw",titleSize:"clamp(1.3rem, 1.8vw, 1.6rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.95rem, 1.1vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.05vw, 1rem)",inputPadding:"1rem 1.2rem",labelMargin:"0.6vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.95rem, 1.1vw, 1.05rem)",buttonMargin:"1.2vh"},g=()=>e?{padding:"2vh 2vw",maxWidth:"100%",titleSize:"clamp(0.9rem, 4vw, 1rem)",titleMargin:"1.2vh",textSize:"clamp(0.8rem, 3.5vw, 0.9rem)",lineHeight:1.7,marginBottom:"2vh"}:n?{padding:"1.8vh 1.8vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.2vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.85rem, 1.1vw, 0.95rem)",lineHeight:1.75,marginBottom:"1.8vh"}:{padding:"1.6vh 1.6vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.05vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.9rem, 1.02vw, 0.98rem)",lineHeight:1.8,marginBottom:"2vh"},x=c(),b=u(),v=f(),w=m(),N=g(),_=({title:M,amt:O,perQtr:P})=>o.jsxs("div",{className:"rounded",style:{background:_n.peach,border:`0.08rem solid ${_n.border}`,padding:v.padding,width:v.width,marginBottom:v.marginBottom},children:[o.jsx("div",{className:"univers-regular text-[#4b5b7a]",style:{fontSize:v.titleSize,marginBottom:"0.8vh"},children:M}),o.jsx("div",{className:"univers-regular font-semibold",style:{color:_n.navy,fontSize:v.amountSize},children:O}),o.jsx("div",{className:"univers-regular mt-[0.6vh]",style:{color:_n.textMuted,fontSize:v.quarterSize},children:P})]}),E={...x,height:"auto"},k={background:"white",border:`0.08rem solid ${_n.border}`,padding:N.padding,maxWidth:N.maxWidth,marginBottom:N.marginBottom,width:"100%"},C={background:"#E5EAF2",border:`0.08rem solid ${_n.border}`,padding:w.padding,width:"100%"},A={backgroundColor:"#FDF0E9",border:`0.08rem solid ${_n.border}`,padding:v.padding,width:v.width,marginBottom:v.marginBottom},L={background:"#E5EAF2",border:`0.08rem solid ${_n.border}`,padding:v.padding,width:v.width,marginBottom:v.marginBottom};return o.jsx("section",{className:"w-screen bg-white",style:E,children:o.jsxs("div",{className:"mx-auto grid",style:{columnGap:b.columnGap,rowGap:b.rowGap,justifyContent:"center"},children:[o.jsx("h2",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:_n.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"2.5rem"},children:"Fee Structure"}),o.jsx("div",{className:"flex gap-10",style:{rowGap:e?"3vh":"2vh"},ref:t,children:o.jsxs("div",{className:"residential",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-semibold mb-4 lg:mb-4",style:{fontSize:e?"clamp(1.5rem, 6vw, 2.5rem)":"clamp(1.8rem, 2.5vw, 3.2rem)",lineHeight:1.1,textAlign:"left",color:_n.navy},children:"Residential:"}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-1vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(_,{title:"Grade III to V",amt:"Rs. 2,60,000 / Year",perQtr:"Rs. 65,000 / quarter",style:A}),o.jsx(_,{className:"bg-[#E5EAF2]",title:"Grade VI to VIII",amt:"Rs. 2,64,000 / Year",perQtr:"Rs. 66,000 / quarter",style:L})]}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-3vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(_,{title:"Grade IX to X",amt:"Rs. 2,69,400 / Year",perQtr:"Rs. 67,350 / quarter",style:L}),o.jsx(_,{title:"Grade XI to XII",amt:"Rs. 2,83,200 / Year",perQtr:"Rs. 70,800 / quarter",style:A})]})]})}),o.jsxs("div",{className:"",style:k,children:[o.jsx("div",{className:"univers-regular font-semibold",style:{fontSize:N.titleSize,marginBottom:N.titleMargin,textAlign:"left"},children:"Note:"}
466),o.jsxs("ul",{className:"univers-regular list-disc pl-[1.2rem]",style:{color:_n.textMuted,fontSize:N.textSize,lineHeight:N.lineHeight,textAlign:"left"},children:[o.jsx("li",{children:"Inclusive of School and Hostel Fee for the student."}),o.jsx("li",{children:"Registration Fee: â¹ 25,000 (Only for New Admission â Non-Refundable)"}),o.jsx("li",{children:"Imprest Money For New Resident Students â â¹ 20,000"})]})]}),o.jsxs("div",{className:"rounded overflow-hidden",style:C,id:"request-callback-section",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-semibold",style:{color:_n.navy,fontSize:w.titleSize,marginBottom:w.titleMargin,marginTop:"20px"},children:"Request a Call Back"}),o.jsxs("div",{className:"flex justify-center items-center",style:{width:"100%",height:"100%",marginTop:w.buttonMargin,overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:[o.jsx("style",{children:` 467 div::-webkit-scrollbar { 468 display: none; 469 } 470 `}),o.jsx("iframe",{title:"Request a Call Back",src:"https://forms.zohopublic.in/adminama1/form/requestacallback1/formperma/8EhfBlLdyP1C8aQv9wsqijv4Vq1AgbIhYTn9xd_ebhU",style:{width:"50vw",height:"1250px",border:"none",borderRadius:"12px",overflow:"auto"},scrolling:"yes",allowFullScreen:!0,loading:"lazy"})]})]})]})})}function dde(){return o.jsx("section",{className:"relative w-screen pointer-events-none",children:o.jsxs("div",{className:"relative overflow-hidden",style:{minHeight:"28vh"},children:[o.jsx("img",{src:Di.unlockBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(237,109,35,0.92)"}}),o.jsxs("div",{className:"relative mx-auto w-[92vw] py-[6vh] text-center text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-medium",style:{fontSize:"clamp(1.25rem,2.2vw,1.8rem)",marginBottom:"1vh"},children:"Unlock her future!"}),o.jsx("p",{className:"univers-regular",style:{fontSize:"clamp(0.95rem,1.1vw,1rem)",opacity:.95,marginBottom:"2vh"},children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/FEE_STRUCTURE_2025-26.pdf",className:"inline-flex items-center justify-center",target:"_blank",style:{padding:"0.9rem 1.8rem",borderRadius:"999rem",background:"#0D2347",color:"#fff",fontSize:"clamp(0.95rem,1.1vw,1rem)",zIndex:10,pointerEvents:"auto"},children:"Fee Structure"})]})]})})}function ude(){return o.jsx("section",{id:"mapSection",className:"w-screen bg-white",style:{paddingTop:"0vh",paddingBottom:"0vh"},children:o.jsx("div",{className:"mx-auto w-[100vw]",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Map",className:"w-full",style:{height:"60vh"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3428.468312073812!2d76.841!3d29.9909!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3911a9e7b137a2e3%3A0x9a2b19b0d3f4a0f2!2sAmatir%20Kanya%20Gurukul!5e0!3m2!1sen!2sin!4v1680000000000"})})})}const $2={t1:"/images/Rauktima_Royal.jpg",t2:"/images/confident-female.jpg",t4:"/images/Neha_Dhiman.png"},jn={navy:"#1C3664",orange:"#ED6D23",blueTint:"#E8EEF7",peach:"#F7EEE8",border:"rgba(0,0,0,0.08)",text:"#111827",textMuted:"#4B5563"},Li={heroDesktop:"/images/Header_ywiibp.mp4",heroMobile:"/images/375x424_lqnlmg.mp4",heroPoster:"/images/Screenshot_2025-08-28_234620_eke0em.png",heroIcon:"/images/Orange_Icon_i299iz.svg",stat1000:"/images/1000_kqkta6.svg",statPersonal:"/images/personalAttention_qajyxm.svg",stat200:"/images/200_medals_y4b9sy.svg",stat30:"/images/spacious_30_cpts76.svg",stat100:"/images/100_caring_kjseyh.svg",statRated:"/images/Rated4_5_uyx9cv.svg",g_library:"/images/Library02_w8x3om.jpg",g_hostelMess12:"/images/Candid-Happy03_wu2xkd.jpg",g_hostelMess09:"/images/Acad-School03_h41ob8.jpg",g_whatsapp:"/images/Acad-Lab19_odu4q9.jpg",g_hostelMess07:"/images/Hostel-Life04_wwi9bv.jpg",g_img20221023:"/images/BA-Music01_iljqvq.jpg",g_hostelMess02:"/images/BA-Nukkad04_i8qysl.jpg",g_hostelMess05:"/images/Assembly10_1_gklgnh.jpg",unlockBg:"/images/5a3595fd08cbede5605d612ceae4005da048dbe0_sjctvy.jpg"};function hde({isVisible:t,onClose:e}){Y({maxWidth:768}),Y({minWidth:769,maxWidth:1024}),Y({maxHeight:600}),Y({maxHeight:500});const[n,s]=T.useState({g:"",d:"",p:"",w:"",s:"",c:""});return o.jsx("div",{})}function fde(){Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const[t,e]=T.useState(!1),[n,s]=T.useState(!1),r=T.useRef(null),a=T.useRef(null),[l,c]=T.useState(!1);return T.useEffect(()=>{const u=()=>{const f=window.pageYOffset||document.documentElement.scrollTop;s(f>100)};return window.addEventListener("scroll",u),()=>window.removeEventListener("scroll",u)},[]),T.useEffect(()=>{if(!a.current)return;const u=40,f=()=>{const m=a.current.getBoundingClientRect().top+window.scrollY-u;window.scrollY>=m?c(!0):c(!1)};return window.addEventListener("scroll",f),f(),()=>window.removeEventListener("scroll",f)},[]),T.useEffect(()=>{e(!n)},[n]),o.jsxs("main",{className:"w-full overflow-x-hidden",children:[o.jsx(mde,{onShowForm:()=>e(!0),buttonRef:r,hideButton:l}),o.jsx(hde,{isVisible:t,onClose:()=>e(!1)}),o.jsx(pde,{}),o.jsx(gde,{}),o.jsx(pj,{Slides:gj}),o.jsx(xde,{}),o.jsx(yde,{touchRef:a}),o.jsx(Wp,{images:[Li.g_library,Li.g_hostelMess12,Li.g_hostelMess09,Li.g_whatsapp,Li.g_hostelMess07,Li.g_img20221023,Li.g_hostelMess02,Li.g_hostelMess05],title:"Gallery",subtitle:""}),o.jsx(bde,{}),o.jsx(vde,{})]})}function mde({onShowForm:t,buttonRef:e,hideButton:n}){const s=Y({maxWidth:768});Y({minWidth:769,maxWidth:1024}),Y({minWidth:1025}),Y({maxHeight:600}),Y({maxHeight:500}),Y({minHeight:900});const r=Y({maxWidth:1024,maxHeight:600}),a=()=>s?"center 30%":r?"center 25%":"center center";return o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",minHeight:r?"400px":"480px"},children:[o.jsxs("video",{className:"absolute inset-0 h-full w-full object-cover",playsInl
470ine:!0,autoPlay:!0,muted:!0,loop:!0,poster:Li.heroPoster,style:{objectFit:"cover",objectPosition:a()},children:[o.jsx("source",{src:Li.heroMobile,type:"video/mp4",media:"(max-width: 767px)"}),o.jsx("source",{src:Li.heroDesktop,type:"video/mp4"})]}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(0,0,0,0)_20%,#002F82_100%)]"}),o.jsx("div",{className:"relative z-10 h-full flex items-end",children:o.jsx("div",{className:"w-full px-6 sm:px-8 lg:px-10 xl:px-16 pb-8 sm:pb-12 lg:pb-16 xl:pb-20",children:o.jsxs("div",{className:"text-white max-w-4xl",children:[o.jsx("div",{className:"flex justify-start mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:Li.heroIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill font-semibold mb-4 lg:mb-6",style:{fontSize:s?"clamp(1.5rem, 6vw, 2.5rem)":"clamp(1.8rem, 3.5vw, 3.2rem)",lineHeight:1.1,textAlign:"left"},children:"Amatir Kanya Gurukul"}),o.jsx("p",{className:"univers-regular mb-6 lg:mb-8 opacity-92",style:{fontSize:s?"clamp(0.9rem, 4vw, 1.1rem)":"clamp(1rem, 1.5vw, 1.15rem)",textAlign:"left"},children:"A Heritage Residential Campus in Kurukshetra, Haryana"}),o.jsx("button",{onClick:()=>{const l=document.getElementById("request-callback-section");if(l){const u=l.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:u,behavior:"smooth"})}},ref:e,className:`fixed inline-flex items-center justify-center shadow-lg transition-transform hover:scale-105 z-[99] top-[90%] left-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-300 ease-in-out ${n?"opacity-0 pointer-events-none":"opacity-100"}`,style:{background:jn.orange,color:"#fff",padding:s?"0.8rem 1.4rem":"0.95rem 1.6rem",borderRadius:"2rem",fontSize:s?"clamp(0.9rem, 4vw, 1rem)":"clamp(0.95rem, 1.2vw, 1.05rem)"},children:"Request a Call Back"})]})})})]})}function pde(){const t=T.useMemo(()=>[{icon:Li.stat1000,bg:jn.peach,title:o.jsxs(o.Fragment,{children:["1,000+ Proud",o.jsx("br",{}),"Alumnae"]}),sub:"Trusted by families across generations."},{icon:Li.statPersonal,bg:jn.blueTint,title:o.jsxs(o.Fragment,{children:["Personal Attention",o.jsx("br",{}),"Guaranteed"]}),sub:"Low student to teacher ratio."},{icon:Li.stat200,bg:jn.peach,title:o.jsxs(o.Fragment,{children:["200+ medals in",o.jsx("br",{}),"athletics, teamwork,",o.jsx("br",{}),"and excellence."]}),sub:"Champions On and Off the Field."},{icon:Li.stat100,bg:jn.blueTint,title:o.jsxs(o.Fragment,{children:["Caring",o.jsx("br",{}),"Educators On Campus"]}
470),sub:"Experienced, full-time mentors to guide every step."},{icon:Li.stat30,bg:jn.peach,title:o.jsxs(o.Fragment,{children:["Spacious 30+ Acres of",o.jsx("br",{}),"Lush Green Campus"]}),sub:"Safe, serene, and ideal for growing minds."},{icon:Li.statRated,bg:jn.blueTint,title:o.jsxs(o.Fragment,{children:["Rated 4.5+Â Â by 400+",o.jsx("br",{}),"Parents"]}),sub:"Real reviews. Real results. Real trust."}],[]);return o.jsxs("section",{className:"w-screen bg-white",style:{paddingTop:"5rem",paddingBottom:"4rem"},children:[o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsx("h2",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:jn.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"3.5rem"},children:"Why Parents Trust Amatir"}),o.jsx("div",{className:"grid",style:{gridTemplateColumns:"repeat(3, minmax(0,1fr))",gap:"2vw"},children:t.map((e,n)=>o.jsxs("article",{className:"flex flex-col justify-between",style:{background:e.bg,borderRadius:"0.6rem",padding:"3vh 2vw",border:`0.08rem solid ${jn.border}`,minHeight:"28vh"},children:[o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center justify-center",style:{width:"3rem",height:"3rem",borderRadius:"999rem",background:"#fff",marginBottom:"2vh"},children:o.jsx("img",{src:e.icon,alt:"",style:{width:"1.6rem",height:"1.6rem"}})}),o.jsx("h3",{className:"cent-schbk-cyrill",style:{color:jn.navy,fontWeight:600,fontSize:"clamp(1.05rem,1.7vw,1.4rem)",lineHeight:1.35},children:e.title})]}),o.jsx("p",{className:"univers-regular",style:{color:jn.textMuted,fontSize:"clamp(0.9rem,1.05vw,1rem)",lineHeight:1.6,marginTop:"1.2vh"},children:e.sub})]},n))})]}),o.jsx("style",{children:` 471 @media (max-width: 900px){ 472 section .grid{ grid-template-columns: 1fr !important; } 473 section article{ min-height: 26vh !important; } 474 } 475 `})]})}function gde(){return o.jsxs("section",{className:"w-screen bg-white",style:{paddingTop:"8vh",paddingBottom:"8vh"},children:[o.jsxs("div",{className:"mx-auto grid w-[92vw] items-center md:grid-cols-2",style:{columnGap:"4vw",rowGap:"6vh"},children:[o.jsx("div",{className:"relative flex justify-center md:justify-start",children:o.jsx("div",{className:"flex justify-center items-center w-full",children:o.jsx("img",{src:"/images/Twin_Image_2_i1lcye.png",alt:"Amatir students together",style:{maxWidth:"min(54vw,46rem)",maxHeight:"min(64vh,44rem)",width:"100%",height:"auto",display:"block",margin:"0 auto",borderRadius:"1.2rem",objectFit:"contain"}})})}),o.jsxs("div",{children:[o.jsxs("h2",{className:"cent-schbk-cyrill font-semibold text-left",style:{color:jn.navy,fontSize:"clamp(1.4rem,3.2vw,2.6rem)",lineHeight:1.2,marginBottom:"2.8vh",textAlign:"left"},children:["A residential school where",o.jsx("br",{})," your daughter grows with",o.jsx("br",{})," values and confidence."]}),o.jsx("p",{className:"univers-regular text-left",style:{fontSize:"clamp(0.95rem,1.15vw,1.06rem)",lineHeight:1.8,color:jn.text,maxWidth:"60ch",textAlign:"justify"},children:"At Amatir Kanya Gurukul, your daughter will grow in a safe, all-girls campus that feels just like home. From the very first day, sheâll learn the values of discipline, independence, and Indian culture in a nurturing environment. Our balanced approach ensures that she excels not only in academics, but also in sports and the arts. Along the way, sheâll develop strong leadership qualities, confidence, and the ability to communicate clearly â skills that will support her throughout life."})]})]}),o.jsx("style",{children:` 476 @media (max-width: 980px){ 477 .md\\:grid-cols-2{ grid-template-columns: 1fr !important; } 478 } 479 `})]})}function xde(){const t=({children:a})=>o.jsx("div",{className:"mx-auto",style:{width:"min(92vw, 72rem)"},children:a}),e="font-['CentSchbkCyrill_BT:Roman',_serif]",n=Y({maxWidth:768}),s=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025}),Y({maxWidth:1024}),Y({maxHeight:600});const r=T.useMemo(()=>[{name:"Neha Dhiman",role:"Teacher",photo:$2.t4,highlight:"Empowering Life Skills",sign:"_Ms. Neha Dhiman",category:"Educator - Home Science",details:"We teach Home Science not just as a subject, but as 'Gastronomy'âthe art of living. Under the Learning to Do pillar, I mentor girls to blend scientific nutrition with traditional values. It is rewarding to see them evolve into independent, creative thinkers who take ownership of their health and environment."}
479,{name:"Shubhangi Gupta",role:"Parent",photo:$2.t2,highlight:"Security and Holistic Growth",sign:"_Shubhangi Gupta",category:"Parent",details:"The Samrakshika system gave us immediate peace of mind regarding safety. Beyond the low student-teacher ratio, seeing our daughter balance rigorous JEE prep with Atma Dhyan meditation proves that Amatir nurtures the soul as much as the mind. Itâs the best investment weâve made for her future."},{name:"Rauktima Royal, Delhi University",role:"Alumna",photo:$2.t1,highlight:"Prepared for the Real World",sign:"_Rauktima Royal",category:"Alumna - Currently at Delhi University",details:"Amatir gave me more than just the academic edge to crack CUET and enter DU; it gave me the mental discipline of Inner Engineering. While university life is fast-paced, the grounded values and self-reliance I gained at the Gurukul keep me focused and ahead of the curve."}],[]);return o.jsxs("section",{className:"w-screen bg-white",style:{paddingTop:"0vh",paddingBottom:"8vh"},children:[o.jsx("div",{className:"mx-auto grid items-start",children:o.jsx("div",{className:"relative",children:o.jsxs("section",{className:"bg-[#f8f9fbcc]",style:{paddingTop:"7vh",paddingBottom:"1vh"},children:[o.jsx("div",{style:{marginBottom:"10vh"},children:o.jsx("h2",{className:"unvers-regular cent-schbk-cyrill font-semibold leading-[1.1]",style:{color:jn.navy,fontSize:"clamp(1.6rem,3.6vw,3rem)"},children:"In Their Own Words"})}),o.jsx(t,{children:o.jsx("div",{className:"relative mt-[4vh]",children:o.jsx("div",{className:"overflow-hidden",children:o.jsx("div",{className:"grid transition-transform duration-500 ease-out mb-12",style:{"--gap":n?"1rem":s?"1.2rem":"clamp(0.9rem,1.2rem,1.2rem)",gridAutoFlow:"column",gridAutoColumns:"calc((100% - (2 * var(--gap))) / 3)",columnGap:"var(--gap)"},children:r.map((a,l)=>o.jsxs("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md bg-white text-[#1C3664] transition-all duration-500 hover:shadow-2xl hover:-translate-y-1 cursor-pointer",style:{minWidth:0},children:[o.jsxs("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"132%"},children:[o.jsx("img",{src:a.photo,alt:a.name,className:"absolute inset-0 h-full w-full object-cover transition-all duration-500 group-hover:scale-110"}),o.jsxs("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0E2349]/95 to-[#0E2349]/90 text-white opacity-0 group-hover:opacity-100 transition-all duration-500 flex flex-col justify-center p-6 transform translate-y-2 group-hover:translate-y-0",children:[o.jsx("h5",{className:`${e} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:a.highlight}),o.jsx("p",{className:"mb-4 text-center",style:{fontSize:"clamp(0.765rem,0.855vw,0.95rem)",lineHeight:1.6},children:a.details}),o.jsx("h5",{className:`${e} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:a.sign}),o.jsx("p",{className:"mb-4 text-center",style:{whiteSpace:"pre-line",fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:a.category}),o.jsxs("div",{className:"mt-auto space-y-2 text-center",children:[o.jsx("p",{className:"text-sm opacity-90",children:a.email}),o.jsx("p",{className:"text-sm opacity-90",children:a.phone})]})]})]}),o.jsxs("div",{className:"px-[1rem] pb-[1rem] pt-[0.9rem] text-left bg-white",children:[o.jsx("h5",{className:`${e} font-[500] text-[#1C3664]`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:a.name}),o.jsx("p",{className:"text-[#3a2323] mt-1",style:{fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:a.role})]})]},a.name+l))})})})})]})})}),o.jsx("style",{children:` 480 @media (max-width: 980px){ 481 section .mx-auto.grid{ grid-template-columns: 1fr !important; row-gap: 6vh; } 482 section figure[aria-label="card"]{ width: 88vw !important; height: 46vh !important; } 483 } 484 `})]})}function yde({touchRef:t}){const e=Y({maxWidth:768}),n=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025});const s=Y({maxHeight:600}),r=Y({maxHeight:500}),[a,l]=T.useState({g:"",d:"",p:"",w:"",s:"",c:""}),c=()=>r?{paddingTop:"3vh",paddingBottom:"3vh"}:s?{paddingTop:"4vh",paddingBottom:"4vh"}:e?{paddingTop:"5vh",paddingBottom:"5vh"}:n?{paddingTop:"6vh",paddingBottom:"6vh"}:{paddingTop:"7vh",paddingBottom:"7vh"},u=()=>e?{columnGap:"0",rowGap:"4vh"}:n?{columnGap:"1vw",rowGap:"3vh"}:{columnGap:"1vw",rowGap:"4vh"},f=()=>e?{width:"100%",padding:"2vh 2vw",titleSize:"clamp(0.9rem, 4vw, 1rem)",amountSize:"clamp(1.1rem, 5vw, 1.3rem)",quarterSize:"clamp(0.8rem, 3.5vw, 0.9rem)",marginBottom:"1.5vh"}:n?{width:"calc(50% - 0.5vw)",padding:"1.8vh 1.8vw",titleSize:"clamp(1rem, 1.6vw, 1.1rem)",amountSize:"clamp(1.2rem, 2vw, 1.4rem)",quarterSize:"clamp(0.85rem, 1.2vw, 0.95rem)",marginBottom:"1.2vh"}:{width:"calc(50% - 0.5vw)",padding:"1.6vh 1.6vw",titleSize:"clamp(1.05rem, 1.4vw, 1.2rem)",amountSize:"clamp(1.3rem, 1.4vw, 1.6rem)",quarterSize:"clamp(0.9rem, 1vw, 0.95rem)",marginBottom:"3vh"},m=()=>r?{padding:"2vh 2vw",titleSize:"clamp(1rem, 3vw, 1.2rem)",titleMargin:"1.5vh",gap:"1.2vh",inputSize:"clamp(0.8rem, 2.5vw, 0.9rem)",labelSize:"clamp(0.75rem, 2vw, 0.85rem)",inputPadding:"0.7rem 1rem",labelMargin:"0.5vh",buttonPadding:"0.7rem 1.4rem",buttonSize:"clamp(0.8rem, 2.5vw, 0.9rem)",buttonMargin:"1vh"}:s?{padding:"2.5vh 2.2vw",titleSize:"clamp(1.1rem, 3.5vw, 1.3rem)",titleMargin:"1.8vh",gap:"1.4vh",inputSize:"clamp(0.85rem, 2.8vw, 0.95rem)",labelSize:"clamp(0.8rem, 2.2vw, 0.9rem)",inputPadding:"0.8rem 1.1rem",labelMargin:"0.6vh",buttonPadding:"0.8rem 1.6rem",buttonSize:"clamp(0.85rem, 2.8vw, 0.95rem)",buttonMargin:"1.2vh"}:e?{padding:"3vh 2.5vw",titleSize:"clamp(1.2rem, 4vw, 1.4rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.9rem, 3.5vw, 1rem)",labelSize:"clamp(0.85rem, 3vw, 0.95rem)",inputPadding:"0.9rem 1.2rem",labelMargin:"0.7vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.9rem, 3.5vw, 1rem)",buttonMargin:"1.4vh"}:n?{padding:"3.5vh 2.5vw",titleSize:"clamp(1.3rem, 2.2vw, 1.5rem)",titleMargin:"2.2vh",gap:"1.8vh",inputSize:"clamp(0.95rem, 1.3vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.1vw, 1rem)",inputPadding:"1rem 1.3rem",labelMargin:"0.8vh",buttonPadding:"1rem 2rem",buttonSize:"clamp(0.95rem, 1.3vw, 1.05rem)",buttonMargin:"1.6vh"}:{padding:"3vh 2.2vw",titleSize:"clamp(1.3rem, 1.8vw, 1.6rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.95rem, 1.1vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.05vw, 1rem)",inputPadding:"1rem 1.2rem",labelMargin:"0.6vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.95rem, 1.1vw, 1.05rem)",buttonMargin:"1.2vh"},g=()=>e?{padding:"2vh 2vw",maxWidth:"100%",titleSize:"clamp(0.9rem, 4vw, 1rem)",titleMargin:"1.2vh",textSize:"clamp(0.8rem, 3.5vw, 0.9rem)",lineHeight:1.7,marginBottom:"2vh"}:n?{padding:"1.8vh 1.8vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.2vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.85rem, 1.1vw, 0.95rem)",lineHeight:1.75,marginBottom:"1.8vh"}:{padding:"1.6vh 1.6vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.05vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.9rem, 1.02vw, 0.98rem)",lineHeight:1.8,marginBottom:"2vh"},x=c(),b=u(),v=f(),w=m(),N=g(),_=({title:M,amt:O,perQtr:P})=>o.jsxs("div",{className:"rounded",style:{background:jn.peach,border:`0.08rem solid ${jn.border}`,padding:v.padding,width:v.width,marginBottom:v.marginBottom},children:[o.jsx("div",{className:"univers-regular text-[#4b5b7a]",style:{fontSize:v.titleSize,marginBottom:"0.8vh"},children:M}),o.jsx("div",{className:"univers-regular font-semibold",style:{color:jn.navy,fontSize:v.amountSize},children:O}),o.jsx("div",{className:"univers-regular mt-[0.6vh]",style:{color:jn.textMuted,fontSize:v.quarterSize},children:P})]}),E={...x,height:"auto"},k={background:"white",border:`0.08rem solid ${jn.border}`,padding:N.padding,maxWidth:N.maxWidth,marginBottom:N.marginBottom,width:"100%"},C={background:"#E5EAF2",border:`0.08rem solid ${jn.border}`,padding:w.padding,width:"100%"},A={backgroundColor:"#FDF0E9",border:`0.08rem solid ${jn.border}`,padding:v.padding,width:v.width,marginBottom:v.marginBottom},L={background:"#E5EAF2",border:`0.08rem solid ${jn.border}`,padding:v.padding,width:v.width,marginBottom:v.marginBottom};return o.jsx("section",{className:"w-screen bg-white",style:E,children:o.jsxs("div",{className:"mx-auto grid",style:{columnGap:b.columnGap,rowGap:b.rowGap,justifyContent:"center"},children:[o.jsx("h2",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:jn.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"2.5rem"},children:"Fee Structure"}),o.jsx("div",{className:"flex gap-10",style:{rowGap:e?"3vh":"2vh"},ref:t,children:o.jsxs("div",{className:"residential",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-semibold mb-4 lg:mb-4",style:{fontSize:e?"clamp(1.5rem, 6vw, 2.5rem)":"clamp(1.8rem, 2.5vw, 3.2rem)",lineHeight:1.1,textAlign:"left",color:jn.navy},children:"Residential:"}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-1vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(_,{title:"Grade III to V",amt:"Rs. 2,60,000 / Year",perQtr:"Rs. 65,000 / quarter",style:A}),o.jsx(_,{className:"bg-[#E5EAF2]",title:"Grade VI to VIII",amt:"Rs. 2,64,000 / Year",perQtr:"Rs. 66,000 / quarter",style:L})]}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-3vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(_,{title:"Grade IX to X",amt:"Rs. 2,69,400 / Year",perQtr:"Rs. 67,350 / quarter",style:L}),o.jsx(_,{title:"Grade XI to XII",amt:"Rs. 2,83,200 / Year",perQtr:"Rs. 70,800 / quarter",style:A})]})]})}),o.jsxs("div",{className:"",style:k,children:[o.jsx("div",{className:"univers-regular font-semibold",style:{fontSize:N.titleSize,marginBottom:N.titleMargin,textAlign:"left"},children:"Note:"}
484),o.jsxs("ul",{className:"univers-regular list-disc pl-[1.2rem]",style:{color:jn.textMuted,fontSize:N.textSize,lineHeight:N.lineHeight,textAlign:"left"},children:[o.jsx("li",{children:"Inclusive of School and Hostel Fee for the student."}),o.jsx("li",{children:"Registration Fee: â¹ 25,000 (Only for New Admission â Non-Refundable)"}),o.jsx("li",{children:"Imprest Money For New Resident Students â â¹ 20,000"})]})]}),o.jsxs("div",{className:"rounded overflow-hidden",style:C,id:"request-callback-section",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-semibold",style:{color:jn.navy,fontSize:w.titleSize,marginBottom:w.titleMargin,marginTop:"20px"},children:"Request a Call Back"}),o.jsxs("div",{className:"flex justify-center items-center",style:{width:"100%",height:"100%",marginTop:w.buttonMargin,overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:[o.jsx("style",{children:` 485 div::-webkit-scrollbar { 486 display: none; 487 } 488 `}),o.jsx("iframe",{title:"Request a Call Back meta form","aria-label":"request callback_meta",frameborder:"0",style:{width:"50vw",height:"1250px",border:"none",borderRadius:"12px",overflow:"auto"},scrolling:"yes",allowFullScreen:!0,loading:"lazy",src:"https://forms.zohopublic.in/adminama1/form/requestcallbackmeta/formperma/YxsbMPcH8N9bSukz2JouzEC4yUWtmTiOUWqfoRreKPU"})]})]})]})})}function bde(){return o.jsx("section",{className:"relative w-screen pointer-events-none",children:o.jsxs("div",{className:"relative overflow-hidden",style:{minHeight:"28vh"},children:[o.jsx("img",{src:Li.unlockBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(237,109,35,0.92)"}}),o.jsxs("div",{className:"relative mx-auto w-[92vw] py-[6vh] text-center text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-medium",style:{fontSize:"clamp(1.25rem,2.2vw,1.8rem)",marginBottom:"1vh"},children:"Unlock her future!"}),o.jsx("p",{className:"univers-regular",style:{fontSize:"clamp(0.95rem,1.1vw,1rem)",opacity:.95,marginBottom:"2vh"},children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/FEE_STRUCTURE_2025-26.pdf",className:"inline-flex items-center justify-center",target:"_blank",style:{padding:"0.9rem 1.8rem",borderRadius:"999rem",background:"#0D2347",color:"#fff",fontSize:"clamp(0.95rem,1.1vw,1rem)",zIndex:10,pointerEvents:"auto"},children:"Fee Structure"})]})]})})}function vde(){return o.jsx("section",{id:"mapSection",className:"w-screen bg-white",style:{paddingTop:"0vh",paddingBottom:"0vh"},children:o.jsx("div",{className:"mx-auto w-[100vw]",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Map",className:"w-full",style:{height:"60vh"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3428.468312073812!2d76.841!3d29.9909!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3911a9e7b137a2e3%3A0x9a2b19b0d3f4a0f2!2sAmatir%20Kanya%20Gurukul!5e0!3m2!1sen!2sin!4v1680000000000"})})})}const U2="#0E2349",_a="#ED6D23",wde=()=>{const[t,e]=T.useState({email:"",password:""}),[n,s]=T.useState(!1),r=Y({maxWidth:767}),a=Y({minWidth:768,maxWidth:1023});Y({minWidth:1024});const l=u=>{const{name:f,value:m}=u.target;e(g=>({...g,[f]:m}))},c=async u=>{u.preventDefault(),s(!0),setTimeout(()=>{s(!1),alert("Login functionality would be implemented here")},1e3)};return o.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"max-w-md w-full space-y-8",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("h2",{className:`cent-schbk-cyrill ${r?"text-2xl":a?"text-3xl":"text-4xl"}`,style:{color:U2,marginTop:"4rem"},children:"Parent Login"}),o.jsx("p",{className:`mt-2 univers-regular ${r?"text-sm":"text-base"} text-gray-600`,children:"Access your child's academic information and school updates"})]}),o.jsxs("form",{className:"mt-8 space-y-6",onSubmit:c,children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"email",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Email Address"}),o.jsx("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,value:t.email,onChange:l,className:"appearance-none relative block w-full px-4 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 focus:z-10 univers-regular text-sm transition-colors",style:{focusRingColor:_a,"--tw-ring-color":_a},placeholder:"Enter your email address"})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"password",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Password"}),o.jsx("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,value:t.password,onChange:l,className:"appearance-none relative block w-full px-4 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 focus:z-10 univers-regular text-sm transition-colors",style:{focusRingColor:_a,"--tw-ring-color":_a},placeholder:"Enter your password"})]})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("input",{id:"remember-me",name:"remember-me",type:"checkbox",className:"h-4 w-4 roun
488ded border-gray-300 focus:ring-2 focus:ring-offset-2",style:{focusRingColor:_a,"--tw-ring-color":_a}}),o.jsx("label",{htmlFor:"remember-me",className:"ml-2 block text-sm univers-regular text-gray-700",children:"Remember me"})]}),o.jsx("div",{className:"text-sm",children:o.jsx("a",{href:"#",className:"univers-regular font-medium hover:underline transition-colors",style:{color:_a},children:"Forgot your password?"})})]}),o.jsx("div",{children:o.jsx("button",{type:"submit",disabled:n,className:"group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm univers-regular font-medium rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-offset-2 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:_a,focusRingColor:_a,"--tw-ring-color":_a},children:n?o.jsxs("div",{className:"flex items-center",children:[o.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Signing in..."]}):"Sign In"})}),o.jsx("div",{className:"text-center",children:o.jsxs("p",{className:"text-sm univers-regular text-gray-600",children:["Don't have an account?"," ",o.jsx("a",{href:"#",className:"font-medium hover:underline transition-colors",style:{color:_a},children:"Contact the school"})]})})]}),o.jsxs("div",{className:"mt-8 p-4 rounded-lg",style:{backgroundColor:`${U2}10`},children:[o.jsx("h3",{className:"text-sm univers-regular font-medium mb-2",style:{color:U2},children:"Need Help?"}),o.jsx("p",{className:"text-xs univers-regular text-gray-600 mb-3",children:"If you're having trouble accessing your account, please contact the school administration."}),o.jsxs("div",{className:"space-y-1",children:[o.jsxs("p",{className:"text-xs univers-regular text-gray-600",children:[o.jsx("span",{className:"font-medium",children:"Email:"})," [email protected]"]}),o.jsxs("p",{className:"text-xs univers-regular text-gray-600",children:[o.jsx("span",{className:"font-medium",children:"Phone:"})," +91 7027570124"]})]})]})]})})},u0="#0E2349",oi="#ED6D23",Nde=()=>{const[t,e]=T.useState({name:"",email:"",phone:"",childName:"",grade:"",message:""}),[n,s]=T.useState(!1),r=Y({maxWidth:767}),a=Y({minWidth:768,maxWidth:1023});Y({minWidth:1024});const l=u=>{const{name:f,value:m}=u.target;e(g=>({...g,[f]:m}))},c=async u=>{u.preventDefault(),s(!0),setTimeout(()=>{s(!1),alert("Thank you for your enquiry! We will get back to you soon."),e({name:"",email:"",phone:"",childName:"",grade:"",message:""})},1e3)};return o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${r?"text-3xl":a?"text-4xl":"text-5xl"}`,style:{color:u0},children:"Enquire Now"}),o.jsx("p",{className:`univers-regular text-gray-600 max-w-2xl mx-auto ${r?"text-base":"text-lg"}`,children:"Get in touch with us to learn more about Amatir Kanya Gurukul and how we can help your child's educational journey."})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[o.jsx("h2",{className:`cent-schbk-cyrill mb-6 ${r?"text-2xl":"text-3xl"}`,style:{color:u0,fontSize:"2.5rem"},children:"Send us a Message"}),o.jsxs("form",{onSubmit:c,className:"space-y-6",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-1 gap-6 text-left",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"name",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Parent/Guardian Name *"}),o.jsx("input",{type:"text",id:"name",name:"name",required:!0,value:t.name,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:oi,"--tw-ring-color":oi},placeholder:"Your full name"})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"email",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Email Address *"}),o.jsx("input",{type:"email",id:"email",name:"email",required:!0,value:t.email,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:oi,"--tw-ring-color":oi},placeholder:"[email protected]"})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-1 gap-6",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"phone",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Phone Number *"}),o.jsx("input",{type:"tel",id:"phone",name:"phone",required:!0,value:t.phone,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:oi,"--tw-ring-color":oi},placeholder:"+91 9876543210"})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"childName",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Child's Name"}),o.jsx("input",{type:"text",id:"childName",name:"childName",value:t.childName,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:oi,"--tw-ring-color":oi},placeholder:"Child's full name"})]})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"grade",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Interested Grade/Class"}
488),o.jsxs("select",{id:"grade",name:"grade",value:t.grade,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:oi,"--tw-ring-color":oi},children:[o.jsx("option",{value:"",children:"Select Grade"}),o.jsx("option",{value:"nursery",children:"Nursery"}),o.jsx("option",{value:"lkg",children:"LKG"}),o.jsx("option",{value:"ukg",children:"UKG"}),o.jsx("option",{value:"3",children:"Class 3"}),o.jsx("option",{value:"4",children:"Class 4"}),o.jsx("option",{value:"5",children:"Class 5"}),o.jsx("option",{value:"6",children:"Class 6"}),o.jsx("option",{value:"7",children:"Class 7"}),o.jsx("option",{value:"8",children:"Class 8"}),o.jsx("option",{value:"9",children:"Class 9"}),o.jsx("option",{value:"10",children:"Class 10"}),o.jsx("option",{value:"11",children:"Class 11"}),o.jsx("option",{value:"12",children:"Class 12"})]})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"message",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Message"}),o.jsx("textarea",{id:"message",name:"message",rows:4,value:t.message,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors resize-none",style:{focusRingColor:oi,"--tw-ring-color":oi},placeholder:"Tell us more about your enquiry..."})]}),o.jsx("button",{type:"submit",disabled:n,className:"w-full py-3 px-4 border border-transparent text-sm univers-regular font-medium rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-offset-2 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:oi,focusRingColor:oi,"--tw-ring-color":oi},children:n?"Sending...":"Send Enquiry"})]})]}),o.jsxs("div",{className:"space-y-8",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[o.jsx("h3",{className:`font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] mb-6 ${r?"text-xl":"text-2xl"}`,style:{color:u0},children:"Contact Information"}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-start space-x-4",children:[o.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:`${oi}20`},children:o.jsx("svg",{className:"w-5 h-5",style:{color:oi},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] font-medium text-gray-900",children:"Email"}),o.jsx("p",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600",children:"[email protected]"})]})]}),o.jsxs("div",{className:"flex items-start space-x-4",children:[o.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:`${oi}20`},children:o.jsx("svg",{className:"w-5 h-5",style:{color:oi},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] font-medium text-gray-900",children:"Phone"}),o.jsx("p",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600",children:"+91 7027570124"})]})]}),o.jsxs("div",{className:"flex items-start space-x-4",children:[o.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:`${oi}20`},children:o.jsxs("svg",{className:"w-5 h-5",style:{color:oi},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] font-medium text-gray-900",children:"Address"}),o.jsxs("p",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600 text-left",children:["Amatir Kanya Gurukul, Bachgaon Gamri,",o.jsx("br",{}),"Lukhi Road, Kurukshetra,",o.jsx("br",{}),"Haryana 136119"]})]})]})]})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[o.jsx("h3",{className:`univers-regular mb-4 ${r?"text-xl":"text-2xl"}`,style:{color:u0},children:"Why Choose Amatir?"}),o.jsxs("ul",{className:"space-y-3 font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600",children:[o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Holistic education focusing on academic excellence and character development"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Experienced and dedicated teaching faculty"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}
488),o.jsx("span",{children:"Modern facilities and infrastructure"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Safe and nurturing environment for girls"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Co-curricular activities and sports programs"})]})]})]})]})]})]})})},ja="#0E2349",u6="#ED6D23",Sde=()=>{const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023});return Y({minWidth:1024}),o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8 mt-15",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${t?"text-3xl":e?"text-4xl":"text-5xl"}`,style:{color:ja},children:"Privacy Policy"}),o.jsx("p",{className:`univers-regular text-gray-600 ${t?"text-sm":"text-base"} hidden`,children:"Last updated: January 2024"})]}),o.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 md:p-12",children:o.jsx("div",{className:"prose prose-lg max-w-none",children:o.jsxs("div",{className:"space-y-8",children:[o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"1. Introduction"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:'Amatir Kanya Gurukul ("we," "our," or "us") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website or use our services.'})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"2. Information We Collect"}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:u6},children:"Personal Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We may collect personal information that you voluntarily provide to us, including:"}),o.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 univers-regular text-gray-700",children:[o.jsx("li",{children:"Name and contact information (email, phone number, address)"}),o.jsx("li",{children:"Student information (name, grade, academic records)"}),o.jsx("li",{children:"Parent/guardian information"}),o.jsx("li",{children:"Payment and billing information"}),o.jsx("li",{children:"Communication preferences"})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:u6},children:"Automatically Collected Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We may automatically collect certain information about your device and usage, including:"}),o.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 univers-regular text-gray-700",children:[o.jsx("li",{children:"IP address and browser information"}),o.jsx("li",{children:"Pages visited and time spent on our website"}),o.jsx("li",{children:"Device information and operating system"}),o.jsx("li",{children:"Cookies and similar tracking technologies"})]})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"3. How We Use Your Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"We use the information we collect for various purposes, including:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Providing and maintaining our educational services"}),o.jsx("li",{children:"Processing admissions and enrollment"}),o.jsx("li",{children:"Communicating with parents and students"}),o.jsx("li",{children:"Managing academic records and progress"}),o.jsx("li",{children:"Processing payments and billing"}),o.jsx("li",{children:"Improving our website and services"}),o.jsx("li",{children:"Complying with legal obligations"}),o.jsx("li",{children:"Sending important updates and announcements"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"4. Information Sharing and Disclosure"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"We do not sell, trade, or rent your personal information to third parties. We may share your information in the following circumstances:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"With your explicit consent"}),o.jsx("li",{children:"To comply with legal requirements or court orders"}),o.jsx("li",{children:"To protect our rights, property, or safety"}),o.jsx("li",{children:"With trusted service providers who assist in our operations"}),o.jsx("li",{children:"In case of a merger, acquisition, or sale of assets"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"5. Data Security"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We implement appropriate technical and organizational measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet or electronic storage is 100% secure."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"6. Your Rights"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"You have certain rights regarding your personal information:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Access and review your personal information"}),o.jsx("li",{children:"Request correction of inaccurate information"}
488),o.jsx("li",{children:"Request deletion of your personal information"}),o.jsx("li",{children:"Object to processing of your information"}),o.jsx("li",{children:"Withdraw consent where applicable"}),o.jsx("li",{children:"Data portability rights"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"7. Cookies and Tracking Technologies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We use cookies and similar tracking technologies to enhance your experience on our website. You can control cookie settings through your browser preferences. Please refer to our Cookie Policy for more detailed information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"8. Children's Privacy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We are committed to protecting the privacy of children. We collect personal information from children only with parental consent and in accordance with applicable laws. Parents have the right to review, delete, or refuse further collection of their child's information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"9. Changes to This Privacy Policy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:'We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page and updating the "Last updated" date. We encourage you to review this Privacy Policy periodically.'})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ja},children:"10. Contact Us"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"If you have any questions about this Privacy Policy or our privacy practices, please contact us:"}),o.jsx("div",{className:"bg-gray-50 p-6 rounded-lg",children:o.jsxs("div",{className:"space-y-2 univers-regular text-gray-700",children:[o.jsxs("p",{children:[o.jsx("strong",{children:"Email:"})," [email protected]"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Phone:"})," +91 7027570124"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Address:"})," Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"]})]})})]})]})})})]})})},rr="#0E2349",_de=()=>{const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023});return Y({minWidth:1024}),o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8 mt-15",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${t?"text-3xl":e?"text-4xl":"text-5xl"}`,style:{color:rr},children:"Terms of Service"}),o.jsx("p",{className:`univers-regular text-gray-600 ${t?"text-sm":"text-base"} hidden`,children:"Last updated: January 2024"})]}),o.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 md:p-12",children:o.jsx("div",{className:"prose prose-lg max-w-none",children:o.jsxs("div",{className:"space-y-8",children:[o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"1. Acceptance of Terms"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"By accessing and using the Amatir Kanya Gurukul website and services, you accept and agree to be bound by the terms and provision of this agreement. If you do not agree to abide by the above, please do not use this service."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"2. Use License"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"Permission is granted to temporarily download one copy of the materials on Amatir Kanya Gurukul's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may
488not:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Modify or copy the materials"}),o.jsx("li",{children:"Use the materials for any commercial purpose or for any public display"}),o.jsx("li",{children:"Attempt to reverse engineer any software contained on the website"}),o.jsx("li",{children:"Remove any copyright or other proprietary notations from the materials"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"3. Educational Services"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Amatir Kanya Gurukul provides educational services including but not limited to:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Academic instruction and curriculum delivery"}),o.jsx("li",{children:"Student assessment and evaluation"}),o.jsx("li",{children:"Co-curricular activities and programs"}),o.jsx("li",{children:"Boarding facilities and residential care"}),o.jsx("li",{children:"Parent communication and reporting"})]}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"All educational services are subject to the school's academic policies, admission criteria, and disciplinary procedures as outlined in the school handbook."})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"4. User Accounts and Responsibilities"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"When creating an account or using our services, you agree to:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Provide accurate, current, and complete information"}),o.jsx("li",{children:"Maintain and update your information to keep it accurate"}),o.jsx("li",{children:"Maintain the security of your password and account"}),o.jsx("li",{children:"Accept responsibility for all activities under your account"}),o.jsx("li",{children:"Notify us immediately of any unauthorized use of your account"})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"5. Payment Terms"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Payment terms for school fees and other charges:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"All fees are due as per the school's fee structure and schedule"}),o.jsx("li",{children:"Late payment charges may apply for overdue amounts"}),o.jsx("li",{children:"Refund policies are subject to school regulations and applicable laws"}),o.jsx("li",{children:"Payment methods accepted include bank transfers, cheques, and online payments"}),o.jsx("li",{children:"Fee structure may be revised with prior notice to parents/guardians"})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"6. Prohibited Uses"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"You may not use our website or services:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"For any unlawful purpose or to solicit others to perform unlawful acts"}),o.jsx("li",{children:"To violate any international, federal, provincial, or state regulations, rules, laws, or local ordinances"}),o.jsx("li",{children:"To infringe upon or violate our intellectual property rights or the intellectual property rights of others"}),o.jsx("li",{children:"To harass, abuse, insult, harm, defame, slander, disparage, intimidate, or discriminate"}),o.jsx("li",{children:"To submit false or misleading information"}),o.jsx("li",{children:"To upload or transmit viruses or any other type of malicious code"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"7. Privacy and Data Protection"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Your privacy is important to us. Please review our Privacy Policy, which also governs your use of the website, to understand our practices. We are committed to protecting student privacy and complying with applicable data protection laws."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"8. Intellectual Property Rights"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"The website and its original content, features, and functionality are and will remain the exclusive property of Amatir Kanya Gurukul and its licensors. The website is protected by copyright, trademark, and other laws. Our trademarks and trade dress may not be used in connection with any product or service without our prior written consent."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"9. Limitation of Liability"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"In no event shall Amatir Kanya Gurukul, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your use of the website or services."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"10. Termination"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We may terminate or suspend your account and bar access to the website immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever and without limitation, including but not limited to a breach of the Terms."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"11. Governing Law"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"These Terms shall be interpreted and governed by the laws of India. Any disputes arising from these terms or the use of our services shall be subject to the jurisdiction of the courts in Kurukshetra, Haryana."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"12. Changes to Terms"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material, we will provide at least 30 days notice prior to any new terms taking effect. Your continued use of the website after any such changes constitutes your acceptance of the new Terms."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:rr},children:"13. Contact Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"If you have any questions about these Terms of Service, please contact us:"}),o.jsx("div",{className:"bg-gray-50 p-6 rounded-lg",children:o.jsxs("div",{className:"space-y-2 univers-regular text-gray-700",children:[o.jsxs("p",{children:[o.jsx("strong",{children:"Email:"})," [email protected]"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Phone:"})," +91 7027570124"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Address:"})," Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"]})]})})]})]})})})]})})},Ea="#0E2349",Ll="#ED6D23",jde=()=>{const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023});return Y({minWidth:1024}),o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8 mt-15",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${t?"text-3xl":e?"text-4xl":"text-5xl"}`,style:{color:Ea},children:"Cookie Policy"}),o.jsx("p",{className:`univers-regular text-gray-600 ${t?"text-sm":"text-base"} hidden`,children:"Last updated: January 2024"})]}),o.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 md:p-12",children:o.jsx("div",{className:"prose prose-lg max-w-none",children:o.jsxs("div",{className:"space-y-8",children:[o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"1. What Are Cookies?"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Cookies are small text files that are placed on your computer or mobile device when you visit a website. They are widely used to make websites work more efficiently and to provide information to website owners. Cookies allow a website to re
488cognize a user's device and remember information about their visit."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"2. How We Use Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"Amatir Kanya Gurukul uses cookies for several purposes:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"To ensure our website functions properly"}),o.jsx("li",{children:"To remember your preferences and settings"}),o.jsx("li",{children:"To analyze how visitors use our website"}),o.jsx("li",{children:"To improve user experience and website performance"}),o.jsx("li",{children:"To provide personalized content and features"}),o.jsx("li",{children:"To maintain security and prevent fraud"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"3. Types of Cookies We Use"}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Essential Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies are necessary for the website to function properly. They enable basic functions like page navigation, access to secure areas, and remembering your login status."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Session cookies, authentication cookies, security cookies"]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Performance Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies collect information about how visitors use our website, such as which pages are visited most often and if visitors get error messages. This helps us improve how our website works."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Google Analytics cookies, website performance monitoring"]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Functionality Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies allow the website to remember choices you make and provide enhanced, more personal features. They may also be used to provide services you have requested."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Language preferences, font size settings, form data"]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Marketing Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies are used to track visitors across websites to display relevant and engaging advertisements. They help us measure the effectiveness of our marketing campaigns."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Social media tracking, advertising network cookies"]})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"4. Cookie Duration"}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Session Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"These cookies are temporary and are deleted when you close your browser. They are used to maintain your session while you navigate through our website."})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Persistent Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"These cookies remain on your device for a set period or until you delete them. They help us recognize you when you return to our website and remember your preferences."})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"5. Third-Party Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"Some cookies on our website are set by third-party services that appear on our pages. These may include:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Google Analytics for website analytics"}),o.jsx("li",{children:"Social media platforms for sharing content"}),o.jsx("li",{children:"Payment processors for online transactions"}),o.jsx("li",{children:"Content delivery networks for faster loading"})]}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mt-4",children:"We do not control these third-party cookies. Please refer to their respective privacy policies for more information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"6. Managing Your Cookie Preferences"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"You have several options for managing cookies:"}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Browser Settings"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"Most web browsers allow you to control cookies through their settings. You can:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-1 univers-regular text-gray-700",children:[o.jsx("li",{children:"Block all cookies"}),o.jsx("li",{children:"Block third-party cookies only"}),o.jsx("li",{children:"Delete existing cookies"}),o.jsx("li",{children:"Set preferences for specific websites"})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Ll},children:"Cookie Consent"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"When you first visit our website, you may see a cookie consent banner. You can choose which types of cookies to accept or reject. You can change your preferences at any time by clicking the cookie settings link in our website footer."})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"7. Impact of Disabling Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"If you choose to disable cookies, some features of our website may not function properly. This may include:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700 mt-4",children:[o.jsx("li",{children:"Inability to stay logged in to your account"}),o.jsx("li",{children:"Loss of personalized settings and preferences"}),o.jsx("li",{children:"Reduced website functionality and performance"}),o.jsx("li",{children:"Inability to access certain secure areas"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"8. Children's Privacy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We are committed to protecting the privacy of children. We do not knowingly collect personal information from children under 13 through cookies without parental consent. Parents can contact us to review, delete, or refuse further collection of their child's information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"9. Updates to This Policy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:'We may update this Cookie Policy from time to time to reflect changes in our practices or for other operational, legal, or regulatory reasons. We will notify you of any material changes by posting the updated policy on our website with a new "Last updated" date.'})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ea},children:"10. Contact Us"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"If you have any questions about our use of cookies or this Cookie Policy, please contact us:"}),o.jsx("div",{className:"bg-gray-50 p-6 rounded-lg",children:o.jsxs("div",{className:"space-y-2 univers-regular text-gray-700",children:[o.jsxs("p",{children:[o.jsx("strong",{children:"Email:"})," [email protected]"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Phone:"})," +91 7027570124"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Address:"})," Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"]})]})})]})]})})})]})})},h6=()=>(T.useEffect(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"conversion",conversion_id:"AW-11417662198/ABPrCJu87MUbEPblrsQq"}),fbq("track","Lead")},[]),o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-4 pt-40",children:o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"text-4xl font-bold text-[#0E2349] mb-4",children:"Thank You!"}),o.jsx("p",{className:"text-lg text-gray-700",children:"We have received your submission."})]})}));function Ede(){const t=Is();return T.useEffect(()=>{t("/reachout")},[t]),o.jsx("div",{children:o.jsx("h2",{children:"Redirecting to Reachout page..."})})}const h0=[{id:1,image:"/images/vidyashri/slide1.jpeg",title:"Empowering Education",desc:"Scholarships for deserving students"},{id:2,image:"/images/vidyashri/slide2.jpeg",title:"Bright Future",desc:"Support for higher education"},{id:2,image:"/images/vidyashri/slide3.jpeg",title:"Bright Future",desc:"Support for higher education"}];function kde(){const[[t,e],n]=T.useState([0,0]);T.useEffect(()=>{const l=setInterval(()=>{s()},4e3);return()=>clearInterval(l)},[t]);const s=()=>{n([(t+1)%h0.length,1])},r=()=>{n([t===0?h0.length-1:t-1,-1])},a={enter:l=>({x:l>0?300:-300,opacity:0}
488),center:{x:0,opacity:1},exit:l=>({x:l>0?-300:300,opacity:.6})};return o.jsxs("div",{className:"relative w-full mx-auto max-w-3xl h-[60vh] md:h-[75vh] lg:h-[85vh] overflow-hidden rounded-xl mb-12",children:[o.jsx(Fu,{custom:e,children:o.jsx(Hu.div,{custom:e,variants:a,initial:"enter",animate:"center",exit:"exit",transition:{duration:1},className:"absolute inset-0 flex items-center justify-center rounded-xl mx-auto max-w-4xl",children:o.jsx("img",{src:h0[t].image,alt:"",className:"w-full h-full object-contain object-center rounded-xl"})},h0[t].id)}),o.jsx("button",{onClick:r,className:"absolute left-3 top-1/2 -translate-y-1/2 bg-white/30 hover:bg-white/50 p-2 rounded-full",children:o.jsx($p,{className:"text-white"})}),o.jsx("button",{onClick:s,className:"absolute right-3 top-1/2 -translate-y-1/2 bg-white/30 hover:bg-white/50 p-2 rounded-full",children:o.jsx(Up,{className:"text-white"})})]})}const Cde=()=>{const{t}=J0(),e=T.useRef(null),n=T.useRef(null),[s,r]=T.useState(!1),{i18n:a}=J0(),c=a.language==="hi"?"https://forms.zohopublic.in/adminama1/form/RequestCallBackVidyaShri/formperma/LBCYSUXWMOCYGJ-1kVRKeZSi5yYs8Y13RTy9wUlXQUo?zf_lang=hi":"https://forms.zohopublic.in/adminama1/form/RequestCallBackVidyaShri/formperma/LBCYSUXWMOCYGJ-1kVRKeZSi5yYs8Y13RTy9wUlXQUo",u=a.language;return T.useEffect(()=>{if(!n.current)return;const f=40,m=()=>{const g=n.current.getBoundingClientRect().top+window.scrollY-f;window.scrollY>=g?r(!0):r(!1)};return window.addEventListener("scroll",m),m(),()=>window.removeEventListener("scroll",m)},[]),o.jsxs("div",{className:"vidyashri_scolarship pt-8",children:[o.jsxs("section",{className:"banner-section w-full bg-white lg:mt-12 mt-15 px-4 md:px-10",children:[o.jsx("div",{className:"flex justify-end pt-12"}),o.jsxs("div",{className:"mx-auto max-w-7xl grid grid-cols-1 md:grid-cols-2 md:items-start items-center gap-10",children:[o.jsxs("div",{className:"space-y-5",children:[o.jsx("h1",{className:"text-3xl md:text-[1.5rem] font-bold text-gray-900 leading-tight text-center md:text-left uppercase",children:o.jsx(In,{i18nKey:"hero.trust",children:"Initiative by Anant Charitable Trust"})}),o.jsx("div",{className:"w-full flex justify-center lg:justify-start",children:o.jsx("div",{className:"w-[260px] sm:w-[300px] md:w-[340px] lg:w-[380px] transition-all duration-300",children:o.jsx("img",{src:u==="hi"?"/images/vidyashri/logo-hi.png":"/images/vidyashri/logo-en.png",alt:"Scholarship Logo",className:"w-full h-auto object-contain drop-shadow-md"})})}),o.jsx("h1",{className:"text-3xl md:text-[1.5rem] font-bold text-gray-900 leading-tight text-center md:text-left",children:o.jsxs(In,{i18nKey:"hero.title",children:["Empowering the",o.jsx("br",{})," Brightest Daughters of Bharat"]})}),o.jsx("p",{className:"text-gray-700 max-w-lg font-bold text-center md:text-left",children:o.jsx(In,{i18nKey:"hero.description",components:{highlight:o.jsx("span",{className:"font-bold text-orange-600"})}})}),o.jsx("div",{className:"relative lg:hidden flex justify-center lg:justify-end w-full",children:o.jsx("img",{src:"/images/vidyashri/pw-vidyapeeth-banner.svg",alt:"PW Vidyapeeth",className:` 489 w-full 490 max-w-[320px] 491 sm:max-w-[480px] 492 md:max-w-[600px] 493 lg:max-w-[700px] 494 xl:max-w-[800px] 495 rounded-3xl 496 shadow-xl 497 object-contain 498 `})}),o.jsx("p",{className:"text-lg font-bold text-[#08558c] text-center md:text-left",children:o.jsx(In,{i18nKey:"hero.seatsAvailable",children:"40 Merit-Based Seats Available!"})}),o.jsx("button",{onClick:()=>{const f=document.getElementById("request-callback-section");if(f){const g=f.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:g,behavior:"smooth"})}},ref:e,className:"rounded-full bg-orange-600 px-8 py-3 text-white font-semibold hover:bg-[#08558c] transition block mx-auto md:mx-0",children:o.jsx(In,{i18nKey:"hero.apply",children:"Request a Callback"})})]}),o.jsx("div",{className:"relative hidden lg:flex justify-center lg:justify-end w-full",children:o.jsx("img",{src:"/images/vidyashri/pw-vidyapeeth-banner.svg",alt:"PW Vidyapeeth",className:` 499 w-full 500 max-w-[320px] 501 sm:max-w-[480px] 502 md:max-w-[600px] 503 lg:max-w-[700px] 504 xl:max-w-[800px] 505 rounded-3xl 506 shadow-xl 507 object-contain 508 `})})]})]}),o.jsx("section",{className:"w-full bg-white px-4 py-10 md:py-10",children:o.jsxs("div",{className:"mx-auto max-w-4xl space-y-6",children:[o.jsxs("div",{className:"mx-auto max-w-6xl grid md:grid-cols-[1.1fr_0.9fr] gap-8 items-start",children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray",children:o.jsx(In,{i18nKey:"InDetail.scholarhipMeans",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("div",{className:"lg:hidden flex justify-center md:justify-end mt-6 mb-5",children:o.jsx("img",{src:"/images/vidyashri/studentGirl.png",alt:"Scholarship Students",className:` w-full 509 max-w-[450px] 510 md:max-w-[400px] 511 rounded-2xl 512 object-cover 513 `})}),o.jsx("h3",{className:"text-xl font-bold text-[#08558c] pt-2",style:{fontFamily:"Univers, sans-serif"},children:t("InDetail.whatScholarTittle")}),o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray",children:o.jsx(In,{i18nKey:"InDetail.whatScholarDesc",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsxs("div",{className:"space-y-3",children:[o.jsx("h3",{className:"text-lg text-sm md:text-base text-gray",children:o.jsx(In,{i18nKey:"InDetail.eligibilityTitle",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsxs("ul",{className:"list-disc pl-5 space-y-1 text-sm md:text-base",children:[o.jsx("li",{children:o.jsx(In,{i18nKey:"InDetail.Points.point1",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("li",{children:o.jsx(In,{i18nKey:"InDetail.Points.point2",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("li",{children:o.jsx(In,{i18nKey:"InDetail.Points.point3",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("li",{children:o.jsx(In,{i18nKey:"InDetail.Points.point4",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})})]})]})]}),o.jsx("div",{className:"lg:flex hidden justify-center md:justify-end",children:o.jsx("img",{src:"/images/vidyashri/studentGirl.png",alt:"Scholarship Students",className:` w-full 514 max-w-[450px] 515 md:max-w-[400px] 516 rounded-2xl 517 object-cover 518 `})})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray",children:o.jsx(In,{i18nKey:"InDetail.pwDesc",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsxs("ul",{className:"list-disc pl-5 space-y-1 text-sm md:text-base",children:[o.jsx("li",{children:o.jsx(In,{i18nKey:"InDetail.pwPoints.point1",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("li",{children:o.jsx(In,{i18nKey:"InDetail.pwPoints.point2",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("li",{children:o.jsx(In,{i18nKey:"InDetail.pwPoints.point3",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})})]}),o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray pt-3",children:o.jsx(In,{i18nKey:"InDetail.details.selection",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray",children:o.jsx(In,{i18nKey:"InDetail.details.examDate",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray",children:o.jsx(In,{i18nKey:"InDetail.details.examTime",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray",children:o.jsx(In,{i18nKey:"InDetail.details.venue",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})}),o.jsx("div",{className:"text-lg space-y-2 text-sm md:text-base text-gray italic",children:o.jsx(In,{i18nKey:"InDetail.details.Note",components:{1:o.jsx("span",{className:"font-bold text-black-600"})}})})]}),o.jsx("div",{id:"request-callback-section",style:{width:"100%",height:"700px",borderRadius:"12px",marginTop:"2rem",overflow:"hidden",position:"relative"},className:"mb-0",children:o.jsx("iframe",{src:c,"aria-label":"Campus Visit Registration Form",frameBorder:"0",scrolling:"yes",style:{width:"calc(100% + 15px)",height:"100%",border:"none",position:"absolute",left:0,top:0}},c)}),o.jsxs("div",{className:"text-center space-y-2 hidden",children:[o.jsx("p",{className:"text-[#08558c] md:text-2xl font-semibold",children:o.jsx(In,{i18nKey:"hero.scholarship",children:"Vidya शà¥à¤°à¥ Scholarship"})}),o.jsxs("h2",{className:"text-xl md:text-2xl font-bold text-[#08558c]",children:[t("hero.scholarshipDescription"),o.jsx(Ve,{to:"/essential-information",className:"text-orange-600 font-semibold hover:text-orange-700 underline",children:t("hero.scholarshipLink")})]}),o.jsx("h2",{className:"text-xl md:text-2xl font-bold text-[#08558c]",children:t("hero.scholarshipPrize")})]}),o.jsxs("div",{className:"space-y-5 text-sm md:text-base leading-relaxed text-gray-800 hidden",children:[o.jsx("p",{className:"font-medium",children:t("scholarshipNotice.greeting")}),o.jsx("p",{children:t("scholarshipNotice.intro")}),o.jsxs("p",{children:[" ",o.jsx(In,{i18nKey:"scholarshipNotice.body",components:[o.jsx("a",{href:"/Last_Three_Years_Board_Result.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-orange-600 font-semibold underline hover:text-orange-700"})]})]}),o.jsx("p",{children:o.jsx(In,{i18nKey:"scholarshipNotice.reporting",components:[o.jsx("span",{className:"font-semibold"}),o.jsx("span",{className:"font-semibold"}),o.jsx("span",{className:"font-semibold"}),o.jsx("span",{className:"font-semibold"})]})}),o.jsxs("div",{className:"space-y-2",children:[o.jsx("p",{className:"font-semibold",children:t("scholarshipNotice.noteTitle")}),o.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[o.jsx("li",{children:t("scholarshipNotice.notes.point1")}),o.jsx("li",{children:t("scholarshipNotice.notes.point2")}),o.jsx("li",{children:t("scholarshipNotice.notes.point3")}),o.jsx("li",{children:t("scholarshipNotice.notes.point4")})]})]}),o.jsxs("p",{children:[" ",t("scholarshipNotice.closing")]}),o.jsxs("p",{className:"font-medium",children:[t("scholarshipNotice.signature"),o.jsx("br",{}),t("scholarshipNotice.organization")]})]})]})}),o.jsx("div",{className:"md:px-0 px-3",children:o.jsx(kde,{})})]})};function Tde(){const t=Y({maxWidth:767});Y({minWidth:768,maxWidth:1023});const e=t?"60px 20px":"80px 40px",n=t?"280px":"320px",s=t?"32px":"36px",r=t?"16px":"18px",a=t?"130px":"146px",l=t?"44px":"50px";return o.jsx("section",{className:"relative w-full bg-[#F5F5F5] overflow-hidden",style:{padding:e},children:o.jsxs("div",{className:"mx-auto flex flex-col items-center max-w-4xl",children:[o.jsx("div",{className:"relative overflow-hidden mb-8",style:{width:n,height:n},children:o.jsx("img",{src:"/images/DSC03260.JPG.webp",alt:"Principal at desk",className:"absolute inset-0 h-full w-full object-cover"})}),o.jsxs("div",{className:"text-center bg-white rounded-2xl p-8 w-full max-w-md",children:[o.jsxs("h2",{className:"text-[#1C3664] leading-[1.2] mb-6",style:{fontFamily:'"CentSchbkCyrill BT", Georgia, Cambria, "Times New Roman", serif',fontWeight:400,fontSize:s},children:["Leading With",o.jsx("br",{}),"Purpose"]}),o.jsxs("div",{className:"mb-8 space-y-2 tracking-[-0.02em]",style:{fontFamily:'Univers, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif'},children:[o.jsx("p",{className:"font-normal",style:{fontSize:r},children:"A Message from the Principal"}),o.jsx("p",{className:"font-bold",style:{fontSize:r},children:"Mrs. Soma Debnath"}),o.jsx("p",{className:"font-normal",style:{fontSize:r},children:"Amatir Kanya Gurukul"})]}),o.jsx(Ve,{to:"/about",className:"inline-flex items-center justify-center rounded-full bg-[#ED6D23] text-white transition-opacity hover:opacity-90 mb-2",style:{width:a,height:l,fontFamily:'"CentSchbkCyrill BT", Georgia, Cambria, "Times New Roman", serif',fontSize:t?"14px":"16px",lineHeight:t?"17px":"19px"},children:"About Amatir"})]})]})})}const Gm="#ED6D23",Ade="#1C3664",Mde=["ALL","PARENTS","STUDENTS","ALUMNAE"],Rde=[{id:"s1",role:"Parent",person:"Shubhangi Gupta",category:"PARENTS",image:"/images/confident-female-indian-e
518ntrepreneur_bzvn5y.jpg"},{id:"s2",role:"Student",person:"Ananya Rao",category:"STUDENTS",image:"/images/happy-indian-student-school-uniform-with-books-bag_mnfhuy.jpg"},{id:"s3",role:"Alumna",person:"Kavya Menon",category:"ALUMNAE",image:"/images/woman-sari-isolated-background_jdl3pt.jpg"}];function Ode({slides:t=Rde}){const[e,n]=T.useState("ALL"),[s,r]=T.useState(0),a=T.useRef(null),l=T.useMemo(()=>e==="ALL"?t:t.filter(c=>c.category===e),[t,e]);return T.useEffect(()=>{a.current&&a.current.scrollTo({left:0,behavior:"auto"}),r(0)},[e]),T.useEffect(()=>{const c=a.current;if(!c)return;let u=!1;const f=()=>{u||(u=!0,requestAnimationFrame(()=>{const m=getComputedStyle(c),g=parseFloat(m.columnGap||m.gap||"0")||0,x=(c.clientWidth||1)+g;let b=Math.round(c.scrollLeft/x);b=Math.max(0,Math.min(b,l.length-1)),r(b),u=!1}))};return c.addEventListener("scroll",f,{passive:!0}),f(),()=>c.removeEventListener("scroll",f)},[l.length]),o.jsxs("section",{className:"w-full max-w-[390px] mx-auto py-6 md:hidden select-none",style:{fontFamily:"Univers, system-ui, -apple-system, Segoe UI, Roboto, sans-serif"},children:[o.jsxs("h2",{className:"text-center py-10 text-[28px] leading-[34px] text-[color:var(--navy,theme(colors.slate.900))]",style:{color:Ade,fontFamily:'"CentSchbkCyrill BT", serif'},children:["In Their Own",o.jsx("br",{}),"Words"]}),o.jsx("div",{className:"mt-4 flex items-center justify-center gap-5 text-xs tracking-wide uppercase",children:Mde.map(c=>{const u=e===c;return o.jsxs("button",{onClick:()=>n(c),className:["relative pb-1 transition-colors",u?"text-[color:var(--orange)] font-semibold":"text-slate-600"].join(" "),style:u?{color:Gm}:void 0,children:[c,u&&o.jsx("span",{className:"absolute -bottom-0.5 left-1/2 h-[2px] w-6 -translate-x-1/2 rounded-full",style:{backgroundColor:Gm}})]},c)})}),o.jsx("div",{ref:a,className:"mt-5 flex gap-4 px-4 overflow-x-auto snap-x snap-mandatory scroll-smooth [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",children:l.map(c=>o.jsx("article",{className:"snap-center shrink-0 w-full",children:o.jsx(Dde,{slide:c})},c.id))}),o.jsx("div",{className:"mt-4 flex items-center justify-center gap-2",children:l.map((c,u)=>o.jsx("span",{className:"h-1.5 w-1.5 rounded-full transition-all "+(s===u?"scale-110":"opacity-50"),style:{backgroundColor:s===u?Gm:"#D0D5DD"}},u))})]})}function Dde({slide:t}){return o.jsxs("div",{className:"group relative w-full aspect-[3/4] overflow-hidden rounded-xl shadow-sm",children:[o.jsx("img",{src:t.image,alt:t.person,className:"absolute inset-0 h-full w-full object-cover",loading:"eager",draggable:!1}),o.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/45 via-transparent to-transparent"}),o.jsxs("div",{className:"absolute bottom-4 left-4 z-10",children:[o.jsx("p",{className:"text-white text-2xl leading-none",style:{fontFamily:'"CentSchbkCyrill BT", serif'},children:t.role}),o.jsx("div",{className:"mt-1 h-0.5 w-7",style:{backgroundColor:Gm}}),o.jsx("p",{className:"mt-2 text-white/95 text-sm",children:t.person})]}),o.jsx("div",{className:"absolute inset-0 translate-y-full group-hover:translate-y-0 group-active:translate-y-0 focus-within:translate-y-0 transition-transform duration-300 ease-out",style:{backgroundColor:`${Gm}D9`},children:o.jsx("div",{className:"absolute inset-0 flex items-end",children:o.jsxs("div",{className:"p-4",children:[o.jsx("p",{className:"text-white text-xl leading-none",style:{fontFamily:'"CentSchbkCyrill BT", serif'},children:t.role}),o.jsx("div",{className:"mt-1 h-0.5 w-7 bg-white/95"}),o.jsx("p",{className:"mt-2 text-white/95 text-sm",children:t.person})]})})})]})}const ka={heroDesktop:"/images/Header_ywiibp.mp4",heroMobile:"/images/375x424_lqnlmg.mp4",heroPoster:"/images/Screenshot_2025-08-28_234620_eke0em.png",heroIcon:"/images/Orange_Icon_i299iz.svg",buzzFeature:"/images/Rectangle_110_tdkht6.jpg",buzzSmall1:"/images/Rectangle_111_j4hdij.jpg",buzzSmall2:"/images/Blog_main_pic_b15a6e.jpg",actionBlueI:"/images/Unlock_her_Future_blueCardsIcon_zeqzxs.png",actionOrgI:"/images/Unlock_her_Future_OrangeCardIcon_nvspzg.png"};function Lde(){xs({title:"CBSE Girls Boarding School Haryana | Gurukul Kurukshetra",de
518scription:"Experience Gurukul-style education at a leading CBSE girls boarding school in Haryana. Safe residential campus in Kurukshetra with values, academics, yoga & holistic learning.",keywords:""});const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023}),n=Y({minWidth:1024,maxWidth:1365}),s=Y({maxWidth:1024,maxHeight:600});Y({maxHeight:600});const r=()=>t?"center 30%":s?"center 25%":"center center",a=[{src:ka.buzzFeature,alt:"Campus Buzz 1"},{src:ka.buzzSmall1,alt:"Campus Buzz 2"},{src:ka.buzzSmall2,alt:"Campus Buzz 3"}],[l,c]=T.useState(0),u=T.useRef(0),f=()=>c(b=>(b-1+a.length)%a.length),m=()=>c(b=>(b+1)%a.length),g=b=>u.current=b.touches[0].clientX,x=b=>{const v=b.changedTouches[0].clientX;u.current-v>50&&m(),v-u.current>50&&f()};return o.jsxs("main",{className:"text-[#1C3664]",children:[o.jsxs("section",{id:"mobile-hero",className:"relative overflow-hidden w-full",style:{height:"100vh",minHeight:s?"400px":"480px"},children:[o.jsxs("video",{className:"absolute inset-0 h-full w-full object-cover",playsInline:!0,autoPlay:!0,muted:!0,loop:!0,poster:ka.heroPoster,style:{objectFit:"cover",objectPosition:r()},children:[o.jsx("source",{src:ka.heroMobile,type:"video/mp4",media:"(max-width: 767px)"}),o.jsx("source",{src:ka.heroDesktop,type:"video/mp4"})]}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(0,0,0,0)_20%,#002F82_100%)]"}),o.jsx("div",{className:"relative h-full z-10 mx-auto max-w-[1262px] px-4 flex items-end justify-center",children:o.jsxs("div",{className:"text-center w-full",style:{transform:s?"translateY(-10%)":t?"translateY(-5%)":"translateY(0)",paddingTop:s?"2rem":t?"1rem":"0",paddingBottom:s?"2rem":t?"1rem":"0"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:ka.heroIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill text-white leading-tight mb-[35%]",children:"Guided by Dharma, Prepared for the World."})]})})]}),o.jsx(K8,{}),o.jsx(Vb,{}),o.jsx(Ode,{}),o.jsx(Tde,{}),o.jsxs("section",{className:"relative bg-[#F8F9FB] py-12 overflow-hidden",onTouchStart:g,onTouchEnd:x,children:[o.jsx("h2",{className:"text-center text-[#1C3664] font-semibold text-xl mb-6",children:"Campus Buzz"}),o.jsxs("div",{className:"relative mx-auto max-w-[90%] rounded-[1rem] overflow-hidden shadow-lg",children:[o.jsx("img",{src:a[l].src,alt:a[l].alt,className:"w-full h-[240px] object-cover transition-transform duration-500"}),o.jsx("button",{onClick:f,className:"absolute top-1/2 -translate-y-1/2 left-2 z-10 grid place-items-center rounded-full text-white hover:scale-110 transition-transform duration-200",style:{width:"2.4rem",height:"2.4rem",background:"#ED6D23",boxShadow:"0 2px 6px rgba(0,0,0,0.25)"},children:o.jsx($p,{size:18})}),o.jsx("button",{onClick:m,className:"absolute top-1/2 -translate-y-1/2 right-2 z-10 grid place-items-center rounded-full text-white hover:scale-110 transition-transform duration-200",style:{width:"2.4rem",height:"2.4rem",background:"#ED6D23",boxShadow:"0 2px 6px rgba(0,0,0,0.25)"},children:o.jsx(Up,{size:18})})]}),o.jsx("div",{className:"flex justify-center mt-4 space-x-2",children:a.map((b,v)=>o.jsx("button",{onClick:()=>c(v),className:`w-2 h-2 rounded-full transition-all duration-300 ${v===l?"bg-[#ED6D23]":"bg-gray-300"}`},v))})]}),o.jsx("section",{className:"bg-[#F5F5F5]",style:{padding:t?"70px 0":e?"85px 0":n?"calc(2rem + 100px) 0":"100px 0"},children:o.jsxs("div",{className:"mx-auto max-w-[1290px] px-[5%]",children:[o.jsx("h3",{className:"cent-schbk-cyrill text-center text-[32px] md:text-[40px]",children:"Unlock Her Future"}),o.jsx("div",{className:"mt-8 overflow-hidden rounded-[20px] shadow-[0_6px_28px_rgba(0,0,0,0.08)]",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[o.jsxs("article",{className:"relative py-10",children:[o.jsx("img",{src:ka.buzzFeature,alt:"Plan a Campus Visit",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#002F82]/95"}),o.jsxs("div",{className:"relative z-[1] h-full text-white p-6 md:p-8",children:[o.jsx("img",{src:ka.actionBlueI,alt:"Blue Icon",className:"mb-5 h-[48px] w-[48px] invert"}),o.jsx("h4",{className:"cent-schbk-cyrill text-[20px] md:text-[26px]",children:"Plan a Campus Visit"}),o.jsx("p",{className:"mt-2 leading-[1.7] text-[13px] md:text-[15px] max-w-[520px]",children:"Numbers and prospectuses only tell you so much. The best way to understand why fam
518ilies keep calling Amatir the best girls boarding school is to walk the campus yourself. Schedule a guided tour to see our facilities, meet our team, and get a feel for the day-to-day life that has earned us a reputation as one of the best gurukul options for girls in India."}),o.jsx("a",{href:"/campus-visit",className:"mt-5 inline-block rounded-full bg-white px-5 py-2 text-[#1C3664]",children:"Register Now"})]})]}),o.jsxs("article",{className:"relative py-10",children:[o.jsx("img",{src:ka.buzzSmall2,alt:"Apply for Aptitude Test",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/95"}),o.jsxs("div",{className:"relative z-[1] h-full text-white p-6 md:p-8",children:[o.jsx("img",{src:ka.actionOrgI,alt:"Orange Icon",className:"mb-5 h-[48px] w-[48px] invert"}),o.jsx("h4",{className:"cent-schbk-cyrill text-[20px] md:text-[26px]",children:"Apply for the Aptitude Test"}),o.jsx("p",{className:"mt-2 leading-[1.7] text-[13px] md:text-[15px] max-w-[520px]",children:"Ready to take the next step? Amatir welcomes girls into its residential program through a straightforward aptitude test designed to understand each child's strengths and readiness for our learning environment. As a well-established Gurukul school, we look for curiosity and character as much as academic ability. Register today to begin the process."}),o.jsx("a",{href:"/admissions#aptitude-test",className:"mt-5 inline-block rounded-full bg-white px-5 py-2 text-[#1C3664]",children:"Apply"})]})]})]})})]})}),o.jsx(Y8,{}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}function Ide(){const t=$e.useMemo(()=>[{name:"Late Balwant Singh Nehra",role:"Founder",photo:"/images/Trustee-Balwant_pxclkm.jpg",details:"Balwant Singh Nehra, fondly known as 'Dada Ji,' founded Anant Charitable Trust and Amatir Kanya Gurukul at 65 to support girls in his village.An IIT (BHU) Banaras graduate and retired professor from NIT Kurukshetra, he was also a progressive farmer who has positively impacted countless families."},{name:"Ashish Nehra",role:"Principal Trustee",photo:"/images/Ashish_Nehra.jpg",details:"Ashish Nehra is a Social Edupreneur and Co-Founder of Amatir Kanya Gurukul, dedicated to making high-quality, holistic education accessible to girls from underserved communities. A Sloan Fellow from London Business School and an Army veteran, he brings 22+ years of diverse experience across technology, farming, and leadership. His mission is to transform young girls into confident, resilient leaders who will shape the future of society and nation-building."},{name:"Gursewak Singh",role:"President",photo:"/images/Gursewak_Singh.jpeg",details:"A lawyer, farmer, and passionate sportsperson, he believes deeply in the lessons taught through sportsâperseverance, patience, and confidence. A law graduate from Kurukshetra University, he brings quiet strength and vision to the Trust."},{name:"Dr. R L Kaushik",role:"Trustee",photo:"/images/Trustee-RLKaushik_fiza5i.jpg",details:"A retired professor of Chemistry and a graduate in Chemical Engineering from Punjab University, Dr. Kaushik brings with him rich academic and administrative experience. He continues to be a guiding force behind the trust and its educational mission."},{name:"Adittee Naargolkar",role:"Trustee",photo:"/images/Adittee_gyu2qb.jpg",details:"With academic credentials in Early Childhood Care, Psychology, and Special Needs Education from the UK, Adittee focuses on curriculum design, teacher training, and the creation of engaging learning tools. Her work with leading toy brands and preschools across India reflects her commitment to making learning joyful and discovery-led."},{name:"Dr. Priti Ojha",role:"Vice President",photo:"/images/Trustee-Priti_lm0jch.jpg",details:"Dr. Priti Ojha is a seasoned educationist and global trainer. As a British Council Ambassador and Core Skills Master Trainer, she has mentored over 600 schools and supported 100+ teachers in bringing global perspectives into classroom learning. She holds a Doctorate in Computer Science and remains, above all, a passionate teacher."}],[]),e=$e.useRef(null),n=$e.useRef(null),[s,r]=$e.useState(0),[a,l]=$e.useState(0),[c,u]=$e.useState(null),[f,m]=$e.useState(null),[g,x]=$e.useState(!1),[b,v]=$e.useState(0),w=$e.useCallback(()=>
518{const A=e.current,L=n.current;if(!A||!L)return;const M=A.clientWidth;l(M);const O=-s*M;L.style.transform=`translateX(${O+b}px)`},[s,b]);$e.useEffect(()=>(w(),window.addEventListener("resize",w,{passive:!0}),()=>window.removeEventListener("resize",w)),[w]);const N=A=>{const L=Math.min(Math.max(A,0),t.length-1);r(L),v(0),x(!1)},_=A=>{m(null),u(A.targetTouches[0].clientX),x(!0)},E=A=>{if(!g||!c)return;A.preventDefault();const L=A.targetTouches[0].clientX,M=c-L;v(-M)},k=A=>{if(!c)return;m(A.changedTouches[0].clientX);const L=c-A.changedTouches[0].clientX,M=30,O=L>M,P=L<-M;O&&s<t.length-1?N(s+1):P&&s>0?N(s-1):v(0),x(!1),u(null),m(null)},C=()=>{v(0),x(!1),u(null),m(null)};return o.jsxs("div",{ref:e,className:"relative w-full overflow-hidden",children:[o.jsx("div",{ref:n,className:`flex will-change-transform select-none ${g?"":"transition-transform duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]"}`,style:{gap:0},onTouchStart:_,onTouchMove:E,onTouchEnd:k,onTouchCancel:C,children:t.map((A,L)=>o.jsxs("article",{className:"shrink-0",style:{width:a},children:[o.jsx("img",{src:A.photo,alt:A.name,className:"block w-full object-cover",style:{aspectRatio:"1 / 1.2"}}),o.jsxs("div",{className:"p-5 text-left pb-0",children:[o.jsxs("h5",{className:"relative mb-3 text-[26px] text-[#1C3664]",children:[A.name,o.jsx("span",{className:"absolute left-0 -bottom-2 block h-[2px] w-[30px] bg-[#ED6D23]"})]}),o.jsx("p",{className:"text-[16px] text-[#3A2323]",children:A.role}),o.jsx("div",{className:"mt-4 overflow-y-auto max-h-[112px] pr-2",children:o.jsx("p",{className:"text-[15px] leading-7 text-[#3A2323]",children:A.details})})]})]},A.name+L))}),o.jsx("div",{className:"mt-3 flex items-center gap-2 pl-5",children:t.map((A,L)=>o.jsx("button",{type:"button","aria-label":`Go to slide ${L+1}`,onClick:()=>N(L),className:`h-3.5 w-3.5 rounded-full transition-colors ${L===s?"bg-[#ED6D23]":"bg-[#D0D0D0]"}`},`dot-${L}`))})]})}const ia={heroBg:"/images/afb3c3619b5c47d084a92bd65cea4fd6_k5ucqy.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",visionBg:"/images/Rectangle_35_hhc9xi.png",missionBg:"/images/Rectangle_36_rndebv.png",anantTrust:"/images/Anant_Charitable_trust_fyw8kf.jpg",humbleBegin:"/images/Rectangle_68_xbwfg6.jpg",growthYears:"/images/About_us_growth_pic_wec7au.jpg",rootedKnowledge:"/images/Name_rooted_in_knowledge_nlbh8n.jpg",initiativesHeader:"/images/AMATIR_7_opdot9.jpg",vidyaIcon:"/images/Vidya_Scholorship_Icon_fzwkhr.png",dispensaryIcon:"/images/Charitable_Dispensary_Icon_xemjhq.svg",communityIcon:"/images/Community_Engagement_Icon_jinhvv.svg"};function Pde(){xs({title:"Modern Gurukul School in India | About Amatir Kanya Gurukul",description:"Learn about Amatir Kanya Gurukul, a modern Gurukul school in India blending CBSE education, Indian values, academic excellence and holistic development for girls.",keywords:""}),Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const t=T.useRef(null),e=T.useRef(null),n=T.useRef([]),s=T.useMemo(()=>[{date:"2002",title:"Anant Charitable Trust",text:"Founded by retired electrical engineering professor Mr. B.S. Nehra, Anant Charitable Trust began in 2002 with a vision to uplift women through educationâbasic, technical, and higher learningâby reviving the principles of the gurukul education system to meet the needs of modern times.",img:ia.anantTrust},{date:"2002 May",title:"Humble Beginnings in Kurukshetra",text:"Our all-girls residential school was established in Bachgaon Gamri, Kurukshetra, Haryana, as a beacon of traditional Indian education. Starting with just 27 girls in a modest three-room facility that served as both school and hostel, it embodied the spirit of a gurukul in India, offering character building for girls through discipline, community living, and values-based learning.",img:ia.humbleBegin},{date:"2008 April",title:"Growth Over the Years",text:"What began as a humble initiative has evolved into a thriving institution spread across a 30-acre campus. Amatir now offers holistic education from Pre-Nursery to 10+2 grades, blending ancient wisdom for girls with academic excellence and modern gurukul values. Our state-of-the-art facilities support students and staff in an environment that respects tradition while embracing progress.",img:ia.growthYears},{date:"2016",title:"A Name Rooted in Knowledge",text:"To reflect its progressive vision, Kanya Gurukul was rebranded as Amatir Kanya Gurukul, signifying 'Knowledge' in Sanskritâa name that captures the essence of gurukul education and the school's unwavering commitment to nurturing empowered, ethical, and confident young women.",img:ia.rootedKnowledge}],[]),r=T.useMemo(()=>[{name:"Late Balwant Singh Nehra",role:"Founder",photo:"/images/Trustee-Balwant_pxclkm.jpg",details:"Fondly known as 'Dada Ji,' he founded Anant Charitable Trust and Amatir Kanya Gurukul at 65 to support girls in his village. An IIT (BHU) Banaras graduate and retired professor from NIT Kurukshetra, he is also a progressive farmer who has positively impacted countless families."},{name:"Ashish Nehra",role:"Principal Trustee",photo:"/images/Ashish_Nehra.jpg",details:"Ashish Nehra is a Social Edupreneur and Co-Founder of Amatir Kanya Gurukul, dedicated to making high-quality, holistic education accessible to girls from underserved communities. A Sloan Fellow from London Business Sc
518hool and an Army veteran, he brings 22+ years of diverse experience across technology, farming, and leadership. His mission is to transform young girls into confident, resilient leaders who will shape the future of society and nation-building."},{name:"Gursewak Singh",role:"President",photo:"/images/Gursewak_Singh.jpeg",details:"A lawyer, farmer, and passionate sportsperson, he believes deeply in the lessons taught through sportsâperseverance, patience, and confidence. A law graduate from Kurukshetra University, he brings quiet strength and vision to the Trust."},{name:"Dr. R L Kaushik",role:"Trustee",photo:"/images/Trustee-RLKaushik_fiza5i.jpg",details:"A retired professor of Chemistry and a graduate in Chemical Engineering from Punjab University, Dr. Kaushik brings with him rich academic and administrative experience. He continues to be a guiding force behind the trust and its educational mission."},{name:"Adittee Naargolkar",role:"Trustee",photo:"/images/Adittee_gyu2qb.jpg",details:"With academic credentials in Early Childhood Care, Psychology, and Special Needs Education from the UK, Adittee focuses on curriculum design, teacher training, and the creation of engaging learning tools. Her work with leading toy brands and preschools across India reflects her commitment to making learning joyful and discovery-led."},{name:"Dr. Priti Ojha",role:"Vice President",photo:"/images/Trustee-Priti_lm0jch.jpg",details:"Dr. Priti Ojha is a seasoned educationist and global trainer. As a British Council Ambassador and Core Skills Master Trainer, she has mentored over 600 schools and supported 100+ teachers in bringing global perspectives into classroom learning. She holds a Doctorate in Computer Science and remains, above all, a passionate teacher."}],[]),a=T.useRef(null),l=T.useRef(null),[c,u]=T.useState(0),f=()=>window.matchMedia("(max-width: 900px)").matches?1:3,[m,g]=T.useState(!1),x=b=>{const v=f(),w=Math.max(0,r.length-v),N=Math.min(Math.max(b,0),w);u(N);const _=l.current,E=a.current;if(!_||!E)return;const k=window.getComputedStyle(E),C=parseFloat(k.columnGap||k.gap||0),L=(_.clientWidth-C*(v-1))/v;E.style.transform=`translateX(-${N*(L+C)}px)`};return T.useEffect(()=>{const b=()=>x(c);return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[c,r.length]),n.current=s.map((b,v)=>n.current[v]||$e.createRef()),T.useEffect(()=>{let b=0;const v=()=>{const N=t.current,_=e.current;if(!N||!_)return;const E=window.scrollY+window.innerHeight/2;let k=0,C=1/0;n.current.forEach((U,q)=>{const ae=U.current?.getBoundingClientRect();if(!ae)return;const B=ae.top+window.scrollY+ae.height/2,$=Math.abs(B-E);$<C&&(C=$,k=q)});const A=N.getBoundingClientRect(),L=A.top+window.scrollY,M=n.current[k]?.current?.getBoundingClientRect();if(!M)return;const P=M.top+window.scrollY+M.height/2-L,H=8,V=A.height-8,F=Math.max(H,Math.min(P,V));_.style.transform=`translate(0, ${F}px)`},w=()=>{b&&cancelAnimationFrame(b),b=requestAnimationFrame(v)};return w(),window.addEventListener("scroll",w,{passive:!0}),window.addEventListener("resize",w),()=>{b&&cancelAnimationFrame(b),window.removeEventListener("scroll",w),window.removeEventListener("resize",w)}},[s.length]),o.jsxs("main",{className:"w-full overflow-hidden",id:"mobile-about",children:[o.jsxs("section",{className:"relative flex items-end",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:ia.heroBg,alt:"Students in assembly",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-black/40"}),o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px] pb-[5%] flex flex-col items-center",style:window.innerWidth<=1024&&window.innerHeight<=600?{paddingBottom:0}:void 0,children:[o.jsx("img",{src:ia.orangeIcon,alt:"",className:"mb-3 h-[48px] w-[48px] md:h-[60px] md:w-[60px]"}),o.jsx("h1",{className:"text-white text-[40px] md:text-[64px] leading-none font-semibold",style:{marginBottom:"35%"},children:"About us"})]})]}),o.jsx("section",{className:"mx-auto my-10 w-[80%] max-w-[1290px] overflow-hidden rounded-[15px]",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[o.jsxs("div",{className:"relative h-[260px] md:h-[300px] flex items-center justify-start p-6 md:p-10",style:{backgroundImage:`url(${ia.visionBg})`,backgroundSize:"cover",backgroundPosition:"center",transform:"scaleX(-1)"},children:[o.jsx("div",{className:"absolute inset-0 bg-[#1C3664]/80"}),o.jsxs("div",{className:"relative ",style:{transform:"scaleX(-1)"},children:[o.jsx("h3",{className:"text-white text-[28px] md:text-[40px] font-[400]",children:"Vision"}),o.jsx("p",{className:"mt-2 text-white/95 text-[16px] md:text-[19px] leading-relaxed",children:"To Create an environment that enables the making of a self-aware, autonomous, happy and a successful human being."})]})]}),o.jsxs("div",{className:"relative h-[260px] md:h-[300px] flex items-center justify-start p-6 md:p-10",style:{backgroundImage:`url(${ia.missionBg})`,backgroundSize:"cover",backgroundPosition:"center"},children:[o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/80"}),o.jsxs("div",{className:"relative ",children:[o.jsx("h3",{className:"text-white text-[28px] md:text-[40px] font-[400]",children:"Mission"}),o.jsx("p",{className:"mt-2 text-white/95 text-[16px] md:text-[19px] leading-relaxed",children:"To Nurture Truly Empowered Girl Child And Open Doors For Mainstream And Alternate Careers."})]})]})]})}),o.jsx("section",{className:"bg-[#F9F9F9] py-12 md:py-16",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[1000px]",children:[o.jsx("h2",{className:"text-[#1C3664] text-[34px] md:text-[52px] font-normal tracking-[0.02em] text-center",children:"Amatir's Journey Through the Years"}),o.jsxs("div",{className:"relative mt-6 md:mt-10",ref:t,children:[o.jsx("div",{className:"absolute left-[-5px] top-0 h-full w-[2px] bg-[#ED6D23]"}),o.jsx("span",{ref:e,className:"absolute left-[-5px] -translate-x-1/2 z-10 h-4 w-4 roun
518ded-full bg-[#ED6D23] transition-transform duration-500 ease-[cubic-bezier(.22,.61,.36,1)]",style:{top:0,transform:"translate(0, 0px)",boxShadow:"0 0 0 6px rgba(237,109,35,0.35), 0 0 10px rgba(237,109,35,0.55), 0 0 22px rgba(237,109,35,0.35)"}}),o.jsx("div",{className:"space-y-8 md:space-y-10",children:s.map((b,v)=>{const w=v%2===1;return o.jsxs("div",{ref:n.current[v],className:`relative flex w-full items-center justify-between gap-6 py-6 ${w?"md:flex-row":"md:flex-row-reverse"} flex-col`,children:[o.jsxs("div",{className:`w-full md:w-[45%] rounded-[20px] p-6 ${w?"bg-[#EFF3FA]":"bg-[#F7F3ED]"}`,children:[o.jsx("h4",{className:"text-[#1C3664] text-[20px] md:text-[24px] mb-2",children:b.title}),o.jsx("p",{className:"text-[15px] md:text-[16px] leading-7 text-[#555]",children:b.text})]}),o.jsxs("div",{className:"relative w-full md:w-[48%]",children:[o.jsx("img",{src:b.img,alt:b.title,className:"mx-auto max-w-[200px] rounded-[10px] object-cover"}),o.jsx("div",{className:"absolute -top-8 left-1/2 -translate-x-1/2 bg-[#F9F9F9] px-2 text-[20px] md:text-[24px] font-semibold text-[#1C3664]",children:b.date})]})]},b.title+v)})})]})]})}),o.jsx("section",{className:"py-12 md:py-16",children:o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px]",children:[o.jsx("div",{className:" min-h-auto rounded-[8px] bg-cover bg-center flex items-end justify-center text-center text-white pt-[300px] pb-4",style:{backgroundImage:`linear-gradient(to top, rgba(28,54,100,0.8), rgba(28,54,100,0)), url(${ia.initiativesHeader})`},children:o.jsxs("div",{className:"w-[80%] max-w-[600px]",children:[o.jsx("h2",{className:"text-[#ED6D23] text-[36px] md:text-[44px] font-normal",children:"Initiatives"}),o.jsx("p",{className:"mx-auto mt-2 text-[16px] md:text-[18px] leading-7",children:"Anant Charitable Trust is deeply committed to fostering awareness, driving positive change, and uplifting the local and wider communities through initiatives such as"})]})}),o.jsx("div",{className:"relative z-[2] grid grid-cols-1 gap-6 p-6 md:grid-cols-3",children:[{key:"sch",icon:ia.vidyaIcon,title:"Vidyaशà¥à¤°à¥ Scholarship",bg:"bg-[#FEF5EC]"},{key:"disp",icon:ia.dispensaryIcon,title:"Charitable Dispensary",bg:"bg-[#EEF3FA]"},{key:"comm",icon:ia.communityIcon,title:"Community Engagement",bg:"bg-[#FEF5EC]"}].map(b=>o.jsxs("article",{className:"text-center",children:[o.jsx("div",{className:`mx-auto mb-6 flex h-[120px] w-[120px] items-center justify-center rounded-full ${b.bg}`,children:o.jsx("img",{src:b.icon,alt:"",className:"h-[60px] w-[60px]"})}),o.jsx("h4",{className:"text-[#1C3664] text-[20px] md:text-[24px] mb-3",children:b.title}),o.jsxs("p",{className:"px-4 text-[15px] md:text-[16px] leading-7 text-[#555]",children:[b.key==="sch"&&"To uplift deserving students, the Trust offers 100% scholarships for Class 9 and 11 students. These scholarships are awarded to top performers who come from humble backgrounds, recognizing both their potential and perseverance.",b.key==="disp"&&"The Anant Charitable Trust operates a free dispensary on Amatir's premises, offering treatment and medicines to residents of neighboring villages, ensuring accessible healthcare for all.",b.key==="comm"&&"Students bring meaningful change to over 125 villages through impactful street plays and theater, raising awareness on crucial issues such as Beti Bachao Beti Padhao, sanitation, and women empowerment."]})]},b.key))})]})}),o.jsx("section",{className:"bg-[#F9F9F9] py-12 md:py-16",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[1290px]",children:[o.jsx("h2",{className:"text-center text-[#1C3664] text-[26px] md:text-[36px]",children:"Trustees and Office Bearers"}),o.jsx("p",{className:"mx-auto mb-10 max-w-[820px] text-center text-[16px] md:text-[18px] leading-8 text-[#3A2323]",children:"Behind Amatir's vision is a group of committed individualsâeducators, professionals, and changemakersâwho bring their diverse experience and shared purpose to guide the school and its students."}),o.jsx(Ide,{})]})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}function Bde(){const t=T.useRef(null),e=T.useRef(null),n=({children:s})=>o.jsx("div",{className:"relative pl-8",children:s});return T.useEffect(()=>{const s=()=>{const r=t.current,a=e.current;if(!r||!a)return;const l=r.getBoundingClientRect(),c=window.scrollY||window.pageYOffset,u=c+l.top,f=l.height||1;let g=(c+window.innerHeight*.5-u)/f;g<0&&(g=0),g>1&&(g=1);const x=g*f;a.style.transform=`translate(-50%, ${x}px)`};return s(),window.addEventListener("scroll",s,{passive:!0}
518),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[]),o.jsxs("section",{ref:t,className:"relative mx-auto mb-8 w-[92%] max-w-[66.25rem] md:hidden",children:[o.jsx("div",{className:"pointer-events-none absolute left-[1rem] top-0 h-full w-[2px] -translate-x-1/2 bg-[#E6E9EF]"}),o.jsx("span",{ref:e,className:"absolute left-[1rem] z-10 h-3 w-3 rounded-full bg-[#ED6D23]",style:{top:0,transform:"translate(-50%, 0px)",boxShadow:"0 0 0 6px rgba(237,109,35,0.35), 0 0 10px rgba(237,109,35,0.55), 0 0 22px rgba(237,109,35,0.35)"},"aria-hidden":!0}),o.jsxs("div",{className:"flex flex-col",style:{gap:"1.25rem"},children:[o.jsxs(n,{children:[o.jsxs("div",{className:"rounded-[0.75rem] bg-[#EEF4FB] p-5",children:[o.jsx("p",{className:"mt-1 text-[0.875rem] font-semibold text-[#1C3664]",children:"Take the First Step"}),o.jsx("h3",{id:"aptitude-test",className:"font-serif text-[1.375rem] leading-[1.2] text-[#1C3664]",children:"Apply for the Aptitude Test"}),o.jsx("p",{className:"mt-2 text-[0.813rem] leading-6 text-[#3E4450]",children:"Begin by filling out a simple application form. This helps us understand your daughter's background, interests, and learning needs, and ensures the rest of the process is tailored to your family's specific requirements from the outset."}),o.jsx("button",{className:"mt-4 inline-flex h-[2.125rem] items-center rounded-full bg-[#ED6D23] px-4 text-[0.813rem] text-white hover:brightness-105 cursor-pointer",children:"Apply"})]}),o.jsx("div",{className:"rounded-[0.75rem] bg-[#F3F5F8] p-5",children:o.jsx("img",{src:"/images/Addmission_1.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})]}),o.jsxs(n,{children:[o.jsxs("div",{className:"rounded-[0.75rem] bg-[#FEF3EA] p-5",children:[o.jsx("h3",{className:"text-left font-serif text-[1.375rem] text-[#1C3664]",children:"Academic Assessment"}),o.jsx("p",{className:"mt-2 text-[0.875rem] font-semibold text-[#1C3664]",children:"Appear for the Aptitude Exam"}),o.jsx("p",{className:"mt-2 text-[0.813rem] leading-6 text-[#3E4450]",children:"Once we receive the application, your daughter will be invited to take a brief aptitude test. This helps us assess her current academic level and learning strengths so we can place her in the right environment from day one."})]}),o.jsx("div",{className:"rounded-[0.75rem] bg-[#F3F5F8] p-5",children:o.jsx("img",{src:"/images/Addmission_2.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})]}),o.jsxs(n,{children:[o.jsxs("div",{className:"rounded-[0.75rem] bg-[#EEF4FB] p-5",children:[o.jsx("h3",{className:"font-serif text-[1.375rem] text-[#1C3664]",children:"Counselling"}),o.jsx("p",{className:"mt-2 text-[0.875rem] font-semibold text-[#1C3664]",children:"Share Your Story"}),o.jsx("p",{className:"mt-2 text-[0.813rem] leading-6 text-[#3E4450]",children:"Shortlisted candidates and their guardians will be invited for an interaction with our psychologist. This is a warm, open conversation designed to understand the child better and explore how Amatir can best support her aspirations. We'll also walk you through eligibility, guidelines, and every detail you need for a smooth transition into our Residential School Admission program."})]}),o.jsx("div",{className:"rounded-[0.75rem] bg-[#F3F5F8] p-5",children:o.jsx("img",{src:"/images/Addmission_3.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})]}),o.jsxs(n,{children:[o.jsxs("div",{className:"rounded-[0.75rem] bg-[#FEF3EA] p-5",children:[o.jsx("h3",{className:"text-left font-serif text-[1.375rem] text-[#1C3664]",children:"Admission Confirmation"}),o.jsx("p",{className:"mt-2 text-[0.875rem] font-semibold text-[#1C3664]",children:"Begin Your Educational Journey"}),o.jsx("p",{className:"mt-2 text-[0.813rem] leading-6 text-[#3E4450]",children:"Based on the outcome of the test and interview, selected students will receive an official offer of admission."}),o.jsx("div",{className:"mt-4 flex",children:o.jsx("a",{href:"/Amatir_Admission_process.pdf",target:"_blank",rel:"noopener noreferrer",children:o.jsx("button",{className:"inline-flex h-[2.125rem] items-center rounded-full bg-[#ED6D23] px-4 text-[0.813rem] text-white hover:brightness-105 cursor-pointer",children:"Admission Documents"})})})]}),o.jsx("div",{className:"rounded-[0.75rem] bg-[#F3F5F8] p-5",children:o.jsx("img",{src:"/images/Addmission_4.jpg",alt:"",className:"inset-0 h-full w-full object-cover"})})]})]})]})}const Mi={hero:"/images/AMATIR_6_wnap9t.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",feeBg:"publi/images/Rectangle_35_gls0ou.jpg",r100:"/images/Rectangle_100_xy0n9h.jpg",r101:"/images/Rectangle_101_qyu5pr.jpg",r102:"/images/3_15_dsxyok.jpg",r103:"/images/3_22_tfbpa0.jpg",r104:"/images/3_21_mz9q9b.jpg",r105:"/images/IMG_7695_mjsnqe.jpg",r106:"/images/3_19_qkmb6a.jpg",r108:"/images/3_10_clljar.jpg",r109:"/images/3_9_ivacze.jpg"},Do=({src:t,left:e,top:n,scale:s=1,leftValue:r,topValue:a})=>o.jsx("img",{src:t,alt:"",draggable:"false",className:["absolute rounded-[0.625rem] object-cover","shadow-[0_1.5rem_3.75rem_rgba(0,20,60,0.18)]"].join(" "),style:{width:`${11.625*s}rem`,height:`${14.25*s}rem`,left:r?`${r*s}rem`:void 0,top:a?`${a*s}rem`:void 0}});function zde(){xs({title:"Amatir Kanya Gurukul Admission | Best Girls Boarding School",description:"Admissions open at Amatir Kanya Gurukul, a trusted residential girls school in Kurukshetra, Haryana offering CBSE education and holistic development.",keywords:""}),Y({maxWidth:768});const t=Y({maxWidth:1024});Y({maxHeight:600});const e=Y({maxWidth:1280}),n=Y({minWidth:1025,maxWidth:1366}),[s,r]=T.useState(window.innerWidth);T.useEffect(()=>{const m=()=>{r(window.innerWidth)};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const l=(()=>{const b=s/16;
518if(t){const w=b-1,N=Math.min(.7,w/89.063);return{containerWidth:"100%",containerHeight:"28rem",scale:Math.max(.3,N),maxWidth:"100vw",padding:"0.5rem"}}if(e){const w=b-2,N=Math.min(.8,w/89.063);return{containerWidth:"100%",containerHeight:"32rem",scale:Math.max(.4,N),maxWidth:"100vw",padding:"1rem"}}if(n){const w=b-3,N=Math.min(.9,w/89.063);return{containerWidth:"100%",containerHeight:"35rem",scale:Math.max(.5,N),maxWidth:"100vw",padding:"1.5rem"}}return{containerWidth:"88.125rem",containerHeight:"35.063rem",scale:1,maxWidth:"88.125rem",padding:"0"}})();console.log("Viewport width:",s,"px"),console.log("Collage dimensions:",l);const[c,u]=T.useState(!1);T.useRef(null);const f=Is();return o.jsxs("main",{className:"w-full overflow-x-hidden bg-white text-[#1C3664]",children:[o.jsxs("section",{className:"relative w-full",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:Mi.hero,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#0E2A55]/60"}),o.jsx("div",{className:"relative mx-auto flex h-full max-w-[80vw] items-end justify-center pb-[10%] text-center",children:o.jsxs("div",{children:[o.jsx("img",{src:Mi.orangeIcon,alt:"",className:"mx-auto mb-4 h-[3.375rem] w-[3.375rem]"}),o.jsx("h1",{className:"font-serif text-[3.375rem] leading-tight text-white md:text-[4.125rem]",style:{marginBottom:"35%"},children:"Amatir Kanya Gurukul Admissions"})]})})]}),o.jsxs("section",{className:"mx-auto w-[92%] max-w-[66.25rem] py-12 md:py-16",children:[o.jsx("h2",{className:"mx-auto mb-3 text-center",style:{fontFamily:"'CentSchbkCyrill BT', serif",fontWeight:400,fontStyle:"normal",fontSize:"44px",lineHeight:"120%",letterSpacing:"0%",textAlign:"center"},children:"Your Journey to Excellence Begins Here"}),o.jsx("p",{className:"mx-auto max-w-[47.5rem] text-center text-[18px] leading-[1.5] text-[#3E4450]",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"-0.02em",textAlign:"justify"},children:"At Amatir, admissions are more than just a process; they mark the beginning of a meaningful journey for your daughter. Whether you're exploring Amatir Kanya Gurukul admission for 2026 or simply want clarity on our fee structure, we're here to guide you through every step. Many families researching the best girls boarding school admission in Haryana tell us it's the personal, one-on-one support that sets the experience apart, and that's exactly what we aim to offer from your very first enquiry to the day your daughter joins us on campus. Here's a look at how the admission process unfolds. s"})]}),o.jsx(Bde,{}),o.jsx("section",{className:"relative w-full",children:o.jsxs("div",{className:"relative mx-auto h-[15.75rem] w-full overflow-hidden",children:[o.jsx("img",{src:Mi.feeBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#0E2A55]/92"}),o.jsxs("div",{className:"relative z-[1] mx-auto flex h-full w-full flex-col items-center justify-center text-center text-white",children:[o.jsx("h3",{className:"font-serif font-normal text-[32px] leading-[120%] text-center",children:"Fee Structure"}),o.jsx("p",{className:"mt-2 max-w-[45rem] text-center text-[18px] leading-[1.5] font-normal",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"-0.02em",textAlign:"center"},children:"Check the latest structure, concessions, and scholarship options."}),o.jsx("a",{href:"/FEE_STRUCTURE_2025-26.pdf",target:"_blank",rel:"noopener noreferrer",children:o.jsx("button",{className:"mt-5 inline-flex h-[2.5rem] items-center rounded-full bg-[#ED6D23] px-5 text-[0.875rem] font-medium text-white shadow-[0_0.625rem_1.25rem_rgba(237,109,35,0.35)] hover:brightness-105 cursor-pointer",children:"Download"})})]})]})}),o.jsx("section",{className:"my-16 hidden lg:block overflow-x-hidden",style:{width:l.containerWidth,maxWidth:l.maxWidth,padding:l.padding,marginLeft:"auto",marginRight:"auto"},children:o.jsxs("div",{className:"relative w-full",style:{height:l.containerHeight},children:[o.jsx(Do,{src:Mi.r108,leftValue:.938,topValue:0,scale:l.scale}),o.jsx(Do,{src:Mi.r109,leftValue:.938,topValue:15.375,scale:l.scale}),o.jsx(Do,{src:Mi.r103,leftValue:26.438,topValue:.563,scale:l.scale}),o.jsx(Do,{src:Mi.r102,leftValue:13.688,topValue:6.5,scale:l.scale}),o.jsx(Do,{src:Mi.r104,leftValue:39.188,topValue:4.063,scale:l.scale}),o.jsx(Do,{src:Mi.r105,leftValue:51.938,topValue:.563,scale:l.scale}),o.jsx(Do,{src:Mi.r106,leftValue:64.688,topValue:6.5,scale:l.scale}),o.jsx(Do,{src:Mi.r100,leftValue:77.438,topValue:0,scale:l.scale}),o.jsx(Do,{src:Mi.r101,leftValue:77.438,topValue:15.375,scale:l.scale}),o.jsx("h3",{className:"absolute left-1/2 w-[90%] max-w-[27.563rem] -translate-x-1/2 text-center font-serif leading-[1.2] text-[#1C3664]",style:{to
518p:`${21.5*l.scale}rem`,fontSize:`${2.75*l.scale}rem`},children:"Visit Campus"}),o.jsx("p",{className:"absolute left-1/2 w-[90%] max-w-[49.938rem] -translate-x-1/2 text-center leading-7 text-[#3E4450]",style:{top:`${26.375*l.scale}rem`,fontSize:`${.938*l.scale}rem`,width:window.innerWidth<=1024&&window.innerHeight<=600?"72%":void 0},children:"We warmly invite prospective parents to visit the Amatir campus, interact with our team, and experience firsthand the vibrant learning environment of our Gurukul, a place families across the region have come to know as a trusted home for their daughters' education."}),o.jsx(Ve,{to:"/campus-visit",className:"absolute left-1/2 -translate-x-1/2 inline-flex items-center justify-center rounded-full bg-[#ED6D23] text-white shadow-[0_0.625rem_1.25rem_rgba(237,109,35,0.35)] hover:brightness-105 cursor-pointer",style:{top:`${31.938*l.scale}rem`,height:`${3.125*l.scale}rem`,width:`${10.25*l.scale}rem`,fontSize:`${.938*l.scale}rem`},children:"Schedule a visit"})]})}),o.jsxs("section",{className:"px-5 lg:hidden",children:[o.jsx("div",{className:"mt-6",children:o.jsxs("div",{className:"flex items-start justify-between",style:{gap:"0.75rem"},children:[o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"relative w-full rounded-[0.625rem] shadow-[0_0.875rem_1.875rem_rgba(0,20,60,0.12)] overflow-hidden",style:{paddingBottom:"100%"},children:o.jsx("img",{src:Mi.r100,alt:"",className:"absolute inset-0 h-full w-full object-cover"})}),o.jsx("div",{className:"relative w-full rounded-[0.625rem] shadow-[0_0.875rem_1.875rem_rgba(0,20,60,0.12)] overflow-hidden",style:{paddingBottom:"100%",marginTop:"0.75rem"},children:o.jsx("img",{src:Mi.r102,alt:"",className:"absolute inset-0 h-full w-full object-cover"})})]}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"relative w-full rounded-[0.625rem] shadow-[0_0.875rem_1.875rem_rgba(0,20,60,0.12)] overflow-hidden",style:{paddingBottom:"100%",marginTop:"25%"},children:o.jsx("img",{src:Mi.r103,alt:"",className:"absolute inset-0 h-full w-full object-cover"})}),o.jsx("div",{className:"relative w-full rounded-[0.625rem] shadow-[0_0.875rem_1.875rem_rgba(0,20,60,0.12)] overflow-hidden",style:{paddingBottom:"100%",marginTop:"0.75rem"},children:o.jsx("img",{src:Mi.r105,alt:"",className:"absolute inset-0 h-full w-full object-cover"})})]}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"relative w-full rounded-[0.625rem] shadow-[0_0.875rem_1.875rem_rgba(0,20,60,0.12)] overflow-hidden",style:{paddingBottom:"100%"},children:o.jsx("img",{src:Mi.r104,alt:"",className:"absolute inset-0 h-full w-full object-cover"})}),o.jsx("div",{className:"relative w-full rounded-[0.625rem] shadow-[0_0.875rem_1.875rem_rgba(0,20,60,0.12)] overflow-hidden",style:{paddingBottom:"100%",marginTop:"0.75rem"},children:o.jsx("img",{src:Mi.r108,alt:"",className:"absolute inset-0 h-full w-full object-cover"})})]})]})}),o.jsx("h3",{className:"text-center font-serif text-[#1C3664]",style:{fontSize:"1.875rem",lineHeight:1.2,marginTop:"1.5rem"},children:"Visit Campus"}),o.jsx("p",{className:"mx-auto text-center text-[#3E4450]",style:{maxWidth:"45ch",marginTop:"0.5rem",lineHeight:1.8,fontSize:"0.95rem"},children:"We warmly invite prospective parents to visit the Amatir campus, interact with our team, and experience firsthand the vibrant learning environment of our Gurukul, a place families across the region have come to know as a trusted home for their daughters' education."}),o.jsx("div",{className:"flex justify-center",style:{marginTop:"1.25rem",marginBottom:"2rem"},children:o.jsx("a",{href:"/campus-visit",className:"inline-block rounded-full bg-[#ED6D23] text-white shadow-[0_0.625rem_1.25rem_rgba(237,109,35,0.35)] hover:brightness-105 cursor-pointer",style:{padding:"0.7rem 1.2rem",fontSize:"0.95rem"},children:"Schedule a visit"})})]}),o.jsx("section",{className:"relative mx-auto mt-8 w-full overflow-hidden",children:o.jsxs("div",{className:"relative h-[15.25rem] w-full",children:[o.jsx("img",{src:Mi.feeBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#ED6D23]/92 "}),o.jsxs("div",{className:"relative z-[1] flex h-full flex-col items-center justify-center text-center text-white",children:[o.jsx("h4",{className:"font-ptserif font-normal not-italic text-[2rem] leading-[120%] tracking-normal text-center",children:"Unlock her future!"}),o.jsx("p",{className:"mt-2 text-center univers-regular opacity-95",children:"Guided by Dharma, Prepared for the World."}),o.jsx("button",{onClick:()=>f("/contact"),className:"mt-4 inline-flex h-[2.375rem] items-center cursor-pointer rounded-full bg-[#1C3664] px-5 text-[0.875rem] font-medium text-white ring-1 ring-white/40 backdrop-blur",children:"Get in Touch"})]})]})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}const W2="font-['CentSchbkCyrill_BT']";function Fde(t){switch(t){case"Classical Hatha Yoga":return"/images/IMG_1083_nvwdp3 (1).jpg";case"Sadhana":return"/images/Sadhana_tapas_wn5vod.jpg";case"Sewa":return"/images/2_6_axma0v.jpg";case"Inner Engineering":return"/images/Inner_Engineering_htmol2.jpg";case"Sandhya":return"/images/sandhya_sz7fax.jpg";case"Hawan":return"/images/Hawan02_nzsse2.jpg";case"Atma Dhyan":return"/images/Atma_Gyan_y46mhe.jpg";case"Spiritual Excursions":return"/images/Rectangle_63_phii3n.jpg";default:return"/images/Rectangle_63_phii3n.jpg"}}function Hde({id:t}){const e=T.useMemo(()=>({Sadhana:` At Amatir Kanya Gurukul, Sadhana reflects the spirit of dedicated effort and self-discipline that shapes every studentâs journey. This disciplined way of life helps children cultivate focus, responsibility, and inner strength. 519 520From maintaining personal and shared spaces with care, observing silence during certain hours, rising early, following structured routines, to approaching learning with sincerity and humility â these daily practices nurture a sense of order, respect, and commitment. Through Sadhana, students grow into individuals who carry grace, resilience, and purpose into every aspect of their lives. 521`,Hatha:`Isha Hatha Yoga at Amatir offers authentic practices from an ancient tradition, taught in their purest form by trained teachers from Sadhguru Gurukulam. More than just physical exercise, these practices help the child build strength, balance, clarity, and inner joy â supporting overall health and well-being. 522 523The program includes Upa Yoga, Angamardana, Surya Kriya, Yogasanas, and Bhuta Shuddhi, enabling the student to align body, mind, and energies, and blossom into their fullest potential. 524`,Sandhya:`Sandhya is a cherished part of daily life at Amatir Kanya Gurukul. This evening prayer brings together all students in an atmosphere of devotion, gratitude, and positivity. 525 526Through this sacred practice, children cultivate inner calm, focus, and reverence. Sandhya nurtures a deep sense of connection â with themselves, with each other, and with something greater â offering a meaningful close to each day. 527`,Sewa:`Sewa â or selfless service â is an essential part of life at Amatir Kanya Gurukul. Through small acts of volunteering, students learn the joy of contributing without expectation, developing humility, responsibility, and compassion. 528 529Whether helping maintain their surroundings, supporting daily activities, or lending a hand to peers and teachers, children experience the value of working together for the greater good. Sewa nurtures a spirit of generosity and belonging, shaping students into mindful, caring individuals. 530`,Hawan:`At Amatir Kanya Gurukul, Hawan is a sacred morning practice where students participate in traditional fire offerings accompanied by Vedic chanting. This ancient ritual fosters purity, gratitude, and mindfulness, as children learn to offer with devotion and reverence. 531 532Through Hawan, students experience a deep sense of connection â honoring nature, cultivating inner discipline, and starting each day with positive intention and harmony. 533`,InnerEngineering:` Inner Engineering is a transformative program designed by Sadhguru, offering powerful tools to take charge of your body, mind, emotions, and energies. 534
535Rooted in the ancient science of yoga, Inner Engineering helps students build a foundation of health, clarity, and inner joy. Through guided practices and the sacred Shambhavi Mahamudra Kriya, it nurtures emotional balance, resilience, and a deep sense of harmony â empowering them to navigate modern life with confidence, ease, and meaningful connection to the world around them.`,SpiritualExcursions:` At Amatir Kanya Gurukul, spiritual excursions are an enriching part of the learning journey. The school organizes visits to sacred places like Rishikesh, Amritsar, and other centers of spiritual significance. 536 537These experiences give students the opportunity to connect with Indiaâs rich spiritual and cultural heritage, deepen their sense of devotion, and reflect on higher values. 538`,AtmaDhyan:"Rooted in India's spiritual tradition, Atma Dhyan forms the core of our holistic education. It is more than just a practiceâit's a way of life. It helps children build a strong inner foundation, fostering clarity, strength, and balance as they grow. This connection to timeless wisdom empowers them to navigate life with confidence, purpose, and grace â making the Gurukul experience truly transformative."}),[]),n=T.useMemo(()=>[{title:"Inner Engineering",key:"InnerEngineering"},{title:"Sadhana",key:"Sadhana"},{title:"Classical Hatha Yoga",key:"Hatha"},{title:"Sandhya",key:"Sandhya"},{title:"Sewa",key:"Sewa"},{title:"Hawan",key:"Hawan"},{title:"Spiritual Excursions",key:"SpiritualExcursions"}],[]),[s,r]=T.useState(n[0].key),a=n.find(u=>u.key===s)?.title||"",l=Fde(a),c=e[s]||"";return o.jsxs("section",{id:t,className:"w-full",style:{background:"#ED6D231A"},children:[o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1200px] pt-8 pb-4 text-center",children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsxs("svg",{width:"59",height:"38",viewBox:"0 0 59 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M57.1478 5.12402C46.3172 5.49505 35.9196 11.9527 30.4071 20.884C29.9831 21.5465 29.5414 21.7585 29.1262 21.7585C28.711 21.7585 28.2693 21.5465 27.8452 20.884C22.3328 11.9527 11.9351 5.49505 1.10458 5.12402C0.17701 5.12402 -0.291193 5.41555 0.194679 6.47563C5.92797 19.5147 14.5677 37.4389 29.1262 37.5273C43.6847 37.4389 52.3244 19.5147 58.0577 6.47563C58.5524 5.41555 58.0753 5.12402 57.1478 5.12402Z",fill:"#002F82"}),o.jsx("path",{d:"M34.3818 5.12375C34.3818 7.95064 32.0231 10.2475 29.1167 10.2475C26.2103 10.2475 23.8516 7.95064 23.8516 5.12375C23.8516 2.29685 26.2103 0 29.1167 0C32.0231 0 34.3818 2.29685 34.3818 5.12375C34.3818 5.12375Z",fill:"#002F82"})]})}),o.jsx("h2",{className:`${W2} text-[#ED6D23] font-normal not-italic text-center leading-[120%] tracking-[0%]`,style:{fontSize:"62px"},children:"Gurukul"}),o.jsx("p",{className:"mt-4 text-black text-center text-base leading-relaxed",children:"Guided by Dharma, Prepared for the World"})]}),o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1200px] pt-6 pb-2 text-center",children:[o.jsx("h3",{className:`${W2} text-[#1C3664] font-normal not-italic text-center leading-[120%] tracking-[0%]`,style:{fontSize:"44px"},children:"Atma Dhyan"}),o.jsx("p",{className:"mt-4 text-black text-center text-base leading-relaxed max-w-4xl mx-auto",children:e.AtmaDhyan})]}),o.jsx("div",{className:"mx-auto w-[92%] max-w-[1200px] mt-4",children:o.jsx("div",{className:"flex flex-wrap gap-2 justify-center",children:n.map(u=>{const f=u.key===s;return o.jsx("button",{onClick:()=>r(u.key),className:`px-3 py-1 rounded-full text-sm transition-all cursor-pointer ${f?"bg-[#ED6D23] text-white":"bg-[#ED6D23]/10 text-[#ED6D23] border border-[#ED6D23]/40"}`,children:u.title},u.key)})})}),o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1200px] mt-6",children:[o.jsx("div",{className:"overflow-hidden rounded-[10px]",children:o.jsx("img",{src:l,alt:a,className:"w-full h-[220px] object-cover"})}),o.jsx("h4",{className:`${W2} text-[#1C3664] font-normal not-italic mt-4`,style:{fontSize:"28px"},children:a}),o.jsx("p",{className:"mt-2 text-[#000] text-base leading-relaxed whitespace-pre-line",children:c})]})]})}const Pn={hero:"/images/AMATIR_6_wfestb.jpg",skillMain:"/images/Project_Based_oc2aa7.jpg",foundationShot:"/images/Candid-Primary02_ijhsoz.jpg",jee:"/images/Rectangle_88_l0lzko.jpg",neet:"/images/Rectangle_89_fyffgv.jpg",cuet:"/images/CUET_apubgr.jpg",campus:"/images/Secondary_pguja6.jpg",t1:"/images/Rectangle_115_lyh3q2.png",t2:"/images/Rectangle_115_1_uucvan.png",t3:"/images/Rectangle_115_2_onwmd4.png",t4:"/images/Neha_Dhiman.png",band:"/images/Sadhana_tapas_wn5vod.jpg",projectBased:"/images/Project_Based_oc2aa7.jpg",fln:"/images/Foundation_and_literacy_eiqduq.jpg",artIntegrated:"/images/Art_Integrated_nezarr.jpg",senior:"/images/senior_qucz8c.jpg"},Cu=({children:t})=>o.jsx("div",{className:"mx-auto",style:{width:"min(92vw, 72rem)"},children:t}),_s="font-['CentSchbkCyrill_BT:Roman',_serif]",V2=({src:t,alt:e="",ratio:n="100%"})=>o.jsx("div",{className:"relative w-full overflow-hidden rounded-[0.8rem] shadow-lg",children:o.jsx("div",{className:"relative w-full",style:{paddingBottom:n},children:o.jsx("img",{src:t,alt:e,className:"absolute inset-0 h-full w-full object-cover"})})});function $de(){xs({title:"CBSE Curriculum with JEE & NEET Prep | Amatir Kanya Gurukul",description:"Looking for the best academic school in Kurukshetra? Amatir Kanya Gurukul provides CBSE education with JEE & NEET preparation and modern learning.",keywords:""});const t=Y({maxWidth:768}),e=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025}),Y({maxWidth:1024}),Y({maxHeight:600});const[n,s]=T.useState(null),[r,a]=T.useState(null),l=T.useMemo(()=>[{name:"Mr. Vijay Kumar",role:"Educator - Mathematics",photo:Pn.t1,details:"Mathematics educator focused on fostering analytical thinking, problem-solving, and concept clarity. He integrates interactive pedagogy and learner-centric strategies to make Mathematics engaging and meaningful for students."},{name:"Ms. Rishu Singh",role:"Educator - Mathematics",photo:Pn.t2,details:"Mathematics educator who promotes logical reasoning, conceptual clarity, and problem-solving skills. She designs learner-centric lessons to build confidence and mathematical thinking among middle school students."},{name:"Ms. Neha Dhiman",role:"Educator - Home Science",photo:Pn.t4,details:"PGT Home Science and Food Production, promotes experiential learning, life skills, and wellness education. She guides students in making informed lifestyle choices and developing practical, holistic competencies."},{name:"Mr. Mayank Bhardwaj",role:"Educator - PGT Fine Arts",photo:Pn.t3,details:"Integrates creativity, design thinking, and visual literacy into art education. He fosters self-expression and innovation through experiential and skill-based learning in a dynamic classroom environment."}],[]),c=T.useRef(null),u=T.useRef(null),[f,m]=T.useState(0),g=B=>{let $;window.matchMedia("(max-width: 768px)").matches?$=1:window.matchMedia("(max-width: 1024px)").matches?$=2:$=4;const X=Math.max(0,l.length-$),xe=Math.min(Math.max(B,0),X);m(xe);const I=c.current,Z=u.current;if(!I||!Z)return;const le=parseFloat(getComputedStyle(Z).columnGap||"0"),we=(I.clientWidth-le*($-1))/$;Z.style.transform=`translateX(-${xe*(we+le)}px)`};T.useEffect(()=>{const B=()=>g(f);return B(),window.addEventListener("resize",B),()=>window.removeEventListener("resize",B)},[f,l.length]);const[x,b]=T.useState("Foundation"),[v,w]=T.useState("Project-Based"),N=T.useMemo(()=>[{key:"jee",title:"JEE",image:Pn.jee,description:"A national-level entrance exam for admission to top engineering institutes like IITs and NITs."},{key:"neet",title:"NEET",image:Pn.neet,description:"The qualifying exam for students aspiring to study medicine and allied health sciences in India."},{key:"olympiads",title:"OLYMPIADS",image:"/images/Olympiads_vvurc0.jpg",description:"Rigorous subject-based assessments in Math and
538Science that nurture analytical thinking, problem-solving, and academic excellence."},{key:"cuet",title:"CUET",image:Pn.cuet,description:"A national-level entrance exam for admission to central universities and other leading institutions across India, covering a wide range of undergraduate courses."}],[]),_=T.useRef(null),E=T.useRef(null),[k,C]=T.useState(0),A=B=>{const X=Math.max(0,N.length-1),xe=Math.min(Math.max(B,0),X);C(xe);const I=_.current,Z=E.current;if(!I||!Z)return;const le=parseFloat(getComputedStyle(Z).columnGap||"0"),we=I.clientWidth;Z.style.transform=`translateX(-${xe*(we+le)}px)`};T.useEffect(()=>{const B=()=>A(k);return B(),window.addEventListener("resize",B),()=>window.removeEventListener("resize",B)},[k,N.length]);const[L,M]=T.useState(null),[O,P]=T.useState(null),H=B=>{P(null),M(B.targetTouches[0].clientX)},V=B=>{P(B.targetTouches[0].clientX)},F=()=>{if(!L||!O)return;const B=L-O,$=B>50,X=B<-50;$?A(k+1):X&&A(k-1)};T.useEffect(()=>{const B=document.querySelector(`[key="content-${x}"]`),$=document.querySelector(`[key="image-${x}"]`);B&&$&&(B.classList.remove("fadeIn"),$.classList.remove("fadeIn"),B.offsetWidth,$.offsetWidth,B.classList.add("fadeIn"),$.classList.add("fadeIn"))},[x]);const U=[{id:"Foundation",tagline:"Foundation Stage",content:"The Foundation Stage is where curiosity begins to bloom. Through hands-on projects and real-world applications, children learn by doing, asking questions, solving problems, and working together. No rote learning, no heavy textbooks, just meaningful experiences that spark independent thinking and a lifelong love for learning.",image:Pn.foundationShot},{id:"Middle",tagline:"Middle Stage",content:"In the Middle Stage, learning shifts from memorizing to mastering. A skill-based approach empowers students to think critically, communicate clearly, and solve real-world problems. With AI-powered tools like Embibe, each child learns at their own pace, gaining deeper understanding and lasting confidence. It's purposeful, personalised learning that prepares them for life beyond the classroom.",image:"/images/1_10_cqscjr.jpg"},{id:"Senior",tagline:"Senior Stage",content:"Where students grow into confident, capable individuals. Beyond academics, the focus is on building character, leadership, and purpose. With personalised academic support and real-world problem-solving, students develop resilience, sharpen exam readiness, and take ownership of their learning journey. It's preparation for life, not just the board exams, and it's this holistic approach that has earned Amatir its reputation as the best academic school in Kurukshetra.",image:Pn.senior},{id:"Senior Secondary",tagline:"Senior Secondary Stage",content:"Shaping confident, self-aware leaders, rooted in values, ready for the world. Academic excellence goes hand-in-hand with life skills, global exposure, and purpose-driven growth. From university readiness to leadership development, students are empowered to think boldly, act responsibly, and lead with both head and heart.",image:"/images/Secondary_lmc82a.jpg"}],q=B=>{b($=>$===B?null:B)},ae=Is();return o.jsxs("main",{className:"w-full overflow-hidden bg-white",children:[o.jsxs("section",{className:"relative flex items-end",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:Pn.hero,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-[#1C3664]"}),o.jsx(Cu,{children:o.jsxs("div",{className:"relative w-full text-center",style:{paddingBottom:t?"4vh":"8vh"},children:[o.jsx("div",{className:"flex justify-center mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:"/images/Orange_Icon_i299iz.svg"})}),o.jsx("h1",{className:`${_s} text-white font-[400]`,style:{fontSize:"clamp(2rem,5vw,3.8rem)",lineHeight:1.12,marginBottom:"35%"},children:"Academics"})]})})]}),o.jsx("section",{style:{paddingTop:"8vh",paddingBottom:"8vh"},children:o.jsxs(Cu,{children:[o.jsx("h2",{className:`${_s} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.6rem,3.1vw,2.6rem)",lineHeight:1.15},children:"Curriculum That Grows With Your Child"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"70ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"A future-ready curriculum, shaped by CBSE standards for girls at our Kurukshetra school, designed to grow with your child. From building curiosity in the early years to developing real-world skills, confidence, and character in higher grades, every stage prepares students not just for exams, but for life."}),o.jsx("div",{className:"mt-[4vh]",children:U.map((B,$)=>{const X=x===B.id;return o.jsxs("div",{className:`border-t ${$===U.length-1?"border-b":""}
538 border-[#E6E9EF]`,style:{padding:"1rem 0"},children:[o.jsxs("button",{type:"button",onClick:()=>q(B.id),"aria-expanded":X,className:"w-full flex items-center justify-between cursor-pointer",style:{padding:"0.6rem 0"},children:[o.jsxs("div",{children:[o.jsx("div",{className:`${_s} text-[#1C3664]`,style:{fontSize:"clamp(1.05rem,1.3vw,1.25rem)"},children:B.id}),X&&o.jsx("span",{className:"block rounded-full bg-[#ED6D23]",style:{height:"0.22rem",width:"5rem",marginTop:"0.55rem"}})]}),o.jsx("span",{className:"grid place-items-center rounded-full text-white",style:{width:"1.6rem",height:"1.6rem",background:"#ED6D23"},children:X?o.jsx(Nse,{style:{width:"1rem",height:"1rem"}}):o.jsx(yse,{style:{width:"1rem",height:"1rem"}})})]}),X&&o.jsxs("div",{children:[o.jsxs("div",{className:"fadeIn transition-all duration-500 cubic-bezier(0.25, 0.46, 0.45, 0.94)",style:{marginTop:"1.2rem"},children:[o.jsx("h3",{className:`${_s} text-[#1C3664] font-[400]`,style:{fontSize:"clamp(1.6rem,2.5vw,2.25rem)",lineHeight:1.2,marginBottom:"1.2rem"},children:B.tagline}),o.jsx("p",{className:"text-[#3a2323]/90",style:{lineHeight:1.85,fontSize:"clamp(0.98rem,1.05vw,1.05rem)"},children:B.content})]},`content-${B.id}`),o.jsx("div",{className:"fadeIn transition-all duration-500 cubic-bezier(0.25, 0.46, 0.45, 0.94)",style:{marginTop:"1.4rem"},children:o.jsx(V2,{src:B.image})},`image-${B.id}`)]})]},B.id)})})]})}),o.jsx("section",{style:{paddingTop:"8vh",paddingBottom:"8vh"},children:o.jsxs(Cu,{children:[o.jsx("h2",{className:`${_s} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.6rem,3.1vw,2.6rem)"},children:"Skill Based Learning"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"72ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"We emphasize practical learning that helps children apply concepts with confidence. By engaging in meaningful activities, they build a strong academic foun
538dation while developing abilities that support independent learning and personal growth."}),t?o.jsx("div",{className:"mt-[4vh]",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-start",children:[o.jsx("div",{className:"order-1",children:o.jsx(V2,{src:v==="Project-Based"?Pn.projectBased:v==="Foundational Literacy & Numeracy (FLN)"?Pn.fln:v==="Art-Integrated"?Pn.artIntegrated:Pn.skillMain})}),o.jsxs("div",{className:"relative order-2",children:[o.jsx("div",{className:"absolute left-2 top-0 bottom-0 w-px bg-[#D9DFEA]"}),o.jsx("ul",{className:"space-y-4 pl-6",children:[{title:"Project-Based",content:"Hands-on projects that bring learning to life. Students build, experiment, and solve real-world problems while developing creativity, critical thinking, and collaboration.",image:Pn.projectBased},{title:"Foundational Literacy & Numeracy (FLN)",content:"Focused on strong basics in reading, writing, and math, empowering every child with the core skills needed for future learning and everyday life.",image:Pn.fln},{title:"Art-Integrated",content:"Blending art with academics to make learning fun and memorable, students explore subjects creatively through visuals, stories, and design.",image:Pn.artIntegrated}].map((B,$)=>{const X=B.title===v;return o.jsx("li",{children:o.jsx("button",{onClick:()=>w(B.title),className:"w-full text-left cursor-pointer",children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"mt-2 h-5 w-[3px] rounded",style:{backgroundColor:X?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("h4",{className:`${_s}`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)",color:X?"#1C3664":"#9CA3AF",fontWeight:X?600:400},children:B.title}),X&&o.jsx("p",{className:"mt-1 text-[#000]",style:{fontSize:"clamp(0.95rem,1.05vw,1.05rem)",lineHeight:1.8},children:B.content})]})]})})},$)})})]})]})}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"mt-[4vh]",children:o.jsx(V2,{src:Pn.skillMain})}),o.jsx("div",{className:"mt-[4vh] flex flex-col",style:{gap:"2vh"},children:[{title:"Project-Based",content:"Hands-on projects that bring learning to lifeâstudents build, experiment, and solve real-world problems while developing creativity, critical thinking, and collaboration.",image:Pn.projectBased},{title:"Foundational Literacy & Numeracy (FLN)",content:"Focused on strong basics in reading, writing, and mathâempowering every child with the core skills needed for future learning and everyday life.",image:Pn.fln},{title:"Art-Integrated",content:"Blending art with academics to make learning fun and memorableâstudents explore subjects creatively through visuals, stories, and design.",image:Pn.artIntegrated}].map((B,$)=>o.jsxs("article",{className:"relative rounded-[0.8rem] bg-[#F7F8FA] shadow-sm",children:[o.jsx("span",{className:"absolute left-0 top-0 bottom-0 rounded-r-[999rem] bg-[#ED6D23]",style:{width:"0.36rem"}}),o.jsxs("div",{className:"flex items-center",style:{padding:"1rem 1.2rem 1rem 1.6rem",minHeight:"3.2rem"},children:[o.jsx("div",{className:"mr-4 mt-1",children:o.jsx(Z8,{className:"text-[#1C3664]",style:{width:"1.4rem",height:"1.4rem"}})}),o.jsx("h4",{className:`${_s} text-[#1C3664]`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)"},children:B.title})]}),o.jsx("div",{className:"px-[1.6rem] pb-[1.2rem]",children:o.jsx("p",{className:"text-[#000]",style:{fontSize:"clamp(0.95rem,1.05vw,1.05rem)",lineHeight:1.8},children:B.content})})]},$))})]})]})}),o.jsx("section",{style:{paddingTop:"8vh",paddingBottom:"8vh"},children:o.jsxs(Cu,{children:[o.jsx("h2",{className:`${_s} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.6rem,3.1vw,2.6rem)"},children:"Where CBSE Education Meets JEE and NEET Readiness"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"70ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"Our association with Physics Wallah (PW) strengthens Amatirâs commitment to enabling more young women to pursue STEM careers and turn their academic aspirations into reality."}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"70ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"PW brings its structured curriculum, expert faculty and smart-board enabled learning directly to our classrooms, seamlessly integrating CBSE preparation with competitive exam readinessâreducing the need for additional evening coaching."}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"70ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"Students in Classes 9â10 develop strong conceptual and analytical foundations, while senior students receive focused preparation for JEE and NEET through interactive digital learning, regular assessments, data-driven insights and dedicated doubt-clearing sessions."}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"70ch",lineHeight:1.8,fontSize:"clamp(0.95rem,1.1vw,1.05rem)",marginTop:"1vh"},children:"At Amatir, we strive to give every girl the clarity, confidence and preparation to aim higherâand succeed."}),o.jsxs("div",{className:"mt-[5vh]",children:[o.jsx("div",{ref:_,className:"overflow-hidden",onTouchStart:H,onTouchMove:V,onTouchEnd:F,children:o.jsx("div",{ref:E,className:"grid transition-transform duration-500 ease-out",style:{gridAutoFlow:"column",gridAutoColumns:"100%",columnGap:"1rem"},children:N.map((B,$)=>o.jsxs("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md relative cursor-pointer",style:{height:"clamp(308px, 50vh, 420px)"},children:[o.jsx("img",{src:B.image,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsxs("div",{className:"absolute left-0 right-0 bottom-0 text-white px-4 py-4 flex flex-col justify-center items-start",style:{height:"40%",background:"#ED6D23",transform:"translateY(0%)",transition:"transform 300ms ease-in-out"},children:[o.jsx("h4",{className:`${_s} text-white mb-2 font-[600]`,style:{fontSize:"clamp(1.1rem,1.3vw,1.25rem)"},children:B.title}),o.jsx("p",{className:"text-sm leading-relaxed",style:{fontSize:"clamp(0.85rem,1vw,0.95rem)",lineHeight:1.6},children:B.description})]})]},B.key))})}),o.jsx("div",{className:"flex justify-center mt-4 space-x-2",children:N.map((B,$)=>o.jsx("button",{onClick:()=>A($),className:`w-2 h-2 rounded-full transition-all duration-200 ${$===k?"bg-[#ED6D23]":"bg-gray-300"}`,"aria-label":`Go to slide ${$+1}`},$))})]})]})}),o.jsx("section",{className:"relative w-full ",style:{height:"55vh"},children:o.jsxs("div",{className:"relative w-full h-full ",children:[o.jsx("img",{src:Pn.campus,alt:"",className:"h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#1C3664]/92"}),o.jsx("div",{className:"absolute inset-0 grid place-items-center text-center text-white",style:{padding:"5vh 6vw"},children:o.jsxs("div",{style:{maxWidth:"70ch"},className:"p-12",children:[o.jsx("h3",{className:`${_s} font-[400]`,style:{fontSize:"clamp(1.3rem,2.3vw,2rem)",marginBottom:"1vh"},children:"Discover Our Campus"}
538),o.jsx("p",{className:"opacity-95",style:{fontSize:"clamp(0.95rem,1.05vw,1.05rem)",lineHeight:1.8},children:"Explore a serene, tech-enabled campus where tradition meets innovationâdesigned to nurture holistic growth, learning, and well-being."}),o.jsx("a",{href:"/facilities",className:"my-[2vh] inline-block rounded-full bg-[#ED6D23] text-white shadow-lg hover:brightness-110",style:{padding:"0.7rem 1.4rem",fontSize:"clamp(0.95rem,1.05vw,1.05rem)"},children:"View Facilities"})]})})]})}),o.jsx(Hde,{id:"gurukul"}),o.jsx("section",{className:"bg-[#F8F9FB]",style:{paddingTop:"7vh",paddingBottom:"7vh"},children:o.jsxs(Cu,{children:[o.jsx("h2",{className:`${_s} text-[#1C3664] text-center font-[400]`,style:{fontSize:"clamp(1.44rem,2.79vw,2.6rem)"},children:"Know our Teachers"}),o.jsx("p",{className:"mx-auto text-center text-[#3a2323]/90",style:{maxWidth:"60ch",lineHeight:1.8,fontSize:"clamp(0.855rem,0.945vw,1.05rem)"},children:"Meet our dedicated team of educators who inspire and guide our students"}),o.jsx("div",{className:"relative mt-[4vh]",children:t?o.jsx("div",{className:"flex flex-col",style:{gap:"1.25rem"},children:l.map((B,$)=>o.jsxs("article",{className:"rounded-[0.9rem] bg-white shadow-sm overflow-hidden",children:[o.jsx("div",{className:"relative w-full",style:{paddingBottom:"100%"},children:o.jsx("img",{src:B.photo,alt:B.name,className:"absolute inset-0 h-full w-full object-cover"})}),o.jsxs("div",{className:"px-4 py-3 text-left",children:[o.jsx("h5",{className:`${_s} text-[#1C3664]`,style:{fontSize:"1.25rem"},children:B.name}),o.jsx("p",{className:"text-[#1C3664] mt-1",style:{fontSize:"0.95rem"},children:B.role}),o.jsx("span",{className:"block rounded-full bg-[#ED6D23]",style:{height:"0.22rem",width:"3.5rem",marginTop:"0.45rem"}}),o.jsx("p",{className:"text-[#3a2323] mt-4",style:{fontSize:"0.95rem",lineHeight:1.7},children:B.details})]})]},B.name+$))}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"absolute right-[32%] -top-[2.6rem] hidden md:flex items-center",style:{gap:"0.6rem"},children:[o.jsx("button",{onClick:()=>g(f-1),disabled:f===0,className:"grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110 disabled:opacity-50 disabled:cursor-not-allowed",style:{width:"2.2rem",height:"2.2rem",background:"#ED6D23"},"aria-label":"Previous",children:o.jsx($p,{style:{width:"1.1rem",height:"1.1rem"}})}),o.jsx("button",{onClick:()=>g(f+1),disabled:f>=l.length-(t?1:e?2:4),className:"grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110 disabled:opacity-50 disabled:cursor-not-allowed",style:{width:"2.2rem",height:"2.2rem",background:"#ED6D23"},"aria-label":"Next",children:o.jsx(Up,{style:{width:"1.1rem",height:"1.1rem"}})})]}),o.jsx("div",{ref:c,className:"overflow-hidden",children:o.jsx("div",{ref:u,className:"grid transition-transform duration-500 ease-out",style:{gridAutoFlow:"column",gridAutoColumns:"1fr",columnGap:t?"1rem":e?"1.2rem":"clamp(0.9rem,1.2rem,1.2rem)"},children:l.map((B,$)=>o.jsxs("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md bg-white text-[#1C3664] transition-all duration-500 hover:shadow-2xl hover:-translate-y-1 cursor-pointer",style:{minWidth:0},children:[o.jsxs("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"132%"},children:[o.jsx("img",{src:B.photo,alt:B.name,className:"absolute inset-0 h-full w-full object-cover transition-all duration-500 group-hover:scale-110"}),o.jsxs("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0E2349]/95 to-[#0E2349]/90 text-white opacity-0 group-hover:opacity-100 transition-all duration-500 flex flex-col justify-center p-6 transform translate-y-2 group-hover:translate-y-0",children:[o.jsx("h5",{className:`${_s} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:B.name}),o.jsx("p",{className:"mb-4 text-center",style:{whiteSpace:"pre-line",fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:B.role}),o.jsx("p",{className:"mb-4 text-center",style:{fontSize:"clamp(0.765rem,0.855vw,0.95rem)",lineHeight:1.6},children:B.details})]})]}),o.jsxs("div",{className:"px-[1rem] pb-[1rem] pt-[0.9rem] text-left bg-white",children:[o.jsx("h5",{className:`${_s} font-[500] text-[#1C3664]`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:B.name}),o.jsx("p",{className:"text-[#3a2323] mt-1",style:{fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:B.role})]})]},B.name+$))})})]})})]})}),o.jsx("section",{style:{paddingTop:"10%",paddingBottom:"10%"},children:o.jsx(Cu,{children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",style:{gap:t?"0":"clamp(1rem,2vw,1.6rem)"},children:[o.jsxs("article",{className:"relative overflow-hidden text-white shadow-[0_1.2rem_2.6rem_rgba(0,29,73,0.16)]",style:{minHeight:t?"360px":"clamp(10rem,24vh,16rem)",backgroundImage:`url(${Pn.band})`,backgroundSize:"cover",backgroundPosition:"center"},children:[o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(0,47,130,0.92)"}}),o.jsx("div",{className:"relative grid h-full place-items-center p-[2rem] text-center",children:o.jsxs("div",{style:{maxWidth:"46ch"},children:[o.jsx("h4",{className:`${_s}
538 font-[400]`,style:{fontSize:t?"28px":"clamp(1.15rem,1.9vw,1.55rem)",marginBottom:"0.8rem"},children:"School Rules Handbook"}),o.jsx("p",{className:"opacity-95",style:{lineHeight:1.75,fontSize:"clamp(0.9rem,1.05vw,1.05rem)",marginBottom:"1.2rem"},children:"Find all the essential information about Hostel Rules, Hostel Schedule, Parents and Guardians Visit timings in the pdf attached below."}),o.jsx("a",{href:"/school-rules.pdf",target:"_blank",rel:"noopener noreferrer",children:o.jsx("button",{className:"rounded-full shadow-[0_0.8rem_1.8rem_rgba(0,0,0,0.15)] hover:brightness-110",style:{background:"#ED6D23",color:"white",padding:"0.6rem 1.2rem",fontSize:"clamp(0.92rem,1.05vw,1.05rem)"},children:"Download Handbook"})})]})})]}),o.jsxs("article",{className:"relative overflow-hidden text-white shadow-[0_1.2rem_2.6rem_rgba(0,29,73,0.16)]",style:{minHeight:t?"360px":"clamp(10rem,24vh,16rem)",backgroundImage:`url(${Pn.band})`,backgroundSize:"cover",backgroundPosition:"center"},children:[o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(237,109,35,0.92)"}}),o.jsx("div",{className:"relative grid h-full place-items-center px-[2rem] text-center",children:o.jsxs("div",{style:{maxWidth:"46ch"},children:[o.jsx("h4",{className:`${_s} font-[400]`,style:{fontSize:t?"28px":"clamp(1.15rem,1.9vw,1.55rem)",marginBottom:"0.8rem"},children:"Unlock her future!"}),o.jsx("p",{className:"opacity-95",style:{lineHeight:1.75,fontSize:"clamp(0.9rem,1.05vw,1.05rem)",marginBottom:"1.2rem"},children:"Guided by Dharma, Prepared for the World."}),o.jsx("button",{onClick:()=>ae("/contact"),className:"rounded-full shadow-[0_0.8rem_1.8rem_rgba(0,0,0,0.15)] hover:brightness-110",style:{background:"#1C3664",color:"white",padding:"0.6rem 1.2rem",fontSize:"clamp(0.92rem,1.05vw,1.05rem)"},children:"Get in Touch"})]})})]})]})})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}function Yp({images:t=[],title:e,subtitle:n}){const s=$e.useRef(null),r=$e.useRef(null),[a,l]=$e.useState(0),[c,u]=$e.useState(0),f=$e.useCallback(()=>{const N=s.current,_=r.current;if(!N||!_)return;const E=N.clientWidth;u(E),_.style.transform=`translateX(-${a*E}px)`},[a]);$e.useEffect(()=>(f(),window.addEventListener("resize",f,{passive:!0}),()=>window.removeEventListener("resize",f)),[f]);const m=N=>{const _=Math.max(0,t.length-1),E=Math.min(Math.max(N,0),_);l(E);const k=r.current;k&&(k.style.transform=`translateX(-${E*c}px)`)},g=()=>m(a+1),x=()=>m(a-1),b=$e.useRef(0),v=N=>{b.current=N.touches[0].clientX},w=N=>{const _=N.changedTouches[0].clientX-b.current;Math.abs(_)>40&&(_<0?g():x())};return o.jsxs("section",{className:"mx-auto max-w-6xl px-5 py-8",children:[o.jsxs("div",{className:"text-center mb-6",children:[o.jsx("h2",{className:"text-[32px] font-normal font-serif leading-[120%] text-[#1C3664]",children:e}),o.jsx("br",{}),o.jsx("p",{className:"text-[20px] text-[#0B0B0B]",children:n})]}),o.jsxs("div",{ref:s,className:"relative w-full overflow-hidden",children:[o.jsx("div",{ref:r,className:"flex transition-transform duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform",style:{gap:0},onTouchStart:v,onTouchEnd:w,children:t.map((N,_)=>o.jsx("div",{className:"shrink-0",style:{width:c},children:o.jsx("div",{className:"w-full overflow-hidden rounded-lg",style:{aspectRatio:"4 / 3"},children:o.jsx("img",{src:N,alt:"Gallery image",className:"h-full w-full object-cover"})})},_))}),o.jsx("div",{className:"mt-6 flex items-center justify-center gap-3",children:t.map((N,_)=>o.jsx("button",{type:"button","aria-label":`Go to slide ${_+1}`,onClick:()=>m(_),className:`h-2.5 w-2.5 rounded-full transition-colors ${_===a?"bg-[#ED6D23]":"bg-[#D0D0D0]"}`},`dot-${_}`))})]})]})}const mn={heroBg:"/images/AMATIR_6_kphsdu.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",homeAwayBg:"/images/Rectangle_63_eof7qs.jpg",amenities_ac:"/images/Central-Air-Conditioning-System.jpg",amenities_wifi:"/images/Dormitories_with_wI-FI_mvn6xz.jpg",amenities_safety:"/images/Safety_surveillance_irayl8.jpg",amenities_laundry:"/images/Laundry_facilities_irp8cf.jpg",amenities_phone:"/images/Phone_Access_points_tzdpnx.jpg",glimpseThumb:"/images/Rectangle_91_xztylc.jpg",hc1:"/images/Health_committee_u7z1pw.jpg",hc2:"/images/Discipline_committee_cobjri.jpg",hc3:"/images/Fun_committee_omswze.jpg",hc4:"/images/Mess_committee_ylamxv.jpg",hc5:"/images/Rectangle_77_ph4zzf.jpg",g1:"/images/smart_vtotes.jpg",g2:"/images/KUM_3234_o9tcvu.
538jpg",g3:"/images/KUM_3205_uunnhj.jpg",g4:"/images/GOPR2287_lw3vte.jpg",g5:"/images/059A9848_wnterv.jpg",g6:"/images/059A0109_zlyowu.jpg",g7:"/images/IMG_1070_qfxs0g.jpg",g8:"/images/Hostel-Kitchen02_gkjsof.jpg",ctaBlue:"/images/Rectangle_80_lwbyul.jpg",progCounsel:"/images/IndividualCounselingIcon_ua8nfd.png",progWorkshops:"/images/GroupWorkShopsIcon_xlibd4.png",progMindful:"/images/MindfullnessIcon_v23vdl.png",progEthical:"/images/EthicalDialoguesIcon_d6q0yn.png"},sl={navy:"#1C3664",deepNavy:"#0E2349",orange:"#ED6D23",light:"#F5F5F5"};function jp({title:t,subtitle:e,center:n=!0}){return o.jsxs("div",{className:n?"text-center":"",children:[o.jsx("h2",{className:"font-[400] text-[44px] leading-[1.2] text-[#1C3664] text-center",style:{fontStyle:"normal",letterSpacing:"0%"},children:t}),e?o.jsx("p",{className:"mt-2 text-[#3A2323] text-[16px] md:text-[18px] max-w-[820px] mx-auto",children:e}):null]})}function Ude({title:t,subtitle:e,button:n,tone:s,bgImg:r}){const a=s==="orange"?"bg-[rgba(237,109,35,0.78)]":"bg-[rgba(28,54,100,0.85)]";return o.jsxs("section",{className:"relative",children:[o.jsx("img",{src:r,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:`absolute inset-0 ${a}`}),o.jsxs("div",{className:"relative mx-auto w-[92%] max-w-[1100px] py-12 md:py-16 text-center text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill",children:t}),o.jsx("p",{className:"mt-2 opacity-90",children:e}),o.jsx("a",{href:"/contact",className:"mt-6 inline-flex items-center justify-center px-6 py-2 rounded-full transition shadow-sm hover:opacity-90 cursor-pointer",style:{backgroundColor:s==="orange"?sl.deepNavy:sl.orange,color:"white"},children:n})]})]})}function Wde(){return o.jsx("section",{className:" bg-white",children:o.jsx("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:o.jsxs("div",{className:"relative overflow-hidden rounded md:rounded-none",children:[o.jsx("img",{src:mn.homeAwayBg,alt:"",className:"w-full h-[400px] md:h-[400px] object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(237,109,35,0.86)"}}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-center px-6",children:o.jsxs("div",{className:"max-w-4xl text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill",children:"Your Home Away From Home"}),o.jsx("p",{className:"mt-3 md:mt-4 text-[14px] md:text-[16px] leading-relaxed",children:"At Amatir, over 300 girls from across India live in a safe, caring, and structured environment that fosters growth, independence, and lifelong friendships. It's this environment that has made Amatir home to some of the best girls boarding facilities in India."})]})})]})})})}const G2=[{key:"ac",title:"Central AC with Cooling & Heating",img:mn.amenities_ac,desc:"Spacious, well-ventilated gurukul hostel buildings equipped with central cooling and heating ensure year-round comfort."},{key:"wifi",title:"Dormitories with Wi-Fi",img:mn.amenities_wifi,desc:"Each dormitory is equipped with secure Wi-Fi, allowing students to use their personal tablets for researched based learning."},{key:"safety",title:"Safety Surveillance",img:mn.amenities_safety,desc:"Round-the-clock security with CCTV surveillance and trained guards provides a safe girls boarding school experience, where parents can rest assured about their child's well-being."},{key:"laundry",title:"Dedicated Laundry Facilities",img:mn.amenities_laundry,desc:"Modern laundry services ensure hygiene, convenience, and independence as part of the hostel routine for girls."},{key:"phone",title:"Phone Access Points",img:mn.amenities_phone,desc:"Speed-dial contacts mapped for safe, direct connection with home."}];function Vde(){const[t,e]=T.useState("ac"),n=G2.find(s=>s.key===t)||G2[0];return o.jsx("section",{className:"py-12 md:py-16",style:{backgroundColor:sl.light},children:o.jsxs("div",{className:"mx-auto w-[100%] max-w-[1290px]",children:[o.jsx(jp,{title:"Amenities",subtitle:`Explore thoughtfully designed spaces and services that ensure comfort, safety, and well-being, making our boarding experience truly exceptional. As a girls boarding school with hostel facilities built around every girl's comfort, we've designed every corner of campus life with her needs in mind. 539`}),o.jsxs("div",{className:"mt-10 grid md:grid-cols-[minmax(0,1fr)_minmax(0,1fr)] gap-10 items-start",children:[o.jsxs("div",{className:"relative rounded-xl overflow-hidden shadow-sm",children:[o.jsx("style",{children:` 540 @keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} } 541 .animate-fadeIn { animation: fadeIn .35s ease-out; } 542 `}),o.jsx("img",{src:n.img,alt:n.title,className:"w-full h-[300px] md:h-[360px] object-cover animate-fadeIn"},n.img)]}),o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"absolute left-2 top-0 bottom-0 w-px bg-[#D9DFEA]"}),o.jsx("ul",{className:"space-y-4 pl-6",children:G2.map(s=>{const r=s.key===t;return o.jsx("li",{children:o.jsx("button",{onClick:()=>e(s.key),className:"w-full text-left cursor-pointer",children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"mt-2 h-5 w-[3px] rounded",style:{backgroundColor:r?sl.orange:"transparent"}}),o.jsxs("div",{children:[o.jsx("h4",{className:"univers-regular",style:{color:r?"#1C3664":"#9CA3AF",fontWeight:r?"600":"400"},children:s.title}),r&&o.jsx("p",{className:"mt-1 text-[14px] text-[#3A2323] max-w-prose",children:s.desc})]})]})})},s.key)})})]})]})]})})}const q2=[{title:"Self & Emotional Well-being",img:"/images/Emotional_wellbeing_fzxout.jpg",desc:"Self & Emotional Well-being â Understanding emotions, managing stress and developing resilience, confidence and self-awareness."},{title:"Relationships & Social Well-being",img:"/images/social_wellbeing-team_work_woh9rj.jpg",desc:" Building empathy, respectful communication, healthy friendships and the ability to resolve conflicts."},{title:"Thinking & Responsible Choices",img:"/images/cognitive_wellbeing-confidence_vqfbne.jpg",desc:"Strengthening reflection, decision-making, digital awareness and the ability to respond thoughtfully to challenges."},{title:"Values & Character",img:"/images/Ethics_Integrity_sfkdy8.jpg",desc:"Nurturing honesty, responsibility, compassion, integrity and a sense of responsibility towards others and society."}];function Gde(){const[t,e]=T.useState(0),[n,s]=T.useState(-1),r=T.useRef(0),a=T.useRef(0),l=m=>{r.current=m.touches[0].clientX,a.current=m.touches[0].clientX},c=m=>{a.current=m.touches[0].clientX},u=()=>{const m=a.current-r.current;if(Math.abs(m)<40)return;const x=m<0?Math.min(t+1,q2.length-1):Math.max(t-1,0);x!==t&&(s(-1),e(x))},f=m=>{s(-1),e(m)};return o.jsx("section",{className:"py-12 md:py-16 bg-white",children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[129
5420px]",children:[o.jsx(jp,{title:"Illuminating Awareness",subtitle:"Chetna Prabha is Amatirâs distinctive initiative for the psychological, emotional, social and behavioural well-being of its students and the wider school community. Through 24Ã7 pastoral presence, counselling and experiential learning, it helps girls understand themselves, build healthy relationships, navigate challenges and grow into confident, responsible and grounded young women."}),o.jsx("p",{className:"text-center cent-schbk-cyrill text-[#ED6D23] mt-6",children:"Our focus"}),o.jsx("div",{className:"mt-8 -mx-[4%] px-[4%]",onTouchStart:l,onTouchMove:c,onTouchEnd:u,children:o.jsx("div",{className:"relative h-[320px]",children:q2.map((m,g)=>o.jsxs("div",{className:`${g===t?"opacity-100 z-10":"opacity-0 z-0 pointer-events-none"} absolute inset-0 rounded-lg overflow-hidden shadow-sm transition-opacity duration-300 ease-out cursor-pointer`,onClick:()=>s(x=>x===g?-1:g),children:[o.jsx("img",{src:m.img,alt:m.title,className:"w-full h-full object-cover"}),o.jsxs("div",{className:"absolute bottom-0 left-0 right-0 px-6 py-6 text-white",style:{background:"linear-gradient(to top, rgba(237,109,35,0.95) 0%, rgba(237,109,35,0.7) 50%, transparent 100%)"},children:[o.jsx("h4",{className:"univers-regular font-semibold mb-2",children:m.title}),o.jsx("p",{className:"text-[14px] leading-relaxed opacity-95",children:m.desc})]})]},g))})}),o.jsx("div",{className:"mt-5 flex justify-center gap-2",children:q2.map((m,g)=>o.jsx("button",{"aria-label":`Go to slide ${g+1}`,onClick:()=>f(g),className:`${g===t?"w-6 bg-[#ED6D23]":"w-2 bg-[#D9DFEA]"} h-2 rounded-full transition-all`},g))}),o.jsx("p",{className:"py-5 text-center max-w-3xl mx-auto opacity-90",children:"Chetna Prabha goes beyond one-time counselling or classroom lectures. It is an ongoing culture of care, reflection and growthâexperienced through daily life at Amatir."})]})})}const K2=[{title:"Individual Counseling",desc:"One-on-one support to help girls talk about their feelings, handle challenges, and build confidence in a safe, private space.",iconImg:mn.progCounsel},{title:"Group Workshops",desc:"Interactive sessions where girls learn life skills, like handling peer pressure, building self-esteem, and speaking up with confidence.",iconImg:mn.progWorkshops},{title:"Mindfulness",desc:"Simple daily meditation, reflection, or quiet time to help girls feel calm, focused, and balanced.",iconImg:mn.progMindful},{title:"Ethical Dialogues",desc:"Heartfelt conversations inspired by Indian values that help girls think about right and wrong, purpose, and the kind of person they want to become.",iconImg:mn.progEthical}];function qde(){const[t,e]=T.useState(0),n=T.useRef(0),s=T.useRef(0),r=u=>{n.current=u.touches[0].clientX},a=u=>{s.current=u.touches[0].clientX},l=()=>{const u=s.current-n.current;Math.abs(u)<40||(u<0&&t<K2.length-1&&e(t+1),u>0&&t>0&&e(t-1))},c=u=>e(u);return o.jsx("section",{className:"py-14 md:py-20",style:{backgroundColor:sl.deepNavy,color:"white"},children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:[o.jsx("h2",{className:"cent-schbk-cyrill text-[#ED6D23] text-center",children:"Programs and Practices"}),o.jsx("p",{className:"mt-3 text-center max-w-3xl mx-auto opacity-90",children:"Includes training for teachers and staff to support adolescent well-being with empathy, part of what makes Amatir a genuinely safe residential school for girls in India."}),o.jsxs("div",{className:"relative mt-10 overflow-hidden",onTouchStart:r,onTouchMove:a,onTouchEnd:l,children:[o.jsx("div",{className:"min-h-[320px]"}),K2.map((u,f)=>o.jsxs("div",{className:`${t===f?"opacity-100 z-10":"opacity-0 z-0 pointer-events-none"} absolute inset-0 transition-opacity duration-300 ease-out px-6 text-center`,children:[o.jsx("div",{className:"mx-auto mb-5 grid place-items-center w-16 h-16 rounded-md border-2",style:{borderColor:"rgba(255,255,255,0.7)"},children:u.iconImg?o.jsx("img",{src:u.iconImg,alt:"",className:"w-8 h-8 object-contain"}):o.jsx(J8,{className:"w-8 h-8","aria-hidden":!0})}),o.jsx("h3",{className:"univers-regular",children:u.title}),o.jsx("p",{className:"mt-3 text-base opacity-90",children:u.desc})]},f))]}),o.jsx("div",{className:"mt-6 flex justify-center gap-3",children:K2.map((u,f)=>o.jsx("button",{"aria-label":`Go to slide ${f+1}`,onClick:()=>c(f),className:`${f===t?"w-8 bg-[#ED6D23]":"w-3 bg-white/60"} h-3 rounded-full transition-all`},f))})]})})}const Y2=[{key:"sanrakshika",title:"Sanrakshika",desc:"Compassionate protectors, our Sanrakshikas are dedicated female caretakers who ensure safety, structure, and disciplineâoffering protective care.",img:"/images/059A0109_w5gdie.jpg"},{key:"samposhini",title:"Samposhini",desc:"A nurturing guide and counsellor, our Samposhini offers motherly careâproviding emotional support, daily guidance, and heartfelt mentorship to help each child grow with confidence and clarity.",img:"/images/Rectangle_70_haob7j.jpg"},{key:"marg",title:"Marg Darshini",desc:"Senior students mentor younger ones, building leadership, responsibility, and empathy through peer learning.",img:"/images/Marg_Darshini_cs8hci.jpg"},{key:"tutoring",title:"Tutoring",desc:"Personalized Mentorship in both scholastic and co-scholastic subjects.",img:"/images/Tutoring_xcxj8r.jpg"}
542,{key:"weekend",title:"Weekend Leisure",desc:"Regular indoor games, weekend movie screenings, and light recreational activities.",img:"/images/Weekend_Leisure_sulnqa.jpg"}];function Kde(){const[t,e]=T.useState("sanrakshika"),n=Y2.find(s=>s.key===t)||Y2[0];return o.jsx("section",{className:"py-12 md:py-16",style:{backgroundColor:sl.light},children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[1290px]",children:[o.jsx(jp,{title:"Pillars of Care",subtitle:"From daily care to guided learning and weekend fun, we support your child's growthâboth inside and outside the classroom."}),o.jsxs("div",{className:"mt-10 grid md:grid-cols-2 gap-10 items-start",children:[o.jsxs("div",{className:"relative rounded-xl overflow-hidden shadow-sm",children:[o.jsx("style",{children:` 543 @keyframes fadeIn { from {opacity: 0} to {opacity: 1} } 544 .animate-fadeIn { animation: fadeIn .35s ease-out; } 545 `}),o.jsx("img",{src:n.img,alt:n.title,className:"w-full h-[300px] md:h-[360px] object-cover animate-fadeIn"},n.img+t)]}),o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"absolute left-2 top-0 bottom-0 w-px bg-[#D9DFEA]"}),o.jsx("ul",{className:"space-y-4 pl-6",children:Y2.map(s=>{const r=s.key===t;return o.jsx("li",{children:o.jsx("button",{onClick:()=>e(s.key),className:"w-full text-left cursor-pointer",children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"mt-2 h-5 w-[3px] rounded",style:{backgroundColor:r?sl.orange:"transparent"}}),o.jsxs("div",{children:[o.jsx("h4",{className:"univers-regular",style:{color:r?"#1C3664":"#9CA3AF",fontWeight:r?"600":"400"},children:s.title}),r&&o.jsx("p",{className:"mt-1 text-[14px] text-[#3A2323] max-w-prose",children:s.desc})]})]})})},s.key)})})]})]})]})})}function Yde({cards:t}){const[e,n]=T.useState(0);return o.jsxs("div",{className:"relative mt-10",children:[o.jsx("div",{className:"relative h-[320px] overflow-hidden rounded-lg",children:t.map((s,r)=>o.jsxs("div",{className:`${r===e?"opacity-100 z-10":"opacity-0 z-0 pointer-events-none"} absolute inset-0 transition-opacity duration-300 ease-out`,children:[o.jsx("img",{src:s.img,alt:s.title,className:"block w-full h-full object-cover",draggable:"false"}),o.jsxs("div",{className:"absolute bottom-0 left-0 right-0 px-6 py-6 text-white",style:{background:"linear-gradient(to top, rgba(237,109,35,0.95) 0%, rgba(237,109,35,0.7) 50%, transparent 100%)"},children:[o.jsx("h4",{className:"univers-regular font-semibold mb-2",children:s.title}),o.jsx("p",{className:"text-[14px] leading-relaxed opacity-95",children:s.excerpt})]})]},r))}),o.jsx("div",{className:"mt-6 flex justify-center gap-2",children:t.map((s,r)=>o.jsx("button",{"aria-label":`Go to slide ${r+1}`,onClick:()=>n(r),className:`${r===e?"w-6 bg-[#ED6D23]":"w-2 bg-[#D9DFEA]"} h-2 rounded-full transition-all`},r))})]})}const Xde=[{img:mn.hc1,title:"Health Committee",excerpt:"Looks after studentsâ
545well-being through regular check-ups, health awareness, and support during illness."},{img:mn.hc2,title:"Discipline Committee",excerpt:"Maintains order and responsibilityâmaking sure everyone follows routines, eats well, and respects shared spaces."},{img:mn.hc3,title:"Fun Committee",excerpt:"Plans events, games, and celebrations that everyone can enjoy together."},{img:mn.hc4,title:"Mess Committee",excerpt:"Manages meals with careâoverseeing serving, cleanliness, and ensuring no food is wasted."},{img:mn.hc5,title:"Grooming Committee",excerpt:"Ensures cleanliness, proper uniform, and personal hygiene through weekend checks and grooming activities."}];function Zde(){xs({title:"Girls Boarding & Hostel Facilities | Amatir Kanya Gurukul",description:"Discover safe and comfortable boarding facilities at Amatir Kanya Gurukul in Haryana. Secure hostels, nutritious meals, 24/7 care and a nurturing environment for girls.",keywords:""}),Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const[t,e]=T.useState(!1);return o.jsxs("main",{className:"w-full text-[#1C3664]",children:[o.jsx("style",{children:` 546 .no-scrollbar::-webkit-scrollbar { display: none; } 547 .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } 548 `}),o.jsxs("section",{className:"relative flex items-end",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:mn.heroBg,alt:"Boarding hero",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#002F82]/80 via-transparent to-transparent"}),o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px] pb-[4%] flex flex-col items-center",children:[o.jsx("img",{src:mn.orangeIcon,alt:"",className:"mb-3 h-12 w-12 md:h-[60px] md:w-[60px]"}),o.jsx("h1",{className:"text-white text-[40px] md:text-[64px] leading-none font-semibold",style:{marginBottom:"35%"},children:"Boarding"})]})]}),o.jsx(Wde,{}),o.jsx(Vde,{}),o.jsx(Gde,{}),o.jsx(qde,{}),o.jsx(Kde,{}),o.jsxs("section",{className:"py-10 md:py-16 bg-white",children:[o.jsxs("div",{className:"mx-auto w-[90%] max-w-[960px]",children:[o.jsx(jp,{title:"A Glimpse into Campus living"}),o.jsxs("div",{className:"relative mt-6 rounded-lg overflow-hidden",children:[o.jsx("img",{src:mn.glimpseThumb,alt:"",className:"w-full h-[260px] md:h-[420px] object-cover"}),o.jsx("button",{onClick:()=>e(!0),className:"absolute inset-0 grid place-items-center cursor-pointer","aria-label":"Play video",children:o.jsx("span",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-white/30 backdrop-blur-sm grid place-items-center",children:o.jsx("span",{className:"ml-1 border-l-[14px] border-l-white border-y-[10px] border-y-transparent"})})})]})]}),t&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:n=>n.target===n.currentTarget&&e(!1),children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/U5qyakZJKX4?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),o.jsx("button",{onClick:()=>e(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"})]})]})]}),o.jsx(eP,{}),o.jsx("section",{className:"py-12 md:py-20 bg-white",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[1290px]",children:[o.jsx(jp,{title:"Happiness Council",subtitle:"Rooted in kindness and led by students, the Happiness Council helps make hostel life joyful, caring, and full of connection."}),o.jsx(Yde,{cards:Xde})]})}),o.jsx(Yp,{images:[mn.g1,mn.g2,mn.g3,mn.g4,mn.g5,mn.g6,mn.g7,mn.g8],title:"Gallery",subtitle:"Festival Celebrations at Amatir"}),o.jsx(Ude,{title:"Hostel Rules Handbook",subtitle:"Find all the essential information about Hostel Rules, Hostel Schedule, Parents and Guardians Visit timings in the pdf attached below.",tone:"blue",button:"Download Handbook",bgImg:mn.ctaBlue,target:"_blank",link:"/hostel_handbook.pdf"}),o.jsx("section",{className:"w-full",children:o.jsxs("div",{className:"relative overflow-hidden py-12 md:py-16",children:[o.jsx("img",{src:"/images/Rectangle_78_qtbute.jpg",alt:"",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:sl.orange,opacity:.8}}),o.jsxs("div",{className:"relative h-full flex flex-col items-center justify-center text-center",style:{padding:"0 6vw"},children:[o.jsx("h3",{style:{color:"#FFFFFF",fontFamily:"ui-serif, Georgia, serif",fontWeight:400,fontSize:"8vw",lineHeight:1.15,marginBottom:"1.2vh",letterSpacing:".01em"},children:"Unlock her future!"}),o.jsx("p",{style:{color:"#FFFFFF",fontFamily:"ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto",fontSize:"4.2vw",lineHeight:1.5,marginBottom:"2.4vh"},children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/contact",className:"inline-flex items-center justify-center",style:{background:sl.navy,color:"#FFFFFF",borderRadius:"9999px",height:"3.2rem",padding:"0 2.2rem",fontSize:"4.2vw",fontWeight:600},children:"Get in Touch"})]})]})}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}
548const Tu={orange:"#ED6D23"},$t={heroBg:"/images/KUM_4268_n3aexj.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",fabric:"/images/Rectangle_78_qtbute.jpg",labImgs:["/images/Computer_bczvhv.jpg","/images/Maths_d5ehuh.jpg","/images/Science_txnonf.jpg","/images/English_j4htsv.jpg","/images/Home_Science_u2xuae.jpg"],playground:"/images/Rectangle_98_1_xn7cwt.jpg",library:"/images/Library_gr22nx.jpg",digital:"/images/AMATIR_6_geidan.jpg",transport:"/images/Transport_e9tm8p.jpg",embibe:"/images/AMATIR_7_vbdu6t.jpg",g0:"/images/Library02_w8x3om.jpg",g1:"/images/Hostel-Mess12_f5aibz.jpg",g2:"/images/Hostel-Mess09_mphvrz.jpg",g3:"/images/WhatsApp_Image_2025-04-07_at_9.33.15_AM_ukxhnh.jpg",g4:"/images/Hostel-Mess07_q9wobz.jpg",g5:"/images/IMG-20221023-WA0036_h8r74k.jpg",g6:"/images/Hostel-Mess02_jrvhny.jpg",g7:"/images/Hostel-Mess05_hxmj9g.jpg",videoThumb:"/images/AMATIR_7_vbdu6t.jpg",boardingCarousel:["/images/fACI-BOARDING_ma9lsv.jpg","/images/FACI-BOARDING02_ig2wqh.jpg","/images/FACI-BOARDING03_pciakx.jpg"]};function Jde(){xs({title:"Best School Infrastructure in Haryana | Amatir Kanya Gurukul",description:"Explore Amatir Kanya Gurukul's modern campus in Kurukshetra featuring smart classrooms, science labs, sports facilities, girls hostels and a secure CBSE learning environment.",keywords:""});const t=Y({maxWidth:768}),e=Y({maxWidth:1024}),n=Y({maxHeight:600}),s=()=>t?"calc(100vh - 4rem)":e?"calc(100vh - 5rem)":n?"calc(100vh - 4.5rem)":"calc(100vh - 5.5rem)",r=T.useMemo(()=>({playground:{label:"Playground",title:"Active Outdoor Spaces",text:"Our spacious playground offers children a safe and active space to play, explore, and build essential physical and social skills. Daily outdoor time is a key part of our balanced learning approach, and one more reason Amatir is counted among the best school infrastructure in Haryana.",img:$t.playground,alt:"Playground"},library:{label:"Library",title:"Building a Reading Habit",text:" A calm, welcoming space filled with age-appropriate books, educational materials, and story collections. It nurtures a love for reading, imagination, and independent learning.",img:$t.library,alt:"Library"},digital:{label:"Digital Classroom",title:"Technology-Enabled Classrooms",text:"Modern classrooms equipped with smart boards and digital learning tools bring lessons to life. This is where digital education in Gurukul meets interactivity and engagement.",img:$t.digital,alt:"Digital classrooms"},transport:{label:"Transport",title:"Secure School Transport",text:"The school transport system is designed with student safety as the top priority. GPS-enabled buses, verified drivers, and trained attendants ensure a reliable, comfortable, and secure commute for every child.",img:$t.transport,alt:"School transport"},embibe:{label:"Embibe",title:"Smart Learning with Embibe",text:"Through our partnership with Embibe, we offer personalized learning support using AI-driven tools. Students benefit from tailored practice, instant feedback, and deeper understanding across subjects.",img:$t.embibe,alt:"Embibe"}}),[]),a=["playground","library","digital","transport","embibe"],[l,c]=T.useState("playground"),u=[{key:"computer",title:"Computer",desc:"Interactive lab sessions that strengthen digital literacy and practical tech skills.",img:$t.labImgs[0]},{key:"maths",title:"Maths",desc:"A focused space for logical reasoning, problem-solving, and applied mathematics.",img:$t.labImgs[1]},{key:"science",title:"Science",desc:"Equipped for safe and engaging experiments that bring scientific concepts to life.",img:$t.labImgs[2]},{key:"english",title:"English",desc:"Helps students build confidence in reading, writing, speaking, and listening.",img:$t.labImgs[3]},{key:"home",title:"Home Science",desc:"A hands-on space to learn essential life skillsâfrom nutrition to cooking and home management.",img:$t.labImgs[4]}],[f,m]=T.useState("computer"),g=u.find(F=>F.key===f)||u[0],[x,b]=T.useState(!1),[v,w]=T.useState(0),[N,_]=T.useState(null),[E,k]=T.useState(null),C=50,A=F=>{k(null),_(F.targetTouches[0].clientX)},L=F=>{k(F.targetTouches[0].clientX)},M=()=>
548{if(!N||!E)return;const F=N-E,U=F>C,q=F<-C;U?w(ae=>(ae+1)%$t.boardingCarousel.length):q&&w(ae=>(ae-1+$t.boardingCarousel.length)%$t.boardingCarousel.length)},O=[$t.g0,$t.g1,$t.g2,$t.g3,$t.g4,$t.g5,$t.g6,$t.g7].filter(Boolean),P=F=>O[F%O.length],H=[P(0),P(1),P(2),P(3),P(4),P(5),P(6),P(7)],V=Is();return o.jsxs("main",{className:"w-full text-[#1C3664]",children:[o.jsx("style",{children:` 549 .fade-in { opacity: 0; animation: fadeIn 220ms cubic-bezier(0.33, 1, 0.68, 1) forwards; will-change: opacity } 550 @keyframes fadeIn { to { opacity: 1 } } 551 552 .infra-hr { height:1px; background:#E6EDF7; } 553 .acc-row { padding: 14px 0; border-bottom: 1px solid #EEF2F8; } 554 .acc-label { display:flex; align-items:center; justify-content:space-between; } 555 .acc-label-text { font-family: "CentSchbkCyrill BT", serif; font-weight: 400; font-size: 18px; } 556 .acc-label-text.off { color:#99A6BD; } 557 .acc-label-text.on { color:#1C3664; } 558 .acc-underline { width:42px; height:3px; background:#ED6D23; border-radius:9999px; margin-top:6px; } 559 560 .acc-chev { width:28px; height:28px; border-radius:9999px; display:grid; place-items:center; 561 background:#F6EFEA; transition: transform .25s ease, background .25s ease; } 562 .acc-chev.on { background:#ED6D23; } 563 .acc-chev svg { width:14px; height:14px; stroke:#ED6D23; transition: transform .25s ease, stroke .25s ease; } 564 .acc-chev.on svg { stroke:#FFFFFF; transform: rotate(180deg); } 565 `}),o.jsxs("section",{className:"relative flex items-end",style:{height:s()},children:[o.jsx("img",{src:$t.heroBg,alt:"Facilities hero",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#002F82]/80 via-transparent to-transparent"}),o.jsxs("div",{className:"relative mx-auto w-[90%] max-w-[1290px] pb-[4%] flex flex-col items-center",children:[o.jsx("img",{src:$t.orangeIcon,alt:"",className:"mb-3 h-12 w-12 md:h-[60px] md:w-[60px]"}),o.jsx("h1",{className:"text-white leading-none font-semibold",style:{fontSize:t?36:64,marginBottom:t?"6%":"10%"},children:"Facilities"})]})]}),o.jsxs("section",{className:"relative w-screen",children:[o.jsx("img",{src:$t.fabric,alt:"",className:"absolute inset-0 h-[220px] md:h-[300px] w-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(237,109,35,0.86)"}}),o.jsx("div",{className:"relative mx-auto max-w-[1290px] px-5 sm:px-8",children:o.jsx("div",{className:"h-[220px] md:h-[300px] flex items-center justify-center text-center text-white",children:o.jsxs("div",{className:"max-w-4xl",children:[o.jsx("h3",{className:"cent-schbk-cyrill",children:"Campus Facilities"}),o.jsx("p",{className:"mt-3 md:mt-4 text-[14px] md:text-[16px] leading-relaxed",children:"Every corner of our CBSE school campus in Kurukshetra has been designed with one goal in mind: giving students a place where learning, comfort, and growth go hand in hand."})]})})})]}),o.jsx("section",{className:"max-w-6xl mx-auto px-4 md:px-6 py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-10 items-center",children:[o.jsxs("div",{className:"md:order-2",children:[o.jsx("div",{className:"relative h-[260px] sm:h-[320px] md:h-[420px] rounded-lg overflow-hidden shadow cursor-grab active:cursor-grabbing",onTouchStart:A,onTouchMove:L,onTouchEnd:M,children:o.jsx("img",{src:$t.boardingCarousel[v],alt:"Dorm rooms",className:"w-full h-full object-cover select-none"})}),o.jsx("div",{className:"mt-4 flex md:hidden items-center justify-start gap-1.5 pl-1",children:$t.boardingCarousel.map((F,U)=>o.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${U===v?"bg-[#ED6D23]":"bg-[#D9D9D9]"}`},U))}),o.jsxs("div",{className:"mt-5 hidden md:flex items-center justify-center gap-4",children:[o.jsx("button",{onClick:()=>w(F=>(F-1+$t.boardingCarousel.length)%$t.boardingCarousel.length),className:"w-11 h-11 rounded-full border-2 flex items-center justify-center transition hover:bg-[#ED6D23] hover:text-white cursor-pointer",style:{borderColor:Tu.orange,color:Tu.orange},"aria-label":"Previous image",children:o.jsx("span",{className:"text-lg",children:"â¹"})}),o.jsx("button",{onClick:()=>w(F=>(F+1)%$t.boardingCarousel.length),className:"w-11 h-11 rounded-full border-2 flex items-center justify-center transition hover:bg-[#
565ED6D23] hover:text-white cursor-pointer",style:{borderColor:Tu.orange,color:Tu.orange},"aria-label":"Next image",children:o.jsx("span",{className:"text-lg",children:"âº"})})]})]}),o.jsxs("div",{className:"md:order-1",children:[o.jsx("h2",{className:"text-[#1C3664]",style:{fontWeight:600,fontSize:t?"28px":"40px",lineHeight:1.2},children:"Boarding"}),o.jsx("p",{className:"mt-3 max-w-[520px] text-[#3A2323] univers-regular",children:"Boarding at Amatir is more than accommodation, it's a nurturing experience that reflects our standing among the best school facilities in Kurukshetra. Our CBSE Gurukul facilities provide a warm, caring space where children grow, build friendships, and learn independence, a true second home that nurtures physical and mental well-being. Behind that experience are some of the more thoughtfully designed girls hostel facilities in Haryana, built to feel less like a dormitory and more like home."}),o.jsx("a",{href:"/boarding",className:"mt-6 inline-flex items-center justify-center rounded-full text-white text-[14px] cursor-pointer",style:{width:"134px",height:"50px",borderRadius:"100px",background:Tu.orange},children:"Know more"})]})]})}),o.jsx("section",{className:"bg-[#F5F5F5] py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-4 md:px-6 py-2 w-full",children:[o.jsxs("div",{className:"text-center mb-6 md:mb-8",children:[o.jsx("h2",{className:"font-[400] leading-[1.2] text-[#1C3664]",style:{fontSize:t?28:44},children:"Laboratory"}),o.jsx("p",{className:"text-[#3A2323] max-w-[820px] mx-auto text-center univers-regular leading-[1.5] mt-2",style:{fontSize:t?16:18},children:"As a Gurukul academy committed to holistic education, our campus includes state-of-the-art labs, smart classrooms, and hands-on experiential learning that help students explore, experiment, and apply knowledge across disciplines. It's this setup that makes Amatir a genuine school with smart classrooms and science labs, not just on paper, but in the way students learn every day."})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-start",children:[o.jsx("div",{className:"rounded-lg overflow-hidden shadow-md fade-in order-1",children:o.jsx("img",{src:g.img,alt:g.title,className:"w-full h-full object-cover"})},f),o.jsxs("div",{className:"relative order-2",children:[o.jsx("div",{className:"absolute left-2 top-0 bottom-0 w-px bg-[#D9DFEA] hidden md:block"}),o.jsx("ul",{className:"space-y-4 pl-0 md:pl-6",children:u.map(F=>{const U=F.key===f;return o.jsx("li",{children:o.jsx("button",{onClick:()=>m(F.key),className:"w-full text-left cursor-pointer",children:o.jsxs("div",{className:"flex items-stretch gap-3",children:[o.jsx("span",{className:"self-stretch w-[3px] rounded",style:{backgroundColor:U?Tu.orange:"transparent"}}),o.jsxs("div",{children:[o.jsx("h4",{style:{fontWeight:U?600:400,fontSize:t?24:32,lineHeight:"140%",color:U?"#1C3664":"#9CA3AF"},children:F.title}),U&&o.jsx("p",{className:"mt-1 text-[14px] md:text-[16px] text-[#3A2323] max-w-prose",children:F.desc})]})]})})},F.key)})})]})]})]})}),o.jsx("section",{className:"bg-white py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"max-w-6xl mx-auto px-4 md:px-6 w-full",children:[o.jsx("h2",{className:"text-center text-[#1C3664]",style:{fontWeight:400,fontSize:t?28:44},children:"Infrastructure"}),o.jsx("p",{className:"my-3 text-center text-slate-600 max-w-[860px] mx-auto univers-regular",style:{fontSize:t?16:18},children:"Smart, student-first spaces built for curiosity, comfort, and connectionâbecause great learning starts with the right setting."}),!t&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"mt-10 flex flex-wrap justify-center gap-8 md:gap-10",children:a.map(F=>o.jsx("button",{onClick:()=>c(F),className:"pb-2 cursor-pointer","aria-selected":l===F,style:{fontWeight:400,fontSize:28,borderBottom:l===F?"2px solid #002F82":"2px solid transparent",color:l===F?"#002F82":"#1C3664"},children:r[F].label},F))}),o.jsxs("div",{className:"mt-12 grid md:grid-cols-2 gap-10 items-center fade-in",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-[#1C3664]",style:{fontWeight:400,fontSize:44},children:r[l].title}),o.jsx("p",{className:"mt-2 text-slate-700 univers-regular",children:r[l].text})]}),o.jsx("div",{className:"rounded-lg overflow-hidden shadow-md",children:o.jsx("img",{src:r[l].img,alt:r[l].alt,className:"w-full h-80 object-cover"})})]},l)]}),t&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"infra-hr my-4"}),o.jsx("div",{className:"mt-2",children:a.map(F=>{const U=l===F,{label:q,title:ae,text:B,img:$,alt:X}=r[F];return o.jsxs("div",{className:"acc-row",children:[o.jsxs("button",{onClick:()=>c(F),className:"w-full text-left cursor-pointer","aria-expanded":U,"aria-controls":`infra-panel-${F}`,children:[o.jsxs("div",{className:"acc-label",children:[o.jsx("span",{className:`acc-label-text ${U?"on":"off"}`,children:q}),o.jsx("span",{className:`acc-chev ${U?"on":""}
565`,"aria-hidden":!0,children:o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),U&&o.jsx("div",{className:"acc-underline"})]}),U&&o.jsxs("div",{id:`infra-panel-${F}`,className:"pt-3 fade-in",children:[o.jsx("h4",{className:"text-[#1C3664]",style:{fontWeight:400,fontSize:28},children:ae}),o.jsx("p",{className:"mt-2 text-[#3A2323] univers-regular",children:B}),o.jsx("div",{className:"mt-3 rounded-[12px] overflow-hidden shadow-md",children:o.jsx("img",{src:$,alt:X,className:"w-full h-[184px] object-cover"})})]})]},F)})})]})]})}),o.jsx("section",{className:"bg-white py-8 sm:py-12 md:py-16 lg:py-20",children:o.jsxs("div",{className:"mx-auto w-[90%] max-w-[1100px]",children:[o.jsx("h2",{className:"text-[#1C3664] text-center",style:{fontWeight:400,fontSize:t?26:44},children:"Step Inside: Facilities and Amenities at a Glance"}),o.jsxs("div",{className:"relative group mt-6 rounded-[12px] overflow-hidden",children:[o.jsx("img",{src:$t.videoThumb,alt:"Campus video",className:"w-full h-[220px] sm:h-[340px] md:h-[520px] object-cover"}),o.jsx("button",{onClick:()=>b(!0),"aria-label":"Play video",className:"absolute inset-0 grid place-items-center cursor-pointer",children:o.jsx("span",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-white/30 backdrop-blur-sm grid place-items-center",children:o.jsx("span",{className:"ml-1 border-l-[14px] border-l-white border-y-[10px] border-y-transparent"})})})]})]})}),x&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:F=>F.target===F.currentTarget&&b(!1),children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/ka7pC-SeEdQ?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),o.jsx("button",{onClick:()=>b(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"})]})]}),o.jsx(Yp,{images:H,title:"Gallery",subtitle:"Festival Celebrations at Amatir"}),o.jsxs("section",{className:"relative isolate w-full py-14 text-center text-white",children:[o.jsx("img",{src:$t.fabric,alt:"",className:"absolute inset-0 -z-10 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 -z-10 bg-[#ED6D23]/85 py-14"}),o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsx("h4",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[22px] md:text-[26px] mb-2",children:"Unlock her future!"}),o.jsx("p",{className:"mx-auto max-w-[640px] text-[14.5px] leading-[1.85] mb-4",children:"Guided by Dharma, Prepared for the World."}),o.jsx("button",{onClick:()=>V("/contact"),className:"rounded-full bg-[#1C3664] px-6 py-2 text-white shadow-[0_12px_28px_rgba(0,29,73,0.16)] cursor-pointer",children:"Get in Touch"})]})]}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}const Il={navy:"#1C3664",lightCream:"#F7EFE6",lightBlue:"#E9EFF6"},Au={yoga:"/images/Rectangle_68_xsl4fb.jpg",vedic:"/images/Rectangle_70_zzamla.jpg",academics:"/images/Rectangle_71_qm2vlk.jpg",arts:"/images/Rectangle_88_bkq74c.jpg",care:"/images/Rectangle_73_oe6xrk.jpg",reflection:"/images/Rectangle_80_lwbyul.jpg"},f0=(t,e,n)=>Math.min(n,Math.max(e,t)),Qde=t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,f6=.05,eue=.2,tue=30,nue=.15,iue=.25,sue=7200,m0=.02,m6=1,rue=1.9;function aue({onAllCardsStacked:t}){const e=T.useRef(null),[n,s]=T.useState(!1),[r,a]=T.useState(0),l=T.useRef(!1),[c,u]=T.useState(0),f=T.useRef(null),m=T.useRef(null),g=T.useRef(0),x=T.useMemo(()=>[{id:"yoga",eyebrow:"Yoga and Sports",title:"I Begin My Day With Calm, Clarity and Strength",copy:"Our mornings begin with a choice of three essentials: energizing sports to awaken the body, yoga to calm the mind, and mindful practices to build focus and inner strength",img:Au.yoga,bg:Il.lightCream,color:"#3B82F6"},{id:"vedic",eyebrow:"Vedic Living and Education",title:"Tradition Isn't Just What I Know; It's How I Live",copy:"Chanting, Meditation, and Hawans are part of our daily routine. We don't just learn about traditionâwe practice it, live it, and carry it forward with meaning and pride.",img:Au.vedic,bg:Il.lightBlue,color:"#FF6B6B"},{id:"academics",eyebrow:"Academic Learning and NEET/JEE Coaching",title:"I Study Not Just to Know, but to Grow",copy:"Our CBSE curriculum goes beyond textbooks. With hands-on learning, real-world skills, and values woven in, we grow into curious thinkers, confident doers, and grounded individuals.",img:Au.academics,bg:Il.lightCream,color:"#20B2AA"},{id:"arts",eyebrow:"Art, Music, and Creative Expression",title:"I Explore Who I Am Beyond Marks",copy:"Through music, dance, theatre, art, and creative expressionâeven cookingâwe discover what excites us, build confidence, and grow into who we truly are.",img:Au.arts,bg:Il.lightBlue,color:"#8B5CF6"},{id:"community",eyebrow:"Community Living and Shared Responsibilities",t
565itle:"I Learn to Care â For Myself and the World Around Me",copy:"By leading councils, managing events, and working in teams, we learn to take charge, support one another, and lead with empathy. Through Chetna-Prabha, we also grow from withinâlearning to care deeply for ourselves and those around us.",img:Au.care,bg:Il.lightCream,color:"#FFD700"},{id:"reflection",eyebrow:"Reflection and Emotional Wellbeing",title:"I End My Day with Purpose, Reflection, and Joy",copy:"Evenings are a blend of guided tutoring, indoor games, weekend movie nights, and joyful leisure. As the day winds down, we return to our cozy accommodations for a restful sleep.",img:Au.reflection,bg:Il.lightBlue,color:"#1E40AF"}],[]),b=[{widthPct:90,maxW:400},{widthPct:78,maxW:350},{widthPct:82,maxW:360},{widthPct:75,maxW:340},{widthPct:80,maxW:355},{widthPct:88,maxW:385}],v=[-18,16,-19,17,-20,15],w=[{x:-8,y:-12},{x:12,y:-6},{x:-6,y:10},{x:14,y:12},{x:2,y:-14},{x:-12,y:2}],N={height:"100vh"},_=()=>typeof window<"u"&&window.visualViewport&&window.visualViewport.height?Math.max(1,Math.floor(window.visualViewport.height)):Math.max(1,window.innerHeight||1),E=()=>
565{if(!e.current)return 0;const B=e.current.getBoundingClientRect(),$=_();return Math.max(0,Math.min(B.bottom,$)-Math.max(B.top,0))/$},k=()=>{m.current!=null&&Math.abs(window.scrollY-m.current)>.5&&window.scrollTo(0,m.current)},C=(B=!1)=>{if(!e.current)return;const $=e.current.getBoundingClientRect(),X=window.scrollY,xe=_(),I=X+$.top+$.height/2-xe/2;if(m.current=Math.round(I),B)try{window.scrollTo({top:m.current,behavior:"smooth"})}catch{window.scrollTo(0,m.current)}else Math.abs(window.scrollY-m.current)>.5&&window.scrollTo(0,m.current)},A=()=>{if(f.current!=null)return;const B=()=>{if(!n){f.current=null;return}k(),f.current=requestAnimationFrame(B)};f.current=requestAnimationFrame(B)},L=()=>{f.current!=null&&(cancelAnimationFrame(f.current),f.current=null)},M=B=>{g.current+=B;let $=B/sue;$>m0&&($=m0),$<-m0&&($=-m0),a(X=>f0(X+$,0,1))},O=B=>{const $=B.deltaY>0?1:-1;if(!n){if(E()>=f6&&($>0&&r<1||$<0&&r>0)){C(!1),s(!0),B.preventDefault(),B.stopPropagation(),M((B.deltaY||0)*m6);return}return}B.preventDefault(),B.stopPropagation(),k(),M((B.deltaY||0)*m6)},P=T.useRef({x:0,y:0}),H=T.useRef(0),V=B=>{B.touches?.length&&(P.current={x:B.touches[0].clientX,y:B.touches[0].clientY},H.current=Date.now())},F=B=>{if(!B.touches?.length)return;const $=B.touches[0].clientY,X=B.touches[0].clientX,xe=X-P.current.x,I=$-P.current.y,Z=I<0?1:-1,le=Date.now(),fe=Math.max(1,le-(H.current||le)),we=Math.abs(I)/fe,Ie=f0(1+we*6,1,2.2);if(!n){const Re=E(),Te=typeof window<"u"&&("ontouchstart"in window||(navigator&&navigator.maxTouchPoints||0)>0)?eue:f6;if(Re>=Te&&(Z>0&&r<1||Z<0&&r>0))C(!0),s(!0);else return}B.preventDefault(),B.stopPropagation(),k(),!(Math.abs(xe)>Math.abs(I)*1.2)&&(M(-I*rue*Ie),P.current={x:X,y:$},H.current=le)},U=B=>{n&&(["ArrowDown","PageDown"," "].includes(B.key)?(B.preventDefault(),k(),M(160)):["ArrowUp","PageUp"].includes(B.key)&&(B.preventDefault(),k(),M(-160)))};T.useEffect(()=>{window.addEventListener("wheel",O,{passive:!1}),window.addEventListener("touchstart",V,{passive:!1}),window.addEventListener("touchmove",F,{passive:!1}),window.addEventListener("keydown",U);const B=document.documentElement,$=B.style.overscrollBehaviorY;n&&(B.style.overscrollBehaviorY="contain",A());const X=()=>{const xe=E(),Z=typeof window<"u"&&("ontouchstart"in window||(navigator&&navigator.maxTouchPoints||0)>0)?iue:nue;let le=f0(xe/Z,0,1);n&&(le=1),u(le)};return X(),window.addEventListener("scroll",X,{passive:!0}),()=>{window.removeEventListener("wheel",O),window.removeEventListener("touchstart",V),window.removeEventListener("touchmove",F),window.removeEventListener("keydown",U),window.removeEventListener("scroll",X),B.style.overscrollBehaviorY=$||"",L()}},[n,r]),T.useEffect(()=>{r>=1?(!l.current&&t&&(l.current=!0,t(!0)),s(!1),m.current=null,L()):r<=0&&(s(!1),m.current=null,L())},[r,t]);const q=1/x.length,ae=x.map((B,$)=>{const X=$%2===0,xe=$*q,I=($+1)*q,Z=f0((r-xe)/(I-xe),0,1),le=Qde(Z),fe=X?-110:110,we=w[$].x,Ie=w[$].y,Re=v[$],Oe=`translateX(calc(-50% + ${(1-le)*fe}vw))`,Qe=le<1?Oe:"translateX(-50%)",Ze=`translateY(calc(-50% + ${Ie}px))`,Tt=le>=1?` translateX(${we}px)`:"",mt=le,Ke=10+$,ct=b[$];return{container:{width:`${ct.widthPct}%`,maxWidth:`${ct.maxW}px`,left:"50%",top:"50%",transform:`${Qe} ${Ze}${Tt} rotate(${Re}deg) translateZ(0)`,opacity:mt,zIndex:Ke,transition:"transform 140ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms cubic-bezier(0.22, 1, 0.36, 1)",willChange:"transform, opacity",backfaceVisibility:"hidden",transformOrigin:"50% 50%"}}});return o.jsx("section",{ref:e,className:"w-full relative",style:{...N,opacity:c,transition:"opacity 260ms ease",willChange:"opacity"},children:o.jsx("div",{className:"sticky top-0 h-screen w-full overflow-hidden flex items-center justify-center",style:{pointerEvents:"none",touchAction:n?"none":"auto"},children:o.jsx("div",{className:"relative w-full h-full",children:x.map((B,$)=>o.jsxs("div",{className:"absolute rounded-lg shadow-lg overflow-hidden",style:{...ae[$].container,background:B.bg,borderRadius:12},children:[o.jsxs("div",{className:"relative overflow-hidden",style:{height:`${tue}vh`},children:[o.jsx("img",{src:B.img,alt:B.eyebrow,className:"w-full h-full",style:{objectFit:"cover",objectPosition:"center"}}),o.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.28) 100%)"}})]}),o.jsxs("div",{className:"px-4 py-4",style:{background:B.bg,pointerEvents:"auto",textAlign:"left",wordBreak:"break-word",overflowWrap:"break-word",maxHeight:"calc(60vh - 2rem)",overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:[o.jsx("style",{jsx:!0,children:` 566 div::-webkit-scrollbar {
567 display: none; /* hide scrollbar on mobile */ 568 } 569 `}),o.jsx("h3",{style:{fontSize:"clamp(16px, 4vw, 22px)",fontWeight:600,lineHeight:1.3,color:B.color,marginBottom:"0.8vh",fontFamily:"ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto",letterSpacing:"0.01em"},children:B.eyebrow}),o.jsx("p",{style:{fontSize:"clamp(18px, 4.5vw, 26px)",fontWeight:500,lineHeight:1.4,color:Il.navy,marginBottom:"1vh",fontFamily:"ui-sans-serif, Georgia, serif"},children:B.title}),o.jsx("p",{style:{fontSize:"clamp(14px, 3.5vw, 18px)",lineHeight:1.6,color:"#374151",marginBottom:"1.8vh",fontFamily:"ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto"},children:B.copy}),o.jsx("a",{href:"/contact",className:"inline-flex items-center",style:{color:Il.navy,fontSize:"clamp(14px, 3.5vw, 18px)",fontWeight:600,textDecoration:"underline",fontFamily:"ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto"},children:"Know More â"})]})]},B.id))})})})}const pb={navy:"#1C3664",orange:"#ED6D23"},Fo={hero:"/images/Life_at_Amatir_Header_khfdft.jpg",orangeIcon:"/images/Orange_Icon_i299iz.svg",g1:"/images/Rectangle_79_fyl7o9.jpg",g2:"/images/Rectangle_86_bo10va.jpg",g3:"/images/Rectangle_85_srkhhg.jpg",g4:"/images/Rectangle_84_uhkl4w.jpg",g5:"/images/Rectangle_68_xsl4fb.jpg",g6:"/images/Rectangle_71_qm2vlk.jpg",ctaBg:"/images/Rectangle_82_pdadc9.jpg"};function oue(){const[t,e]=T.useState(!1);return o.jsxs(o.Fragment,{children:[o.jsx(aue,{onAllCardsStacked:e}),t&&o.jsx(lue,{})]})}function lue(){const t=T.useMemo(()=>[Fo.g1,Fo.g2,Fo.g3,Fo.g4,Fo.g5,Fo.g6],[]),[e,n]=T.useState(0);return T.useEffect(()=>{const s=setInterval(()=>n(r=>(r+1)%t.length),2e3);return()=>clearInterval(s)},[t.length]),o.jsxs("section",{className:"w-full",style:{padding:"2vh 5vw 1vh 5vw"},children:[o.jsx("h3",{className:"text-center",style:{color:pb.navy,fontFamily:"ui-serif, Georgia, serif",fontWeight:400,fontSize:"8vw",lineHeight:1.1,marginBottom:"1.2vh"},children:"Gallery"}),o.jsx("p",{className:"text-center",style:{color:"#111827",fontSize:"4vw",lineHeight:1.5,marginBottom:"2.4vh",fontFamily:"ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto"},children:"Festival Celebrations at Amatir"}),o.jsx("div",{className:"relative w-full overflow-hidden",style:{borderRadius:"0",aspectRatio:"1 / 1"},children:o.jsx("div",{className:"flex h-full transition-transform",style:{transform:`translateX(-${e*100}%)`,transition:"transform .6s ease"},children:t.map((s,r)=>o.jsx("div",{className:"shrink-0 h-full",style:{width:"100%"},children:o.jsx("img",{src:s,alt:"",className:"block w-full h-full object-cover object-top"})},r))})}),o.jsx("div",{className:"flex items-center justify-center",style:{marginTop:"1.8vh",gap:".6rem"},children:t.map((s,r)=>o.jsx("button",{onClick:()=>n(r),"aria-label":`Go to slide ${r+1}`,className:"rounded-full",style:{width:".5rem",height:".5rem",background:r===e?pb.orange:"#D1D5DB"}},r))})]})}function cue(){return o.jsx("section",{className:"w-full",style:{padding:"1vh 5vw 5vh 5vw"},children:o.jsxs("div",{className:"relative overflow-hidden",style:{borderRadius:"0",height:"36vh",minHeight:"20rem"},children:[o.jsx("img",{src:Fo.ctaBg,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{backgroundColor:pb.orange,opacity:.92}}),o.jsxs("div",{className:"relative h-full flex flex-col items-center justify-center text-center",style:{padding:"0 6vw"},children:[o.jsx("h3",{style:{color:"#FFFFFF",fontFamily:"ui-serif, Georgia, serif",fontWeight:400,fontSize:"8vw",lineHeight:1.15,marginBottom:"1.2vh",letterSpacing:".01em"},children:"Unlock her future!"}),o.jsx("p",{style:{color:"#FFFFFF",fontFamily:"ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto",fontSize:"4.2vw",lineHeight:1.5,marginBottom:"2.4vh"},children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/contact",className:"inline-flex items-center justify-center",style:{background:pb.navy,color:"#FFFFFF",borderRadius:"9999px",height:"3.2rem",padding:"0 2.2rem",fontSize:"4.2vw",fontWeight:600},children:"Download"})]})]})})}function due(){return o.jsx("section",{className:"w-full",style:{padding:"0 5vw 6vh"},children:o.jsx("div",{className:"overflow-hidden",style:{borderRadius:"0",height:"42vh"},children:o.jsx("iframe",{title:"School Location",className:"w-full h-full",src:"https://www.openstreetmap.org/export/embed.html?bbox=77.5%2C12.8%2C77.7%2C13.1&layer=mapnik",loading:"lazy"})})})}function uue(){return xs({title:"Holistic Student Development | Amatir Kanya Gurukul",description:"Experience holistic student development at Amatir Kanya Gurukul through Gurukul values, yoga, leadership, cultural activities, life skills and character building.",keywords:""}),o.jsxs("main",{className:"w-full overflow-x-hidden",children:[o.jsxs("section",{className:"relative flex items-end h-screen",children:[o.jsx("img",{src:Fo.hero,alt:"Students",className:"absolute inset-0 w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.70) 100%)"}}),o.jsxs("div",{className:"relative w-full flex flex-col items-center",style:{paddingBottom:"6vh"},children:[o.jsx("img",{src:Fo.orangeIcon,alt:"",style:{width:"12vw",maxWidth:"3.6rem",marginBottom:"1.2vh",filter:"drop-shadow(0 0 .2rem rgba(0,0,0,.4))"}}),o.jsx("h1",{className:"text-center",style:{color:"#FFFFFF",fontFamily:"ui-serif, Georgia, serif",fontWeight:400,fontSize:"9vw",lineHeight:1.05,letterSpacing:".01em"},children:"Life at Amatir"})]})]}),o.jsx(oue,{}),o.jsx(cue,{}),o.jsx(due,{})]})}const p6="#0E2349",g6="#1C3664",hue="#F6F8FB",p0={hero:"/images/3_10_xq0avb.jpg",accent:"/images/Orange_Icon_i299iz.svg",videoThumb:"/images/Rectangle_98_qeqks9.jpg",bannerImg:"/images/Rectangle_63_byhglx.jpg"};function fue(){const t=Y({maxWidth:480}),e=Y({minWidth:481,maxWidth:767}),n=Y({minWidth:768,maxWidth:1023}),s=Y({minWidth:1024,maxWidth:1366});Y({minWidth:1367});const r=Y({maxWidth:1300});Y({maxWidth:1024}),Y({maxHeight:600});const[a,l]=T.useState(!1),c=T.useRef(null);return T.useEffect(()=>{const u=c.current;if(u){u.innerHTML="";const f="https://crm.mediagarh.com/CRM/forms/public/35",m=window.location.href,g=f+"?embed=1&landing_url="+encodeURIComponent(m),x=document.createElement("iframe");x.id="crm-form-35",x.src=g,x.style.width="100%",x.style.height="600px",x.style.border="0",x.style.background="transparent",u.appendChild(x)}},[]),o.jsxs("div",{className:"min-h-screen w-full bg-white text-slate-800 overflow-x-hidden",children:[o.jsxs("section",{className:"relative",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:p0.hero,alt:"Campus aerial",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(14,35,73,0.35)"}}
569),o.jsxs("div",{className:"absolute inset-x-0 bottom-[12%] flex flex-col items-center justify-end px-4",children:[o.jsx("img",{src:p0.accent,alt:"",className:`mb-4 opacity-95 ${t?"h-6 w-6":e?"h-8 w-8":s?"h-9 w-9":"h-10 w-10"}`}),o.jsx("h1",{className:`px-4 text-center font-serif leading-none text-white ${t?"text-[28px]":e?"text-[32px]":n?"text-[48px]":s?"text-[56px]":"text-[64px]"}`,style:{textShadow:"0 2px 14px rgba(0,0,0,.25)",marginBottom:"35%"},children:"Campus Visit"})]})]}),o.jsx("section",{className:`mx-auto ${t?"w-[95%]":r?"w-[94%]":"w-[92%]"} ${r?"max-w-[1200px]":"max-w-[1180px]"} ${t?"py-8":e?"py-10":s?"py-12":"py-12 md:py-20"}`,children:o.jsxs("div",{className:`flex flex-col items-start ${e?"gap-6":s?"gap-8":"gap-10"} ${n||s?"md:flex-row md:items-center md:gap-8":"md:flex-row md:items-center md:gap-14"}`,children:[o.jsxs("div",{className:"w-full md:w-1/2",children:[o.jsx("h2",{className:`mb-4 font-serif ${t?"text-[24px]":e?"text-[28px]":s?"text-[32px]":"text-[30px] md:text-[40px]"}`,style:{color:g6},children:"See It for Yourself"}),o.jsxs("div",{className:`space-y-5 text-slate-700 ${t?"text-[14px] leading-6":e?"text-[15px] leading-7":s?"text-[16px] leading-7":"text-[16px] leading-7 md:text-[17px] md:leading-8"}`,children:[o.jsx("p",{children:"Step into the world of Amatirâan inspiring girls gurukul in Kurukshetra, Haryana. Nestled in a scenic, secure, and pollution-free 30-acre campus, Amatir offers a vibrant residential experience for over 300 girls. During your interactive school visit, youâll explore our thoughtfully designed school and hostel facilities, meet our educators, and witness a unique blend of modern CBSE education and timeless Indian values."}),o.jsx("p",{children:"We place special emphasis on discipline, culture, and holistic developmentâensuring that every child grows with clarity, confidence, and character."}),o.jsx("p",{children:"We place special emphasis on discipline, culture, and holistic developmentâensuring that every child grows with clarity, confidence, and character."})]})]}),o.jsxs("div",{className:"w-full md:w-1/2",children:[o.jsxs("div",{className:"relative overflow-hidden rounded-xl shadow-lg",children:[o.jsx("img",{src:p0.videoThumb,alt:"Campus life video",className:"h-full w-full object-cover"}),o.jsx("button",{"aria-label":"Play video",className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white/90 backdrop-blur hover:bg-white ${t?"p-3":e||s?"p-4":"p-5"}`,onClick:()=>l(!0),children:o.jsx(Q8,{className:`${t?"h-6 w-6":e||s?"h-7 w-7":"h-8 w-8"}`,style:{color:p6}})})]}),a&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:u=>u.target===u.currentTarget&&l(!1),children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/U5qyakZJKX4?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),o.jsx("button",{onClick:()=>l(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"})]})]})]})]})}),o.jsx("section",{className:`${t?"py-12":e?"py-14":s?"py-16":"py-16 md:py-20"}`,style:{background:hue},children:o.jsxs("div",{className:`mx-auto ${t?"w-[95%]":r?"w-[94%]":"w-[92%]"} ${r?"max-w-[800px]":"max-w-[760px]"}`,children:[o.jsx("h3",{className:`text-center font-serif leading-tight ${t?"text-[24px]":e?"text-[26px]":s?"text-[30px]":"text-[28px] md:text-[34px]"}`,style:{color:g6},children:"Campus Visit Registration Form"}),o.jsx("p",{className:`mx-auto mt-3 ${r?"max-w-[720px]":"max-w-[680px]"} text-center ${t?"text-[14px] leading-6":e||s?"text-[15px] leading-7":"text-[15px] md:text-[16px] leading-7"} text-slate-600`,children:"Please fill out the form below to schedule your visit and let us know your preferred date and time. Our admissions team will get in touch with you shortly."}),o.jsx("div",{className:"w-full mt-8 rounded-xl overflow-hidden relative",style:{minHeight:"600px"},children:o.jsx("div",{ref:c,id:"crm-form-container-35",className:"w-full h-full"})})]})}),o.jsxs("section",{className:"relative w-full",children:[o.jsx("img",{src:p0.bannerImg,alt:"",className:`w-full object-cover ${t?"h-[200px]":e?"h-[240px]":s?"h-[280px]":"h-[260px] md:h-[300px]"}`}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(237,109,35,0.88)"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-4 text-center text-white",children:[o.jsx("h3",{className:`font-serif ${t?"text-[22px]":e?"text-[24px]":s?"text-[30px]":"text-[26px] md:text-[34px]"}`,children:"Unlock her future!"}),o.jsx("p",{className:`mt-2 ${r?"max-w-[720px]":"max-w-[680px]"} ${t?"text-[14px] leading-6":e||s?"text-[15px] leading-7":"text-[15px] leading-7 md:text-[16
569px]"}`,children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/contact",className:`mt-5 inline-flex items-center gap-2 rounded-full px-5 py-2 font-semibold text-white ${t?"text-[14px]":"text-[15px]"}`,style:{background:p6},children:"Get in Touch"})]})]}),o.jsx("section",{className:"relative w-full",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Location",className:`w-full ${t?"h-[300px]":e?"h-[360px]":s?"h-[400px]":"h-[420px] md:h-[520px]"}`,src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed&z=12",loading:"lazy"})})]})}const Xf={hero:"/images/Copy_of_IMG_20250905_112441_pjh7h0.jpg",accent:"/images/Orange_Iocn_fnx3aw.svg",thumb:"/images/Rectangle_98_rrzfkj.jpg",openPositionsBg:"/images/Rectangle_35_tetoe6.jpg",orangeBanner:"/images/Rectangle_63_f9abnb.jpg"},Zf=({label:t,selected:e,onClick:n})=>o.jsx("button",{type:"button","aria-pressed":e,onClick:n,className:`rounded border px-3 py-1 text-[12px] leading-6 transition ${e?"bg-[#1C3664] text-white border-[#1C3664]":"bg-white text-[#1C3664] border-slate-300 hover:border-[#1C3664]"}`,children:t});function mue(){const[t,e]=T.useState("1-2"),[n,s]=T.useState("Married"),[r,a]=T.useState("Yes"),[l,c]=T.useState("Good"),[u,f]=T.useState("Internship");return o.jsxs("div",{className:"min-h-screen w-full bg-white text-slate-800",children:[o.jsxs("section",{className:"relative h-[calc(100vh)] w-full",children:[o.jsx("img",{src:Xf.hero,alt:"Careers hero",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(14,35,73,0.42)]"}),o.jsxs("div",{className:"absolute inset-x-0 bottom-[12%] flex flex-col items-center",children:[o.jsx("img",{src:Xf.accent,alt:"",className:"mb-3 h-8 w-8 md:h-10 md:w-10"}),o.jsx("h1",{className:"px-4 text-center font-serif text-[36px] leading-none text-white md:text-[56px]",style:{marginBottom:"35%"},children:"Careers"})]})]}),o.jsx("section",{className:"mx-auto w-[92%] max-w-[1180px] py-12 md:py-16",children:o.jsxs("div",{className:"grid grid-cols-1 items-start gap-8 md:grid-cols-12",children:[o.jsxs("div",{className:"md:col-span-7",children:[o.jsx("h2",{className:"font-serif text-[#1C3664] text-[26px] md:text-[34px] leading-snug",children:"Teach, Inspire and Grow"}),o.jsx("p",{className:"mt-4 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:"At Amatir, we believe that teaching is more than just a profession â it is a calling to shape the minds and hearts of future generations. When you join Gurukul school life at Amatir, you become part of a vibrant learning community inspired by the rich tradition of Gurukul in India, where education goes beyond academics to nurture values, integrity, curiosity, and lifelong growth."}),o.jsx("p",{className:"mt-4 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:"We are looking for passionate educators seeking teaching jobs for CBSE and who are committed to excellence, innovation, and unlocking the potential of every student. At Amatir, you will:"}),o.jsxs("ul",{className:"mt-5 list-disc space-y-3 pl-5 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:[o.jsxs("li",{children:[o.jsx("span",{className:"font-medium",children:"Work with purpose:"})," Contribute to a meaningful educational mission that prioritizes character, critical thinking, well-being, and value-based teaching roles rooted in timeless wisdom and modern relevance."]}),o.jsxs("li",{children:[o.jsx("span",{className:"font-medium",children:"Collaborate with a dedicated team:"})," Be part of a supportive environment where educators share ideas, learn from one another, and grow together, much like the Gurukul academy jobs of ancient and modern India."]}),o.jsxs("li",{children:[o.jsx("span",{className:"font-medium",children:"Make a lasting impact:"})," Inspire students to become confident, compassionate individuals who are prepared for the challenges of tomorrow."]})]}),o.jsx("p",{className:"mt-5 text-[14px] md:text-[15.5px] leading-7 text-[#3A3A3A]",children:"If you are seeking a workplace that recognizes your contribution, encourages professional development, and offers the opportunity to make a real difference, we invite you to explore career with purpose opportunities at Amatir."}),o.jsx("a",{href:"#apply",className:"mt-7 inline-block rounded-full bg-[#ED6D23] px-6 py-2 text-[14px] font-semibold text-white",children:"Apply"})]}),o.jsx("div",{className:"md:col-span-5",children:o.jsxs("div",{className:"relative overflow-hidden rounded-[14px] shadow-sm",children:[o.jsx("img",{src:Xf.thumb,alt:"Teach at Amatir",className:"block h-[280px] w-full object-cover md:h-[360px]"}),o.jsx("div",{className:"absolute inset-0 bg-black/20"})]})})]})}),o.jsxs("section",{className:"relative overflow-hidden border-y border-white/20",children:[o.jsx("img",{src:Xf.openPositionsBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[#1C3664]/92"}),o.jsx("div",{className:"relative z-[1] px-6 py-14 md:py-16",children:o.jsxs("div",{className:"mx-auto w-[92%] max-w-[980px] text-center text-white",children:[o.jsx("h2",{className:"font-serif text-[26px] md:text-[32px]",children:"Open Positions"}),o.jsx("p",{className:"mx-auto mt-3 max-w-[920px] text-[14px] md:text-[16
569px] leading-8 text-white/95",children:"Amatir is always looking for passionate and skilled educators who are eager to inspire young minds and contribute to a values-driven learning environment. Explore our current opportunities and discover how you can be part of a dynamic and supportive team."}),o.jsx(Ve,{to:"#apply",className:"mt-6 inline-flex items-center justify-center rounded-full bg-[#ED6D23] px-6 py-2 text-[14px] font-semibold text-white shadow-sm hover:brightness-105",children:"Download"})]})})]}),o.jsxs("section",{id:"apply",className:"mx-auto w-[92%] max-w-[740px] py-14 md:py-18",children:[o.jsx("h2",{className:"text-center font-serif text-[26px] md:text-[30px] text-[#1C3664]",children:"Apply Now"}),o.jsxs("p",{className:"mx-auto mt-2 max-w-[560px] text-center text-[14px] leading-7 text-[#3A3A3A]",children:["Ready to take the next step in your teaching career? ",o.jsx("br",{className:"hidden md:block"}),"Click below to view available roles and submit your application."]}),o.jsxs("form",{className:"mt-8 grid grid-cols-1 gap-4",children:[o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Full name",o.jsx("input",{type:"text",placeholder:"Enter your Full name",className:"mt-1 w-full rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Email address",o.jsx("input",{type:"email",placeholder:"[email protected]",className:"mt-1 w-full rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Phone number",o.jsx("input",{type:"tel",placeholder:"Enter your Phone Number",className:"mt-1 w-full rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-[12px] text-[#1C3664]",children:"What is your Total Teaching and/or Administrative Experience?"}),o.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:["0-1","1-2","2-4","5-8","8-10","10+"].map(m=>o.jsx(Zf,{label:m,selected:m===t,onClick:()=>e(m)},m))})]}),o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Have you completed B.Ed, M.Ed, NIS Diploma, or any equivalent qualification?",o.jsx("input",{type:"text",placeholder:"Enter your qualifications",className:"mt-1 w-full rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-[12px] text-[#1C3664]",children:"Marital Status"}),o.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:["Single","Married","Other"].map(m=>o.jsx(Zf,{label:m,selected:m===n,onClick:()=>s(m)},m))})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-[12px] text-[#1C3664]",children:"Would you be willing to stay as a resident staff on the school campus?"}),o.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:["Yes","No"].map(m=>o.jsx(Zf,{label:m,selected:m===r,onClick:()=>a(m)},m))})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-[12px] text-[#1C3664]",children:"What is your level of proficiency in English?"}),o.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:["Excellent","Good","Average","Below Average"].map(m=>o.jsx(Zf,{label:m,selected:m===l,onClick:()=>c(m)},m))})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-[12px] text-[#1C3664]",children:"Which position are you applying for?"}),o.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:["Volunteering","Internship","Staff"].map(m=>o.jsx(Zf,{label:m,selected:m===u,onClick:()=>f(m)},m))})]}),o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Current Salary (if employed)",o.jsx("input",{type:"text",placeholder:"Enter current salary",className:"mt-1 w-full rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Expected Salary",o.jsx("input",{type:"text",placeholder:"Enter expected salary",className:"mt-1 w-full rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Notice Period",o.jsx("input",{type:"text",placeholder:"Enter notice period",className:"mt-1 w-full rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsxs("label",{className:"text-[12px] text-[#1C3664]",children:["Additional Information (if any)",o.jsx("textarea",{rows:"6",placeholder:"Enter any additional information",className:"mt-1 w-full resize-none rounded border border-slate-300 bg-white px-3 py-2 text-[13px] outline-none focus:border-[#1C3664]"})]}),o.jsx("button",{type:"submit",className:"mt-2 inline-flex w-max items-center justify-center rounded-full bg-[#ED6D23] px-6 py-2 text-[14px] font-semibold text-white",children:"Submit"})]})]}),o.jsxs("section",{className:"relative w-full",children:[o.jsx("img",{src:Xf.orangeBanner,alt:"",className:"h-[260px] w-full object-cover md:h-[300px]"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(237,109,35,0.88)]"}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-4 text-center text-white",children:[o.jsx("h3",{className:"font-serif text-[24px] md:text-[28px]",children:"Unlock her future!"}),o.jsx("p",{className:"mt-2 max-w-[680px] text-[14px] leading-7 md:text-[15px]",children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{to:"/contact",className:"mt-5 inline-flex items-center gap-2 rounded-full bg-[#0E2349] px-5 py-2 text-[14px] font-semibold text-white",children:"Get in Touch"})]})]}),o.jsx("section",{className:"relative w-full",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Location",className:"h-[420px] w-full md:h-[520px]",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed&z=12",loading:"lazy"})})]})}const Ni={orangeIcon:"/images/Orange_Icon_gij4bd.svg",hero:"/images/AMATIR_6_jianmt.jpg",heroMobile:"/images/Main-cocurricular_1_mqjnop.jpg",band:"/images/Rectangle_110_z3567i.jpg",s1:"/images/Rectangle_100_vk5mbc.jpg",s2:"/images/Rectangle_101_vwxaqf.jpg",s3:"/images/Rectangle_107_mjkkny.jpg",s6:"/images/Rectangle_103_lc0vlr.jpg",s8:"/images/Rectangle_104_v05owv.jpg",s9:"/images/Rectangle_113_wtshss.jpg",performing:"/images/Dance_owgas0.jpg",gA:"/images/WhatsApp_Image_2025-08-20_at_10.16.46_AM_1_ddz0gj.jpg",gB:"/images/WhatsApp_Image_2025-08-20_at_11.36.55_AM_1_wgsj3d.jpg",gC:"/images/IMG_8832_1_7_mius2b.png",gD:"/images/5_9_b94vtl.jpg",gE:"/images/2_3_hkh6bu.jpg",gF:"/images/4_6_ovy129.jpg",gG:"/images/4_5_zz0lvg.jpg",gH:"/images/4_2_ppfqip.jpg"},Sh=({dir:t="left",onClick:e})=>o.jsx("button",{onClick:e,className:"grid h-10 w-10 place-items-center rounded-full border border-[#
569ED6D23] text-[#ED6D23] hover:bg-[#ED6D23] hover:text-white transition-colors cursor-pointer","aria-label":t==="left"?"Previous":"Next",children:t==="left"?o.jsx("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("path",{d:"M15 18l-6-6 6-6",strokeLinecap:"round",strokeLinejoin:"round"})}):o.jsx("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("path",{d:"M9 6l6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})})}),pue=()=>{const n=[Ni.s1,Ni.s8],s=[Ni.s2,Ni.s6],r=[Ni.s3,Ni.s9],a=[n,s,r],c=[0,.25*388,0],u=({src:f})=>o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_14px_32px_rgba(0,29,73,0.14)]",style:{height:186},children:o.jsx("img",{src:f,alt:"",className:"h-full w-full object-cover"})});return o.jsx("section",{className:"bg-[#F7F9FB] py-12",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsx("div",{className:"grid grid-cols-3",style:{gap:"16px"},children:a.map((f,m)=>o.jsx("div",{style:{marginTop:c[m]},children:o.jsx("div",{className:"flex flex-col",style:{gap:"16px"},children:f.map((g,x)=>o.jsx(u,{src:g},x))})},m))}),o.jsxs("div",{className:" mx-auto text-center z-20 pt-10",style:{marginTop:"-6%",width:"100%"},children:[o.jsx("h2",{className:"font-['CentSchbkCyrill_BT',_serif] font-normal not-italic text-[44px] leading-[120%] tracking-normal text-center",children:"Sports"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[720px] text-center font-['Univers',_sans-serif] font-normal not-italic text-[18px] leading-[1.5] tracking-[-0.02em] text-[#2b2b2b]",children:"At Amatir, the spirit of discipline, teamwork, and excellence is forged on the field. Through expert coaching in volleyball, basketball, football, handball, athletics, taekwondo, and access to a 400m track, our students consistently excelâfrom district tournaments to national stages like Khelo India."})]})]})})},gue=()=>{const t=["/images/NCC1_nse9hs.jpg","/images/NCC2_yatduy.jpg","/images/NCC3_p3yo6h.jpg"],[e,n]=$e.useState(0);return o.jsx("section",{className:"py-14 bg-white",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"grid items-start gap-10 md:grid-cols-[1fr_600px]",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"mb-2 font-['CentSchbkCyrill_BT',_serif] font-normal not-italic text-[44px] leading-[120%] tracking-normal text-[#1C3664]",children:"NCC"}),o.jsx("p",{className:"max-w-[520px] text-[14.5px] leading-[1.85] text-[#2b2b2b]",children:"As part of the 10th Haryana Battalion Senior Wing, our NCC unit instills discipline, leadership, and national pride. Through drills, camps, and training, cadets build resilience, responsibility, and the strength to serve society with confidence."})]}),o.jsx("div",{className:"justify-self-end",children:o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",children:o.jsx("div",{className:"relative w-[min(600px,90vw)] pb-[66%]",children:o.jsx("img",{src:t[e],alt:"NCC",className:"absolute inset-0 h-full w-full object-cover"})})})})]}),o.jsxs("div",{className:"mt-5 flex justify-center gap-6",children:[o.jsx(Sh,{dir:"left",onClick:()=>n(s=>(s-1+t.length)%t.length)}),o.jsx(Sh,{dir:"right",onClick:()=>n(s=>(s+1)%t.length)})]})]})})},xue=()=>{const[t,e]=$e.useState("music"),n={music:{title:"Music",content:"Opportunities to learn instruments, Indian vocals, and build confidence through rhythm, melody, and teamwork."},dance:{title:"Dance",content:"Encourages expression, coordination, and joy through Indian classical dance and creative movement."},theater:{title:"Theatre",content:"Builds communication skills, stage presence, and self-confidence through acting and storytelling."}};return o.jsx("section",{className:"py-14 bg-[#F5F5F5]",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h2",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"44px",lineHeight:"120%",letterSpacing:"0%",textAlign:"center",color:"#1C3664"},className:"mb-2",children:"Performing Arts"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[560px] text-center",style:{fontFamily:"Univers, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"18px",lineHeight:"150%",letterSpacing:"-0.02em",color:"#2b2b2b"},children:"Encouraging students to explore their voice, presence, and passion through meaningful artistic experiences."})]}),o.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-[560px_1fr]",children:[o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",children:o.jsx("img",{src:t==="music"?"/images/Music_kv48l2.jpg":t==="dance"?"/images/Dance_owgas0.jpg":t==="theater"?"/images/Theater_mcahmk.jpg":Ni.performing,alt:"",className:"h-[420px] w-full object-cover"})}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-start gap-4 transition-all duration-200 cursor-pointer",onClick:()=>e("music"),children:[o.jsx("div",{className:"h-20 w-[2px] rounded",style:{backgroundColor:t==="music"?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("div",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:t==="music"?600:4
56900,fontStyle:"normal",fontSize:"32px",lineHeight:"140%",letterSpacing:"0%",color:t==="music"?"#1C3664":"#9CA3AF"},children:n.music.title}),t==="music"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.music.content})]})]}),o.jsxs("div",{className:"flex items-start gap-4 transition-all duration-200 cursor-pointer",onClick:()=>e("dance"),children:[o.jsx("div",{className:"h-20 w-[2px] rounded",style:{backgroundColor:t==="dance"?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("div",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:t==="dance"?600:400,fontStyle:"normal",fontSize:"32px",lineHeight:"140%",letterSpacing:"0%",color:t==="dance"?"#1C3664":"#9CA3AF"},children:n.dance.title}),t==="dance"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.dance.content})]})]}),o.jsxs("div",{className:"flex items-start gap-4 transition-all duration-200 cursor-pointer",onClick:()=>e("theater"),children:[o.jsx("div",{className:"h-20 w-[2px] rounded",style:{backgroundColor:t==="theater"?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("div",{style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:t==="theater"?600:400,fontStyle:"normal",fontSize:"32px",lineHeight:"140%",letterSpacing:"0%",color:t==="theater"?"#1C3664":"#9CA3AF"},children:n.theater.title}),t==="theater"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.theater.content})]})]})]})]})]})})},yue=()=>{const[t,e]=$e.useState(!1);return o.jsxs("section",{className:"py-14 bg-white",children:[o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)] text-center",children:[o.jsx("h2",{className:"mb-6",style:{fontFamily:"CentSchbkCyrill BT, serif",fontWeight:400,fontStyle:"normal",fontSize:"44px",lineHeight:"120%",letterSpacing:"0%",textAlign:"center",color:"#1C3664"},children:"Creative Expressions"}),o.jsxs("div",{className:"relative group mt-6 rounded-[12px] overflow-hidden",children:[o.jsx("img",{src:"/images/Reading_gghzie.jpg",alt:"Campus video",className:"w-full h-[220px] sm:h-[340px] md:h-[520px] object-cover"}),o.jsx("button",{onClick:()=>e(!0),"aria-label":"Play video",className:"absolute inset-0 grid place-items-center cursor-pointer",children:o.jsx("span",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-white/30 backdrop-blur-sm grid place-items-center",children:o.jsx("span",{className:"ml-1 border-l-[14px] border-l-white border-y-[10px] border-y-transparent"})})})]})]}),t&&o.jsxs("div",{className:"fixed inset-0 z-50",onClick:n=>n.target===n.currentTarget&&e(!1),children:[o.jsx("div",{className:"absolute inset-0 bg-black/70"}),o.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 md:px-6 pt-18",children:[o.jsx("div",{className:"bg-black rounded-xl overflow-hidden shadow-2xl",children:o.jsx("div",{className:"aspect-video",children:o.jsx("iframe",{title:"Campus Video",className:"w-full h-full",src:"https://www.youtube.com/embed/aUzKbx04g9U?autoplay=1&rel=0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),o.jsx("button",{onClick:()=>e(!1),className:"mt-4 inline-flex items-center bg-white text-slate-800 px-4 py-2 rounded-lg cursor-pointer",children:"Close"})]})]})]})},bue=()=>{const t=[{id:"drawing",title:"Drawing",image:"/images/Drawing_hnprij.jpg",description:"Encourages observation and imagination as students bring their ideas to life on paper."},{id:"Paper-Recycling",title:"Paper Recycling",image:"/images/paper_recycling_hxhbap.jpg",description:"Teaches eco-friendly habits by turning waste paper into useful and creative items."},{id:"quilling",title:"Quilling",image:"/images/Quilling02_ftkvyw.jpg",description:"Builds focus and creativity through beautiful paper art made by rolling and shaping strips."},{id:"Painting",title:"Painting",image:"/images/Painting_ntq920.jpg",description:"Lets students express feelings and ideas through colors, brushwork, and visual storytelling."}],e=Y({maxWidth:639}),[n,s]=$e.useState(0),[r,a]=$e.useState(!1);return $e.useEffect(()=>{a(!1)},[n]),o.jsx("section",{className:"py-14 bg-[#0E3773] text-white relative",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h3",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[28px] md:text-[32px]",children:"Fine Arts"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[700px] text-[14.5px] leading-[1.85] opacity-95",children:"Exploring creativity through diverse mediums, our Fine Arts program nurtures expression, environmental awareness, and hands-on skill development."})]}),e?o.jsxs("div",{children:[o.jsxs("div",{className:"relative h-[360px] overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",onClick:()=>a(l=>!l),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onTouchStart:()=>a(!0),children:[o.jsx("img",{src:t[n].image,alt:t[n].title,className:"absolute inset-0 h-full w-full object-cover"}),o.jsxs("div",{className:`absolute inset-x-0 bottom-0 bg-[#ED6D23] text-white px-5 py-4 transition-all duration-300 overflow-hidden ${r?"h-full":"h-[20%]"}`,"aria-expanded":r,children:[o.jsx("div",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[20px] mb-2",children:t[n].title}),o.jsx("p",{className:`text-[14px] leading-[1.5] opacity-95 transition-opacity duration-200 ${r?"opacity-100":"opacity-90 line-clamp-2"}`,children:t[n].description})]})]}),o.jsxs("div",{className:"mt-5 flex justify-center gap-6",children:[o.jsx(Sh,{dir:"left",onClick:()=>s(l=>(l-1+t.length)%t.length)}),o.jsx(Sh,{dir:"right",onClick:()=>s(l=>(l+1)%t.length)})]})]}):o.jsx("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-4",children:t.map(l=>o.jsxs("article",{className:"group relative overflow-hidden rounded-[10px] bg-white text-[#1C3664] cursor-pointer",children:[o.jsx("div",{className:"relative h-[220px] overflow-hidden",children:o.jsx("img",{src:l.image,alt:l.title,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"})}),o.jsx("div",{className:"grid place-items-center bg-[#ED6D23] py-3 text-white font-['CentSchbkCyrill_BT:Roman',_serif] transition-all duration-300 group-hover:bg-[#
569ED6D23]/90",children:l.title}),o.jsxs("div",{className:"absolute inset-0 bg-[#ED6D23]/95 px-5 py-4 text-white transform translate-y-full transition-transform duration-300 group-hover:translate-y-0 flex flex-col justify-center",children:[o.jsx("div",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[20px] mb-2",children:l.title}),o.jsx("p",{className:"text-[14px] leading-[1.5] opacity-95",children:l.description})]})]},l.id))})]})})},vue=()=>{const[t,e]=$e.useState("fashion"),n={fashion:{title:"Fashion Designing",content:"Students explore creativity and style by designing outfits and learning the basics of fashion."},shark:{title:"Shark Tank",content:"A fun, hands-on club where students pitch ideas, learn about business, and build confidence in communication."},tech:{title:"Tech Hackathon",content:"Encourages teamwork and problem-solving as students use technology to build real-world solutions."},vedic:{title:"Vedic Math",content:"Ancient techniques that make math faster, easier, and funâbuilding confidence with every calculation."}};return o.jsx("section",{className:"py-14 bg-[#F5F5F5]",children:o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("div",{className:"cent-schbk-cyrill",children:"Elevate Clubs"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[600px] text-[14.5px] leading-[1.85] text-[#2b2b2b]",children:"Our Elevate Clubs spark creativity and innovationâempowering students to explore their passions and develop real-world skills."})]}),o.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-[560px_1fr]",children:[o.jsx("div",{className:"overflow-hidden rounded-[10px] shadow-[0_16px_40px_rgba(0,29,73,0.16)]",children:o.jsx("img",{src:t==="fashion"?"/images/fashion_desgining_phj71k.jpg":t==="shark"||t==="tech"?"/images/Tech_Hackathon_ryxqzm.jpg":t==="vedic"?"/images/Vedic_Math_pxwnyk.jpg":"/images/fashion_desgining_phj71k.jpg",alt:"",className:"h-[420px] w-full object-cover"})}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-start gap-4 cursor-pointer transition-all duration-200",onClick:()=>e("fashion"),children:[o.jsx("div",{className:"h-20 w-[2px] rounded",style:{backgroundColor:t==="fashion"?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"32px",color:t==="fashion"?"#1C3664":"#9CA3AF",fontWeight:t==="fashion"?600:400},children:n.fashion.title}),t==="fashion"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.fashion.content})]})]}),o.jsxs("div",{className:"flex items-start gap-4 cursor-pointer transition-all duration-200",onClick:()=>e("shark"),children:[o.jsx("div",{className:"h-20 w-[2px] rounded",style:{backgroundColor:t==="shark"?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"32px",color:t==="shark"?"#1C3664":"#9CA3AF",fontWeight:t==="shark"?600:400},children:n.shark.title}),t==="shark"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.shark.content})]})]}),o.jsxs("div",{className:"flex items-start gap-4 cursor-pointer transition-all duration-200",onClick:()=>e("tech"),children:[o.jsx("div",{className:"h-20 w-[2px] rounded",style:{backgroundColor:t==="tech"?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"32px",color:t==="tech"?"#1C3664":"#9CA3AF",fontWeight:t==="tech"?600:400},children:n.tech.title}),t==="tech"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.tech.content})]})]}),o.jsxs("div",{className:"flex items-start gap-4 cursor-pointer transition-all duration-200",onClick:()=>e("vedic"),children:[o.jsx("div",{className:"h-20 w-[2px] rounded",style:{backgroundColor:t==="vedic"?"#ED6D23":"transparent"}}),o.jsxs("div",{children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"32px",color:t==="vedic"?"#1C3664":"#9CA3AF",fontWeight:t==="vedic"?600:400},children:n.vedic.title}),t==="vedic"&&o.jsx("p",{className:"mt-1 max-w-[480px] text-[14.5px] leading-[1.8] text-[#2b2b2b]",children:n.vedic.content})]})]})]})]})]})})},wue=()=>{const t=["/images/Acad-Lab05_ellv9a.jpg","/images/BA-Cooking01_wvgalp.jpg","/images/cooking1_xvgxzy.jpg","/images/cooking2_t0benh.jpg"],[e,n]=$e.useState(0),[s,r]=$e.useState(null),[a,l]=$e.useState(null),c=50,u=g=>{l(null),r(g.targetTouches[0].clientX)},f=g=>{l(g.targetTouches[0].clientX)},m=()=>{if(!s||!a)return;const g=s-a,x=g>c,b=g<-c;x&&n(v=>(v+1)%t.length),b&&n(v=>(v-1+t.length)%t.length)};return o.jsx("section",{className:"py-14 bg-white",children:o.jsxs("div",{className:"mx-auto grid w-[min(1180px,92vw)] items-start gap-8 md:gap-10 md:grid-cols-[1fr_600px]",children:[o.jsxs("div",{className:"order-1 md:order-2 justify-self-center md:justify-self-end",children:[o.jsx("div",{className:"overflow-hidden rounded-[12px] border-4 border-[#1C3664] shadow-[0_16px_40px_rgba(0,29,73,0.16)] curs
569or-pointer",onTouchStart:u,onTouchMove:f,onTouchEnd:m,children:o.jsx("div",{className:"relative w-[min(600px,90vw)] pb-[66%]",children:o.jsx("img",{src:t[e],alt:"",className:"absolute inset-0 h-full w-full object-cover"})})}),o.jsx("div",{className:"mt-5 flex md:hidden items-center gap-2 pl-1",children:t.map((g,x)=>o.jsx("button",{onClick:()=>n(x),"aria-label":`Go to slide ${x+1}`,className:`h-2 w-2 rounded-full ${x===e?"bg-[#ED6D23]":"bg-[#CFCFCF]"}`},x))}),o.jsxs("div",{className:"mt-5 hidden md:flex justify-center gap-6",children:[o.jsx(Sh,{dir:"left",onClick:()=>n(g=>(g-1+t.length)%t.length)}),o.jsx(Sh,{dir:"right",onClick:()=>n(g=>(g+1)%t.length)})]})]}),o.jsxs("div",{className:"order-2 md:order-1 mt-6 md:mt-0",children:[o.jsx("div",{className:"cent-schbk-cyrill",style:{fontSize:"44px",lineHeight:"120%",color:"#1C3664",marginBottom:"0.5rem"},children:"Cooking"}),o.jsx("p",{className:"max-w-[620px] text-[14.5px] leading-[1.85] text-[#2b2b2b]",children:"Cooking is a creative life skill woven into everyday learning. Students explore nutrition, hygiene, food science, and meal planning through hands-on sessions in the kitchen. Fireless Cooking introduces younger students to healthy eating and safety, while the Multi-Cuisine Club lets seniors experiment with regional and global recipesâcelebrating food diversity and teamwork. Every Sunday, senior classes prepare Sunday Snacks for the hostelâplanning, cooking, and serving meals that blend leadership with the joy of sharing. These traditions nurture confidence, collaboration, and a lifelong appreciation for wholesome food."})]})]})})},Nue=()=>{const t=[Ni.gA,Ni.gB,Ni.gC,Ni.gD,Ni.gE,Ni.gH,Ni.gF,Ni.gG];return o.jsx(Yp,{images:t,title:"Gallery",subtitle:"Snapshots of life beyond the classroom"})},Sue=()=>{const[t,e]=$e.useState(window.innerHeight);return $e.useEffect(()=>{const n=()=>{e(window.innerHeight)};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t};function _ue(){const t=Sue(),e=Is();return o.jsxs("main",{className:"bg-white text-[#1C3664]",children:[o.jsxs("section",{className:"relative",style:{height:`${t}px`},children:[o.jsx("img",{src:Ni.heroMobile,alt:"",className:"absolute inset-0 h-full w-full object-cover md:hidden"}),o.jsx("img",{src:Ni.hero,alt:"",className:"absolute inset-0 h-full w-full object-cover hidden md:block"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-[#012a6a] opacity-80"}),o.jsx("div",{className:"relative z-10 flex h-full items-end justify-center text-center text-white pb-[11%]",children:o.jsxs("div",{children:[o.jsx("h1",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[34px] md:text-[42px] leading-tight",style:{marginBottom:"35%"},children:"Co Curricular"}),o.jsx("img",{src:Ni.orangeIcon,alt:"",className:"mx-auto mt-2 h-7 w-7"})]})})]}),o.jsxs("section",{className:"relative isolate w-[80%] mx-auto py-10 text-white w-full",children:[o.jsx("img",{src:Ni.band,alt:"",className:"absolute inset-0 -z-10 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 -z-10 bg-[#ED6D23]/85 "}),o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)] p-10",children:[o.jsx("h3",{className:"font-['CentSchbkCyrill_BT',_serif] font-normal not-italic text-[44px] leading-[140%] tracking-normal ",children:"Beyond the Classroom"}),o.jsx("p",{className:"mx-auto mt-2 max-w-[700px] font-['Univers',_sans-serif] font-normal not-italic text-[16px] leading-[1.5] tracking-normal",children:"At Amatir, we believe that true education nurtures every part of a childâs being. As a leading Gurukul academy focused on holistic growth, our students go far beyond academicsâengaging in music, yoga, sports, creative arts, and leadership-building programs that cultivate balance, creativity, and inner discipline."})]})]}),o.jsx(pue,{}),o.jsx(gue,{}),o.jsx(xue,{}),o.jsx(yue,{}),o.jsx(bue,{}),o.jsx(vue,{}),o.jsx(wue,{}),o.jsx(iP,{}),o.jsx("div",{style:{padding:"3rem",height:"1px",width:"100%"},children:" "}),o.jsx(Nue,{}),o.jsxs("section",{className:"relative isolate w-full py-14 text-center text-white",children:[o.jsx("img",{src:Ni.band,alt:"",className:"absolute inset-0 -z-10 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 -z-10 bg-[#ED6D23]/85 py-14"}),o.jsxs("div",{className:"mx-auto w-[min(1180px,92vw)]",children:[o.jsx("h4",{className:"font-['CentSchbkCyrill_BT:Roman',_serif] text-[22px] md:text-[26px] mb-2",children:"Unlock her future!"}),o.jsx("p",{className:"mx-auto max-w-[640px] text-[14.5px] leading-[1.85] mb-4",children:"Guided by Dharma, Prepared for the World."}),o.jsx("button",{onClick:()=>e("/contact"),className:"rounded-full bg-[#1C3664] px-6 py-2 text-white shadow-[0_12px_28px_rgba(0,29,73,0.16)] curs
569or-pointer",children:"Get in Touch"})]})]}),o.jsx("section",{className:"bg-white",children:o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"absolute left-[5%] top-8 z-10 max-w-[360px] bg-white rounded-lg shadow-xl p-6 hidden md:block",children:[o.jsx("h3",{className:"univers-regular text-[#0E2349]",children:"Amatir Kanya Gurukul Kurukshetra"}),o.jsx("p",{className:"text-[14px] text-[#6c757d] mt-2",children:"Village: Bachgaon Gamri, Lakhi Road, Kurukshetra, Haryana 136119"}),o.jsx("a",{href:"https://maps.google.com/?q=Amatir+Kanya+Gurukul+Kurukshetra",target:"_blank",rel:"noreferrer",className:"inline-block mt-4 text-[#ED6D23] font-semibold",children:"Directions â"})]}),o.jsx("iframe",{title:"Amatir Map",className:"w-full h-[360px] md:h-[520px] border-0",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed",loading:"lazy"})]})})]})}const jue="#ED6D23",Jf="#FEF0E5",Eue="#EAF1FB",no={hero:"/images/AMATIR_6_dpfwbs.jpg",accent:"/images/Orange_Icon_i299iz.svg",academicCal:"/images/AcademicCalenderIcon_imxc41.svg",holidayList:"/images/HolidayListDates_hycg6k.svg",bookReq:"/images/AcademicBo
569okRequirementsIcon_prriwy.svg",transferCert:"/images/TransferCertificatesIcon_cfiyn9.svg",rulesHandbook:"/images/SchoolRulesHandbookIcon_ewnrqx.svg",hostelHandbook:"/images/HostelHandbookIcon_pgdooh.svg",feeStructureBg:"/images/Rectangle_35_e2yzph.jpg",orangeBanner:"/images/Rectangle_63_pctc61.jpg"},kue=[{title:"Academic & Event Calendar",desc:"Stay informed about the key academic dates, term schedules, and important events throughout the year.",icon:no.academicCal,bubble:Jf,href:"/ACADEMIC_CALANDER_2025-26.pdf"},{title:"Holiday List Dates",desc:"View detailed vacation periods and holiday list to help plan family activities and travel in advance.",icon:no.holidayList,bubble:Jf,href:"/Holidays_Exams_ PTM_2025-26.pdf"},{title:"Academic Book Requirements",desc:"Find the complete list of prescribed textbooks and learning materials for all classes.",icon:no.bookReq,bubble:Jf,href:"/Books-2026-27.xlsx"},{title:"Transfer Certificates",desc:"Download guidelines and application forms for obtaining transfer certificates smoothly.",icon:no.transferCert,bubble:Eue,href:"/Transfer_Certificate_2024-25.pdf"},{title:"Hostel Handbook",desc:"Access mandatory disclosures and compliance documents as per CBSE affiliation requirements.",icon:no.hostelHandbook,bubble:Jf,href:"/hostel_handbook.pdf"},{title:"School Rules Handbook",desc:"Review our comprehensive handbook outlining school policies, student responsibilities, and code of conduct.",icon:no.rulesHandbook,bubble:Jf,href:"/school-rules.pdf"}],x6=[["Name of the School","Amatir Kanya Gurukul"],["Affiliation No.","530865"],["School Code","40834"],["Complete Address with Pincode","Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"],["Principal Name & Qualification","Mrs. Gadipalli Madhuri, MSc, BEd"],["School Email ID","[email protected]"],["Contact Details","+91-7027570124"]],y6=[["1","Principal","Gadipalli Madhuri"],["2","Total No. Of Teachers","37"],["","PGT","19"],["","TGT","07"],["","PRT","05"],["3","Teachers Section Ratio","1:15"],["4","Details Of Special Educator","Ms. Malvika Lakhanpal"],["5","Details Of Counsellor And Wellness Teacher","Ms. Malvika Lakhanpal"]],b6=[["1","Total Campus Area Of The School (In Sq Mtr)","37158"],["2","No. And Size Of The Class Rooms (In Sq Mtr)","40 & 432"],["3","No. And Size Of Laboratories Including Computer Labs (In Sq Mtr)","05 & 432"],["4","Internet Facility","Yes"],["5","No. Of Girls Toilets","23"],["6","No. Of Boys Toilets","05"],["7","Link Of Youtube Video Of The Inspection Of School Covering The Infrastructure Of The School","<a href='https://www.youtube.com/watch?v=D-M4oYowgBU' target='_blank' class='underline'>https://www.youtube.com/watch?v=D-M4oYowgBU</a>"]],v6=[["COPIES OF AFFILIATION/UPGRADATION LETTER AND RECENT EXTENSION OF AFFILIATION, I
569F ANY","view","/Affiliation_up_to_Senior_Secondary_Level.pdf"],["COPIES OF SOCIETIES/TRUST/COMPANY REGISTRATION/RENEWAL CERTIFICATE, AS APPLICABLE","view","/Trust_Registration.pdf"],["COPY OF NO OBJECTION CERTIFICATE (NOC) ISSUED, IF APPLICABLE, BY THE STATE GOVT/UT","view","/Copy_of_No_objection_Certificate_noc.pdf"],["COPIES OF RECOGNITION CERTIFICATE UNDER RTE ACT, 2009, AND ITS RENEWAL IF APPLICABLE","view","/Copies_of_Recognition_Certificate_under_RTE_Act.pdf"],["COPY OF VALID BUILDING SAFETY CERTIFICATE AS PER THE NATIONAL BUILDING CODE","view","/Copy_of_Valid_Building_Certificate_as_per_the_National_Building_Code.pdf"],["COPY OF VALID FIRE SAFETY CERTIFICATE ISSUED BY THE COMPETENT AUTHORITY","view","/Copy_of_Fire_Safety_Certificate.pdf"],["COPY OF THE DEO CERTIFICATE SUBMITTED BY THE SCHOOL FOR AFFILIATION/UPGRADATION/EXTENSION OF AFFILIATION OR SELF CERTIFICATION BY SCHOOL","view","/Certificate_issued_by_DEO-2022.pdf"],["COPIES OF VALID WATER, HEALTH AND SANITATION CERTIFICATES","view","/Copies_of_Valid_Water,_Health_&_Sanitation_Certificates.pdf"]],w6=[["FEE STRUCTURE OF THE SCHOOL","view","/FEE_STRUCTURE_2025-26.pdf"],["ANNUAL ACADEMIC CALENDAR","view",""],["LIST OF SCHOOL MANAGEMENT COMMITTEE (SMC)","view","/School_Management_Committee.pdf"],["LIST OF PARENTS TEACHERS ASSOCIATION (PTA) MEMBERS","view","/PARENTS_TEACHERS_ASSOCIATION.pdf"],["LAST THREE-YEAR RESULT OF THE BOARD EXAMINATION AS PER APPLICABILITY","view","/Last_Three_Years_Board_Result.pdf"]],N6={class_x:[{sl_no:1,year:2025,registered_students:58,students_passed:58,pass_percentage:100,remarks:"no"}],class_xii:[{sl_no:1,year:2025,registered_students:59,students_passed:59,pass_percentage:100,remarks:"no"}]};function Cue(){Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const[t,e]=T.useState(!1),[n,s]=T.useState(!1),[r,a]=T.useState(!1),[l,c]=T.useState(!1),[u,f]=T.useState(!1);return o.jsxs("div",{className:"min-h-screen w-full bg-white text-slate-800",children:[o.jsxs("section",{className:"relative w-full",style:{height:"100vh",marginTop:"60px"},children:[o.jsx("img",{src:no.hero,alt:"Essential Guidelines Hero",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(14,35,73,0.42)]"}),o.jsxs("div",{className:"absolute inset-x-0 bottom-[12%] flex flex-col items-center justify-end",children:[o.jsx("img",{src:no.accent,alt:"",className:"mb-3 h-8 w-8 opacity-95 md:h-10 md:w-10"}),o.jsx("h1",{className:"px-4 text-center font-serif text-[36px] leading-none text-white md:text-[56px]",style:{textShadow:"0 2px 14px rgba(0,0,0,.25)",marginBottom:"35%"},children:"Essential Information"})]})]}),o.jsx("section",{className:"mx-auto w-[92%] max-w-[1180px] py-12 md:py-16",children:o.jsx("div",{className:"grid grid-cols-1 gap-y-12 gap-x-8 sm:grid-cols-2 lg:grid-cols-3",children:kue.map((m,g)=>o.jsxs("article",{className:"flex flex-col items-center text-center",children:[o.jsx("div",{className:"mb-4 grid h-20 w-20 place-items-center rounded-full",style:{background:m.bubble},children:o.jsx("img",{src:m.icon,alt:"",className:"h-9 w-9"})}),o.jsx("h3",{className:"font-serif text-[18px] md:text-[20px] text-[#1C3664] leading-tight",style:{letterSpacing:"0.2px"},children:m.title}),o.jsx("p",{className:"mt-3 max-w-[280px] text-[13px] md:text-[14px] leading-6 text-[#3B3B3B]",children:m.desc}),o.jsxs("a",{href:m.href,className:"mt-4 inline-flex items-center gap-2 rounded-full bg-[#ED6D23] px-4 py-2 text-[12px] font-medium text-white",target:"_blank",children:[o.jsx(ab,{className:"h-4 w-4"}),"Download"]})]},m.title+g))})}),o.jsxs("section",{className:"relative overflow-hidden",children:[o.jsx("img",{src:no.feeStructureBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"relative z-[1] bg-[#0E2349]/85 px-6 py-16 md:py-20",children:o.jsxs("div",{className:"mx-auto w-full max-w-[980px] text-center text-white",children:[o.jsx("h2",{className:"font-serif text-[24px] md:text-[28px]",children:"Fee Structure"}),o.jsx("p",{className:"mx-auto mt-3 max-w-[600px] text-[14px] md:text-[15px] leading-7 text-white/90",children:"Find all essential information about fees, concessions, and scholarships in the PDF attached below."}),o.jsxs("a",{href:"/FEE_STRUCTURE_2025-26.pdf",className:"mx-auto mt-6 inline-flex items-center gap-2 rounded-full px-5 py-2.5 text-[14px] font-semibold text-white shadow-[0_8px_24px_rgba(237,109,35,0.35)] hover:brightness-105 transition",style:{background:jue},target:"_blank",children:[o.jsx(ab,{className:"h-4 w-4"}),"Download"]})]})})]}),o.jsxs("section",{className:"mx-auto w-[92%] max-w-[1080px] py-14 md:py-18",id:"cbseDisclosure",children:[o.jsx("h2",{className:"mb-6 text-center font-serif text-[26px] md:text-[30px] text-[#1C3664]",style:{letterSpacing:"0.2px"},children:"CBSE Disclosure"}),o.jsx("div",{className:"overflow-x-auto rounded-md border-slate-200 rounded-lg border border-gray-200 shadow-sm mb-12",children:o.jsxs("div",{className:"p-2",children:[o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-12 bg-[#0E2349] text-white mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3",children:o.jsx("div",{className:"md:col-span-5 px-3 py-3 text-[14px] font-semibold",children:"GENERAL INFORMATION"})}),x6.slice(0,2).map((m,g)=>o.jsxs("div",{className:`p-4 rounded-lg text-[14px] ${g%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"px-3 py-3 text-[14px] font-semibold",children:m[0]}),o.jsx("div",{className:"px-3 py-3",children:m[1]})]},g)),o.jsx(Fu,{children:t&&o.jsx(Hu.div,{initial:{opacity:0,height:0}
569,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:x6.slice(2).map((m,g)=>o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-12 text-[14px] ${(g+2)%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"md:col-span-5 px-3 py-3 text-[14px] font-semibold",children:m[0]}),o.jsx("div",{className:"md:col-span-6 px-3 py-3",children:m[1]})]},g+3))})}),o.jsx("div",{className:"text-right mt-3",children:o.jsx("button",{onClick:()=>e(!t),className:"bg-[#0E2349] text-white px-4 py-2 rounded text-[14px]",children:t?"Show Less":"Show More Details"})})]})}),o.jsx("div",{className:"overflow-x-auto rounded-md border-slate-200 rounded-lg border border-gray-200 shadow-sm mb-12",children:o.jsxs("div",{className:"p-2",children:[o.jsx("div",{className:"grid grid-cols-1 bg-[#0E2349] text-white mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3",children:o.jsx("div",{className:" px-3 py-3 text-[14px] font-semibold",children:"DOCUMENT INFORMATION"})}),v6.slice(0,2).map((m,g)=>o.jsxs("div",{className:`p-4 rounded-lg text-[14px] ${g%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:m[0]}),o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase text-right",children:m[1]==="view"&&m[2]&&o.jsx(Ve,{to:m[2],target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline text-blue-600",children:m[1]})})]},g)),o.jsx(Fu,{children:n&&o.jsx(Hu.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:v6.slice(2).map((m,g)=>o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-12 text-[14px] ${(g+2)%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:m[0]}),o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase text-right",children:m[1]==="view"&&m[2]&&o.jsx(Ve,{to:m[2],target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline text-blue-600",children:m[1]})})]},g+3))})}),o.jsx("div",{className:"text-right mt-3",children:o.jsx("button",{onClick:()=>s(!n),className:"bg-[#0E2349] text-white px-4 py-2 rounded text-[14px]",children:n?"Show Less":"Show More Details"})})]})}),o.jsx("div",{className:"overflow-x-auto rounded-md border-slate-200 rounded-lg border border-gray-200 shadow-sm mb-12",children:o.jsxs("div",{className:"p-2",children:[o.jsx("div",{className:"grid grid-cols-1 bg-[#0E2349] text-white mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3",children:o.jsx("div",{className:" px-3 py-3 text-[14px] font-semibold",children:"RESULT AND ACADEMICS"})}),w6.slice(0,2).map((m,g)=>o.jsxs("div",{className:`p-4 rounded-lg text-[14px] ${g%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:m[0]}),o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase text-right",children:m[1]==="view"&&m[2]&&o.jsx(Ve,{to:m[2],target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline text-blue-600",children:m[1]})})]},g)),o.jsx(Fu,{children:r&&o.jsx(Hu.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:w6.slice(2).map((m,g)=>o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-12 text-[14px] ${(g+2)%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:m[0]}),o.jsx("div",{className:"px-3 py-3 text-[12px] uppercase text-right",children:m[1]==="view"&&m[2]&&o.jsx(Ve,{to:m[2],target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline text-blue-600",children:m[1]})})]},g+3))})}),o.jsx("div",{className:"text-right mt-3",children:o.jsx("button",{onClick:()=>a(!r),className:"bg-[#0E2349] text-white px-4 py-2 rounded text-[14px]",children:r?"Show Less":"Show More Details"})})]})}),o.jsx("div",{className:"overflow-x-auto rounded-md border-slate-200 rounded-lg border border-gray-200 shadow-sm mb-12",children:o.jsxs("div",{className:"p-2",children:[o.jsx("div",{className:"grid grid-cols-1 bg-[#0E2349] text-white mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3",children:o.jsx("div",{className:" px-3 py-3 text-[14px] font-semibold",children:"RESULT CLASS: X"})}),N6.class_x.map((m,g)=>o.jsxs("div",{className:`p-4 rounded-lg text-[14px] ${g%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["Year: ",m.year]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["NO. OF REGIST
569ERED STUDENTS: ",m.registered_students]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["NO. OF STUDENTS PASSED: ",m.students_passed]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["PASS PERCENTAGE: ",m.pass_percentage]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["REMARKS: ",m.remarks]})]},g))]})}),o.jsx("div",{className:"overflow-x-auto rounded-md border-slate-200 rounded-lg border border-gray-200 shadow-sm mb-12",children:o.jsxs("div",{className:"p-2",children:[o.jsx("div",{className:"grid grid-cols-1 bg-[#0E2349] text-white mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3",children:o.jsx("div",{className:" px-3 py-3 text-[14px] font-semibold",children:"RESULT CLASS: XII"})}),N6.class_xii.map((m,g)=>o.jsxs("div",{className:`p-4 rounded-lg text-[14px] ${g%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["Year: ",m.year]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["NO. OF REGISTERED STUDENTS: ",m.registered_students]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["NO. OF STUDENTS PASSED: ",m.students_passed]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["PASS PERCENTAGE: ",m.pass_percentage]}),o.jsxs("div",{className:"px-3 py-3 text-[12px] uppercase font-semibold",children:["REMARKS: ",m.remarks]})]},g))]})}),o.jsx("div",{className:"overflow-x-auto rounded-md border-slate-200 rounded-lg border border-gray-200 shadow-sm mb-12",children:o.jsxs("div",{className:"p-2",children:[o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-12 bg-[#0E2349] text-white mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3",children:o.jsx("div",{className:"md:col-span-5 px-3 py-3 text-[14px] font-semibold",children:"STAFF (TEACHING)"})}),y6.slice(0,2).map((m,g)=>o.jsxs("div",{className:`p-4 rounded-lg text-[14px] ${g%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"px-3 py-3 text-[14px] font-semibold",dangerouslySetInnerHTML:{__html:m[1]}}),o.jsx("div",{className:"px-3 py-3",children:m[2]})]},g)),o.jsx(Fu,{children:l&&o.jsx(Hu.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:y6.slice(2).map((m,g)=>o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-12 text-[14px] ${(g+2)%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"md:col-span-5 px-3 py-3 text-[14px] font-semibold",children:m[1]}),o.jsx("div",{className:"md:col-span-6 px-3 py-3",children:m[2]})]},g+3))})}),o.jsx("div",{className:"text-right mt-3",children:o.jsx("button",{onClick:()=>c(!l),className:"bg-[#0E2349] text-white px-4 py-2 rounded text-[14px]",children:l?"Show Less":"Show More Details"})})]})}),o.jsx("div",{className:"overflow-x-auto rounded-md border-slate-200 rounded-lg border border-gray-200 shadow-sm mb-12",children:o.jsxs("div",{className:"p-2",children:[o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-12 bg-[#0E2349] text-white mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3",children:o.jsx("div",{className:"md:col-span-5 px-3 py-3 text-[14px] font-semibold",children:"SCHOOL INFRASTRUCTURE"})}),b6.slice(0,2).map((m,g)=>o.jsxs("div",{className:`p-4 rounded-lg text-[14px] ${g%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"px-3 py-3 text-[14px] font-semibold",dangerouslySetInnerHTML:{__html:m[1]}}),o.jsx("div",{className:"px-3 py-3",children:m[2]})]},g)),o.jsx(Fu,{children:u&&o.jsx(Hu.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:b6.slice(2).map((m,g)=>o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-12 text-[14px] ${(g+2)%2?"bg-[#F5F7FB]":"bg-white"} mb-2 rounded-lg border border-gray-200 shadow-sm p-4 mb-3`,children:[o.jsx("div",{className:"md:col-span-5 px-3 py-3 text-[14px] font-semibold",dangerouslySetInnerHTML:{__html:m[1]}}),o.jsx("div",{className:"md:col-span-6 px-3 py-3",dangerouslySetInnerHTML:{__html:m[2]}})]},g+3))})}),o.jsx("div",{className:"text-right mt-3",children:o.jsx("button",{onClick:()=>f(!u),className:"bg-[#0E2349] text-white px-4 py-2 rounded text-[14px]",children:u?"Show Less":"Show More Details"})})]})})]}),o.jsxs("section",{className:"relative w-full",children:[o.jsx("img",{src:no.orangeBanner,alt:"",className:"h-[260px] w-full object-cover md:h-[300px]"}),o.jsx("div",{className:"absolute inset-0 bg-[rgba(237,109,35,0.88)]"}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-4 text-center text-white",children:[o.jsx("h3",{className:"font-serif text-[24px] md:text-[28px]",children:"Unlock her future!"}),o.jsx("p",{className:"mt-2 max-w-[680px] text-[14px] leading-7 md:text-[15px]",children:"Guided by Dharma, Prepared for the World."}),o.jsx(Ve,{href:"/contact",className:"mt-5 inline-flex items-center gap-2 rounded-full bg-[#0E2349] px-5 py-2 text-[14px] font-semibold text-white",children:"Get in Touch"})]})]}),o.jsx("section",{className:"relative w-full",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Location",className:"h-[420px] w-full md:h-[520px]",src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed&z=12",loading:"lazy"})})]})}const X2={email:"/images/footer_email_d2ijzo.svg",phone:"/images/footer_phone_e2vyjp.svg",location:"/images/footer_location_dph6is.svg"},Z2={ink:"#0F0F0F",line:"#DADDE3"};function Tue(){xs({title:"Contact Amatir Kanya Gurukul | Kurukshetra, Haryana",description:"Contact Amatir Kanya Gurukul in Kurukshetra, Haryana for admissions and enquiries. Visit our campus, call our team or connect online for more information.",keywords:""});
569const[t,e]=T.useState({name:"",email:"",phone:"",message:""}),[n,s]=T.useState({name:!1,email:!1,phone:!1,message:!1}),r=T.useRef(null);return T.useEffect(()=>{const a=r.current;if(a){a.innerHTML="";const l="https://connect.amatir.org/CRM/forms/public/17",c=window.location.href,u=l+"?embed=1&landing_url="+encodeURIComponent(c),f=document.createElement("iframe");f.id="crm-form-17",f.src=u,f.style.width="100%",f.style.height="450px",f.style.border="0",a.appendChild(f)}},[]),o.jsx("main",{id:"mobile-contact",className:"w-screen py-12 md:py-16 overflow-x-hidden bg-white text-black",style:{marginTop:"60px"},children:o.jsxs("section",{className:"w-screen px-[4vw]",children:[o.jsxs("div",{className:"flex flex-col items-stretch md:flex-row",style:{gap:"5vw"},children:[o.jsxs("div",{className:"order-2 grow w-full md:order-1 md:basis-[48%]",children:[o.jsx("h1",{className:"cent-schbk-cyrill font-semibold leading-tight",style:{fontSize:"clamp(2rem, 4vw, 3rem)",color:Z2.ink,marginBottom:"4vh"},children:"Contact us"}),o.jsxs("ul",{children:[o.jsx(J2,{iconSrc:X2.email,label:"Email",href:"mailto:[email protected]",children:"[email protected]"}),o.jsx(J2,{iconSrc:X2.phone,label:"Phone",href:"tel:+917027570124",children:"+91 7027570124"}),o.jsx(J2,{iconSrc:X2.location,label:"Location",href:"https://maps.google.com/?q=Amatir%20Kanya%20Gurukul%20Kurukshetra",children:o.jsxs(o.Fragment,{children:["Amatir Kanya Gurukul, Bachgaon",o.jsx("br",{}),"Gamri, Lukhi Road, Kurukshetra,",o.jsx("br",{}),"Haryana 136119"]})})]}),o.jsx("div",{className:"w-full",style:{marginTop:"4vh",overflow:"hidden",borderStyle:"solid",borderColor:Z2.line,borderWidth:"0.1rem",borderRadius:"1rem"},children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Map",loading:"lazy",className:"block w-full",style:{height:"46vh"},src:"https://www.google.com/maps?q=Amatir%20Kanya%20Gurukul%20Kurukshetra&output=embed"})})]}),o.jsxs("div",{className:"order-1 grow w-full md:order-2 md:basis-[48%]",children:[o.jsx("h2",{className:"cent-schbk-cyrill font-semibold leading-tight",style:{fontSize:"clamp(1.8rem, 3.5vw, 2.4rem)",color:Z2.ink,marginBottom:"3vh"},children:"Enquire Now"}),o.jsx("div",{ref:r,id:"crm-form-container-17",className:"w-full h-full"})]})]}),o.jsx("div",{className:"w-screen",style:{height:"0.15rem",background:"linear-gradient(90deg, rgba(28,54,100,0.12), rgba(237,109,35,0.28), rgba(28,54,100,0.12))",marginTop:"8vh"}})]})})}function Aue({src:t,label:e}){return o.jsx("span",{"aria-hidden":"true",role:"img","aria-label":e,style:{width:"1.4rem",height:"1.4rem",display:"inline-block",backgroundColor:"#000",WebkitMaskImage:`url(${t})`,maskImage:`url(${t})`,WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"}})}function J2({iconSrc:t,label:e,href:n,children:s}){const r=o.jsx("span",{className:"univers-regular",style:{fontSize:"clamp(1rem, 1.8vw, 1.15rem)",lineHeight:1.6},children:s});return o.jsxs("li",{className:"flex items-start",style:{gap:"3.2vw",marginBottom:"2.2vh"},children:[o.jsx(Aue,{src:t,label:e}),n?o.jsx("a",{href:n,className:"hover:underline",children:r}):r]})}const kt={navy:"#1C3664",orange:"#ED6D23",blueTint:"#E8EEF7",peach:"#F7EEE8",border:"rgba(0,0,0,0.08)",text:"#111827",textMuted:"#4B5563"},S6={states:["Andhra Pradesh","Arunachal Pradesh","Assam","Bihar","Chhattisgarh","Goa","Gujarat","Haryana","Himachal Pradesh","Jharkhand","Karnataka","Kerala","Madhya Pradesh","Maharashtra","Manipur","Meghalaya","Mizoram","Nagaland","Odisha","Punjab","Rajasthan","Sikkim","Tamil Nadu","Telangana","Tripura","Uttar Pradesh","Uttarakhand","West Bengal","Andaman and Nicobar Islands","Chandigarh","Dadra and Nagar Haveli and Daman and Diu","Delhi","Jammu and Kashmir","Ladakh","Lakshadweep","Puducherry"],classes:["Class 1","Class 2","Class 3","Class 4","Class 5","Class 6","Class 7","Class 8","Class 9","Class 10"]},Ii={heroDesktop:"/images/Header_ywiibp.mp4",heroMobile:"/images/375x424_lqnlmg.mp4",heroPoster:"/images/Screenshot_2025-08-28_234620_eke0em.png",heroIcon:"/images/Orange_Icon_i299iz.svg",stat1000:"/images/1000_kqkta6.svg",statPersonal:"/images/personalAttention_qajyxm.svg",stat200:"/images/200_medals_y4b9sy.svg",stat30:"/images/spacious_30_cpts76.svg",stat100:"/images/100_caring_kjseyh.svg",statRated:"/images/Rated4_5_uyx9cv.svg",g_library:"/images/Library02_w8x3om.jpg",g_hostelMess12:"/images/Candid-Happy03_wu2xkd.jpg",g_hostelMess09:"/images/Acad-School03_h41ob8.jpg",g_whatsapp:"/images/Acad-Lab19_odu4q9.jpg",g_hostelMess07:"/images/Hostel-Life04_wwi9bv.jpg",g_img20221023:"/images/BA-Music01_iljqvq.jpg",g_hostelMess02:"/images/BA-Nukkad04_i8qysl.jpg",g_hostelMess05:"/images/Assembly10_1_gklgnh.jpg",unlockBg:"/images/5a3595fd08cbede5605d612ceae4005da048dbe0_sjctvy.jpg"};function g0({label:t,name:e,value:n,onChange:s,type:r="text",placeholder:a="",fontSize:l,labelSize:c,inputPadding:u,labelMargin:f}){return o.jsxs("label",{className:"block",children:[o.jsx("span",{className:"block",style:{color:kt.text,fontSize:c||"clamp(0.9rem,1.05vw,1rem)",marginBottom:f||"0.6vh"},children:t}),o.jsx("input",{type:r,name:e,value:n,onChange:s,placeholder:a,className:"w-full rounded outline-none",style:{padding:u||"1rem 1.2rem",border:`0.08rem solid ${kt.border}`,background:"#fff",fontSize:l||"clamp(0.95rem,1.1vw,1.05rem)"}})]})}function _6({label:t,name:e,value:n,onChange:s,placeholder:r,fontSize:a,labelSize:l,inputPadding:c,labelMargin:u,options:f=[]}){return o.jsxs("label",{className:"block",children:[o.jsx("span",{className:"block",style:{color:kt.text,fontSize:l||"clamp(0.9rem,1.05vw,1rem)",marginBottom:u||"0.6vh"},children:t}),o.jsxs("div",{className:"relative",children:[o.jsxs("select",{name:e,value:n,onChange:s,className:"w-full appearance-none rounded bg-white",style:{padding:c?`${c.split(" ")[0]} 3rem ${c.split(" ")[0]} ${c.split(" ")[1]}`:"1rem 3rem 1rem 1.2rem",border:`0.08rem solid ${kt.border}`,fontSize:a||"clamp(0.95rem,1.1vw,1.05rem)"},children:[o.jsx("option",{value:"",children:r}),f.map(m=>o.jsx("option",{value:m,children:m},m))]}),o.jsx("div",{className:"pointer-events-none absolute right-[1rem] top-1/2 -translate-y-1/2",children:o.jsx("svg",{viewBox:"0 0 24 24",style:{width:"1.1rem",he
569ight:"1.1rem",color:kt.textMuted},children:o.jsx("path",{fill:"currentColor",d:"M7 10l5 5 5-5z"})})})]})]})}const Mue=()=>{const t=({children:l})=>o.jsx("div",{className:"mx-auto",style:{width:"min(92vw, 72rem)"},children:l}),e="font-['CentSchbkCyrill_BT:Roman',_serif]",n=Y({maxWidth:768}),s=Y({minWidth:769,maxWidth:1024}),r={t1:"/images/Rauktima_Royal.jpg",t2:"/images/confident-female.jpg",t4:"/images/Neha_Dhiman.png"},a=T.useMemo(()=>[{name:"Neha Dhiman",role:"Teacher",photo:r.t4,highlight:"Empowering Life Skills",sign:"_Ms. Neha Dhiman",category:"Educator - Home Science",details:"We teach Home Science not just as a subject, but as 'Gastronomy'âthe art of living. Under the Learning to Do pillar, I mentor girls to blend scientific nutrition with traditional values. It is rewarding to see them evolve into independent, creative thinkers who take ownership of their health and environment."},{name:"Shubhangi Gupta",role:"Parent",photo:r.t2,highlight:"Security and Holistic Growth",sign:"_Shubhangi Gupta",category:"Parent",details:"The Samrakshika system gave us immediate peace of mind regarding safety. Beyond the low student-teacher ratio, seeing our daughter balance rigorous JEE prep with Atma Dhyan meditation proves that Amatir nurtures the soul as much as the mind. Itâs the best investment weâve made for her future."},{name:"Rauktima Royal, Delhi University",role:"Alumna",photo:r.t1,highlight:"Prepared for the Real World",sign:"_Rauktima Royal",category:"Alumna - Currently at Delhi University",details:"Amatir gave me more than just the academic edge to crack CUET and enter DU; it gave me the mental discipline of Inner Engineering. While university life is fast-paced, the grounded values and self-reliance I gained at the Gurukul keep me focused and ahead of the curve."}],[]);return o.jsxs(o.Fragment,{children:[" ",o.jsxs(t,{children:[o.jsxs("h2",{className:"text-center py-10 text-[28px] leading-[34px] text-[color:var(--navy,theme(colors.slate.900))]",style:{color:"#1C3664",fontFamily:'"CentSchbkCyrill BT", serif'},children:["In Their Own",o.jsx("br",{}),"Words"]}),o.jsx("div",{className:"relative mt-[4vh]",children:n?o.jsx("div",{className:"flex flex-col",style:{gap:"1.25rem"},children:a.map((l,c)=>o.jsxs("article",{className:"rounded-[0.9rem] bg-white shadow-sm overflow-hidden",children:[o.jsx("div",{className:"relative w-full",style:{paddingBottom:"100%"},children:o.jsx("img",{src:l.photo,alt:l.name,className:"absolute inset-0 h-full w-full object-cover"})}),o.jsxs("div",{className:"px-4 py-3 text-left",children:[o.jsx("h5",{className:`${e} text-[#1C3664]`,style:{fontSize:"1.25rem"},children:l.name}),o.jsx("p",{className:"text-[#1C3664] mt-1",style:{fontSize:"0.95rem"},children:l.role}),o.jsx("span",{className:"block rounded-full bg-[#ED6D23]",style:{height:"0.22rem",width:"3.5rem",marginTop:"0.45rem"}}),o.jsx("p",{className:"text-[#3a2323] mt-4",style:{fontSize:"0.95rem",lineHeight:1.7},children:l.details}),o.jsx("h5",{className:`${e} text-[#1C3664] text-right`,style:{fontSize:"1rem",marginTop:"1rem"},children:l.sign}),o.jsx("p",{className:"text-[#1C3664] mt-1 text-right",style:{fontSize:"0.85rem"},children:l.category})]})]},l.name+c))}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"absolute right-[32%] -top-[2.6rem] hidden md:flex items-center",style:{gap:"0.6rem"},children:[o.jsx("button",{onClick:()=>goTo(i-1),disabled:i===0,className:"grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110 disabled:opacity-50 disabled:cursor-not-allowed",style:{width:"2.2rem",height:"2.2rem",background:"#ED6D23"},"aria-label":"Previous",children:o.jsx(ChevronLeft,{style:{width:"1.1rem",height:"1.1rem"}})}),o.jsx("button",{onClick:()=>goTo(i+1),disabled:i>=a.length-(n?1:s?2:4),className:"grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110 disabled:opacity-50 disabled:cursor-not-allowed",style:{width:"2.2rem",height:"2.2rem",background:"#ED6D23"},"aria-label":"Next",children:o.jsx(ChevronRight,{style:{width:"1.1rem",height:"1.1rem"}})})]}),o.jsx("div",{ref:wrapRef,className:"overflow-hidden",children:o.jsx("div",{ref:trackRef,className:"grid transition-transform duration-500 ease-out",style:{gridAutoFlow:"column",gridAutoColumns:"1fr",columnGap:n?"1rem":s?"1.2rem":"clamp(0.9rem,1.2rem,1.2rem)"},children:a.map((l,c)=>o.jsxs("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md bg-white text-[#1C3664] transition-all duration-500 hover:shadow-2xl hover:-translate-y-1 cursor-pointer",style:{minWidth:0},children:[o.jsxs("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"132%"},children:[o.jsx("img",{src:l.photo,alt:l.name,className:"absolute inset-0 h-full w-full object-cover transition-all duration-500 group-hover:scale-110"}),o.jsxs("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0E2349]/95 to-[#0E2349]/90 text-white opacity-0 group-hover:opacity-100 transition-all duration-500 flex flex-col justify-center p-6 transform translate-y-2 group-hover:translate-y-0",children:[o.jsx("h5",{className:`${e} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:l.name}),o.jsx("p",{className:"mb-4 text-center",style:{whiteSpace:"pre-line",fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:l.role}),o.jsx("p",{className:"mb-4 text-center",style:{fontSize:"clamp(0.765rem,0.855vw,0.95rem)",lineHeight:1.6},children:l.details})]})]}),o.jsxs("div",{className:"px-[1rem] pb-[1rem] pt-[0.9rem] text-left bg-white",children:[o.jsx("h5",{className:`${e} font-[500] text-[#1C3664]`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:l.name}),o.jsx("p",{className:"text-[#3a2323] mt-1",style:{fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:l.role})]})]},l.name+c))})})]})})]})]})};function Rue(){Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const[t,e]=T.useState(!1),[n,s]=T.useState(!1),r=T.useRef(null),a=T.useRef(null),[l,c]=T.useState(!1);return T.useEffect(()=>{if(!r.current)return;const u=40,f=()=>{const m=r.current.getBoundingClientRect().top+window.scrollY-u;window.scrollY>=m?c(!0):c(!1)};return window.addEventListener("scroll",f),f(),()=>window.removeEventListener("scroll",f)},[]),o.jsxs("main",{className:"w-full overflow-x-hidden",children:[o.jsx(Oue,{buttonRef:a,hideButton:l}),o.jsx(Due,{}),o.jsx(Lue,{}),o.jsx(Vb,{}),o.jsx(Mue,{}),o.jsx(Iue,{touchRef:r}),o.jsx(Yp,{images:[Ii.g_library,Ii.g_hostelMess12,Ii.g_hostelMess09,Ii.g_whatsapp,Ii.g_hostelMess07,Ii.g_img20221023,Ii.g_hostelMess02,Ii.g_hostelMess05],title:"Gallery",subtitle:""}),o.jsx(Pue,{}),o.jsx(Bue,{})]})}function Oue({onShowForm:t,buttonRef:e,hideButton:n}){const s=Y({maxWidth:768});Y({minWidth:769,maxWidth:1024}),Y({minWidth:1025}),Y({maxHeight:600}),Y({maxHeight:500}),Y({minHeight:900});const r=Y({maxWidth:1024,maxHeight:600}),a=()=>s?"center 30%":r?"center 25%":"center center";return o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",minHeight:r?"400px":"480px"},children:[o.jsxs("video",{className:"absolute inset-0 h-full w-full object-cover",playsInl
569ine:!0,autoPlay:!0,muted:!0,loop:!0,poster:Ii.heroPoster,style:{objectFit:"cover",objectPosition:a()},children:[o.jsx("source",{src:Ii.heroMobile,type:"video/mp4",media:"(max-width: 767px)"}),o.jsx("source",{src:Ii.heroDesktop,type:"video/mp4"})]}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(0,0,0,0)_20%,#002F82_100%)]"}),o.jsx("div",{className:"relative z-10 h-full flex items-end",children:o.jsx("div",{className:"w-full px-6 sm:px-8 lg:px-10 xl:px-16 pb-25 sm:pb-12 lg:pb-16 xl:pb-25",children:o.jsxs("div",{className:"text-white max-w-4xl",children:[o.jsx("div",{className:"flex justify-start mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:Ii.heroIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill font-semibold mb-4 lg:mb-6",style:{fontSize:s?"clamp(1.5rem, 6vw, 2.5rem)":"clamp(1.8rem, 3.5vw, 3.2rem)",lineHeight:1.1,textAlign:"left"},children:"Amatir Kanya Gurukul"}),o.jsx("p",{className:"univers-regular mb-6 lg:mb-8 opacity-92",style:{fontSize:s?"clamp(0.9rem, 4vw, 1.1rem)":"clamp(1rem, 1.5vw, 1.15rem)",textAlign:"left"},children:"A Heritage Residential Campus in Kurukshetra, Haryana"}),o.jsx("button",{onClick:()=>{const l=document.getElementById("request-callback-section");if(l){const u=l.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:u,behavior:"smooth"})}},ref:e,className:`inline-flex items-center justify-center shadow-lg transition-transform hover:scale-105 fixed z-[99] top-[95%] left-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-300 ease-in-out ${n?"opacity-0 pointer-events-none":"opacity-100"}`,style:{background:kt.orange,color:"#fff",padding:s?"0.8rem 1.4rem":"0.95rem 1.6rem",borderRadius:"2rem",fontSize:s?"clamp(0.9rem, 4vw, 1rem)":"clamp(0.95rem, 1.2vw, 1.05rem)"},children:"Request a Call Back"})]})})})]})}function Due({touchRef:t}){const e=T.useMemo(()=>[{icon:Ii.stat1000,bg:kt.peach,value:"1,000+",label:o.jsx(o.Fragment,{children:"Alumnae"})},{icon:Ii.stat100,bg:kt.blueTint,value:"100+",label:o.jsx(o.Fragment,{children:"in-house staff"})},{icon:Ii.stat30,bg:kt.blueTint,value:"30+",label:o.jsx(o.Fragment,{children:"Acres of Land"})},{icon:Ii.statPersonal,bg:kt.peach,value:"Low",label:o.jsxs(o.Fragment,{children:["Student to",o.jsx("br",{}),"teacher ratio."]})},{icon:Ii.stat200,bg:kt.peach,value:"200+",label:o.jsx(o.Fragment,{children:"Medals in Sports"})},{icon:Ii.statRated,bg:kt.blueTint,value:"4.5+â",label:o.jsxs(o.Fragment,{children:["Google",o.jsx("br",{}),"Ratings(440)"]})}],[]);return o.jsxs("section",{className:"whytrust w-screen bg-white",style:{paddingTop:"5rem",paddingBottom:"4rem"},children:[o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsx("h2",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:kt.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"3.5rem"},children:"Why Parents Trust Amatir"}),o.jsx("div",{className:"trust-grid grid",style:{gridTemplateColumns:"repeat(2, minmax(0,1fr))",gap:"3.5vw"},children:e.map((n,s)=>o.jsxs("article",{className:"flex flex-col items-center text-center",style:{background:n.bg,borderRadius:"0.6rem",padding:"1.2rem 0.9rem 1rem",border:`0.08rem solid ${kt.border}`},children:[o.jsx("div",{className:"flex items-center justify-center",style:{width:"3rem",height:"3rem",borderRadius:"999rem",background:"#fff",marginBottom:"0.9rem"},children:o.jsx("img",{src:n.icon,alt:"",style:{width:"1.6rem",height:"1.6rem"}})}),o.jsx("div",{className:"cent-schbk-cyrill",style:{color:kt.navy,fontWeight:600,fontSize:"clamp(1.1rem,5.8vw,1.5rem)",lineHeight:1.1},children:n.value}),o.jsx("div",{className:"univers-regular",style:{color:kt.navy,fontSize:"clamp(0.9rem,3.8vw,1rem)",lineHeight:1.3,marginTop:"0.25rem"},children:n.label})]},s))})]}),o.jsx("style",{children:` 570 @media (min-width: 900px){ 571 .whytrust .trust-grid{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 2vw; } 572 } 573 `})]})}function Lue(){return o.jsx("section",{className:"w-screen bg-white",style:{paddingTop:"7vh",paddingBottom:"8vh"},children:o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsxs("h2",{className:"cent-schbk-cyrill font-semibold text-center",style:{color:kt.navy,fontSize:"clamp(1.6rem,5.8vw,2.6rem)",lineHeight:1.15,marginBottom:"2.2vh"},children:["A residential school where",o.jsx("br",{})," your daughter grows with",o.jsx("br",{})," values and confidence."]}),o.jsx("p",{className:"univers-regular mx-auto",style:{fontSize:"clamp(0.95rem,3.8vw,1.06rem)",lineHeight:1.8,color:kt.text,maxWidth:"36ch",textAlign:"left",marginBottom:"2.2rem"},children:"At Amatir Kanya Gurukul, your daughter will grow in a safe, all-girls campus that feels just like home. From the very first day, sheâll learn the values of discipline, independence, and Indian culture in a nurturing environment. Our balanced approach ensures that she excels not only in academics, but also in sports and the arts. Along the way, sheâll develop strong leadership qualities, confidence, and the ability to communicate clearly â skills that will support her throughout life."}),o.jsx("div",{className:"relative rounded-full overflow-hidden",children:o.jsx("img",{src:"/images/AffiliationJoinImage_ibdgx9.png",alt:"Amatir Kanya Gurukul",className:"w-full h-full object-cover"})})]})})}function Iue({touchRef:t}){const e=Y({maxWidth:768}),n=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025});const s=Y({maxHeight:600}),r=Y({maxHeight:500}),[a,l]=T.useState({g:"",d:"",p:"",w:"",s:"",c:""}),c=P=>l(H=>({...H,[P.target.name]:P.target.value})),u=[{title:"Grade III to V",amt:"Rs. 2,60,000",perQtr:"Rs. 65,000"},{title:"Grade VI to VIII",amt:"Rs. 2,64,000",perQtr:"Rs. 66,000"},{title:"Grade IX to X",amt:"Rs. 2,69,400",perQtr:"Rs. 67,350"},{title:"Grade XI to XII",amt:"Rs. 2,83,200",perQtr:"Rs. 70,800"}];if(e)return o.jsx("section",{className:"w-screen bg-white",style:{paddingTop:"6vh",paddingBottom:"6vh"},children:o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsx("h2",{className:"cent-schbk-cyrill font-semibold",style:{color:kt.navy,width:"86.11vw",minHeight:"11.39vw",fontSize:"clamp(1.35rem,5.8vw,2rem)",lineHeight:1.15,transform:"rotate(0deg)",opacity:1,textAlign:"center",marginBottom:"1.2rem"},children:"Fee Structure"}),o.jsx("h2",{className:"cent-schbk-cyrill font-semibold",style:{color:kt.navy,width:"86.11vw",minHeight:"11.39vw",fontSize:"clamp(1.35rem,5.8vw,2rem)",lineHeight:1.15,transform:"rotate(0deg)",opacity:1,textAlign:"left",marginBottom:"0.5rem"},ref:t,children:"Residential:"}),o.jsx("div",{children:u.map((P,H)=>o.jsxs("article",{className:"rounded",style:{background:H%2===0?"#FDF0E9":"#E5EAF2",borderRadius:"0.6rem",padding:"1.1rem 1rem",border:`0.08rem solid ${kt.border}`,marginBottom:"0.95rem"},children:[o.jsx("div",{className:"univers-regular",style:{color:kt.navy,fontSize:"clamp(0.95rem,3.8vw,1.05rem)",marginBottom:"0.35rem"},children:P.title}),o.jsx("div",{className:"univers-regular font-semibold",style:{color:"#0B0F19",fontSize:"clamp(1.25rem,6.4vw,1.6rem)",marginBottom:"0.35rem"},children:P.amt}),o.jsx("div",{className:"univers-regular",style:{color:kt.textMuted,fontSize:"clamp(0.9rem,3.5vw,1rem)"},children:P.perQtr})]},P.title))}),o.jsxs("div",{style:{marginTop:"1.2rem"},children:[o.jsx("div",{className:"univers-regular font-semibold",style:{color:kt.text,fontSize:"clamp(0.95rem,3.8vw,1rem)",marginBottom:"0.35rem",fontWeight:700,marginTop:"2rem"},children:"Note:"}),o.jsxs("ul",{className:"univers-regular list-disc",style:{color:kt.text,fontSize:"clamp(0.9rem,3.6vw,1rem)",lineHeight:1.7,paddingLeft:"1.1rem"},children:[o.jsx("li",{className:"text-left",children:"Inclusive of School and Hostel Fee for the student."}),o.jsx("li",{className:"text-left",children:"Registration Fee: â¹ 25,000 (Only for New Admission â Non-Refundable)"}),o.jsx("li",{className:"text-left",children:"Imprest Money For New Resident Students â â¹ 20,000"})]})]}),o.jsxs("div",{className:"rounded overflow-hidden",children:[o.jsx("h3",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:kt.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"3.5rem",marginTop:"3.5rem"},id:"request-callback-section",children:"Request a Call Back"}),o.jsxs("div",{className:"flex justify-center items-center",style:{width:"100%",height:"100%",overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:[o.jsx("style",{children:` 574 div::-webkit-scrollbar {
575 display: none; 576 } 577 `}),o.jsx("iframe",{title:"Request a Call Back",src:"https://forms.zohopublic.in/adminama1/form/requestacallback1/formperma/8EhfBlLdyP1C8aQv9wsqijv4Vq1AgbIhYTn9xd_ebhU",style:{width:"100%",height:"1150px",border:"none",borderRadius:"12px",overflow:"auto"},scrolling:"yes",allowFullScreen:!0,loading:"lazy"})]})]})]})});const f=()=>r?{paddingTop:"3vh",paddingBottom:"3vh"}:s?{paddingTop:"4vh",paddingBottom:"4vh"}:e?{paddingTop:"5vh",paddingBottom:"5vh"}:n?{paddingTop:"6vh",paddingBottom:"6vh"}:{paddingTop:"7vh",paddingBottom:"7vh"},m=()=>e?{columnGap:"0",rowGap:"4vh"}:n?{columnGap:"1vw",rowGap:"3vh"}:{columnGap:"1vw",rowGap:"4vh"},g=()=>e?{width:"100%",padding:"2vh 2vw",titleSize:"clamp(0.9rem, 4vw, 1rem)",amountSize:"clamp(1.1rem, 5vw, 1.3rem)",quarterSize:"clamp(0.8rem, 3.5vw, 0.9rem)",marginBottom:"1.5vh"}:n?{width:"calc(50% - 0.5vw)",padding:"1.8vh 1.8vw",titleSize:"clamp(1rem, 1.6vw, 1.1rem)",amountSize:"clamp(1.2rem, 2vw, 1.4rem)",quarterSize:"clamp(0.85rem, 1.2vw, 0.95rem)",marginBottom:"1.2vh"}:{width:"calc(50% - 0.5vw)",padding:"1.6vh 1.6vw",titleSize:"clamp(1.05rem, 1.4vw, 1.2rem)",amountSize:"clamp(1.3rem, 1.8vw, 1.6rem)",quarterSize:"clamp(0.9rem, 1vw, 0.95rem)",marginBottom:"1vh"},x=()=>r?{padding:"2vh 2vw",titleSize:"clamp(1rem, 3vw, 1.2rem)",titleMargin:"1.5vh",gap:"1.2vh",inputSize:"clamp(0.8rem, 2.5vw, 0.9rem)",labelSize:"clamp(0.75rem, 2vw, 0.85rem)",inputPadding:"0.7rem 1rem",labelMargin:"0.5vh",buttonPadding:"0.7rem 1.4rem",buttonSize:"clamp(0.8rem, 2.5vw, 0.9rem)",buttonMargin:"1vh"}:s?{padding:"2.5vh 2.2vw",titleSize:"clamp(1.1rem, 3.5vw, 1.3rem)",titleMargin:"1.8vh",gap:"1.4vh",inputSize:"clamp(0.85rem, 2.8vw, 0.95rem)",labelSize:"clamp(0.8rem, 2.2vw, 0.9rem)",inputPadding:"0.8rem 1.1rem",labelMargin:"0.6vh",buttonPadding:"0.8rem 1.6rem",buttonSize:"clamp(0.85rem, 2.8vw, 0.95rem)",buttonMargin:"1.2vh"}:e?{padding:"3vh 2.5vw",titleSize:"clamp(1.2rem, 4vw, 1.4rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.9rem, 3.5vw, 1rem)",labelSize:"clamp(0.85rem, 3vw, 0.95rem)",inputPadding:"0.9rem 1.2rem",labelMargin:"0.7vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.9rem, 3.5vw, 1rem)",buttonMargin:"1.4vh"}:n?{padding:"3.5vh 2.5vw",titleSize:"clamp(1.3rem, 2.2vw, 1.5rem)",titleMargin:"2.2vh",gap:"1.8vh",inputSize:"clamp(0.95rem, 1.3vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.1vw, 1rem)",inputPadding:"1rem 1.3rem",labelMargin:"0.8vh",buttonPadding:"1rem 2rem",buttonSize:"clamp(0.95rem, 1.3vw, 1.05rem)",buttonMargin:"1.6vh"}:{padding:"3vh 2.2vw",titleSize:"clamp(1.3rem, 1.8vw, 1.6rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.95rem, 1.1vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.05vw, 1rem)",inputPadding:"1rem 1.2rem",labelMargin:"0.6vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.95rem, 1.1vw, 1.05rem)",buttonMargin:"1.2vh"},b=()=>e?{padding:"2vh 2vw",maxWidth:"100%",titleSize:"clamp(0.9rem, 4vw, 1rem)",titleMargin:"1.2vh",textSize:"clamp(0.8rem, 3.5vw, 0.9rem)",lineHeight:1.7,marginBottom:"2vh"}:n?{padding:"1.8vh 1.8vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.2vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.85rem, 1.1vw, 0.95rem)",lineHeight:1.75,marginBottom:"1.8vh"}:{padding:"1.6vh 1.6vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.05vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.9rem, 1.02vw, 0.98rem)",lineHeight:1.8,marginBottom:"2vh"},v=f(),w=m(),N=g(),_=x(),E=b(),k=({title:P,amt:H})=>o.jsxs("div",{className:"rounded",style:{background:kt.peach,border:`0.08rem solid ${kt.border}`,padding:N.padding,width:N.width,marginBottom:N.marginBottom},children:[o.jsx("div",{className:"univers-regular text-[#4b5b7a]",style:{fontSize:N.titleSize,marginBottom:"0.8vh"},children:P}),o.jsx("div",{className:"univers-regular font-semibold",style:{color:kt.navy,fontSize:N.amountSize},children:H}),o.jsx("div",{className:"univers-regular mt-[0.6vh]",style:{color:kt.textMuted,fontSize:N.quarterSize},children:"Rs. 57,000 / quarter"})]}),C={...v,height:"auto"},A={background:"white",border:`0.08rem solid ${kt.border}`,padding:E.padding,maxWidth:E.maxWidth,marginBottom:E.marginBottom,width:"100%"},L={background:"#E5EAF2",border:`0.08rem solid ${kt.border}`,padding:_.padding,width:"100%"},M={backgroundColor:"#FDF0E9",border:`0.08rem solid ${kt.border}`,padding:N.padding,width:N.width,marginBottom:N.marginBottom},O={background:"#E5EAF2",border:`0.08rem solid ${kt.border}`,padding:N.padding,width:N.width,marginBottom:N.marginBottom};return o.jsx("section",{className:"w-screen bg-white",style:C,children:o.jsxs("div",{className:"mx-auto grid",style:{width:"80vw",gridTemplateColumns:e?"1fr":"40% 40%",columnGap:w.columnGap,rowGap:w.rowGap,justifyContent:"center"},children:[o.jsxs("div",{className:"grid",style:{rowGap:e?"3vh":"2vh"},children:[o.jsxs("div",{className:e?"grid grid-cols-1 gap-1vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(k,{title:"Grade III to V",amt:"Rs. 2,30,800",style:M}),o.jsx(k,{className:"bg-[#E5EAF2]",title:"Grade VI to VIII",amt:"Rs. 2,34,960",style:O})]}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-3vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(k,{title:"Grade IX to X",amt:"Rs. 2,39,400",style:O}),o.jsx(k,{title:"Grade XI to XII",amt:"Rs. 2,52,000",style:M})]}),o.jsxs("div",{className:"",style:A,children:[o.jsx("div",{className:"univers-regular font-semibold",style:{fontSize:E.titleSize,marginBottom:E.titleMargin,textAlign:"left"},children:"Note:"}
577),o.jsxs("ul",{className:"univers-regular list-disc pl-[1.2rem]",style:{color:kt.textMuted,fontSize:E.textSize,lineHeight:E.lineHeight,textAlign:"left"},children:[o.jsx("li",{children:"Inclusive of School Fee, Hostel Fee, Uniforms, Textbooks and year-round personal shopping for students."}),o.jsx("li",{children:"Registration Fee: â¹ 22,000 (Only for New Admission â Non-Refundable)"}),o.jsx("li",{children:"Imprest Money For New Resident Students â â¹ 20,000"})]})]})]}),o.jsxs("div",{className:"rounded",style:L,children:[o.jsx("h3",{className:"cent-schbk-cyrill font-semibold",style:{color:kt.navy,fontSize:_.titleSize,marginBottom:_.titleMargin},children:"Request a Call Back"}),o.jsxs("form",{className:"grid",style:{gap:_.gap},onSubmit:P=>P.preventDefault(),children:[o.jsx(g0,{label:"Guardian Name*",name:"g",value:a.g,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsx(g0,{label:"Daughter's name*",name:"d",value:a.d,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsx(g0,{label:"Phone Number*",name:"p",value:a.p,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsx(g0,{label:"Whatsapp Number",name:"w",value:a.w,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-2vh":"grid grid-cols-2",style:{gap:e?"2vh":"2%"},children:[o.jsx(_6,{label:"State*",name:"s",placeholder:"Please Select one",value:a.s,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin,options:S6.states}),o.jsx(_6,{label:"Class*",name:"c",placeholder:"Please Select one",value:a.c,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin,options:S6.classes})]}),o.jsx("button",{type:"submit",className:"inline-flex items-center justify-center cursor-pointer transition-transform hover:scale-105",style:{background:kt.orange,color:"#fff",padding:_.buttonPadding,borderRadius:"999rem",marginTop:_.buttonMargin,fontSize:_.buttonSize},children:"Submit"})]})]})]})})}function Pue(){return o.jsx("section",{className:"relative w-screen",children:o.jsxs("div",{className:"relative overflow-hidden",style:{minHeight:"28vh"},children:[o.jsx("img",{src:Ii.unlockBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(237,109,35,0.92)"}}),o.jsxs("div",{className:"relative mx-auto w-[92vw] py-[6vh] text-center text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-medium",style:{fontSize:"clamp(1.25rem,2.2vw,1.8rem)",marginBottom:"1vh"},children:"Unlock her future!"}),o.jsx("p",{className:"univers-regular",style:{fontSize:"clamp(0.95rem,1.1vw,1rem)",opacity:.95,marginBottom:"2vh"},children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/FEE_STRUCTURE_2025-26.pdf",className:"inline-flex items-center justify-center",style:{padding:"0.9rem 1.8rem",borderRadius:"999rem",background:"#0D2347",color:"#fff",fontSize:"clamp(0.95rem,1.1vw,1rem)"},target:"_blank",children:"Fee Structure"})]})]})})}function Bue(){return o.jsx("section",{className:"w-screen bg-white",style:{paddingTop:"0vh",paddingBottom:"0vh"},children:o.jsx("div",{className:"mx-auto w-[100vw]",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Map",className:"w-full",style:{height:"60vh"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3428.468312073812!2d76.841!3d29.9909!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3911a9e7b137a2e3%3A0x9a2b19b0d3f4a0f2!2sAmatir%20Kanya%20Gurukul!5e0!3m2!1sen!2sin!4v1680000000000"})})})}const Ct={navy:"#1C3664",orange:"#ED6D23",blueTint:"#E8EEF7",peach:"#F7EEE8",border:"rgba(0,0,0,0.08)",text:"#111827",textMuted:"#4B5563"},j6={states:["Andhra Pradesh","Arunachal Pradesh","Assam","Bihar","Chhattisgarh","Goa","Gujarat","Haryana","Himachal Pradesh","Jharkhand","Karnataka","Kerala","Madhya Pradesh","Maharashtra","Manipur","Meghalaya","Mizoram","Nagaland","Odisha","Punjab","Rajasthan","Sikkim","Tamil Nadu","Telangana","Tripura","Uttar Pradesh","Uttarakhand","West Bengal","Andaman and Nicobar Islands","Chandigarh","Dadra and Nagar Haveli and Daman and Diu","Delhi","Jammu and Kashmir","Ladakh","Lakshadweep","Puducherry"],classes:["Class 1","Class 2","Class 3","Class 4","Class 5","Class 6","Class 7","Class 8","Class 9","Class 10"]},Pi={heroDesktop:"/images/Header_ywiibp.mp4",heroMobile:"/images/375x424_lqnlmg.mp4",heroPoster:"/images/Screenshot_2025-08-28_234620_eke0em.png",heroIcon:"/images/Orange_Icon_i299iz.svg",stat1000:"/images/1000_kqkta6.svg",statPersonal:"/images/personalAttention_qajyxm.svg",stat200:"/images/200_medals_y4b9sy.svg",stat30:"/images/spacious_30_cpts76.svg",stat100:"/images/100_caring_kjseyh.svg",statRated:"/images/Rated4_5_uyx9cv.svg",g_library:"/images/Library02_w8x3om.jpg",g_hostelMess12:"/images/Candid-Happy03_wu2xkd.jpg",g_hostelMess09:"/images/Acad-School03_h41ob8.jpg",g_whatsapp:"/images/Acad-Lab19_odu4q9.jpg",g_hostelMess07:"/images/Hostel-Life04_wwi9bv.jpg",g_img20221023:"/images/BA-Music01_iljqvq.jpg",g_hostelMess02:"/images/BA-Nukkad04_i8qysl.jpg",g_hostelMess05:"/images/Assembly10_1_gklgnh.jpg",unlockBg:"/images/5a3595fd08cbede5605d612ceae4005da048dbe0_sjctvy.jpg"};function x0({label:t,name:e,value:n,onChange:s,type:r="text",placeholder:a="",fontSize:l,labelSize:c,inputPadding:u,labelMargin:f}){return o.jsxs("label",{className:"block",children:[o.jsx("span",{className:"block",style:{color:Ct.text,fontSize:c||"clamp(0.9rem,1.05vw,1rem)",marginBottom:f||"0.6vh"},children:t}),o.jsx("input",{type:r,name:e,value:n,onChange:s,placeholder:a,className:"w-full rounded outline-none",style:{padding:u||"1rem 1.2rem",border:`0.08rem solid ${Ct.border}`,background:"#fff",fontSize:l||"clamp(0.95rem,1.1vw,1.05rem)"}})]})}function E6({label:t,name:e,value:n,onChange:s,placeholder:r,fontSize:a,labelSize:l,inputPadding:c,labelMargin:u,options:f=[]}){return o.jsxs("label",{className:"block",children:[o.jsx("span",{className:"block",style:{color:Ct.text,fontSize:l||"clamp(0.9rem,1.05vw,1rem)",marginBottom:u||"0.6vh"},children:t}),o.jsxs("div",{className:"relative",children:[o.jsxs("select",{name:e,value:n,onChange:s,className:"w-full appearance-none rounded bg-white",style:{padding:c?`${c.split(" ")[0]} 3rem ${c.split(" ")[0]} ${c.split(" ")[1]}`:"1rem 3rem 1rem 1.2rem",border:`0.08rem solid ${Ct.border}`,fontSize:a||"clamp(0.95rem,1.1vw,1.05rem)"},children:[o.jsx("option",{value:"",children:r}),f.map(m=>o.jsx("option",{value:m,children:m},m))]}),o.jsx("div",{className:"pointer-events-none absolute right-[1rem] top-1/2 -translate-y-1/2",children:o.jsx("svg",{viewBox:"0 0 24 24",style:{width:"1.1rem",he
577ight:"1.1rem",color:Ct.textMuted},children:o.jsx("path",{fill:"currentColor",d:"M7 10l5 5 5-5z"})})})]})]})}const zue=()=>{const t=({children:l})=>o.jsx("div",{className:"mx-auto",style:{width:"min(92vw, 72rem)"},children:l}),e="font-['CentSchbkCyrill_BT:Roman',_serif]",n=Y({maxWidth:768}),s=Y({minWidth:769,maxWidth:1024}),r={t1:"/images/Rauktima_Royal.jpg",t2:"/images/confident-female.jpg",t4:"/images/Neha_Dhiman.png"},a=T.useMemo(()=>[{name:"Neha Dhiman",role:"Teacher",photo:r.t4,highlight:"Empowering Life Skills",sign:"_Ms. Neha Dhiman",category:"Educator - Home Science",details:"We teach Home Science not just as a subject, but as 'Gastronomy'âthe art of living. Under the Learning to Do pillar, I mentor girls to blend scientific nutrition with traditional values. It is rewarding to see them evolve into independent, creative thinkers who take ownership of their health and environment."},{name:"Shubhangi Gupta",role:"Parent",photo:r.t2,highlight:"Security and Holistic Growth",sign:"_Shubhangi Gupta",category:"Parent",details:"The Samrakshika system gave us immediate peace of mind regarding safety. Beyond the low student-teacher ratio, seeing our daughter balance rigorous JEE prep with Atma Dhyan meditation proves that Amatir nurtures the soul as much as the mind. Itâs the best investment weâve made for her future."},{name:"Rauktima Royal, Delhi University",role:"Alumna",photo:r.t1,highlight:"Prepared for the Real World",sign:"_Rauktima Royal",category:"Alumna - Currently at Delhi University",details:"Amatir gave me more than just the academic edge to crack CUET and enter DU; it gave me the mental discipline of Inner Engineering. While university life is fast-paced, the grounded values and self-reliance I gained at the Gurukul keep me focused and ahead of the curve."}],[]);return o.jsxs(o.Fragment,{children:[" ",o.jsxs(t,{children:[o.jsxs("h2",{className:"text-center py-10 text-[28px] leading-[34px] text-[color:var(--navy,theme(colors.slate.900))]",style:{color:"#1C3664",fontFamily:'"CentSchbkCyrill BT", serif'},children:["In Their Own",o.jsx("br",{}),"Words"]}),o.jsx("div",{className:"relative mt-[4vh]",children:n?o.jsx("div",{className:"flex flex-col",style:{gap:"1.25rem"},children:a.map((l,c)=>o.jsxs("article",{className:"rounded-[0.9rem] bg-white shadow-sm overflow-hidden",children:[o.jsx("div",{className:"relative w-full",style:{paddingBottom:"100%"},children:o.jsx("img",{src:l.photo,alt:l.name,className:"absolute inset-0 h-full w-full object-cover"})}),o.jsxs("div",{className:"px-4 py-3 text-left",children:[o.jsx("h5",{className:`${e} text-[#1C3664]`,style:{fontSize:"1.25rem"},children:l.name}),o.jsx("p",{className:"text-[#1C3664] mt-1",style:{fontSize:"0.95rem"},children:l.role}),o.jsx("span",{className:"block rounded-full bg-[#ED6D23]",style:{height:"0.22rem",width:"3.5rem",marginTop:"0.45rem"}}),o.jsx("p",{className:"text-[#3a2323] mt-4",style:{fontSize:"0.95rem",lineHeight:1.7},children:l.details}),o.jsx("h5",{className:`${e} text-[#1C3664] text-right`,style:{fontSize:"1rem",marginTop:"1rem"},children:l.sign}),o.jsx("p",{className:"text-[#1C3664] mt-1 text-right",style:{fontSize:"0.85rem"},children:l.category})]})]},l.name+c))}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"absolute right-[32%] -top-[2.6rem] hidden md:flex items-center",style:{gap:"0.6rem"},children:[o.jsx("button",{onClick:()=>goTo(i-1),disabled:i===0,className:"grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110 disabled:opacity-50 disabled:cursor-not-allowed",style:{width:"2.2rem",height:"2.2rem",background:"#ED6D23"},"aria-label":"Previous",children:o.jsx(ChevronLeft,{style:{width:"1.1rem",height:"1.1rem"}})}),o.jsx("button",{onClick:()=>goTo(i+1),disabled:i>=a.length-(n?1:s?2:4),className:"grid place-items-center rounded-full text-white transition-all duration-200 hover:scale-110 disabled:opacity-50 disabled:cursor-not-allowed",style:{width:"2.2rem",height:"2.2rem",background:"#ED6D23"},"aria-label":"Next",children:o.jsx(ChevronRight,{style:{width:"1.1rem",height:"1.1rem"}})})]}),o.jsx("div",{ref:wrapRef,className:"overflow-hidden",children:o.jsx("div",{ref:trackRef,className:"grid transition-transform duration-500 ease-out",style:{gridAutoFlow:"column",gridAutoColumns:"1fr",columnGap:n?"1rem":s?"1.2rem":"clamp(0.9rem,1.2rem,1.2rem)"},children:a.map((l,c)=>o.jsxs("article",{className:"group overflow-hidden rounded-[0.9rem] shadow-md bg-white text-[#1C3664] transition-all duration-500 hover:shadow-2xl hover:-translate-y-1 cursor-pointer",style:{minWidth:0},children:[o.jsxs("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"132%"},children:[o.jsx("img",{src:l.photo,alt:l.name,className:"absolute inset-0 h-full w-full object-cover transition-all duration-500 group-hover:scale-110"}),o.jsxs("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0E2349]/95 to-[#0E2349]/90 text-white opacity-0 group-hover:opacity-100 transition-all duration-500 flex flex-col justify-center p-6 transform translate-y-2 group-hover:translate-y-0",children:[o.jsx("h5",{className:`${e} font-[500] mb-3 text-center`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:l.name}),o.jsx("p",{className:"mb-4 text-center",style:{whiteSpace:"pre-line",fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:l.role}),o.jsx("p",{className:"mb-4 text-center",style:{fontSize:"clamp(0.765rem,0.855vw,0.95rem)",lineHeight:1.6},children:l.details})]})]}),o.jsxs("div",{className:"px-[1rem] pb-[1rem] pt-[0.9rem] text-left bg-white",children:[o.jsx("h5",{className:`${e} font-[500] text-[#1C3664]`,style:{fontSize:"clamp(0.945rem,1.08vw,1.2rem)"},children:l.name}),o.jsx("p",{className:"text-[#3a2323] mt-1",style:{fontSize:"clamp(0.81rem,0.9vw,1rem)"},children:l.role})]})]},l.name+c))})})]})})]})]})};function Fue(){Y({maxWidth:768}),Y({maxWidth:1024}),Y({maxHeight:600});const[t,e]=T.useState(!1),[n,s]=T.useState(!1),r=T.useRef(null),a=T.useRef(null),[l,c]=T.useState(!1);return T.useEffect(()=>{if(!r.current)return;const u=40,f=()=>{const m=r.current.getBoundingClientRect().top+window.scrollY-u;window.scrollY>=m?c(!0):c(!1)};return window.addEventListener("scroll",f),f(),()=>window.removeEventListener("scroll",f)},[]),o.jsxs("main",{className:"w-full overflow-x-hidden",children:[o.jsx(Hue,{buttonRef:a,hideButton:l}),o.jsx($ue,{}),o.jsx(Uue,{}),o.jsx(Vb,{}),o.jsx(zue,{}),o.jsx(Wue,{touchRef:r}),o.jsx(Yp,{images:[Pi.g_library,Pi.g_hostelMess12,Pi.g_hostelMess09,Pi.g_whatsapp,Pi.g_hostelMess07,Pi.g_img20221023,Pi.g_hostelMess02,Pi.g_hostelMess05],title:"Gallery",subtitle:""}),o.jsx(Vue,{}),o.jsx(Gue,{})]})}function Hue({onShowForm:t,buttonRef:e,hideButton:n}){const s=Y({maxWidth:768});Y({minWidth:769,maxWidth:1024}),Y({minWidth:1025}),Y({maxHeight:600}),Y({maxHeight:500}),Y({minHeight:900});const r=Y({maxWidth:1024,maxHeight:600}),a=()=>s?"center 30%":r?"center 25%":"center center";return o.jsxs("section",{className:"relative overflow-hidden w-full",style:{height:"100vh",minHeight:r?"400px":"480px"},children:[o.jsxs("video",{className:"absolute inset-0 h-full w-full object-cover",playsInl
577ine:!0,autoPlay:!0,muted:!0,loop:!0,poster:Pi.heroPoster,style:{objectFit:"cover",objectPosition:a()},children:[o.jsx("source",{src:Pi.heroMobile,type:"video/mp4",media:"(max-width: 767px)"}),o.jsx("source",{src:Pi.heroDesktop,type:"video/mp4"})]}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(0,0,0,0)_20%,#002F82_100%)]"}),o.jsx("div",{className:"relative z-10 h-full flex items-end",children:o.jsx("div",{className:"w-full px-6 sm:px-8 lg:px-10 xl:px-16 pb-25 sm:pb-12 lg:pb-16 xl:pb-25",children:o.jsxs("div",{className:"text-white max-w-4xl",children:[o.jsx("div",{className:"flex justify-start mb-4",children:o.jsx("img",{alt:"Amatir Icon",className:"w-[60px] h-auto",src:Pi.heroIcon})}),o.jsx("h1",{className:"cent-schbk-cyrill font-semibold mb-4 lg:mb-6",style:{fontSize:s?"clamp(1.5rem, 6vw, 2.5rem)":"clamp(1.8rem, 3.5vw, 3.2rem)",lineHeight:1.1,textAlign:"left"},children:"Amatir Kanya Gurukul"}),o.jsx("p",{className:"univers-regular mb-6 lg:mb-8 opacity-92",style:{fontSize:s?"clamp(0.9rem, 4vw, 1.1rem)":"clamp(1rem, 1.5vw, 1.15rem)",textAlign:"left"},children:"A Heritage Residential Campus in Kurukshetra, Haryana"}),o.jsx("button",{onClick:()=>{const l=document.getElementById("request-callback-section");if(l){const u=l.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:u,behavior:"smooth"})}},ref:e,className:`inline-flex items-center justify-center shadow-lg transition-transform hover:scale-105 fixed z-[99] top-[95%] left-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-300 ease-in-out ${n?"opacity-0 pointer-events-none":"opacity-100"}`,style:{background:Ct.orange,color:"#fff",padding:s?"0.8rem 1.4rem":"0.95rem 1.6rem",borderRadius:"2rem",fontSize:s?"clamp(0.9rem, 4vw, 1rem)":"clamp(0.95rem, 1.2vw, 1.05rem)"},children:"Request a Call Back"})]})})})]})}function $ue({touchRef:t}){const e=T.useMemo(()=>[{icon:Pi.stat1000,bg:Ct.peach,value:"1,000+",label:o.jsx(o.Fragment,{children:"Alumnae"})},{icon:Pi.stat100,bg:Ct.blueTint,value:"100+",label:o.jsx(o.Fragment,{children:"in-house staff"})},{icon:Pi.stat30,bg:Ct.blueTint,value:"30+",label:o.jsx(o.Fragment,{children:"Acres of Land"})},{icon:Pi.statPersonal,bg:Ct.peach,value:"Low",label:o.jsxs(o.Fragment,{children:["Student to",o.jsx("br",{}),"teacher ratio."]})},{icon:Pi.stat200,bg:Ct.peach,value:"200+",label:o.jsx(o.Fragment,{children:"Medals in Sports"})},{icon:Pi.statRated,bg:Ct.blueTint,value:"4.5+â",label:o.jsxs(o.Fragment,{children:["Google",o.jsx("br",{}),"Ratings(440)"]})}],[]);return o.jsxs("section",{className:"whytrust w-screen bg-white",style:{paddingTop:"5rem",paddingBottom:"4rem"},children:[o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsx("h2",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:Ct.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"3.5rem"},children:"Why Parents Trust Amatir"}),o.jsx("div",{className:"trust-grid grid",style:{gridTemplateColumns:"repeat(2, minmax(0,1fr))",gap:"3.5vw"},children:e.map((n,s)=>o.jsxs("article",{className:"flex flex-col items-center text-center",style:{background:n.bg,borderRadius:"0.6rem",padding:"1.2rem 0.9rem 1rem",border:`0.08rem solid ${Ct.border}`},children:[o.jsx("div",{className:"flex items-center justify-center",style:{width:"3rem",height:"3rem",borderRadius:"999rem",background:"#fff",marginBottom:"0.9rem"},children:o.jsx("img",{src:n.icon,alt:"",style:{width:"1.6rem",height:"1.6rem"}})}),o.jsx("div",{className:"cent-schbk-cyrill",style:{color:Ct.navy,fontWeight:600,fontSize:"clamp(1.1rem,5.8vw,1.5rem)",lineHeight:1.1},children:n.value}),o.jsx("div",{className:"univers-regular",style:{color:Ct.navy,fontSize:"clamp(0.9rem,3.8vw,1rem)",lineHeight:1.3,marginTop:"0.25rem"},children:n.label})]},s))})]}),o.jsx("style",{children:` 578 @media (min-width: 900px){ 579 .whytrust .trust-grid{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 2vw; } 580 } 581 `})]})}function Uue(){return o.jsx("section",{className:"w-screen bg-white",style:{paddingTop:"7vh",paddingBottom:"8vh"},children:o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsxs("h2",{className:"cent-schbk-cyrill font-semibold text-center",style:{color:Ct.navy,fontSize:"clamp(1.6rem,5.8vw,2.6rem)",lineHeight:1.15,marginBottom:"2.2vh"},children:["A residential school where",o.jsx("br",{})," your daughter grows with",o.jsx("br",{})," values and confidence."]}),o.jsx("p",{className:"univers-regular mx-auto",style:{fontSize:"clamp(0.95rem,3.8vw,1.06rem)",lineHeight:1.8,color:Ct.text,maxWidth:"36ch",textAlign:"left",marginBottom:"2.2rem"},children:"At Amatir Kanya Gurukul, your daughter will grow in a safe, all-girls campus that feels just like home. From the very first day, sheâll learn the values of discipline, independence, and Indian culture in a nurturing environment. Our balanced approach ensures that she excels not only in academics, but also in sports and the arts. Along the way, sheâll develop strong leadership qualities, confidence, and the ability to communicate clearly â skills that will support her throughout life."}),o.jsx("div",{className:"relative rounded-full overflow-hidden",children:o.jsx("img",{src:"/images/AffiliationJoinImage_ibdgx9.png",alt:"Amatir Kanya Gurukul",className:"w-full h-full object-cover"})})]})})}function Wue({touchRef:t}){const e=Y({maxWidth:768}),n=Y({minWidth:769,maxWidth:1024});Y({minWidth:1025});const s=Y({maxHeight:600}),r=Y({maxHeight:500}),[a,l]=T.useState({g:"",d:"",p:"",w:"",s:"",c:""}),c=P=>l(H=>({...H,[P.target.name]:P.target.value})),u=[{title:"Grade III to V",amt:"Rs. 2,60,000",perQtr:"Rs. 65,000"},{title:"Grade VI to VIII",amt:"Rs. 2,64,000",perQtr:"Rs. 66,000"},{title:"Grade IX to X",amt:"Rs. 2,69,400",perQtr:"Rs. 67,350"},{title:"Grade XI to XII",amt:"Rs. 2,83,200",perQtr:"Rs. 70,800"}];if(e)return o.jsx("section",{className:"w-screen bg-white",style:{paddingTop:"6vh",paddingBottom:"6vh"},children:o.jsxs("div",{className:"mx-auto w-[92vw]",children:[o.jsx("h2",{className:"cent-schbk-cyrill font-semibold",style:{color:Ct.navy,width:"86.11vw",minHeight:"11.39vw",fontSize:"clamp(1.35rem,5.8vw,2rem)",lineHeight:1.15,transform:"rotate(0deg)",opacity:1,textAlign:"center",marginBottom:"1.2rem"},children:"Fee Structure"}),o.jsx("h2",{className:"cent-schbk-cyrill font-semibold",style:{color:Ct.navy,width:"86.11vw",minHeight:"11.39vw",fontSize:"clamp(1.35rem,5.8vw,2rem)",lineHeight:1.15,transform:"rotate(0deg)",opacity:1,textAlign:"left",marginBottom:"0.5rem"},ref:t,children:"Residential:"}),o.jsx("div",{children:u.map((P,H)=>o.jsxs("article",{className:"rounded",style:{background:H%2===0?"#FDF0E9":"#E5EAF2",borderRadius:"0.6rem",padding:"1.1rem 1rem",border:`0.08rem solid ${Ct.border}`,marginBottom:"0.95rem"},children:[o.jsx("div",{className:"univers-regular",style:{color:Ct.navy,fontSize:"clamp(0.95rem,3.8vw,1.05rem)",marginBottom:"0.35rem"},children:P.title}),o.jsx("div",{className:"univers-regular font-semibold",style:{color:"#0B0F19",fontSize:"clamp(1.25rem,6.4vw,1.6rem)",marginBottom:"0.35rem"},children:P.amt}),o.jsx("div",{className:"univers-regular",style:{color:Ct.textMuted,fontSize:"clamp(0.9rem,3.5vw,1rem)"},children:P.perQtr})]},P.title))}),o.jsxs("div",{style:{marginTop:"1.2rem"},children:[o.jsx("div",{className:"univers-regular font-semibold",style:{color:Ct.text,fontSize:"clamp(0.95rem,3.8vw,1rem)",marginBottom:"0.35rem",fontWeight:700,marginTop:"2rem"},children:"Note:"}),o.jsxs("ul",{className:"univers-regular list-disc",style:{color:Ct.text,fontSize:"clamp(0.9rem,3.6vw,1rem)",lineHeight:1.7,paddingLeft:"1.1rem"},children:[o.jsx("li",{className:"text-left",children:"Inclusive of School and Hostel Fee for the student."}),o.jsx("li",{className:"text-left",children:"Registration Fee: â¹ 25,000 (Only for New Admission â Non-Refundable)"}),o.jsx("li",{className:"text-left",children:"Imprest Money For New Resident Students â â¹ 20,000"})]})]}),o.jsxs("div",{className:"rounded overflow-hidden",children:[o.jsx("h3",{className:"cent-schbk-cyrill text-center font-semibold",style:{color:Ct.navy,fontSize:"clamp(1.25rem,2.8vw,2.25rem)",marginBottom:"3.5rem",marginTop:"3.5rem"},id:"request-callback-section",children:"Request a Call Back"}),o.jsxs("div",{className:"flex justify-center items-center",style:{width:"100%",height:"100%",overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:[o.jsx("style",{children:` 582 div::-webkit-scrollbar {
583 display: none; 584 } 585 `}),o.jsx("iframe",{title:"Request a Call Back meta form",src:"https://forms.zohopublic.in/adminama1/form/requestcallbackmeta/formperma/YxsbMPcH8N9bSukz2JouzEC4yUWtmTiOUWqfoRreKPU",style:{width:"100%",height:"1150px",border:"none",borderRadius:"12px",overflow:"auto"},scrolling:"yes",allowFullScreen:!0,loading:"lazy"})]})]})]})});const f=()=>r?{paddingTop:"3vh",paddingBottom:"3vh"}:s?{paddingTop:"4vh",paddingBottom:"4vh"}:e?{paddingTop:"5vh",paddingBottom:"5vh"}:n?{paddingTop:"6vh",paddingBottom:"6vh"}:{paddingTop:"7vh",paddingBottom:"7vh"},m=()=>e?{columnGap:"0",rowGap:"4vh"}:n?{columnGap:"1vw",rowGap:"3vh"}:{columnGap:"1vw",rowGap:"4vh"},g=()=>e?{width:"100%",padding:"2vh 2vw",titleSize:"clamp(0.9rem, 4vw, 1rem)",amountSize:"clamp(1.1rem, 5vw, 1.3rem)",quarterSize:"clamp(0.8rem, 3.5vw, 0.9rem)",marginBottom:"1.5vh"}:n?{width:"calc(50% - 0.5vw)",padding:"1.8vh 1.8vw",titleSize:"clamp(1rem, 1.6vw, 1.1rem)",amountSize:"clamp(1.2rem, 2vw, 1.4rem)",quarterSize:"clamp(0.85rem, 1.2vw, 0.95rem)",marginBottom:"1.2vh"}:{width:"calc(50% - 0.5vw)",padding:"1.6vh 1.6vw",titleSize:"clamp(1.05rem, 1.4vw, 1.2rem)",amountSize:"clamp(1.3rem, 1.8vw, 1.6rem)",quarterSize:"clamp(0.9rem, 1vw, 0.95rem)",marginBottom:"1vh"},x=()=>r?{padding:"2vh 2vw",titleSize:"clamp(1rem, 3vw, 1.2rem)",titleMargin:"1.5vh",gap:"1.2vh",inputSize:"clamp(0.8rem, 2.5vw, 0.9rem)",labelSize:"clamp(0.75rem, 2vw, 0.85rem)",inputPadding:"0.7rem 1rem",labelMargin:"0.5vh",buttonPadding:"0.7rem 1.4rem",buttonSize:"clamp(0.8rem, 2.5vw, 0.9rem)",buttonMargin:"1vh"}:s?{padding:"2.5vh 2.2vw",titleSize:"clamp(1.1rem, 3.5vw, 1.3rem)",titleMargin:"1.8vh",gap:"1.4vh",inputSize:"clamp(0.85rem, 2.8vw, 0.95rem)",labelSize:"clamp(0.8rem, 2.2vw, 0.9rem)",inputPadding:"0.8rem 1.1rem",labelMargin:"0.6vh",buttonPadding:"0.8rem 1.6rem",buttonSize:"clamp(0.85rem, 2.8vw, 0.95rem)",buttonMargin:"1.2vh"}:e?{padding:"3vh 2.5vw",titleSize:"clamp(1.2rem, 4vw, 1.4rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.9rem, 3.5vw, 1rem)",labelSize:"clamp(0.85rem, 3vw, 0.95rem)",inputPadding:"0.9rem 1.2rem",labelMargin:"0.7vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.9rem, 3.5vw, 1rem)",buttonMargin:"1.4vh"}:n?{padding:"3.5vh 2.5vw",titleSize:"clamp(1.3rem, 2.2vw, 1.5rem)",titleMargin:"2.2vh",gap:"1.8vh",inputSize:"clamp(0.95rem, 1.3vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.1vw, 1rem)",inputPadding:"1rem 1.3rem",labelMargin:"0.8vh",buttonPadding:"1rem 2rem",buttonSize:"clamp(0.95rem, 1.3vw, 1.05rem)",buttonMargin:"1.6vh"}:{padding:"3vh 2.2vw",titleSize:"clamp(1.3rem, 1.8vw, 1.6rem)",titleMargin:"2vh",gap:"1.6vh",inputSize:"clamp(0.95rem, 1.1vw, 1.05rem)",labelSize:"clamp(0.9rem, 1.05vw, 1rem)",inputPadding:"1rem 1.2rem",labelMargin:"0.6vh",buttonPadding:"0.9rem 1.8rem",buttonSize:"clamp(0.95rem, 1.1vw, 1.05rem)",buttonMargin:"1.2vh"},b=()=>e?{padding:"2vh 2vw",maxWidth:"100%",titleSize:"clamp(0.9rem, 4vw, 1rem)",titleMargin:"1.2vh",textSize:"clamp(0.8rem, 3.5vw, 0.9rem)",lineHeight:1.7,marginBottom:"2vh"}:n?{padding:"1.8vh 1.8vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.2vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.85rem, 1.1vw, 0.95rem)",lineHeight:1.75,marginBottom:"1.8vh"}:{padding:"1.6vh 1.6vw",maxWidth:"100%",titleSize:"clamp(0.95rem, 1.05vw, 1rem)",titleMargin:"1vh",textSize:"clamp(0.9rem, 1.02vw, 0.98rem)",lineHeight:1.8,marginBottom:"2vh"},v=f(),w=m(),N=g(),_=x(),E=b(),k=({title:P,amt:H})=>o.jsxs("div",{className:"rounded",style:{background:Ct.peach,border:`0.08rem solid ${Ct.border}`,padding:N.padding,width:N.width,marginBottom:N.marginBottom},children:[o.jsx("div",{className:"univers-regular text-[#4b5b7a]",style:{fontSize:N.titleSize,marginBottom:"0.8vh"},children:P}),o.jsx("div",{className:"univers-regular font-semibold",style:{color:Ct.navy,fontSize:N.amountSize},children:H}),o.jsx("div",{className:"univers-regular mt-[0.6vh]",style:{color:Ct.textMuted,fontSize:N.quarterSize},children:"Rs. 57,000 / quarter"})]}),C={...v,height:"auto"},A={background:"white",border:`0.08rem solid ${Ct.border}`,padding:E.padding,maxWidth:E.maxWidth,marginBottom:E.marginBottom,width:"100%"},L={background:"#E5EAF2",border:`0.08rem solid ${Ct.border}`,padding:_.padding,width:"100%"},M={backgroundColor:"#FDF0E9",border:`0.08rem solid ${Ct.border}`,padding:N.padding,width:N.width,marginBottom:N.marginBottom},O={background:"#E5EAF2",border:`0.08rem solid ${Ct.border}`,padding:N.padding,width:N.width,marginBottom:N.marginBottom};return o.jsx("section",{className:"w-screen bg-white",style:C,children:o.jsxs("div",{className:"mx-auto grid",style:{width:"80vw",gridTemplateColumns:e?"1fr":"40% 40%",columnGap:w.columnGap,rowGap:w.rowGap,justifyContent:"center"},children:[o.jsxs("div",{className:"grid",style:{rowGap:e?"3vh":"2vh"},children:[o.jsxs("div",{className:e?"grid grid-cols-1 gap-1vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(k,{title:"Grade III to V",amt:"Rs. 2,30,800",style:M}),o.jsx(k,{className:"bg-[#E5EAF2]",title:"Grade VI to VIII",amt:"Rs. 2,34,960",style:O})]}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-3vh":"flex",style:{gap:e?"3vh":"1vw"},children:[o.jsx(k,{title:"Grade IX to X",amt:"Rs. 2,39,400",style:O}),o.jsx(k,{title:"Grade XI to XII",amt:"Rs. 2,52,000",style:M})]}),o.jsxs("div",{className:"",style:A,children:[o.jsx("div",{className:"univers-regular font-semibold",style:{fontSize:E.titleSize,marginBottom:E.titleMargin,textAlign:"left"},children:"Note:"}
585),o.jsxs("ul",{className:"univers-regular list-disc pl-[1.2rem]",style:{color:Ct.textMuted,fontSize:E.textSize,lineHeight:E.lineHeight,textAlign:"left"},children:[o.jsx("li",{children:"Inclusive of School Fee, Hostel Fee, Uniforms, Textbooks and year-round personal shopping for students."}),o.jsx("li",{children:"Registration Fee: â¹ 22,000 (Only for New Admission â Non-Refundable)"}),o.jsx("li",{children:"Imprest Money For New Resident Students â â¹ 20,000"})]})]})]}),o.jsxs("div",{className:"rounded",style:L,children:[o.jsx("h3",{className:"cent-schbk-cyrill font-semibold",style:{color:Ct.navy,fontSize:_.titleSize,marginBottom:_.titleMargin},children:"Request a Call Back"}),o.jsxs("form",{className:"grid",style:{gap:_.gap},onSubmit:P=>P.preventDefault(),children:[o.jsx(x0,{label:"Guardian Name*",name:"g",value:a.g,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsx(x0,{label:"Daughter's name*",name:"d",value:a.d,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsx(x0,{label:"Phone Number*",name:"p",value:a.p,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsx(x0,{label:"Whatsapp Number",name:"w",value:a.w,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin}),o.jsxs("div",{className:e?"grid grid-cols-1 gap-2vh":"grid grid-cols-2",style:{gap:e?"2vh":"2%"},children:[o.jsx(E6,{label:"State*",name:"s",placeholder:"Please Select one",value:a.s,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin,options:j6.states}),o.jsx(E6,{label:"Class*",name:"c",placeholder:"Please Select one",value:a.c,onChange:c,fontSize:_.inputSize,labelSize:_.labelSize,inputPadding:_.inputPadding,labelMargin:_.labelMargin,options:j6.classes})]}),o.jsx("button",{type:"submit",className:"inline-flex items-center justify-center cursor-pointer transition-transform hover:scale-105",style:{background:Ct.orange,color:"#fff",padding:_.buttonPadding,borderRadius:"999rem",marginTop:_.buttonMargin,fontSize:_.buttonSize},children:"Submit"})]})]})]})})}function Vue(){return o.jsx("section",{className:"relative w-screen",children:o.jsxs("div",{className:"relative overflow-hidden",style:{minHeight:"28vh"},children:[o.jsx("img",{src:Pi.unlockBg,alt:"",className:"absolute inset-0 h-full w-full object-cover"}),o.jsx("div",{className:"absolute inset-0",style:{background:"rgba(237,109,35,0.92)"}}),o.jsxs("div",{className:"relative mx-auto w-[92vw] py-[6vh] text-center text-white",children:[o.jsx("h3",{className:"cent-schbk-cyrill font-medium",style:{fontSize:"clamp(1.25rem,2.2vw,1.8rem)",marginBottom:"1vh"},children:"Unlock her future!"}),o.jsx("p",{className:"univers-regular",style:{fontSize:"clamp(0.95rem,1.1vw,1rem)",opacity:.95,marginBottom:"2vh"},children:"Guided by Dharma, Prepared for the World."}),o.jsx("a",{href:"/FEE_STRUCTURE_2025-26.pdf",className:"inline-flex items-center justify-center",style:{padding:"0.9rem 1.8rem",borderRadius:"999rem",background:"#0D2347",color:"#fff",fontSize:"clamp(0.95rem,1.1vw,1rem)"},target:"_blank",children:"Fee Structure"})]})]})})}function Gue(){return o.jsx("section",{className:"w-screen bg-white",style:{paddingTop:"0vh",paddingBottom:"0vh"},children:o.jsx("div",{className:"mx-auto w-[100vw]",children:o.jsx("iframe",{title:"Amatir Kanya Gurukul Map",className:"w-full",style:{height:"60vh"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3428.468312073812!2d76.841!3d29.9909!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3911a9e7b137a2e3%3A0x9a2b19b0d3f4a0f2!2sAmatir%20Kanya%20Gurukul!5e0!3m2!1sen!2sin!4v1680000000000"})})})}const Q2="#0E2349",Ca="#ED6D23",que=()=>{const[t,e]=T.useState({email:"",password:""}),[n,s]=T.useState(!1),r=Y({maxWidth:767}),a=Y({minWidth:768,maxWidth:1023});Y({minWidth:1024});const l=u=>{const{name:f,value:m}=u.target;e(g=>({...g,[f]:m}))},c=async u=>{u.preventDefault(),s(!0),setTimeout(()=>{s(!1),alert("Login functionality would be implemented here")},1e3)};return o.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"max-w-md w-full space-y-8",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("h2",{className:`cent-schbk-cyrill ${r?"text-2xl":a?"text-3xl":"text-4xl"}`,style:{color:Q2,marginTop:"4rem"},children:"Parent Login"}),o.jsx("p",{className:`mt-2 univers-regular ${r?"text-sm":"text-base"} text-gray-600`,children:"Access your child's academic information and school updates"})]}),o.jsxs("form",{className:"mt-8 space-y-6",onSubmit:c,children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"email",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Email Address"}),o.jsx("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,value:t.email,onChange:l,className:"appearance-none relative block w-full px-4 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 focus:z-10 univers-regular text-sm transition-colors",style:{focusRingColor:Ca,"--tw-ring-color":Ca},placeholder:"Enter your email address"})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"password",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Password"}),o.jsx("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,value:t.password,onChange:l,className:"appearance-none relative block w-full px-4 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 focus:z-10 univers-regular text-sm transition-colors",style:{focusRingColor:Ca,"--tw-ring-color":Ca},placeholder:"Enter your password"})]})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("input",{id:"remember-me",name:"remember-me",type:"checkbox",className:"h-4 w-4 roun
585ded border-gray-300 focus:ring-2 focus:ring-offset-2",style:{focusRingColor:Ca,"--tw-ring-color":Ca}}),o.jsx("label",{htmlFor:"remember-me",className:"ml-2 block text-sm univers-regular text-gray-700",children:"Remember me"})]}),o.jsx("div",{className:"text-sm",children:o.jsx("a",{href:"#",className:"univers-regular font-medium hover:underline transition-colors",style:{color:Ca},children:"Forgot your password?"})})]}),o.jsx("div",{children:o.jsx("button",{type:"submit",disabled:n,className:"group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm univers-regular font-medium rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-offset-2 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:Ca,focusRingColor:Ca,"--tw-ring-color":Ca},children:n?o.jsxs("div",{className:"flex items-center",children:[o.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Signing in..."]}):"Sign In"})}),o.jsx("div",{className:"text-center",children:o.jsxs("p",{className:"text-sm univers-regular text-gray-600",children:["Don't have an account?"," ",o.jsx("a",{href:"#",className:"font-medium hover:underline transition-colors",style:{color:Ca},children:"Contact the school"})]})})]}),o.jsxs("div",{className:"mt-8 p-4 rounded-lg",style:{backgroundColor:`${Q2}10`},children:[o.jsx("h3",{className:"text-sm univers-regular font-medium mb-2",style:{color:Q2},children:"Need Help?"}),o.jsx("p",{className:"text-xs univers-regular text-gray-600 mb-3",children:"If you're having trouble accessing your account, please contact the school administration."}),o.jsxs("div",{className:"space-y-1",children:[o.jsxs("p",{className:"text-xs univers-regular text-gray-600",children:[o.jsx("span",{className:"font-medium",children:"Email:"})," [email protected]"]}),o.jsxs("p",{className:"text-xs univers-regular text-gray-600",children:[o.jsx("span",{className:"font-medium",children:"Phone:"})," +91 7027570124"]})]})]})]})})},y0="#0E2349",li="#ED6D23",Kue=()=>{const[t,e]=T.useState({name:"",email:"",phone:"",childName:"",grade:"",message:""}),[n,s]=T.useState(!1),r=Y({maxWidth:767}),a=Y({minWidth:768,maxWidth:1023});Y({minWidth:1024});const l=u=>{const{name:f,value:m}=u.target;e(g=>({...g,[f]:m}))},c=async u=>{u.preventDefault(),s(!0),setTimeout(()=>{s(!1),alert("Thank you for your enquiry! We will get back to you soon."),e({name:"",email:"",phone:"",childName:"",grade:"",message:""})},1e3)};return o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${r?"text-3xl":a?"text-4xl":"text-5xl"}`,style:{color:y0},children:"Enquire Now"}),o.jsx("p",{className:`univers-regular text-gray-600 max-w-2xl mx-auto ${r?"text-base":"text-lg"}`,children:"Get in touch with us to learn more about Amatir Kanya Gurukul and how we can help your child's educational journey."})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[o.jsx("h2",{className:`cent-schbk-cyrill mb-6 ${r?"text-2xl":"text-3xl"}`,style:{color:y0},children:"Send us a Message"}),o.jsxs("form",{onSubmit:c,className:"space-y-6",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"name",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Parent/Guardian Name *"}),o.jsx("input",{type:"text",id:"name",name:"name",required:!0,value:t.name,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:li,"--tw-ring-color":li},placeholder:"Your full name"})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"email",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Email Address *"}),o.jsx("input",{type:"email",id:"email",name:"email",required:!0,value:t.email,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:li,"--tw-ring-color":li},placeholder:"[email protected]"})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"phone",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Phone Number *"}),o.jsx("input",{type:"tel",id:"phone",name:"phone",required:!0,value:t.phone,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:li,"--tw-ring-color":li},placeholder:"+91 9876543210"})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"childName",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Child's Name"}),o.jsx("input",{type:"text",id:"childName",name:"childName",value:t.childName,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:li,"--tw-ring-color":li},placeholder:"Child's full name"})]})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"grade",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Interested Grade/Class"}
585),o.jsxs("select",{id:"grade",name:"grade",value:t.grade,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors",style:{focusRingColor:li,"--tw-ring-color":li},children:[o.jsx("option",{value:"",children:"Select Grade"}),o.jsx("option",{value:"nursery",children:"Nursery"}),o.jsx("option",{value:"lkg",children:"LKG"}),o.jsx("option",{value:"ukg",children:"UKG"}),o.jsx("option",{value:"3",children:"Class 3"}),o.jsx("option",{value:"4",children:"Class 4"}),o.jsx("option",{value:"5",children:"Class 5"}),o.jsx("option",{value:"6",children:"Class 6"}),o.jsx("option",{value:"7",children:"Class 7"}),o.jsx("option",{value:"8",children:"Class 8"}),o.jsx("option",{value:"9",children:"Class 9"}),o.jsx("option",{value:"10",children:"Class 10"}),o.jsx("option",{value:"11",children:"Class 11"}),o.jsx("option",{value:"12",children:"Class 12"})]})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"message",className:"block text-sm univers-regular font-medium text-gray-700 mb-2",children:"Message"}),o.jsx("textarea",{id:"message",name:"message",rows:4,value:t.message,onChange:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 univers-regular text-sm transition-colors resize-none",style:{focusRingColor:li,"--tw-ring-color":li},placeholder:"Tell us more about your enquiry..."})]}),o.jsx("button",{type:"submit",disabled:n,className:"w-full py-3 px-4 border border-transparent text-sm univers-regular font-medium rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-offset-2 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:li,focusRingColor:li,"--tw-ring-color":li},children:n?"Sending...":"Send Enquiry"})]})]}),o.jsxs("div",{className:"space-y-8",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[o.jsx("h3",{className:`univers-regular mb-6 ${r?"text-xl":"text-2xl"}`,style:{color:y0},children:"Contact Information"}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-start space-x-4",children:[o.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:`${li}20`},children:o.jsx("svg",{className:"w-5 h-5",style:{color:li},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] font-medium text-gray-900",children:"Email"}),o.jsx("p",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600",children:"[email protected]"})]})]}),o.jsxs("div",{className:"flex items-start space-x-4",children:[o.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:`${li}20`},children:o.jsx("svg",{className:"w-5 h-5",style:{color:li},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] font-medium text-gray-900",children:"Phone"}),o.jsx("p",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600",children:"+91 7027570124"})]})]}),o.jsxs("div",{className:"flex items-start space-x-4",children:[o.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:`${li}20`},children:o.jsxs("svg",{className:"w-5 h-5",style:{color:li},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] font-medium text-gray-900",children:"Address"}),o.jsxs("p",{className:"font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600",children:["Amatir Kanya Gurukul, Bachgaon Gamri,",o.jsx("br",{}),"Lukhi Road, Kurukshetra,",o.jsx("br",{}),"Haryana 136119"]})]})]})]})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[o.jsx("h3",{className:`univers-regular mb-4 ${r?"text-xl":"text-2xl"}`,style:{color:y0},children:"Why Choose Amatir?"}),o.jsxs("ul",{className:"space-y-3 font-normal leading-[1.5] tracking-[-0.02em] text-[clamp(1rem,2.5vw,1.125rem)] font-['Univers',sans-serif] text-gray-600",children:[o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Holistic education focusing on academic excellence and character development"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Experienced and dedicated teaching faculty"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}
585),o.jsx("span",{children:"Modern facilities and infrastructure"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Safe and nurturing environment for girls"})]}),o.jsxs("li",{className:"flex items-start space-x-2",children:[o.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),o.jsx("span",{children:"Co-curricular activities and sports programs"})]})]})]})]})]})]})})},Ta="#0E2349",k6="#ED6D23",Yue=()=>{const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023});return Y({minWidth:1024}),o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8 mt-12",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${t?"text-3xl":e?"text-4xl":"text-5xl"}`,style:{color:Ta},children:"Privacy Policy"}),o.jsx("p",{className:`univers-regular text-gray-600 ${t?"text-sm":"text-base"} hidden`,children:"Last updated: January 2024"})]}),o.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 md:p-12",children:o.jsx("div",{className:"prose prose-lg max-w-none",children:o.jsxs("div",{className:"space-y-8",children:[o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"1. Introduction"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:'Amatir Kanya Gurukul ("we," "our," or "us") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website or use our services.'})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"2. Information We Collect"}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:k6},children:"Personal Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We may collect personal information that you voluntarily provide to us, including:"}),o.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 univers-regular text-gray-700",children:[o.jsx("li",{children:"Name and contact information (email, phone number, address)"}),o.jsx("li",{children:"Student information (name, grade, academic records)"}),o.jsx("li",{children:"Parent/guardian information"}),o.jsx("li",{children:"Payment and billing information"}),o.jsx("li",{children:"Communication preferences"})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:k6},children:"Automatically Collected Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We may automatically collect certain information about your device and usage, including:"}),o.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 univers-regular text-gray-700",children:[o.jsx("li",{children:"IP address and browser information"}),o.jsx("li",{children:"Pages visited and time spent on our website"}),o.jsx("li",{children:"Device information and operating system"}),o.jsx("li",{children:"Cookies and similar tracking technologies"})]})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"3. How We Use Your Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"We use the information we collect for various purposes, including:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Providing and maintaining our educational services"}),o.jsx("li",{children:"Processing admissions and enrollment"}),o.jsx("li",{children:"Communicating with parents and students"}),o.jsx("li",{children:"Managing academic records and progress"}),o.jsx("li",{children:"Processing payments and billing"}),o.jsx("li",{children:"Improving our website and services"}),o.jsx("li",{children:"Complying with legal obligations"}),o.jsx("li",{children:"Sending important updates and announcements"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"4. Information Sharing and Disclosure"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"We do not sell, trade, or rent your personal information to third parties. We may share your information in the following circumstances:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"With your explicit consent"}),o.jsx("li",{children:"To comply with legal requirements or court orders"}),o.jsx("li",{children:"To protect our rights, property, or safety"}),o.jsx("li",{children:"With trusted service providers who assist in our operations"}),o.jsx("li",{children:"In case of a merger, acquisition, or sale of assets"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"5. Data Security"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We implement appropriate technical and organizational measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet or electronic storage is 100% secure."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"6. Your Rights"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"You have certain rights regarding your personal information:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Access and review your personal information"}),o.jsx("li",{children:"Request correction of inaccurate information"}
585),o.jsx("li",{children:"Request deletion of your personal information"}),o.jsx("li",{children:"Object to processing of your information"}),o.jsx("li",{children:"Withdraw consent where applicable"}),o.jsx("li",{children:"Data portability rights"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"7. Cookies and Tracking Technologies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We use cookies and similar tracking technologies to enhance your experience on our website. You can control cookie settings through your browser preferences. Please refer to our Cookie Policy for more detailed information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"8. Children's Privacy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We are committed to protecting the privacy of children. We collect personal information from children only with parental consent and in accordance with applicable laws. Parents have the right to review, delete, or refuse further collection of their child's information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"9. Changes to This Privacy Policy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:'We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page and updating the "Last updated" date. We encourage you to review this Privacy Policy periodically.'})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Ta},children:"10. Contact Us"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"If you have any questions about this Privacy Policy or our privacy practices, please contact us:"}),o.jsx("div",{className:"bg-gray-50 p-6 rounded-lg",children:o.jsxs("div",{className:"space-y-2 univers-regular text-gray-700",children:[o.jsxs("p",{children:[o.jsx("strong",{children:"Email:"})," [email protected]"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Phone:"})," +91 7027570124"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Address:"})," Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"]})]})})]})]})})})]})})},ar="#0E2349",Xue=()=>{const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023});return Y({minWidth:1024}),o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8 mt-12",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${t?"text-3xl":e?"text-4xl":"text-5xl"}`,style:{color:ar},children:"Terms of Service"}),o.jsx("p",{className:`univers-regular text-gray-600 ${t?"text-sm":"text-base"} hidden`,children:"Last updated: January 2024"})]}),o.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 md:p-12",children:o.jsx("div",{className:"prose prose-lg max-w-none",children:o.jsxs("div",{className:"space-y-8",children:[o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"1. Acceptance of Terms"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"By accessing and using the Amatir Kanya Gurukul website and services, you accept and agree to be bound by the terms and provision of this agreement. If you do not agree to abide by the above, please do not use this service."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"2. Use License"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"Permission is granted to temporarily download one copy of the materials on Amatir Kanya Gurukul's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may
585not:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Modify or copy the materials"}),o.jsx("li",{children:"Use the materials for any commercial purpose or for any public display"}),o.jsx("li",{children:"Attempt to reverse engineer any software contained on the website"}),o.jsx("li",{children:"Remove any copyright or other proprietary notations from the materials"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"3. Educational Services"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Amatir Kanya Gurukul provides educational services including but not limited to:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Academic instruction and curriculum delivery"}),o.jsx("li",{children:"Student assessment and evaluation"}),o.jsx("li",{children:"Co-curricular activities and programs"}),o.jsx("li",{children:"Boarding facilities and residential care"}),o.jsx("li",{children:"Parent communication and reporting"})]}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"All educational services are subject to the school's academic policies, admission criteria, and disciplinary procedures as outlined in the school handbook."})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"4. User Accounts and Responsibilities"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"When creating an account or using our services, you agree to:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Provide accurate, current, and complete information"}),o.jsx("li",{children:"Maintain and update your information to keep it accurate"}),o.jsx("li",{children:"Maintain the security of your password and account"}),o.jsx("li",{children:"Accept responsibility for all activities under your account"}),o.jsx("li",{children:"Notify us immediately of any unauthorized use of your account"})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"5. Payment Terms"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Payment terms for school fees and other charges:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"All fees are due as per the school's fee structure and schedule"}),o.jsx("li",{children:"Late payment charges may apply for overdue amounts"}),o.jsx("li",{children:"Refund policies are subject to school regulations and applicable laws"}),o.jsx("li",{children:"Payment methods accepted include bank transfers, cheques, and online payments"}),o.jsx("li",{children:"Fee structure may be revised with prior notice to parents/guardians"})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"6. Prohibited Uses"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"You may not use our website or services:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"For any unlawful purpose or to solicit others to perform unlawful acts"}),o.jsx("li",{children:"To violate any international, federal, provincial, or state regulations, rules, laws, or local ordinances"}),o.jsx("li",{children:"To infringe upon or violate our intellectual property rights or the intellectual property rights of others"}),o.jsx("li",{children:"To harass, abuse, insult, harm, defame, slander, disparage, intimidate, or discriminate"}),o.jsx("li",{children:"To submit false or misleading information"}),o.jsx("li",{children:"To upload or transmit viruses or any other type of malicious code"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"7. Privacy and Data Protection"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Your privacy is important to us. Please review our Privacy Policy, which also governs your use of the website, to understand our practices. We are committed to protecting student privacy and complying with applicable data protection laws."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"8. Intellectual Property Rights"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"The website and its original content, features, and functionality are and will remain the exclusive property of Amatir Kanya Gurukul and its licensors. The website is protected by copyright, trademark, and other laws. Our trademarks and trade dress may not be used in connection with any product or service without our prior written consent."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"9. Limitation of Liability"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"In no event shall Amatir Kanya Gurukul, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your use of the website or services."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"10. Termination"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We may terminate or suspend your account and bar access to the website immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever and without limitation, including but not limited to a breach of the Terms."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"11. Governing Law"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"These Terms shall be interpreted and governed by the laws of India. Any disputes arising from these terms or the use of our services shall be subject to the jurisdiction of the courts in Kurukshetra, Haryana."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"12. Changes to Terms"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material, we will provide at least 30 days notice prior to any new terms taking effect. Your continued use of the website after any such changes constitutes your acceptance of the new Terms."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:ar},children:"13. Contact Information"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"If you have any questions about these Terms of Service, please contact us:"}),o.jsx("div",{className:"bg-gray-50 p-6 rounded-lg",children:o.jsxs("div",{className:"space-y-2 univers-regular text-gray-700",children:[o.jsxs("p",{children:[o.jsx("strong",{children:"Email:"})," [email protected]"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Phone:"})," +91 7027570124"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Address:"})," Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"]})]})})]})]})})})]})})},Aa="#0E2349",Pl="#ED6D23",Zue=()=>{const t=Y({maxWidth:767}),e=Y({minWidth:768,maxWidth:1023});return Y({minWidth:1024}),o.jsx("div",{className:"min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8 mt-12",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:`cent-schbk-cyrill mb-4 ${t?"text-3xl":e?"text-4xl":"text-5xl"}`,style:{color:Aa},children:"Cookie Policy"}),o.jsx("p",{className:`univers-regular text-gray-600 ${t?"text-sm":"text-base"} hidden`,children:"Last updated: January 2024"})]}),o.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 md:p-12",children:o.jsx("div",{className:"prose prose-lg max-w-none",children:o.jsxs("div",{className:"space-y-8",children:[o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"1. What Are Cookies?"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"Cookies are small text files that are placed on your computer or mobile device when you visit a website. They are widely used to make websites work more efficiently and to provide information to website owners. Cookies allow a website to re
585cognize a user's device and remember information about their visit."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"2. How We Use Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"Amatir Kanya Gurukul uses cookies for several purposes:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"To ensure our website functions properly"}),o.jsx("li",{children:"To remember your preferences and settings"}),o.jsx("li",{children:"To analyze how visitors use our website"}),o.jsx("li",{children:"To improve user experience and website performance"}),o.jsx("li",{children:"To provide personalized content and features"}),o.jsx("li",{children:"To maintain security and prevent fraud"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"3. Types of Cookies We Use"}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Essential Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies are necessary for the website to function properly. They enable basic functions like page navigation, access to secure areas, and remembering your login status."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Session cookies, authentication cookies, security cookies"]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Performance Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies collect information about how visitors use our website, such as which pages are visited most often and if visitors get error messages. This helps us improve how our website works."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Google Analytics cookies, website performance monitoring"]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Functionality Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies allow the website to remember choices you make and provide enhanced, more personal features. They may also be used to provide services you have requested."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Language preferences, font size settings, form data"]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-3 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Marketing Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"These cookies are used to track visitors across websites to display relevant and engaging advertisements. They help us measure the effectiveness of our marketing campaigns."}),o.jsxs("p",{className:"univers-regular text-sm text-gray-600",children:[o.jsx("strong",{children:"Examples:"})," Social media tracking, advertising network cookies"]})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"4. Cookie Duration"}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Session Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"These cookies are temporary and are deleted when you close your browser. They are used to maintain your session while you navigate through our website."})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Persistent Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"These cookies remain on your device for a set period or until you delete them. They help us recognize you when you return to our website and remember your preferences."})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"5. Third-Party Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"Some cookies on our website are set by third-party services that appear on our pages. These may include:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700",children:[o.jsx("li",{children:"Google Analytics for website analytics"}),o.jsx("li",{children:"Social media platforms for sharing content"}),o.jsx("li",{children:"Payment processors for online transactions"}),o.jsx("li",{children:"Content delivery networks for faster loading"})]}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mt-4",children:"We do not control these third-party cookies. Please refer to their respective privacy policies for more information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"6. Managing Your Cookie Preferences"}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"You have several options for managing cookies:"}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Browser Settings"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-2",children:"Most web browsers allow you to control cookies through their settings. You can:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-1 univers-regular text-gray-700",children:[o.jsx("li",{children:"Block all cookies"}),o.jsx("li",{children:"Block third-party cookies only"}),o.jsx("li",{children:"Delete existing cookies"}),o.jsx("li",{children:"Set preferences for specific websites"})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:`univers-regular font-medium mb-2 ${t?"text-base":"text-lg"}`,style:{color:Pl},children:"Cookie Consent"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"When you first visit our website, you may see a cookie consent banner. You can choose which types of cookies to accept or reject. You can change your preferences at any time by clicking the cookie settings link in our website footer."})]})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"7. Impact of Disabling Cookies"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"If you choose to disable cookies, some features of our website may not function properly. This may include:"}),o.jsxs("ul",{className:"list-disc list-inside space-y-2 univers-regular text-gray-700 mt-4",children:[o.jsx("li",{children:"Inability to stay logged in to your account"}),o.jsx("li",{children:"Loss of personalized settings and preferences"}),o.jsx("li",{children:"Reduced website functionality and performance"}),o.jsx("li",{children:"Inability to access certain secure areas"})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"8. Children's Privacy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:"We are committed to protecting the privacy of children. We do not knowingly collect personal information from children under 13 through cookies without parental consent. Parents can contact us to review, delete, or refuse further collection of their child's information."})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"9. Updates to This Policy"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed",children:'We may update this Cookie Policy from time to time to reflect changes in our practices or for other operational, legal, or regulatory reasons. We will notify you of any material changes by posting the updated policy on our website with a new "Last updated" date.'})]}),o.jsxs("section",{children:[o.jsx("h2",{className:`univers-regular mb-4 ${t?"text-xl":"text-2xl"}`,style:{color:Aa},children:"10. Contact Us"}),o.jsx("p",{className:"univers-regular text-gray-700 leading-relaxed mb-4",children:"If you have any questions about our use of cookies or this Cookie Policy, please contact us:"}),o.jsx("div",{className:"bg-gray-50 p-6 rounded-lg",children:o.jsxs("div",{className:"space-y-2 univers-regular text-gray-700",children:[o.jsxs("p",{children:[o.jsx("strong",{children:"Email:"})," [email protected]"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Phone:"})," +91 7027570124"]}),o.jsxs("p",{children:[o.jsx("strong",{children:"Address:"})," Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana 136119"]})]})})]})]})})})]})})};function bi({DesktopComponent:t,MobileComponent:e}){return Y({maxWidth:768})?o.jsx(e,{}):o.jsx(t,{})}function Jue(){const t=gs();return T.useEffect(()=>{const e=t.hash;if(!e)return;const n=decodeURIComponent(e.replace("#",""));if(!n)return;let s=0;const r=15,a=()=>{const l=document.getElementById(n);if(l){l.scrollIntoView({behavior:"auto",block:"start"});return}s<r&&(s+=1,setTimeout(a,100))};setTimeout(a,100)},[t]),null}function Que(){const t=gs();return T.useEffect(()=>{t.hash||window.scrollTo({top:0,left:0,behavior:"auto"})},[t.pathname,t.search]),null}function ehe(){const t=gs();return T.useEffect(()=>{typeof fbq=="function"&&fbq("track","PageView")},[t.pathname]),null}function the(){return T.useEffect(()=>{typeof fbq=="function"&&fbq("track","Lead")},[]),o.jsx(Nde,{})}function nhe(){return T.useEffect(()=>{typeof fbq=="function"&&fbq("track","Lead")},[]),o.jsx(Kue,{})}function ihe({children:t}){const e=gs(),n=e.pathname.startsWith("/admin-login")||e.pathname.startsWith("/dashboard");return o.jsxs(o.Fragment,{children:[o.jsx(Jue,{}),o.jsx(Que,{}),o.jsx(ehe,{}),n?o.jsx(o.Fragment,{children:t}):o.jsxs("div",{className:"flex flex-col min-h-screen",children:[o.jsx(WH,{}),o.jsx("main",{className:"flex-grow",children:t}),o.jsx(GH,{})]})]})}function she(){return T.useEffect(()=>{(function(n,s,r,a,l,c,u){n.fbq||(l=n.fbq=function(){l.callMethod?l.callMethod.apply(l,arguments):l.queue.push(arguments)},n._fbq||(n._fbq=l),l.push=l,l.loaded=!0,l.version="2.0",l.queue=[],c=s.createElement(r),
585c.async=!0,c.src=a,u=s.getElementsByTagName(r)[0],u.parentNode.insertBefore(c,u))})(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),typeof fbq=="function"&&(fbq("init","838447832070170"),fbq("track","PageView"));const t=document.createElement("script");t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id=G-KDHQ2FK4QK",document.head.appendChild(t);const e=document.createElement("script");e.innerHTML=` 586
vendor: 145 bytes, lines 586-589
586window.dataLayer = window.dataLayer || []; 587 function gtag(){dataLayer.push(arguments);} 588 gtag('js', new Date()); 589 gtag('config', '
589G-KDHQ2FK4QK
vendor: 8 bytes, lines 589-590
589'); 590
590`,document.head.appendChild(e)},[]),o.jsx(eF,{children:o.jsx(sW,{children:o.jsx(ihe,{children:o.jsxs(M7,{children:[o.jsx(qt,{path:"/",element:o.jsx(bi,{DesktopComponent:rse,MobileComponent:Lde})}),o.jsx(qt,{path:"/about",element:o.jsx(bi,{DesktopComponent:ose,MobileComponent:Pde})}),o.jsx(qt,{path:"/admissions",element:o.jsx(bi,{DesktopComponent:dse,MobileComponent:zde})}),o.jsx(qt,{path:"/academics",element:o.jsx(bi,{DesktopComponent:Cse,MobileComponent:$de})}),o.jsx(qt,{path:"/boarding",element:o.jsx(bi,{DesktopComponent:zse,MobileComponent:Zde})}),o.jsx(qt,{path:"/facilities",element:o.jsx(bi,{DesktopComponent:Fse,MobileComponent:Jde})}),o.jsx(qt,{path:"/life-at-amatir",element:o.jsx(bi,{DesktopComponent:rre,MobileComponent:uue})}),o.jsx(qt,{path:"/campus-visit",element:o.jsx(bi,{DesktopComponent:ore,MobileComponent:fue})}),o.jsx(qt,{path:"/careers",element:o.jsx(bi,{DesktopComponent:lre,MobileComponent:mue})}),o.jsx(qt,{path:"/co-curricular",element:o.jsx(bi,{DesktopComponent:bre,MobileComponent:_ue})}),o.jsx(qt,{path:"/essential-information",element:o.jsx(bi,{DesktopComponent:ede,MobileComponent:Cue})}),o.jsx(qt,{path:"/contact",element:o.jsx(bi,{DesktopComponent:tde,MobileComponent:Tue})}),o.jsx(qt,{path:"/reachout",element:o.jsx(bi,{DesktopComponent:sde,MobileComponent:Rue})}),o.jsx(qt,{path:"/reachout_meta",element:o.jsx(bi,{DesktopComponent:fde,MobileComponent:Fue})}),o.jsx(qt,{path:"/parent-login",element:o.jsx(bi,{DesktopComponent:wde,MobileComponent:que})}),o.jsx(qt,{path:"/thank-you",element:o.jsx(bi,{DesktopComponent:h6,MobileComponent:h6})}),o.jsx(qt,{path:"/enquire",element:o.jsx(bi,{DesktopComponent:the,MobileComponent:nhe})}),o.jsx(qt,{path:"/privacy",element:o.jsx(bi,{DesktopComponent:Sde,MobileComponent:Yue})}),o.jsx(qt,{path:"/terms",element:o.jsx(bi,{DesktopComponent:_de,MobileComponent:Xue})}),o.jsx(qt,{path:"/cookies",element:o.jsx(bi,{DesktopComponent:jde,MobileComponent:Zue})}),o.jsx(qt,{path:"/admissions2526",element:o.jsx(Ede,{})}),o.jsx(qt,{path:"/vidyashri",element:o.jsx(Cde,{})}),o.jsx(qt,{path:"/blogs",element:o.jsx(xne,{})}),o.jsx(qt,{path:"/blogs/:slug",element:o.jsx(vne,{})}),o.jsx(qt,{path:"/admin-login",element:o.jsx(rW,{children:o.jsx(aW,{})})}),o.jsx(qt,{path:"/dashboard",element:o.jsx(bx,{children:o.jsx(cW,{})})}),o.jsx(qt,{path:"/dashboard/blogs",element:o.jsx(bx,{children:o.jsx(uW,{})})}),o.jsx(qt,{path:"/dashboard/blogs/new",element:o.jsx(bx,{children:o.jsx(i4,{})})}),o.jsx(qt,{path:"/dashboard/blogs/edit/:id",element:o.jsx(bx,{children:o.jsx(i4,{})})})]})})})})}const rhe={trust:"Initiative by Anant Charitable Trust",titleStart:"Vidyashri",titleEnd:"SCHOLARSHIP",title:"Empowering the<1/> Brightest Daughters of Bharat",description:"<highlight>A 100% FREE Residential and Day-Boarding Gurukul Program<br/></highlight> blending Modern Education, Indian Values & Lifelong Growth.",seatsAvailable:"Only 24 Merit-Based Seats",apply:"Request a Callback",scholarship:"Vidya शà¥à¤°à¥ Scholarship",scholarshipDescription:"Scholarship Exam Result Declared â ",scholarshipLink:"Check Now!",scholarshipPrize:"Scholarship Exam Results Out! Know Your Result."},ahe={greeting:"Dear Parents,",intro:"Greetings from Amatir Kanya Gurukul!",body:"Please find attached the <0>result PDF</0> of the Vidyashri Scholarship Exam for your information. Based on the first round, the top 25 rank holders have been shortlisted for the second round comprising an interview and document verification. We may invite more students for the second round, if required.",reporting:"The shortlisted students of Class 11 are requested to report at <1>10:00 AM</1> and those of Class 9 at <2>01:00 PM</2> on <3>31st March 2025</3> at Amatir Kanya Gurukul.",noteTitle:"Note:",notes:{point1:"Parent must accompany their daughter.",point2:"Kindly bring Government-approved Income Proof Documents, if available, for verification.",point3:"Clearing the written exam does not guarantee admission. Admission is subject to qualification in the second round.",point4:"The final list of students qualifying for Vidyashri 100% scholarship will be communicated only to concerned parents."},closing:"We look forward to welcoming you.",signature:"Sincerely,",organization:"Amatir Kanya Gurukul"}
590,ohe={title:"Scholarship Details",detail:{seats:"<1>Only 24 Seats</1> for Class 11 (Science Stream)â ",financialSupport:"<1>100% Financial Support:</1> Tuition fee, hostel fee, transport fee, books & uniform",guidance:"Prepare with the <1>PW VIDYAPEETH (Physics Wallah)</1> countryâs top IIT-JEE and NEET expert teachers, directly inside our secure campus",selection:"<1>Selection Criteria:</1> Written Test + Interview + Economically Weaker Background",examDate:"<1>Scholarship Exam Date:</1> 29 March 2026, 09:30 AM",venue:"<1>Exam Venue:</1> Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana - 136119",boarding:"Both Boarding & Day Boarding Daughters"},whyTitle:"Why This Scholarship?",whyPoints:{point1:"Organized & funded by Anant Charitable Trust for meritorious daughters",point2:"Amatir Kanya Gurukul â where tradition meets modern education",point3:"Academic excellence with NEET, JEE, NDA & CUET coaching",point4:"Complete growth ecosystem under one roof"},scholarhipMeans:"Empowering talented girls from economically disadvantaged families with modern education, traditional values, and Indiaâs best competitive exam preparation at absolutely zero cost. <1>Exclusively for Class 11 (Science Stream) | Only 24 Merit-Based Seats Available!</1>",whatScholarTittle:"What is the VidyaShri Scholarship?",whatScholarDesc:"Initiated and funded by the <1>Anant Charitable Trust</1>, this scholarship aims to remove the financial barriers stopping brilliant girls from achieving their dreams. In partnership with <1>Amatir Kanya Gurukul</1> and <1>PW Vidyapeeth (Physics Wallah)</1>, we provide a safe, culturally rooted environment combined with expert academic guidance to ensure your daughter's bright, self-reliant future.",eligibilityTitle:"<1>What is Included? (100% Free)</1> <span>This is a 100% financial assistance initiative. The scholarship completely covers:</span>",Points:{point1:"<1>Full School Tuition Fees:</1> Education specifically for Grade 11 (Science Stream).",point2:"<1>Hostel & Transport:</1> 24x7 secure boarding and day-boarding facilities for girls.",point3:"<1>Study Material:</1> All books and uniforms.",point4:"<1>Competitive Coaching:</1> Free on-campus <1>IIT-JEE, NEET, NDA and CUET</1> preparation."},pwDesc:'<1>Best Preparation in a Safe Gurukul</1> Through our exclusive "School Integrated Program", the trusted experts from <br/><1>PW Vidyapeeth (Physics Wallah)</1> will teach directly inside our secure campus.',pwPoints:{point1:"<1>
590Comprehensive Preparation:</1> Board exam focus seamlessly integrated with a competitive edge.",point2:"<1>Expert Guidance:</1> Benchmark performance nationally with top-tier educators.",point3:"<1>Proven Results:</1> Backed by PW Vidyapeethâs legacy of producing top ranks, including <1>JEE Advanced 2025 AIR 3, 12 and 48</1> and <1>NEET (UG) 2025 AIR 87 and 100.</1>"},details:{selection:"<1>Selection Criteria:</1> Written Test + Interview + Economically Weaker Background Verification. ",examDate:"<1>Scholarship Exam Date:</1> 28 June, 2026",examTime:"<1>Reporting Time:</1> (Morning) 09:30 AM ",venue:"<1>Venue:</1> Amatir Kanya Gurukul, Bachgaon Gamri, Lukhi Road, Kurukshetra, Haryana â 136119",Note:"<1>Note:</1> Parents must accompany their daughters and bring a government-recognized income certificate for verification. Clearing the written test does not guarantee admission; it depends on qualifying the second round of interviews."}},lhe={hero:rhe,scholarshipNotice:ahe,InDetail:ohe},che={trust:"à¤
नà¤à¤¤ à¤à¥à¤°à¤¿à¤à¥à¤¬à¤² à¤à¥à¤°à¤¸à¥à¤ à¤à¥ à¤à¤ विशà¥à¤· पहल",titleStart:"विदà¥à¤¯à¤¾à¤¶à¥à¤°à¥",titleEnd:"à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿",title:"à¤à¤¾à¤°à¤¤ à¤à¥ पà¥à¤°à¤¤à¤¿à¤à¤¾à¤¶à¤¾à¤²à¥<1/>बà¥à¤à¤¿à¤¯à¥à¤ à¤à¥ सशà¤à¥à¤¤ बनाना",description:"à¤à¤§à¥à¤¨à¤¿à¤ शिà¤à¥à¤·à¤¾, à¤à¤¾à¤°à¤¤à¥à¤¯ सà¤à¤¸à¥à¤à¤¾à¤°à¥à¤ à¤à¤µà¤ à¤à¤à¥à¤µà¤¨ सरà¥à¤µà¤¾à¤à¤à¥à¤£ विà¤à¤¾à¤¸ à¤à¤¾ सà¤à¤à¤® <br/><highlight>100% निà¤à¤¶à¥à¤²à¥à¤ à¤à¤µà¤¾à¤¸à¥à¤¯ à¤à¤µà¤ डà¥-बà¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¥à¤°à¥à¤à¥à¤² à¤à¤¾à¤°à¥à¤¯à¤à¥à¤°à¤®</highlight>",seatsAvailable:"मà¥à¤°à¤¿à¤ à¤à¤§à¤¾à¤°à¤¿à¤¤ मातà¥à¤° 24 सà¥à¤à¥à¤",apply:"à¤à¥à¤²à¤¬à¥à¤ à¤à¤¾ à¤
नà¥à¤°à¥à¤§ à¤à¤°à¥à¤",scholarship:"विदà¥à¤¯à¤¾ शà¥à¤°à¥ à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿",scholarshipDescription:"à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ परà¥à¤à¥à¤·à¤¾ परिणाम à¤à¥à¤·à¤¿à¤¤ â ",scholarshipLink:"à¤
à¤à¥ दà¥à¤à¥à¤!",scholarshipPrize:"सà¥à¤à¥à¤²à¤°à¤¶à¤¿à¤ª परà¥à¤à¥à¤·à¤¾ परिणाम à¤à¤¾ à¤à¤¾à¤°à¥! à¤
पनॠपरिणाम à¤à¤¾à¤¨à¥à¤à¥¤"},dhe={greeting:"पà¥à¤°à¤¿à¤¯ à¤
à¤à¤¿à¤à¤¾à¤µà¤à¤à¤£,",intro:"à¤
मातिर à¤à¤¨à¥à¤¯à¤¾ à¤à¥à¤°à¥à¤à¥à¤² à¤à¥ à¤à¤° सॠनमसà¥à¤à¤¾à¤°!",body:"à¤à¤ªà¤à¥ à¤à¤¾à¤¨à¤à¤¾à¤°à¥ à¤à¥ लिठविदà¥à¤¯à¤¾à¤¶à¥à¤°à¥ <0>à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ परà¥à¤à¥à¤·à¤¾ à¤à¤¾ परिणाम</0> पà¥à¤¡à¥à¤à¤« सà¤à¤²à¤à¥à¤¨ हà¥à¥¤ पà¥à¤°à¤¥à¤® à¤à¤°à¤£ à¤à¥ à¤à¤§à¤¾à¤° पर, शà¥à¤°à¥à¤· 25 रà¥à¤à¤ धारà¤à¥à¤ à¤à¥ दà¥à¤¸à¤°à¥ à¤à¤°à¤£ à¤à¥ लिठà¤à¥à¤¨à¤¾ à¤à¤¯à¤¾ हà¥, à¤à¤¿à¤¸à¤®à¥à¤ साà¤à¥à¤·à¤¾à¤¤à¥à¤à¤¾à¤° à¤à¤° दसà¥à¤¤à¤¾à¤µà¥à¤à¤¼ सतà¥à¤¯à¤¾à¤ªà¤¨ शामिल हà¥à¥¤ à¤à¤µà¤¶à¥à¤¯à¤à¤¤à¤¾ पड़नॠपर हम दà¥à¤¸à¤°à¥ à¤à¤°à¤£ à¤à¥ लिठà¤à¤° à¤à¥ विदà¥à¤¯à¤¾à¤°à¥à¤¥à¤¿à¤¯à¥à¤ à¤à¥ à¤à¤®à¤à¤¤à¥à¤°à¤¿à¤¤ à¤à¤° सà¤à¤¤à¥ हà¥à¤à¥¤",pdflink:"परà¥à¤à¥à¤·à¤¾ à¤à¤¾ परिणाम पà¥à¤¡à¥à¤à¤«",reporting:"à¤à¤à¥à¤·à¤¾ 11 à¤à¥ à¤à¤¯à¤¨à¤¿à¤¤ विदà¥à¤¯à¤¾à¤°à¥à¤¥à¤¿à¤¯à¥à¤ सॠà¤
नà¥à¤°à¥à¤§ हॠà¤à¤¿ वॠ<1>29 मारà¥à¤ 2026</1> à¤à¥ <2>सà¥à¤¬à¤¹ 09:30 बà¤à¥</2> à¤à¤° à¤à¤à¥à¤·à¤¾ 9 à¤à¥ विदà¥à¤¯à¤¾à¤°à¥à¤¥à¤¿à¤¯à¥à¤ सॠà¤
नà¥à¤°à¥à¤§ हॠà¤à¤¿ वॠ<3>दà¥à¤ªà¤¹à¤° 1:00 बà¤à¥</3> à¤
मातिर à¤à¤¨à¥à¤¯à¤¾ à¤à¥à¤°à¥à¤à¥à¤² मà¥à¤ à¤à¤ªà¤¸à¥à¤¥à¤¿à¤¤ हà¥à¤à¥¤",noteTitle:"नà¥à¤:",notes:{point1:"à¤
à¤à¤¿à¤à¤¾à¤µà¤ à¤à¤¾ à¤
पनॠपà¥à¤¤à¥à¤°à¥ à¤à¥ साथ à¤à¤¨à¤¾ à¤
निवारà¥à¤¯ हà¥à¥¤",point2:"सतà¥à¤¯à¤¾à¤ªà¤¨ à¤à¥ लिठà¤à¥à¤ªà¤¯à¤¾ सरà¤à¤¾à¤°à¥ मानà¥à¤¯à¤¤à¤¾ पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤¯ पà¥à¤°à¤®à¤¾à¤£ पतà¥à¤° (यदि à¤à¤ªà¤²à¤¬à¥à¤§ हà¥) à¤
वशà¥à¤¯ लाà¤à¤à¥¤",point3:"à¤à¥à¤ªà¤¯à¤¾ धà¥à¤¯à¤¾à¤¨ दà¥à¤ à¤à¤¿ लिà¤à¤¿à¤¤ परà¥à¤à¥à¤·à¤¾ à¤à¤¤à¥à
590¤¤à¥à¤°à¥à¤£ à¤à¤°à¤¨à¥ सॠपà¥à¤°à¤µà¥à¤¶ à¤à¥ à¤à¤¾à¤°à¤à¤à¥ नहà¥à¤ मिलतॠहà¥à¥¤ पà¥à¤°à¤µà¥à¤¶ à¤à¤¯à¤¨ à¤à¥ दà¥à¤¸à¤°à¥ à¤à¤°à¤£ मà¥à¤ यà¥à¤à¥à¤¯à¤¤à¤¾ पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¤¨à¥ पर निरà¥à¤à¤° हà¥à¥¤",point4:"विदà¥à¤¯à¤¾à¤¶à¥à¤°à¥ 100% à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ à¤à¥ लिठà¤
रà¥à¤¹à¤¤à¤¾ पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¤¨à¥ वालॠविदà¥à¤¯à¤¾à¤°à¥à¤¥à¤¿à¤¯à¥à¤ à¤à¥ à¤
à¤à¤¤à¤¿à¤® सà¥à¤à¥ à¤à¤¾à¤°à¥ à¤à¥ à¤à¤¾à¤à¤à¥ à¤à¤° à¤à¥à¤µà¤² सà¤à¤¬à¤à¤§à¤¿à¤¤ à¤
à¤à¤¿à¤à¤¾à¤µà¤à¥à¤ à¤à¥ हॠसà¥à¤à¤¿à¤¤ à¤à¥ à¤à¤¾à¤à¤à¥à¥¤"},closing:"हम à¤à¤ªà¤à¤¾ सà¥à¤µà¤¾à¤à¤¤ à¤à¤°à¤¨à¥ à¤à¥ लिठà¤à¤¤à¥à¤¸à¥à¤ हà¥à¤à¥¤",signature:"सादर,",organization:"à¤
मतिर à¤à¤¨à¥à¤¯à¤¾ à¤à¥à¤°à¥à¤à¥à¤²"},uhe={title:"à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ à¤à¤¾ विवरण:",detail:{seats:"à¤à¤à¥à¤·à¤¾ 11 (साà¤à¤à¤¸ सà¥à¤à¥à¤°à¥à¤®) à¤à¥ लिठ<1>à¤à¥à¤µà¤² 24 सà¥à¤à¥à¤</1> हà¥à¤à¥¤",financialSupport:"<1>100% वितà¥à¤¤à¥à¤¯ सहायता</1> à¤à¤¸à¤®à¥à¤ सà¥à¤à¥à¤² à¤à¥ à¤à¥à¤¯à¥à¤¶à¤¨ फà¥à¤¸, हà¥à¤¸à¥à¤à¤² फà¥à¤¸, परिवहन फà¥à¤¸, à¤à¤¿à¤¤à¤¾à¤¬à¥à¤ à¤à¤° यà¥à¤¨à¤¿à¤«à¥à¤°à¥à¤® शामिल हà¥à¤à¥¤",guidance:"दà¥à¤¶ à¤à¥ सबसॠबà¥à¤¹à¤¤à¤°à¥à¤¨ IIT-JEE, NEET à¤à¥ विशà¥à¤·à¤à¥à¤ <1>PW VIDYAPEETH (Physics Wallah)</1> à¤à¥ शिà¤à¥à¤·à¤à¥à¤ दà¥à¤µà¤¾à¤°à¤¾ तà¥à¤¯à¤¾à¤°à¥, सà¥à¤§à¥ हमारॠसà¥à¤°à¤à¥à¤·à¤¿à¤¤ à¤à¥à¤à¤ªà¤¸ à¤à¥ à¤
à¤à¤¦à¤°",selection:"<1>à¤à¤¯à¤¨ मानदà¤à¤¡</1> - लिà¤à¤¿à¤¤ परà¥à¤à¥à¤·à¤¾ + साà¤à¥à¤·à¤¾à¤¤à¥à¤à¤¾à¤° + à¤à¤°à¥à¤¥à¤¿à¤ रà¥à¤ª सॠà¤à¤®à¤à¥à¤° पà¥à¤·à¥à¤ à¤à¥à¤®à¤¿à¥¤",examDate:"<1>â â à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ परà¥à¤à¥à¤·à¤¾ à¤à¥ तिथि:</1> 29 मारà¥à¤ 2026, सà¥à¤¬à¤¹ 09:30 बà¤à¥",venue:"<1>परà¥à¤à¥à¤·à¤¾ सà¥à¤¥à¤²:</1> -à¤
मातिर à¤à¤¨à¥à¤¯à¤¾ à¤à¥à¤°à¥à¤à¥à¤², बà¤à¤à¤¾à¤à¤µ à¤à¤¾à¤®à¤¡à¤¼à¥, लà¥à¤à¥ रà¥à¤¡, à¤à¥à¤°à¥à¤à¥à¤·à¥à¤¤à¥à¤°, हरियाणा - 136119",boarding:"बà¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¤° डॠबà¥à¤°à¥à¤¡à¤¿à¤à¤ दà¥à¤¨à¥à¤ पà¥à¤°à¤à¤¾à¤° à¤à¥ बà¥à¤à¤¿à¤¯à¤¾à¤"},whyTitle:"यह à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ à¤à¥à¤¯à¥à¤?",whyPoints:{point1:"à¤
नà¤à¤¤ à¤à¥à¤°à¤¿à¤à¥à¤¬à¤² à¤à¥à¤°à¤¸à¥à¤ दà¥à¤µà¤¾à¤°à¤¾ à¤à¤¯à¥à¤à¤¿à¤¤ à¤à¤° वितà¥à¤¤à¤ªà¥à¤·à¤¿à¤¤ - à¤à¥ सà¤à¥ पà¥à¤·à¥à¤ à¤à¥à¤®à¤¿ à¤à¥ पà¥à¤°à¤¤à¤¿à¤à¤¾à¤¶à¤¾à¤²à¥ बà¥à¤à¤¿à¤¯à¥à¤ à¤à¥ शिà¤à¥à¤·à¤¾ पà¥à¤°à¤¦à¤¾à¤¨ à¤à¤°à¤¨à¥ à¤à¥ लिठपà¥à¤°à¤¤à¤¿à¤¬à¤¦à¥à¤§ हà¥à¥¤",point2:"à¤
मातिर à¤à¤¨à¥à¤¯à¤¾ à¤à¥à¤°à¥à¤à¥à¤² मà¥à¤ शिà¤à¥à¤·à¤¾ â à¤à¤ à¤à¤¸à¤¾ सà¥à¤¥à¤¾à¤¨ à¤à¤¹à¤¾à¤ परà¤à¤ªà¤°à¤¾ à¤à¤§à¥à¤¨à¤¿à¤ शिà¤à¥à¤·à¤¾ सॠमिलतॠहà¥, à¤à¤° बà¥à¤à¤¿à¤¯à¥à¤ à¤à¥ à¤à¤¤à¥à¤®à¤µà¤¿à¤¶à¥à¤µà¤¾à¤¸à¥, à¤à¤¤à¥à¤®à¤¨à¤¿à¤°à¥à¤à¤° वà¥à¤¯à¤à¥à¤¤à¤¿à¤¯à¥à¤ à¤à¥ रà¥à¤ª मà¥à¤ ढालतॠहà¥à¥¤",point3:"à¤à¥à¤¨à¥à¤¸à¤¿à¤¸ à¤à¥à¤²à¤¾à¤¸à¥à¤¸ à¤à¥ साथ à¤
à¤à¤¾à¤¦à¤®à¤¿à¤ à¤à¤¤à¥à¤à¥à¤·à¥à¤à¤¤à¤¾ â NEET, JEE, NDA, CUET à¤à¤° à¤
नà¥à¤¯ पà¥à¤°à¤¤à¤¿à¤¯à¥à¤à¥ परà¥à¤à¥à¤·à¤¾à¤à¤ à¤à¥ लिठà¤à¤à¥à¤ सà¥à¤¤à¤°à¥à¤¯ मारà¥à¤à¤¦à¤°à¥à¤¶à¤¨ पà¥à¤°à¤¦à¤¾à¤¨ à¤à¤°à¤¨à¤¾à¥¤",point4:"à¤à¤ सà¤à¤ªà¥à¤°à¥à¤£ विà¤à¤¾à¤¸ पà¥à¤°à¤£à¤¾à¤²à¥ â शिà¤à¥à¤·à¤¾, वà¥à¤¯à¤à¥à¤¤à¤¿à¤à¤¤ विà¤à¤¾à¤¸ à¤à¤° à¤à¤°à¤¿à¤¯à¤° मारà¥à¤à¤¦à¤°à¥à¤¶à¤¨, सब à¤à¥à¤ à¤à¤ हॠà¤à¤¤ à¤à¥ नà¥à¤à¥à¥¤"},scholarhipMeans:"à¤à¤°à¥à¤¥à¤¿à¤ रà¥à¤ª सॠà¤à¤®à¤à¥à¤° वरà¥à¤ à¤à¥ पà¥à¤°à¤¤à¤¿à¤à¤¾à¤¶à¤¾à¤²à¥ बà¥à¤à¤¿à¤¯à¥à¤ à¤à¥ लिठà¤à¤ विशà¥à¤· पहल à¤à¤¹à¤¾à¤ à¤à¤§à¥à¤¨à¤¿à¤ शिà¤à¥à¤·à¤¾, à¤à¥à¤°à¥à¤à¥à¤² à¤à¥ सà¤à¤¸à¥à¤à¤¾à¤° à¤à¤° दà¥à¤¶ à¤à¥ सरà¥à¤µà¤¶à¥à¤°à¥à¤·à¥à¤ पà¥à¤°à¤¤à¤¿à¤¯à¥à¤à¥ परà¥à¤à¥à¤·à¤¾ à¤à¥ तà¥à¤¯à¤¾à¤°à¥ मिलतॠहà¥, वह à¤à¥ बिलà¥à¤à¥à¤² मà¥à¤«à¤¼à¥à¤¤! <1>à¤à¥à¤µà¤² à¤à¤à¥à¤·à¤¾ 11 (साà¤à¤à¤¸ सà¥à¤à¥à¤°à¥à¤®) à¤à¥ लिठ|</1>",whatScholarTittle:"विदà¥à¤¯à¤¾à¤¶à¥à¤°à¥ सà¥à¤à¥à¤²à¤°à¤¶à¤¿à¤ª à¤à¥à¤¯à¤¾ हà¥?",whatScholarDesc:"<1>à¤
नà¤à¤¤ à¤à¥à¤°à¤¿à¤à¥à¤¬à¤² à¤à¥à¤°à¤¸à¥à¤</1> दà¥à¤µà¤¾à¤°à¤¾ à¤à¤¯à¥à¤à¤¿à¤¤ à¤à¤° वितà¥à¤¤à¤ªà¥à¤·à¤¿à¤¤ यह à¤à¤ विशà¥à¤· पहल हà¥, à¤à¤¿à¤¸à¤à¤¾ à¤à¤¦à¥à¤¦à¥à¤¶à¥à¤¯ सà¤à¥ पà¥à¤·à¥à¤ à¤à¥à¤®à¤¿ à¤à¥ पà¥à¤°à¤¤à¤¿à¤à¤¾à¤¶à¤¾à¤²à¥ बà¥à¤à¤¿à¤¯à¥à¤ à¤à¥ शिà¤à¥à¤·à¤¾ पà¥à¤°à¤¦à¤¾à¤¨ à¤à¤°à¤¨à¤¾ हà¥à¥¤ <1>à¤
मातिर à¤à¤¨à¥à¤¯à¤¾ à¤à¥à¤°à¥à¤à¥à¤²</1> à¤à¤° <1>PW Vidyapeeth (Physics Wallah)</1> à¤à¥ सहयà¥à¤ सà¥, हम बà¥à¤à¤¿à¤¯à¥à¤ à¤à¥ à¤à¤ सà¥à¤°à¤à¥à¤·à¤¿à¤¤, सà¤à¤¸à¥à¤à¤¾à¤°à¤µà¤¾à¤¨ माहà¥à¤² à¤à¤° विशà¥à¤·à¤à¥à¤ मारà¥à¤à¤¦à¤°à¥à¤¶à¤¨ पà¥à¤°à¤¦à¤¾à¤¨ à¤à¤°à¤¤à¥ हà¥à¤, ताà¤à¤¿ वॠà¤à¤¤à¥à¤®à¤µà¤¿à¤¶à¥à¤µà¤¾à¤¸à¥ à¤à¤° à¤à¤¤à¥à¤®à¤¨à
590¤¿à¤°à¥à¤à¤° बन सà¤à¥à¤à¥¤",eligibilityTitle:"<1>à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ à¤à¤¾ विवरण (100% मà¥à¤«à¤¼à¥à¤¤):</1> à¤à¤¸ यà¥à¤à¤¨à¤¾ à¤à¥ तहत 100% वितà¥à¤¤à¥à¤¯ सहायता पà¥à¤°à¤¦à¤¾à¤¨ à¤à¥ à¤à¤¾à¤¤à¥ हà¥, à¤à¤¿à¤¸à¤®à¥à¤ शामिल हà¥:",Points:{point1:"<1>सà¥à¤à¥à¤² à¤à¥à¤¯à¥à¤¶à¤¨ फà¥à¤¸:</1> à¤à¤à¥à¤·à¤¾ 11 (साà¤à¤à¤¸ सà¥à¤à¥à¤°à¥à¤®) à¤à¥ लिठशिà¤à¥à¤·à¤¾à¥¤",point2:"<1>हà¥à¤¸à¥à¤à¤² à¤à¤° परिवहन फà¥à¤¸:</1> बà¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¤° डà¥-बà¥à¤°à¥à¤¡à¤¿à¤à¤ दà¥à¤¨à¥à¤ पà¥à¤°à¤à¤¾à¤° à¤à¥ सà¥à¤°à¤à¥à¤·à¤¿à¤¤ सà¥à¤µà¤¿à¤§à¤¾à¥¤",point3:"<1>à¤à¤¿à¤¤à¤¾à¤¬à¥à¤ à¤à¤° यà¥à¤¨à¤¿à¤«à¥à¤°à¥à¤®:</1> पढ़ाठà¤à¤¾ पà¥à¤°à¤¾ à¤à¤°à¥à¤à¥¤",point4:"<1>विशà¥à¤·à¤à¥à¤ à¤à¥à¤à¤¿à¤à¤:</1> à¤à¥à¤à¤ªà¤¸ à¤à¥ à¤
à¤à¤¦à¤° हॠमà¥à¤«à¤¼à¥à¤¤ <1>IIT-JEE, NEET, NDA à¤à¤° CUET</1> à¤à¥ तà¥à¤¯à¤¾à¤°à¥à¥¤"},pwDesc:"<1>सà¥à¤°à¤à¥à¤·à¤¿à¤¤ à¤à¥à¤à¤ªà¤¸ मà¥à¤ दà¥à¤¶ à¤à¥ सरà¥à¤µà¤¶à¥à¤°à¥à¤·à¥à¤ शिà¤à¥à¤·à¤à¥à¤ à¤à¤¾ मारà¥à¤à¤¦à¤°à¥à¤¶à¤¨</1> हमारॠविशà¥à¤· 'सà¥à¤à¥à¤² à¤à¤à¤à¥à¤à¥à¤°à¥à¤à¥à¤¡ पà¥à¤°à¥à¤à¥à¤°à¤¾à¤®' à¤à¥ तहत, à¤
ब दà¥à¤¶ à¤à¥ सबसॠबà¥à¤¹à¤¤à¤°à¥à¤¨ <1>IIT-JEE</1> à¤à¤° <1>NEET</1> à¤à¥ विशà¥à¤·à¤à¥à¤ <1>PW Vidyapeeth (Physics Wallah)</1> à¤à¥ शिà¤à¥à¤·à¤à¥à¤ दà¥à¤µà¤¾à¤°à¤¾ सà¥à¤§à¥ हमारॠसà¥à¤°à¤à¥à¤·à¤¿à¤¤ à¤à¥à¤à¤ªà¤¸ à¤à¥ à¤
à¤à¤¦à¤° तà¥à¤¯à¤¾à¤°à¥ à¤à¤°à¤µà¤¾à¤ à¤à¤¾à¤à¤à¥à¥¤",pwPoints:{point1:"<1>सà¤à¤ªà¥à¤°à¥à¤£ तà¥à¤¯à¤¾à¤°à¥:</1> बà¥à¤°à¥à¤¡ परà¥à¤à¥à¤·à¤¾ (CBSE) पर फà¥à¤à¤¸ à¤à¥ साथ-साथ पà¥à¤°à¤¤à¤¿à¤¯à¥à¤à¥ परà¥à¤à¥à¤·à¤¾à¤à¤ à¤à¥ मà¤à¤¬à¥à¤¤ नà¥à¤à¤µà¥¤",point2:"<1>विशà¥à¤·à¤à¥à¤ मारà¥à¤à¤¦à¤°à¥à¤¶à¤¨:</1> दà¥à¤¶ à¤à¥ सरà¥à¤µà¤¶à¥à¤°à¥à¤·à¥à¤ शिà¤à¥à¤·à¤à¥à¤ à¤à¥ साथ à¤
पनॠतà¥à¤¯à¤¾à¤°à¥ à¤à¥ परà¤à¥à¤à¥¤",point3:"<1>पà¥à¤°à¤®à¤¾à¤£à¤¿à¤¤ परिणाम:</1> PW Vidyapeeth à¤à¥ शानदार à¤à¥à¤°à¥à¤ रिà¤à¥à¤°à¥à¤¡ à¤à¥ साथ, à¤à¤¿à¤¸à¤®à¥à¤ <1>JEE Advanced 2025 (AIR 3, 12, 48)</1> à¤à¤° <1>NEET UG 2025 (AIR 87, 100)</1> à¤à¥à¤¸à¥ à¤à¥à¤ª रà¥à¤à¤ शामिल हà¥à¤à¥¤"},details:{selection:"<1>à¤à¤¯à¤¨ मानदà¤à¤¡:</1> लिà¤à¤¿à¤¤ परà¥à¤à¥à¤·à¤¾ + साà¤à¥à¤·à¤¾à¤¤à¥à¤à¤¾à¤° + à¤à¤°à¥à¤¥à¤¿à¤ रà¥à¤ª सॠà¤à¤®à¤à¥à¤° पà¥à¤·à¥à¤ à¤à¥à¤®à¤¿à¥¤ ",examDate:"<1>à¤à¤¾à¤¤à¥à¤°à¤µà¥à¤¤à¥à¤¤à¤¿ परà¥à¤à¥à¤·à¤¾ à¤à¥ तिथि:</1> 28 à¤à¥à¤¨, 2026",examTime:"<1>समय:</1> सà¥à¤¬à¤¹ 09:30 बà¤à¥",venue:"<1>परà¥à¤à¥à¤·à¤¾ सà¥à¤¥à¤²:</1> à¤
मातिर à¤à¤¨à¥à¤¯à¤¾ à¤à¥à¤°à¥à¤à¥à¤², बà¤à¤à¤¾à¤à¤µ à¤à¤¾à¤®à¤¡à¤¼à¥, लà¥à¤à¥ रà¥à¤¡, à¤à¥à¤°à¥à¤à¥à¤·à¥à¤¤à¥à¤°, हरियाणा - 136119",Note:"<1>नà¥à¤:</1> à¤
à¤à¤¿à¤à¤¾à¤µà¤à¥à¤ à¤à¤¾ à¤
पनॠपà¥à¤¤à¥à¤°à¥ à¤à¥ साथ à¤à¤¨à¤¾ à¤
निवारà¥à¤¯ हà¥à¥¤ सतà¥à¤¯à¤¾à¤ªà¤¨ à¤à¥ लिठà¤à¥à¤ªà¤¯à¤¾ सरà¤à¤¾à¤°à¥ मानà¥à¤¯à¤¤à¤¾ पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤¯ पà¥à¤°à¤®à¤¾à¤£ पतà¥à¤° à¤
वशà¥à¤¯ लाà¤à¤à¥¤ à¤à¥à¤ªà¤¯à¤¾ धà¥à¤¯à¤¾à¤¨ दà¥à¤ à¤à¤¿ à¤à¥à¤µà¤² लिà¤à¤¿à¤¤ परà¥à¤à¥à¤·à¤¾ à¤à¤¤à¥à¤¤à¥à¤°à¥à¤£ à¤à¤°à¤¨à¥ सॠपà¥à¤°à¤µà¥à¤¶ à¤à¥ à¤à¤¾à¤°à¤à¤à¥ नहà¥à¤ मिलतॠहà¥; यह साà¤à¥à¤·à¤¾à¤¤à¥à¤à¤¾à¤° à¤à¤°à¤£ पर निरà¥à¤à¤° हà¥à¥¤"}},hhe={hero:che,scholarshipNotice:dhe,InDetail:uhe};Qs.use(IH).init({resources:{en:{translation:lhe},hi:{translation:hhe}},lng:"hi",fallbackLng:"hi",interpolation:{escapeValue:!1},react:{transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p","span"]}});H9.createRoot(document.getElementById("root")).render(o.jsx(T.StrictMode,{children:o.jsx(she,{})}));
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.