@morphql/playground 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var PT=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var VL=PT((rn,ln)=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function a(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=a(u);fetch(u.href,o)}})();function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Df={exports:{}},Nr={};var cg;function qT(){if(cg)return Nr;cg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,u,o){var h=null;if(o!==void 0&&(h=""+o),u.key!==void 0&&(h=""+u.key),"key"in u){o={};for(var p in u)p!=="key"&&(o[p]=u[p])}else o=u;return u=o.ref,{$$typeof:e,type:r,key:h,ref:u!==void 0?u:null,props:o}}return Nr.Fragment=n,Nr.jsx=a,Nr.jsxs=a,Nr}var fg;function GT(){return fg||(fg=1,Df.exports=qT()),Df.exports}var et=GT(),$f={exports:{}},Tt={};var hg;function HT(){if(hg)return Tt;hg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),O=Symbol.iterator;function z(x){return x===null||typeof x!="object"?null:(x=O&&x[O]||x["@@iterator"],typeof x=="function"?x:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,A={};function b(x,D,F){this.props=x,this.context=D,this.refs=A,this.updater=F||G}b.prototype.isReactComponent={},b.prototype.setState=function(x,D){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,D,"setState")},b.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function N(){}N.prototype=b.prototype;function P(x,D,F){this.props=x,this.context=D,this.refs=A,this.updater=F||G}var B=P.prototype=new N;B.constructor=P,V(B,b.prototype),B.isPureReactComponent=!0;var Z=Array.isArray;function I(){}var w={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function S(x,D,F){var J=F.ref;return{$$typeof:e,type:x,key:D,ref:J!==void 0?J:null,props:F}}function g(x,D){return S(x.type,D,x.props)}function L(x){return typeof x=="object"&&x!==null&&x.$$typeof===e}function M(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(F){return D[F]})}var W=/\/+/g;function at(x,D){return typeof x=="object"&&x!==null&&x.key!=null?M(""+x.key):D.toString(36)}function it(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(I,I):(x.status="pending",x.then(function(D){x.status==="pending"&&(x.status="fulfilled",x.value=D)},function(D){x.status==="pending"&&(x.status="rejected",x.reason=D)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function k(x,D,F,J,lt){var st=typeof x;(st==="undefined"||st==="boolean")&&(x=null);var ht=!1;if(x===null)ht=!0;else switch(st){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(x.$$typeof){case e:case n:ht=!0;break;case v:return ht=x._init,k(ht(x._payload),D,F,J,lt)}}if(ht)return lt=lt(x),ht=J===""?"."+at(x,0):J,Z(lt)?(F="",ht!=null&&(F=ht.replace(W,"$&/")+"/"),k(lt,D,F,"",function(xt){return xt})):lt!=null&&(L(lt)&&(lt=g(lt,F+(lt.key==null||x&&x.key===lt.key?"":(""+lt.key).replace(W,"$&/")+"/")+ht)),D.push(lt)),1;ht=0;var ct=J===""?".":J+":";if(Z(x))for(var rt=0;rt<x.length;rt++)J=x[rt],st=ct+at(J,rt),ht+=k(J,D,F,st,lt);else if(rt=z(x),typeof rt=="function")for(x=rt.call(x),rt=0;!(J=x.next()).done;)J=J.value,st=ct+at(J,rt++),ht+=k(J,D,F,st,lt);else if(st==="object"){if(typeof x.then=="function")return k(it(x),D,F,J,lt);throw D=String(x),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ht}function K(x,D,F){if(x==null)return x;var J=[],lt=0;return k(x,J,"","",function(st){return D.call(F,st,lt++)}),J}function nt(x){if(x._status===-1){var D=x._result;D=D(),D.then(function(F){(x._status===0||x._status===-1)&&(x._status=1,x._result=F)},function(F){(x._status===0||x._status===-1)&&(x._status=2,x._result=F)}),x._status===-1&&(x._status=0,x._result=D)}if(x._status===1)return x._result.default;throw x._result}var tt=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},_t={map:K,forEach:function(x,D,F){K(x,function(){D.apply(this,arguments)},F)},count:function(x){var D=0;return K(x,function(){D++}),D},toArray:function(x){return K(x,function(D){return D})||[]},only:function(x){if(!L(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Tt.Activity=y,Tt.Children=_t,Tt.Component=b,Tt.Fragment=a,Tt.Profiler=u,Tt.PureComponent=P,Tt.StrictMode=r,Tt.Suspense=d,Tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,Tt.__COMPILER_RUNTIME={__proto__:null,c:function(x){return w.H.useMemoCache(x)}},Tt.cache=function(x){return function(){return x.apply(null,arguments)}},Tt.cacheSignal=function(){return null},Tt.cloneElement=function(x,D,F){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var J=V({},x.props),lt=x.key;if(D!=null)for(st in D.key!==void 0&&(lt=""+D.key),D)!E.call(D,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&D.ref===void 0||(J[st]=D[st]);var st=arguments.length-2;if(st===1)J.children=F;else if(1<st){for(var ht=Array(st),ct=0;ct<st;ct++)ht[ct]=arguments[ct+2];J.children=ht}return S(x.type,lt,J)},Tt.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:o,_context:x},x},Tt.createElement=function(x,D,F){var J,lt={},st=null;if(D!=null)for(J in D.key!==void 0&&(st=""+D.key),D)E.call(D,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(lt[J]=D[J]);var ht=arguments.length-2;if(ht===1)lt.children=F;else if(1<ht){for(var ct=Array(ht),rt=0;rt<ht;rt++)ct[rt]=arguments[rt+2];lt.children=ct}if(x&&x.defaultProps)for(J in ht=x.defaultProps,ht)lt[J]===void 0&&(lt[J]=ht[J]);return S(x,st,lt)},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(x){return{$$typeof:p,render:x}},Tt.isValidElement=L,Tt.lazy=function(x){return{$$typeof:v,_payload:{_status:-1,_result:x},_init:nt}},Tt.memo=function(x,D){return{$$typeof:_,type:x,compare:D===void 0?null:D}},Tt.startTransition=function(x){var D=w.T,F={};w.T=F;try{var J=x(),lt=w.S;lt!==null&&lt(F,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,tt)}catch(st){tt(st)}finally{D!==null&&F.types!==null&&(D.types=F.types),w.T=D}},Tt.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},Tt.use=function(x){return w.H.use(x)},Tt.useActionState=function(x,D,F){return w.H.useActionState(x,D,F)},Tt.useCallback=function(x,D){return w.H.useCallback(x,D)},Tt.useContext=function(x){return w.H.useContext(x)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(x,D){return w.H.useDeferredValue(x,D)},Tt.useEffect=function(x,D){return w.H.useEffect(x,D)},Tt.useEffectEvent=function(x){return w.H.useEffectEvent(x)},Tt.useId=function(){return w.H.useId()},Tt.useImperativeHandle=function(x,D,F){return w.H.useImperativeHandle(x,D,F)},Tt.useInsertionEffect=function(x,D){return w.H.useInsertionEffect(x,D)},Tt.useLayoutEffect=function(x,D){return w.H.useLayoutEffect(x,D)},Tt.useMemo=function(x,D){return w.H.useMemo(x,D)},Tt.useOptimistic=function(x,D){return w.H.useOptimistic(x,D)},Tt.useReducer=function(x,D,F){return w.H.useReducer(x,D,F)},Tt.useRef=function(x){return w.H.useRef(x)},Tt.useState=function(x){return w.H.useState(x)},Tt.useSyncExternalStore=function(x,D,F){return w.H.useSyncExternalStore(x,D,F)},Tt.useTransition=function(){return w.H.useTransition()},Tt.version="19.2.4",Tt}var dg;function Dh(){return dg||(dg=1,$f.exports=HT()),$f.exports}var pt=Dh();const Ra=ao(pt);var Pf={exports:{}},Rr={},qf={exports:{}},Gf={};var pg;function FT(){return pg||(pg=1,(function(e){function n(k,K){var nt=k.length;k.push(K);t:for(;0<nt;){var tt=nt-1>>>1,_t=k[tt];if(0<u(_t,K))k[tt]=K,k[nt]=_t,nt=tt;else break t}}function a(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var K=k[0],nt=k.pop();if(nt!==K){k[0]=nt;t:for(var tt=0,_t=k.length,x=_t>>>1;tt<x;){var D=2*(tt+1)-1,F=k[D],J=D+1,lt=k[J];if(0>u(F,nt))J<_t&&0>u(lt,F)?(k[tt]=lt,k[J]=nt,tt=J):(k[tt]=F,k[D]=nt,tt=D);else if(J<_t&&0>u(lt,nt))k[tt]=lt,k[J]=nt,tt=J;else break t}}return K}function u(k,K){var nt=k.sortIndex-K.sortIndex;return nt!==0?nt:k.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var h=Date,p=h.now();e.unstable_now=function(){return h.now()-p}}var d=[],_=[],v=1,y=null,O=3,z=!1,G=!1,V=!1,A=!1,b=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function B(k){for(var K=a(_);K!==null;){if(K.callback===null)r(_);else if(K.startTime<=k)r(_),K.sortIndex=K.expirationTime,n(d,K);else break;K=a(_)}}function Z(k){if(V=!1,B(k),!G)if(a(d)!==null)G=!0,I||(I=!0,M());else{var K=a(_);K!==null&&it(Z,K.startTime-k)}}var I=!1,w=-1,E=5,S=-1;function g(){return A?!0:!(e.unstable_now()-S<E)}function L(){if(A=!1,I){var k=e.unstable_now();S=k;var K=!0;try{t:{G=!1,V&&(V=!1,N(w),w=-1),z=!0;var nt=O;try{e:{for(B(k),y=a(d);y!==null&&!(y.expirationTime>k&&g());){var tt=y.callback;if(typeof tt=="function"){y.callback=null,O=y.priorityLevel;var _t=tt(y.expirationTime<=k);if(k=e.unstable_now(),typeof _t=="function"){y.callback=_t,B(k),K=!0;break e}y===a(d)&&r(d),B(k)}else r(d);y=a(d)}if(y!==null)K=!0;else{var x=a(_);x!==null&&it(Z,x.startTime-k),K=!1}}break t}finally{y=null,O=nt,z=!1}K=void 0}}finally{K?M():I=!1}}}var M;if(typeof P=="function")M=function(){P(L)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,at=W.port2;W.port1.onmessage=L,M=function(){at.postMessage(null)}}else M=function(){b(L,0)};function it(k,K){w=b(function(){k(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return O},e.unstable_next=function(k){switch(O){case 1:case 2:case 3:var K=3;break;default:K=O}var nt=O;O=K;try{return k()}finally{O=nt}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(k,K){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var nt=O;O=k;try{return K()}finally{O=nt}},e.unstable_scheduleCallback=function(k,K,nt){var tt=e.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?tt+nt:tt):nt=tt,k){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=nt+_t,k={id:v++,callback:K,priorityLevel:k,startTime:nt,expirationTime:_t,sortIndex:-1},nt>tt?(k.sortIndex=nt,n(_,k),a(d)===null&&k===a(_)&&(V?(N(w),w=-1):V=!0,it(Z,nt-tt))):(k.sortIndex=_t,n(d,k),G||z||(G=!0,I||(I=!0,M()))),k},e.unstable_shouldYield=g,e.unstable_wrapCallback=function(k){var K=O;return function(){var nt=O;O=K;try{return k.apply(this,arguments)}finally{O=nt}}}})(Gf)),Gf}var _g;function KT(){return _g||(_g=1,qf.exports=FT()),qf.exports}var Hf={exports:{}},Me={};var mg;function VT(){if(mg)return Me;mg=1;var e=Dh();function n(d){var _="https://react.dev/errors/"+d;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)_+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(d,_,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:d,containerInfo:_,implementation:v}}var h=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(d,_){if(d==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Me.createPortal=function(d,_){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(n(299));return o(d,_,null,v)},Me.flushSync=function(d){var _=h.T,v=r.p;try{if(h.T=null,r.p=2,d)return d()}finally{h.T=_,r.p=v,r.d.f()}},Me.preconnect=function(d,_){typeof d=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,r.d.C(d,_))},Me.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Me.preinit=function(d,_){if(typeof d=="string"&&_&&typeof _.as=="string"){var v=_.as,y=p(v,_.crossOrigin),O=typeof _.integrity=="string"?_.integrity:void 0,z=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;v==="style"?r.d.S(d,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:y,integrity:O,fetchPriority:z}):v==="script"&&r.d.X(d,{crossOrigin:y,integrity:O,fetchPriority:z,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},Me.preinitModule=function(d,_){if(typeof d=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var v=p(_.as,_.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&r.d.M(d)},Me.preload=function(d,_){if(typeof d=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var v=_.as,y=p(v,_.crossOrigin);r.d.L(d,v,{crossOrigin:y,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},Me.preloadModule=function(d,_){if(typeof d=="string")if(_){var v=p(_.as,_.crossOrigin);r.d.m(d,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:v,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else r.d.m(d)},Me.requestFormReset=function(d){r.d.r(d)},Me.unstable_batchedUpdates=function(d,_){return d(_)},Me.useFormState=function(d,_,v){return h.H.useFormState(d,_,v)},Me.useFormStatus=function(){return h.H.useHostTransitionStatus()},Me.version="19.2.4",Me}var gg;function YT(){if(gg)return Hf.exports;gg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Hf.exports=VT(),Hf.exports}var yg;function XT(){if(yg)return Rr;yg=1;var e=KT(),n=Dh(),a=YT();function r(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function o(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function h(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function p(t){if(t.tag===31){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function d(t){if(o(t)!==t)throw Error(r(188))}function _(t){var i=t.alternate;if(!i){if(i=o(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,l=i;;){var c=s.return;if(c===null)break;var f=c.alternate;if(f===null){if(l=c.return,l!==null){s=l;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===s)return d(c),t;if(f===l)return d(c),i;f=f.sibling}throw Error(r(188))}if(s.return!==l.return)s=c,l=f;else{for(var m=!1,T=c.child;T;){if(T===s){m=!0,s=c,l=f;break}if(T===l){m=!0,l=c,s=f;break}T=T.sibling}if(!m){for(T=f.child;T;){if(T===s){m=!0,s=f,l=c;break}if(T===l){m=!0,l=f,s=c;break}T=T.sibling}if(!m)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:i}function v(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=v(t),i!==null)return i;t=t.sibling}return null}var y=Object.assign,O=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),P=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),g=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function M(t){return t===null||typeof t!="object"?null:(t=L&&t[L]||t["@@iterator"],typeof t=="function"?t:null)}var W=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===W?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case V:return"Fragment";case b:return"Profiler";case A:return"StrictMode";case Z:return"Suspense";case I:return"SuspenseList";case S:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case G:return"Portal";case P:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case B:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case w:return i=t.displayName||null,i!==null?i:at(t.type)||"Memo";case E:i=t._payload,t=t._init;try{return at(t(i))}catch{}}return null}var it=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},tt=[],_t=-1;function x(t){return{current:t}}function D(t){0>_t||(t.current=tt[_t],tt[_t]=null,_t--)}function F(t,i){_t++,tt[_t]=t.current,t.current=i}var J=x(null),lt=x(null),st=x(null),ht=x(null);function ct(t,i){switch(F(st,i),F(lt,t),F(J,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?km(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=km(i),t=Um(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(J),F(J,t)}function rt(){D(J),D(lt),D(st)}function xt(t){t.memoizedState!==null&&F(ht,t);var i=J.current,s=Um(i,t.type);i!==s&&(F(lt,t),F(J,s))}function mt(t){lt.current===t&&(D(J),D(lt)),ht.current===t&&(D(ht),Sr._currentValue=nt)}var Nt,Pt;function Ct(t){if(Nt===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);Nt=i&&i[1]||"",Pt=-1<s.stack.indexOf(`
1
+ var PT=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var VL=PT((rn,ln)=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function a(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=a(u);fetch(u.href,o)}})();function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Df={exports:{}},Nr={};var cg;function qT(){if(cg)return Nr;cg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,u,o){var h=null;if(o!==void 0&&(h=""+o),u.key!==void 0&&(h=""+u.key),"key"in u){o={};for(var p in u)p!=="key"&&(o[p]=u[p])}else o=u;return u=o.ref,{$$typeof:e,type:r,key:h,ref:u!==void 0?u:null,props:o}}return Nr.Fragment=n,Nr.jsx=a,Nr.jsxs=a,Nr}var fg;function GT(){return fg||(fg=1,Df.exports=qT()),Df.exports}var et=GT(),$f={exports:{}},Tt={};var hg;function HT(){if(hg)return Tt;hg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),O=Symbol.iterator;function z(x){return x===null||typeof x!="object"?null:(x=O&&x[O]||x["@@iterator"],typeof x=="function"?x:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,A={};function b(x,D,F){this.props=x,this.context=D,this.refs=A,this.updater=F||G}b.prototype.isReactComponent={},b.prototype.setState=function(x,D){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,D,"setState")},b.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function N(){}N.prototype=b.prototype;function P(x,D,F){this.props=x,this.context=D,this.refs=A,this.updater=F||G}var B=P.prototype=new N;B.constructor=P,V(B,b.prototype),B.isPureReactComponent=!0;var Z=Array.isArray;function U(){}var w={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function S(x,D,F){var J=F.ref;return{$$typeof:e,type:x,key:D,ref:J!==void 0?J:null,props:F}}function g(x,D){return S(x.type,D,x.props)}function L(x){return typeof x=="object"&&x!==null&&x.$$typeof===e}function M(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(F){return D[F]})}var W=/\/+/g;function at(x,D){return typeof x=="object"&&x!==null&&x.key!=null?M(""+x.key):D.toString(36)}function it(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(U,U):(x.status="pending",x.then(function(D){x.status==="pending"&&(x.status="fulfilled",x.value=D)},function(D){x.status==="pending"&&(x.status="rejected",x.reason=D)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function k(x,D,F,J,lt){var st=typeof x;(st==="undefined"||st==="boolean")&&(x=null);var ht=!1;if(x===null)ht=!0;else switch(st){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(x.$$typeof){case e:case n:ht=!0;break;case v:return ht=x._init,k(ht(x._payload),D,F,J,lt)}}if(ht)return lt=lt(x),ht=J===""?"."+at(x,0):J,Z(lt)?(F="",ht!=null&&(F=ht.replace(W,"$&/")+"/"),k(lt,D,F,"",function(xt){return xt})):lt!=null&&(L(lt)&&(lt=g(lt,F+(lt.key==null||x&&x.key===lt.key?"":(""+lt.key).replace(W,"$&/")+"/")+ht)),D.push(lt)),1;ht=0;var ct=J===""?".":J+":";if(Z(x))for(var rt=0;rt<x.length;rt++)J=x[rt],st=ct+at(J,rt),ht+=k(J,D,F,st,lt);else if(rt=z(x),typeof rt=="function")for(x=rt.call(x),rt=0;!(J=x.next()).done;)J=J.value,st=ct+at(J,rt++),ht+=k(J,D,F,st,lt);else if(st==="object"){if(typeof x.then=="function")return k(it(x),D,F,J,lt);throw D=String(x),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ht}function K(x,D,F){if(x==null)return x;var J=[],lt=0;return k(x,J,"","",function(st){return D.call(F,st,lt++)}),J}function nt(x){if(x._status===-1){var D=x._result;D=D(),D.then(function(F){(x._status===0||x._status===-1)&&(x._status=1,x._result=F)},function(F){(x._status===0||x._status===-1)&&(x._status=2,x._result=F)}),x._status===-1&&(x._status=0,x._result=D)}if(x._status===1)return x._result.default;throw x._result}var tt=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},_t={map:K,forEach:function(x,D,F){K(x,function(){D.apply(this,arguments)},F)},count:function(x){var D=0;return K(x,function(){D++}),D},toArray:function(x){return K(x,function(D){return D})||[]},only:function(x){if(!L(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Tt.Activity=y,Tt.Children=_t,Tt.Component=b,Tt.Fragment=a,Tt.Profiler=u,Tt.PureComponent=P,Tt.StrictMode=r,Tt.Suspense=d,Tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,Tt.__COMPILER_RUNTIME={__proto__:null,c:function(x){return w.H.useMemoCache(x)}},Tt.cache=function(x){return function(){return x.apply(null,arguments)}},Tt.cacheSignal=function(){return null},Tt.cloneElement=function(x,D,F){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var J=V({},x.props),lt=x.key;if(D!=null)for(st in D.key!==void 0&&(lt=""+D.key),D)!E.call(D,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&D.ref===void 0||(J[st]=D[st]);var st=arguments.length-2;if(st===1)J.children=F;else if(1<st){for(var ht=Array(st),ct=0;ct<st;ct++)ht[ct]=arguments[ct+2];J.children=ht}return S(x.type,lt,J)},Tt.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:o,_context:x},x},Tt.createElement=function(x,D,F){var J,lt={},st=null;if(D!=null)for(J in D.key!==void 0&&(st=""+D.key),D)E.call(D,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(lt[J]=D[J]);var ht=arguments.length-2;if(ht===1)lt.children=F;else if(1<ht){for(var ct=Array(ht),rt=0;rt<ht;rt++)ct[rt]=arguments[rt+2];lt.children=ct}if(x&&x.defaultProps)for(J in ht=x.defaultProps,ht)lt[J]===void 0&&(lt[J]=ht[J]);return S(x,st,lt)},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(x){return{$$typeof:p,render:x}},Tt.isValidElement=L,Tt.lazy=function(x){return{$$typeof:v,_payload:{_status:-1,_result:x},_init:nt}},Tt.memo=function(x,D){return{$$typeof:_,type:x,compare:D===void 0?null:D}},Tt.startTransition=function(x){var D=w.T,F={};w.T=F;try{var J=x(),lt=w.S;lt!==null&&lt(F,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(U,tt)}catch(st){tt(st)}finally{D!==null&&F.types!==null&&(D.types=F.types),w.T=D}},Tt.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},Tt.use=function(x){return w.H.use(x)},Tt.useActionState=function(x,D,F){return w.H.useActionState(x,D,F)},Tt.useCallback=function(x,D){return w.H.useCallback(x,D)},Tt.useContext=function(x){return w.H.useContext(x)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(x,D){return w.H.useDeferredValue(x,D)},Tt.useEffect=function(x,D){return w.H.useEffect(x,D)},Tt.useEffectEvent=function(x){return w.H.useEffectEvent(x)},Tt.useId=function(){return w.H.useId()},Tt.useImperativeHandle=function(x,D,F){return w.H.useImperativeHandle(x,D,F)},Tt.useInsertionEffect=function(x,D){return w.H.useInsertionEffect(x,D)},Tt.useLayoutEffect=function(x,D){return w.H.useLayoutEffect(x,D)},Tt.useMemo=function(x,D){return w.H.useMemo(x,D)},Tt.useOptimistic=function(x,D){return w.H.useOptimistic(x,D)},Tt.useReducer=function(x,D,F){return w.H.useReducer(x,D,F)},Tt.useRef=function(x){return w.H.useRef(x)},Tt.useState=function(x){return w.H.useState(x)},Tt.useSyncExternalStore=function(x,D,F){return w.H.useSyncExternalStore(x,D,F)},Tt.useTransition=function(){return w.H.useTransition()},Tt.version="19.2.4",Tt}var dg;function Dh(){return dg||(dg=1,$f.exports=HT()),$f.exports}var pt=Dh();const Ra=ao(pt);var Pf={exports:{}},Rr={},qf={exports:{}},Gf={};var pg;function FT(){return pg||(pg=1,(function(e){function n(k,K){var nt=k.length;k.push(K);t:for(;0<nt;){var tt=nt-1>>>1,_t=k[tt];if(0<u(_t,K))k[tt]=K,k[nt]=_t,nt=tt;else break t}}function a(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var K=k[0],nt=k.pop();if(nt!==K){k[0]=nt;t:for(var tt=0,_t=k.length,x=_t>>>1;tt<x;){var D=2*(tt+1)-1,F=k[D],J=D+1,lt=k[J];if(0>u(F,nt))J<_t&&0>u(lt,F)?(k[tt]=lt,k[J]=nt,tt=J):(k[tt]=F,k[D]=nt,tt=D);else if(J<_t&&0>u(lt,nt))k[tt]=lt,k[J]=nt,tt=J;else break t}}return K}function u(k,K){var nt=k.sortIndex-K.sortIndex;return nt!==0?nt:k.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var h=Date,p=h.now();e.unstable_now=function(){return h.now()-p}}var d=[],_=[],v=1,y=null,O=3,z=!1,G=!1,V=!1,A=!1,b=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function B(k){for(var K=a(_);K!==null;){if(K.callback===null)r(_);else if(K.startTime<=k)r(_),K.sortIndex=K.expirationTime,n(d,K);else break;K=a(_)}}function Z(k){if(V=!1,B(k),!G)if(a(d)!==null)G=!0,U||(U=!0,M());else{var K=a(_);K!==null&&it(Z,K.startTime-k)}}var U=!1,w=-1,E=5,S=-1;function g(){return A?!0:!(e.unstable_now()-S<E)}function L(){if(A=!1,U){var k=e.unstable_now();S=k;var K=!0;try{t:{G=!1,V&&(V=!1,N(w),w=-1),z=!0;var nt=O;try{e:{for(B(k),y=a(d);y!==null&&!(y.expirationTime>k&&g());){var tt=y.callback;if(typeof tt=="function"){y.callback=null,O=y.priorityLevel;var _t=tt(y.expirationTime<=k);if(k=e.unstable_now(),typeof _t=="function"){y.callback=_t,B(k),K=!0;break e}y===a(d)&&r(d),B(k)}else r(d);y=a(d)}if(y!==null)K=!0;else{var x=a(_);x!==null&&it(Z,x.startTime-k),K=!1}}break t}finally{y=null,O=nt,z=!1}K=void 0}}finally{K?M():U=!1}}}var M;if(typeof P=="function")M=function(){P(L)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,at=W.port2;W.port1.onmessage=L,M=function(){at.postMessage(null)}}else M=function(){b(L,0)};function it(k,K){w=b(function(){k(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return O},e.unstable_next=function(k){switch(O){case 1:case 2:case 3:var K=3;break;default:K=O}var nt=O;O=K;try{return k()}finally{O=nt}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(k,K){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var nt=O;O=k;try{return K()}finally{O=nt}},e.unstable_scheduleCallback=function(k,K,nt){var tt=e.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?tt+nt:tt):nt=tt,k){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=nt+_t,k={id:v++,callback:K,priorityLevel:k,startTime:nt,expirationTime:_t,sortIndex:-1},nt>tt?(k.sortIndex=nt,n(_,k),a(d)===null&&k===a(_)&&(V?(N(w),w=-1):V=!0,it(Z,nt-tt))):(k.sortIndex=_t,n(d,k),G||z||(G=!0,U||(U=!0,M()))),k},e.unstable_shouldYield=g,e.unstable_wrapCallback=function(k){var K=O;return function(){var nt=O;O=K;try{return k.apply(this,arguments)}finally{O=nt}}}})(Gf)),Gf}var _g;function KT(){return _g||(_g=1,qf.exports=FT()),qf.exports}var Hf={exports:{}},Me={};var mg;function VT(){if(mg)return Me;mg=1;var e=Dh();function n(d){var _="https://react.dev/errors/"+d;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)_+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(d,_,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:d,containerInfo:_,implementation:v}}var h=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(d,_){if(d==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Me.createPortal=function(d,_){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(n(299));return o(d,_,null,v)},Me.flushSync=function(d){var _=h.T,v=r.p;try{if(h.T=null,r.p=2,d)return d()}finally{h.T=_,r.p=v,r.d.f()}},Me.preconnect=function(d,_){typeof d=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,r.d.C(d,_))},Me.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Me.preinit=function(d,_){if(typeof d=="string"&&_&&typeof _.as=="string"){var v=_.as,y=p(v,_.crossOrigin),O=typeof _.integrity=="string"?_.integrity:void 0,z=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;v==="style"?r.d.S(d,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:y,integrity:O,fetchPriority:z}):v==="script"&&r.d.X(d,{crossOrigin:y,integrity:O,fetchPriority:z,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},Me.preinitModule=function(d,_){if(typeof d=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var v=p(_.as,_.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&r.d.M(d)},Me.preload=function(d,_){if(typeof d=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var v=_.as,y=p(v,_.crossOrigin);r.d.L(d,v,{crossOrigin:y,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},Me.preloadModule=function(d,_){if(typeof d=="string")if(_){var v=p(_.as,_.crossOrigin);r.d.m(d,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:v,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else r.d.m(d)},Me.requestFormReset=function(d){r.d.r(d)},Me.unstable_batchedUpdates=function(d,_){return d(_)},Me.useFormState=function(d,_,v){return h.H.useFormState(d,_,v)},Me.useFormStatus=function(){return h.H.useHostTransitionStatus()},Me.version="19.2.4",Me}var gg;function YT(){if(gg)return Hf.exports;gg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Hf.exports=VT(),Hf.exports}var yg;function XT(){if(yg)return Rr;yg=1;var e=KT(),n=Dh(),a=YT();function r(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function o(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function h(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function p(t){if(t.tag===31){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function d(t){if(o(t)!==t)throw Error(r(188))}function _(t){var i=t.alternate;if(!i){if(i=o(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,l=i;;){var c=s.return;if(c===null)break;var f=c.alternate;if(f===null){if(l=c.return,l!==null){s=l;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===s)return d(c),t;if(f===l)return d(c),i;f=f.sibling}throw Error(r(188))}if(s.return!==l.return)s=c,l=f;else{for(var m=!1,T=c.child;T;){if(T===s){m=!0,s=c,l=f;break}if(T===l){m=!0,l=c,s=f;break}T=T.sibling}if(!m){for(T=f.child;T;){if(T===s){m=!0,s=f,l=c;break}if(T===l){m=!0,l=f,s=c;break}T=T.sibling}if(!m)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:i}function v(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=v(t),i!==null)return i;t=t.sibling}return null}var y=Object.assign,O=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),P=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),g=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function M(t){return t===null||typeof t!="object"?null:(t=L&&t[L]||t["@@iterator"],typeof t=="function"?t:null)}var W=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===W?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case V:return"Fragment";case b:return"Profiler";case A:return"StrictMode";case Z:return"Suspense";case U:return"SuspenseList";case S:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case G:return"Portal";case P:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case B:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case w:return i=t.displayName||null,i!==null?i:at(t.type)||"Memo";case E:i=t._payload,t=t._init;try{return at(t(i))}catch{}}return null}var it=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},tt=[],_t=-1;function x(t){return{current:t}}function D(t){0>_t||(t.current=tt[_t],tt[_t]=null,_t--)}function F(t,i){_t++,tt[_t]=t.current,t.current=i}var J=x(null),lt=x(null),st=x(null),ht=x(null);function ct(t,i){switch(F(st,i),F(lt,t),F(J,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?km(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=km(i),t=Im(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(J),F(J,t)}function rt(){D(J),D(lt),D(st)}function xt(t){t.memoizedState!==null&&F(ht,t);var i=J.current,s=Im(i,t.type);i!==s&&(F(lt,t),F(J,s))}function mt(t){lt.current===t&&(D(J),D(lt)),ht.current===t&&(D(ht),Sr._currentValue=nt)}var Nt,Pt;function Ct(t){if(Nt===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);Nt=i&&i[1]||"",Pt=-1<s.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
3
3
  `+Nt+t+Pt}var kt=!1;function At(t,i){if(!t||kt)return"";kt=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(H){var q=H}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(H){q=H}t.call(Q.prototype)}}else{try{throw Error()}catch(H){q=H}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(H){if(H&&q&&typeof H.stack=="string")return[H.stack,q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),m=f[0],T=f[1];if(m&&T){var R=m.split(`
4
4
  `),$=T.split(`
5
5
  `);for(c=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;c<$.length&&!$[c].includes("DetermineComponentFrameRoot");)c++;if(l===R.length||c===$.length)for(l=R.length-1,c=$.length-1;1<=l&&0<=c&&R[l]!==$[c];)c--;for(;1<=l&&0<=c;l--,c--)if(R[l]!==$[c]){if(l!==1||c!==1)do if(l--,c--,0>c||R[l]!==$[c]){var Y=`
6
- `+R[l].replace(" at new "," at ");return t.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",t.displayName)),Y}while(1<=l&&0<=c);break}}}finally{kt=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?Ct(s):""}function Ee(t,i){switch(t.tag){case 26:case 27:case 5:return Ct(t.type);case 16:return Ct("Lazy");case 13:return t.child!==i&&i!==null?Ct("Suspense Fallback"):Ct("Suspense");case 19:return Ct("SuspenseList");case 0:case 15:return At(t.type,!1);case 11:return At(t.type.render,!1);case 1:return At(t.type,!0);case 31:return Ct("Activity");default:return""}}function It(t){try{var i="",s=null;do i+=Ee(t,s),s=t,t=t.return;while(t);return i}catch(l){return`
6
+ `+R[l].replace(" at new "," at ");return t.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",t.displayName)),Y}while(1<=l&&0<=c);break}}}finally{kt=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?Ct(s):""}function Ee(t,i){switch(t.tag){case 26:case 27:case 5:return Ct(t.type);case 16:return Ct("Lazy");case 13:return t.child!==i&&i!==null?Ct("Suspense Fallback"):Ct("Suspense");case 19:return Ct("SuspenseList");case 0:case 15:return At(t.type,!1);case 11:return At(t.type.render,!1);case 1:return At(t.type,!0);case 31:return Ct("Activity");default:return""}}function Ut(t){try{var i="",s=null;do i+=Ee(t,s),s=t,t=t.return;while(t);return i}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var Ht=Object.prototype.hasOwnProperty,ee=e.unstable_scheduleCallback,qn=e.unstable_cancelCallback,fn=e.unstable_shouldYield,sa=e.unstable_requestPaint,$t=e.unstable_now,hn=e.unstable_getCurrentPriorityLevel,le=e.unstable_ImmediatePriority,Se=e.unstable_UserBlockingPriority,je=e.unstable_NormalPriority,Us=e.unstable_LowPriority,Is=e.unstable_IdlePriority,Ri=e.log,dn=e.unstable_setDisableYieldValue,Cn=null,Le=null;function wi(t){if(typeof Ri=="function"&&dn(t),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(Cn,t)}catch{}}var Qe=Math.clz32?Math.clz32:NE,OE=Math.log,xE=Math.LN2;function NE(t){return t>>>=0,t===0?32:31-(OE(t)/xE|0)|0}var il=256,al=262144,sl=4194304;function ra(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function rl(t,i,s){var l=t.pendingLanes;if(l===0)return 0;var c=0,f=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var T=l&134217727;return T!==0?(l=T&~f,l!==0?c=ra(l):(m&=T,m!==0?c=ra(m):s||(s=T&~t,s!==0&&(c=ra(s))))):(T=l&~f,T!==0?c=ra(T):m!==0?c=ra(m):s||(s=l&~t,s!==0&&(c=ra(s)))),c===0?0:i!==0&&i!==c&&(i&f)===0&&(f=c&-c,s=i&-i,f>=s||f===32&&(s&4194048)!==0)?i:c}function zs(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function RE(t,i){switch(t){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 pd(){var t=sl;return sl<<=1,(sl&62914560)===0&&(sl=4194304),t}function xo(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function Bs(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function wE(t,i,s,l,c,f){var m=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var T=t.entanglements,R=t.expirationTimes,$=t.hiddenUpdates;for(s=m&~s;0<s;){var Y=31-Qe(s),Q=1<<Y;T[Y]=0,R[Y]=-1;var q=$[Y];if(q!==null)for($[Y]=null,Y=0;Y<q.length;Y++){var H=q[Y];H!==null&&(H.lane&=-536870913)}s&=~Q}l!==0&&_d(t,l,0),f!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=f&~(m&~i))}function _d(t,i,s){t.pendingLanes|=i,t.suspendedLanes&=~i;var l=31-Qe(i);t.entangledLanes|=i,t.entanglements[l]=t.entanglements[l]|1073741824|s&261930}function md(t,i){var s=t.entangledLanes|=i;for(t=t.entanglements;s;){var l=31-Qe(s),c=1<<l;c&i|t[l]&i&&(t[l]|=i),s&=~c}}function gd(t,i){var s=i&-i;return s=(s&42)!==0?1:No(s),(s&(t.suspendedLanes|i))!==0?0:s}function No(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ro(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function yd(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:ig(t.type))}function vd(t,i){var s=K.p;try{return K.p=t,i()}finally{K.p=s}}var Ci=Math.random().toString(36).slice(2),Ae="__reactFiber$"+Ci,De="__reactProps$"+Ci,Ba="__reactContainer$"+Ci,wo="__reactEvents$"+Ci,CE="__reactListeners$"+Ci,LE="__reactHandles$"+Ci,Ed="__reactResources$"+Ci,js="__reactMarker$"+Ci;function Co(t){delete t[Ae],delete t[De],delete t[wo],delete t[CE],delete t[LE]}function ja(t){var i=t[Ae];if(i)return i;for(var s=t.parentNode;s;){if(i=s[Ba]||s[Ae]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(t=Pm(t);t!==null;){if(s=t[Ae])return s;t=Pm(t)}return i}t=s,s=t.parentNode}return null}function Da(t){if(t=t[Ae]||t[Ba]){var i=t.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return t}return null}function Ds(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(r(33))}function $a(t){var i=t[Ed];return i||(i=t[Ed]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function be(t){t[js]=!0}var bd=new Set,Td={};function la(t,i){Pa(t,i),Pa(t+"Capture",i)}function Pa(t,i){for(Td[t]=i,t=0;t<i.length;t++)bd.add(i[t])}var ME=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]*$"),Sd={},Ad={};function kE(t){return Ht.call(Ad,t)?!0:Ht.call(Sd,t)?!1:ME.test(t)?Ad[t]=!0:(Sd[t]=!0,!1)}function ll(t,i,s){if(kE(i))if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+s)}}function ul(t,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+s)}}function ni(t,i,s,l){if(l===null)t.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(i,s,""+l)}}function pn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Od(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function UE(t,i,s){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);if(!t.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,f=l.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return c.call(this)},set:function(m){s=""+m,f.call(this,m)}}),Object.defineProperty(t,i,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(m){s=""+m},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Lo(t){if(!t._valueTracker){var i=Od(t)?"checked":"value";t._valueTracker=UE(t,i,""+t[i])}}function xd(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Od(t)?t.checked?"true":"false":t.value),t=l,t!==s?(i.setValue(t),!0):!1}function ol(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var IE=/[\n"\\]/g;function _n(t){return t.replace(IE,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Mo(t,i,s,l,c,f,m,T){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),i!=null?m==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+pn(i)):t.value!==""+pn(i)&&(t.value=""+pn(i)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),i!=null?ko(t,m,pn(i)):s!=null?ko(t,m,pn(s)):l!=null&&t.removeAttribute("value"),c==null&&f!=null&&(t.defaultChecked=!!f),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+pn(T):t.removeAttribute("name")}function Nd(t,i,s,l,c,f,m,T){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),i!=null||s!=null){if(!(f!=="submit"&&f!=="reset"||i!=null)){Lo(t);return}s=s!=null?""+pn(s):"",i=i!=null?""+pn(i):s,T||i===t.value||(t.value=i),t.defaultValue=i}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=T?t.checked:!!l,t.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Lo(t)}function ko(t,i,s){i==="number"&&ol(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function qa(t,i,s,l){if(t=t.options,i){i={};for(var c=0;c<s.length;c++)i["$"+s[c]]=!0;for(s=0;s<t.length;s++)c=i.hasOwnProperty("$"+t[s].value),t[s].selected!==c&&(t[s].selected=c),c&&l&&(t[s].defaultSelected=!0)}else{for(s=""+pn(s),i=null,c=0;c<t.length;c++){if(t[c].value===s){t[c].selected=!0,l&&(t[c].defaultSelected=!0);return}i!==null||t[c].disabled||(i=t[c])}i!==null&&(i.selected=!0)}}function Rd(t,i,s){if(i!=null&&(i=""+pn(i),i!==t.value&&(t.value=i),s==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=s!=null?""+pn(s):""}function wd(t,i,s,l){if(i==null){if(l!=null){if(s!=null)throw Error(r(92));if(it(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),i=s}s=pn(i),t.defaultValue=s,l=t.textContent,l===s&&l!==""&&l!==null&&(t.value=l),Lo(t)}function Ga(t,i){if(i){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=i;return}}t.textContent=i}var zE=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 Cd(t,i,s){var l=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":l?t.setProperty(i,s):typeof s!="number"||s===0||zE.has(i)?i==="float"?t.cssFloat=s:t[i]=(""+s).trim():t[i]=s+"px"}function Ld(t,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(t=t.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var c in i)l=i[c],i.hasOwnProperty(c)&&s[c]!==l&&Cd(t,c,l)}else for(var f in i)i.hasOwnProperty(f)&&Cd(t,f,i[f])}function Uo(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var BE=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"],["colorRendering","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"]]),jE=/^[\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 cl(t){return jE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ii(){}var Io=null;function zo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,Fa=null;function Md(t){var i=Da(t);if(i&&(t=i.stateNode)){var s=t[De]||null;t:switch(t=i.stateNode,i.type){case"input":if(Mo(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+_n(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var l=s[i];if(l!==t&&l.form===t.form){var c=l[De]||null;if(!c)throw Error(r(90));Mo(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(i=0;i<s.length;i++)l=s[i],l.form===t.form&&xd(l)}break t;case"textarea":Rd(t,s.value,s.defaultValue);break t;case"select":i=s.value,i!=null&&qa(t,!!s.multiple,i,!1)}}}var Bo=!1;function kd(t,i,s){if(Bo)return t(i,s);Bo=!0;try{var l=t(i);return l}finally{if(Bo=!1,(Ha!==null||Fa!==null)&&(Zl(),Ha&&(i=Ha,t=Fa,Fa=Ha=null,Md(i),t)))for(i=0;i<t.length;i++)Md(t[i])}}function $s(t,i){var s=t.stateNode;if(s===null)return null;var l=s[De]||null;if(l===null)return null;s=l[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jo=!1;if(ai)try{var Ps={};Object.defineProperty(Ps,"passive",{get:function(){jo=!0}}),window.addEventListener("test",Ps,Ps),window.removeEventListener("test",Ps,Ps)}catch{jo=!1}var Li=null,Do=null,fl=null;function Ud(){if(fl)return fl;var t,i=Do,s=i.length,l,c="value"in Li?Li.value:Li.textContent,f=c.length;for(t=0;t<s&&i[t]===c[t];t++);var m=s-t;for(l=1;l<=m&&i[s-l]===c[f-l];l++);return fl=c.slice(t,1<l?1-l:void 0)}function hl(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function dl(){return!0}function Id(){return!1}function $e(t){function i(s,l,c,f,m){this._reactName=s,this._targetInst=c,this.type=l,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(s=t[T],this[T]=s?s(f):f[T]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?dl:Id,this.isPropagationStopped=Id,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=dl)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),i}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=$e(ua),qs=y({},ua,{view:0,detail:0}),DE=$e(qs),$o,Po,Gs,_l=y({},qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Go,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gs&&(Gs&&t.type==="mousemove"?($o=t.screenX-Gs.screenX,Po=t.screenY-Gs.screenY):Po=$o=0,Gs=t),$o)},movementY:function(t){return"movementY"in t?t.movementY:Po}}),zd=$e(_l),$E=y({},_l,{dataTransfer:0}),PE=$e($E),qE=y({},qs,{relatedTarget:0}),qo=$e(qE),GE=y({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),HE=$e(GE),FE=y({},ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),KE=$e(FE),VE=y({},ua,{data:0}),Bd=$e(VE),YE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XE={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"},QE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZE(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=QE[t])?!!i[t]:!1}function Go(){return ZE}var WE=y({},qs,{key:function(t){if(t.key){var i=YE[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=hl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?XE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Go,charCode:function(t){return t.type==="keypress"?hl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?hl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),JE=$e(WE),tb=y({},_l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=$e(tb),eb=y({},qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Go}),nb=$e(eb),ib=y({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),ab=$e(ib),sb=y({},_l,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),rb=$e(sb),lb=y({},ua,{newState:0,oldState:0}),ub=$e(lb),ob=[9,13,27,32],Ho=ai&&"CompositionEvent"in window,Hs=null;ai&&"documentMode"in document&&(Hs=document.documentMode);var cb=ai&&"TextEvent"in window&&!Hs,Dd=ai&&(!Ho||Hs&&8<Hs&&11>=Hs),$d=" ",Pd=!1;function qd(t,i){switch(t){case"keyup":return ob.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ka=!1;function fb(t,i){switch(t){case"compositionend":return Gd(i);case"keypress":return i.which!==32?null:(Pd=!0,$d);case"textInput":return t=i.data,t===$d&&Pd?null:t;default:return null}}function hb(t,i){if(Ka)return t==="compositionend"||!Ho&&qd(t,i)?(t=Ud(),fl=Do=Li=null,Ka=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Dd&&i.locale!=="ko"?null:i.data;default:return null}}var db={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 Hd(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!db[t.type]:i==="textarea"}function Fd(t,i,s,l){Ha?Fa?Fa.push(l):Fa=[l]:Ha=l,i=au(i,"onChange"),0<i.length&&(s=new pl("onChange","change",null,s,l),t.push({event:s,listeners:i}))}var Fs=null,Ks=null;function pb(t){Nm(t,0)}function ml(t){var i=Ds(t);if(xd(i))return t}function Kd(t,i){if(t==="change")return i}var Vd=!1;if(ai){var Fo;if(ai){var Ko="oninput"in document;if(!Ko){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),Ko=typeof Yd.oninput=="function"}Fo=Ko}else Fo=!1;Vd=Fo&&(!document.documentMode||9<document.documentMode)}function Xd(){Fs&&(Fs.detachEvent("onpropertychange",Qd),Ks=Fs=null)}function Qd(t){if(t.propertyName==="value"&&ml(Ks)){var i=[];Fd(i,Ks,t,zo(t)),kd(pb,i)}}function _b(t,i,s){t==="focusin"?(Xd(),Fs=i,Ks=s,Fs.attachEvent("onpropertychange",Qd)):t==="focusout"&&Xd()}function mb(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ml(Ks)}function gb(t,i){if(t==="click")return ml(i)}function yb(t,i){if(t==="input"||t==="change")return ml(i)}function vb(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var Ze=typeof Object.is=="function"?Object.is:vb;function Vs(t,i){if(Ze(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var s=Object.keys(t),l=Object.keys(i);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var c=s[l];if(!Ht.call(i,c)||!Ze(t[c],i[c]))return!1}return!0}function Zd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Wd(t,i){var s=Zd(t);t=0;for(var l;s;){if(s.nodeType===3){if(l=t+s.textContent.length,t<=i&&l>=i)return{node:s,offset:i-t};t=l}t:{for(;s;){if(s.nextSibling){s=s.nextSibling;break t}s=s.parentNode}s=void 0}s=Zd(s)}}function Jd(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jd(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function tp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=ol(t.document);i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=ol(t.document)}return i}function Vo(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}var Eb=ai&&"documentMode"in document&&11>=document.documentMode,Va=null,Yo=null,Ys=null,Xo=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Xo||Va==null||Va!==ol(l)||(l=Va,"selectionStart"in l&&Vo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ys&&Vs(Ys,l)||(Ys=l,l=au(Yo,"onSelect"),0<l.length&&(i=new pl("onSelect","select",null,i,s),t.push({event:i,listeners:l}),i.target=Va)))}function oa(t,i){var s={};return s[t.toLowerCase()]=i.toLowerCase(),s["Webkit"+t]="webkit"+i,s["Moz"+t]="moz"+i,s}var Ya={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},Qo={},np={};ai&&(np=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function ca(t){if(Qo[t])return Qo[t];if(!Ya[t])return t;var i=Ya[t],s;for(s in i)if(i.hasOwnProperty(s)&&s in np)return Qo[t]=i[s];return t}var ip=ca("animationend"),ap=ca("animationiteration"),sp=ca("animationstart"),bb=ca("transitionrun"),Tb=ca("transitionstart"),Sb=ca("transitioncancel"),rp=ca("transitionend"),lp=new Map,Zo="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(" ");Zo.push("scrollEnd");function Ln(t,i){lp.set(t,i),la(i,[t])}var gl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},mn=[],Xa=0,Wo=0;function yl(){for(var t=Xa,i=Wo=Xa=0;i<t;){var s=mn[i];mn[i++]=null;var l=mn[i];mn[i++]=null;var c=mn[i];mn[i++]=null;var f=mn[i];if(mn[i++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}f!==0&&up(s,c,f)}}function vl(t,i,s,l){mn[Xa++]=t,mn[Xa++]=i,mn[Xa++]=s,mn[Xa++]=l,Wo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Jo(t,i,s,l){return vl(t,i,s,l),El(t)}function fa(t,i){return vl(t,null,null,i),El(t)}function up(t,i,s){t.lanes|=s;var l=t.alternate;l!==null&&(l.lanes|=s);for(var c=!1,f=t.return;f!==null;)f.childLanes|=s,l=f.alternate,l!==null&&(l.childLanes|=s),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(c=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,c&&i!==null&&(c=31-Qe(s),t=f.hiddenUpdates,l=t[c],l===null?t[c]=[i]:l.push(i),i.lane=s|536870912),f):null}function El(t){if(50<mr)throw mr=0,of=null,Error(r(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var Qa={};function Ab(t,i,s,l){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(t,i,s,l){return new Ab(t,i,s,l)}function tc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function si(t,i){var s=t.alternate;return s===null?(s=We(t.tag,i,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=i,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&65011712,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,i=t.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function op(t,i){t.flags&=65011714;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,i=s.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function bl(t,i,s,l,c,f){var m=0;if(l=t,typeof t=="function")tc(t)&&(m=1);else if(typeof t=="string")m=wT(t,s,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case S:return t=We(31,s,i,c),t.elementType=S,t.lanes=f,t;case V:return ha(s.children,c,f,i);case A:m=8,c|=24;break;case b:return t=We(12,s,i,c|2),t.elementType=b,t.lanes=f,t;case Z:return t=We(13,s,i,c),t.elementType=Z,t.lanes=f,t;case I:return t=We(19,s,i,c),t.elementType=I,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:m=10;break t;case N:m=9;break t;case B:m=11;break t;case w:m=14;break t;case E:m=16,l=null;break t}m=29,s=Error(r(130,t===null?"null":typeof t,"")),l=null}return i=We(m,s,i,c),i.elementType=t,i.type=l,i.lanes=f,i}function ha(t,i,s,l){return t=We(7,t,l,i),t.lanes=s,t}function ec(t,i,s){return t=We(6,t,null,i),t.lanes=s,t}function cp(t){var i=We(18,null,null,0);return i.stateNode=t,i}function nc(t,i,s){return i=We(4,t.children!==null?t.children:[],t.key,i),i.lanes=s,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}var fp=new WeakMap;function gn(t,i){if(typeof t=="object"&&t!==null){var s=fp.get(t);return s!==void 0?s:(i={value:t,source:i,stack:It(i)},fp.set(t,i),i)}return{value:t,source:i,stack:It(i)}}var Za=[],Wa=0,Tl=null,Xs=0,yn=[],vn=0,Mi=null,Gn=1,Hn="";function ri(t,i){Za[Wa++]=Xs,Za[Wa++]=Tl,Tl=t,Xs=i}function hp(t,i,s){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Mi,Mi=t;var l=Gn;t=Hn;var c=32-Qe(l)-1;l&=~(1<<c),s+=1;var f=32-Qe(i)+c;if(30<f){var m=c-c%5;f=(l&(1<<m)-1).toString(32),l>>=m,c-=m,Gn=1<<32-Qe(i)+c|s<<c|l,Hn=f+t}else Gn=1<<f|s<<c|l,Hn=t}function ic(t){t.return!==null&&(ri(t,1),hp(t,1,0))}function ac(t){for(;t===Tl;)Tl=Za[--Wa],Za[Wa]=null,Xs=Za[--Wa],Za[Wa]=null;for(;t===Mi;)Mi=yn[--vn],yn[vn]=null,Hn=yn[--vn],yn[vn]=null,Gn=yn[--vn],yn[vn]=null}function dp(t,i){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Mi,Gn=i.id,Hn=i.overflow,Mi=t}var Oe=null,Zt=null,Ut=!1,ki=null,En=!1,sc=Error(r(519));function Ui(t){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qs(gn(i,t)),sc}function pp(t){var i=t.stateNode,s=t.type,l=t.memoizedProps;switch(i[Ae]=t,i[De]=l,s){case"dialog":wt("cancel",i),wt("close",i);break;case"iframe":case"object":case"embed":wt("load",i);break;case"video":case"audio":for(s=0;s<yr.length;s++)wt(yr[s],i);break;case"source":wt("error",i);break;case"img":case"image":case"link":wt("error",i),wt("load",i);break;case"details":wt("toggle",i);break;case"input":wt("invalid",i),Nd(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":wt("invalid",i);break;case"textarea":wt("invalid",i),wd(i,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||l.suppressHydrationWarning===!0||Lm(i.textContent,s)?(l.popover!=null&&(wt("beforetoggle",i),wt("toggle",i)),l.onScroll!=null&&wt("scroll",i),l.onScrollEnd!=null&&wt("scrollend",i),l.onClick!=null&&(i.onclick=ii),i=!0):i=!1,i||Ui(t,!0)}function _p(t){for(Oe=t.return;Oe;)switch(Oe.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Oe=Oe.return}}function Ja(t){if(t!==Oe)return!1;if(!Ut)return _p(t),Ut=!0,!1;var i=t.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||Af(t.type,t.memoizedProps)),s=!s),s&&Zt&&Ui(t),_p(t),i===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=$m(t)}else if(i===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=$m(t)}else i===27?(i=Zt,Yi(t.type)?(t=wf,wf=null,Zt=t):Zt=i):Zt=Oe?Tn(t.stateNode.nextSibling):null;return!0}function da(){Zt=Oe=null,Ut=!1}function rc(){var t=ki;return t!==null&&(He===null?He=t:He.push.apply(He,t),ki=null),t}function Qs(t){ki===null?ki=[t]:ki.push(t)}var lc=x(null),pa=null,li=null;function Ii(t,i,s){F(lc,i._currentValue),i._currentValue=s}function ui(t){t._currentValue=lc.current,D(lc)}function uc(t,i,s){for(;t!==null;){var l=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),t===s)break;t=t.return}}function oc(t,i,s,l){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var f=c.dependencies;if(f!==null){var m=c.child;f=f.firstContext;t:for(;f!==null;){var T=f;f=c;for(var R=0;R<i.length;R++)if(T.context===i[R]){f.lanes|=s,T=f.alternate,T!==null&&(T.lanes|=s),uc(f.return,s,t),l||(m=null);break t}f=T.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(r(341));m.lanes|=s,f=m.alternate,f!==null&&(f.lanes|=s),uc(m,s,t),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===t){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function ts(t,i,s,l){t=null;for(var c=i,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var T=c.type;Ze(c.pendingProps.value,m.value)||(t!==null?t.push(T):t=[T])}}else if(c===ht.current){if(m=c.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(Sr):t=[Sr])}c=c.return}t!==null&&oc(i,t,s,l),i.flags|=262144}function Sl(t){for(t=t.firstContext;t!==null;){if(!Ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function _a(t){pa=t,li=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function xe(t){return mp(pa,t)}function Al(t,i){return pa===null&&_a(t),mp(t,i)}function mp(t,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},li===null){if(t===null)throw Error(r(308));li=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else li=li.next=i;return s}var Ob=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(s,l){t.push(l)}};this.abort=function(){i.aborted=!0,t.forEach(function(s){return s()})}},xb=e.unstable_scheduleCallback,Nb=e.unstable_NormalPriority,he={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new Ob,data:new Map,refCount:0}}function Zs(t){t.refCount--,t.refCount===0&&xb(Nb,function(){t.controller.abort()})}var Ws=null,fc=0,es=0,ns=null;function Rb(t,i){if(Ws===null){var s=Ws=[];fc=0,es=_f(),ns={status:"pending",value:void 0,then:function(l){s.push(l)}}}return fc++,i.then(gp,gp),i}function gp(){if(--fc===0&&Ws!==null){ns!==null&&(ns.status="fulfilled");var t=Ws;Ws=null,es=0,ns=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function wb(t,i){var s=[],l={status:"pending",value:null,reason:null,then:function(c){s.push(c)}};return t.then(function(){l.status="fulfilled",l.value=i;for(var c=0;c<s.length;c++)(0,s[c])(i)},function(c){for(l.status="rejected",l.reason=c,c=0;c<s.length;c++)(0,s[c])(void 0)}),l}var yp=k.S;k.S=function(t,i){em=$t(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&Rb(t,i),yp!==null&&yp(t,i)};var ma=x(null);function hc(){var t=ma.current;return t!==null?t:Yt.pooledCache}function Ol(t,i){i===null?F(ma,ma.current):F(ma,i.pool)}function vp(){var t=hc();return t===null?null:{parent:he._currentValue,pool:t}}var is=Error(r(460)),dc=Error(r(474)),xl=Error(r(542)),Nl={then:function(){}};function Ep(t){return t=t.status,t==="fulfilled"||t==="rejected"}function bp(t,i,s){switch(s=t[s],s===void 0?t.push(i):s!==i&&(i.then(ii,ii),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Sp(t),t;default:if(typeof i.status=="string")i.then(ii,ii);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=i,t.status="pending",t.then(function(l){if(i.status==="pending"){var c=i;c.status="fulfilled",c.value=l}},function(l){if(i.status==="pending"){var c=i;c.status="rejected",c.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Sp(t),t}throw ya=i,is}}function ga(t){try{var i=t._init;return i(t._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ya=s,is):s}}var ya=null;function Tp(){if(ya===null)throw Error(r(459));var t=ya;return ya=null,t}function Sp(t){if(t===is||t===xl)throw Error(r(483))}var as=null,Js=0;function Rl(t){var i=Js;return Js+=1,as===null&&(as=[]),bp(as,t,i)}function tr(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function wl(t,i){throw i.$$typeof===O?Error(r(525)):(t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function Ap(t){function i(U,C){if(t){var j=U.deletions;j===null?(U.deletions=[C],U.flags|=16):j.push(C)}}function s(U,C){if(!t)return null;for(;C!==null;)i(U,C),C=C.sibling;return null}function l(U){for(var C=new Map;U!==null;)U.key!==null?C.set(U.key,U):C.set(U.index,U),U=U.sibling;return C}function c(U,C){return U=si(U,C),U.index=0,U.sibling=null,U}function f(U,C,j){return U.index=j,t?(j=U.alternate,j!==null?(j=j.index,j<C?(U.flags|=67108866,C):j):(U.flags|=67108866,C)):(U.flags|=1048576,C)}function m(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function T(U,C,j,X){return C===null||C.tag!==6?(C=ec(j,U.mode,X),C.return=U,C):(C=c(C,j),C.return=U,C)}function R(U,C,j,X){var dt=j.type;return dt===V?Y(U,C,j.props.children,X,j.key):C!==null&&(C.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===E&&ga(dt)===C.type)?(C=c(C,j.props),tr(C,j),C.return=U,C):(C=bl(j.type,j.key,j.props,null,U.mode,X),tr(C,j),C.return=U,C)}function $(U,C,j,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==j.containerInfo||C.stateNode.implementation!==j.implementation?(C=nc(j,U.mode,X),C.return=U,C):(C=c(C,j.children||[]),C.return=U,C)}function Y(U,C,j,X,dt){return C===null||C.tag!==7?(C=ha(j,U.mode,X,dt),C.return=U,C):(C=c(C,j),C.return=U,C)}function Q(U,C,j){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ec(""+C,U.mode,j),C.return=U,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case z:return j=bl(C.type,C.key,C.props,null,U.mode,j),tr(j,C),j.return=U,j;case G:return C=nc(C,U.mode,j),C.return=U,C;case E:return C=ga(C),Q(U,C,j)}if(it(C)||M(C))return C=ha(C,U.mode,j,null),C.return=U,C;if(typeof C.then=="function")return Q(U,Rl(C),j);if(C.$$typeof===P)return Q(U,Al(U,C),j);wl(U,C)}return null}function q(U,C,j,X){var dt=C!==null?C.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return dt!==null?null:T(U,C,""+j,X);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case z:return j.key===dt?R(U,C,j,X):null;case G:return j.key===dt?$(U,C,j,X):null;case E:return j=ga(j),q(U,C,j,X)}if(it(j)||M(j))return dt!==null?null:Y(U,C,j,X,null);if(typeof j.then=="function")return q(U,C,Rl(j),X);if(j.$$typeof===P)return q(U,C,Al(U,j),X);wl(U,j)}return null}function H(U,C,j,X,dt){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return U=U.get(j)||null,T(C,U,""+X,dt);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case z:return U=U.get(X.key===null?j:X.key)||null,R(C,U,X,dt);case G:return U=U.get(X.key===null?j:X.key)||null,$(C,U,X,dt);case E:return X=ga(X),H(U,C,j,X,dt)}if(it(X)||M(X))return U=U.get(j)||null,Y(C,U,X,dt,null);if(typeof X.then=="function")return H(U,C,j,Rl(X),dt);if(X.$$typeof===P)return H(U,C,j,Al(C,X),dt);wl(C,X)}return null}function ut(U,C,j,X){for(var dt=null,Bt=null,ot=C,Ot=C=0,Mt=null;ot!==null&&Ot<j.length;Ot++){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var jt=q(U,ot,j[Ot],X);if(jt===null){ot===null&&(ot=Mt);break}t&&ot&&jt.alternate===null&&i(U,ot),C=f(jt,C,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt,ot=Mt}if(Ot===j.length)return s(U,ot),Ut&&ri(U,Ot),dt;if(ot===null){for(;Ot<j.length;Ot++)ot=Q(U,j[Ot],X),ot!==null&&(C=f(ot,C,Ot),Bt===null?dt=ot:Bt.sibling=ot,Bt=ot);return Ut&&ri(U,Ot),dt}for(ot=l(ot);Ot<j.length;Ot++)Mt=H(ot,U,Ot,j[Ot],X),Mt!==null&&(t&&Mt.alternate!==null&&ot.delete(Mt.key===null?Ot:Mt.key),C=f(Mt,C,Ot),Bt===null?dt=Mt:Bt.sibling=Mt,Bt=Mt);return t&&ot.forEach(function(Ji){return i(U,Ji)}),Ut&&ri(U,Ot),dt}function gt(U,C,j,X){if(j==null)throw Error(r(151));for(var dt=null,Bt=null,ot=C,Ot=C=0,Mt=null,jt=j.next();ot!==null&&!jt.done;Ot++,jt=j.next()){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var Ji=q(U,ot,jt.value,X);if(Ji===null){ot===null&&(ot=Mt);break}t&&ot&&Ji.alternate===null&&i(U,ot),C=f(Ji,C,Ot),Bt===null?dt=Ji:Bt.sibling=Ji,Bt=Ji,ot=Mt}if(jt.done)return s(U,ot),Ut&&ri(U,Ot),dt;if(ot===null){for(;!jt.done;Ot++,jt=j.next())jt=Q(U,jt.value,X),jt!==null&&(C=f(jt,C,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return Ut&&ri(U,Ot),dt}for(ot=l(ot);!jt.done;Ot++,jt=j.next())jt=H(ot,U,Ot,jt.value,X),jt!==null&&(t&&jt.alternate!==null&&ot.delete(jt.key===null?Ot:jt.key),C=f(jt,C,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return t&&ot.forEach(function($T){return i(U,$T)}),Ut&&ri(U,Ot),dt}function Vt(U,C,j,X){if(typeof j=="object"&&j!==null&&j.type===V&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case z:t:{for(var dt=j.key;C!==null;){if(C.key===dt){if(dt=j.type,dt===V){if(C.tag===7){s(U,C.sibling),X=c(C,j.props.children),X.return=U,U=X;break t}}else if(C.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===E&&ga(dt)===C.type){s(U,C.sibling),X=c(C,j.props),tr(X,j),X.return=U,U=X;break t}s(U,C);break}else i(U,C);C=C.sibling}j.type===V?(X=ha(j.props.children,U.mode,X,j.key),X.return=U,U=X):(X=bl(j.type,j.key,j.props,null,U.mode,X),tr(X,j),X.return=U,U=X)}return m(U);case G:t:{for(dt=j.key;C!==null;){if(C.key===dt)if(C.tag===4&&C.stateNode.containerInfo===j.containerInfo&&C.stateNode.implementation===j.implementation){s(U,C.sibling),X=c(C,j.children||[]),X.return=U,U=X;break t}else{s(U,C);break}else i(U,C);C=C.sibling}X=nc(j,U.mode,X),X.return=U,U=X}return m(U);case E:return j=ga(j),Vt(U,C,j,X)}if(it(j))return ut(U,C,j,X);if(M(j)){if(dt=M(j),typeof dt!="function")throw Error(r(150));return j=dt.call(j),gt(U,C,j,X)}if(typeof j.then=="function")return Vt(U,C,Rl(j),X);if(j.$$typeof===P)return Vt(U,C,Al(U,j),X);wl(U,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,C!==null&&C.tag===6?(s(U,C.sibling),X=c(C,j),X.return=U,U=X):(s(U,C),X=ec(j,U.mode,X),X.return=U,U=X),m(U)):s(U,C)}return function(U,C,j,X){try{Js=0;var dt=Vt(U,C,j,X);return as=null,dt}catch(ot){if(ot===is||ot===xl)throw ot;var Bt=We(29,ot,null,U.mode);return Bt.lanes=X,Bt.return=U,Bt}}}var va=Ap(!0),Op=Ap(!1),zi=!1;function pc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Bi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ji(t,i,s){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var c=l.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),l.pending=i,i=El(t),up(t,null,s),i}return vl(t,l,i,s),El(t)}function er(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,md(t,s)}}function mc(t,i){var s=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var c=null,f=null;if(s=s.firstBaseUpdate,s!==null){do{var m={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};f===null?c=f=m:f=f.next=m,s=s.next}while(s!==null);f===null?c=f=i:f=f.next=i}else c=f=i;s={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}var gc=!1;function nr(){if(gc){var t=ns;if(t!==null)throw t}}function ir(t,i,s,l){gc=!1;var c=t.updateQueue;zi=!1;var f=c.firstBaseUpdate,m=c.lastBaseUpdate,T=c.shared.pending;if(T!==null){c.shared.pending=null;var R=T,$=R.next;R.next=null,m===null?f=$:m.next=$,m=R;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==m&&(T===null?Y.firstBaseUpdate=$:T.next=$,Y.lastBaseUpdate=R))}if(f!==null){var Q=c.baseState;m=0,Y=$=R=null,T=f;do{var q=T.lane&-536870913,H=q!==T.lane;if(H?(Lt&q)===q:(l&q)===q){q!==0&&q===es&&(gc=!0),Y!==null&&(Y=Y.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});t:{var ut=t,gt=T;q=i;var Vt=s;switch(gt.tag){case 1:if(ut=gt.payload,typeof ut=="function"){Q=ut.call(Vt,Q,q);break t}Q=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=gt.payload,q=typeof ut=="function"?ut.call(Vt,Q,q):ut,q==null)break t;Q=y({},Q,q);break t;case 2:zi=!0}}q=T.callback,q!==null&&(t.flags|=64,H&&(t.flags|=8192),H=c.callbacks,H===null?c.callbacks=[q]:H.push(q))}else H={lane:q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?($=Y=H,R=Q):Y=Y.next=H,m|=q;if(T=T.next,T===null){if(T=c.shared.pending,T===null)break;H=T,T=H.next,H.next=null,c.lastBaseUpdate=H,c.shared.pending=null}}while(!0);Y===null&&(R=Q),c.baseState=R,c.firstBaseUpdate=$,c.lastBaseUpdate=Y,f===null&&(c.shared.lanes=0),Gi|=m,t.lanes=m,t.memoizedState=Q}}function xp(t,i){if(typeof t!="function")throw Error(r(191,t));t.call(i)}function Np(t,i){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)xp(s[t],i)}var ss=x(null),Cl=x(0);function Rp(t,i){t=gi,F(Cl,t),F(ss,i),gi=t|i.baseLanes}function yc(){F(Cl,gi),F(ss,ss.current)}function vc(){gi=Cl.current,D(ss),D(Cl)}var Je=x(null),bn=null;function Di(t){var i=t.alternate;F(ue,ue.current&1),F(Je,t),bn===null&&(i===null||ss.current!==null||i.memoizedState!==null)&&(bn=t)}function Ec(t){F(ue,ue.current),F(Je,t),bn===null&&(bn=t)}function wp(t){t.tag===22?(F(ue,ue.current),F(Je,t),bn===null&&(bn=t)):$i()}function $i(){F(ue,ue.current),F(Je,Je.current)}function tn(t){D(Je),bn===t&&(bn=null),D(ue)}var ue=x(0);function Ll(t){for(var i=t;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Nf(s)||Rf(s)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var oi=0,St=null,Ft=null,de=null,Ml=!1,rs=!1,Ea=!1,kl=0,ar=0,ls=null,Cb=0;function ie(){throw Error(r(321))}function bc(t,i){if(i===null)return!1;for(var s=0;s<i.length&&s<t.length;s++)if(!Ze(t[s],i[s]))return!1;return!0}function Tc(t,i,s,l,c,f){return oi=f,St=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,k.H=t===null||t.memoizedState===null?h_:Bc,Ea=!1,f=s(l,c),Ea=!1,rs&&(f=Lp(i,s,l,c)),Cp(t),f}function Cp(t){k.H=lr;var i=Ft!==null&&Ft.next!==null;if(oi=0,de=Ft=St=null,Ml=!1,ar=0,ls=null,i)throw Error(r(300));t===null||pe||(t=t.dependencies,t!==null&&Sl(t)&&(pe=!0))}function Lp(t,i,s,l){St=t;var c=0;do{if(rs&&(ls=null),ar=0,rs=!1,25<=c)throw Error(r(301));if(c+=1,de=Ft=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=d_,f=i(s,l)}while(rs);return f}function Lb(){var t=k.H,i=t.useState()[0];return i=typeof i.then=="function"?sr(i):i,t=t.useState()[0],(Ft!==null?Ft.memoizedState:null)!==t&&(St.flags|=1024),i}function Sc(){var t=kl!==0;return kl=0,t}function Ac(t,i,s){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~s}function Oc(t){if(Ml){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Ml=!1}oi=0,de=Ft=St=null,rs=!1,ar=kl=0,ls=null}function Ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?St.memoizedState=de=t:de=de.next=t,de}function oe(){if(Ft===null){var t=St.alternate;t=t!==null?t.memoizedState:null}else t=Ft.next;var i=de===null?St.memoizedState:de.next;if(i!==null)de=i,Ft=t;else{if(t===null)throw St.alternate===null?Error(r(467)):Error(r(310));Ft=t,t={memoizedState:Ft.memoizedState,baseState:Ft.baseState,baseQueue:Ft.baseQueue,queue:Ft.queue,next:null},de===null?St.memoizedState=de=t:de=de.next=t}return de}function Ul(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sr(t){var i=ar;return ar+=1,ls===null&&(ls=[]),t=bp(ls,t,i),i=St,(de===null?i.memoizedState:de.next)===null&&(i=i.alternate,k.H=i===null||i.memoizedState===null?h_:Bc),t}function Il(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return sr(t);if(t.$$typeof===P)return xe(t)}throw Error(r(438,String(t)))}function xc(t){var i=null,s=St.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var l=St.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(c){return c.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=Ul(),St.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(t),l=0;l<t;l++)s[l]=g;return i.index++,s}function ci(t,i){return typeof i=="function"?i(t):i}function zl(t){var i=oe();return Nc(i,Ft,t)}function Nc(t,i,s){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var c=t.baseQueue,f=l.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}i.baseQueue=c=f,l.pending=null}if(f=t.baseState,c===null)t.memoizedState=f;else{i=c.next;var T=m=null,R=null,$=i,Y=!1;do{var Q=$.lane&-536870913;if(Q!==$.lane?(Lt&Q)===Q:(oi&Q)===Q){var q=$.revertLane;if(q===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),Q===es&&(Y=!0);else if((oi&q)===q){$=$.next,q===es&&(Y=!0);continue}else Q={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(T=R=Q,m=f):R=R.next=Q,St.lanes|=q,Gi|=q;Q=$.action,Ea&&s(f,Q),f=$.hasEagerState?$.eagerState:s(f,Q)}else q={lane:Q,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(T=R=q,m=f):R=R.next=q,St.lanes|=Q,Gi|=Q;$=$.next}while($!==null&&$!==i);if(R===null?m=f:R.next=T,!Ze(f,t.memoizedState)&&(pe=!0,Y&&(s=ns,s!==null)))throw s;t.memoizedState=f,t.baseState=m,t.baseQueue=R,l.lastRenderedState=f}return c===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Rc(t){var i=oe(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var l=s.dispatch,c=s.pending,f=i.memoizedState;if(c!==null){s.pending=null;var m=c=c.next;do f=t(f,m.action),m=m.next;while(m!==c);Ze(f,i.memoizedState)||(pe=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),s.lastRenderedState=f}return[f,l]}function Mp(t,i,s){var l=St,c=oe(),f=Ut;if(f){if(s===void 0)throw Error(r(407));s=s()}else s=i();var m=!Ze((Ft||c).memoizedState,s);if(m&&(c.memoizedState=s,pe=!0),c=c.queue,Lc(Ip.bind(null,l,c,t),[t]),c.getSnapshot!==i||m||de!==null&&de.memoizedState.tag&1){if(l.flags|=2048,us(9,{destroy:void 0},Up.bind(null,l,c,s,i),null),Yt===null)throw Error(r(349));f||(oi&127)!==0||kp(l,i,s)}return s}function kp(t,i,s){t.flags|=16384,t={getSnapshot:i,value:s},i=St.updateQueue,i===null?(i=Ul(),St.updateQueue=i,i.stores=[t]):(s=i.stores,s===null?i.stores=[t]:s.push(t))}function Up(t,i,s,l){i.value=s,i.getSnapshot=l,zp(i)&&Bp(t)}function Ip(t,i,s){return s(function(){zp(i)&&Bp(t)})}function zp(t){var i=t.getSnapshot;t=t.value;try{var s=i();return!Ze(t,s)}catch{return!0}}function Bp(t){var i=fa(t,2);i!==null&&Fe(i,t,2)}function wc(t){var i=Ue();if(typeof t=="function"){var s=t;if(t=s(),Ea){wi(!0);try{s()}finally{wi(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:t},i}function jp(t,i,s,l){return t.baseState=s,Nc(t,Ft,typeof l=="function"?l:ci)}function Mb(t,i,s,l,c){if(Dl(t))throw Error(r(485));if(t=i.action,t!==null){var f={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){f.listeners.push(m)}};k.T!==null?s(!0):f.isTransition=!1,l(f),s=i.pending,s===null?(f.next=i.pending=f,Dp(i,f)):(f.next=s.next,i.pending=s.next=f)}}function Dp(t,i){var s=i.action,l=i.payload,c=t.state;if(i.isTransition){var f=k.T,m={};k.T=m;try{var T=s(c,l),R=k.S;R!==null&&R(m,T),$p(t,i,T)}catch($){Cc(t,i,$)}finally{f!==null&&m.types!==null&&(f.types=m.types),k.T=f}}else try{f=s(c,l),$p(t,i,f)}catch($){Cc(t,i,$)}}function $p(t,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Pp(t,i,l)},function(l){return Cc(t,i,l)}):Pp(t,i,s)}function Pp(t,i,s){i.status="fulfilled",i.value=s,qp(i),t.state=s,i=t.pending,i!==null&&(s=i.next,s===i?t.pending=null:(s=s.next,i.next=s,Dp(t,s)))}function Cc(t,i,s){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=s,qp(i),i=i.next;while(i!==l)}t.action=null}function qp(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function Gp(t,i){return i}function Hp(t,i){if(Ut){var s=Yt.formState;if(s!==null){t:{var l=St;if(Ut){if(Zt){e:{for(var c=Zt,f=En;c.nodeType!==8;){if(!f){c=null;break e}if(c=Tn(c.nextSibling),c===null){c=null;break e}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Zt=Tn(c.nextSibling),l=c.data==="F!";break t}}Ui(l)}l=!1}l&&(i=s[0])}}return s=Ue(),s.memoizedState=s.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:i},s.queue=l,s=o_.bind(null,St,l),l.dispatch=s,l=wc(!1),f=zc.bind(null,St,!1,l.queue),l=Ue(),c={state:i,dispatch:null,action:t,pending:null},l.queue=c,s=Mb.bind(null,St,c,f,s),c.dispatch=s,l.memoizedState=t,[i,s,!1]}function Fp(t){var i=oe();return Kp(i,Ft,t)}function Kp(t,i,s){if(i=Nc(t,i,Gp)[0],t=zl(ci)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var l=sr(i)}catch(m){throw m===is?xl:m}else l=i;i=oe();var c=i.queue,f=c.dispatch;return s!==i.memoizedState&&(St.flags|=2048,us(9,{destroy:void 0},kb.bind(null,c,s),null)),[l,f,t]}function kb(t,i){t.action=i}function Vp(t){var i=oe(),s=Ft;if(s!==null)return Kp(i,s,t);oe(),i=i.memoizedState,s=oe();var l=s.queue.dispatch;return s.memoizedState=t,[i,l,!1]}function us(t,i,s,l){return t={tag:t,create:s,deps:l,inst:i,next:null},i=St.updateQueue,i===null&&(i=Ul(),St.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=t.next=t:(l=s.next,s.next=t,t.next=l,i.lastEffect=t),t}function Yp(){return oe().memoizedState}function Bl(t,i,s,l){var c=Ue();St.flags|=t,c.memoizedState=us(1|i,{destroy:void 0},s,l===void 0?null:l)}function jl(t,i,s,l){var c=oe();l=l===void 0?null:l;var f=c.memoizedState.inst;Ft!==null&&l!==null&&bc(l,Ft.memoizedState.deps)?c.memoizedState=us(i,f,s,l):(St.flags|=t,c.memoizedState=us(1|i,f,s,l))}function Xp(t,i){Bl(8390656,8,t,i)}function Lc(t,i){jl(2048,8,t,i)}function Ub(t){St.flags|=4;var i=St.updateQueue;if(i===null)i=Ul(),St.updateQueue=i,i.events=[t];else{var s=i.events;s===null?i.events=[t]:s.push(t)}}function Qp(t){var i=oe().memoizedState;return Ub({ref:i,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function Zp(t,i){return jl(4,2,t,i)}function Wp(t,i){return jl(4,4,t,i)}function Jp(t,i){if(typeof i=="function"){t=t();var s=i(t);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function t_(t,i,s){s=s!=null?s.concat([t]):null,jl(4,4,Jp.bind(null,i,t),s)}function Mc(){}function e_(t,i){var s=oe();i=i===void 0?null:i;var l=s.memoizedState;return i!==null&&bc(i,l[1])?l[0]:(s.memoizedState=[t,i],t)}function n_(t,i){var s=oe();i=i===void 0?null:i;var l=s.memoizedState;if(i!==null&&bc(i,l[1]))return l[0];if(l=t(),Ea){wi(!0);try{t()}finally{wi(!1)}}return s.memoizedState=[l,i],l}function kc(t,i,s){return s===void 0||(oi&1073741824)!==0&&(Lt&261930)===0?t.memoizedState=i:(t.memoizedState=s,t=im(),St.lanes|=t,Gi|=t,s)}function i_(t,i,s,l){return Ze(s,i)?s:ss.current!==null?(t=kc(t,s,l),Ze(t,i)||(pe=!0),t):(oi&42)===0||(oi&1073741824)!==0&&(Lt&261930)===0?(pe=!0,t.memoizedState=s):(t=im(),St.lanes|=t,Gi|=t,i)}function a_(t,i,s,l,c){var f=K.p;K.p=f!==0&&8>f?f:8;var m=k.T,T={};k.T=T,zc(t,!1,i,s);try{var R=c(),$=k.S;if($!==null&&$(T,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Y=wb(R,l);rr(t,i,Y,an(t))}else rr(t,i,l,an(t))}catch(Q){rr(t,i,{then:function(){},status:"rejected",reason:Q},an())}finally{K.p=f,m!==null&&T.types!==null&&(m.types=T.types),k.T=m}}function Ib(){}function Uc(t,i,s,l){if(t.tag!==5)throw Error(r(476));var c=s_(t).queue;a_(t,c,i,nt,s===null?Ib:function(){return r_(t),s(l)})}function s_(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:nt},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:s},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function r_(t){var i=s_(t);i.next===null&&(i=t.alternate.memoizedState),rr(t,i.next.queue,{},an())}function Ic(){return xe(Sr)}function l_(){return oe().memoizedState}function u_(){return oe().memoizedState}function zb(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var s=an();t=Bi(s);var l=ji(i,t,s);l!==null&&(Fe(l,i,s),er(l,i,s)),i={cache:cc()},t.payload=i;return}i=i.return}}function Bb(t,i,s){var l=an();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Dl(t)?c_(i,s):(s=Jo(t,i,s,l),s!==null&&(Fe(s,t,l),f_(s,i,l)))}function o_(t,i,s){var l=an();rr(t,i,s,l)}function rr(t,i,s,l){var c={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Dl(t))c_(i,c);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var m=i.lastRenderedState,T=f(m,s);if(c.hasEagerState=!0,c.eagerState=T,Ze(T,m))return vl(t,i,c,0),Yt===null&&yl(),!1}catch{}if(s=Jo(t,i,c,l),s!==null)return Fe(s,t,l),f_(s,i,l),!0}return!1}function zc(t,i,s,l){if(l={lane:2,revertLane:_f(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Dl(t)){if(i)throw Error(r(479))}else i=Jo(t,s,l,2),i!==null&&Fe(i,t,2)}function Dl(t){var i=t.alternate;return t===St||i!==null&&i===St}function c_(t,i){rs=Ml=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function f_(t,i,s){if((s&4194048)!==0){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,md(t,s)}}var lr={readContext:xe,use:Il,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useLayoutEffect:ie,useInsertionEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useSyncExternalStore:ie,useId:ie,useHostTransitionStatus:ie,useFormState:ie,useActionState:ie,useOptimistic:ie,useMemoCache:ie,useCacheRefresh:ie};lr.useEffectEvent=ie;var h_={readContext:xe,use:Il,useCallback:function(t,i){return Ue().memoizedState=[t,i===void 0?null:i],t},useContext:xe,useEffect:Xp,useImperativeHandle:function(t,i,s){s=s!=null?s.concat([t]):null,Bl(4194308,4,Jp.bind(null,i,t),s)},useLayoutEffect:function(t,i){return Bl(4194308,4,t,i)},useInsertionEffect:function(t,i){Bl(4,2,t,i)},useMemo:function(t,i){var s=Ue();i=i===void 0?null:i;var l=t();if(Ea){wi(!0);try{t()}finally{wi(!1)}}return s.memoizedState=[l,i],l},useReducer:function(t,i,s){var l=Ue();if(s!==void 0){var c=s(i);if(Ea){wi(!0);try{s(i)}finally{wi(!1)}}}else c=i;return l.memoizedState=l.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},l.queue=t,t=t.dispatch=Bb.bind(null,St,t),[l.memoizedState,t]},useRef:function(t){var i=Ue();return t={current:t},i.memoizedState=t},useState:function(t){t=wc(t);var i=t.queue,s=o_.bind(null,St,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Mc,useDeferredValue:function(t,i){var s=Ue();return kc(s,t,i)},useTransition:function(){var t=wc(!1);return t=a_.bind(null,St,t.queue,!0,!1),Ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,s){var l=St,c=Ue();if(Ut){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),Yt===null)throw Error(r(349));(Lt&127)!==0||kp(l,i,s)}c.memoizedState=s;var f={value:s,getSnapshot:i};return c.queue=f,Xp(Ip.bind(null,l,f,t),[t]),l.flags|=2048,us(9,{destroy:void 0},Up.bind(null,l,f,s,i),null),s},useId:function(){var t=Ue(),i=Yt.identifierPrefix;if(Ut){var s=Hn,l=Gn;s=(l&~(1<<32-Qe(l)-1)).toString(32)+s,i="_"+i+"R_"+s,s=kl++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=Cb++,i="_"+i+"r_"+s.toString(32)+"_";return t.memoizedState=i},useHostTransitionStatus:Ic,useFormState:Hp,useActionState:Hp,useOptimistic:function(t){var i=Ue();i.memoizedState=i.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=zc.bind(null,St,!0,s),s.dispatch=i,[t,i]},useMemoCache:xc,useCacheRefresh:function(){return Ue().memoizedState=zb.bind(null,St)},useEffectEvent:function(t){var i=Ue(),s={impl:t};return i.memoizedState=s,function(){if((Dt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Bc={readContext:xe,use:Il,useCallback:e_,useContext:xe,useEffect:Lc,useImperativeHandle:t_,useInsertionEffect:Zp,useLayoutEffect:Wp,useMemo:n_,useReducer:zl,useRef:Yp,useState:function(){return zl(ci)},useDebugValue:Mc,useDeferredValue:function(t,i){var s=oe();return i_(s,Ft.memoizedState,t,i)},useTransition:function(){var t=zl(ci)[0],i=oe().memoizedState;return[typeof t=="boolean"?t:sr(t),i]},useSyncExternalStore:Mp,useId:l_,useHostTransitionStatus:Ic,useFormState:Fp,useActionState:Fp,useOptimistic:function(t,i){var s=oe();return jp(s,Ft,t,i)},useMemoCache:xc,useCacheRefresh:u_};Bc.useEffectEvent=Qp;var d_={readContext:xe,use:Il,useCallback:e_,useContext:xe,useEffect:Lc,useImperativeHandle:t_,useInsertionEffect:Zp,useLayoutEffect:Wp,useMemo:n_,useReducer:Rc,useRef:Yp,useState:function(){return Rc(ci)},useDebugValue:Mc,useDeferredValue:function(t,i){var s=oe();return Ft===null?kc(s,t,i):i_(s,Ft.memoizedState,t,i)},useTransition:function(){var t=Rc(ci)[0],i=oe().memoizedState;return[typeof t=="boolean"?t:sr(t),i]},useSyncExternalStore:Mp,useId:l_,useHostTransitionStatus:Ic,useFormState:Vp,useActionState:Vp,useOptimistic:function(t,i){var s=oe();return Ft!==null?jp(s,Ft,t,i):(s.baseState=t,[t,s.queue.dispatch])},useMemoCache:xc,useCacheRefresh:u_};d_.useEffectEvent=Qp;function jc(t,i,s,l){i=t.memoizedState,s=s(l,i),s=s==null?i:y({},i,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var Dc={enqueueSetState:function(t,i,s){t=t._reactInternals;var l=an(),c=Bi(l);c.payload=i,s!=null&&(c.callback=s),i=ji(t,c,l),i!==null&&(Fe(i,t,l),er(i,t,l))},enqueueReplaceState:function(t,i,s){t=t._reactInternals;var l=an(),c=Bi(l);c.tag=1,c.payload=i,s!=null&&(c.callback=s),i=ji(t,c,l),i!==null&&(Fe(i,t,l),er(i,t,l))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var s=an(),l=Bi(s);l.tag=2,i!=null&&(l.callback=i),i=ji(t,l,s),i!==null&&(Fe(i,t,s),er(i,t,s))}};function p_(t,i,s,l,c,f,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,f,m):i.prototype&&i.prototype.isPureReactComponent?!Vs(s,l)||!Vs(c,f):!0}function __(t,i,s,l){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,l),i.state!==t&&Dc.enqueueReplaceState(i,i.state,null)}function ba(t,i){var s=i;if("ref"in i){s={};for(var l in i)l!=="ref"&&(s[l]=i[l])}if(t=t.defaultProps){s===i&&(s=y({},s));for(var c in t)s[c]===void 0&&(s[c]=t[c])}return s}function m_(t){gl(t)}function g_(t){console.error(t)}function y_(t){gl(t)}function $l(t,i){try{var s=t.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function v_(t,i,s){try{var l=t.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function $c(t,i,s){return s=Bi(s),s.tag=3,s.payload={element:null},s.callback=function(){$l(t,i)},s}function E_(t){return t=Bi(t),t.tag=3,t}function b_(t,i,s,l){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var f=l.value;t.payload=function(){return c(f)},t.callback=function(){v_(i,s,l)}}var m=s.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){v_(i,s,l),typeof c!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var T=l.stack;this.componentDidCatch(l.value,{componentStack:T!==null?T:""})})}function jb(t,i,s,l,c){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=s.alternate,i!==null&&ts(i,s,c,!0),s=Je.current,s!==null){switch(s.tag){case 31:case 13:return bn===null?Wl():s.alternate===null&&ae===0&&(ae=3),s.flags&=-257,s.flags|=65536,s.lanes=c,l===Nl?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([l]):i.add(l),hf(t,l,c)),!1;case 22:return s.flags|=65536,l===Nl?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([l]):s.add(l)),hf(t,l,c)),!1}throw Error(r(435,s.tag))}return hf(t,l,c),Wl(),!1}if(Ut)return i=Je.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=c,l!==sc&&(t=Error(r(422),{cause:l}),Qs(gn(t,s)))):(l!==sc&&(i=Error(r(423),{cause:l}),Qs(gn(i,s))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,l=gn(l,s),c=$c(t.stateNode,l,c),mc(t,c),ae!==4&&(ae=2)),!1;var f=Error(r(520),{cause:l});if(f=gn(f,s),_r===null?_r=[f]:_r.push(f),ae!==4&&(ae=2),i===null)return!0;l=gn(l,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,t=c&-c,s.lanes|=t,t=$c(s.stateNode,l,t),mc(s,t),!1;case 1:if(i=s.type,f=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Hi===null||!Hi.has(f))))return s.flags|=65536,c&=-c,s.lanes|=c,c=E_(c),b_(c,t,s,l),mc(s,c),!1}s=s.return}while(s!==null);return!1}var Pc=Error(r(461)),pe=!1;function Ne(t,i,s,l){i.child=t===null?Op(i,null,s,l):va(i,t.child,s,l)}function T_(t,i,s,l,c){s=s.render;var f=i.ref;if("ref"in l){var m={};for(var T in l)T!=="ref"&&(m[T]=l[T])}else m=l;return _a(i),l=Tc(t,i,s,m,f,c),T=Sc(),t!==null&&!pe?(Ac(t,i,c),fi(t,i,c)):(Ut&&T&&ic(i),i.flags|=1,Ne(t,i,l,c),i.child)}function S_(t,i,s,l,c){if(t===null){var f=s.type;return typeof f=="function"&&!tc(f)&&f.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=f,A_(t,i,f,l,c)):(t=bl(s.type,null,l,i,i.mode,c),t.ref=i.ref,t.return=i,i.child=t)}if(f=t.child,!Xc(t,c)){var m=f.memoizedProps;if(s=s.compare,s=s!==null?s:Vs,s(m,l)&&t.ref===i.ref)return fi(t,i,c)}return i.flags|=1,t=si(f,l),t.ref=i.ref,t.return=i,i.child=t}function A_(t,i,s,l,c){if(t!==null){var f=t.memoizedProps;if(Vs(f,l)&&t.ref===i.ref)if(pe=!1,i.pendingProps=l=f,Xc(t,c))(t.flags&131072)!==0&&(pe=!0);else return i.lanes=t.lanes,fi(t,i,c)}return qc(t,i,s,l,c)}function O_(t,i,s,l){var c=l.children,f=t!==null?t.memoizedState:null;if(t===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((i.flags&128)!==0){if(f=f!==null?f.baseLanes|s:s,t!==null){for(l=i.child=t.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~f}else l=0,i.child=null;return x_(t,i,f,s,l)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ol(i,f!==null?f.cachePool:null),f!==null?Rp(i,f):yc(),wp(i);else return l=i.lanes=536870912,x_(t,i,f!==null?f.baseLanes|s:s,s,l)}else f!==null?(Ol(i,f.cachePool),Rp(i,f),$i(),i.memoizedState=null):(t!==null&&Ol(i,null),yc(),$i());return Ne(t,i,c,s),i.child}function ur(t,i){return t!==null&&t.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function x_(t,i,s,l,c){var f=hc();return f=f===null?null:{parent:he._currentValue,pool:f},i.memoizedState={baseLanes:s,cachePool:f},t!==null&&Ol(i,null),yc(),wp(i),t!==null&&ts(t,i,l,!0),i.childLanes=c,null}function Pl(t,i){return i=Gl({mode:i.mode,children:i.children},t.mode),i.ref=t.ref,t.child=i,i.return=t,i}function N_(t,i,s){return va(i,t.child,null,s),t=Pl(i,i.pendingProps),t.flags|=2,tn(i),i.memoizedState=null,t}function Db(t,i,s){var l=i.pendingProps,c=(i.flags&128)!==0;if(i.flags&=-129,t===null){if(Ut){if(l.mode==="hidden")return t=Pl(i,l),i.lanes=536870912,ur(null,t);if(Ec(i),(t=Zt)?(t=Dm(t,En),t=t!==null&&t.data==="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Mi!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},s=cp(t),s.return=i,i.child=s,Oe=i,Zt=null)):t=null,t===null)throw Ui(i);return i.lanes=536870912,null}return Pl(i,l)}var f=t.memoizedState;if(f!==null){var m=f.dehydrated;if(Ec(i),c)if(i.flags&256)i.flags&=-257,i=N_(t,i,s);else if(i.memoizedState!==null)i.child=t.child,i.flags|=128,i=null;else throw Error(r(558));else if(pe||ts(t,i,s,!1),c=(s&t.childLanes)!==0,pe||c){if(l=Yt,l!==null&&(m=gd(l,s),m!==0&&m!==f.retryLane))throw f.retryLane=m,fa(t,m),Fe(l,t,m),Pc;Wl(),i=N_(t,i,s)}else t=f.treeContext,Zt=Tn(m.nextSibling),Oe=i,Ut=!0,ki=null,En=!1,t!==null&&dp(i,t),i=Pl(i,l),i.flags|=4096;return i}return t=si(t.child,{mode:l.mode,children:l.children}),t.ref=i.ref,i.child=t,t.return=i,t}function ql(t,i){var s=i.ref;if(s===null)t!==null&&t.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(t===null||t.ref!==s)&&(i.flags|=4194816)}}function qc(t,i,s,l,c){return _a(i),s=Tc(t,i,s,l,void 0,c),l=Sc(),t!==null&&!pe?(Ac(t,i,c),fi(t,i,c)):(Ut&&l&&ic(i),i.flags|=1,Ne(t,i,s,c),i.child)}function R_(t,i,s,l,c,f){return _a(i),i.updateQueue=null,s=Lp(i,l,s,c),Cp(t),l=Sc(),t!==null&&!pe?(Ac(t,i,f),fi(t,i,f)):(Ut&&l&&ic(i),i.flags|=1,Ne(t,i,s,f),i.child)}function w_(t,i,s,l,c){if(_a(i),i.stateNode===null){var f=Qa,m=s.contextType;typeof m=="object"&&m!==null&&(f=xe(m)),f=new s(l,f),i.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Dc,i.stateNode=f,f._reactInternals=i,f=i.stateNode,f.props=l,f.state=i.memoizedState,f.refs={},pc(i),m=s.contextType,f.context=typeof m=="object"&&m!==null?xe(m):Qa,f.state=i.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(jc(i,s,m,l),f.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(m=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),m!==f.state&&Dc.enqueueReplaceState(f,f.state,null),ir(i,l,f,c),nr(),f.state=i.memoizedState),typeof f.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(t===null){f=i.stateNode;var T=i.memoizedProps,R=ba(s,T);f.props=R;var $=f.context,Y=s.contextType;m=Qa,typeof Y=="object"&&Y!==null&&(m=xe(Y));var Q=s.getDerivedStateFromProps;Y=typeof Q=="function"||typeof f.getSnapshotBeforeUpdate=="function",T=i.pendingProps!==T,Y||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(T||$!==m)&&__(i,f,l,m),zi=!1;var q=i.memoizedState;f.state=q,ir(i,l,f,c),nr(),$=i.memoizedState,T||q!==$||zi?(typeof Q=="function"&&(jc(i,s,Q,l),$=i.memoizedState),(R=zi||p_(i,s,R,l,q,$,m))?(Y||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(i.flags|=4194308)):(typeof f.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=$),f.props=l,f.state=$,f.context=m,l=R):(typeof f.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{f=i.stateNode,_c(t,i),m=i.memoizedProps,Y=ba(s,m),f.props=Y,Q=i.pendingProps,q=f.context,$=s.contextType,R=Qa,typeof $=="object"&&$!==null&&(R=xe($)),T=s.getDerivedStateFromProps,($=typeof T=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(m!==Q||q!==R)&&__(i,f,l,R),zi=!1,q=i.memoizedState,f.state=q,ir(i,l,f,c),nr();var H=i.memoizedState;m!==Q||q!==H||zi||t!==null&&t.dependencies!==null&&Sl(t.dependencies)?(typeof T=="function"&&(jc(i,s,T,l),H=i.memoizedState),(Y=zi||p_(i,s,Y,l,q,H,R)||t!==null&&t.dependencies!==null&&Sl(t.dependencies))?($||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,H,R),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,H,R)),typeof f.componentDidUpdate=="function"&&(i.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof f.componentDidUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=H),f.props=l,f.state=H,f.context=R,l=Y):(typeof f.componentDidUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=1024),l=!1)}return f=l,ql(t,i),l=(i.flags&128)!==0,f||l?(f=i.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:f.render(),i.flags|=1,t!==null&&l?(i.child=va(i,t.child,null,c),i.child=va(i,null,s,c)):Ne(t,i,s,c),i.memoizedState=f.state,t=i.child):t=fi(t,i,c),t}function C_(t,i,s,l){return da(),i.flags|=256,Ne(t,i,s,l),i.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:vp()}}function Fc(t,i,s){return t=t!==null?t.childLanes&~s:0,i&&(t|=nn),t}function L_(t,i,s){var l=i.pendingProps,c=!1,f=(i.flags&128)!==0,m;if((m=f)||(m=t!==null&&t.memoizedState===null?!1:(ue.current&2)!==0),m&&(c=!0,i.flags&=-129),m=(i.flags&32)!==0,i.flags&=-33,t===null){if(Ut){if(c?Di(i):$i(),(t=Zt)?(t=Dm(t,En),t=t!==null&&t.data!=="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Mi!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},s=cp(t),s.return=i,i.child=s,Oe=i,Zt=null)):t=null,t===null)throw Ui(i);return Rf(t)?i.lanes=32:i.lanes=536870912,null}var T=l.children;return l=l.fallback,c?($i(),c=i.mode,T=Gl({mode:"hidden",children:T},c),l=ha(l,c,s,null),T.return=i,l.return=i,T.sibling=l,i.child=T,l=i.child,l.memoizedState=Hc(s),l.childLanes=Fc(t,m,s),i.memoizedState=Gc,ur(null,l)):(Di(i),Kc(i,T))}var R=t.memoizedState;if(R!==null&&(T=R.dehydrated,T!==null)){if(f)i.flags&256?(Di(i),i.flags&=-257,i=Vc(t,i,s)):i.memoizedState!==null?($i(),i.child=t.child,i.flags|=128,i=null):($i(),T=l.fallback,c=i.mode,l=Gl({mode:"visible",children:l.children},c),T=ha(T,c,s,null),T.flags|=2,l.return=i,T.return=i,l.sibling=T,i.child=l,va(i,t.child,null,s),l=i.child,l.memoizedState=Hc(s),l.childLanes=Fc(t,m,s),i.memoizedState=Gc,i=ur(null,l));else if(Di(i),Rf(T)){if(m=T.nextSibling&&T.nextSibling.dataset,m)var $=m.dgst;m=$,l=Error(r(419)),l.stack="",l.digest=m,Qs({value:l,source:null,stack:null}),i=Vc(t,i,s)}else if(pe||ts(t,i,s,!1),m=(s&t.childLanes)!==0,pe||m){if(m=Yt,m!==null&&(l=gd(m,s),l!==0&&l!==R.retryLane))throw R.retryLane=l,fa(t,l),Fe(m,t,l),Pc;Nf(T)||Wl(),i=Vc(t,i,s)}else Nf(T)?(i.flags|=192,i.child=t.child,i=null):(t=R.treeContext,Zt=Tn(T.nextSibling),Oe=i,Ut=!0,ki=null,En=!1,t!==null&&dp(i,t),i=Kc(i,l.children),i.flags|=4096);return i}return c?($i(),T=l.fallback,c=i.mode,R=t.child,$=R.sibling,l=si(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,$!==null?T=si($,T):(T=ha(T,c,s,null),T.flags|=2),T.return=i,l.return=i,l.sibling=T,i.child=l,ur(null,l),l=i.child,T=t.child.memoizedState,T===null?T=Hc(s):(c=T.cachePool,c!==null?(R=he._currentValue,c=c.parent!==R?{parent:R,pool:R}:c):c=vp(),T={baseLanes:T.baseLanes|s,cachePool:c}),l.memoizedState=T,l.childLanes=Fc(t,m,s),i.memoizedState=Gc,ur(t.child,l)):(Di(i),s=t.child,t=s.sibling,s=si(s,{mode:"visible",children:l.children}),s.return=i,s.sibling=null,t!==null&&(m=i.deletions,m===null?(i.deletions=[t],i.flags|=16):m.push(t)),i.child=s,i.memoizedState=null,s)}function Kc(t,i){return i=Gl({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function Gl(t,i){return t=We(22,t,null,i),t.lanes=0,t}function Vc(t,i,s){return va(i,t.child,null,s),t=Kc(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function M_(t,i,s){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i),uc(t.return,i,s)}function Yc(t,i,s,l,c,f){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:c,treeForkCount:f}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=s,m.tailMode=c,m.treeForkCount=f)}function k_(t,i,s){var l=i.pendingProps,c=l.revealOrder,f=l.tail;l=l.children;var m=ue.current,T=(m&2)!==0;if(T?(m=m&1|2,i.flags|=128):m&=1,F(ue,m),Ne(t,i,l,s),l=Ut?Xs:0,!T&&t!==null&&(t.flags&128)!==0)t:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&M_(t,s,i);else if(t.tag===19)M_(t,s,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break t;for(;t.sibling===null;){if(t.return===null||t.return===i)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(c){case"forwards":for(s=i.child,c=null;s!==null;)t=s.alternate,t!==null&&Ll(t)===null&&(c=s),s=s.sibling;s=c,s===null?(c=i.child,i.child=null):(c=s.sibling,s.sibling=null),Yc(i,!1,c,s,f,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,c=i.child,i.child=null;c!==null;){if(t=c.alternate,t!==null&&Ll(t)===null){i.child=c;break}t=c.sibling,c.sibling=s,s=c,c=t}Yc(i,!0,s,null,f,l);break;case"together":Yc(i,!1,null,null,void 0,l);break;default:i.memoizedState=null}return i.child}function fi(t,i,s){if(t!==null&&(i.dependencies=t.dependencies),Gi|=i.lanes,(s&i.childLanes)===0)if(t!==null){if(ts(t,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,s=si(t,t.pendingProps),i.child=s,s.return=i;t.sibling!==null;)t=t.sibling,s=s.sibling=si(t,t.pendingProps),s.return=i;s.sibling=null}return i.child}function Xc(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&Sl(t)))}function $b(t,i,s){switch(i.tag){case 3:ct(i,i.stateNode.containerInfo),Ii(i,he,t.memoizedState.cache),da();break;case 27:case 5:xt(i);break;case 4:ct(i,i.stateNode.containerInfo);break;case 10:Ii(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Ec(i),null;break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(Di(i),i.flags|=128,null):(s&i.child.childLanes)!==0?L_(t,i,s):(Di(i),t=fi(t,i,s),t!==null?t.sibling:null);Di(i);break;case 19:var c=(t.flags&128)!==0;if(l=(s&i.childLanes)!==0,l||(ts(t,i,s,!1),l=(s&i.childLanes)!==0),c){if(l)return k_(t,i,s);i.flags|=128}if(c=i.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),F(ue,ue.current),l)break;return null;case 22:return i.lanes=0,O_(t,i,s,i.pendingProps);case 24:Ii(i,he,t.memoizedState.cache)}return fi(t,i,s)}function U_(t,i,s){if(t!==null)if(t.memoizedProps!==i.pendingProps)pe=!0;else{if(!Xc(t,s)&&(i.flags&128)===0)return pe=!1,$b(t,i,s);pe=(t.flags&131072)!==0}else pe=!1,Ut&&(i.flags&1048576)!==0&&hp(i,Xs,i.index);switch(i.lanes=0,i.tag){case 16:t:{var l=i.pendingProps;if(t=ga(i.elementType),i.type=t,typeof t=="function")tc(t)?(l=ba(t,l),i.tag=1,i=w_(null,i,t,l,s)):(i.tag=0,i=qc(null,i,t,l,s));else{if(t!=null){var c=t.$$typeof;if(c===B){i.tag=11,i=T_(null,i,t,l,s);break t}else if(c===w){i.tag=14,i=S_(null,i,t,l,s);break t}}throw i=at(t)||t,Error(r(306,i,""))}}return i;case 0:return qc(t,i,i.type,i.pendingProps,s);case 1:return l=i.type,c=ba(l,i.pendingProps),w_(t,i,l,c,s);case 3:t:{if(ct(i,i.stateNode.containerInfo),t===null)throw Error(r(387));l=i.pendingProps;var f=i.memoizedState;c=f.element,_c(t,i),ir(i,l,null,s);var m=i.memoizedState;if(l=m.cache,Ii(i,he,l),l!==f.cache&&oc(i,[he],s,!0),nr(),l=m.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:m.cache},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){i=C_(t,i,l,s);break t}else if(l!==c){c=gn(Error(r(424)),i),Qs(c),i=C_(t,i,l,s);break t}else for(t=i.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Zt=Tn(t.firstChild),Oe=i,Ut=!0,ki=null,En=!0,s=Op(i,null,l,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(da(),l===c){i=fi(t,i,s);break t}Ne(t,i,l,s)}i=i.child}return i;case 26:return ql(t,i),t===null?(s=Fm(i.type,null,i.pendingProps,null))?i.memoizedState=s:Ut||(s=i.type,t=i.pendingProps,l=su(st.current).createElement(s),l[Ae]=i,l[De]=t,Re(l,s,t),be(l),i.stateNode=l):i.memoizedState=Fm(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return xt(i),t===null&&Ut&&(l=i.stateNode=qm(i.type,i.pendingProps,st.current),Oe=i,En=!0,c=Zt,Yi(i.type)?(wf=c,Zt=Tn(l.firstChild)):Zt=c),Ne(t,i,i.pendingProps.children,s),ql(t,i),t===null&&(i.flags|=4194304),i.child;case 5:return t===null&&Ut&&((c=l=Zt)&&(l=mT(l,i.type,i.pendingProps,En),l!==null?(i.stateNode=l,Oe=i,Zt=Tn(l.firstChild),En=!1,c=!0):c=!1),c||Ui(i)),xt(i),c=i.type,f=i.pendingProps,m=t!==null?t.memoizedProps:null,l=f.children,Af(c,f)?l=null:m!==null&&Af(c,m)&&(i.flags|=32),i.memoizedState!==null&&(c=Tc(t,i,Lb,null,null,s),Sr._currentValue=c),ql(t,i),Ne(t,i,l,s),i.child;case 6:return t===null&&Ut&&((t=s=Zt)&&(s=gT(s,i.pendingProps,En),s!==null?(i.stateNode=s,Oe=i,Zt=null,t=!0):t=!1),t||Ui(i)),null;case 13:return L_(t,i,s);case 4:return ct(i,i.stateNode.containerInfo),l=i.pendingProps,t===null?i.child=va(i,null,l,s):Ne(t,i,l,s),i.child;case 11:return T_(t,i,i.type,i.pendingProps,s);case 7:return Ne(t,i,i.pendingProps,s),i.child;case 8:return Ne(t,i,i.pendingProps.children,s),i.child;case 12:return Ne(t,i,i.pendingProps.children,s),i.child;case 10:return l=i.pendingProps,Ii(i,i.type,l.value),Ne(t,i,l.children,s),i.child;case 9:return c=i.type._context,l=i.pendingProps.children,_a(i),c=xe(c),l=l(c),i.flags|=1,Ne(t,i,l,s),i.child;case 14:return S_(t,i,i.type,i.pendingProps,s);case 15:return A_(t,i,i.type,i.pendingProps,s);case 19:return k_(t,i,s);case 31:return Db(t,i,s);case 22:return O_(t,i,s,i.pendingProps);case 24:return _a(i),l=xe(he),t===null?(c=hc(),c===null&&(c=Yt,f=cc(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=s),c=f),i.memoizedState={parent:l,cache:c},pc(i),Ii(i,he,c)):((t.lanes&s)!==0&&(_c(t,i),ir(i,null,null,s),nr()),c=t.memoizedState,f=i.memoizedState,c.parent!==l?(c={parent:l,cache:l},i.memoizedState=c,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=c),Ii(i,he,l)):(l=f.cache,Ii(i,he,l),l!==c.cache&&oc(i,[he],s,!0))),Ne(t,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function hi(t){t.flags|=4}function Qc(t,i,s,l,c){if((i=(t.mode&32)!==0)&&(i=!1),i){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if(lm())t.flags|=8192;else throw ya=Nl,dc}else t.flags&=-16777217}function I_(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Qm(i))if(lm())t.flags|=8192;else throw ya=Nl,dc}function Hl(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?pd():536870912,t.lanes|=i,hs|=i)}function or(t,i){if(!Ut)switch(t.tailMode){case"hidden":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Wt(t){var i=t.alternate!==null&&t.alternate.child===t.child,s=0,l=0;if(i)for(var c=t.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=l,t.childLanes=s,i}function Pb(t,i,s){var l=i.pendingProps;switch(ac(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(i),null;case 1:return Wt(i),null;case 3:return s=i.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ui(he),rt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(Ja(i)?hi(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,rc())),Wt(i),null;case 26:var c=i.type,f=i.memoizedState;return t===null?(hi(i),f!==null?(Wt(i),I_(i,f)):(Wt(i),Qc(i,c,null,l,s))):f?f!==t.memoizedState?(hi(i),Wt(i),I_(i,f)):(Wt(i),i.flags&=-16777217):(t=t.memoizedProps,t!==l&&hi(i),Wt(i),Qc(i,c,t,l,s)),null;case 27:if(mt(i),s=st.current,c=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==l&&hi(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return Wt(i),null}t=J.current,Ja(i)?pp(i):(t=qm(c,l,s),i.stateNode=t,hi(i))}return Wt(i),null;case 5:if(mt(i),c=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==l&&hi(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return Wt(i),null}if(f=J.current,Ja(i))pp(i);else{var m=su(st.current);switch(f){case 1:f=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:f=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":f=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":f=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":f=m.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}f[Ae]=i,f[De]=l;t:for(m=i.child;m!==null;){if(m.tag===5||m.tag===6)f.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===i)break t;for(;m.sibling===null;){if(m.return===null||m.return===i)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}i.stateNode=f;t:switch(Re(f,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&hi(i)}}return Wt(i),Qc(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,s),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==l&&hi(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(r(166));if(t=st.current,Ja(i)){if(t=i.stateNode,s=i.memoizedProps,l=null,c=Oe,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}t[Ae]=i,t=!!(t.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Lm(t.nodeValue,s)),t||Ui(i,!0)}else t=su(t).createTextNode(l),t[Ae]=i,i.stateNode=t}return Wt(i),null;case 31:if(s=i.memoizedState,t===null||t.memoizedState!==null){if(l=Ja(i),s!==null){if(t===null){if(!l)throw Error(r(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Ae]=i}else da(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Wt(i),t=!1}else s=rc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),t=!0;if(!t)return i.flags&256?(tn(i),i):(tn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Wt(i),null;case 13:if(l=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Ja(i),l!==null&&l.dehydrated!==null){if(t===null){if(!c)throw Error(r(318));if(c=i.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[Ae]=i}else da(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Wt(i),c=!1}else c=rc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return i.flags&256?(tn(i),i):(tn(i),null)}return tn(i),(i.flags&128)!==0?(i.lanes=s,i):(s=l!==null,t=t!==null&&t.memoizedState!==null,s&&(l=i.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==c&&(l.flags|=2048)),s!==t&&s&&(i.child.flags|=8192),Hl(i,i.updateQueue),Wt(i),null);case 4:return rt(),t===null&&vf(i.stateNode.containerInfo),Wt(i),null;case 10:return ui(i.type),Wt(i),null;case 19:if(D(ue),l=i.memoizedState,l===null)return Wt(i),null;if(c=(i.flags&128)!==0,f=l.rendering,f===null)if(c)or(l,!1);else{if(ae!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(f=Ll(t),f!==null){for(i.flags|=128,or(l,!1),t=f.updateQueue,i.updateQueue=t,Hl(i,t),i.subtreeFlags=0,t=s,s=i.child;s!==null;)op(s,t),s=s.sibling;return F(ue,ue.current&1|2),Ut&&ri(i,l.treeForkCount),i.child}t=t.sibling}l.tail!==null&&$t()>Xl&&(i.flags|=128,c=!0,or(l,!1),i.lanes=4194304)}else{if(!c)if(t=Ll(f),t!==null){if(i.flags|=128,c=!0,t=t.updateQueue,i.updateQueue=t,Hl(i,t),or(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Ut)return Wt(i),null}else 2*$t()-l.renderingStartTime>Xl&&s!==536870912&&(i.flags|=128,c=!0,or(l,!1),i.lanes=4194304);l.isBackwards?(f.sibling=i.child,i.child=f):(t=l.last,t!==null?t.sibling=f:i.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=$t(),t.sibling=null,s=ue.current,F(ue,c?s&1|2:s&1),Ut&&ri(i,l.treeForkCount),t):(Wt(i),null);case 22:case 23:return tn(i),vc(),l=i.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(s&536870912)!==0&&(i.flags&128)===0&&(Wt(i),i.subtreeFlags&6&&(i.flags|=8192)):Wt(i),s=i.updateQueue,s!==null&&Hl(i,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048),t!==null&&D(ma),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),ui(he),Wt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function qb(t,i){switch(ac(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return ui(he),rt(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return mt(i),null;case 31:if(i.memoizedState!==null){if(tn(i),i.alternate===null)throw Error(r(340));da()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(tn(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));da()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return D(ue),null;case 4:return rt(),null;case 10:return ui(i.type),null;case 22:case 23:return tn(i),vc(),t!==null&&D(ma),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return ui(he),null;case 25:return null;default:return null}}function z_(t,i){switch(ac(i),i.tag){case 3:ui(he),rt();break;case 26:case 27:case 5:mt(i);break;case 4:rt();break;case 31:i.memoizedState!==null&&tn(i);break;case 13:tn(i);break;case 19:D(ue);break;case 10:ui(i.type);break;case 22:case 23:tn(i),vc(),t!==null&&D(ma);break;case 24:ui(he)}}function cr(t,i){try{var s=i.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var c=l.next;s=c;do{if((s.tag&t)===t){l=void 0;var f=s.create,m=s.inst;l=f(),m.destroy=l}s=s.next}while(s!==c)}}catch(T){Gt(i,i.return,T)}}function Pi(t,i,s){try{var l=i.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var f=c.next;l=f;do{if((l.tag&t)===t){var m=l.inst,T=m.destroy;if(T!==void 0){m.destroy=void 0,c=i;var R=s,$=T;try{$()}catch(Y){Gt(c,R,Y)}}}l=l.next}while(l!==f)}}catch(Y){Gt(i,i.return,Y)}}function B_(t){var i=t.updateQueue;if(i!==null){var s=t.stateNode;try{Np(i,s)}catch(l){Gt(t,t.return,l)}}}function j_(t,i,s){s.props=ba(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(l){Gt(t,i,l)}}function fr(t,i){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof s=="function"?t.refCleanup=s(l):s.current=l}}catch(c){Gt(t,i,c)}}function Fn(t,i){var s=t.ref,l=t.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(c){Gt(t,i,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Gt(t,i,c)}else s.current=null}function D_(t){var i=t.type,s=t.memoizedProps,l=t.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break t;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(c){Gt(t,t.return,c)}}function Zc(t,i,s){try{var l=t.stateNode;cT(l,t.type,s,i),l[De]=i}catch(c){Gt(t,t.return,c)}}function $_(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yi(t.type)||t.tag===4}function Wc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$_(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Jc(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(t),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=ii));else if(l!==4&&(l===27&&Yi(t.type)&&(s=t.stateNode,i=null),t=t.child,t!==null))for(Jc(t,i,s),t=t.sibling;t!==null;)Jc(t,i,s),t=t.sibling}function Fl(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(l!==4&&(l===27&&Yi(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(Fl(t,i,s),t=t.sibling;t!==null;)Fl(t,i,s),t=t.sibling}function P_(t){var i=t.stateNode,s=t.memoizedProps;try{for(var l=t.type,c=i.attributes;c.length;)i.removeAttributeNode(c[0]);Re(i,l,s),i[Ae]=t,i[De]=s}catch(f){Gt(t,t.return,f)}}var di=!1,_e=!1,tf=!1,q_=typeof WeakSet=="function"?WeakSet:Set,Te=null;function Gb(t,i){if(t=t.containerInfo,Tf=hu,t=tp(t),Vo(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else t:{s=(s=t.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{s.nodeType,f.nodeType}catch{s=null;break t}var m=0,T=-1,R=-1,$=0,Y=0,Q=t,q=null;e:for(;;){for(var H;Q!==s||c!==0&&Q.nodeType!==3||(T=m+c),Q!==f||l!==0&&Q.nodeType!==3||(R=m+l),Q.nodeType===3&&(m+=Q.nodeValue.length),(H=Q.firstChild)!==null;)q=Q,Q=H;for(;;){if(Q===t)break e;if(q===s&&++$===c&&(T=m),q===f&&++Y===l&&(R=m),(H=Q.nextSibling)!==null)break;Q=q,q=Q.parentNode}Q=H}s=T===-1||R===-1?null:{start:T,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(Sf={focusedElem:t,selectionRange:s},hu=!1,Te=i;Te!==null;)if(i=Te,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Te=t;else for(;Te!==null;){switch(i=Te,f=i.alternate,t=i.flags,i.tag){case 0:if((t&4)!==0&&(t=i.updateQueue,t=t!==null?t.events:null,t!==null))for(s=0;s<t.length;s++)c=t[s],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,s=i,c=f.memoizedProps,f=f.memoizedState,l=s.stateNode;try{var ut=ba(s.type,c);t=l.getSnapshotBeforeUpdate(ut,f),l.__reactInternalSnapshotBeforeUpdate=t}catch(gt){Gt(s,s.return,gt)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,s=t.nodeType,s===9)xf(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":xf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=i.sibling,t!==null){t.return=i.return,Te=t;break}Te=i.return}}function G_(t,i,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:_i(t,s),l&4&&cr(5,s);break;case 1:if(_i(t,s),l&4)if(t=s.stateNode,i===null)try{t.componentDidMount()}catch(m){Gt(s,s.return,m)}else{var c=ba(s.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(c,i,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Gt(s,s.return,m)}}l&64&&B_(s),l&512&&fr(s,s.return);break;case 3:if(_i(t,s),l&64&&(t=s.updateQueue,t!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{Np(t,i)}catch(m){Gt(s,s.return,m)}}break;case 27:i===null&&l&4&&P_(s);case 26:case 5:_i(t,s),i===null&&l&4&&D_(s),l&512&&fr(s,s.return);break;case 12:_i(t,s);break;case 31:_i(t,s),l&4&&K_(t,s);break;case 13:_i(t,s),l&4&&V_(t,s),l&64&&(t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(s=Wb.bind(null,s),yT(t,s))));break;case 22:if(l=s.memoizedState!==null||di,!l){i=i!==null&&i.memoizedState!==null||_e,c=di;var f=_e;di=l,(_e=i)&&!f?mi(t,s,(s.subtreeFlags&8772)!==0):_i(t,s),di=c,_e=f}break;case 30:break;default:_i(t,s)}}function H_(t){var i=t.alternate;i!==null&&(t.alternate=null,H_(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Co(i)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var te=null,Pe=!1;function pi(t,i,s){for(s=s.child;s!==null;)F_(t,i,s),s=s.sibling}function F_(t,i,s){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(Cn,s)}catch{}switch(s.tag){case 26:_e||Fn(s,i),pi(t,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:_e||Fn(s,i);var l=te,c=Pe;Yi(s.type)&&(te=s.stateNode,Pe=!1),pi(t,i,s),Er(s.stateNode),te=l,Pe=c;break;case 5:_e||Fn(s,i);case 6:if(l=te,c=Pe,te=null,pi(t,i,s),te=l,Pe=c,te!==null)if(Pe)try{(te.nodeType===9?te.body:te.nodeName==="HTML"?te.ownerDocument.body:te).removeChild(s.stateNode)}catch(f){Gt(s,i,f)}else try{te.removeChild(s.stateNode)}catch(f){Gt(s,i,f)}break;case 18:te!==null&&(Pe?(t=te,Bm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,s.stateNode),Es(t)):Bm(te,s.stateNode));break;case 4:l=te,c=Pe,te=s.stateNode.containerInfo,Pe=!0,pi(t,i,s),te=l,Pe=c;break;case 0:case 11:case 14:case 15:Pi(2,s,i),_e||Pi(4,s,i),pi(t,i,s);break;case 1:_e||(Fn(s,i),l=s.stateNode,typeof l.componentWillUnmount=="function"&&j_(s,i,l)),pi(t,i,s);break;case 21:pi(t,i,s);break;case 22:_e=(l=_e)||s.memoizedState!==null,pi(t,i,s),_e=l;break;default:pi(t,i,s)}}function K_(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Es(t)}catch(s){Gt(i,i.return,s)}}}function V_(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Es(t)}catch(s){Gt(i,i.return,s)}}function Hb(t){switch(t.tag){case 31:case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new q_),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new q_),i;default:throw Error(r(435,t.tag))}}function Kl(t,i){var s=Hb(t);i.forEach(function(l){if(!s.has(l)){s.add(l);var c=Jb.bind(null,t,l);l.then(c,c)}})}function qe(t,i){var s=i.deletions;if(s!==null)for(var l=0;l<s.length;l++){var c=s[l],f=t,m=i,T=m;t:for(;T!==null;){switch(T.tag){case 27:if(Yi(T.type)){te=T.stateNode,Pe=!1;break t}break;case 5:te=T.stateNode,Pe=!1;break t;case 3:case 4:te=T.stateNode.containerInfo,Pe=!0;break t}T=T.return}if(te===null)throw Error(r(160));F_(f,m,c),te=null,Pe=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Y_(i,t),i=i.sibling}var Mn=null;function Y_(t,i){var s=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:qe(i,t),Ge(t),l&4&&(Pi(3,t,t.return),cr(3,t),Pi(5,t,t.return));break;case 1:qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),l&64&&di&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var c=Mn;if(qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),l&4){var f=s!==null?s.memoizedState:null;if(l=t.memoizedState,s===null)if(l===null)if(t.stateNode===null){t:{l=t.type,s=t.memoizedProps,c=c.ownerDocument||c;e:switch(l){case"title":f=c.getElementsByTagName("title")[0],(!f||f[js]||f[Ae]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(l),c.head.insertBefore(f,c.querySelector("head > title"))),Re(f,l,s),f[Ae]=t,be(f),l=f;break t;case"link":var m=Ym("link","href",c).get(l+(s.href||""));if(m){for(var T=0;T<m.length;T++)if(f=m[T],f.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&f.getAttribute("rel")===(s.rel==null?null:s.rel)&&f.getAttribute("title")===(s.title==null?null:s.title)&&f.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){m.splice(T,1);break e}}f=c.createElement(l),Re(f,l,s),c.head.appendChild(f);break;case"meta":if(m=Ym("meta","content",c).get(l+(s.content||""))){for(T=0;T<m.length;T++)if(f=m[T],f.getAttribute("content")===(s.content==null?null:""+s.content)&&f.getAttribute("name")===(s.name==null?null:s.name)&&f.getAttribute("property")===(s.property==null?null:s.property)&&f.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&f.getAttribute("charset")===(s.charSet==null?null:s.charSet)){m.splice(T,1);break e}}f=c.createElement(l),Re(f,l,s),c.head.appendChild(f);break;default:throw Error(r(468,l))}f[Ae]=t,be(f),l=f}t.stateNode=l}else Xm(c,t.type,t.stateNode);else t.stateNode=Vm(c,l,t.memoizedProps);else f!==l?(f===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):f.count--,l===null?Xm(c,t.type,t.stateNode):Vm(c,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Zc(t,t.memoizedProps,s.memoizedProps)}break;case 27:qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),s!==null&&l&4&&Zc(t,t.memoizedProps,s.memoizedProps);break;case 5:if(qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),t.flags&32){c=t.stateNode;try{Ga(c,"")}catch(ut){Gt(t,t.return,ut)}}l&4&&t.stateNode!=null&&(c=t.memoizedProps,Zc(t,c,s!==null?s.memoizedProps:c)),l&1024&&(tf=!0);break;case 6:if(qe(i,t),Ge(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,s=t.stateNode;try{s.nodeValue=l}catch(ut){Gt(t,t.return,ut)}}break;case 3:if(uu=null,c=Mn,Mn=ru(i.containerInfo),qe(i,t),Mn=c,Ge(t),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Es(i.containerInfo)}catch(ut){Gt(t,t.return,ut)}tf&&(tf=!1,X_(t));break;case 4:l=Mn,Mn=ru(t.stateNode.containerInfo),qe(i,t),Ge(t),Mn=l;break;case 12:qe(i,t),Ge(t);break;case 31:qe(i,t),Ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Kl(t,l)));break;case 13:qe(i,t),Ge(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Yl=$t()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Kl(t,l)));break;case 22:c=t.memoizedState!==null;var R=s!==null&&s.memoizedState!==null,$=di,Y=_e;if(di=$||c,_e=Y||R,qe(i,t),_e=Y,di=$,Ge(t),l&8192)t:for(i=t.stateNode,i._visibility=c?i._visibility&-2:i._visibility|1,c&&(s===null||R||di||_e||Ta(t)),s=null,i=t;;){if(i.tag===5||i.tag===26){if(s===null){R=s=i;try{if(f=R.stateNode,c)m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{T=R.stateNode;var Q=R.memoizedProps.style,q=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;T.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(ut){Gt(R,R.return,ut)}}}else if(i.tag===6){if(s===null){R=i;try{R.stateNode.nodeValue=c?"":R.memoizedProps}catch(ut){Gt(R,R.return,ut)}}}else if(i.tag===18){if(s===null){R=i;try{var H=R.stateNode;c?jm(H,!0):jm(R.stateNode,!1)}catch(ut){Gt(R,R.return,ut)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break t;for(;i.sibling===null;){if(i.return===null||i.return===t)break t;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=t.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Kl(t,s))));break;case 19:qe(i,t),Ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Kl(t,l)));break;case 30:break;case 21:break;default:qe(i,t),Ge(t)}}function Ge(t){var i=t.flags;if(i&2){try{for(var s,l=t.return;l!==null;){if($_(l)){s=l;break}l=l.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var c=s.stateNode,f=Wc(t);Fl(t,f,c);break;case 5:var m=s.stateNode;s.flags&32&&(Ga(m,""),s.flags&=-33);var T=Wc(t);Fl(t,T,m);break;case 3:case 4:var R=s.stateNode.containerInfo,$=Wc(t);Jc(t,$,R);break;default:throw Error(r(161))}}catch(Y){Gt(t,t.return,Y)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function X_(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;X_(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function _i(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)G_(t,i.alternate,i),i=i.sibling}function Ta(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:Pi(4,i,i.return),Ta(i);break;case 1:Fn(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&j_(i,i.return,s),Ta(i);break;case 27:Er(i.stateNode);case 26:case 5:Fn(i,i.return),Ta(i);break;case 22:i.memoizedState===null&&Ta(i);break;case 30:Ta(i);break;default:Ta(i)}t=t.sibling}}function mi(t,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,c=t,f=i,m=f.flags;switch(f.tag){case 0:case 11:case 15:mi(c,f,s),cr(4,f);break;case 1:if(mi(c,f,s),l=f,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch($){Gt(l,l.return,$)}if(l=f,c=l.updateQueue,c!==null){var T=l.stateNode;try{var R=c.shared.hiddenCallbacks;if(R!==null)for(c.shared.hiddenCallbacks=null,c=0;c<R.length;c++)xp(R[c],T)}catch($){Gt(l,l.return,$)}}s&&m&64&&B_(f),fr(f,f.return);break;case 27:P_(f);case 26:case 5:mi(c,f,s),s&&l===null&&m&4&&D_(f),fr(f,f.return);break;case 12:mi(c,f,s);break;case 31:mi(c,f,s),s&&m&4&&K_(c,f);break;case 13:mi(c,f,s),s&&m&4&&V_(c,f);break;case 22:f.memoizedState===null&&mi(c,f,s),fr(f,f.return);break;case 30:break;default:mi(c,f,s)}i=i.sibling}}function ef(t,i){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&Zs(s))}function nf(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Zs(t))}function kn(t,i,s,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Q_(t,i,s,l),i=i.sibling}function Q_(t,i,s,l){var c=i.flags;switch(i.tag){case 0:case 11:case 15:kn(t,i,s,l),c&2048&&cr(9,i);break;case 1:kn(t,i,s,l);break;case 3:kn(t,i,s,l),c&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Zs(t)));break;case 12:if(c&2048){kn(t,i,s,l),t=i.stateNode;try{var f=i.memoizedProps,m=f.id,T=f.onPostCommit;typeof T=="function"&&T(m,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Gt(i,i.return,R)}}else kn(t,i,s,l);break;case 31:kn(t,i,s,l);break;case 13:kn(t,i,s,l);break;case 23:break;case 22:f=i.stateNode,m=i.alternate,i.memoizedState!==null?f._visibility&2?kn(t,i,s,l):hr(t,i):f._visibility&2?kn(t,i,s,l):(f._visibility|=2,os(t,i,s,l,(i.subtreeFlags&10256)!==0||!1)),c&2048&&ef(m,i);break;case 24:kn(t,i,s,l),c&2048&&nf(i.alternate,i);break;default:kn(t,i,s,l)}}function os(t,i,s,l,c){for(c=c&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var f=t,m=i,T=s,R=l,$=m.flags;switch(m.tag){case 0:case 11:case 15:os(f,m,T,R,c),cr(8,m);break;case 23:break;case 22:var Y=m.stateNode;m.memoizedState!==null?Y._visibility&2?os(f,m,T,R,c):hr(f,m):(Y._visibility|=2,os(f,m,T,R,c)),c&&$&2048&&ef(m.alternate,m);break;case 24:os(f,m,T,R,c),c&&$&2048&&nf(m.alternate,m);break;default:os(f,m,T,R,c)}i=i.sibling}}function hr(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=t,l=i,c=l.flags;switch(l.tag){case 22:hr(s,l),c&2048&&ef(l.alternate,l);break;case 24:hr(s,l),c&2048&&nf(l.alternate,l);break;default:hr(s,l)}i=i.sibling}}var dr=8192;function cs(t,i,s){if(t.subtreeFlags&dr)for(t=t.child;t!==null;)Z_(t,i,s),t=t.sibling}function Z_(t,i,s){switch(t.tag){case 26:cs(t,i,s),t.flags&dr&&t.memoizedState!==null&&CT(s,Mn,t.memoizedState,t.memoizedProps);break;case 5:cs(t,i,s);break;case 3:case 4:var l=Mn;Mn=ru(t.stateNode.containerInfo),cs(t,i,s),Mn=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=dr,dr=16777216,cs(t,i,s),dr=l):cs(t,i,s));break;default:cs(t,i,s)}}function W_(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function pr(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Te=l,tm(l,t)}W_(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)J_(t),t=t.sibling}function J_(t){switch(t.tag){case 0:case 11:case 15:pr(t),t.flags&2048&&Pi(9,t,t.return);break;case 3:pr(t);break;case 12:pr(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&2&&(t.return===null||t.return.tag!==13)?(i._visibility&=-3,Vl(t)):pr(t);break;default:pr(t)}}function Vl(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Te=l,tm(l,t)}W_(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:Pi(8,i,i.return),Vl(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,Vl(i));break;default:Vl(i)}t=t.sibling}}function tm(t,i){for(;Te!==null;){var s=Te;switch(s.tag){case 0:case 11:case 15:Pi(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Zs(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Te=l;else t:for(s=t;Te!==null;){l=Te;var c=l.sibling,f=l.return;if(H_(l),l===s){Te=null;break t}if(c!==null){c.return=f,Te=c;break t}Te=f}}}var Fb={getCacheForType:function(t){var i=xe(he),s=i.data.get(t);return s===void 0&&(s=t(),i.data.set(t,s)),s},cacheSignal:function(){return xe(he).controller.signal}},Kb=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Yt=null,Rt=null,Lt=0,qt=0,en=null,qi=!1,fs=!1,af=!1,gi=0,ae=0,Gi=0,Sa=0,sf=0,nn=0,hs=0,_r=null,He=null,rf=!1,Yl=0,em=0,Xl=1/0,Ql=null,Hi=null,me=0,Fi=null,ds=null,yi=0,lf=0,uf=null,nm=null,mr=0,of=null;function an(){return(Dt&2)!==0&&Lt!==0?Lt&-Lt:k.T!==null?_f():yd()}function im(){if(nn===0)if((Lt&536870912)===0||Ut){var t=al;al<<=1,(al&3932160)===0&&(al=262144),nn=t}else nn=536870912;return t=Je.current,t!==null&&(t.flags|=32),nn}function Fe(t,i,s){(t===Yt&&(qt===2||qt===9)||t.cancelPendingCommit!==null)&&(ps(t,0),Ki(t,Lt,nn,!1)),Bs(t,s),((Dt&2)===0||t!==Yt)&&(t===Yt&&((Dt&2)===0&&(Sa|=s),ae===4&&Ki(t,Lt,nn,!1)),Kn(t))}function am(t,i,s){if((Dt&6)!==0)throw Error(r(327));var l=!s&&(i&127)===0&&(i&t.expiredLanes)===0||zs(t,i),c=l?Xb(t,i):ff(t,i,!0),f=l;do{if(c===0){fs&&!l&&Ki(t,i,0,!1);break}else{if(s=t.current.alternate,f&&!Vb(s)){c=ff(t,i,!1),f=!1;continue}if(c===2){if(f=i,t.errorRecoveryDisabledLanes&f)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){i=m;t:{var T=t;c=_r;var R=T.current.memoizedState.isDehydrated;if(R&&(ps(T,m).flags|=256),m=ff(T,m,!1),m!==2){if(af&&!R){T.errorRecoveryDisabledLanes|=f,Sa|=f,c=4;break t}f=He,He=c,f!==null&&(He===null?He=f:He.push.apply(He,f))}c=m}if(f=!1,c!==2)continue}}if(c===1){ps(t,0),Ki(t,i,0,!0);break}t:{switch(l=t,f=c,f){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Ki(l,i,nn,!qi);break t;case 2:He=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(c=Yl+300-$t(),10<c)){if(Ki(l,i,nn,!qi),rl(l,0,!0)!==0)break t;yi=i,l.timeoutHandle=Im(sm.bind(null,l,s,He,Ql,rf,i,nn,Sa,hs,qi,f,"Throttled",-0,0),c);break t}sm(l,s,He,Ql,rf,i,nn,Sa,hs,qi,f,null,-0,0)}}break}while(!0);Kn(t)}function sm(t,i,s,l,c,f,m,T,R,$,Y,Q,q,H){if(t.timeoutHandle=-1,Q=i.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ii},Z_(i,f,Q);var ut=(f&62914560)===f?Yl-$t():(f&4194048)===f?em-$t():0;if(ut=LT(Q,ut),ut!==null){yi=f,t.cancelPendingCommit=ut(dm.bind(null,t,i,f,s,l,c,m,T,R,Y,Q,null,q,H)),Ki(t,f,m,!$);return}}dm(t,i,f,s,l,c,m,T,R)}function Vb(t){for(var i=t;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var c=s[l],f=c.getSnapshot;c=c.value;try{if(!Ze(f(),c))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ki(t,i,s,l){i&=~sf,i&=~Sa,t.suspendedLanes|=i,t.pingedLanes&=~i,l&&(t.warmLanes|=i),l=t.expirationTimes;for(var c=i;0<c;){var f=31-Qe(c),m=1<<f;l[f]=-1,c&=~m}s!==0&&_d(t,s,i)}function Zl(){return(Dt&6)===0?(gr(0),!1):!0}function cf(){if(Rt!==null){if(qt===0)var t=Rt.return;else t=Rt,li=pa=null,Oc(t),as=null,Js=0,t=Rt;for(;t!==null;)z_(t.alternate,t),t=t.return;Rt=null}}function ps(t,i){var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,dT(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),yi=0,cf(),Yt=t,Rt=s=si(t.current,null),Lt=i,qt=0,en=null,qi=!1,fs=zs(t,i),af=!1,hs=nn=sf=Sa=Gi=ae=0,He=_r=null,rf=!1,(i&8)!==0&&(i|=i&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=i;0<l;){var c=31-Qe(l),f=1<<c;i|=t[c],l&=~f}return gi=i,yl(),s}function rm(t,i){St=null,k.H=lr,i===is||i===xl?(i=Tp(),qt=3):i===dc?(i=Tp(),qt=4):qt=i===Pc?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,en=i,Rt===null&&(ae=1,$l(t,gn(i,t.current)))}function lm(){var t=Je.current;return t===null?!0:(Lt&4194048)===Lt?bn===null:(Lt&62914560)===Lt||(Lt&536870912)!==0?t===bn:!1}function um(){var t=k.H;return k.H=lr,t===null?lr:t}function om(){var t=k.A;return k.A=Fb,t}function Wl(){ae=4,qi||(Lt&4194048)!==Lt&&Je.current!==null||(fs=!0),(Gi&134217727)===0&&(Sa&134217727)===0||Yt===null||Ki(Yt,Lt,nn,!1)}function ff(t,i,s){var l=Dt;Dt|=2;var c=um(),f=om();(Yt!==t||Lt!==i)&&(Ql=null,ps(t,i)),i=!1;var m=ae;t:do try{if(qt!==0&&Rt!==null){var T=Rt,R=en;switch(qt){case 8:cf(),m=6;break t;case 3:case 2:case 9:case 6:Je.current===null&&(i=!0);var $=qt;if(qt=0,en=null,_s(t,T,R,$),s&&fs){m=0;break t}break;default:$=qt,qt=0,en=null,_s(t,T,R,$)}}Yb(),m=ae;break}catch(Y){rm(t,Y)}while(!0);return i&&t.shellSuspendCounter++,li=pa=null,Dt=l,k.H=c,k.A=f,Rt===null&&(Yt=null,Lt=0,yl()),m}function Yb(){for(;Rt!==null;)cm(Rt)}function Xb(t,i){var s=Dt;Dt|=2;var l=um(),c=om();Yt!==t||Lt!==i?(Ql=null,Xl=$t()+500,ps(t,i)):fs=zs(t,i);t:do try{if(qt!==0&&Rt!==null){i=Rt;var f=en;e:switch(qt){case 1:qt=0,en=null,_s(t,i,f,1);break;case 2:case 9:if(Ep(f)){qt=0,en=null,fm(i);break}i=function(){qt!==2&&qt!==9||Yt!==t||(qt=7),Kn(t)},f.then(i,i);break t;case 3:qt=7;break t;case 4:qt=5;break t;case 7:Ep(f)?(qt=0,en=null,fm(i)):(qt=0,en=null,_s(t,i,f,7));break;case 5:var m=null;switch(Rt.tag){case 26:m=Rt.memoizedState;case 5:case 27:var T=Rt;if(m?Qm(m):T.stateNode.complete){qt=0,en=null;var R=T.sibling;if(R!==null)Rt=R;else{var $=T.return;$!==null?(Rt=$,Jl($)):Rt=null}break e}}qt=0,en=null,_s(t,i,f,5);break;case 6:qt=0,en=null,_s(t,i,f,6);break;case 8:cf(),ae=6;break t;default:throw Error(r(462))}}Qb();break}catch(Y){rm(t,Y)}while(!0);return li=pa=null,k.H=l,k.A=c,Dt=s,Rt!==null?0:(Yt=null,Lt=0,yl(),ae)}function Qb(){for(;Rt!==null&&!fn();)cm(Rt)}function cm(t){var i=U_(t.alternate,t,gi);t.memoizedProps=t.pendingProps,i===null?Jl(t):Rt=i}function fm(t){var i=t,s=i.alternate;switch(i.tag){case 15:case 0:i=R_(s,i,i.pendingProps,i.type,void 0,Lt);break;case 11:i=R_(s,i,i.pendingProps,i.type.render,i.ref,Lt);break;case 5:Oc(i);default:z_(s,i),i=Rt=op(i,gi),i=U_(s,i,gi)}t.memoizedProps=t.pendingProps,i===null?Jl(t):Rt=i}function _s(t,i,s,l){li=pa=null,Oc(i),as=null,Js=0;var c=i.return;try{if(jb(t,c,i,s,Lt)){ae=1,$l(t,gn(s,t.current)),Rt=null;return}}catch(f){if(c!==null)throw Rt=c,f;ae=1,$l(t,gn(s,t.current)),Rt=null;return}i.flags&32768?(Ut||l===1?t=!0:fs||(Lt&536870912)!==0?t=!1:(qi=t=!0,(l===2||l===9||l===3||l===6)&&(l=Je.current,l!==null&&l.tag===13&&(l.flags|=16384))),hm(i,t)):Jl(i)}function Jl(t){var i=t;do{if((i.flags&32768)!==0){hm(i,qi);return}t=i.return;var s=Pb(i.alternate,i,gi);if(s!==null){Rt=s;return}if(i=i.sibling,i!==null){Rt=i;return}Rt=i=t}while(i!==null);ae===0&&(ae=5)}function hm(t,i){do{var s=qb(t.alternate,t);if(s!==null){s.flags&=32767,Rt=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(t=t.sibling,t!==null)){Rt=t;return}Rt=t=s}while(t!==null);ae=6,Rt=null}function dm(t,i,s,l,c,f,m,T,R){t.cancelPendingCommit=null;do tu();while(me!==0);if((Dt&6)!==0)throw Error(r(327));if(i!==null){if(i===t.current)throw Error(r(177));if(f=i.lanes|i.childLanes,f|=Wo,wE(t,s,f,m,T,R),t===Yt&&(Rt=Yt=null,Lt=0),ds=i,Fi=t,yi=s,lf=f,uf=c,nm=l,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,tT(je,function(){return ym(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,c=K.p,K.p=2,m=Dt,Dt|=4;try{Gb(t,i,s)}finally{Dt=m,K.p=c,k.T=l}}me=1,pm(),_m(),mm()}}function pm(){if(me===1){me=0;var t=Fi,i=ds,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=k.T,k.T=null;var l=K.p;K.p=2;var c=Dt;Dt|=4;try{Y_(i,t);var f=Sf,m=tp(t.containerInfo),T=f.focusedElem,R=f.selectionRange;if(m!==T&&T&&T.ownerDocument&&Jd(T.ownerDocument.documentElement,T)){if(R!==null&&Vo(T)){var $=R.start,Y=R.end;if(Y===void 0&&(Y=$),"selectionStart"in T)T.selectionStart=$,T.selectionEnd=Math.min(Y,T.value.length);else{var Q=T.ownerDocument||document,q=Q&&Q.defaultView||window;if(q.getSelection){var H=q.getSelection(),ut=T.textContent.length,gt=Math.min(R.start,ut),Vt=R.end===void 0?gt:Math.min(R.end,ut);!H.extend&&gt>Vt&&(m=Vt,Vt=gt,gt=m);var U=Wd(T,gt),C=Wd(T,Vt);if(U&&C&&(H.rangeCount!==1||H.anchorNode!==U.node||H.anchorOffset!==U.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var j=Q.createRange();j.setStart(U.node,U.offset),H.removeAllRanges(),gt>Vt?(H.addRange(j),H.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),H.addRange(j))}}}}for(Q=[],H=T;H=H.parentNode;)H.nodeType===1&&Q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<Q.length;T++){var X=Q[T];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}hu=!!Tf,Sf=Tf=null}finally{Dt=c,K.p=l,k.T=s}}t.current=i,me=2}}function _m(){if(me===2){me=0;var t=Fi,i=ds,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=k.T,k.T=null;var l=K.p;K.p=2;var c=Dt;Dt|=4;try{G_(t,i.alternate,i)}finally{Dt=c,K.p=l,k.T=s}}me=3}}function mm(){if(me===4||me===3){me=0,sa();var t=Fi,i=ds,s=yi,l=nm;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?me=5:(me=0,ds=Fi=null,gm(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(Hi=null),Ro(s),i=i.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(Cn,i,void 0,(i.current.flags&128)===128)}catch{}if(l!==null){i=k.T,c=K.p,K.p=2,k.T=null;try{for(var f=t.onRecoverableError,m=0;m<l.length;m++){var T=l[m];f(T.value,{componentStack:T.stack})}}finally{k.T=i,K.p=c}}(yi&3)!==0&&tu(),Kn(t),c=t.pendingLanes,(s&261930)!==0&&(c&42)!==0?t===of?mr++:(mr=0,of=t):mr=0,gr(0)}}function gm(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,Zs(i)))}function tu(){return pm(),_m(),mm(),ym()}function ym(){if(me!==5)return!1;var t=Fi,i=lf;lf=0;var s=Ro(yi),l=k.T,c=K.p;try{K.p=32>s?32:s,k.T=null,s=uf,uf=null;var f=Fi,m=yi;if(me=0,ds=Fi=null,yi=0,(Dt&6)!==0)throw Error(r(331));var T=Dt;if(Dt|=4,J_(f.current),Q_(f,f.current,m,s),Dt=T,gr(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(Cn,f)}catch{}return!0}finally{K.p=c,k.T=l,gm(t,i)}}function vm(t,i,s){i=gn(s,i),i=$c(t.stateNode,i,2),t=ji(t,i,2),t!==null&&(Bs(t,2),Kn(t))}function Gt(t,i,s){if(t.tag===3)vm(t,t,s);else for(;i!==null;){if(i.tag===3){vm(i,t,s);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Hi===null||!Hi.has(l))){t=gn(s,t),s=E_(2),l=ji(i,s,2),l!==null&&(b_(s,l,i,t),Bs(l,2),Kn(l));break}}i=i.return}}function hf(t,i,s){var l=t.pingCache;if(l===null){l=t.pingCache=new Kb;var c=new Set;l.set(i,c)}else c=l.get(i),c===void 0&&(c=new Set,l.set(i,c));c.has(s)||(af=!0,c.add(s),t=Zb.bind(null,t,i,s),i.then(t,t))}function Zb(t,i,s){var l=t.pingCache;l!==null&&l.delete(i),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,Yt===t&&(Lt&s)===s&&(ae===4||ae===3&&(Lt&62914560)===Lt&&300>$t()-Yl?(Dt&2)===0&&ps(t,0):sf|=s,hs===Lt&&(hs=0)),Kn(t)}function Em(t,i){i===0&&(i=pd()),t=fa(t,i),t!==null&&(Bs(t,i),Kn(t))}function Wb(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),Em(t,s)}function Jb(t,i){var s=0;switch(t.tag){case 31:case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(s=c.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(i),Em(t,s)}function tT(t,i){return ee(t,i)}var eu=null,ms=null,df=!1,nu=!1,pf=!1,Vi=0;function Kn(t){t!==ms&&t.next===null&&(ms===null?eu=ms=t:ms=ms.next=t),nu=!0,df||(df=!0,nT())}function gr(t,i){if(!pf&&nu){pf=!0;do for(var s=!1,l=eu;l!==null;){if(t!==0){var c=l.pendingLanes;if(c===0)var f=0;else{var m=l.suspendedLanes,T=l.pingedLanes;f=(1<<31-Qe(42|t)+1)-1,f&=c&~(m&~T),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(s=!0,Am(l,f))}else f=Lt,f=rl(l,l===Yt?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||zs(l,f)||(s=!0,Am(l,f));l=l.next}while(s);pf=!1}}function eT(){bm()}function bm(){nu=df=!1;var t=0;Vi!==0&&hT()&&(t=Vi);for(var i=$t(),s=null,l=eu;l!==null;){var c=l.next,f=Tm(l,i);f===0?(l.next=null,s===null?eu=c:s.next=c,c===null&&(ms=s)):(s=l,(t!==0||(f&3)!==0)&&(nu=!0)),l=c}me!==0&&me!==5||gr(t),Vi!==0&&(Vi=0)}function Tm(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var m=31-Qe(f),T=1<<m,R=c[m];R===-1?((T&s)===0||(T&l)!==0)&&(c[m]=RE(T,i)):R<=i&&(t.expiredLanes|=T),f&=~T}if(i=Yt,s=Lt,s=rl(t,t===i?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,s===0||t===i&&(qt===2||qt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&qn(l),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||zs(t,s)){if(i=s&-s,i===t.callbackPriority)return i;switch(l!==null&&qn(l),Ro(s)){case 2:case 8:s=Se;break;case 32:s=je;break;case 268435456:s=Is;break;default:s=je}return l=Sm.bind(null,t),s=ee(s,l),t.callbackPriority=i,t.callbackNode=s,i}return l!==null&&l!==null&&qn(l),t.callbackPriority=2,t.callbackNode=null,2}function Sm(t,i){if(me!==0&&me!==5)return t.callbackNode=null,t.callbackPriority=0,null;var s=t.callbackNode;if(tu()&&t.callbackNode!==s)return null;var l=Lt;return l=rl(t,t===Yt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(am(t,l,i),Tm(t,$t()),t.callbackNode!=null&&t.callbackNode===s?Sm.bind(null,t):null)}function Am(t,i){if(tu())return null;am(t,i,!0)}function nT(){pT(function(){(Dt&6)!==0?ee(le,eT):bm()})}function _f(){if(Vi===0){var t=es;t===0&&(t=il,il<<=1,(il&261888)===0&&(il=256)),Vi=t}return Vi}function Om(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:cl(""+t)}function xm(t,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,t.id&&s.setAttribute("form",t.id),i.parentNode.insertBefore(s,i),t=new FormData(t),s.parentNode.removeChild(s),t}function iT(t,i,s,l,c){if(i==="submit"&&s&&s.stateNode===c){var f=Om((c[De]||null).action),m=l.submitter;m&&(i=(i=m[De]||null)?Om(i.formAction):m.getAttribute("formAction"),i!==null&&(f=i,m=null));var T=new pl("action","action",null,l,c);t.push({event:T,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Vi!==0){var R=m?xm(c,m):new FormData(c);Uc(s,{pending:!0,data:R,method:c.method,action:f},null,R)}}else typeof f=="function"&&(T.preventDefault(),R=m?xm(c,m):new FormData(c),Uc(s,{pending:!0,data:R,method:c.method,action:f},f,R))},currentTarget:c}]})}}for(var mf=0;mf<Zo.length;mf++){var gf=Zo[mf],aT=gf.toLowerCase(),sT=gf[0].toUpperCase()+gf.slice(1);Ln(aT,"on"+sT)}Ln(ip,"onAnimationEnd"),Ln(ap,"onAnimationIteration"),Ln(sp,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(bb,"onTransitionRun"),Ln(Tb,"onTransitionStart"),Ln(Sb,"onTransitionCancel"),Ln(rp,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yr="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(" "),rT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yr));function Nm(t,i){i=(i&4)!==0;for(var s=0;s<t.length;s++){var l=t[s],c=l.event;l=l.listeners;t:{var f=void 0;if(i)for(var m=l.length-1;0<=m;m--){var T=l[m],R=T.instance,$=T.currentTarget;if(T=T.listener,R!==f&&c.isPropagationStopped())break t;f=T,c.currentTarget=$;try{f(c)}catch(Y){gl(Y)}c.currentTarget=null,f=R}else for(m=0;m<l.length;m++){if(T=l[m],R=T.instance,$=T.currentTarget,T=T.listener,R!==f&&c.isPropagationStopped())break t;f=T,c.currentTarget=$;try{f(c)}catch(Y){gl(Y)}c.currentTarget=null,f=R}}}}function wt(t,i){var s=i[wo];s===void 0&&(s=i[wo]=new Set);var l=t+"__bubble";s.has(l)||(Rm(i,t,2,!1),s.add(l))}function yf(t,i,s){var l=0;i&&(l|=4),Rm(s,t,l,i)}var iu="_reactListening"+Math.random().toString(36).slice(2);function vf(t){if(!t[iu]){t[iu]=!0,bd.forEach(function(s){s!=="selectionchange"&&(rT.has(s)||yf(s,!1,t),yf(s,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[iu]||(i[iu]=!0,yf("selectionchange",!1,i))}}function Rm(t,i,s,l){switch(ig(i)){case 2:var c=UT;break;case 8:c=IT;break;default:c=Uf}s=c.bind(null,i,s,t),c=void 0,!jo||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(c=!0),l?c!==void 0?t.addEventListener(i,s,{capture:!0,passive:c}):t.addEventListener(i,s,!0):c!==void 0?t.addEventListener(i,s,{passive:c}):t.addEventListener(i,s,!1)}function Ef(t,i,s,l,c){var f=l;if((i&1)===0&&(i&2)===0&&l!==null)t:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var T=l.stateNode.containerInfo;if(T===c)break;if(m===4)for(m=l.return;m!==null;){var R=m.tag;if((R===3||R===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;T!==null;){if(m=ja(T),m===null)return;if(R=m.tag,R===5||R===6||R===26||R===27){l=f=m;continue t}T=T.parentNode}}l=l.return}kd(function(){var $=f,Y=zo(s),Q=[];t:{var q=lp.get(t);if(q!==void 0){var H=pl,ut=t;switch(t){case"keypress":if(hl(s)===0)break t;case"keydown":case"keyup":H=JE;break;case"focusin":ut="focus",H=qo;break;case"focusout":ut="blur",H=qo;break;case"beforeblur":case"afterblur":H=qo;break;case"click":if(s.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=PE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=nb;break;case ip:case ap:case sp:H=HE;break;case rp:H=ab;break;case"scroll":case"scrollend":H=DE;break;case"wheel":H=rb;break;case"copy":case"cut":case"paste":H=KE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=jd;break;case"toggle":case"beforetoggle":H=ub}var gt=(i&4)!==0,Vt=!gt&&(t==="scroll"||t==="scrollend"),U=gt?q!==null?q+"Capture":null:q;gt=[];for(var C=$,j;C!==null;){var X=C;if(j=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||j===null||U===null||(X=$s(C,U),X!=null&&gt.push(vr(C,X,j))),Vt)break;C=C.return}0<gt.length&&(q=new H(q,ut,null,s,Y),Q.push({event:q,listeners:gt}))}}if((i&7)===0){t:{if(q=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",q&&s!==Io&&(ut=s.relatedTarget||s.fromElement)&&(ja(ut)||ut[Ba]))break t;if((H||q)&&(q=Y.window===Y?Y:(q=Y.ownerDocument)?q.defaultView||q.parentWindow:window,H?(ut=s.relatedTarget||s.toElement,H=$,ut=ut?ja(ut):null,ut!==null&&(Vt=o(ut),gt=ut.tag,ut!==Vt||gt!==5&&gt!==27&&gt!==6)&&(ut=null)):(H=null,ut=$),H!==ut)){if(gt=zd,X="onMouseLeave",U="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(gt=jd,X="onPointerLeave",U="onPointerEnter",C="pointer"),Vt=H==null?q:Ds(H),j=ut==null?q:Ds(ut),q=new gt(X,C+"leave",H,s,Y),q.target=Vt,q.relatedTarget=j,X=null,ja(Y)===$&&(gt=new gt(U,C+"enter",ut,s,Y),gt.target=j,gt.relatedTarget=Vt,X=gt),Vt=X,H&&ut)e:{for(gt=lT,U=H,C=ut,j=0,X=U;X;X=gt(X))j++;X=0;for(var dt=C;dt;dt=gt(dt))X++;for(;0<j-X;)U=gt(U),j--;for(;0<X-j;)C=gt(C),X--;for(;j--;){if(U===C||C!==null&&U===C.alternate){gt=U;break e}U=gt(U),C=gt(C)}gt=null}else gt=null;H!==null&&wm(Q,q,H,gt,!1),ut!==null&&Vt!==null&&wm(Q,Vt,ut,gt,!0)}}t:{if(q=$?Ds($):window,H=q.nodeName&&q.nodeName.toLowerCase(),H==="select"||H==="input"&&q.type==="file")var Bt=Kd;else if(Hd(q))if(Vd)Bt=yb;else{Bt=mb;var ot=_b}else H=q.nodeName,!H||H.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?$&&Uo($.elementType)&&(Bt=Kd):Bt=gb;if(Bt&&(Bt=Bt(t,$))){Fd(Q,Bt,s,Y);break t}ot&&ot(t,q,$),t==="focusout"&&$&&q.type==="number"&&$.memoizedProps.value!=null&&ko(q,"number",q.value)}switch(ot=$?Ds($):window,t){case"focusin":(Hd(ot)||ot.contentEditable==="true")&&(Va=ot,Yo=$,Ys=null);break;case"focusout":Ys=Yo=Va=null;break;case"mousedown":Xo=!0;break;case"contextmenu":case"mouseup":case"dragend":Xo=!1,ep(Q,s,Y);break;case"selectionchange":if(Eb)break;case"keydown":case"keyup":ep(Q,s,Y)}var Ot;if(Ho)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else Ka?qd(t,s)&&(Mt="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Mt="onCompositionStart");Mt&&(Dd&&s.locale!=="ko"&&(Ka||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&Ka&&(Ot=Ud()):(Li=Y,Do="value"in Li?Li.value:Li.textContent,Ka=!0)),ot=au($,Mt),0<ot.length&&(Mt=new Bd(Mt,t,null,s,Y),Q.push({event:Mt,listeners:ot}),Ot?Mt.data=Ot:(Ot=Gd(s),Ot!==null&&(Mt.data=Ot)))),(Ot=cb?fb(t,s):hb(t,s))&&(Mt=au($,"onBeforeInput"),0<Mt.length&&(ot=new Bd("onBeforeInput","beforeinput",null,s,Y),Q.push({event:ot,listeners:Mt}),ot.data=Ot)),iT(Q,t,$,s,Y)}Nm(Q,i)})}function vr(t,i,s){return{instance:t,listener:i,currentTarget:s}}function au(t,i){for(var s=i+"Capture",l=[];t!==null;){var c=t,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=$s(t,s),c!=null&&l.unshift(vr(t,c,f)),c=$s(t,i),c!=null&&l.push(vr(t,c,f))),t.tag===3)return l;t=t.return}return[]}function lT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function wm(t,i,s,l,c){for(var f=i._reactName,m=[];s!==null&&s!==l;){var T=s,R=T.alternate,$=T.stateNode;if(T=T.tag,R!==null&&R===l)break;T!==5&&T!==26&&T!==27||$===null||(R=$,c?($=$s(s,f),$!=null&&m.unshift(vr(s,$,R))):c||($=$s(s,f),$!=null&&m.push(vr(s,$,R)))),s=s.return}m.length!==0&&t.push({event:i,listeners:m})}var uT=/\r\n?/g,oT=/\u0000|\uFFFD/g;function Cm(t){return(typeof t=="string"?t:""+t).replace(uT,`
9
- `).replace(oT,"")}function Lm(t,i){return i=Cm(i),Cm(t)===i}function Kt(t,i,s,l,c,f){switch(s){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&Ga(t,""+l);break;case"className":ul(t,"class",l);break;case"tabIndex":ul(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ul(t,s,l);break;case"style":Ld(t,l,f);break;case"data":if(i!=="object"){ul(t,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||s!=="href")){t.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=cl(""+l),t.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(s==="formAction"?(i!=="input"&&Kt(t,i,"name",c.name,c,null),Kt(t,i,"formEncType",c.formEncType,c,null),Kt(t,i,"formMethod",c.formMethod,c,null),Kt(t,i,"formTarget",c.formTarget,c,null)):(Kt(t,i,"encType",c.encType,c,null),Kt(t,i,"method",c.method,c,null),Kt(t,i,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=cl(""+l),t.setAttribute(s,l);break;case"onClick":l!=null&&(t.onclick=ii);break;case"onScroll":l!=null&&wt("scroll",t);break;case"onScrollEnd":l!=null&&wt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}s=cl(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""+l):t.removeAttribute(s);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":l===!0?t.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,l):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(s,l):t.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(s):t.setAttribute(s,l);break;case"popover":wt("beforetoggle",t),wt("toggle",t),ll(t,"popover",l);break;case"xlinkActuate":ni(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ni(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ni(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ni(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ni(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ni(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ni(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ni(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ni(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ll(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=BE.get(s)||s,ll(t,s,l))}}function bf(t,i,s,l,c,f){switch(s){case"style":Ld(t,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"children":typeof l=="string"?Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&Ga(t,""+l);break;case"onScroll":l!=null&&wt("scroll",t);break;case"onScrollEnd":l!=null&&wt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ii);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Td.hasOwnProperty(s))t:{if(s[0]==="o"&&s[1]==="n"&&(c=s.endsWith("Capture"),i=s.slice(2,c?s.length-7:void 0),f=t[De]||null,f=f!=null?f[s]:null,typeof f=="function"&&t.removeEventListener(i,f,c),typeof l=="function")){typeof f!="function"&&f!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(i,l,c);break t}s in t?t[s]=l:l===!0?t.setAttribute(s,""):ll(t,s,l)}}}function Re(t,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",t),wt("load",t);var l=!1,c=!1,f;for(f in s)if(s.hasOwnProperty(f)){var m=s[f];if(m!=null)switch(f){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Kt(t,i,f,m,s,null)}}c&&Kt(t,i,"srcSet",s.srcSet,s,null),l&&Kt(t,i,"src",s.src,s,null);return;case"input":wt("invalid",t);var T=f=m=c=null,R=null,$=null;for(l in s)if(s.hasOwnProperty(l)){var Y=s[l];if(Y!=null)switch(l){case"name":c=Y;break;case"type":m=Y;break;case"checked":R=Y;break;case"defaultChecked":$=Y;break;case"value":f=Y;break;case"defaultValue":T=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,i));break;default:Kt(t,i,l,Y,s,null)}}Nd(t,f,T,R,$,m,c,!1);return;case"select":wt("invalid",t),l=m=f=null;for(c in s)if(s.hasOwnProperty(c)&&(T=s[c],T!=null))switch(c){case"value":f=T;break;case"defaultValue":m=T;break;case"multiple":l=T;default:Kt(t,i,c,T,s,null)}i=f,s=m,t.multiple=!!l,i!=null?qa(t,!!l,i,!1):s!=null&&qa(t,!!l,s,!0);return;case"textarea":wt("invalid",t),f=c=l=null;for(m in s)if(s.hasOwnProperty(m)&&(T=s[m],T!=null))switch(m){case"value":l=T;break;case"defaultValue":c=T;break;case"children":f=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:Kt(t,i,m,T,s,null)}wd(t,l,c,f);return;case"option":for(R in s)s.hasOwnProperty(R)&&(l=s[R],l!=null)&&(R==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Kt(t,i,R,l,s,null));return;case"dialog":wt("beforetoggle",t),wt("toggle",t),wt("cancel",t),wt("close",t);break;case"iframe":case"object":wt("load",t);break;case"video":case"audio":for(l=0;l<yr.length;l++)wt(yr[l],t);break;case"image":wt("error",t),wt("load",t);break;case"details":wt("toggle",t);break;case"embed":case"source":case"link":wt("error",t),wt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in s)if(s.hasOwnProperty($)&&(l=s[$],l!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Kt(t,i,$,l,s,null)}return;default:if(Uo(i)){for(Y in s)s.hasOwnProperty(Y)&&(l=s[Y],l!==void 0&&bf(t,i,Y,l,s,void 0));return}}for(T in s)s.hasOwnProperty(T)&&(l=s[T],l!=null&&Kt(t,i,T,l,s,null))}function cT(t,i,s,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,m=null,T=null,R=null,$=null,Y=null;for(H in s){var Q=s[H];if(s.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":R=Q;default:l.hasOwnProperty(H)||Kt(t,i,H,null,l,Q)}}for(var q in l){var H=l[q];if(Q=s[q],l.hasOwnProperty(q)&&(H!=null||Q!=null))switch(q){case"type":f=H;break;case"name":c=H;break;case"checked":$=H;break;case"defaultChecked":Y=H;break;case"value":m=H;break;case"defaultValue":T=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,i));break;default:H!==Q&&Kt(t,i,q,H,l,Q)}}Mo(t,m,T,R,$,Y,f,c);return;case"select":H=m=T=q=null;for(f in s)if(R=s[f],s.hasOwnProperty(f)&&R!=null)switch(f){case"value":break;case"multiple":H=R;default:l.hasOwnProperty(f)||Kt(t,i,f,null,l,R)}for(c in l)if(f=l[c],R=s[c],l.hasOwnProperty(c)&&(f!=null||R!=null))switch(c){case"value":q=f;break;case"defaultValue":T=f;break;case"multiple":m=f;default:f!==R&&Kt(t,i,c,f,l,R)}i=T,s=m,l=H,q!=null?qa(t,!!s,q,!1):!!l!=!!s&&(i!=null?qa(t,!!s,i,!0):qa(t,!!s,s?[]:"",!1));return;case"textarea":H=q=null;for(T in s)if(c=s[T],s.hasOwnProperty(T)&&c!=null&&!l.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Kt(t,i,T,null,l,c)}for(m in l)if(c=l[m],f=s[m],l.hasOwnProperty(m)&&(c!=null||f!=null))switch(m){case"value":q=c;break;case"defaultValue":H=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==f&&Kt(t,i,m,c,l,f)}Rd(t,q,H);return;case"option":for(var ut in s)q=s[ut],s.hasOwnProperty(ut)&&q!=null&&!l.hasOwnProperty(ut)&&(ut==="selected"?t.selected=!1:Kt(t,i,ut,null,l,q));for(R in l)q=l[R],H=s[R],l.hasOwnProperty(R)&&q!==H&&(q!=null||H!=null)&&(R==="selected"?t.selected=q&&typeof q!="function"&&typeof q!="symbol":Kt(t,i,R,q,l,H));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 gt in s)q=s[gt],s.hasOwnProperty(gt)&&q!=null&&!l.hasOwnProperty(gt)&&Kt(t,i,gt,null,l,q);for($ in l)if(q=l[$],H=s[$],l.hasOwnProperty($)&&q!==H&&(q!=null||H!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,i));break;default:Kt(t,i,$,q,l,H)}return;default:if(Uo(i)){for(var Vt in s)q=s[Vt],s.hasOwnProperty(Vt)&&q!==void 0&&!l.hasOwnProperty(Vt)&&bf(t,i,Vt,void 0,l,q);for(Y in l)q=l[Y],H=s[Y],!l.hasOwnProperty(Y)||q===H||q===void 0&&H===void 0||bf(t,i,Y,q,l,H);return}}for(var U in s)q=s[U],s.hasOwnProperty(U)&&q!=null&&!l.hasOwnProperty(U)&&Kt(t,i,U,null,l,q);for(Q in l)q=l[Q],H=s[Q],!l.hasOwnProperty(Q)||q===H||q==null&&H==null||Kt(t,i,Q,q,l,H)}function Mm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,i=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var c=s[l],f=c.transferSize,m=c.initiatorType,T=c.duration;if(f&&T&&Mm(m)){for(m=0,T=c.responseEnd,l+=1;l<s.length;l++){var R=s[l],$=R.startTime;if($>T)break;var Y=R.transferSize,Q=R.initiatorType;Y&&Mm(Q)&&(R=R.responseEnd,m+=Y*(R<T?1:(T-$)/(R-$)))}if(--l,i+=8*(f+m)/(c.duration/1e3),t++,10<t)break}}if(0<t)return i/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Tf=null,Sf=null;function su(t){return t.nodeType===9?t:t.ownerDocument}function km(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Um(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function Af(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Of=null;function hT(){var t=window.event;return t&&t.type==="popstate"?t===Of?!1:(Of=t,!0):(Of=null,!1)}var Im=typeof setTimeout=="function"?setTimeout:void 0,dT=typeof clearTimeout=="function"?clearTimeout:void 0,zm=typeof Promise=="function"?Promise:void 0,pT=typeof queueMicrotask=="function"?queueMicrotask:typeof zm<"u"?function(t){return zm.resolve(null).then(t).catch(_T)}:Im;function _T(t){setTimeout(function(){throw t})}function Yi(t){return t==="head"}function Bm(t,i){var s=i,l=0;do{var c=s.nextSibling;if(t.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"||s==="/&"){if(l===0){t.removeChild(c),Es(i);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Er(t.ownerDocument.documentElement);else if(s==="head"){s=t.ownerDocument.head,Er(s);for(var f=s.firstChild;f;){var m=f.nextSibling,T=f.nodeName;f[js]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&f.rel.toLowerCase()==="stylesheet"||s.removeChild(f),f=m}}else s==="body"&&Er(t.ownerDocument.body);s=c}while(s);Es(i)}function jm(t,i){var s=t;t=0;do{var l=s.nextSibling;if(s.nodeType===1?i?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(i?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(t===0)break;t--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||t++;s=l}while(s)}function xf(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":xf(s),Co(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function mT(t,i,s,l){for(;t.nodeType===1;){var c=s;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[js])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=Tn(t.nextSibling),t===null)break}return null}function gT(t,i,s){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=Tn(t.nextSibling),t===null))return null;return t}function Dm(t,i){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Tn(t.nextSibling),t===null))return null;return t}function Nf(t){return t.data==="$?"||t.data==="$~"}function Rf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function yT(t,i){var s=t.ownerDocument;if(t.data==="$~")t._reactRetry=i;else if(t.data!=="$?"||s.readyState!=="loading")i();else{var l=function(){i(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Tn(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return t}var wf=null;function $m(t){t=t.nextSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"||s==="/&"){if(i===0)return Tn(t.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}t=t.nextSibling}return null}function Pm(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(i===0)return t;i--}else s!=="/$"&&s!=="/&"||i++}t=t.previousSibling}return null}function qm(t,i,s){switch(i=su(s),t){case"html":if(t=i.documentElement,!t)throw Error(r(452));return t;case"head":if(t=i.head,!t)throw Error(r(453));return t;case"body":if(t=i.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Er(t){for(var i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Co(t)}var Sn=new Map,Gm=new Set;function ru(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vi=K.d;K.d={f:vT,r:ET,D:bT,C:TT,L:ST,m:AT,X:xT,S:OT,M:NT};function vT(){var t=vi.f(),i=Zl();return t||i}function ET(t){var i=Da(t);i!==null&&i.tag===5&&i.type==="form"?r_(i):vi.r(t)}var gs=typeof document>"u"?null:document;function Hm(t,i,s){var l=gs;if(l&&typeof i=="string"&&i){var c=_n(i);c='link[rel="'+t+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),Gm.has(c)||(Gm.add(c),t={rel:t,crossOrigin:s,href:i},l.querySelector(c)===null&&(i=l.createElement("link"),Re(i,"link",t),be(i),l.head.appendChild(i)))}}function bT(t){vi.D(t),Hm("dns-prefetch",t,null)}function TT(t,i){vi.C(t,i),Hm("preconnect",t,i)}function ST(t,i,s){vi.L(t,i,s);var l=gs;if(l&&t&&i){var c='link[rel="preload"][as="'+_n(i)+'"]';i==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+_n(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+_n(s.imageSizes)+'"]')):c+='[href="'+_n(t)+'"]';var f=c;switch(i){case"style":f=ys(t);break;case"script":f=vs(t)}Sn.has(f)||(t=y({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:t,as:i},s),Sn.set(f,t),l.querySelector(c)!==null||i==="style"&&l.querySelector(br(f))||i==="script"&&l.querySelector(Tr(f))||(i=l.createElement("link"),Re(i,"link",t),be(i),l.head.appendChild(i)))}}function AT(t,i){vi.m(t,i);var s=gs;if(s&&t){var l=i&&typeof i.as=="string"?i.as:"script",c='link[rel="modulepreload"][as="'+_n(l)+'"][href="'+_n(t)+'"]',f=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=vs(t)}if(!Sn.has(f)&&(t=y({rel:"modulepreload",href:t},i),Sn.set(f,t),s.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Tr(f)))return}l=s.createElement("link"),Re(l,"link",t),be(l),s.head.appendChild(l)}}}function OT(t,i,s){vi.S(t,i,s);var l=gs;if(l&&t){var c=$a(l).hoistableStyles,f=ys(t);i=i||"default";var m=c.get(f);if(!m){var T={loading:0,preload:null};if(m=l.querySelector(br(f)))T.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":i},s),(s=Sn.get(f))&&Cf(t,s);var R=m=l.createElement("link");be(R),Re(R,"link",t),R._p=new Promise(function($,Y){R.onload=$,R.onerror=Y}),R.addEventListener("load",function(){T.loading|=1}),R.addEventListener("error",function(){T.loading|=2}),T.loading|=4,lu(m,i,l)}m={type:"stylesheet",instance:m,count:1,state:T},c.set(f,m)}}}function xT(t,i){vi.X(t,i);var s=gs;if(s&&t){var l=$a(s).hoistableScripts,c=vs(t),f=l.get(c);f||(f=s.querySelector(Tr(c)),f||(t=y({src:t,async:!0},i),(i=Sn.get(c))&&Lf(t,i),f=s.createElement("script"),be(f),Re(f,"link",t),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(c,f))}}function NT(t,i){vi.M(t,i);var s=gs;if(s&&t){var l=$a(s).hoistableScripts,c=vs(t),f=l.get(c);f||(f=s.querySelector(Tr(c)),f||(t=y({src:t,async:!0,type:"module"},i),(i=Sn.get(c))&&Lf(t,i),f=s.createElement("script"),be(f),Re(f,"link",t),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(c,f))}}function Fm(t,i,s,l){var c=(c=st.current)?ru(c):null;if(!c)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=ys(s.href),s=$a(c).hoistableStyles,l=s.get(i),l||(l={type:"style",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=ys(s.href);var f=$a(c).hoistableStyles,m=f.get(t);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,m),(f=c.querySelector(br(t)))&&!f._p&&(m.instance=f,m.state.loading=5),Sn.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Sn.set(t,s),f||RT(c,t,s,m.state))),i&&l===null)throw Error(r(528,""));return m}if(i&&l!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=vs(s),s=$a(c).hoistableScripts,l=s.get(i),l||(l={type:"script",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ys(t){return'href="'+_n(t)+'"'}function br(t){return'link[rel="stylesheet"]['+t+"]"}function Km(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function RT(t,i,s,l){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=t.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Re(i,"link",s),be(i),t.head.appendChild(i))}function vs(t){return'[src="'+_n(t)+'"]'}function Tr(t){return"script[async]"+t}function Vm(t,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=t.querySelector('style[data-href~="'+_n(s.href)+'"]');if(l)return i.instance=l,be(l),l;var c=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),be(l),Re(l,"style",c),lu(l,s.precedence,t),i.instance=l;case"stylesheet":c=ys(s.href);var f=t.querySelector(br(c));if(f)return i.state.loading|=4,i.instance=f,be(f),f;l=Km(s),(c=Sn.get(c))&&Cf(l,c),f=(t.ownerDocument||t).createElement("link"),be(f);var m=f;return m._p=new Promise(function(T,R){m.onload=T,m.onerror=R}),Re(f,"link",l),i.state.loading|=4,lu(f,s.precedence,t),i.instance=f;case"script":return f=vs(s.src),(c=t.querySelector(Tr(f)))?(i.instance=c,be(c),c):(l=s,(c=Sn.get(f))&&(l=y({},s),Lf(l,c)),t=t.ownerDocument||t,c=t.createElement("script"),be(c),Re(c,"link",l),t.head.appendChild(c),i.instance=c);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,lu(l,s.precedence,t));return i.instance}function lu(t,i,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,f=c,m=0;m<l.length;m++){var T=l[m];if(T.dataset.precedence===i)f=T;else if(f!==c)break}f?f.parentNode.insertBefore(t,f.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(t,i.firstChild))}function Cf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function Lf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var uu=null;function Ym(t,i,s){if(uu===null){var l=new Map,c=uu=new Map;c.set(s,l)}else c=uu,l=c.get(s),l||(l=new Map,c.set(s,l));if(l.has(t))return l;for(l.set(t,null),s=s.getElementsByTagName(t),c=0;c<s.length;c++){var f=s[c];if(!(f[js]||f[Ae]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var m=f.getAttribute(i)||"";m=t+m;var T=l.get(m);T?T.push(f):l.set(m,[f])}}return l}function Xm(t,i,s){t=t.ownerDocument||t,t.head.insertBefore(s,i==="title"?t.querySelector("head > title"):null)}function wT(t,i,s){if(s===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(t=i.disabled,typeof i.precedence=="string"&&t==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Qm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function CT(t,i,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=ys(l.href),f=i.querySelector(br(c));if(f){i=f._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=ou.bind(t),i.then(t,t)),s.state.loading|=4,s.instance=f,be(f);return}f=i.ownerDocument||i,l=Km(l),(c=Sn.get(c))&&Cf(l,c),f=f.createElement("link"),be(f);var m=f;m._p=new Promise(function(T,R){m.onload=T,m.onerror=R}),Re(f,"link",l),s.instance=f}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(t.count++,s=ou.bind(t),i.addEventListener("load",s),i.addEventListener("error",s))}}var Mf=0;function LT(t,i){return t.stylesheets&&t.count===0&&fu(t,t.stylesheets),0<t.count||0<t.imgCount?function(s){var l=setTimeout(function(){if(t.stylesheets&&fu(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f()}},6e4+i);0<t.imgBytes&&Mf===0&&(Mf=62500*fT());var c=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&fu(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f()}},(t.imgBytes>Mf?50:800)+i);return t.unsuspend=s,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cu=null;function fu(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cu=new Map,i.forEach(MT,t),cu=null,ou.call(t))}function MT(t,i){if(!(i.state.loading&4)){var s=cu.get(t);if(s)var l=s.get(null);else{s=new Map,cu.set(t,s);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var m=c[f];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(s.set(m.dataset.precedence,m),l=m)}l&&s.set(null,l)}c=i.instance,m=c.getAttribute("data-precedence"),f=s.get(m)||l,f===l&&s.set(null,c),s.set(m,c),this.count++,l=ou.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),f?f.parentNode.insertBefore(c,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),i.state.loading|=4}}var Sr={$$typeof:P,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function kT(t,i,s,l,c,f,m,T,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.hiddenUpdates=xo(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Zm(t,i,s,l,c,f,m,T,R,$,Y,Q){return t=new kT(t,i,s,m,R,$,Y,Q,T),i=1,f===!0&&(i|=24),f=We(3,null,null,i),t.current=f,f.stateNode=t,i=cc(),i.refCount++,t.pooledCache=i,i.refCount++,f.memoizedState={element:l,isDehydrated:s,cache:i},pc(f),t}function Wm(t){return t?(t=Qa,t):Qa}function Jm(t,i,s,l,c,f){c=Wm(c),l.context===null?l.context=c:l.pendingContext=c,l=Bi(i),l.payload={element:s},f=f===void 0?null:f,f!==null&&(l.callback=f),s=ji(t,l,i),s!==null&&(Fe(s,t,i),er(s,t,i))}function tg(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<i?s:i}}function kf(t,i){tg(t,i),(t=t.alternate)&&tg(t,i)}function eg(t){if(t.tag===13||t.tag===31){var i=fa(t,67108864);i!==null&&Fe(i,t,67108864),kf(t,67108864)}}function ng(t){if(t.tag===13||t.tag===31){var i=an();i=No(i);var s=fa(t,i);s!==null&&Fe(s,t,i),kf(t,i)}}var hu=!0;function UT(t,i,s,l){var c=k.T;k.T=null;var f=K.p;try{K.p=2,Uf(t,i,s,l)}finally{K.p=f,k.T=c}}function IT(t,i,s,l){var c=k.T;k.T=null;var f=K.p;try{K.p=8,Uf(t,i,s,l)}finally{K.p=f,k.T=c}}function Uf(t,i,s,l){if(hu){var c=If(l);if(c===null)Ef(t,i,l,du,s),ag(t,l);else if(BT(c,t,i,s,l))l.stopPropagation();else if(ag(t,l),i&4&&-1<zT.indexOf(t)){for(;c!==null;){var f=Da(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var m=ra(f.pendingLanes);if(m!==0){var T=f;for(T.pendingLanes|=2,T.entangledLanes|=2;m;){var R=1<<31-Qe(m);T.entanglements[1]|=R,m&=~R}Kn(f),(Dt&6)===0&&(Xl=$t()+500,gr(0))}}break;case 31:case 13:T=fa(f,2),T!==null&&Fe(T,f,2),Zl(),kf(f,2)}if(f=If(l),f===null&&Ef(t,i,l,du,s),f===c)break;c=f}c!==null&&l.stopPropagation()}else Ef(t,i,l,null,s)}}function If(t){return t=zo(t),zf(t)}var du=null;function zf(t){if(du=null,t=ja(t),t!==null){var i=o(t);if(i===null)t=null;else{var s=i.tag;if(s===13){if(t=h(i),t!==null)return t;t=null}else if(s===31){if(t=p(i),t!==null)return t;t=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return du=t,null}function ig(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(hn()){case le:return 2;case Se:return 8;case je:case Us:return 32;case Is:return 268435456;default:return 32}default:return 32}}var Bf=!1,Xi=null,Qi=null,Zi=null,Ar=new Map,Or=new Map,Wi=[],zT="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 ag(t,i){switch(t){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Ar.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Or.delete(i.pointerId)}}function xr(t,i,s,l,c,f){return t===null||t.nativeEvent!==f?(t={blockedOn:i,domEventName:s,eventSystemFlags:l,nativeEvent:f,targetContainers:[c]},i!==null&&(i=Da(i),i!==null&&eg(i)),t):(t.eventSystemFlags|=l,i=t.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),t)}function BT(t,i,s,l,c){switch(i){case"focusin":return Xi=xr(Xi,t,i,s,l,c),!0;case"dragenter":return Qi=xr(Qi,t,i,s,l,c),!0;case"mouseover":return Zi=xr(Zi,t,i,s,l,c),!0;case"pointerover":var f=c.pointerId;return Ar.set(f,xr(Ar.get(f)||null,t,i,s,l,c)),!0;case"gotpointercapture":return f=c.pointerId,Or.set(f,xr(Or.get(f)||null,t,i,s,l,c)),!0}return!1}function sg(t){var i=ja(t.target);if(i!==null){var s=o(i);if(s!==null){if(i=s.tag,i===13){if(i=h(s),i!==null){t.blockedOn=i,vd(t.priority,function(){ng(s)});return}}else if(i===31){if(i=p(s),i!==null){t.blockedOn=i,vd(t.priority,function(){ng(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function pu(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var s=If(t.nativeEvent);if(s===null){s=t.nativeEvent;var l=new s.constructor(s.type,s);Io=l,s.target.dispatchEvent(l),Io=null}else return i=Da(s),i!==null&&eg(i),t.blockedOn=s,!1;i.shift()}return!0}function rg(t,i,s){pu(t)&&s.delete(i)}function jT(){Bf=!1,Xi!==null&&pu(Xi)&&(Xi=null),Qi!==null&&pu(Qi)&&(Qi=null),Zi!==null&&pu(Zi)&&(Zi=null),Ar.forEach(rg),Or.forEach(rg)}function _u(t,i){t.blockedOn===i&&(t.blockedOn=null,Bf||(Bf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,jT)))}var mu=null;function lg(t){mu!==t&&(mu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mu===t&&(mu=null);for(var i=0;i<t.length;i+=3){var s=t[i],l=t[i+1],c=t[i+2];if(typeof l!="function"){if(zf(l||s)===null)continue;break}var f=Da(s);f!==null&&(t.splice(i,3),i-=3,Uc(f,{pending:!0,data:c,method:s.method,action:l},l,c))}}))}function Es(t){function i(R){return _u(R,t)}Xi!==null&&_u(Xi,t),Qi!==null&&_u(Qi,t),Zi!==null&&_u(Zi,t),Ar.forEach(i),Or.forEach(i);for(var s=0;s<Wi.length;s++){var l=Wi[s];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Wi.length&&(s=Wi[0],s.blockedOn===null);)sg(s),s.blockedOn===null&&Wi.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var c=s[l],f=s[l+1],m=c[De]||null;if(typeof f=="function")m||lg(s);else if(m){var T=null;if(f&&f.hasAttribute("formAction")){if(c=f,m=f[De]||null)T=m.formAction;else if(zf(c)!==null)continue}else T=m.action;typeof T=="function"?s[l+1]=T:(s.splice(l,3),l-=3),lg(s)}}}function ug(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function i(){c!==null&&(c(),c=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),c!==null&&(c(),c=null)}}}function jf(t){this._internalRoot=t}gu.prototype.render=jf.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,l=an();Jm(s,l,t,i,null,null)},gu.prototype.unmount=jf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;Jm(t.current,2,null,t,null,null),Zl(),i[Ba]=null}};function gu(t){this._internalRoot=t}gu.prototype.unstable_scheduleHydration=function(t){if(t){var i=yd();t={blockedOn:null,target:t,priority:i};for(var s=0;s<Wi.length&&i!==0&&i<Wi[s].priority;s++);Wi.splice(s,0,t),s===0&&sg(t)}};var og=n.version;if(og!=="19.2.4")throw Error(r(527,og,"19.2.4"));K.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=_(i),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var DT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yu.isDisabled&&yu.supportsFiber)try{Cn=yu.inject(DT),Le=yu}catch{}}return Rr.createRoot=function(t,i){if(!u(t))throw Error(r(299));var s=!1,l="",c=m_,f=g_,m=y_;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(f=i.onCaughtError),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=Zm(t,1,!1,null,null,s,l,null,c,f,m,ug),t[Ba]=i.current,vf(t),new jf(i)},Rr.hydrateRoot=function(t,i,s){if(!u(t))throw Error(r(299));var l=!1,c="",f=m_,m=g_,T=y_,R=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(m=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.formState!==void 0&&(R=s.formState)),i=Zm(t,1,!0,i,s??null,l,c,R,f,m,T,ug),i.context=Wm(null),s=i.current,l=an(),l=No(l),c=Bi(l),c.callback=null,ji(s,c,l),s=l,i.current.lanes=s,Bs(i,s),Kn(i),t[Ba]=i.current,vf(t),new gu(i)},Rr.version="19.2.4",Rr}var vg;function QT(){if(vg)return Pf.exports;vg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Pf.exports=XT(),Pf.exports}var ZT=QT();const WT=ao(ZT);function Eg(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function JT(e){if(Array.isArray(e))return e}function t1(e,n,a){return(n=l1(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function e1(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,u,o,h,p=[],d=!0,_=!1;try{if(o=(a=a.call(e)).next,n!==0)for(;!(d=(r=o.call(a)).done)&&(p.push(r.value),p.length!==n);d=!0);}catch(v){_=!0,u=v}finally{try{if(!d&&a.return!=null&&(h=a.return(),Object(h)!==h))return}finally{if(_)throw u}}return p}}function n1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
+ `+l.stack}}var Ht=Object.prototype.hasOwnProperty,ee=e.unstable_scheduleCallback,qn=e.unstable_cancelCallback,fn=e.unstable_shouldYield,sa=e.unstable_requestPaint,$t=e.unstable_now,hn=e.unstable_getCurrentPriorityLevel,le=e.unstable_ImmediatePriority,Se=e.unstable_UserBlockingPriority,je=e.unstable_NormalPriority,Is=e.unstable_LowPriority,Us=e.unstable_IdlePriority,Ri=e.log,dn=e.unstable_setDisableYieldValue,Cn=null,Le=null;function wi(t){if(typeof Ri=="function"&&dn(t),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(Cn,t)}catch{}}var Qe=Math.clz32?Math.clz32:NE,OE=Math.log,xE=Math.LN2;function NE(t){return t>>>=0,t===0?32:31-(OE(t)/xE|0)|0}var il=256,al=262144,sl=4194304;function ra(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function rl(t,i,s){var l=t.pendingLanes;if(l===0)return 0;var c=0,f=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var T=l&134217727;return T!==0?(l=T&~f,l!==0?c=ra(l):(m&=T,m!==0?c=ra(m):s||(s=T&~t,s!==0&&(c=ra(s))))):(T=l&~f,T!==0?c=ra(T):m!==0?c=ra(m):s||(s=l&~t,s!==0&&(c=ra(s)))),c===0?0:i!==0&&i!==c&&(i&f)===0&&(f=c&-c,s=i&-i,f>=s||f===32&&(s&4194048)!==0)?i:c}function zs(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function RE(t,i){switch(t){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 pd(){var t=sl;return sl<<=1,(sl&62914560)===0&&(sl=4194304),t}function xo(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function Bs(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function wE(t,i,s,l,c,f){var m=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var T=t.entanglements,R=t.expirationTimes,$=t.hiddenUpdates;for(s=m&~s;0<s;){var Y=31-Qe(s),Q=1<<Y;T[Y]=0,R[Y]=-1;var q=$[Y];if(q!==null)for($[Y]=null,Y=0;Y<q.length;Y++){var H=q[Y];H!==null&&(H.lane&=-536870913)}s&=~Q}l!==0&&_d(t,l,0),f!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=f&~(m&~i))}function _d(t,i,s){t.pendingLanes|=i,t.suspendedLanes&=~i;var l=31-Qe(i);t.entangledLanes|=i,t.entanglements[l]=t.entanglements[l]|1073741824|s&261930}function md(t,i){var s=t.entangledLanes|=i;for(t=t.entanglements;s;){var l=31-Qe(s),c=1<<l;c&i|t[l]&i&&(t[l]|=i),s&=~c}}function gd(t,i){var s=i&-i;return s=(s&42)!==0?1:No(s),(s&(t.suspendedLanes|i))!==0?0:s}function No(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ro(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function yd(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:ig(t.type))}function vd(t,i){var s=K.p;try{return K.p=t,i()}finally{K.p=s}}var Ci=Math.random().toString(36).slice(2),Ae="__reactFiber$"+Ci,De="__reactProps$"+Ci,Ba="__reactContainer$"+Ci,wo="__reactEvents$"+Ci,CE="__reactListeners$"+Ci,LE="__reactHandles$"+Ci,Ed="__reactResources$"+Ci,js="__reactMarker$"+Ci;function Co(t){delete t[Ae],delete t[De],delete t[wo],delete t[CE],delete t[LE]}function ja(t){var i=t[Ae];if(i)return i;for(var s=t.parentNode;s;){if(i=s[Ba]||s[Ae]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(t=Pm(t);t!==null;){if(s=t[Ae])return s;t=Pm(t)}return i}t=s,s=t.parentNode}return null}function Da(t){if(t=t[Ae]||t[Ba]){var i=t.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return t}return null}function Ds(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(r(33))}function $a(t){var i=t[Ed];return i||(i=t[Ed]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function be(t){t[js]=!0}var bd=new Set,Td={};function la(t,i){Pa(t,i),Pa(t+"Capture",i)}function Pa(t,i){for(Td[t]=i,t=0;t<i.length;t++)bd.add(i[t])}var ME=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]*$"),Sd={},Ad={};function kE(t){return Ht.call(Ad,t)?!0:Ht.call(Sd,t)?!1:ME.test(t)?Ad[t]=!0:(Sd[t]=!0,!1)}function ll(t,i,s){if(kE(i))if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+s)}}function ul(t,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+s)}}function ni(t,i,s,l){if(l===null)t.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(i,s,""+l)}}function pn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Od(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function IE(t,i,s){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);if(!t.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,f=l.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return c.call(this)},set:function(m){s=""+m,f.call(this,m)}}),Object.defineProperty(t,i,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(m){s=""+m},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Lo(t){if(!t._valueTracker){var i=Od(t)?"checked":"value";t._valueTracker=IE(t,i,""+t[i])}}function xd(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Od(t)?t.checked?"true":"false":t.value),t=l,t!==s?(i.setValue(t),!0):!1}function ol(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var UE=/[\n"\\]/g;function _n(t){return t.replace(UE,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Mo(t,i,s,l,c,f,m,T){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),i!=null?m==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+pn(i)):t.value!==""+pn(i)&&(t.value=""+pn(i)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),i!=null?ko(t,m,pn(i)):s!=null?ko(t,m,pn(s)):l!=null&&t.removeAttribute("value"),c==null&&f!=null&&(t.defaultChecked=!!f),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+pn(T):t.removeAttribute("name")}function Nd(t,i,s,l,c,f,m,T){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),i!=null||s!=null){if(!(f!=="submit"&&f!=="reset"||i!=null)){Lo(t);return}s=s!=null?""+pn(s):"",i=i!=null?""+pn(i):s,T||i===t.value||(t.value=i),t.defaultValue=i}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=T?t.checked:!!l,t.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Lo(t)}function ko(t,i,s){i==="number"&&ol(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function qa(t,i,s,l){if(t=t.options,i){i={};for(var c=0;c<s.length;c++)i["$"+s[c]]=!0;for(s=0;s<t.length;s++)c=i.hasOwnProperty("$"+t[s].value),t[s].selected!==c&&(t[s].selected=c),c&&l&&(t[s].defaultSelected=!0)}else{for(s=""+pn(s),i=null,c=0;c<t.length;c++){if(t[c].value===s){t[c].selected=!0,l&&(t[c].defaultSelected=!0);return}i!==null||t[c].disabled||(i=t[c])}i!==null&&(i.selected=!0)}}function Rd(t,i,s){if(i!=null&&(i=""+pn(i),i!==t.value&&(t.value=i),s==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=s!=null?""+pn(s):""}function wd(t,i,s,l){if(i==null){if(l!=null){if(s!=null)throw Error(r(92));if(it(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),i=s}s=pn(i),t.defaultValue=s,l=t.textContent,l===s&&l!==""&&l!==null&&(t.value=l),Lo(t)}function Ga(t,i){if(i){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=i;return}}t.textContent=i}var zE=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 Cd(t,i,s){var l=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":l?t.setProperty(i,s):typeof s!="number"||s===0||zE.has(i)?i==="float"?t.cssFloat=s:t[i]=(""+s).trim():t[i]=s+"px"}function Ld(t,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(t=t.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var c in i)l=i[c],i.hasOwnProperty(c)&&s[c]!==l&&Cd(t,c,l)}else for(var f in i)i.hasOwnProperty(f)&&Cd(t,f,i[f])}function Io(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var BE=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"],["colorRendering","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"]]),jE=/^[\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 cl(t){return jE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ii(){}var Uo=null;function zo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,Fa=null;function Md(t){var i=Da(t);if(i&&(t=i.stateNode)){var s=t[De]||null;t:switch(t=i.stateNode,i.type){case"input":if(Mo(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+_n(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var l=s[i];if(l!==t&&l.form===t.form){var c=l[De]||null;if(!c)throw Error(r(90));Mo(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(i=0;i<s.length;i++)l=s[i],l.form===t.form&&xd(l)}break t;case"textarea":Rd(t,s.value,s.defaultValue);break t;case"select":i=s.value,i!=null&&qa(t,!!s.multiple,i,!1)}}}var Bo=!1;function kd(t,i,s){if(Bo)return t(i,s);Bo=!0;try{var l=t(i);return l}finally{if(Bo=!1,(Ha!==null||Fa!==null)&&(Zl(),Ha&&(i=Ha,t=Fa,Fa=Ha=null,Md(i),t)))for(i=0;i<t.length;i++)Md(t[i])}}function $s(t,i){var s=t.stateNode;if(s===null)return null;var l=s[De]||null;if(l===null)return null;s=l[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jo=!1;if(ai)try{var Ps={};Object.defineProperty(Ps,"passive",{get:function(){jo=!0}}),window.addEventListener("test",Ps,Ps),window.removeEventListener("test",Ps,Ps)}catch{jo=!1}var Li=null,Do=null,fl=null;function Id(){if(fl)return fl;var t,i=Do,s=i.length,l,c="value"in Li?Li.value:Li.textContent,f=c.length;for(t=0;t<s&&i[t]===c[t];t++);var m=s-t;for(l=1;l<=m&&i[s-l]===c[f-l];l++);return fl=c.slice(t,1<l?1-l:void 0)}function hl(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function dl(){return!0}function Ud(){return!1}function $e(t){function i(s,l,c,f,m){this._reactName=s,this._targetInst=c,this.type=l,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(s=t[T],this[T]=s?s(f):f[T]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?dl:Ud,this.isPropagationStopped=Ud,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=dl)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),i}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=$e(ua),qs=y({},ua,{view:0,detail:0}),DE=$e(qs),$o,Po,Gs,_l=y({},qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Go,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gs&&(Gs&&t.type==="mousemove"?($o=t.screenX-Gs.screenX,Po=t.screenY-Gs.screenY):Po=$o=0,Gs=t),$o)},movementY:function(t){return"movementY"in t?t.movementY:Po}}),zd=$e(_l),$E=y({},_l,{dataTransfer:0}),PE=$e($E),qE=y({},qs,{relatedTarget:0}),qo=$e(qE),GE=y({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),HE=$e(GE),FE=y({},ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),KE=$e(FE),VE=y({},ua,{data:0}),Bd=$e(VE),YE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XE={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"},QE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZE(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=QE[t])?!!i[t]:!1}function Go(){return ZE}var WE=y({},qs,{key:function(t){if(t.key){var i=YE[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=hl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?XE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Go,charCode:function(t){return t.type==="keypress"?hl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?hl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),JE=$e(WE),tb=y({},_l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=$e(tb),eb=y({},qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Go}),nb=$e(eb),ib=y({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),ab=$e(ib),sb=y({},_l,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),rb=$e(sb),lb=y({},ua,{newState:0,oldState:0}),ub=$e(lb),ob=[9,13,27,32],Ho=ai&&"CompositionEvent"in window,Hs=null;ai&&"documentMode"in document&&(Hs=document.documentMode);var cb=ai&&"TextEvent"in window&&!Hs,Dd=ai&&(!Ho||Hs&&8<Hs&&11>=Hs),$d=" ",Pd=!1;function qd(t,i){switch(t){case"keyup":return ob.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ka=!1;function fb(t,i){switch(t){case"compositionend":return Gd(i);case"keypress":return i.which!==32?null:(Pd=!0,$d);case"textInput":return t=i.data,t===$d&&Pd?null:t;default:return null}}function hb(t,i){if(Ka)return t==="compositionend"||!Ho&&qd(t,i)?(t=Id(),fl=Do=Li=null,Ka=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Dd&&i.locale!=="ko"?null:i.data;default:return null}}var db={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 Hd(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!db[t.type]:i==="textarea"}function Fd(t,i,s,l){Ha?Fa?Fa.push(l):Fa=[l]:Ha=l,i=au(i,"onChange"),0<i.length&&(s=new pl("onChange","change",null,s,l),t.push({event:s,listeners:i}))}var Fs=null,Ks=null;function pb(t){Nm(t,0)}function ml(t){var i=Ds(t);if(xd(i))return t}function Kd(t,i){if(t==="change")return i}var Vd=!1;if(ai){var Fo;if(ai){var Ko="oninput"in document;if(!Ko){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),Ko=typeof Yd.oninput=="function"}Fo=Ko}else Fo=!1;Vd=Fo&&(!document.documentMode||9<document.documentMode)}function Xd(){Fs&&(Fs.detachEvent("onpropertychange",Qd),Ks=Fs=null)}function Qd(t){if(t.propertyName==="value"&&ml(Ks)){var i=[];Fd(i,Ks,t,zo(t)),kd(pb,i)}}function _b(t,i,s){t==="focusin"?(Xd(),Fs=i,Ks=s,Fs.attachEvent("onpropertychange",Qd)):t==="focusout"&&Xd()}function mb(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ml(Ks)}function gb(t,i){if(t==="click")return ml(i)}function yb(t,i){if(t==="input"||t==="change")return ml(i)}function vb(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var Ze=typeof Object.is=="function"?Object.is:vb;function Vs(t,i){if(Ze(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var s=Object.keys(t),l=Object.keys(i);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var c=s[l];if(!Ht.call(i,c)||!Ze(t[c],i[c]))return!1}return!0}function Zd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Wd(t,i){var s=Zd(t);t=0;for(var l;s;){if(s.nodeType===3){if(l=t+s.textContent.length,t<=i&&l>=i)return{node:s,offset:i-t};t=l}t:{for(;s;){if(s.nextSibling){s=s.nextSibling;break t}s=s.parentNode}s=void 0}s=Zd(s)}}function Jd(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jd(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function tp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=ol(t.document);i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=ol(t.document)}return i}function Vo(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}var Eb=ai&&"documentMode"in document&&11>=document.documentMode,Va=null,Yo=null,Ys=null,Xo=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Xo||Va==null||Va!==ol(l)||(l=Va,"selectionStart"in l&&Vo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ys&&Vs(Ys,l)||(Ys=l,l=au(Yo,"onSelect"),0<l.length&&(i=new pl("onSelect","select",null,i,s),t.push({event:i,listeners:l}),i.target=Va)))}function oa(t,i){var s={};return s[t.toLowerCase()]=i.toLowerCase(),s["Webkit"+t]="webkit"+i,s["Moz"+t]="moz"+i,s}var Ya={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},Qo={},np={};ai&&(np=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function ca(t){if(Qo[t])return Qo[t];if(!Ya[t])return t;var i=Ya[t],s;for(s in i)if(i.hasOwnProperty(s)&&s in np)return Qo[t]=i[s];return t}var ip=ca("animationend"),ap=ca("animationiteration"),sp=ca("animationstart"),bb=ca("transitionrun"),Tb=ca("transitionstart"),Sb=ca("transitioncancel"),rp=ca("transitionend"),lp=new Map,Zo="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(" ");Zo.push("scrollEnd");function Ln(t,i){lp.set(t,i),la(i,[t])}var gl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},mn=[],Xa=0,Wo=0;function yl(){for(var t=Xa,i=Wo=Xa=0;i<t;){var s=mn[i];mn[i++]=null;var l=mn[i];mn[i++]=null;var c=mn[i];mn[i++]=null;var f=mn[i];if(mn[i++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}f!==0&&up(s,c,f)}}function vl(t,i,s,l){mn[Xa++]=t,mn[Xa++]=i,mn[Xa++]=s,mn[Xa++]=l,Wo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Jo(t,i,s,l){return vl(t,i,s,l),El(t)}function fa(t,i){return vl(t,null,null,i),El(t)}function up(t,i,s){t.lanes|=s;var l=t.alternate;l!==null&&(l.lanes|=s);for(var c=!1,f=t.return;f!==null;)f.childLanes|=s,l=f.alternate,l!==null&&(l.childLanes|=s),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(c=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,c&&i!==null&&(c=31-Qe(s),t=f.hiddenUpdates,l=t[c],l===null?t[c]=[i]:l.push(i),i.lane=s|536870912),f):null}function El(t){if(50<mr)throw mr=0,of=null,Error(r(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var Qa={};function Ab(t,i,s,l){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(t,i,s,l){return new Ab(t,i,s,l)}function tc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function si(t,i){var s=t.alternate;return s===null?(s=We(t.tag,i,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=i,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&65011712,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,i=t.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function op(t,i){t.flags&=65011714;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,i=s.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function bl(t,i,s,l,c,f){var m=0;if(l=t,typeof t=="function")tc(t)&&(m=1);else if(typeof t=="string")m=wT(t,s,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case S:return t=We(31,s,i,c),t.elementType=S,t.lanes=f,t;case V:return ha(s.children,c,f,i);case A:m=8,c|=24;break;case b:return t=We(12,s,i,c|2),t.elementType=b,t.lanes=f,t;case Z:return t=We(13,s,i,c),t.elementType=Z,t.lanes=f,t;case U:return t=We(19,s,i,c),t.elementType=U,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:m=10;break t;case N:m=9;break t;case B:m=11;break t;case w:m=14;break t;case E:m=16,l=null;break t}m=29,s=Error(r(130,t===null?"null":typeof t,"")),l=null}return i=We(m,s,i,c),i.elementType=t,i.type=l,i.lanes=f,i}function ha(t,i,s,l){return t=We(7,t,l,i),t.lanes=s,t}function ec(t,i,s){return t=We(6,t,null,i),t.lanes=s,t}function cp(t){var i=We(18,null,null,0);return i.stateNode=t,i}function nc(t,i,s){return i=We(4,t.children!==null?t.children:[],t.key,i),i.lanes=s,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}var fp=new WeakMap;function gn(t,i){if(typeof t=="object"&&t!==null){var s=fp.get(t);return s!==void 0?s:(i={value:t,source:i,stack:Ut(i)},fp.set(t,i),i)}return{value:t,source:i,stack:Ut(i)}}var Za=[],Wa=0,Tl=null,Xs=0,yn=[],vn=0,Mi=null,Gn=1,Hn="";function ri(t,i){Za[Wa++]=Xs,Za[Wa++]=Tl,Tl=t,Xs=i}function hp(t,i,s){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Mi,Mi=t;var l=Gn;t=Hn;var c=32-Qe(l)-1;l&=~(1<<c),s+=1;var f=32-Qe(i)+c;if(30<f){var m=c-c%5;f=(l&(1<<m)-1).toString(32),l>>=m,c-=m,Gn=1<<32-Qe(i)+c|s<<c|l,Hn=f+t}else Gn=1<<f|s<<c|l,Hn=t}function ic(t){t.return!==null&&(ri(t,1),hp(t,1,0))}function ac(t){for(;t===Tl;)Tl=Za[--Wa],Za[Wa]=null,Xs=Za[--Wa],Za[Wa]=null;for(;t===Mi;)Mi=yn[--vn],yn[vn]=null,Hn=yn[--vn],yn[vn]=null,Gn=yn[--vn],yn[vn]=null}function dp(t,i){yn[vn++]=Gn,yn[vn++]=Hn,yn[vn++]=Mi,Gn=i.id,Hn=i.overflow,Mi=t}var Oe=null,Zt=null,It=!1,ki=null,En=!1,sc=Error(r(519));function Ii(t){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qs(gn(i,t)),sc}function pp(t){var i=t.stateNode,s=t.type,l=t.memoizedProps;switch(i[Ae]=t,i[De]=l,s){case"dialog":wt("cancel",i),wt("close",i);break;case"iframe":case"object":case"embed":wt("load",i);break;case"video":case"audio":for(s=0;s<yr.length;s++)wt(yr[s],i);break;case"source":wt("error",i);break;case"img":case"image":case"link":wt("error",i),wt("load",i);break;case"details":wt("toggle",i);break;case"input":wt("invalid",i),Nd(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":wt("invalid",i);break;case"textarea":wt("invalid",i),wd(i,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||l.suppressHydrationWarning===!0||Lm(i.textContent,s)?(l.popover!=null&&(wt("beforetoggle",i),wt("toggle",i)),l.onScroll!=null&&wt("scroll",i),l.onScrollEnd!=null&&wt("scrollend",i),l.onClick!=null&&(i.onclick=ii),i=!0):i=!1,i||Ii(t,!0)}function _p(t){for(Oe=t.return;Oe;)switch(Oe.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Oe=Oe.return}}function Ja(t){if(t!==Oe)return!1;if(!It)return _p(t),It=!0,!1;var i=t.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||Af(t.type,t.memoizedProps)),s=!s),s&&Zt&&Ii(t),_p(t),i===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=$m(t)}else if(i===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Zt=$m(t)}else i===27?(i=Zt,Yi(t.type)?(t=wf,wf=null,Zt=t):Zt=i):Zt=Oe?Tn(t.stateNode.nextSibling):null;return!0}function da(){Zt=Oe=null,It=!1}function rc(){var t=ki;return t!==null&&(He===null?He=t:He.push.apply(He,t),ki=null),t}function Qs(t){ki===null?ki=[t]:ki.push(t)}var lc=x(null),pa=null,li=null;function Ui(t,i,s){F(lc,i._currentValue),i._currentValue=s}function ui(t){t._currentValue=lc.current,D(lc)}function uc(t,i,s){for(;t!==null;){var l=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),t===s)break;t=t.return}}function oc(t,i,s,l){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var f=c.dependencies;if(f!==null){var m=c.child;f=f.firstContext;t:for(;f!==null;){var T=f;f=c;for(var R=0;R<i.length;R++)if(T.context===i[R]){f.lanes|=s,T=f.alternate,T!==null&&(T.lanes|=s),uc(f.return,s,t),l||(m=null);break t}f=T.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(r(341));m.lanes|=s,f=m.alternate,f!==null&&(f.lanes|=s),uc(m,s,t),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===t){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function ts(t,i,s,l){t=null;for(var c=i,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var T=c.type;Ze(c.pendingProps.value,m.value)||(t!==null?t.push(T):t=[T])}}else if(c===ht.current){if(m=c.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(Sr):t=[Sr])}c=c.return}t!==null&&oc(i,t,s,l),i.flags|=262144}function Sl(t){for(t=t.firstContext;t!==null;){if(!Ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function _a(t){pa=t,li=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function xe(t){return mp(pa,t)}function Al(t,i){return pa===null&&_a(t),mp(t,i)}function mp(t,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},li===null){if(t===null)throw Error(r(308));li=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else li=li.next=i;return s}var Ob=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(s,l){t.push(l)}};this.abort=function(){i.aborted=!0,t.forEach(function(s){return s()})}},xb=e.unstable_scheduleCallback,Nb=e.unstable_NormalPriority,he={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new Ob,data:new Map,refCount:0}}function Zs(t){t.refCount--,t.refCount===0&&xb(Nb,function(){t.controller.abort()})}var Ws=null,fc=0,es=0,ns=null;function Rb(t,i){if(Ws===null){var s=Ws=[];fc=0,es=_f(),ns={status:"pending",value:void 0,then:function(l){s.push(l)}}}return fc++,i.then(gp,gp),i}function gp(){if(--fc===0&&Ws!==null){ns!==null&&(ns.status="fulfilled");var t=Ws;Ws=null,es=0,ns=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function wb(t,i){var s=[],l={status:"pending",value:null,reason:null,then:function(c){s.push(c)}};return t.then(function(){l.status="fulfilled",l.value=i;for(var c=0;c<s.length;c++)(0,s[c])(i)},function(c){for(l.status="rejected",l.reason=c,c=0;c<s.length;c++)(0,s[c])(void 0)}),l}var yp=k.S;k.S=function(t,i){em=$t(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&Rb(t,i),yp!==null&&yp(t,i)};var ma=x(null);function hc(){var t=ma.current;return t!==null?t:Yt.pooledCache}function Ol(t,i){i===null?F(ma,ma.current):F(ma,i.pool)}function vp(){var t=hc();return t===null?null:{parent:he._currentValue,pool:t}}var is=Error(r(460)),dc=Error(r(474)),xl=Error(r(542)),Nl={then:function(){}};function Ep(t){return t=t.status,t==="fulfilled"||t==="rejected"}function bp(t,i,s){switch(s=t[s],s===void 0?t.push(i):s!==i&&(i.then(ii,ii),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Sp(t),t;default:if(typeof i.status=="string")i.then(ii,ii);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=i,t.status="pending",t.then(function(l){if(i.status==="pending"){var c=i;c.status="fulfilled",c.value=l}},function(l){if(i.status==="pending"){var c=i;c.status="rejected",c.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Sp(t),t}throw ya=i,is}}function ga(t){try{var i=t._init;return i(t._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ya=s,is):s}}var ya=null;function Tp(){if(ya===null)throw Error(r(459));var t=ya;return ya=null,t}function Sp(t){if(t===is||t===xl)throw Error(r(483))}var as=null,Js=0;function Rl(t){var i=Js;return Js+=1,as===null&&(as=[]),bp(as,t,i)}function tr(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function wl(t,i){throw i.$$typeof===O?Error(r(525)):(t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function Ap(t){function i(I,C){if(t){var j=I.deletions;j===null?(I.deletions=[C],I.flags|=16):j.push(C)}}function s(I,C){if(!t)return null;for(;C!==null;)i(I,C),C=C.sibling;return null}function l(I){for(var C=new Map;I!==null;)I.key!==null?C.set(I.key,I):C.set(I.index,I),I=I.sibling;return C}function c(I,C){return I=si(I,C),I.index=0,I.sibling=null,I}function f(I,C,j){return I.index=j,t?(j=I.alternate,j!==null?(j=j.index,j<C?(I.flags|=67108866,C):j):(I.flags|=67108866,C)):(I.flags|=1048576,C)}function m(I){return t&&I.alternate===null&&(I.flags|=67108866),I}function T(I,C,j,X){return C===null||C.tag!==6?(C=ec(j,I.mode,X),C.return=I,C):(C=c(C,j),C.return=I,C)}function R(I,C,j,X){var dt=j.type;return dt===V?Y(I,C,j.props.children,X,j.key):C!==null&&(C.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===E&&ga(dt)===C.type)?(C=c(C,j.props),tr(C,j),C.return=I,C):(C=bl(j.type,j.key,j.props,null,I.mode,X),tr(C,j),C.return=I,C)}function $(I,C,j,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==j.containerInfo||C.stateNode.implementation!==j.implementation?(C=nc(j,I.mode,X),C.return=I,C):(C=c(C,j.children||[]),C.return=I,C)}function Y(I,C,j,X,dt){return C===null||C.tag!==7?(C=ha(j,I.mode,X,dt),C.return=I,C):(C=c(C,j),C.return=I,C)}function Q(I,C,j){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ec(""+C,I.mode,j),C.return=I,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case z:return j=bl(C.type,C.key,C.props,null,I.mode,j),tr(j,C),j.return=I,j;case G:return C=nc(C,I.mode,j),C.return=I,C;case E:return C=ga(C),Q(I,C,j)}if(it(C)||M(C))return C=ha(C,I.mode,j,null),C.return=I,C;if(typeof C.then=="function")return Q(I,Rl(C),j);if(C.$$typeof===P)return Q(I,Al(I,C),j);wl(I,C)}return null}function q(I,C,j,X){var dt=C!==null?C.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return dt!==null?null:T(I,C,""+j,X);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case z:return j.key===dt?R(I,C,j,X):null;case G:return j.key===dt?$(I,C,j,X):null;case E:return j=ga(j),q(I,C,j,X)}if(it(j)||M(j))return dt!==null?null:Y(I,C,j,X,null);if(typeof j.then=="function")return q(I,C,Rl(j),X);if(j.$$typeof===P)return q(I,C,Al(I,j),X);wl(I,j)}return null}function H(I,C,j,X,dt){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return I=I.get(j)||null,T(C,I,""+X,dt);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case z:return I=I.get(X.key===null?j:X.key)||null,R(C,I,X,dt);case G:return I=I.get(X.key===null?j:X.key)||null,$(C,I,X,dt);case E:return X=ga(X),H(I,C,j,X,dt)}if(it(X)||M(X))return I=I.get(j)||null,Y(C,I,X,dt,null);if(typeof X.then=="function")return H(I,C,j,Rl(X),dt);if(X.$$typeof===P)return H(I,C,j,Al(C,X),dt);wl(C,X)}return null}function ut(I,C,j,X){for(var dt=null,Bt=null,ot=C,Ot=C=0,Mt=null;ot!==null&&Ot<j.length;Ot++){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var jt=q(I,ot,j[Ot],X);if(jt===null){ot===null&&(ot=Mt);break}t&&ot&&jt.alternate===null&&i(I,ot),C=f(jt,C,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt,ot=Mt}if(Ot===j.length)return s(I,ot),It&&ri(I,Ot),dt;if(ot===null){for(;Ot<j.length;Ot++)ot=Q(I,j[Ot],X),ot!==null&&(C=f(ot,C,Ot),Bt===null?dt=ot:Bt.sibling=ot,Bt=ot);return It&&ri(I,Ot),dt}for(ot=l(ot);Ot<j.length;Ot++)Mt=H(ot,I,Ot,j[Ot],X),Mt!==null&&(t&&Mt.alternate!==null&&ot.delete(Mt.key===null?Ot:Mt.key),C=f(Mt,C,Ot),Bt===null?dt=Mt:Bt.sibling=Mt,Bt=Mt);return t&&ot.forEach(function(Ji){return i(I,Ji)}),It&&ri(I,Ot),dt}function gt(I,C,j,X){if(j==null)throw Error(r(151));for(var dt=null,Bt=null,ot=C,Ot=C=0,Mt=null,jt=j.next();ot!==null&&!jt.done;Ot++,jt=j.next()){ot.index>Ot?(Mt=ot,ot=null):Mt=ot.sibling;var Ji=q(I,ot,jt.value,X);if(Ji===null){ot===null&&(ot=Mt);break}t&&ot&&Ji.alternate===null&&i(I,ot),C=f(Ji,C,Ot),Bt===null?dt=Ji:Bt.sibling=Ji,Bt=Ji,ot=Mt}if(jt.done)return s(I,ot),It&&ri(I,Ot),dt;if(ot===null){for(;!jt.done;Ot++,jt=j.next())jt=Q(I,jt.value,X),jt!==null&&(C=f(jt,C,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return It&&ri(I,Ot),dt}for(ot=l(ot);!jt.done;Ot++,jt=j.next())jt=H(ot,I,Ot,jt.value,X),jt!==null&&(t&&jt.alternate!==null&&ot.delete(jt.key===null?Ot:jt.key),C=f(jt,C,Ot),Bt===null?dt=jt:Bt.sibling=jt,Bt=jt);return t&&ot.forEach(function($T){return i(I,$T)}),It&&ri(I,Ot),dt}function Vt(I,C,j,X){if(typeof j=="object"&&j!==null&&j.type===V&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case z:t:{for(var dt=j.key;C!==null;){if(C.key===dt){if(dt=j.type,dt===V){if(C.tag===7){s(I,C.sibling),X=c(C,j.props.children),X.return=I,I=X;break t}}else if(C.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===E&&ga(dt)===C.type){s(I,C.sibling),X=c(C,j.props),tr(X,j),X.return=I,I=X;break t}s(I,C);break}else i(I,C);C=C.sibling}j.type===V?(X=ha(j.props.children,I.mode,X,j.key),X.return=I,I=X):(X=bl(j.type,j.key,j.props,null,I.mode,X),tr(X,j),X.return=I,I=X)}return m(I);case G:t:{for(dt=j.key;C!==null;){if(C.key===dt)if(C.tag===4&&C.stateNode.containerInfo===j.containerInfo&&C.stateNode.implementation===j.implementation){s(I,C.sibling),X=c(C,j.children||[]),X.return=I,I=X;break t}else{s(I,C);break}else i(I,C);C=C.sibling}X=nc(j,I.mode,X),X.return=I,I=X}return m(I);case E:return j=ga(j),Vt(I,C,j,X)}if(it(j))return ut(I,C,j,X);if(M(j)){if(dt=M(j),typeof dt!="function")throw Error(r(150));return j=dt.call(j),gt(I,C,j,X)}if(typeof j.then=="function")return Vt(I,C,Rl(j),X);if(j.$$typeof===P)return Vt(I,C,Al(I,j),X);wl(I,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,C!==null&&C.tag===6?(s(I,C.sibling),X=c(C,j),X.return=I,I=X):(s(I,C),X=ec(j,I.mode,X),X.return=I,I=X),m(I)):s(I,C)}return function(I,C,j,X){try{Js=0;var dt=Vt(I,C,j,X);return as=null,dt}catch(ot){if(ot===is||ot===xl)throw ot;var Bt=We(29,ot,null,I.mode);return Bt.lanes=X,Bt.return=I,Bt}}}var va=Ap(!0),Op=Ap(!1),zi=!1;function pc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Bi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ji(t,i,s){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var c=l.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),l.pending=i,i=El(t),up(t,null,s),i}return vl(t,l,i,s),El(t)}function er(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,md(t,s)}}function mc(t,i){var s=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var c=null,f=null;if(s=s.firstBaseUpdate,s!==null){do{var m={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};f===null?c=f=m:f=f.next=m,s=s.next}while(s!==null);f===null?c=f=i:f=f.next=i}else c=f=i;s={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}var gc=!1;function nr(){if(gc){var t=ns;if(t!==null)throw t}}function ir(t,i,s,l){gc=!1;var c=t.updateQueue;zi=!1;var f=c.firstBaseUpdate,m=c.lastBaseUpdate,T=c.shared.pending;if(T!==null){c.shared.pending=null;var R=T,$=R.next;R.next=null,m===null?f=$:m.next=$,m=R;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==m&&(T===null?Y.firstBaseUpdate=$:T.next=$,Y.lastBaseUpdate=R))}if(f!==null){var Q=c.baseState;m=0,Y=$=R=null,T=f;do{var q=T.lane&-536870913,H=q!==T.lane;if(H?(Lt&q)===q:(l&q)===q){q!==0&&q===es&&(gc=!0),Y!==null&&(Y=Y.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});t:{var ut=t,gt=T;q=i;var Vt=s;switch(gt.tag){case 1:if(ut=gt.payload,typeof ut=="function"){Q=ut.call(Vt,Q,q);break t}Q=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=gt.payload,q=typeof ut=="function"?ut.call(Vt,Q,q):ut,q==null)break t;Q=y({},Q,q);break t;case 2:zi=!0}}q=T.callback,q!==null&&(t.flags|=64,H&&(t.flags|=8192),H=c.callbacks,H===null?c.callbacks=[q]:H.push(q))}else H={lane:q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?($=Y=H,R=Q):Y=Y.next=H,m|=q;if(T=T.next,T===null){if(T=c.shared.pending,T===null)break;H=T,T=H.next,H.next=null,c.lastBaseUpdate=H,c.shared.pending=null}}while(!0);Y===null&&(R=Q),c.baseState=R,c.firstBaseUpdate=$,c.lastBaseUpdate=Y,f===null&&(c.shared.lanes=0),Gi|=m,t.lanes=m,t.memoizedState=Q}}function xp(t,i){if(typeof t!="function")throw Error(r(191,t));t.call(i)}function Np(t,i){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)xp(s[t],i)}var ss=x(null),Cl=x(0);function Rp(t,i){t=gi,F(Cl,t),F(ss,i),gi=t|i.baseLanes}function yc(){F(Cl,gi),F(ss,ss.current)}function vc(){gi=Cl.current,D(ss),D(Cl)}var Je=x(null),bn=null;function Di(t){var i=t.alternate;F(ue,ue.current&1),F(Je,t),bn===null&&(i===null||ss.current!==null||i.memoizedState!==null)&&(bn=t)}function Ec(t){F(ue,ue.current),F(Je,t),bn===null&&(bn=t)}function wp(t){t.tag===22?(F(ue,ue.current),F(Je,t),bn===null&&(bn=t)):$i()}function $i(){F(ue,ue.current),F(Je,Je.current)}function tn(t){D(Je),bn===t&&(bn=null),D(ue)}var ue=x(0);function Ll(t){for(var i=t;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Nf(s)||Rf(s)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var oi=0,St=null,Ft=null,de=null,Ml=!1,rs=!1,Ea=!1,kl=0,ar=0,ls=null,Cb=0;function ie(){throw Error(r(321))}function bc(t,i){if(i===null)return!1;for(var s=0;s<i.length&&s<t.length;s++)if(!Ze(t[s],i[s]))return!1;return!0}function Tc(t,i,s,l,c,f){return oi=f,St=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,k.H=t===null||t.memoizedState===null?h_:Bc,Ea=!1,f=s(l,c),Ea=!1,rs&&(f=Lp(i,s,l,c)),Cp(t),f}function Cp(t){k.H=lr;var i=Ft!==null&&Ft.next!==null;if(oi=0,de=Ft=St=null,Ml=!1,ar=0,ls=null,i)throw Error(r(300));t===null||pe||(t=t.dependencies,t!==null&&Sl(t)&&(pe=!0))}function Lp(t,i,s,l){St=t;var c=0;do{if(rs&&(ls=null),ar=0,rs=!1,25<=c)throw Error(r(301));if(c+=1,de=Ft=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=d_,f=i(s,l)}while(rs);return f}function Lb(){var t=k.H,i=t.useState()[0];return i=typeof i.then=="function"?sr(i):i,t=t.useState()[0],(Ft!==null?Ft.memoizedState:null)!==t&&(St.flags|=1024),i}function Sc(){var t=kl!==0;return kl=0,t}function Ac(t,i,s){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~s}function Oc(t){if(Ml){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Ml=!1}oi=0,de=Ft=St=null,rs=!1,ar=kl=0,ls=null}function Ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?St.memoizedState=de=t:de=de.next=t,de}function oe(){if(Ft===null){var t=St.alternate;t=t!==null?t.memoizedState:null}else t=Ft.next;var i=de===null?St.memoizedState:de.next;if(i!==null)de=i,Ft=t;else{if(t===null)throw St.alternate===null?Error(r(467)):Error(r(310));Ft=t,t={memoizedState:Ft.memoizedState,baseState:Ft.baseState,baseQueue:Ft.baseQueue,queue:Ft.queue,next:null},de===null?St.memoizedState=de=t:de=de.next=t}return de}function Il(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sr(t){var i=ar;return ar+=1,ls===null&&(ls=[]),t=bp(ls,t,i),i=St,(de===null?i.memoizedState:de.next)===null&&(i=i.alternate,k.H=i===null||i.memoizedState===null?h_:Bc),t}function Ul(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return sr(t);if(t.$$typeof===P)return xe(t)}throw Error(r(438,String(t)))}function xc(t){var i=null,s=St.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var l=St.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(c){return c.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=Il(),St.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(t),l=0;l<t;l++)s[l]=g;return i.index++,s}function ci(t,i){return typeof i=="function"?i(t):i}function zl(t){var i=oe();return Nc(i,Ft,t)}function Nc(t,i,s){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var c=t.baseQueue,f=l.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}i.baseQueue=c=f,l.pending=null}if(f=t.baseState,c===null)t.memoizedState=f;else{i=c.next;var T=m=null,R=null,$=i,Y=!1;do{var Q=$.lane&-536870913;if(Q!==$.lane?(Lt&Q)===Q:(oi&Q)===Q){var q=$.revertLane;if(q===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),Q===es&&(Y=!0);else if((oi&q)===q){$=$.next,q===es&&(Y=!0);continue}else Q={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(T=R=Q,m=f):R=R.next=Q,St.lanes|=q,Gi|=q;Q=$.action,Ea&&s(f,Q),f=$.hasEagerState?$.eagerState:s(f,Q)}else q={lane:Q,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(T=R=q,m=f):R=R.next=q,St.lanes|=Q,Gi|=Q;$=$.next}while($!==null&&$!==i);if(R===null?m=f:R.next=T,!Ze(f,t.memoizedState)&&(pe=!0,Y&&(s=ns,s!==null)))throw s;t.memoizedState=f,t.baseState=m,t.baseQueue=R,l.lastRenderedState=f}return c===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Rc(t){var i=oe(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var l=s.dispatch,c=s.pending,f=i.memoizedState;if(c!==null){s.pending=null;var m=c=c.next;do f=t(f,m.action),m=m.next;while(m!==c);Ze(f,i.memoizedState)||(pe=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),s.lastRenderedState=f}return[f,l]}function Mp(t,i,s){var l=St,c=oe(),f=It;if(f){if(s===void 0)throw Error(r(407));s=s()}else s=i();var m=!Ze((Ft||c).memoizedState,s);if(m&&(c.memoizedState=s,pe=!0),c=c.queue,Lc(Up.bind(null,l,c,t),[t]),c.getSnapshot!==i||m||de!==null&&de.memoizedState.tag&1){if(l.flags|=2048,us(9,{destroy:void 0},Ip.bind(null,l,c,s,i),null),Yt===null)throw Error(r(349));f||(oi&127)!==0||kp(l,i,s)}return s}function kp(t,i,s){t.flags|=16384,t={getSnapshot:i,value:s},i=St.updateQueue,i===null?(i=Il(),St.updateQueue=i,i.stores=[t]):(s=i.stores,s===null?i.stores=[t]:s.push(t))}function Ip(t,i,s,l){i.value=s,i.getSnapshot=l,zp(i)&&Bp(t)}function Up(t,i,s){return s(function(){zp(i)&&Bp(t)})}function zp(t){var i=t.getSnapshot;t=t.value;try{var s=i();return!Ze(t,s)}catch{return!0}}function Bp(t){var i=fa(t,2);i!==null&&Fe(i,t,2)}function wc(t){var i=Ie();if(typeof t=="function"){var s=t;if(t=s(),Ea){wi(!0);try{s()}finally{wi(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:t},i}function jp(t,i,s,l){return t.baseState=s,Nc(t,Ft,typeof l=="function"?l:ci)}function Mb(t,i,s,l,c){if(Dl(t))throw Error(r(485));if(t=i.action,t!==null){var f={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){f.listeners.push(m)}};k.T!==null?s(!0):f.isTransition=!1,l(f),s=i.pending,s===null?(f.next=i.pending=f,Dp(i,f)):(f.next=s.next,i.pending=s.next=f)}}function Dp(t,i){var s=i.action,l=i.payload,c=t.state;if(i.isTransition){var f=k.T,m={};k.T=m;try{var T=s(c,l),R=k.S;R!==null&&R(m,T),$p(t,i,T)}catch($){Cc(t,i,$)}finally{f!==null&&m.types!==null&&(f.types=m.types),k.T=f}}else try{f=s(c,l),$p(t,i,f)}catch($){Cc(t,i,$)}}function $p(t,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Pp(t,i,l)},function(l){return Cc(t,i,l)}):Pp(t,i,s)}function Pp(t,i,s){i.status="fulfilled",i.value=s,qp(i),t.state=s,i=t.pending,i!==null&&(s=i.next,s===i?t.pending=null:(s=s.next,i.next=s,Dp(t,s)))}function Cc(t,i,s){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=s,qp(i),i=i.next;while(i!==l)}t.action=null}function qp(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function Gp(t,i){return i}function Hp(t,i){if(It){var s=Yt.formState;if(s!==null){t:{var l=St;if(It){if(Zt){e:{for(var c=Zt,f=En;c.nodeType!==8;){if(!f){c=null;break e}if(c=Tn(c.nextSibling),c===null){c=null;break e}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Zt=Tn(c.nextSibling),l=c.data==="F!";break t}}Ii(l)}l=!1}l&&(i=s[0])}}return s=Ie(),s.memoizedState=s.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:i},s.queue=l,s=o_.bind(null,St,l),l.dispatch=s,l=wc(!1),f=zc.bind(null,St,!1,l.queue),l=Ie(),c={state:i,dispatch:null,action:t,pending:null},l.queue=c,s=Mb.bind(null,St,c,f,s),c.dispatch=s,l.memoizedState=t,[i,s,!1]}function Fp(t){var i=oe();return Kp(i,Ft,t)}function Kp(t,i,s){if(i=Nc(t,i,Gp)[0],t=zl(ci)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var l=sr(i)}catch(m){throw m===is?xl:m}else l=i;i=oe();var c=i.queue,f=c.dispatch;return s!==i.memoizedState&&(St.flags|=2048,us(9,{destroy:void 0},kb.bind(null,c,s),null)),[l,f,t]}function kb(t,i){t.action=i}function Vp(t){var i=oe(),s=Ft;if(s!==null)return Kp(i,s,t);oe(),i=i.memoizedState,s=oe();var l=s.queue.dispatch;return s.memoizedState=t,[i,l,!1]}function us(t,i,s,l){return t={tag:t,create:s,deps:l,inst:i,next:null},i=St.updateQueue,i===null&&(i=Il(),St.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=t.next=t:(l=s.next,s.next=t,t.next=l,i.lastEffect=t),t}function Yp(){return oe().memoizedState}function Bl(t,i,s,l){var c=Ie();St.flags|=t,c.memoizedState=us(1|i,{destroy:void 0},s,l===void 0?null:l)}function jl(t,i,s,l){var c=oe();l=l===void 0?null:l;var f=c.memoizedState.inst;Ft!==null&&l!==null&&bc(l,Ft.memoizedState.deps)?c.memoizedState=us(i,f,s,l):(St.flags|=t,c.memoizedState=us(1|i,f,s,l))}function Xp(t,i){Bl(8390656,8,t,i)}function Lc(t,i){jl(2048,8,t,i)}function Ib(t){St.flags|=4;var i=St.updateQueue;if(i===null)i=Il(),St.updateQueue=i,i.events=[t];else{var s=i.events;s===null?i.events=[t]:s.push(t)}}function Qp(t){var i=oe().memoizedState;return Ib({ref:i,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function Zp(t,i){return jl(4,2,t,i)}function Wp(t,i){return jl(4,4,t,i)}function Jp(t,i){if(typeof i=="function"){t=t();var s=i(t);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function t_(t,i,s){s=s!=null?s.concat([t]):null,jl(4,4,Jp.bind(null,i,t),s)}function Mc(){}function e_(t,i){var s=oe();i=i===void 0?null:i;var l=s.memoizedState;return i!==null&&bc(i,l[1])?l[0]:(s.memoizedState=[t,i],t)}function n_(t,i){var s=oe();i=i===void 0?null:i;var l=s.memoizedState;if(i!==null&&bc(i,l[1]))return l[0];if(l=t(),Ea){wi(!0);try{t()}finally{wi(!1)}}return s.memoizedState=[l,i],l}function kc(t,i,s){return s===void 0||(oi&1073741824)!==0&&(Lt&261930)===0?t.memoizedState=i:(t.memoizedState=s,t=im(),St.lanes|=t,Gi|=t,s)}function i_(t,i,s,l){return Ze(s,i)?s:ss.current!==null?(t=kc(t,s,l),Ze(t,i)||(pe=!0),t):(oi&42)===0||(oi&1073741824)!==0&&(Lt&261930)===0?(pe=!0,t.memoizedState=s):(t=im(),St.lanes|=t,Gi|=t,i)}function a_(t,i,s,l,c){var f=K.p;K.p=f!==0&&8>f?f:8;var m=k.T,T={};k.T=T,zc(t,!1,i,s);try{var R=c(),$=k.S;if($!==null&&$(T,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Y=wb(R,l);rr(t,i,Y,an(t))}else rr(t,i,l,an(t))}catch(Q){rr(t,i,{then:function(){},status:"rejected",reason:Q},an())}finally{K.p=f,m!==null&&T.types!==null&&(m.types=T.types),k.T=m}}function Ub(){}function Ic(t,i,s,l){if(t.tag!==5)throw Error(r(476));var c=s_(t).queue;a_(t,c,i,nt,s===null?Ub:function(){return r_(t),s(l)})}function s_(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:nt},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:s},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function r_(t){var i=s_(t);i.next===null&&(i=t.alternate.memoizedState),rr(t,i.next.queue,{},an())}function Uc(){return xe(Sr)}function l_(){return oe().memoizedState}function u_(){return oe().memoizedState}function zb(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var s=an();t=Bi(s);var l=ji(i,t,s);l!==null&&(Fe(l,i,s),er(l,i,s)),i={cache:cc()},t.payload=i;return}i=i.return}}function Bb(t,i,s){var l=an();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Dl(t)?c_(i,s):(s=Jo(t,i,s,l),s!==null&&(Fe(s,t,l),f_(s,i,l)))}function o_(t,i,s){var l=an();rr(t,i,s,l)}function rr(t,i,s,l){var c={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Dl(t))c_(i,c);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var m=i.lastRenderedState,T=f(m,s);if(c.hasEagerState=!0,c.eagerState=T,Ze(T,m))return vl(t,i,c,0),Yt===null&&yl(),!1}catch{}if(s=Jo(t,i,c,l),s!==null)return Fe(s,t,l),f_(s,i,l),!0}return!1}function zc(t,i,s,l){if(l={lane:2,revertLane:_f(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Dl(t)){if(i)throw Error(r(479))}else i=Jo(t,s,l,2),i!==null&&Fe(i,t,2)}function Dl(t){var i=t.alternate;return t===St||i!==null&&i===St}function c_(t,i){rs=Ml=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function f_(t,i,s){if((s&4194048)!==0){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,md(t,s)}}var lr={readContext:xe,use:Ul,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useLayoutEffect:ie,useInsertionEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useSyncExternalStore:ie,useId:ie,useHostTransitionStatus:ie,useFormState:ie,useActionState:ie,useOptimistic:ie,useMemoCache:ie,useCacheRefresh:ie};lr.useEffectEvent=ie;var h_={readContext:xe,use:Ul,useCallback:function(t,i){return Ie().memoizedState=[t,i===void 0?null:i],t},useContext:xe,useEffect:Xp,useImperativeHandle:function(t,i,s){s=s!=null?s.concat([t]):null,Bl(4194308,4,Jp.bind(null,i,t),s)},useLayoutEffect:function(t,i){return Bl(4194308,4,t,i)},useInsertionEffect:function(t,i){Bl(4,2,t,i)},useMemo:function(t,i){var s=Ie();i=i===void 0?null:i;var l=t();if(Ea){wi(!0);try{t()}finally{wi(!1)}}return s.memoizedState=[l,i],l},useReducer:function(t,i,s){var l=Ie();if(s!==void 0){var c=s(i);if(Ea){wi(!0);try{s(i)}finally{wi(!1)}}}else c=i;return l.memoizedState=l.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},l.queue=t,t=t.dispatch=Bb.bind(null,St,t),[l.memoizedState,t]},useRef:function(t){var i=Ie();return t={current:t},i.memoizedState=t},useState:function(t){t=wc(t);var i=t.queue,s=o_.bind(null,St,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Mc,useDeferredValue:function(t,i){var s=Ie();return kc(s,t,i)},useTransition:function(){var t=wc(!1);return t=a_.bind(null,St,t.queue,!0,!1),Ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,s){var l=St,c=Ie();if(It){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),Yt===null)throw Error(r(349));(Lt&127)!==0||kp(l,i,s)}c.memoizedState=s;var f={value:s,getSnapshot:i};return c.queue=f,Xp(Up.bind(null,l,f,t),[t]),l.flags|=2048,us(9,{destroy:void 0},Ip.bind(null,l,f,s,i),null),s},useId:function(){var t=Ie(),i=Yt.identifierPrefix;if(It){var s=Hn,l=Gn;s=(l&~(1<<32-Qe(l)-1)).toString(32)+s,i="_"+i+"R_"+s,s=kl++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=Cb++,i="_"+i+"r_"+s.toString(32)+"_";return t.memoizedState=i},useHostTransitionStatus:Uc,useFormState:Hp,useActionState:Hp,useOptimistic:function(t){var i=Ie();i.memoizedState=i.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=zc.bind(null,St,!0,s),s.dispatch=i,[t,i]},useMemoCache:xc,useCacheRefresh:function(){return Ie().memoizedState=zb.bind(null,St)},useEffectEvent:function(t){var i=Ie(),s={impl:t};return i.memoizedState=s,function(){if((Dt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Bc={readContext:xe,use:Ul,useCallback:e_,useContext:xe,useEffect:Lc,useImperativeHandle:t_,useInsertionEffect:Zp,useLayoutEffect:Wp,useMemo:n_,useReducer:zl,useRef:Yp,useState:function(){return zl(ci)},useDebugValue:Mc,useDeferredValue:function(t,i){var s=oe();return i_(s,Ft.memoizedState,t,i)},useTransition:function(){var t=zl(ci)[0],i=oe().memoizedState;return[typeof t=="boolean"?t:sr(t),i]},useSyncExternalStore:Mp,useId:l_,useHostTransitionStatus:Uc,useFormState:Fp,useActionState:Fp,useOptimistic:function(t,i){var s=oe();return jp(s,Ft,t,i)},useMemoCache:xc,useCacheRefresh:u_};Bc.useEffectEvent=Qp;var d_={readContext:xe,use:Ul,useCallback:e_,useContext:xe,useEffect:Lc,useImperativeHandle:t_,useInsertionEffect:Zp,useLayoutEffect:Wp,useMemo:n_,useReducer:Rc,useRef:Yp,useState:function(){return Rc(ci)},useDebugValue:Mc,useDeferredValue:function(t,i){var s=oe();return Ft===null?kc(s,t,i):i_(s,Ft.memoizedState,t,i)},useTransition:function(){var t=Rc(ci)[0],i=oe().memoizedState;return[typeof t=="boolean"?t:sr(t),i]},useSyncExternalStore:Mp,useId:l_,useHostTransitionStatus:Uc,useFormState:Vp,useActionState:Vp,useOptimistic:function(t,i){var s=oe();return Ft!==null?jp(s,Ft,t,i):(s.baseState=t,[t,s.queue.dispatch])},useMemoCache:xc,useCacheRefresh:u_};d_.useEffectEvent=Qp;function jc(t,i,s,l){i=t.memoizedState,s=s(l,i),s=s==null?i:y({},i,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var Dc={enqueueSetState:function(t,i,s){t=t._reactInternals;var l=an(),c=Bi(l);c.payload=i,s!=null&&(c.callback=s),i=ji(t,c,l),i!==null&&(Fe(i,t,l),er(i,t,l))},enqueueReplaceState:function(t,i,s){t=t._reactInternals;var l=an(),c=Bi(l);c.tag=1,c.payload=i,s!=null&&(c.callback=s),i=ji(t,c,l),i!==null&&(Fe(i,t,l),er(i,t,l))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var s=an(),l=Bi(s);l.tag=2,i!=null&&(l.callback=i),i=ji(t,l,s),i!==null&&(Fe(i,t,s),er(i,t,s))}};function p_(t,i,s,l,c,f,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,f,m):i.prototype&&i.prototype.isPureReactComponent?!Vs(s,l)||!Vs(c,f):!0}function __(t,i,s,l){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,l),i.state!==t&&Dc.enqueueReplaceState(i,i.state,null)}function ba(t,i){var s=i;if("ref"in i){s={};for(var l in i)l!=="ref"&&(s[l]=i[l])}if(t=t.defaultProps){s===i&&(s=y({},s));for(var c in t)s[c]===void 0&&(s[c]=t[c])}return s}function m_(t){gl(t)}function g_(t){console.error(t)}function y_(t){gl(t)}function $l(t,i){try{var s=t.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function v_(t,i,s){try{var l=t.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function $c(t,i,s){return s=Bi(s),s.tag=3,s.payload={element:null},s.callback=function(){$l(t,i)},s}function E_(t){return t=Bi(t),t.tag=3,t}function b_(t,i,s,l){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var f=l.value;t.payload=function(){return c(f)},t.callback=function(){v_(i,s,l)}}var m=s.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){v_(i,s,l),typeof c!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var T=l.stack;this.componentDidCatch(l.value,{componentStack:T!==null?T:""})})}function jb(t,i,s,l,c){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=s.alternate,i!==null&&ts(i,s,c,!0),s=Je.current,s!==null){switch(s.tag){case 31:case 13:return bn===null?Wl():s.alternate===null&&ae===0&&(ae=3),s.flags&=-257,s.flags|=65536,s.lanes=c,l===Nl?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([l]):i.add(l),hf(t,l,c)),!1;case 22:return s.flags|=65536,l===Nl?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([l]):s.add(l)),hf(t,l,c)),!1}throw Error(r(435,s.tag))}return hf(t,l,c),Wl(),!1}if(It)return i=Je.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=c,l!==sc&&(t=Error(r(422),{cause:l}),Qs(gn(t,s)))):(l!==sc&&(i=Error(r(423),{cause:l}),Qs(gn(i,s))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,l=gn(l,s),c=$c(t.stateNode,l,c),mc(t,c),ae!==4&&(ae=2)),!1;var f=Error(r(520),{cause:l});if(f=gn(f,s),_r===null?_r=[f]:_r.push(f),ae!==4&&(ae=2),i===null)return!0;l=gn(l,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,t=c&-c,s.lanes|=t,t=$c(s.stateNode,l,t),mc(s,t),!1;case 1:if(i=s.type,f=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Hi===null||!Hi.has(f))))return s.flags|=65536,c&=-c,s.lanes|=c,c=E_(c),b_(c,t,s,l),mc(s,c),!1}s=s.return}while(s!==null);return!1}var Pc=Error(r(461)),pe=!1;function Ne(t,i,s,l){i.child=t===null?Op(i,null,s,l):va(i,t.child,s,l)}function T_(t,i,s,l,c){s=s.render;var f=i.ref;if("ref"in l){var m={};for(var T in l)T!=="ref"&&(m[T]=l[T])}else m=l;return _a(i),l=Tc(t,i,s,m,f,c),T=Sc(),t!==null&&!pe?(Ac(t,i,c),fi(t,i,c)):(It&&T&&ic(i),i.flags|=1,Ne(t,i,l,c),i.child)}function S_(t,i,s,l,c){if(t===null){var f=s.type;return typeof f=="function"&&!tc(f)&&f.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=f,A_(t,i,f,l,c)):(t=bl(s.type,null,l,i,i.mode,c),t.ref=i.ref,t.return=i,i.child=t)}if(f=t.child,!Xc(t,c)){var m=f.memoizedProps;if(s=s.compare,s=s!==null?s:Vs,s(m,l)&&t.ref===i.ref)return fi(t,i,c)}return i.flags|=1,t=si(f,l),t.ref=i.ref,t.return=i,i.child=t}function A_(t,i,s,l,c){if(t!==null){var f=t.memoizedProps;if(Vs(f,l)&&t.ref===i.ref)if(pe=!1,i.pendingProps=l=f,Xc(t,c))(t.flags&131072)!==0&&(pe=!0);else return i.lanes=t.lanes,fi(t,i,c)}return qc(t,i,s,l,c)}function O_(t,i,s,l){var c=l.children,f=t!==null?t.memoizedState:null;if(t===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((i.flags&128)!==0){if(f=f!==null?f.baseLanes|s:s,t!==null){for(l=i.child=t.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~f}else l=0,i.child=null;return x_(t,i,f,s,l)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ol(i,f!==null?f.cachePool:null),f!==null?Rp(i,f):yc(),wp(i);else return l=i.lanes=536870912,x_(t,i,f!==null?f.baseLanes|s:s,s,l)}else f!==null?(Ol(i,f.cachePool),Rp(i,f),$i(),i.memoizedState=null):(t!==null&&Ol(i,null),yc(),$i());return Ne(t,i,c,s),i.child}function ur(t,i){return t!==null&&t.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function x_(t,i,s,l,c){var f=hc();return f=f===null?null:{parent:he._currentValue,pool:f},i.memoizedState={baseLanes:s,cachePool:f},t!==null&&Ol(i,null),yc(),wp(i),t!==null&&ts(t,i,l,!0),i.childLanes=c,null}function Pl(t,i){return i=Gl({mode:i.mode,children:i.children},t.mode),i.ref=t.ref,t.child=i,i.return=t,i}function N_(t,i,s){return va(i,t.child,null,s),t=Pl(i,i.pendingProps),t.flags|=2,tn(i),i.memoizedState=null,t}function Db(t,i,s){var l=i.pendingProps,c=(i.flags&128)!==0;if(i.flags&=-129,t===null){if(It){if(l.mode==="hidden")return t=Pl(i,l),i.lanes=536870912,ur(null,t);if(Ec(i),(t=Zt)?(t=Dm(t,En),t=t!==null&&t.data==="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Mi!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},s=cp(t),s.return=i,i.child=s,Oe=i,Zt=null)):t=null,t===null)throw Ii(i);return i.lanes=536870912,null}return Pl(i,l)}var f=t.memoizedState;if(f!==null){var m=f.dehydrated;if(Ec(i),c)if(i.flags&256)i.flags&=-257,i=N_(t,i,s);else if(i.memoizedState!==null)i.child=t.child,i.flags|=128,i=null;else throw Error(r(558));else if(pe||ts(t,i,s,!1),c=(s&t.childLanes)!==0,pe||c){if(l=Yt,l!==null&&(m=gd(l,s),m!==0&&m!==f.retryLane))throw f.retryLane=m,fa(t,m),Fe(l,t,m),Pc;Wl(),i=N_(t,i,s)}else t=f.treeContext,Zt=Tn(m.nextSibling),Oe=i,It=!0,ki=null,En=!1,t!==null&&dp(i,t),i=Pl(i,l),i.flags|=4096;return i}return t=si(t.child,{mode:l.mode,children:l.children}),t.ref=i.ref,i.child=t,t.return=i,t}function ql(t,i){var s=i.ref;if(s===null)t!==null&&t.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(t===null||t.ref!==s)&&(i.flags|=4194816)}}function qc(t,i,s,l,c){return _a(i),s=Tc(t,i,s,l,void 0,c),l=Sc(),t!==null&&!pe?(Ac(t,i,c),fi(t,i,c)):(It&&l&&ic(i),i.flags|=1,Ne(t,i,s,c),i.child)}function R_(t,i,s,l,c,f){return _a(i),i.updateQueue=null,s=Lp(i,l,s,c),Cp(t),l=Sc(),t!==null&&!pe?(Ac(t,i,f),fi(t,i,f)):(It&&l&&ic(i),i.flags|=1,Ne(t,i,s,f),i.child)}function w_(t,i,s,l,c){if(_a(i),i.stateNode===null){var f=Qa,m=s.contextType;typeof m=="object"&&m!==null&&(f=xe(m)),f=new s(l,f),i.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Dc,i.stateNode=f,f._reactInternals=i,f=i.stateNode,f.props=l,f.state=i.memoizedState,f.refs={},pc(i),m=s.contextType,f.context=typeof m=="object"&&m!==null?xe(m):Qa,f.state=i.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(jc(i,s,m,l),f.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(m=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),m!==f.state&&Dc.enqueueReplaceState(f,f.state,null),ir(i,l,f,c),nr(),f.state=i.memoizedState),typeof f.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(t===null){f=i.stateNode;var T=i.memoizedProps,R=ba(s,T);f.props=R;var $=f.context,Y=s.contextType;m=Qa,typeof Y=="object"&&Y!==null&&(m=xe(Y));var Q=s.getDerivedStateFromProps;Y=typeof Q=="function"||typeof f.getSnapshotBeforeUpdate=="function",T=i.pendingProps!==T,Y||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(T||$!==m)&&__(i,f,l,m),zi=!1;var q=i.memoizedState;f.state=q,ir(i,l,f,c),nr(),$=i.memoizedState,T||q!==$||zi?(typeof Q=="function"&&(jc(i,s,Q,l),$=i.memoizedState),(R=zi||p_(i,s,R,l,q,$,m))?(Y||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(i.flags|=4194308)):(typeof f.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=$),f.props=l,f.state=$,f.context=m,l=R):(typeof f.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{f=i.stateNode,_c(t,i),m=i.memoizedProps,Y=ba(s,m),f.props=Y,Q=i.pendingProps,q=f.context,$=s.contextType,R=Qa,typeof $=="object"&&$!==null&&(R=xe($)),T=s.getDerivedStateFromProps,($=typeof T=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(m!==Q||q!==R)&&__(i,f,l,R),zi=!1,q=i.memoizedState,f.state=q,ir(i,l,f,c),nr();var H=i.memoizedState;m!==Q||q!==H||zi||t!==null&&t.dependencies!==null&&Sl(t.dependencies)?(typeof T=="function"&&(jc(i,s,T,l),H=i.memoizedState),(Y=zi||p_(i,s,Y,l,q,H,R)||t!==null&&t.dependencies!==null&&Sl(t.dependencies))?($||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,H,R),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,H,R)),typeof f.componentDidUpdate=="function"&&(i.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof f.componentDidUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=H),f.props=l,f.state=H,f.context=R,l=Y):(typeof f.componentDidUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&q===t.memoizedState||(i.flags|=1024),l=!1)}return f=l,ql(t,i),l=(i.flags&128)!==0,f||l?(f=i.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:f.render(),i.flags|=1,t!==null&&l?(i.child=va(i,t.child,null,c),i.child=va(i,null,s,c)):Ne(t,i,s,c),i.memoizedState=f.state,t=i.child):t=fi(t,i,c),t}function C_(t,i,s,l){return da(),i.flags|=256,Ne(t,i,s,l),i.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:vp()}}function Fc(t,i,s){return t=t!==null?t.childLanes&~s:0,i&&(t|=nn),t}function L_(t,i,s){var l=i.pendingProps,c=!1,f=(i.flags&128)!==0,m;if((m=f)||(m=t!==null&&t.memoizedState===null?!1:(ue.current&2)!==0),m&&(c=!0,i.flags&=-129),m=(i.flags&32)!==0,i.flags&=-33,t===null){if(It){if(c?Di(i):$i(),(t=Zt)?(t=Dm(t,En),t=t!==null&&t.data!=="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Mi!==null?{id:Gn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},s=cp(t),s.return=i,i.child=s,Oe=i,Zt=null)):t=null,t===null)throw Ii(i);return Rf(t)?i.lanes=32:i.lanes=536870912,null}var T=l.children;return l=l.fallback,c?($i(),c=i.mode,T=Gl({mode:"hidden",children:T},c),l=ha(l,c,s,null),T.return=i,l.return=i,T.sibling=l,i.child=T,l=i.child,l.memoizedState=Hc(s),l.childLanes=Fc(t,m,s),i.memoizedState=Gc,ur(null,l)):(Di(i),Kc(i,T))}var R=t.memoizedState;if(R!==null&&(T=R.dehydrated,T!==null)){if(f)i.flags&256?(Di(i),i.flags&=-257,i=Vc(t,i,s)):i.memoizedState!==null?($i(),i.child=t.child,i.flags|=128,i=null):($i(),T=l.fallback,c=i.mode,l=Gl({mode:"visible",children:l.children},c),T=ha(T,c,s,null),T.flags|=2,l.return=i,T.return=i,l.sibling=T,i.child=l,va(i,t.child,null,s),l=i.child,l.memoizedState=Hc(s),l.childLanes=Fc(t,m,s),i.memoizedState=Gc,i=ur(null,l));else if(Di(i),Rf(T)){if(m=T.nextSibling&&T.nextSibling.dataset,m)var $=m.dgst;m=$,l=Error(r(419)),l.stack="",l.digest=m,Qs({value:l,source:null,stack:null}),i=Vc(t,i,s)}else if(pe||ts(t,i,s,!1),m=(s&t.childLanes)!==0,pe||m){if(m=Yt,m!==null&&(l=gd(m,s),l!==0&&l!==R.retryLane))throw R.retryLane=l,fa(t,l),Fe(m,t,l),Pc;Nf(T)||Wl(),i=Vc(t,i,s)}else Nf(T)?(i.flags|=192,i.child=t.child,i=null):(t=R.treeContext,Zt=Tn(T.nextSibling),Oe=i,It=!0,ki=null,En=!1,t!==null&&dp(i,t),i=Kc(i,l.children),i.flags|=4096);return i}return c?($i(),T=l.fallback,c=i.mode,R=t.child,$=R.sibling,l=si(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,$!==null?T=si($,T):(T=ha(T,c,s,null),T.flags|=2),T.return=i,l.return=i,l.sibling=T,i.child=l,ur(null,l),l=i.child,T=t.child.memoizedState,T===null?T=Hc(s):(c=T.cachePool,c!==null?(R=he._currentValue,c=c.parent!==R?{parent:R,pool:R}:c):c=vp(),T={baseLanes:T.baseLanes|s,cachePool:c}),l.memoizedState=T,l.childLanes=Fc(t,m,s),i.memoizedState=Gc,ur(t.child,l)):(Di(i),s=t.child,t=s.sibling,s=si(s,{mode:"visible",children:l.children}),s.return=i,s.sibling=null,t!==null&&(m=i.deletions,m===null?(i.deletions=[t],i.flags|=16):m.push(t)),i.child=s,i.memoizedState=null,s)}function Kc(t,i){return i=Gl({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function Gl(t,i){return t=We(22,t,null,i),t.lanes=0,t}function Vc(t,i,s){return va(i,t.child,null,s),t=Kc(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function M_(t,i,s){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i),uc(t.return,i,s)}function Yc(t,i,s,l,c,f){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:c,treeForkCount:f}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=s,m.tailMode=c,m.treeForkCount=f)}function k_(t,i,s){var l=i.pendingProps,c=l.revealOrder,f=l.tail;l=l.children;var m=ue.current,T=(m&2)!==0;if(T?(m=m&1|2,i.flags|=128):m&=1,F(ue,m),Ne(t,i,l,s),l=It?Xs:0,!T&&t!==null&&(t.flags&128)!==0)t:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&M_(t,s,i);else if(t.tag===19)M_(t,s,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break t;for(;t.sibling===null;){if(t.return===null||t.return===i)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(c){case"forwards":for(s=i.child,c=null;s!==null;)t=s.alternate,t!==null&&Ll(t)===null&&(c=s),s=s.sibling;s=c,s===null?(c=i.child,i.child=null):(c=s.sibling,s.sibling=null),Yc(i,!1,c,s,f,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,c=i.child,i.child=null;c!==null;){if(t=c.alternate,t!==null&&Ll(t)===null){i.child=c;break}t=c.sibling,c.sibling=s,s=c,c=t}Yc(i,!0,s,null,f,l);break;case"together":Yc(i,!1,null,null,void 0,l);break;default:i.memoizedState=null}return i.child}function fi(t,i,s){if(t!==null&&(i.dependencies=t.dependencies),Gi|=i.lanes,(s&i.childLanes)===0)if(t!==null){if(ts(t,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,s=si(t,t.pendingProps),i.child=s,s.return=i;t.sibling!==null;)t=t.sibling,s=s.sibling=si(t,t.pendingProps),s.return=i;s.sibling=null}return i.child}function Xc(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&Sl(t)))}function $b(t,i,s){switch(i.tag){case 3:ct(i,i.stateNode.containerInfo),Ui(i,he,t.memoizedState.cache),da();break;case 27:case 5:xt(i);break;case 4:ct(i,i.stateNode.containerInfo);break;case 10:Ui(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Ec(i),null;break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(Di(i),i.flags|=128,null):(s&i.child.childLanes)!==0?L_(t,i,s):(Di(i),t=fi(t,i,s),t!==null?t.sibling:null);Di(i);break;case 19:var c=(t.flags&128)!==0;if(l=(s&i.childLanes)!==0,l||(ts(t,i,s,!1),l=(s&i.childLanes)!==0),c){if(l)return k_(t,i,s);i.flags|=128}if(c=i.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),F(ue,ue.current),l)break;return null;case 22:return i.lanes=0,O_(t,i,s,i.pendingProps);case 24:Ui(i,he,t.memoizedState.cache)}return fi(t,i,s)}function I_(t,i,s){if(t!==null)if(t.memoizedProps!==i.pendingProps)pe=!0;else{if(!Xc(t,s)&&(i.flags&128)===0)return pe=!1,$b(t,i,s);pe=(t.flags&131072)!==0}else pe=!1,It&&(i.flags&1048576)!==0&&hp(i,Xs,i.index);switch(i.lanes=0,i.tag){case 16:t:{var l=i.pendingProps;if(t=ga(i.elementType),i.type=t,typeof t=="function")tc(t)?(l=ba(t,l),i.tag=1,i=w_(null,i,t,l,s)):(i.tag=0,i=qc(null,i,t,l,s));else{if(t!=null){var c=t.$$typeof;if(c===B){i.tag=11,i=T_(null,i,t,l,s);break t}else if(c===w){i.tag=14,i=S_(null,i,t,l,s);break t}}throw i=at(t)||t,Error(r(306,i,""))}}return i;case 0:return qc(t,i,i.type,i.pendingProps,s);case 1:return l=i.type,c=ba(l,i.pendingProps),w_(t,i,l,c,s);case 3:t:{if(ct(i,i.stateNode.containerInfo),t===null)throw Error(r(387));l=i.pendingProps;var f=i.memoizedState;c=f.element,_c(t,i),ir(i,l,null,s);var m=i.memoizedState;if(l=m.cache,Ui(i,he,l),l!==f.cache&&oc(i,[he],s,!0),nr(),l=m.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:m.cache},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){i=C_(t,i,l,s);break t}else if(l!==c){c=gn(Error(r(424)),i),Qs(c),i=C_(t,i,l,s);break t}else for(t=i.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Zt=Tn(t.firstChild),Oe=i,It=!0,ki=null,En=!0,s=Op(i,null,l,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(da(),l===c){i=fi(t,i,s);break t}Ne(t,i,l,s)}i=i.child}return i;case 26:return ql(t,i),t===null?(s=Fm(i.type,null,i.pendingProps,null))?i.memoizedState=s:It||(s=i.type,t=i.pendingProps,l=su(st.current).createElement(s),l[Ae]=i,l[De]=t,Re(l,s,t),be(l),i.stateNode=l):i.memoizedState=Fm(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return xt(i),t===null&&It&&(l=i.stateNode=qm(i.type,i.pendingProps,st.current),Oe=i,En=!0,c=Zt,Yi(i.type)?(wf=c,Zt=Tn(l.firstChild)):Zt=c),Ne(t,i,i.pendingProps.children,s),ql(t,i),t===null&&(i.flags|=4194304),i.child;case 5:return t===null&&It&&((c=l=Zt)&&(l=mT(l,i.type,i.pendingProps,En),l!==null?(i.stateNode=l,Oe=i,Zt=Tn(l.firstChild),En=!1,c=!0):c=!1),c||Ii(i)),xt(i),c=i.type,f=i.pendingProps,m=t!==null?t.memoizedProps:null,l=f.children,Af(c,f)?l=null:m!==null&&Af(c,m)&&(i.flags|=32),i.memoizedState!==null&&(c=Tc(t,i,Lb,null,null,s),Sr._currentValue=c),ql(t,i),Ne(t,i,l,s),i.child;case 6:return t===null&&It&&((t=s=Zt)&&(s=gT(s,i.pendingProps,En),s!==null?(i.stateNode=s,Oe=i,Zt=null,t=!0):t=!1),t||Ii(i)),null;case 13:return L_(t,i,s);case 4:return ct(i,i.stateNode.containerInfo),l=i.pendingProps,t===null?i.child=va(i,null,l,s):Ne(t,i,l,s),i.child;case 11:return T_(t,i,i.type,i.pendingProps,s);case 7:return Ne(t,i,i.pendingProps,s),i.child;case 8:return Ne(t,i,i.pendingProps.children,s),i.child;case 12:return Ne(t,i,i.pendingProps.children,s),i.child;case 10:return l=i.pendingProps,Ui(i,i.type,l.value),Ne(t,i,l.children,s),i.child;case 9:return c=i.type._context,l=i.pendingProps.children,_a(i),c=xe(c),l=l(c),i.flags|=1,Ne(t,i,l,s),i.child;case 14:return S_(t,i,i.type,i.pendingProps,s);case 15:return A_(t,i,i.type,i.pendingProps,s);case 19:return k_(t,i,s);case 31:return Db(t,i,s);case 22:return O_(t,i,s,i.pendingProps);case 24:return _a(i),l=xe(he),t===null?(c=hc(),c===null&&(c=Yt,f=cc(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=s),c=f),i.memoizedState={parent:l,cache:c},pc(i),Ui(i,he,c)):((t.lanes&s)!==0&&(_c(t,i),ir(i,null,null,s),nr()),c=t.memoizedState,f=i.memoizedState,c.parent!==l?(c={parent:l,cache:l},i.memoizedState=c,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=c),Ui(i,he,l)):(l=f.cache,Ui(i,he,l),l!==c.cache&&oc(i,[he],s,!0))),Ne(t,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function hi(t){t.flags|=4}function Qc(t,i,s,l,c){if((i=(t.mode&32)!==0)&&(i=!1),i){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if(lm())t.flags|=8192;else throw ya=Nl,dc}else t.flags&=-16777217}function U_(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Qm(i))if(lm())t.flags|=8192;else throw ya=Nl,dc}function Hl(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?pd():536870912,t.lanes|=i,hs|=i)}function or(t,i){if(!It)switch(t.tailMode){case"hidden":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Wt(t){var i=t.alternate!==null&&t.alternate.child===t.child,s=0,l=0;if(i)for(var c=t.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=l,t.childLanes=s,i}function Pb(t,i,s){var l=i.pendingProps;switch(ac(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(i),null;case 1:return Wt(i),null;case 3:return s=i.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ui(he),rt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(Ja(i)?hi(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,rc())),Wt(i),null;case 26:var c=i.type,f=i.memoizedState;return t===null?(hi(i),f!==null?(Wt(i),U_(i,f)):(Wt(i),Qc(i,c,null,l,s))):f?f!==t.memoizedState?(hi(i),Wt(i),U_(i,f)):(Wt(i),i.flags&=-16777217):(t=t.memoizedProps,t!==l&&hi(i),Wt(i),Qc(i,c,t,l,s)),null;case 27:if(mt(i),s=st.current,c=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==l&&hi(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return Wt(i),null}t=J.current,Ja(i)?pp(i):(t=qm(c,l,s),i.stateNode=t,hi(i))}return Wt(i),null;case 5:if(mt(i),c=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==l&&hi(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return Wt(i),null}if(f=J.current,Ja(i))pp(i);else{var m=su(st.current);switch(f){case 1:f=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:f=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":f=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":f=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":f=m.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}f[Ae]=i,f[De]=l;t:for(m=i.child;m!==null;){if(m.tag===5||m.tag===6)f.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===i)break t;for(;m.sibling===null;){if(m.return===null||m.return===i)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}i.stateNode=f;t:switch(Re(f,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&hi(i)}}return Wt(i),Qc(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,s),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==l&&hi(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(r(166));if(t=st.current,Ja(i)){if(t=i.stateNode,s=i.memoizedProps,l=null,c=Oe,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}t[Ae]=i,t=!!(t.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Lm(t.nodeValue,s)),t||Ii(i,!0)}else t=su(t).createTextNode(l),t[Ae]=i,i.stateNode=t}return Wt(i),null;case 31:if(s=i.memoizedState,t===null||t.memoizedState!==null){if(l=Ja(i),s!==null){if(t===null){if(!l)throw Error(r(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Ae]=i}else da(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Wt(i),t=!1}else s=rc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),t=!0;if(!t)return i.flags&256?(tn(i),i):(tn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Wt(i),null;case 13:if(l=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Ja(i),l!==null&&l.dehydrated!==null){if(t===null){if(!c)throw Error(r(318));if(c=i.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[Ae]=i}else da(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Wt(i),c=!1}else c=rc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return i.flags&256?(tn(i),i):(tn(i),null)}return tn(i),(i.flags&128)!==0?(i.lanes=s,i):(s=l!==null,t=t!==null&&t.memoizedState!==null,s&&(l=i.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==c&&(l.flags|=2048)),s!==t&&s&&(i.child.flags|=8192),Hl(i,i.updateQueue),Wt(i),null);case 4:return rt(),t===null&&vf(i.stateNode.containerInfo),Wt(i),null;case 10:return ui(i.type),Wt(i),null;case 19:if(D(ue),l=i.memoizedState,l===null)return Wt(i),null;if(c=(i.flags&128)!==0,f=l.rendering,f===null)if(c)or(l,!1);else{if(ae!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(f=Ll(t),f!==null){for(i.flags|=128,or(l,!1),t=f.updateQueue,i.updateQueue=t,Hl(i,t),i.subtreeFlags=0,t=s,s=i.child;s!==null;)op(s,t),s=s.sibling;return F(ue,ue.current&1|2),It&&ri(i,l.treeForkCount),i.child}t=t.sibling}l.tail!==null&&$t()>Xl&&(i.flags|=128,c=!0,or(l,!1),i.lanes=4194304)}else{if(!c)if(t=Ll(f),t!==null){if(i.flags|=128,c=!0,t=t.updateQueue,i.updateQueue=t,Hl(i,t),or(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!It)return Wt(i),null}else 2*$t()-l.renderingStartTime>Xl&&s!==536870912&&(i.flags|=128,c=!0,or(l,!1),i.lanes=4194304);l.isBackwards?(f.sibling=i.child,i.child=f):(t=l.last,t!==null?t.sibling=f:i.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=$t(),t.sibling=null,s=ue.current,F(ue,c?s&1|2:s&1),It&&ri(i,l.treeForkCount),t):(Wt(i),null);case 22:case 23:return tn(i),vc(),l=i.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(s&536870912)!==0&&(i.flags&128)===0&&(Wt(i),i.subtreeFlags&6&&(i.flags|=8192)):Wt(i),s=i.updateQueue,s!==null&&Hl(i,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048),t!==null&&D(ma),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),ui(he),Wt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function qb(t,i){switch(ac(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return ui(he),rt(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return mt(i),null;case 31:if(i.memoizedState!==null){if(tn(i),i.alternate===null)throw Error(r(340));da()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(tn(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));da()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return D(ue),null;case 4:return rt(),null;case 10:return ui(i.type),null;case 22:case 23:return tn(i),vc(),t!==null&&D(ma),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return ui(he),null;case 25:return null;default:return null}}function z_(t,i){switch(ac(i),i.tag){case 3:ui(he),rt();break;case 26:case 27:case 5:mt(i);break;case 4:rt();break;case 31:i.memoizedState!==null&&tn(i);break;case 13:tn(i);break;case 19:D(ue);break;case 10:ui(i.type);break;case 22:case 23:tn(i),vc(),t!==null&&D(ma);break;case 24:ui(he)}}function cr(t,i){try{var s=i.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var c=l.next;s=c;do{if((s.tag&t)===t){l=void 0;var f=s.create,m=s.inst;l=f(),m.destroy=l}s=s.next}while(s!==c)}}catch(T){Gt(i,i.return,T)}}function Pi(t,i,s){try{var l=i.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var f=c.next;l=f;do{if((l.tag&t)===t){var m=l.inst,T=m.destroy;if(T!==void 0){m.destroy=void 0,c=i;var R=s,$=T;try{$()}catch(Y){Gt(c,R,Y)}}}l=l.next}while(l!==f)}}catch(Y){Gt(i,i.return,Y)}}function B_(t){var i=t.updateQueue;if(i!==null){var s=t.stateNode;try{Np(i,s)}catch(l){Gt(t,t.return,l)}}}function j_(t,i,s){s.props=ba(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(l){Gt(t,i,l)}}function fr(t,i){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof s=="function"?t.refCleanup=s(l):s.current=l}}catch(c){Gt(t,i,c)}}function Fn(t,i){var s=t.ref,l=t.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(c){Gt(t,i,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Gt(t,i,c)}else s.current=null}function D_(t){var i=t.type,s=t.memoizedProps,l=t.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break t;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(c){Gt(t,t.return,c)}}function Zc(t,i,s){try{var l=t.stateNode;cT(l,t.type,s,i),l[De]=i}catch(c){Gt(t,t.return,c)}}function $_(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yi(t.type)||t.tag===4}function Wc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$_(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Jc(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(t),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=ii));else if(l!==4&&(l===27&&Yi(t.type)&&(s=t.stateNode,i=null),t=t.child,t!==null))for(Jc(t,i,s),t=t.sibling;t!==null;)Jc(t,i,s),t=t.sibling}function Fl(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(l!==4&&(l===27&&Yi(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(Fl(t,i,s),t=t.sibling;t!==null;)Fl(t,i,s),t=t.sibling}function P_(t){var i=t.stateNode,s=t.memoizedProps;try{for(var l=t.type,c=i.attributes;c.length;)i.removeAttributeNode(c[0]);Re(i,l,s),i[Ae]=t,i[De]=s}catch(f){Gt(t,t.return,f)}}var di=!1,_e=!1,tf=!1,q_=typeof WeakSet=="function"?WeakSet:Set,Te=null;function Gb(t,i){if(t=t.containerInfo,Tf=hu,t=tp(t),Vo(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else t:{s=(s=t.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{s.nodeType,f.nodeType}catch{s=null;break t}var m=0,T=-1,R=-1,$=0,Y=0,Q=t,q=null;e:for(;;){for(var H;Q!==s||c!==0&&Q.nodeType!==3||(T=m+c),Q!==f||l!==0&&Q.nodeType!==3||(R=m+l),Q.nodeType===3&&(m+=Q.nodeValue.length),(H=Q.firstChild)!==null;)q=Q,Q=H;for(;;){if(Q===t)break e;if(q===s&&++$===c&&(T=m),q===f&&++Y===l&&(R=m),(H=Q.nextSibling)!==null)break;Q=q,q=Q.parentNode}Q=H}s=T===-1||R===-1?null:{start:T,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(Sf={focusedElem:t,selectionRange:s},hu=!1,Te=i;Te!==null;)if(i=Te,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Te=t;else for(;Te!==null;){switch(i=Te,f=i.alternate,t=i.flags,i.tag){case 0:if((t&4)!==0&&(t=i.updateQueue,t=t!==null?t.events:null,t!==null))for(s=0;s<t.length;s++)c=t[s],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,s=i,c=f.memoizedProps,f=f.memoizedState,l=s.stateNode;try{var ut=ba(s.type,c);t=l.getSnapshotBeforeUpdate(ut,f),l.__reactInternalSnapshotBeforeUpdate=t}catch(gt){Gt(s,s.return,gt)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,s=t.nodeType,s===9)xf(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":xf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=i.sibling,t!==null){t.return=i.return,Te=t;break}Te=i.return}}function G_(t,i,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:_i(t,s),l&4&&cr(5,s);break;case 1:if(_i(t,s),l&4)if(t=s.stateNode,i===null)try{t.componentDidMount()}catch(m){Gt(s,s.return,m)}else{var c=ba(s.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(c,i,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Gt(s,s.return,m)}}l&64&&B_(s),l&512&&fr(s,s.return);break;case 3:if(_i(t,s),l&64&&(t=s.updateQueue,t!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{Np(t,i)}catch(m){Gt(s,s.return,m)}}break;case 27:i===null&&l&4&&P_(s);case 26:case 5:_i(t,s),i===null&&l&4&&D_(s),l&512&&fr(s,s.return);break;case 12:_i(t,s);break;case 31:_i(t,s),l&4&&K_(t,s);break;case 13:_i(t,s),l&4&&V_(t,s),l&64&&(t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(s=Wb.bind(null,s),yT(t,s))));break;case 22:if(l=s.memoizedState!==null||di,!l){i=i!==null&&i.memoizedState!==null||_e,c=di;var f=_e;di=l,(_e=i)&&!f?mi(t,s,(s.subtreeFlags&8772)!==0):_i(t,s),di=c,_e=f}break;case 30:break;default:_i(t,s)}}function H_(t){var i=t.alternate;i!==null&&(t.alternate=null,H_(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Co(i)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var te=null,Pe=!1;function pi(t,i,s){for(s=s.child;s!==null;)F_(t,i,s),s=s.sibling}function F_(t,i,s){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(Cn,s)}catch{}switch(s.tag){case 26:_e||Fn(s,i),pi(t,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:_e||Fn(s,i);var l=te,c=Pe;Yi(s.type)&&(te=s.stateNode,Pe=!1),pi(t,i,s),Er(s.stateNode),te=l,Pe=c;break;case 5:_e||Fn(s,i);case 6:if(l=te,c=Pe,te=null,pi(t,i,s),te=l,Pe=c,te!==null)if(Pe)try{(te.nodeType===9?te.body:te.nodeName==="HTML"?te.ownerDocument.body:te).removeChild(s.stateNode)}catch(f){Gt(s,i,f)}else try{te.removeChild(s.stateNode)}catch(f){Gt(s,i,f)}break;case 18:te!==null&&(Pe?(t=te,Bm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,s.stateNode),Es(t)):Bm(te,s.stateNode));break;case 4:l=te,c=Pe,te=s.stateNode.containerInfo,Pe=!0,pi(t,i,s),te=l,Pe=c;break;case 0:case 11:case 14:case 15:Pi(2,s,i),_e||Pi(4,s,i),pi(t,i,s);break;case 1:_e||(Fn(s,i),l=s.stateNode,typeof l.componentWillUnmount=="function"&&j_(s,i,l)),pi(t,i,s);break;case 21:pi(t,i,s);break;case 22:_e=(l=_e)||s.memoizedState!==null,pi(t,i,s),_e=l;break;default:pi(t,i,s)}}function K_(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Es(t)}catch(s){Gt(i,i.return,s)}}}function V_(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Es(t)}catch(s){Gt(i,i.return,s)}}function Hb(t){switch(t.tag){case 31:case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new q_),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new q_),i;default:throw Error(r(435,t.tag))}}function Kl(t,i){var s=Hb(t);i.forEach(function(l){if(!s.has(l)){s.add(l);var c=Jb.bind(null,t,l);l.then(c,c)}})}function qe(t,i){var s=i.deletions;if(s!==null)for(var l=0;l<s.length;l++){var c=s[l],f=t,m=i,T=m;t:for(;T!==null;){switch(T.tag){case 27:if(Yi(T.type)){te=T.stateNode,Pe=!1;break t}break;case 5:te=T.stateNode,Pe=!1;break t;case 3:case 4:te=T.stateNode.containerInfo,Pe=!0;break t}T=T.return}if(te===null)throw Error(r(160));F_(f,m,c),te=null,Pe=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Y_(i,t),i=i.sibling}var Mn=null;function Y_(t,i){var s=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:qe(i,t),Ge(t),l&4&&(Pi(3,t,t.return),cr(3,t),Pi(5,t,t.return));break;case 1:qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),l&64&&di&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var c=Mn;if(qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),l&4){var f=s!==null?s.memoizedState:null;if(l=t.memoizedState,s===null)if(l===null)if(t.stateNode===null){t:{l=t.type,s=t.memoizedProps,c=c.ownerDocument||c;e:switch(l){case"title":f=c.getElementsByTagName("title")[0],(!f||f[js]||f[Ae]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(l),c.head.insertBefore(f,c.querySelector("head > title"))),Re(f,l,s),f[Ae]=t,be(f),l=f;break t;case"link":var m=Ym("link","href",c).get(l+(s.href||""));if(m){for(var T=0;T<m.length;T++)if(f=m[T],f.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&f.getAttribute("rel")===(s.rel==null?null:s.rel)&&f.getAttribute("title")===(s.title==null?null:s.title)&&f.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){m.splice(T,1);break e}}f=c.createElement(l),Re(f,l,s),c.head.appendChild(f);break;case"meta":if(m=Ym("meta","content",c).get(l+(s.content||""))){for(T=0;T<m.length;T++)if(f=m[T],f.getAttribute("content")===(s.content==null?null:""+s.content)&&f.getAttribute("name")===(s.name==null?null:s.name)&&f.getAttribute("property")===(s.property==null?null:s.property)&&f.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&f.getAttribute("charset")===(s.charSet==null?null:s.charSet)){m.splice(T,1);break e}}f=c.createElement(l),Re(f,l,s),c.head.appendChild(f);break;default:throw Error(r(468,l))}f[Ae]=t,be(f),l=f}t.stateNode=l}else Xm(c,t.type,t.stateNode);else t.stateNode=Vm(c,l,t.memoizedProps);else f!==l?(f===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):f.count--,l===null?Xm(c,t.type,t.stateNode):Vm(c,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Zc(t,t.memoizedProps,s.memoizedProps)}break;case 27:qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),s!==null&&l&4&&Zc(t,t.memoizedProps,s.memoizedProps);break;case 5:if(qe(i,t),Ge(t),l&512&&(_e||s===null||Fn(s,s.return)),t.flags&32){c=t.stateNode;try{Ga(c,"")}catch(ut){Gt(t,t.return,ut)}}l&4&&t.stateNode!=null&&(c=t.memoizedProps,Zc(t,c,s!==null?s.memoizedProps:c)),l&1024&&(tf=!0);break;case 6:if(qe(i,t),Ge(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,s=t.stateNode;try{s.nodeValue=l}catch(ut){Gt(t,t.return,ut)}}break;case 3:if(uu=null,c=Mn,Mn=ru(i.containerInfo),qe(i,t),Mn=c,Ge(t),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Es(i.containerInfo)}catch(ut){Gt(t,t.return,ut)}tf&&(tf=!1,X_(t));break;case 4:l=Mn,Mn=ru(t.stateNode.containerInfo),qe(i,t),Ge(t),Mn=l;break;case 12:qe(i,t),Ge(t);break;case 31:qe(i,t),Ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Kl(t,l)));break;case 13:qe(i,t),Ge(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Yl=$t()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Kl(t,l)));break;case 22:c=t.memoizedState!==null;var R=s!==null&&s.memoizedState!==null,$=di,Y=_e;if(di=$||c,_e=Y||R,qe(i,t),_e=Y,di=$,Ge(t),l&8192)t:for(i=t.stateNode,i._visibility=c?i._visibility&-2:i._visibility|1,c&&(s===null||R||di||_e||Ta(t)),s=null,i=t;;){if(i.tag===5||i.tag===26){if(s===null){R=s=i;try{if(f=R.stateNode,c)m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{T=R.stateNode;var Q=R.memoizedProps.style,q=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;T.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(ut){Gt(R,R.return,ut)}}}else if(i.tag===6){if(s===null){R=i;try{R.stateNode.nodeValue=c?"":R.memoizedProps}catch(ut){Gt(R,R.return,ut)}}}else if(i.tag===18){if(s===null){R=i;try{var H=R.stateNode;c?jm(H,!0):jm(R.stateNode,!1)}catch(ut){Gt(R,R.return,ut)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break t;for(;i.sibling===null;){if(i.return===null||i.return===t)break t;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=t.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Kl(t,s))));break;case 19:qe(i,t),Ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Kl(t,l)));break;case 30:break;case 21:break;default:qe(i,t),Ge(t)}}function Ge(t){var i=t.flags;if(i&2){try{for(var s,l=t.return;l!==null;){if($_(l)){s=l;break}l=l.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var c=s.stateNode,f=Wc(t);Fl(t,f,c);break;case 5:var m=s.stateNode;s.flags&32&&(Ga(m,""),s.flags&=-33);var T=Wc(t);Fl(t,T,m);break;case 3:case 4:var R=s.stateNode.containerInfo,$=Wc(t);Jc(t,$,R);break;default:throw Error(r(161))}}catch(Y){Gt(t,t.return,Y)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function X_(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;X_(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function _i(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)G_(t,i.alternate,i),i=i.sibling}function Ta(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:Pi(4,i,i.return),Ta(i);break;case 1:Fn(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&j_(i,i.return,s),Ta(i);break;case 27:Er(i.stateNode);case 26:case 5:Fn(i,i.return),Ta(i);break;case 22:i.memoizedState===null&&Ta(i);break;case 30:Ta(i);break;default:Ta(i)}t=t.sibling}}function mi(t,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,c=t,f=i,m=f.flags;switch(f.tag){case 0:case 11:case 15:mi(c,f,s),cr(4,f);break;case 1:if(mi(c,f,s),l=f,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch($){Gt(l,l.return,$)}if(l=f,c=l.updateQueue,c!==null){var T=l.stateNode;try{var R=c.shared.hiddenCallbacks;if(R!==null)for(c.shared.hiddenCallbacks=null,c=0;c<R.length;c++)xp(R[c],T)}catch($){Gt(l,l.return,$)}}s&&m&64&&B_(f),fr(f,f.return);break;case 27:P_(f);case 26:case 5:mi(c,f,s),s&&l===null&&m&4&&D_(f),fr(f,f.return);break;case 12:mi(c,f,s);break;case 31:mi(c,f,s),s&&m&4&&K_(c,f);break;case 13:mi(c,f,s),s&&m&4&&V_(c,f);break;case 22:f.memoizedState===null&&mi(c,f,s),fr(f,f.return);break;case 30:break;default:mi(c,f,s)}i=i.sibling}}function ef(t,i){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&Zs(s))}function nf(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Zs(t))}function kn(t,i,s,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Q_(t,i,s,l),i=i.sibling}function Q_(t,i,s,l){var c=i.flags;switch(i.tag){case 0:case 11:case 15:kn(t,i,s,l),c&2048&&cr(9,i);break;case 1:kn(t,i,s,l);break;case 3:kn(t,i,s,l),c&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Zs(t)));break;case 12:if(c&2048){kn(t,i,s,l),t=i.stateNode;try{var f=i.memoizedProps,m=f.id,T=f.onPostCommit;typeof T=="function"&&T(m,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Gt(i,i.return,R)}}else kn(t,i,s,l);break;case 31:kn(t,i,s,l);break;case 13:kn(t,i,s,l);break;case 23:break;case 22:f=i.stateNode,m=i.alternate,i.memoizedState!==null?f._visibility&2?kn(t,i,s,l):hr(t,i):f._visibility&2?kn(t,i,s,l):(f._visibility|=2,os(t,i,s,l,(i.subtreeFlags&10256)!==0||!1)),c&2048&&ef(m,i);break;case 24:kn(t,i,s,l),c&2048&&nf(i.alternate,i);break;default:kn(t,i,s,l)}}function os(t,i,s,l,c){for(c=c&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var f=t,m=i,T=s,R=l,$=m.flags;switch(m.tag){case 0:case 11:case 15:os(f,m,T,R,c),cr(8,m);break;case 23:break;case 22:var Y=m.stateNode;m.memoizedState!==null?Y._visibility&2?os(f,m,T,R,c):hr(f,m):(Y._visibility|=2,os(f,m,T,R,c)),c&&$&2048&&ef(m.alternate,m);break;case 24:os(f,m,T,R,c),c&&$&2048&&nf(m.alternate,m);break;default:os(f,m,T,R,c)}i=i.sibling}}function hr(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=t,l=i,c=l.flags;switch(l.tag){case 22:hr(s,l),c&2048&&ef(l.alternate,l);break;case 24:hr(s,l),c&2048&&nf(l.alternate,l);break;default:hr(s,l)}i=i.sibling}}var dr=8192;function cs(t,i,s){if(t.subtreeFlags&dr)for(t=t.child;t!==null;)Z_(t,i,s),t=t.sibling}function Z_(t,i,s){switch(t.tag){case 26:cs(t,i,s),t.flags&dr&&t.memoizedState!==null&&CT(s,Mn,t.memoizedState,t.memoizedProps);break;case 5:cs(t,i,s);break;case 3:case 4:var l=Mn;Mn=ru(t.stateNode.containerInfo),cs(t,i,s),Mn=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=dr,dr=16777216,cs(t,i,s),dr=l):cs(t,i,s));break;default:cs(t,i,s)}}function W_(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function pr(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Te=l,tm(l,t)}W_(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)J_(t),t=t.sibling}function J_(t){switch(t.tag){case 0:case 11:case 15:pr(t),t.flags&2048&&Pi(9,t,t.return);break;case 3:pr(t);break;case 12:pr(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&2&&(t.return===null||t.return.tag!==13)?(i._visibility&=-3,Vl(t)):pr(t);break;default:pr(t)}}function Vl(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Te=l,tm(l,t)}W_(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:Pi(8,i,i.return),Vl(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,Vl(i));break;default:Vl(i)}t=t.sibling}}function tm(t,i){for(;Te!==null;){var s=Te;switch(s.tag){case 0:case 11:case 15:Pi(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Zs(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Te=l;else t:for(s=t;Te!==null;){l=Te;var c=l.sibling,f=l.return;if(H_(l),l===s){Te=null;break t}if(c!==null){c.return=f,Te=c;break t}Te=f}}}var Fb={getCacheForType:function(t){var i=xe(he),s=i.data.get(t);return s===void 0&&(s=t(),i.data.set(t,s)),s},cacheSignal:function(){return xe(he).controller.signal}},Kb=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Yt=null,Rt=null,Lt=0,qt=0,en=null,qi=!1,fs=!1,af=!1,gi=0,ae=0,Gi=0,Sa=0,sf=0,nn=0,hs=0,_r=null,He=null,rf=!1,Yl=0,em=0,Xl=1/0,Ql=null,Hi=null,me=0,Fi=null,ds=null,yi=0,lf=0,uf=null,nm=null,mr=0,of=null;function an(){return(Dt&2)!==0&&Lt!==0?Lt&-Lt:k.T!==null?_f():yd()}function im(){if(nn===0)if((Lt&536870912)===0||It){var t=al;al<<=1,(al&3932160)===0&&(al=262144),nn=t}else nn=536870912;return t=Je.current,t!==null&&(t.flags|=32),nn}function Fe(t,i,s){(t===Yt&&(qt===2||qt===9)||t.cancelPendingCommit!==null)&&(ps(t,0),Ki(t,Lt,nn,!1)),Bs(t,s),((Dt&2)===0||t!==Yt)&&(t===Yt&&((Dt&2)===0&&(Sa|=s),ae===4&&Ki(t,Lt,nn,!1)),Kn(t))}function am(t,i,s){if((Dt&6)!==0)throw Error(r(327));var l=!s&&(i&127)===0&&(i&t.expiredLanes)===0||zs(t,i),c=l?Xb(t,i):ff(t,i,!0),f=l;do{if(c===0){fs&&!l&&Ki(t,i,0,!1);break}else{if(s=t.current.alternate,f&&!Vb(s)){c=ff(t,i,!1),f=!1;continue}if(c===2){if(f=i,t.errorRecoveryDisabledLanes&f)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){i=m;t:{var T=t;c=_r;var R=T.current.memoizedState.isDehydrated;if(R&&(ps(T,m).flags|=256),m=ff(T,m,!1),m!==2){if(af&&!R){T.errorRecoveryDisabledLanes|=f,Sa|=f,c=4;break t}f=He,He=c,f!==null&&(He===null?He=f:He.push.apply(He,f))}c=m}if(f=!1,c!==2)continue}}if(c===1){ps(t,0),Ki(t,i,0,!0);break}t:{switch(l=t,f=c,f){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Ki(l,i,nn,!qi);break t;case 2:He=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(c=Yl+300-$t(),10<c)){if(Ki(l,i,nn,!qi),rl(l,0,!0)!==0)break t;yi=i,l.timeoutHandle=Um(sm.bind(null,l,s,He,Ql,rf,i,nn,Sa,hs,qi,f,"Throttled",-0,0),c);break t}sm(l,s,He,Ql,rf,i,nn,Sa,hs,qi,f,null,-0,0)}}break}while(!0);Kn(t)}function sm(t,i,s,l,c,f,m,T,R,$,Y,Q,q,H){if(t.timeoutHandle=-1,Q=i.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ii},Z_(i,f,Q);var ut=(f&62914560)===f?Yl-$t():(f&4194048)===f?em-$t():0;if(ut=LT(Q,ut),ut!==null){yi=f,t.cancelPendingCommit=ut(dm.bind(null,t,i,f,s,l,c,m,T,R,Y,Q,null,q,H)),Ki(t,f,m,!$);return}}dm(t,i,f,s,l,c,m,T,R)}function Vb(t){for(var i=t;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var c=s[l],f=c.getSnapshot;c=c.value;try{if(!Ze(f(),c))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ki(t,i,s,l){i&=~sf,i&=~Sa,t.suspendedLanes|=i,t.pingedLanes&=~i,l&&(t.warmLanes|=i),l=t.expirationTimes;for(var c=i;0<c;){var f=31-Qe(c),m=1<<f;l[f]=-1,c&=~m}s!==0&&_d(t,s,i)}function Zl(){return(Dt&6)===0?(gr(0),!1):!0}function cf(){if(Rt!==null){if(qt===0)var t=Rt.return;else t=Rt,li=pa=null,Oc(t),as=null,Js=0,t=Rt;for(;t!==null;)z_(t.alternate,t),t=t.return;Rt=null}}function ps(t,i){var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,dT(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),yi=0,cf(),Yt=t,Rt=s=si(t.current,null),Lt=i,qt=0,en=null,qi=!1,fs=zs(t,i),af=!1,hs=nn=sf=Sa=Gi=ae=0,He=_r=null,rf=!1,(i&8)!==0&&(i|=i&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=i;0<l;){var c=31-Qe(l),f=1<<c;i|=t[c],l&=~f}return gi=i,yl(),s}function rm(t,i){St=null,k.H=lr,i===is||i===xl?(i=Tp(),qt=3):i===dc?(i=Tp(),qt=4):qt=i===Pc?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,en=i,Rt===null&&(ae=1,$l(t,gn(i,t.current)))}function lm(){var t=Je.current;return t===null?!0:(Lt&4194048)===Lt?bn===null:(Lt&62914560)===Lt||(Lt&536870912)!==0?t===bn:!1}function um(){var t=k.H;return k.H=lr,t===null?lr:t}function om(){var t=k.A;return k.A=Fb,t}function Wl(){ae=4,qi||(Lt&4194048)!==Lt&&Je.current!==null||(fs=!0),(Gi&134217727)===0&&(Sa&134217727)===0||Yt===null||Ki(Yt,Lt,nn,!1)}function ff(t,i,s){var l=Dt;Dt|=2;var c=um(),f=om();(Yt!==t||Lt!==i)&&(Ql=null,ps(t,i)),i=!1;var m=ae;t:do try{if(qt!==0&&Rt!==null){var T=Rt,R=en;switch(qt){case 8:cf(),m=6;break t;case 3:case 2:case 9:case 6:Je.current===null&&(i=!0);var $=qt;if(qt=0,en=null,_s(t,T,R,$),s&&fs){m=0;break t}break;default:$=qt,qt=0,en=null,_s(t,T,R,$)}}Yb(),m=ae;break}catch(Y){rm(t,Y)}while(!0);return i&&t.shellSuspendCounter++,li=pa=null,Dt=l,k.H=c,k.A=f,Rt===null&&(Yt=null,Lt=0,yl()),m}function Yb(){for(;Rt!==null;)cm(Rt)}function Xb(t,i){var s=Dt;Dt|=2;var l=um(),c=om();Yt!==t||Lt!==i?(Ql=null,Xl=$t()+500,ps(t,i)):fs=zs(t,i);t:do try{if(qt!==0&&Rt!==null){i=Rt;var f=en;e:switch(qt){case 1:qt=0,en=null,_s(t,i,f,1);break;case 2:case 9:if(Ep(f)){qt=0,en=null,fm(i);break}i=function(){qt!==2&&qt!==9||Yt!==t||(qt=7),Kn(t)},f.then(i,i);break t;case 3:qt=7;break t;case 4:qt=5;break t;case 7:Ep(f)?(qt=0,en=null,fm(i)):(qt=0,en=null,_s(t,i,f,7));break;case 5:var m=null;switch(Rt.tag){case 26:m=Rt.memoizedState;case 5:case 27:var T=Rt;if(m?Qm(m):T.stateNode.complete){qt=0,en=null;var R=T.sibling;if(R!==null)Rt=R;else{var $=T.return;$!==null?(Rt=$,Jl($)):Rt=null}break e}}qt=0,en=null,_s(t,i,f,5);break;case 6:qt=0,en=null,_s(t,i,f,6);break;case 8:cf(),ae=6;break t;default:throw Error(r(462))}}Qb();break}catch(Y){rm(t,Y)}while(!0);return li=pa=null,k.H=l,k.A=c,Dt=s,Rt!==null?0:(Yt=null,Lt=0,yl(),ae)}function Qb(){for(;Rt!==null&&!fn();)cm(Rt)}function cm(t){var i=I_(t.alternate,t,gi);t.memoizedProps=t.pendingProps,i===null?Jl(t):Rt=i}function fm(t){var i=t,s=i.alternate;switch(i.tag){case 15:case 0:i=R_(s,i,i.pendingProps,i.type,void 0,Lt);break;case 11:i=R_(s,i,i.pendingProps,i.type.render,i.ref,Lt);break;case 5:Oc(i);default:z_(s,i),i=Rt=op(i,gi),i=I_(s,i,gi)}t.memoizedProps=t.pendingProps,i===null?Jl(t):Rt=i}function _s(t,i,s,l){li=pa=null,Oc(i),as=null,Js=0;var c=i.return;try{if(jb(t,c,i,s,Lt)){ae=1,$l(t,gn(s,t.current)),Rt=null;return}}catch(f){if(c!==null)throw Rt=c,f;ae=1,$l(t,gn(s,t.current)),Rt=null;return}i.flags&32768?(It||l===1?t=!0:fs||(Lt&536870912)!==0?t=!1:(qi=t=!0,(l===2||l===9||l===3||l===6)&&(l=Je.current,l!==null&&l.tag===13&&(l.flags|=16384))),hm(i,t)):Jl(i)}function Jl(t){var i=t;do{if((i.flags&32768)!==0){hm(i,qi);return}t=i.return;var s=Pb(i.alternate,i,gi);if(s!==null){Rt=s;return}if(i=i.sibling,i!==null){Rt=i;return}Rt=i=t}while(i!==null);ae===0&&(ae=5)}function hm(t,i){do{var s=qb(t.alternate,t);if(s!==null){s.flags&=32767,Rt=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(t=t.sibling,t!==null)){Rt=t;return}Rt=t=s}while(t!==null);ae=6,Rt=null}function dm(t,i,s,l,c,f,m,T,R){t.cancelPendingCommit=null;do tu();while(me!==0);if((Dt&6)!==0)throw Error(r(327));if(i!==null){if(i===t.current)throw Error(r(177));if(f=i.lanes|i.childLanes,f|=Wo,wE(t,s,f,m,T,R),t===Yt&&(Rt=Yt=null,Lt=0),ds=i,Fi=t,yi=s,lf=f,uf=c,nm=l,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,tT(je,function(){return ym(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,c=K.p,K.p=2,m=Dt,Dt|=4;try{Gb(t,i,s)}finally{Dt=m,K.p=c,k.T=l}}me=1,pm(),_m(),mm()}}function pm(){if(me===1){me=0;var t=Fi,i=ds,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=k.T,k.T=null;var l=K.p;K.p=2;var c=Dt;Dt|=4;try{Y_(i,t);var f=Sf,m=tp(t.containerInfo),T=f.focusedElem,R=f.selectionRange;if(m!==T&&T&&T.ownerDocument&&Jd(T.ownerDocument.documentElement,T)){if(R!==null&&Vo(T)){var $=R.start,Y=R.end;if(Y===void 0&&(Y=$),"selectionStart"in T)T.selectionStart=$,T.selectionEnd=Math.min(Y,T.value.length);else{var Q=T.ownerDocument||document,q=Q&&Q.defaultView||window;if(q.getSelection){var H=q.getSelection(),ut=T.textContent.length,gt=Math.min(R.start,ut),Vt=R.end===void 0?gt:Math.min(R.end,ut);!H.extend&&gt>Vt&&(m=Vt,Vt=gt,gt=m);var I=Wd(T,gt),C=Wd(T,Vt);if(I&&C&&(H.rangeCount!==1||H.anchorNode!==I.node||H.anchorOffset!==I.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var j=Q.createRange();j.setStart(I.node,I.offset),H.removeAllRanges(),gt>Vt?(H.addRange(j),H.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),H.addRange(j))}}}}for(Q=[],H=T;H=H.parentNode;)H.nodeType===1&&Q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<Q.length;T++){var X=Q[T];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}hu=!!Tf,Sf=Tf=null}finally{Dt=c,K.p=l,k.T=s}}t.current=i,me=2}}function _m(){if(me===2){me=0;var t=Fi,i=ds,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=k.T,k.T=null;var l=K.p;K.p=2;var c=Dt;Dt|=4;try{G_(t,i.alternate,i)}finally{Dt=c,K.p=l,k.T=s}}me=3}}function mm(){if(me===4||me===3){me=0,sa();var t=Fi,i=ds,s=yi,l=nm;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?me=5:(me=0,ds=Fi=null,gm(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(Hi=null),Ro(s),i=i.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(Cn,i,void 0,(i.current.flags&128)===128)}catch{}if(l!==null){i=k.T,c=K.p,K.p=2,k.T=null;try{for(var f=t.onRecoverableError,m=0;m<l.length;m++){var T=l[m];f(T.value,{componentStack:T.stack})}}finally{k.T=i,K.p=c}}(yi&3)!==0&&tu(),Kn(t),c=t.pendingLanes,(s&261930)!==0&&(c&42)!==0?t===of?mr++:(mr=0,of=t):mr=0,gr(0)}}function gm(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,Zs(i)))}function tu(){return pm(),_m(),mm(),ym()}function ym(){if(me!==5)return!1;var t=Fi,i=lf;lf=0;var s=Ro(yi),l=k.T,c=K.p;try{K.p=32>s?32:s,k.T=null,s=uf,uf=null;var f=Fi,m=yi;if(me=0,ds=Fi=null,yi=0,(Dt&6)!==0)throw Error(r(331));var T=Dt;if(Dt|=4,J_(f.current),Q_(f,f.current,m,s),Dt=T,gr(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(Cn,f)}catch{}return!0}finally{K.p=c,k.T=l,gm(t,i)}}function vm(t,i,s){i=gn(s,i),i=$c(t.stateNode,i,2),t=ji(t,i,2),t!==null&&(Bs(t,2),Kn(t))}function Gt(t,i,s){if(t.tag===3)vm(t,t,s);else for(;i!==null;){if(i.tag===3){vm(i,t,s);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Hi===null||!Hi.has(l))){t=gn(s,t),s=E_(2),l=ji(i,s,2),l!==null&&(b_(s,l,i,t),Bs(l,2),Kn(l));break}}i=i.return}}function hf(t,i,s){var l=t.pingCache;if(l===null){l=t.pingCache=new Kb;var c=new Set;l.set(i,c)}else c=l.get(i),c===void 0&&(c=new Set,l.set(i,c));c.has(s)||(af=!0,c.add(s),t=Zb.bind(null,t,i,s),i.then(t,t))}function Zb(t,i,s){var l=t.pingCache;l!==null&&l.delete(i),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,Yt===t&&(Lt&s)===s&&(ae===4||ae===3&&(Lt&62914560)===Lt&&300>$t()-Yl?(Dt&2)===0&&ps(t,0):sf|=s,hs===Lt&&(hs=0)),Kn(t)}function Em(t,i){i===0&&(i=pd()),t=fa(t,i),t!==null&&(Bs(t,i),Kn(t))}function Wb(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),Em(t,s)}function Jb(t,i){var s=0;switch(t.tag){case 31:case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(s=c.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(i),Em(t,s)}function tT(t,i){return ee(t,i)}var eu=null,ms=null,df=!1,nu=!1,pf=!1,Vi=0;function Kn(t){t!==ms&&t.next===null&&(ms===null?eu=ms=t:ms=ms.next=t),nu=!0,df||(df=!0,nT())}function gr(t,i){if(!pf&&nu){pf=!0;do for(var s=!1,l=eu;l!==null;){if(t!==0){var c=l.pendingLanes;if(c===0)var f=0;else{var m=l.suspendedLanes,T=l.pingedLanes;f=(1<<31-Qe(42|t)+1)-1,f&=c&~(m&~T),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(s=!0,Am(l,f))}else f=Lt,f=rl(l,l===Yt?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||zs(l,f)||(s=!0,Am(l,f));l=l.next}while(s);pf=!1}}function eT(){bm()}function bm(){nu=df=!1;var t=0;Vi!==0&&hT()&&(t=Vi);for(var i=$t(),s=null,l=eu;l!==null;){var c=l.next,f=Tm(l,i);f===0?(l.next=null,s===null?eu=c:s.next=c,c===null&&(ms=s)):(s=l,(t!==0||(f&3)!==0)&&(nu=!0)),l=c}me!==0&&me!==5||gr(t),Vi!==0&&(Vi=0)}function Tm(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var m=31-Qe(f),T=1<<m,R=c[m];R===-1?((T&s)===0||(T&l)!==0)&&(c[m]=RE(T,i)):R<=i&&(t.expiredLanes|=T),f&=~T}if(i=Yt,s=Lt,s=rl(t,t===i?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,s===0||t===i&&(qt===2||qt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&qn(l),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||zs(t,s)){if(i=s&-s,i===t.callbackPriority)return i;switch(l!==null&&qn(l),Ro(s)){case 2:case 8:s=Se;break;case 32:s=je;break;case 268435456:s=Us;break;default:s=je}return l=Sm.bind(null,t),s=ee(s,l),t.callbackPriority=i,t.callbackNode=s,i}return l!==null&&l!==null&&qn(l),t.callbackPriority=2,t.callbackNode=null,2}function Sm(t,i){if(me!==0&&me!==5)return t.callbackNode=null,t.callbackPriority=0,null;var s=t.callbackNode;if(tu()&&t.callbackNode!==s)return null;var l=Lt;return l=rl(t,t===Yt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(am(t,l,i),Tm(t,$t()),t.callbackNode!=null&&t.callbackNode===s?Sm.bind(null,t):null)}function Am(t,i){if(tu())return null;am(t,i,!0)}function nT(){pT(function(){(Dt&6)!==0?ee(le,eT):bm()})}function _f(){if(Vi===0){var t=es;t===0&&(t=il,il<<=1,(il&261888)===0&&(il=256)),Vi=t}return Vi}function Om(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:cl(""+t)}function xm(t,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,t.id&&s.setAttribute("form",t.id),i.parentNode.insertBefore(s,i),t=new FormData(t),s.parentNode.removeChild(s),t}function iT(t,i,s,l,c){if(i==="submit"&&s&&s.stateNode===c){var f=Om((c[De]||null).action),m=l.submitter;m&&(i=(i=m[De]||null)?Om(i.formAction):m.getAttribute("formAction"),i!==null&&(f=i,m=null));var T=new pl("action","action",null,l,c);t.push({event:T,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Vi!==0){var R=m?xm(c,m):new FormData(c);Ic(s,{pending:!0,data:R,method:c.method,action:f},null,R)}}else typeof f=="function"&&(T.preventDefault(),R=m?xm(c,m):new FormData(c),Ic(s,{pending:!0,data:R,method:c.method,action:f},f,R))},currentTarget:c}]})}}for(var mf=0;mf<Zo.length;mf++){var gf=Zo[mf],aT=gf.toLowerCase(),sT=gf[0].toUpperCase()+gf.slice(1);Ln(aT,"on"+sT)}Ln(ip,"onAnimationEnd"),Ln(ap,"onAnimationIteration"),Ln(sp,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(bb,"onTransitionRun"),Ln(Tb,"onTransitionStart"),Ln(Sb,"onTransitionCancel"),Ln(rp,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yr="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(" "),rT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yr));function Nm(t,i){i=(i&4)!==0;for(var s=0;s<t.length;s++){var l=t[s],c=l.event;l=l.listeners;t:{var f=void 0;if(i)for(var m=l.length-1;0<=m;m--){var T=l[m],R=T.instance,$=T.currentTarget;if(T=T.listener,R!==f&&c.isPropagationStopped())break t;f=T,c.currentTarget=$;try{f(c)}catch(Y){gl(Y)}c.currentTarget=null,f=R}else for(m=0;m<l.length;m++){if(T=l[m],R=T.instance,$=T.currentTarget,T=T.listener,R!==f&&c.isPropagationStopped())break t;f=T,c.currentTarget=$;try{f(c)}catch(Y){gl(Y)}c.currentTarget=null,f=R}}}}function wt(t,i){var s=i[wo];s===void 0&&(s=i[wo]=new Set);var l=t+"__bubble";s.has(l)||(Rm(i,t,2,!1),s.add(l))}function yf(t,i,s){var l=0;i&&(l|=4),Rm(s,t,l,i)}var iu="_reactListening"+Math.random().toString(36).slice(2);function vf(t){if(!t[iu]){t[iu]=!0,bd.forEach(function(s){s!=="selectionchange"&&(rT.has(s)||yf(s,!1,t),yf(s,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[iu]||(i[iu]=!0,yf("selectionchange",!1,i))}}function Rm(t,i,s,l){switch(ig(i)){case 2:var c=IT;break;case 8:c=UT;break;default:c=If}s=c.bind(null,i,s,t),c=void 0,!jo||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(c=!0),l?c!==void 0?t.addEventListener(i,s,{capture:!0,passive:c}):t.addEventListener(i,s,!0):c!==void 0?t.addEventListener(i,s,{passive:c}):t.addEventListener(i,s,!1)}function Ef(t,i,s,l,c){var f=l;if((i&1)===0&&(i&2)===0&&l!==null)t:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var T=l.stateNode.containerInfo;if(T===c)break;if(m===4)for(m=l.return;m!==null;){var R=m.tag;if((R===3||R===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;T!==null;){if(m=ja(T),m===null)return;if(R=m.tag,R===5||R===6||R===26||R===27){l=f=m;continue t}T=T.parentNode}}l=l.return}kd(function(){var $=f,Y=zo(s),Q=[];t:{var q=lp.get(t);if(q!==void 0){var H=pl,ut=t;switch(t){case"keypress":if(hl(s)===0)break t;case"keydown":case"keyup":H=JE;break;case"focusin":ut="focus",H=qo;break;case"focusout":ut="blur",H=qo;break;case"beforeblur":case"afterblur":H=qo;break;case"click":if(s.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=PE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=nb;break;case ip:case ap:case sp:H=HE;break;case rp:H=ab;break;case"scroll":case"scrollend":H=DE;break;case"wheel":H=rb;break;case"copy":case"cut":case"paste":H=KE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=jd;break;case"toggle":case"beforetoggle":H=ub}var gt=(i&4)!==0,Vt=!gt&&(t==="scroll"||t==="scrollend"),I=gt?q!==null?q+"Capture":null:q;gt=[];for(var C=$,j;C!==null;){var X=C;if(j=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||j===null||I===null||(X=$s(C,I),X!=null&&gt.push(vr(C,X,j))),Vt)break;C=C.return}0<gt.length&&(q=new H(q,ut,null,s,Y),Q.push({event:q,listeners:gt}))}}if((i&7)===0){t:{if(q=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",q&&s!==Uo&&(ut=s.relatedTarget||s.fromElement)&&(ja(ut)||ut[Ba]))break t;if((H||q)&&(q=Y.window===Y?Y:(q=Y.ownerDocument)?q.defaultView||q.parentWindow:window,H?(ut=s.relatedTarget||s.toElement,H=$,ut=ut?ja(ut):null,ut!==null&&(Vt=o(ut),gt=ut.tag,ut!==Vt||gt!==5&&gt!==27&&gt!==6)&&(ut=null)):(H=null,ut=$),H!==ut)){if(gt=zd,X="onMouseLeave",I="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(gt=jd,X="onPointerLeave",I="onPointerEnter",C="pointer"),Vt=H==null?q:Ds(H),j=ut==null?q:Ds(ut),q=new gt(X,C+"leave",H,s,Y),q.target=Vt,q.relatedTarget=j,X=null,ja(Y)===$&&(gt=new gt(I,C+"enter",ut,s,Y),gt.target=j,gt.relatedTarget=Vt,X=gt),Vt=X,H&&ut)e:{for(gt=lT,I=H,C=ut,j=0,X=I;X;X=gt(X))j++;X=0;for(var dt=C;dt;dt=gt(dt))X++;for(;0<j-X;)I=gt(I),j--;for(;0<X-j;)C=gt(C),X--;for(;j--;){if(I===C||C!==null&&I===C.alternate){gt=I;break e}I=gt(I),C=gt(C)}gt=null}else gt=null;H!==null&&wm(Q,q,H,gt,!1),ut!==null&&Vt!==null&&wm(Q,Vt,ut,gt,!0)}}t:{if(q=$?Ds($):window,H=q.nodeName&&q.nodeName.toLowerCase(),H==="select"||H==="input"&&q.type==="file")var Bt=Kd;else if(Hd(q))if(Vd)Bt=yb;else{Bt=mb;var ot=_b}else H=q.nodeName,!H||H.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?$&&Io($.elementType)&&(Bt=Kd):Bt=gb;if(Bt&&(Bt=Bt(t,$))){Fd(Q,Bt,s,Y);break t}ot&&ot(t,q,$),t==="focusout"&&$&&q.type==="number"&&$.memoizedProps.value!=null&&ko(q,"number",q.value)}switch(ot=$?Ds($):window,t){case"focusin":(Hd(ot)||ot.contentEditable==="true")&&(Va=ot,Yo=$,Ys=null);break;case"focusout":Ys=Yo=Va=null;break;case"mousedown":Xo=!0;break;case"contextmenu":case"mouseup":case"dragend":Xo=!1,ep(Q,s,Y);break;case"selectionchange":if(Eb)break;case"keydown":case"keyup":ep(Q,s,Y)}var Ot;if(Ho)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else Ka?qd(t,s)&&(Mt="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Mt="onCompositionStart");Mt&&(Dd&&s.locale!=="ko"&&(Ka||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&Ka&&(Ot=Id()):(Li=Y,Do="value"in Li?Li.value:Li.textContent,Ka=!0)),ot=au($,Mt),0<ot.length&&(Mt=new Bd(Mt,t,null,s,Y),Q.push({event:Mt,listeners:ot}),Ot?Mt.data=Ot:(Ot=Gd(s),Ot!==null&&(Mt.data=Ot)))),(Ot=cb?fb(t,s):hb(t,s))&&(Mt=au($,"onBeforeInput"),0<Mt.length&&(ot=new Bd("onBeforeInput","beforeinput",null,s,Y),Q.push({event:ot,listeners:Mt}),ot.data=Ot)),iT(Q,t,$,s,Y)}Nm(Q,i)})}function vr(t,i,s){return{instance:t,listener:i,currentTarget:s}}function au(t,i){for(var s=i+"Capture",l=[];t!==null;){var c=t,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=$s(t,s),c!=null&&l.unshift(vr(t,c,f)),c=$s(t,i),c!=null&&l.push(vr(t,c,f))),t.tag===3)return l;t=t.return}return[]}function lT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function wm(t,i,s,l,c){for(var f=i._reactName,m=[];s!==null&&s!==l;){var T=s,R=T.alternate,$=T.stateNode;if(T=T.tag,R!==null&&R===l)break;T!==5&&T!==26&&T!==27||$===null||(R=$,c?($=$s(s,f),$!=null&&m.unshift(vr(s,$,R))):c||($=$s(s,f),$!=null&&m.push(vr(s,$,R)))),s=s.return}m.length!==0&&t.push({event:i,listeners:m})}var uT=/\r\n?/g,oT=/\u0000|\uFFFD/g;function Cm(t){return(typeof t=="string"?t:""+t).replace(uT,`
9
+ `).replace(oT,"")}function Lm(t,i){return i=Cm(i),Cm(t)===i}function Kt(t,i,s,l,c,f){switch(s){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&Ga(t,""+l);break;case"className":ul(t,"class",l);break;case"tabIndex":ul(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ul(t,s,l);break;case"style":Ld(t,l,f);break;case"data":if(i!=="object"){ul(t,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||s!=="href")){t.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=cl(""+l),t.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(s==="formAction"?(i!=="input"&&Kt(t,i,"name",c.name,c,null),Kt(t,i,"formEncType",c.formEncType,c,null),Kt(t,i,"formMethod",c.formMethod,c,null),Kt(t,i,"formTarget",c.formTarget,c,null)):(Kt(t,i,"encType",c.encType,c,null),Kt(t,i,"method",c.method,c,null),Kt(t,i,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=cl(""+l),t.setAttribute(s,l);break;case"onClick":l!=null&&(t.onclick=ii);break;case"onScroll":l!=null&&wt("scroll",t);break;case"onScrollEnd":l!=null&&wt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}s=cl(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""+l):t.removeAttribute(s);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":l===!0?t.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,l):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(s,l):t.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(s):t.setAttribute(s,l);break;case"popover":wt("beforetoggle",t),wt("toggle",t),ll(t,"popover",l);break;case"xlinkActuate":ni(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ni(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ni(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ni(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ni(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ni(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ni(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ni(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ni(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ll(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=BE.get(s)||s,ll(t,s,l))}}function bf(t,i,s,l,c,f){switch(s){case"style":Ld(t,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"children":typeof l=="string"?Ga(t,l):(typeof l=="number"||typeof l=="bigint")&&Ga(t,""+l);break;case"onScroll":l!=null&&wt("scroll",t);break;case"onScrollEnd":l!=null&&wt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ii);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Td.hasOwnProperty(s))t:{if(s[0]==="o"&&s[1]==="n"&&(c=s.endsWith("Capture"),i=s.slice(2,c?s.length-7:void 0),f=t[De]||null,f=f!=null?f[s]:null,typeof f=="function"&&t.removeEventListener(i,f,c),typeof l=="function")){typeof f!="function"&&f!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(i,l,c);break t}s in t?t[s]=l:l===!0?t.setAttribute(s,""):ll(t,s,l)}}}function Re(t,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",t),wt("load",t);var l=!1,c=!1,f;for(f in s)if(s.hasOwnProperty(f)){var m=s[f];if(m!=null)switch(f){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Kt(t,i,f,m,s,null)}}c&&Kt(t,i,"srcSet",s.srcSet,s,null),l&&Kt(t,i,"src",s.src,s,null);return;case"input":wt("invalid",t);var T=f=m=c=null,R=null,$=null;for(l in s)if(s.hasOwnProperty(l)){var Y=s[l];if(Y!=null)switch(l){case"name":c=Y;break;case"type":m=Y;break;case"checked":R=Y;break;case"defaultChecked":$=Y;break;case"value":f=Y;break;case"defaultValue":T=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,i));break;default:Kt(t,i,l,Y,s,null)}}Nd(t,f,T,R,$,m,c,!1);return;case"select":wt("invalid",t),l=m=f=null;for(c in s)if(s.hasOwnProperty(c)&&(T=s[c],T!=null))switch(c){case"value":f=T;break;case"defaultValue":m=T;break;case"multiple":l=T;default:Kt(t,i,c,T,s,null)}i=f,s=m,t.multiple=!!l,i!=null?qa(t,!!l,i,!1):s!=null&&qa(t,!!l,s,!0);return;case"textarea":wt("invalid",t),f=c=l=null;for(m in s)if(s.hasOwnProperty(m)&&(T=s[m],T!=null))switch(m){case"value":l=T;break;case"defaultValue":c=T;break;case"children":f=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:Kt(t,i,m,T,s,null)}wd(t,l,c,f);return;case"option":for(R in s)s.hasOwnProperty(R)&&(l=s[R],l!=null)&&(R==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Kt(t,i,R,l,s,null));return;case"dialog":wt("beforetoggle",t),wt("toggle",t),wt("cancel",t),wt("close",t);break;case"iframe":case"object":wt("load",t);break;case"video":case"audio":for(l=0;l<yr.length;l++)wt(yr[l],t);break;case"image":wt("error",t),wt("load",t);break;case"details":wt("toggle",t);break;case"embed":case"source":case"link":wt("error",t),wt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in s)if(s.hasOwnProperty($)&&(l=s[$],l!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Kt(t,i,$,l,s,null)}return;default:if(Io(i)){for(Y in s)s.hasOwnProperty(Y)&&(l=s[Y],l!==void 0&&bf(t,i,Y,l,s,void 0));return}}for(T in s)s.hasOwnProperty(T)&&(l=s[T],l!=null&&Kt(t,i,T,l,s,null))}function cT(t,i,s,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,m=null,T=null,R=null,$=null,Y=null;for(H in s){var Q=s[H];if(s.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":R=Q;default:l.hasOwnProperty(H)||Kt(t,i,H,null,l,Q)}}for(var q in l){var H=l[q];if(Q=s[q],l.hasOwnProperty(q)&&(H!=null||Q!=null))switch(q){case"type":f=H;break;case"name":c=H;break;case"checked":$=H;break;case"defaultChecked":Y=H;break;case"value":m=H;break;case"defaultValue":T=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,i));break;default:H!==Q&&Kt(t,i,q,H,l,Q)}}Mo(t,m,T,R,$,Y,f,c);return;case"select":H=m=T=q=null;for(f in s)if(R=s[f],s.hasOwnProperty(f)&&R!=null)switch(f){case"value":break;case"multiple":H=R;default:l.hasOwnProperty(f)||Kt(t,i,f,null,l,R)}for(c in l)if(f=l[c],R=s[c],l.hasOwnProperty(c)&&(f!=null||R!=null))switch(c){case"value":q=f;break;case"defaultValue":T=f;break;case"multiple":m=f;default:f!==R&&Kt(t,i,c,f,l,R)}i=T,s=m,l=H,q!=null?qa(t,!!s,q,!1):!!l!=!!s&&(i!=null?qa(t,!!s,i,!0):qa(t,!!s,s?[]:"",!1));return;case"textarea":H=q=null;for(T in s)if(c=s[T],s.hasOwnProperty(T)&&c!=null&&!l.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Kt(t,i,T,null,l,c)}for(m in l)if(c=l[m],f=s[m],l.hasOwnProperty(m)&&(c!=null||f!=null))switch(m){case"value":q=c;break;case"defaultValue":H=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==f&&Kt(t,i,m,c,l,f)}Rd(t,q,H);return;case"option":for(var ut in s)q=s[ut],s.hasOwnProperty(ut)&&q!=null&&!l.hasOwnProperty(ut)&&(ut==="selected"?t.selected=!1:Kt(t,i,ut,null,l,q));for(R in l)q=l[R],H=s[R],l.hasOwnProperty(R)&&q!==H&&(q!=null||H!=null)&&(R==="selected"?t.selected=q&&typeof q!="function"&&typeof q!="symbol":Kt(t,i,R,q,l,H));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 gt in s)q=s[gt],s.hasOwnProperty(gt)&&q!=null&&!l.hasOwnProperty(gt)&&Kt(t,i,gt,null,l,q);for($ in l)if(q=l[$],H=s[$],l.hasOwnProperty($)&&q!==H&&(q!=null||H!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,i));break;default:Kt(t,i,$,q,l,H)}return;default:if(Io(i)){for(var Vt in s)q=s[Vt],s.hasOwnProperty(Vt)&&q!==void 0&&!l.hasOwnProperty(Vt)&&bf(t,i,Vt,void 0,l,q);for(Y in l)q=l[Y],H=s[Y],!l.hasOwnProperty(Y)||q===H||q===void 0&&H===void 0||bf(t,i,Y,q,l,H);return}}for(var I in s)q=s[I],s.hasOwnProperty(I)&&q!=null&&!l.hasOwnProperty(I)&&Kt(t,i,I,null,l,q);for(Q in l)q=l[Q],H=s[Q],!l.hasOwnProperty(Q)||q===H||q==null&&H==null||Kt(t,i,Q,q,l,H)}function Mm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,i=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var c=s[l],f=c.transferSize,m=c.initiatorType,T=c.duration;if(f&&T&&Mm(m)){for(m=0,T=c.responseEnd,l+=1;l<s.length;l++){var R=s[l],$=R.startTime;if($>T)break;var Y=R.transferSize,Q=R.initiatorType;Y&&Mm(Q)&&(R=R.responseEnd,m+=Y*(R<T?1:(T-$)/(R-$)))}if(--l,i+=8*(f+m)/(c.duration/1e3),t++,10<t)break}}if(0<t)return i/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Tf=null,Sf=null;function su(t){return t.nodeType===9?t:t.ownerDocument}function km(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Im(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function Af(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Of=null;function hT(){var t=window.event;return t&&t.type==="popstate"?t===Of?!1:(Of=t,!0):(Of=null,!1)}var Um=typeof setTimeout=="function"?setTimeout:void 0,dT=typeof clearTimeout=="function"?clearTimeout:void 0,zm=typeof Promise=="function"?Promise:void 0,pT=typeof queueMicrotask=="function"?queueMicrotask:typeof zm<"u"?function(t){return zm.resolve(null).then(t).catch(_T)}:Um;function _T(t){setTimeout(function(){throw t})}function Yi(t){return t==="head"}function Bm(t,i){var s=i,l=0;do{var c=s.nextSibling;if(t.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"||s==="/&"){if(l===0){t.removeChild(c),Es(i);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Er(t.ownerDocument.documentElement);else if(s==="head"){s=t.ownerDocument.head,Er(s);for(var f=s.firstChild;f;){var m=f.nextSibling,T=f.nodeName;f[js]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&f.rel.toLowerCase()==="stylesheet"||s.removeChild(f),f=m}}else s==="body"&&Er(t.ownerDocument.body);s=c}while(s);Es(i)}function jm(t,i){var s=t;t=0;do{var l=s.nextSibling;if(s.nodeType===1?i?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(i?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(t===0)break;t--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||t++;s=l}while(s)}function xf(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":xf(s),Co(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function mT(t,i,s,l){for(;t.nodeType===1;){var c=s;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[js])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=Tn(t.nextSibling),t===null)break}return null}function gT(t,i,s){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=Tn(t.nextSibling),t===null))return null;return t}function Dm(t,i){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Tn(t.nextSibling),t===null))return null;return t}function Nf(t){return t.data==="$?"||t.data==="$~"}function Rf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function yT(t,i){var s=t.ownerDocument;if(t.data==="$~")t._reactRetry=i;else if(t.data!=="$?"||s.readyState!=="loading")i();else{var l=function(){i(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Tn(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return t}var wf=null;function $m(t){t=t.nextSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"||s==="/&"){if(i===0)return Tn(t.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}t=t.nextSibling}return null}function Pm(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(i===0)return t;i--}else s!=="/$"&&s!=="/&"||i++}t=t.previousSibling}return null}function qm(t,i,s){switch(i=su(s),t){case"html":if(t=i.documentElement,!t)throw Error(r(452));return t;case"head":if(t=i.head,!t)throw Error(r(453));return t;case"body":if(t=i.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Er(t){for(var i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Co(t)}var Sn=new Map,Gm=new Set;function ru(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vi=K.d;K.d={f:vT,r:ET,D:bT,C:TT,L:ST,m:AT,X:xT,S:OT,M:NT};function vT(){var t=vi.f(),i=Zl();return t||i}function ET(t){var i=Da(t);i!==null&&i.tag===5&&i.type==="form"?r_(i):vi.r(t)}var gs=typeof document>"u"?null:document;function Hm(t,i,s){var l=gs;if(l&&typeof i=="string"&&i){var c=_n(i);c='link[rel="'+t+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),Gm.has(c)||(Gm.add(c),t={rel:t,crossOrigin:s,href:i},l.querySelector(c)===null&&(i=l.createElement("link"),Re(i,"link",t),be(i),l.head.appendChild(i)))}}function bT(t){vi.D(t),Hm("dns-prefetch",t,null)}function TT(t,i){vi.C(t,i),Hm("preconnect",t,i)}function ST(t,i,s){vi.L(t,i,s);var l=gs;if(l&&t&&i){var c='link[rel="preload"][as="'+_n(i)+'"]';i==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+_n(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+_n(s.imageSizes)+'"]')):c+='[href="'+_n(t)+'"]';var f=c;switch(i){case"style":f=ys(t);break;case"script":f=vs(t)}Sn.has(f)||(t=y({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:t,as:i},s),Sn.set(f,t),l.querySelector(c)!==null||i==="style"&&l.querySelector(br(f))||i==="script"&&l.querySelector(Tr(f))||(i=l.createElement("link"),Re(i,"link",t),be(i),l.head.appendChild(i)))}}function AT(t,i){vi.m(t,i);var s=gs;if(s&&t){var l=i&&typeof i.as=="string"?i.as:"script",c='link[rel="modulepreload"][as="'+_n(l)+'"][href="'+_n(t)+'"]',f=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=vs(t)}if(!Sn.has(f)&&(t=y({rel:"modulepreload",href:t},i),Sn.set(f,t),s.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Tr(f)))return}l=s.createElement("link"),Re(l,"link",t),be(l),s.head.appendChild(l)}}}function OT(t,i,s){vi.S(t,i,s);var l=gs;if(l&&t){var c=$a(l).hoistableStyles,f=ys(t);i=i||"default";var m=c.get(f);if(!m){var T={loading:0,preload:null};if(m=l.querySelector(br(f)))T.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":i},s),(s=Sn.get(f))&&Cf(t,s);var R=m=l.createElement("link");be(R),Re(R,"link",t),R._p=new Promise(function($,Y){R.onload=$,R.onerror=Y}),R.addEventListener("load",function(){T.loading|=1}),R.addEventListener("error",function(){T.loading|=2}),T.loading|=4,lu(m,i,l)}m={type:"stylesheet",instance:m,count:1,state:T},c.set(f,m)}}}function xT(t,i){vi.X(t,i);var s=gs;if(s&&t){var l=$a(s).hoistableScripts,c=vs(t),f=l.get(c);f||(f=s.querySelector(Tr(c)),f||(t=y({src:t,async:!0},i),(i=Sn.get(c))&&Lf(t,i),f=s.createElement("script"),be(f),Re(f,"link",t),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(c,f))}}function NT(t,i){vi.M(t,i);var s=gs;if(s&&t){var l=$a(s).hoistableScripts,c=vs(t),f=l.get(c);f||(f=s.querySelector(Tr(c)),f||(t=y({src:t,async:!0,type:"module"},i),(i=Sn.get(c))&&Lf(t,i),f=s.createElement("script"),be(f),Re(f,"link",t),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(c,f))}}function Fm(t,i,s,l){var c=(c=st.current)?ru(c):null;if(!c)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=ys(s.href),s=$a(c).hoistableStyles,l=s.get(i),l||(l={type:"style",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=ys(s.href);var f=$a(c).hoistableStyles,m=f.get(t);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,m),(f=c.querySelector(br(t)))&&!f._p&&(m.instance=f,m.state.loading=5),Sn.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Sn.set(t,s),f||RT(c,t,s,m.state))),i&&l===null)throw Error(r(528,""));return m}if(i&&l!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=vs(s),s=$a(c).hoistableScripts,l=s.get(i),l||(l={type:"script",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ys(t){return'href="'+_n(t)+'"'}function br(t){return'link[rel="stylesheet"]['+t+"]"}function Km(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function RT(t,i,s,l){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=t.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Re(i,"link",s),be(i),t.head.appendChild(i))}function vs(t){return'[src="'+_n(t)+'"]'}function Tr(t){return"script[async]"+t}function Vm(t,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=t.querySelector('style[data-href~="'+_n(s.href)+'"]');if(l)return i.instance=l,be(l),l;var c=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),be(l),Re(l,"style",c),lu(l,s.precedence,t),i.instance=l;case"stylesheet":c=ys(s.href);var f=t.querySelector(br(c));if(f)return i.state.loading|=4,i.instance=f,be(f),f;l=Km(s),(c=Sn.get(c))&&Cf(l,c),f=(t.ownerDocument||t).createElement("link"),be(f);var m=f;return m._p=new Promise(function(T,R){m.onload=T,m.onerror=R}),Re(f,"link",l),i.state.loading|=4,lu(f,s.precedence,t),i.instance=f;case"script":return f=vs(s.src),(c=t.querySelector(Tr(f)))?(i.instance=c,be(c),c):(l=s,(c=Sn.get(f))&&(l=y({},s),Lf(l,c)),t=t.ownerDocument||t,c=t.createElement("script"),be(c),Re(c,"link",l),t.head.appendChild(c),i.instance=c);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,lu(l,s.precedence,t));return i.instance}function lu(t,i,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,f=c,m=0;m<l.length;m++){var T=l[m];if(T.dataset.precedence===i)f=T;else if(f!==c)break}f?f.parentNode.insertBefore(t,f.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(t,i.firstChild))}function Cf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function Lf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var uu=null;function Ym(t,i,s){if(uu===null){var l=new Map,c=uu=new Map;c.set(s,l)}else c=uu,l=c.get(s),l||(l=new Map,c.set(s,l));if(l.has(t))return l;for(l.set(t,null),s=s.getElementsByTagName(t),c=0;c<s.length;c++){var f=s[c];if(!(f[js]||f[Ae]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var m=f.getAttribute(i)||"";m=t+m;var T=l.get(m);T?T.push(f):l.set(m,[f])}}return l}function Xm(t,i,s){t=t.ownerDocument||t,t.head.insertBefore(s,i==="title"?t.querySelector("head > title"):null)}function wT(t,i,s){if(s===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(t=i.disabled,typeof i.precedence=="string"&&t==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Qm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function CT(t,i,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=ys(l.href),f=i.querySelector(br(c));if(f){i=f._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=ou.bind(t),i.then(t,t)),s.state.loading|=4,s.instance=f,be(f);return}f=i.ownerDocument||i,l=Km(l),(c=Sn.get(c))&&Cf(l,c),f=f.createElement("link"),be(f);var m=f;m._p=new Promise(function(T,R){m.onload=T,m.onerror=R}),Re(f,"link",l),s.instance=f}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(t.count++,s=ou.bind(t),i.addEventListener("load",s),i.addEventListener("error",s))}}var Mf=0;function LT(t,i){return t.stylesheets&&t.count===0&&fu(t,t.stylesheets),0<t.count||0<t.imgCount?function(s){var l=setTimeout(function(){if(t.stylesheets&&fu(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f()}},6e4+i);0<t.imgBytes&&Mf===0&&(Mf=62500*fT());var c=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&fu(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f()}},(t.imgBytes>Mf?50:800)+i);return t.unsuspend=s,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cu=null;function fu(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cu=new Map,i.forEach(MT,t),cu=null,ou.call(t))}function MT(t,i){if(!(i.state.loading&4)){var s=cu.get(t);if(s)var l=s.get(null);else{s=new Map,cu.set(t,s);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var m=c[f];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(s.set(m.dataset.precedence,m),l=m)}l&&s.set(null,l)}c=i.instance,m=c.getAttribute("data-precedence"),f=s.get(m)||l,f===l&&s.set(null,c),s.set(m,c),this.count++,l=ou.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),f?f.parentNode.insertBefore(c,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),i.state.loading|=4}}var Sr={$$typeof:P,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function kT(t,i,s,l,c,f,m,T,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.hiddenUpdates=xo(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Zm(t,i,s,l,c,f,m,T,R,$,Y,Q){return t=new kT(t,i,s,m,R,$,Y,Q,T),i=1,f===!0&&(i|=24),f=We(3,null,null,i),t.current=f,f.stateNode=t,i=cc(),i.refCount++,t.pooledCache=i,i.refCount++,f.memoizedState={element:l,isDehydrated:s,cache:i},pc(f),t}function Wm(t){return t?(t=Qa,t):Qa}function Jm(t,i,s,l,c,f){c=Wm(c),l.context===null?l.context=c:l.pendingContext=c,l=Bi(i),l.payload={element:s},f=f===void 0?null:f,f!==null&&(l.callback=f),s=ji(t,l,i),s!==null&&(Fe(s,t,i),er(s,t,i))}function tg(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<i?s:i}}function kf(t,i){tg(t,i),(t=t.alternate)&&tg(t,i)}function eg(t){if(t.tag===13||t.tag===31){var i=fa(t,67108864);i!==null&&Fe(i,t,67108864),kf(t,67108864)}}function ng(t){if(t.tag===13||t.tag===31){var i=an();i=No(i);var s=fa(t,i);s!==null&&Fe(s,t,i),kf(t,i)}}var hu=!0;function IT(t,i,s,l){var c=k.T;k.T=null;var f=K.p;try{K.p=2,If(t,i,s,l)}finally{K.p=f,k.T=c}}function UT(t,i,s,l){var c=k.T;k.T=null;var f=K.p;try{K.p=8,If(t,i,s,l)}finally{K.p=f,k.T=c}}function If(t,i,s,l){if(hu){var c=Uf(l);if(c===null)Ef(t,i,l,du,s),ag(t,l);else if(BT(c,t,i,s,l))l.stopPropagation();else if(ag(t,l),i&4&&-1<zT.indexOf(t)){for(;c!==null;){var f=Da(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var m=ra(f.pendingLanes);if(m!==0){var T=f;for(T.pendingLanes|=2,T.entangledLanes|=2;m;){var R=1<<31-Qe(m);T.entanglements[1]|=R,m&=~R}Kn(f),(Dt&6)===0&&(Xl=$t()+500,gr(0))}}break;case 31:case 13:T=fa(f,2),T!==null&&Fe(T,f,2),Zl(),kf(f,2)}if(f=Uf(l),f===null&&Ef(t,i,l,du,s),f===c)break;c=f}c!==null&&l.stopPropagation()}else Ef(t,i,l,null,s)}}function Uf(t){return t=zo(t),zf(t)}var du=null;function zf(t){if(du=null,t=ja(t),t!==null){var i=o(t);if(i===null)t=null;else{var s=i.tag;if(s===13){if(t=h(i),t!==null)return t;t=null}else if(s===31){if(t=p(i),t!==null)return t;t=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return du=t,null}function ig(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(hn()){case le:return 2;case Se:return 8;case je:case Is:return 32;case Us:return 268435456;default:return 32}default:return 32}}var Bf=!1,Xi=null,Qi=null,Zi=null,Ar=new Map,Or=new Map,Wi=[],zT="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 ag(t,i){switch(t){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Ar.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Or.delete(i.pointerId)}}function xr(t,i,s,l,c,f){return t===null||t.nativeEvent!==f?(t={blockedOn:i,domEventName:s,eventSystemFlags:l,nativeEvent:f,targetContainers:[c]},i!==null&&(i=Da(i),i!==null&&eg(i)),t):(t.eventSystemFlags|=l,i=t.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),t)}function BT(t,i,s,l,c){switch(i){case"focusin":return Xi=xr(Xi,t,i,s,l,c),!0;case"dragenter":return Qi=xr(Qi,t,i,s,l,c),!0;case"mouseover":return Zi=xr(Zi,t,i,s,l,c),!0;case"pointerover":var f=c.pointerId;return Ar.set(f,xr(Ar.get(f)||null,t,i,s,l,c)),!0;case"gotpointercapture":return f=c.pointerId,Or.set(f,xr(Or.get(f)||null,t,i,s,l,c)),!0}return!1}function sg(t){var i=ja(t.target);if(i!==null){var s=o(i);if(s!==null){if(i=s.tag,i===13){if(i=h(s),i!==null){t.blockedOn=i,vd(t.priority,function(){ng(s)});return}}else if(i===31){if(i=p(s),i!==null){t.blockedOn=i,vd(t.priority,function(){ng(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function pu(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var s=Uf(t.nativeEvent);if(s===null){s=t.nativeEvent;var l=new s.constructor(s.type,s);Uo=l,s.target.dispatchEvent(l),Uo=null}else return i=Da(s),i!==null&&eg(i),t.blockedOn=s,!1;i.shift()}return!0}function rg(t,i,s){pu(t)&&s.delete(i)}function jT(){Bf=!1,Xi!==null&&pu(Xi)&&(Xi=null),Qi!==null&&pu(Qi)&&(Qi=null),Zi!==null&&pu(Zi)&&(Zi=null),Ar.forEach(rg),Or.forEach(rg)}function _u(t,i){t.blockedOn===i&&(t.blockedOn=null,Bf||(Bf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,jT)))}var mu=null;function lg(t){mu!==t&&(mu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mu===t&&(mu=null);for(var i=0;i<t.length;i+=3){var s=t[i],l=t[i+1],c=t[i+2];if(typeof l!="function"){if(zf(l||s)===null)continue;break}var f=Da(s);f!==null&&(t.splice(i,3),i-=3,Ic(f,{pending:!0,data:c,method:s.method,action:l},l,c))}}))}function Es(t){function i(R){return _u(R,t)}Xi!==null&&_u(Xi,t),Qi!==null&&_u(Qi,t),Zi!==null&&_u(Zi,t),Ar.forEach(i),Or.forEach(i);for(var s=0;s<Wi.length;s++){var l=Wi[s];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Wi.length&&(s=Wi[0],s.blockedOn===null);)sg(s),s.blockedOn===null&&Wi.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var c=s[l],f=s[l+1],m=c[De]||null;if(typeof f=="function")m||lg(s);else if(m){var T=null;if(f&&f.hasAttribute("formAction")){if(c=f,m=f[De]||null)T=m.formAction;else if(zf(c)!==null)continue}else T=m.action;typeof T=="function"?s[l+1]=T:(s.splice(l,3),l-=3),lg(s)}}}function ug(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function i(){c!==null&&(c(),c=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),c!==null&&(c(),c=null)}}}function jf(t){this._internalRoot=t}gu.prototype.render=jf.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,l=an();Jm(s,l,t,i,null,null)},gu.prototype.unmount=jf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;Jm(t.current,2,null,t,null,null),Zl(),i[Ba]=null}};function gu(t){this._internalRoot=t}gu.prototype.unstable_scheduleHydration=function(t){if(t){var i=yd();t={blockedOn:null,target:t,priority:i};for(var s=0;s<Wi.length&&i!==0&&i<Wi[s].priority;s++);Wi.splice(s,0,t),s===0&&sg(t)}};var og=n.version;if(og!=="19.2.4")throw Error(r(527,og,"19.2.4"));K.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=_(i),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var DT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yu.isDisabled&&yu.supportsFiber)try{Cn=yu.inject(DT),Le=yu}catch{}}return Rr.createRoot=function(t,i){if(!u(t))throw Error(r(299));var s=!1,l="",c=m_,f=g_,m=y_;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(f=i.onCaughtError),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=Zm(t,1,!1,null,null,s,l,null,c,f,m,ug),t[Ba]=i.current,vf(t),new jf(i)},Rr.hydrateRoot=function(t,i,s){if(!u(t))throw Error(r(299));var l=!1,c="",f=m_,m=g_,T=y_,R=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(m=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.formState!==void 0&&(R=s.formState)),i=Zm(t,1,!0,i,s??null,l,c,R,f,m,T,ug),i.context=Wm(null),s=i.current,l=an(),l=No(l),c=Bi(l),c.callback=null,ji(s,c,l),s=l,i.current.lanes=s,Bs(i,s),Kn(i),t[Ba]=i.current,vf(t),new gu(i)},Rr.version="19.2.4",Rr}var vg;function QT(){if(vg)return Pf.exports;vg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Pf.exports=XT(),Pf.exports}var ZT=QT();const WT=ao(ZT);function Eg(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function JT(e){if(Array.isArray(e))return e}function t1(e,n,a){return(n=l1(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function e1(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,u,o,h,p=[],d=!0,_=!1;try{if(o=(a=a.call(e)).next,n!==0)for(;!(d=(r=o.call(a)).done)&&(p.push(r.value),p.length!==n);d=!0);}catch(v){_=!0,u=v}finally{try{if(!d&&a.return!=null&&(h=a.return(),Object(h)!==h))return}finally{if(_)throw u}}return p}}function n1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
10
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bg(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),a.push.apply(a,r)}return a}function Tg(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?bg(Object(a),!0).forEach(function(r){t1(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):bg(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function i1(e,n){if(e==null)return{};var a,r,u=a1(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],n.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(u[a]=e[a])}return u}function a1(e,n){if(e==null)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)!==-1)continue;a[r]=e[r]}return a}function s1(e,n){return JT(e)||e1(e,n)||u1(e,n)||n1()}function r1(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,n);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function l1(e){var n=r1(e,"string");return typeof n=="symbol"?n:n+""}function u1(e,n){if(e){if(typeof e=="string")return Eg(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Eg(e,n):void 0}}function o1(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function Sg(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),a.push.apply(a,r)}return a}function Ag(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Sg(Object(a),!0).forEach(function(r){o1(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Sg(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function c1(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return function(r){return n.reduceRight(function(u,o){return o(u)},r)}}function zr(e){return function n(){for(var a=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var h=arguments.length,p=new Array(h),d=0;d<h;d++)p[d]=arguments[d];return n.apply(a,[].concat(u,p))}}}function Gu(e){return{}.toString.call(e).includes("Object")}function f1(e){return!Object.keys(e).length}function Gr(e){return typeof e=="function"}function h1(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function d1(e,n){return Gu(n)||ta("changeType"),Object.keys(n).some(function(a){return!h1(e,a)})&&ta("changeField"),n}function p1(e){Gr(e)||ta("selectorType")}function _1(e){Gr(e)||Gu(e)||ta("handlerType"),Gu(e)&&Object.values(e).some(function(n){return!Gr(n)})&&ta("handlersType")}function m1(e){e||ta("initialIsRequired"),Gu(e)||ta("initialType"),f1(e)&&ta("initialContent")}function g1(e,n){throw new Error(e[n]||e.default)}var y1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ta=zr(g1)(y1),vu={changes:d1,selector:p1,handler:_1,initial:m1};function v1(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vu.initial(e),vu.handler(n);var a={current:e},r=zr(T1)(a,n),u=zr(b1)(a),o=zr(vu.changes)(e),h=zr(E1)(a);function p(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(v){return v};return vu.selector(_),_(a.current)}function d(_){c1(r,u,o,h)(_)}return[p,d]}function E1(e,n){return Gr(n)?n(e.current):n}function b1(e,n){return e.current=Ag(Ag({},e.current),n),n}function T1(e,n,a){return Gr(n)?n(e.current):Object.keys(a).forEach(function(r){var u;return(u=n[r])===null||u===void 0?void 0:u.call(n,e.current[r])}),a}var S1={create:v1},A1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function O1(e){return function n(){for(var a=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var h=arguments.length,p=new Array(h),d=0;d<h;d++)p[d]=arguments[d];return n.apply(a,[].concat(u,p))}}}function x1(e){return{}.toString.call(e).includes("Object")}function N1(e){return e||Og("configIsRequired"),x1(e)||Og("configType"),e.urls?(R1(),{paths:{vs:e.urls.monacoBase}}):e}function R1(){console.warn(p0.deprecation)}function w1(e,n){throw new Error(e[n]||e.default)}var p0={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
11
11
  You are using deprecated way of configuration.
12
12
 
@@ -16,7 +16,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16
16
  monaco.config({ paths: { vs: '...' } })
17
17
 
18
18
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
19
- `},Og=O1(w1)(p0),C1={config:N1},L1=function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return function(u){return a.reduceRight(function(o,h){return h(o)},u)}};function _0(e,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&e[a]&&Object.assign(n[a],_0(e[a],n[a]))}),Tg(Tg({},e),n)}var M1={type:"cancelation",msg:"operation is manually canceled"};function Ff(e){var n=!1,a=new Promise(function(r,u){e.then(function(o){return n?u(M1):r(o)}),e.catch(u)});return a.cancel=function(){return n=!0},a}var k1=["monaco"],U1=S1.create({config:A1,isInitialized:!1,resolve:null,reject:null,monaco:null}),m0=s1(U1,2),Yr=m0[0],so=m0[1];function I1(e){var n=C1.config(e),a=n.monaco,r=i1(n,k1);so(function(u){return{config:_0(u.config,r),monaco:a}})}function z1(){var e=Yr(function(n){var a=n.monaco,r=n.isInitialized,u=n.resolve;return{monaco:a,isInitialized:r,resolve:u}});if(!e.isInitialized){if(so({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ff(Kf);if(window.monaco&&window.monaco.editor)return g0(window.monaco),e.resolve(window.monaco),Ff(Kf);L1(B1,D1)($1)}return Ff(Kf)}function B1(e){return document.body.appendChild(e)}function j1(e){var n=document.createElement("script");return e&&(n.src=e),n}function D1(e){var n=Yr(function(r){var u=r.config,o=r.reject;return{config:u,reject:o}}),a=j1("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return e()},a.onerror=n.reject,a}function $1(){var e=Yr(function(a){var r=a.config,u=a.resolve,o=a.reject;return{config:r,resolve:u,reject:o}}),n=window.require;n.config(e.config),n(["vs/editor/editor.main"],function(a){var r=a.m||a;g0(r),e.resolve(r)},function(a){e.reject(a)})}function g0(e){Yr().monaco||so({monaco:e})}function P1(){return Yr(function(e){var n=e.monaco;return n})}var Kf=new Promise(function(e,n){return so({resolve:e,reject:n})}),y0={config:I1,init:z1,__getMonacoInstance:P1},q1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Vf=q1,G1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},H1=G1;function F1({children:e}){return Ra.createElement("div",{style:H1.container},e)}var K1=F1,V1=K1;function Y1({width:e,height:n,isEditorReady:a,loading:r,_ref:u,className:o,wrapperProps:h}){return Ra.createElement("section",{style:{...Vf.wrapper,width:e,height:n},...h},!a&&Ra.createElement(V1,null,r),Ra.createElement("div",{ref:u,style:{...Vf.fullWidth,...!a&&Vf.hide},className:o}))}var X1=Y1,v0=pt.memo(X1);function Q1(e){pt.useEffect(e,[])}var E0=Q1;function Z1(e,n,a=!0){let r=pt.useRef(!0);pt.useEffect(r.current||!a?()=>{r.current=!1}:e,n)}var sn=Z1;function $r(){}function As(e,n,a,r){return W1(e,r)||J1(e,n,a,r)}function W1(e,n){return e.editor.getModel(b0(e,n))}function J1(e,n,a,r){return e.editor.createModel(n,a,r?b0(e,r):void 0)}function b0(e,n){return e.Uri.parse(n)}function tS({original:e,modified:n,language:a,originalLanguage:r,modifiedLanguage:u,originalModelPath:o,modifiedModelPath:h,keepCurrentOriginalModel:p=!1,keepCurrentModifiedModel:d=!1,theme:_="light",loading:v="Loading...",options:y={},height:O="100%",width:z="100%",className:G,wrapperProps:V={},beforeMount:A=$r,onMount:b=$r}){let[N,P]=pt.useState(!1),[B,Z]=pt.useState(!0),I=pt.useRef(null),w=pt.useRef(null),E=pt.useRef(null),S=pt.useRef(b),g=pt.useRef(A),L=pt.useRef(!1);E0(()=>{let it=y0.init();return it.then(k=>(w.current=k)&&Z(!1)).catch(k=>k?.type!=="cancelation"&&console.error("Monaco initialization: error:",k)),()=>I.current?at():it.cancel()}),sn(()=>{if(I.current&&w.current){let it=I.current.getOriginalEditor(),k=As(w.current,e||"",r||a||"text",o||"");k!==it.getModel()&&it.setModel(k)}},[o],N),sn(()=>{if(I.current&&w.current){let it=I.current.getModifiedEditor(),k=As(w.current,n||"",u||a||"text",h||"");k!==it.getModel()&&it.setModel(k)}},[h],N),sn(()=>{let it=I.current.getModifiedEditor();it.getOption(w.current.editor.EditorOption.readOnly)?it.setValue(n||""):n!==it.getValue()&&(it.executeEdits("",[{range:it.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),it.pushUndoStop())},[n],N),sn(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],N),sn(()=>{let{original:it,modified:k}=I.current.getModel();w.current.editor.setModelLanguage(it,r||a||"text"),w.current.editor.setModelLanguage(k,u||a||"text")},[a,r,u],N),sn(()=>{w.current?.editor.setTheme(_)},[_],N),sn(()=>{I.current?.updateOptions(y)},[y],N);let M=pt.useCallback(()=>{if(!w.current)return;g.current(w.current);let it=As(w.current,e||"",r||a||"text",o||""),k=As(w.current,n||"",u||a||"text",h||"");I.current?.setModel({original:it,modified:k})},[a,n,u,e,r,o,h]),W=pt.useCallback(()=>{!L.current&&E.current&&(I.current=w.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...y}),M(),w.current?.editor.setTheme(_),P(!0),L.current=!0)},[y,_,M]);pt.useEffect(()=>{N&&S.current(I.current,w.current)},[N]),pt.useEffect(()=>{!B&&!N&&W()},[B,N,W]);function at(){let it=I.current?.getModel();p||it?.original?.dispose(),d||it?.modified?.dispose(),I.current?.dispose()}return Ra.createElement(v0,{width:z,height:O,isEditorReady:N,loading:v,_ref:E,className:G,wrapperProps:V})}var eS=tS;pt.memo(eS);function nS(e){let n=pt.useRef();return pt.useEffect(()=>{n.current=e},[e]),n.current}var iS=nS,Eu=new Map;function aS({defaultValue:e,defaultLanguage:n,defaultPath:a,value:r,language:u,path:o,theme:h="light",line:p,loading:d="Loading...",options:_={},overrideServices:v={},saveViewState:y=!0,keepCurrentModel:O=!1,width:z="100%",height:G="100%",className:V,wrapperProps:A={},beforeMount:b=$r,onMount:N=$r,onChange:P,onValidate:B=$r}){let[Z,I]=pt.useState(!1),[w,E]=pt.useState(!0),S=pt.useRef(null),g=pt.useRef(null),L=pt.useRef(null),M=pt.useRef(N),W=pt.useRef(b),at=pt.useRef(),it=pt.useRef(r),k=iS(o),K=pt.useRef(!1),nt=pt.useRef(!1);E0(()=>{let x=y0.init();return x.then(D=>(S.current=D)&&E(!1)).catch(D=>D?.type!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>g.current?_t():x.cancel()}),sn(()=>{let x=As(S.current,e||r||"",n||u||"",o||a||"");x!==g.current?.getModel()&&(y&&Eu.set(k,g.current?.saveViewState()),g.current?.setModel(x),y&&g.current?.restoreViewState(Eu.get(o)))},[o],Z),sn(()=>{g.current?.updateOptions(_)},[_],Z),sn(()=>{!g.current||r===void 0||(g.current.getOption(S.current.editor.EditorOption.readOnly)?g.current.setValue(r):r!==g.current.getValue()&&(nt.current=!0,g.current.executeEdits("",[{range:g.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),g.current.pushUndoStop(),nt.current=!1))},[r],Z),sn(()=>{let x=g.current?.getModel();x&&u&&S.current?.editor.setModelLanguage(x,u)},[u],Z),sn(()=>{p!==void 0&&g.current?.revealLine(p)},[p],Z),sn(()=>{S.current?.editor.setTheme(h)},[h],Z);let tt=pt.useCallback(()=>{if(!(!L.current||!S.current)&&!K.current){W.current(S.current);let x=o||a,D=As(S.current,r||e||"",n||u||"",x||"");g.current=S.current?.editor.create(L.current,{model:D,automaticLayout:!0,..._},v),y&&g.current.restoreViewState(Eu.get(x)),S.current.editor.setTheme(h),p!==void 0&&g.current.revealLine(p),I(!0),K.current=!0}},[e,n,a,r,u,o,_,v,y,h,p]);pt.useEffect(()=>{Z&&M.current(g.current,S.current)},[Z]),pt.useEffect(()=>{!w&&!Z&&tt()},[w,Z,tt]),it.current=r,pt.useEffect(()=>{Z&&P&&(at.current?.dispose(),at.current=g.current?.onDidChangeModelContent(x=>{nt.current||P(g.current.getValue(),x)}))},[Z,P]),pt.useEffect(()=>{if(Z){let x=S.current.editor.onDidChangeMarkers(D=>{let F=g.current.getModel()?.uri;if(F&&D.find(J=>J.path===F.path)){let J=S.current.editor.getModelMarkers({resource:F});B?.(J)}});return()=>{x?.dispose()}}return()=>{}},[Z,B]);function _t(){at.current?.dispose(),O?y&&Eu.set(o,g.current.saveViewState()):g.current.getModel()?.dispose(),g.current.dispose()}return Ra.createElement(v0,{width:z,height:G,isEditorReady:Z,loading:d,_ref:L,className:V,wrapperProps:A})}var sS=aS,rS=pt.memo(sS),bu=rS;const lS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,r)=>r?r.toUpperCase():a.toLowerCase()),xg=e=>{const n=uS(e);return n.charAt(0).toUpperCase()+n.slice(1)},T0=(...e)=>e.filter((n,a,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===a).join(" ").trim(),oS=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var cS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const fS=pt.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:h,...p},d)=>pt.createElement("svg",{ref:d,...cS,width:n,height:n,stroke:e,strokeWidth:r?Number(a)*24/Number(n):a,className:T0("lucide",u),...!o&&!oS(p)&&{"aria-hidden":"true"},...p},[...h.map(([_,v])=>pt.createElement(_,v)),...Array.isArray(o)?o:[o]]));const ka=(e,n)=>{const a=pt.forwardRef(({className:r,...u},o)=>pt.createElement(fS,{ref:o,iconNode:n,className:T0(`lucide-${lS(xg(e))}`,`lucide-${e}`,r),...u}));return a.displayName=xg(e),a};const hS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dS=ka("check",hS);const pS=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],_S=ka("code",pS);const mS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],gS=ka("copy",mS);const yS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Ng=ka("database",yS);const vS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],ES=ka("file-code",vS);const bS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Rg=ka("info",bS);const TS=[["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"}]],ku=ka("play",TS);var S0=typeof global=="object"&&global&&global.Object===Object&&global,SS=typeof self=="object"&&self&&self.Object===Object&&self,Qn=S0||SS||Function("return this")(),xn=Qn.Symbol,A0=Object.prototype,AS=A0.hasOwnProperty,OS=A0.toString,wr=xn?xn.toStringTag:void 0;function xS(e){var n=AS.call(e,wr),a=e[wr];try{e[wr]=void 0;var r=!0}catch{}var u=OS.call(e);return r&&(n?e[wr]=a:delete e[wr]),u}var NS=Object.prototype,RS=NS.toString;function wS(e){return RS.call(e)}var CS="[object Null]",LS="[object Undefined]",wg=xn?xn.toStringTag:void 0;function ia(e){return e==null?e===void 0?LS:CS:wg&&wg in Object(e)?xS(e):wS(e)}function Bn(e){return e!=null&&typeof e=="object"}var MS="[object Symbol]";function ro(e){return typeof e=="symbol"||Bn(e)&&ia(e)==MS}function lo(e,n){for(var a=-1,r=e==null?0:e.length,u=Array(r);++a<r;)u[a]=n(e[a],a,e);return u}var zt=Array.isArray,Cg=xn?xn.prototype:void 0,Lg=Cg?Cg.toString:void 0;function O0(e){if(typeof e=="string")return e;if(zt(e))return lo(e,O0)+"";if(ro(e))return Lg?Lg.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}var kS=/\s/;function US(e){for(var n=e.length;n--&&kS.test(e.charAt(n)););return n}var IS=/^\s+/;function zS(e){return e&&e.slice(0,US(e)+1).replace(IS,"")}function Nn(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Mg=NaN,BS=/^[-+]0x[0-9a-f]+$/i,jS=/^0b[01]+$/i,DS=/^0o[0-7]+$/i,$S=parseInt;function PS(e){if(typeof e=="number")return e;if(ro(e))return Mg;if(Nn(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Nn(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=zS(e);var a=jS.test(e);return a||DS.test(e)?$S(e.slice(2),a?2:8):BS.test(e)?Mg:+e}var kg=1/0,qS=17976931348623157e292;function GS(e){if(!e)return e===0?e:0;if(e=PS(e),e===kg||e===-kg){var n=e<0?-1:1;return n*qS}return e===e?e:0}function uo(e){var n=GS(e),a=n%1;return n===n?a?n-a:n:0}function Rs(e){return e}var HS="[object AsyncFunction]",FS="[object Function]",KS="[object GeneratorFunction]",VS="[object Proxy]";function Ai(e){if(!Nn(e))return!1;var n=ia(e);return n==FS||n==KS||n==HS||n==VS}var Yf=Qn["__core-js_shared__"],Ug=(function(){var e=/[^.]+$/.exec(Yf&&Yf.keys&&Yf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function YS(e){return!!Ug&&Ug in e}var XS=Function.prototype,QS=XS.toString;function Ua(e){if(e!=null){try{return QS.call(e)}catch{}try{return e+""}catch{}}return""}var ZS=/[\\^$.*+?()[\]{}|]/g,WS=/^\[object .+?Constructor\]$/,JS=Function.prototype,tA=Object.prototype,eA=JS.toString,nA=tA.hasOwnProperty,iA=RegExp("^"+eA.call(nA).replace(ZS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aA(e){if(!Nn(e)||YS(e))return!1;var n=Ai(e)?iA:WS;return n.test(Ua(e))}function sA(e,n){return e?.[n]}function Ia(e,n){var a=sA(e,n);return aA(a)?a:void 0}var Eh=Ia(Qn,"WeakMap"),Ig=Object.create,rA=(function(){function e(){}return function(n){if(!Nn(n))return{};if(Ig)return Ig(n);e.prototype=n;var a=new e;return e.prototype=void 0,a}})();function lA(e,n,a){switch(a.length){case 0:return e.call(n);case 1:return e.call(n,a[0]);case 2:return e.call(n,a[0],a[1]);case 3:return e.call(n,a[0],a[1],a[2])}return e.apply(n,a)}function ge(){}function uA(e,n){var a=-1,r=e.length;for(n||(n=Array(r));++a<r;)n[a]=e[a];return n}var oA=800,cA=16,fA=Date.now;function hA(e){var n=0,a=0;return function(){var r=fA(),u=cA-(r-a);if(a=r,u>0){if(++n>=oA)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function dA(e){return function(){return e}}var Hu=(function(){try{var e=Ia(Object,"defineProperty");return e({},"",{}),e}catch{}})(),pA=Hu?function(e,n){return Hu(e,"toString",{configurable:!0,enumerable:!1,value:dA(n),writable:!0})}:Rs,_A=hA(pA);function x0(e,n){for(var a=-1,r=e==null?0:e.length;++a<r&&n(e[a],a,e)!==!1;);return e}function N0(e,n,a,r){for(var u=e.length,o=a+-1;++o<u;)if(n(e[o],o,e))return o;return-1}function mA(e){return e!==e}function gA(e,n,a){for(var r=a-1,u=e.length;++r<u;)if(e[r]===n)return r;return-1}function $h(e,n,a){return n===n?gA(e,n,a):N0(e,mA,a)}function R0(e,n){var a=e==null?0:e.length;return!!a&&$h(e,n,0)>-1}var yA=9007199254740991,vA=/^(?:0|[1-9]\d*)$/;function oo(e,n){var a=typeof e;return n=n??yA,!!n&&(a=="number"||a!="symbol"&&vA.test(e))&&e>-1&&e%1==0&&e<n}function Ph(e,n,a){n=="__proto__"&&Hu?Hu(e,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[n]=a}function Xr(e,n){return e===n||e!==e&&n!==n}var EA=Object.prototype,bA=EA.hasOwnProperty;function co(e,n,a){var r=e[n];(!(bA.call(e,n)&&Xr(r,a))||a===void 0&&!(n in e))&&Ph(e,n,a)}function qh(e,n,a,r){var u=!a;a||(a={});for(var o=-1,h=n.length;++o<h;){var p=n[o],d=void 0;d===void 0&&(d=e[p]),u?Ph(a,p,d):co(a,p,d)}return a}var zg=Math.max;function TA(e,n,a){return n=zg(n===void 0?e.length-1:n,0),function(){for(var r=arguments,u=-1,o=zg(r.length-n,0),h=Array(o);++u<o;)h[u]=r[n+u];u=-1;for(var p=Array(n+1);++u<n;)p[u]=r[u];return p[n]=a(h),lA(e,this,p)}}function Gh(e,n){return _A(TA(e,n,Rs),e+"")}var SA=9007199254740991;function Hh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SA}function Zn(e){return e!=null&&Hh(e.length)&&!Ai(e)}function w0(e,n,a){if(!Nn(a))return!1;var r=typeof n;return(r=="number"?Zn(a)&&oo(n,a.length):r=="string"&&n in a)?Xr(a[n],e):!1}function AA(e){return Gh(function(n,a){var r=-1,u=a.length,o=u>1?a[u-1]:void 0,h=u>2?a[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,h&&w0(a[0],a[1],h)&&(o=u<3?void 0:o,u=1),n=Object(n);++r<u;){var p=a[r];p&&e(n,p,r,o)}return n})}var OA=Object.prototype;function Qr(e){var n=e&&e.constructor,a=typeof n=="function"&&n.prototype||OA;return e===a}function xA(e,n){for(var a=-1,r=Array(e);++a<e;)r[a]=n(a);return r}var NA="[object Arguments]";function Bg(e){return Bn(e)&&ia(e)==NA}var C0=Object.prototype,RA=C0.hasOwnProperty,wA=C0.propertyIsEnumerable,fo=Bg((function(){return arguments})())?Bg:function(e){return Bn(e)&&RA.call(e,"callee")&&!wA.call(e,"callee")};function CA(){return!1}var L0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,jg=L0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,LA=jg&&jg.exports===L0,Dg=LA?Qn.Buffer:void 0,MA=Dg?Dg.isBuffer:void 0,Hr=MA||CA,kA="[object Arguments]",UA="[object Array]",IA="[object Boolean]",zA="[object Date]",BA="[object Error]",jA="[object Function]",DA="[object Map]",$A="[object Number]",PA="[object Object]",qA="[object RegExp]",GA="[object Set]",HA="[object String]",FA="[object WeakMap]",KA="[object ArrayBuffer]",VA="[object DataView]",YA="[object Float32Array]",XA="[object Float64Array]",QA="[object Int8Array]",ZA="[object Int16Array]",WA="[object Int32Array]",JA="[object Uint8Array]",tO="[object Uint8ClampedArray]",eO="[object Uint16Array]",nO="[object Uint32Array]",Jt={};Jt[YA]=Jt[XA]=Jt[QA]=Jt[ZA]=Jt[WA]=Jt[JA]=Jt[tO]=Jt[eO]=Jt[nO]=!0;Jt[kA]=Jt[UA]=Jt[KA]=Jt[IA]=Jt[VA]=Jt[zA]=Jt[BA]=Jt[jA]=Jt[DA]=Jt[$A]=Jt[PA]=Jt[qA]=Jt[GA]=Jt[HA]=Jt[FA]=!1;function iO(e){return Bn(e)&&Hh(e.length)&&!!Jt[ia(e)]}function ho(e){return function(n){return e(n)}}var M0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,Pr=M0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,aO=Pr&&Pr.exports===M0,Xf=aO&&S0.process,ea=(function(){try{var e=Pr&&Pr.require&&Pr.require("util").types;return e||Xf&&Xf.binding&&Xf.binding("util")}catch{}})(),$g=ea&&ea.isTypedArray,Fh=$g?ho($g):iO,sO=Object.prototype,rO=sO.hasOwnProperty;function k0(e,n){var a=zt(e),r=!a&&fo(e),u=!a&&!r&&Hr(e),o=!a&&!r&&!u&&Fh(e),h=a||r||u||o,p=h?xA(e.length,String):[],d=p.length;for(var _ in e)(n||rO.call(e,_))&&!(h&&(_=="length"||u&&(_=="offset"||_=="parent")||o&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||oo(_,d)))&&p.push(_);return p}function U0(e,n){return function(a){return e(n(a))}}var lO=U0(Object.keys,Object),uO=Object.prototype,oO=uO.hasOwnProperty;function I0(e){if(!Qr(e))return lO(e);var n=[];for(var a in Object(e))oO.call(e,a)&&a!="constructor"&&n.push(a);return n}function Rn(e){return Zn(e)?k0(e):I0(e)}var cO=Object.prototype,fO=cO.hasOwnProperty,un=AA(function(e,n){if(Qr(n)||Zn(n)){qh(n,Rn(n),e);return}for(var a in n)fO.call(n,a)&&co(e,a,n[a])});function hO(e){var n=[];if(e!=null)for(var a in Object(e))n.push(a);return n}var dO=Object.prototype,pO=dO.hasOwnProperty;function _O(e){if(!Nn(e))return hO(e);var n=Qr(e),a=[];for(var r in e)r=="constructor"&&(n||!pO.call(e,r))||a.push(r);return a}function z0(e){return Zn(e)?k0(e,!0):_O(e)}var mO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gO=/^\w*$/;function Kh(e,n){if(zt(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||ro(e)?!0:gO.test(e)||!mO.test(e)||n!=null&&e in Object(n)}var Fr=Ia(Object,"create");function yO(){this.__data__=Fr?Fr(null):{},this.size=0}function vO(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var EO="__lodash_hash_undefined__",bO=Object.prototype,TO=bO.hasOwnProperty;function SO(e){var n=this.__data__;if(Fr){var a=n[e];return a===EO?void 0:a}return TO.call(n,e)?n[e]:void 0}var AO=Object.prototype,OO=AO.hasOwnProperty;function xO(e){var n=this.__data__;return Fr?n[e]!==void 0:OO.call(n,e)}var NO="__lodash_hash_undefined__";function RO(e,n){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Fr&&n===void 0?NO:n,this}function wa(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n<a;){var r=e[n];this.set(r[0],r[1])}}wa.prototype.clear=yO;wa.prototype.delete=vO;wa.prototype.get=SO;wa.prototype.has=xO;wa.prototype.set=RO;function wO(){this.__data__=[],this.size=0}function po(e,n){for(var a=e.length;a--;)if(Xr(e[a][0],n))return a;return-1}var CO=Array.prototype,LO=CO.splice;function MO(e){var n=this.__data__,a=po(n,e);if(a<0)return!1;var r=n.length-1;return a==r?n.pop():LO.call(n,a,1),--this.size,!0}function kO(e){var n=this.__data__,a=po(n,e);return a<0?void 0:n[a][1]}function UO(e){return po(this.__data__,e)>-1}function IO(e,n){var a=this.__data__,r=po(a,e);return r<0?(++this.size,a.push([e,n])):a[r][1]=n,this}function Oi(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n<a;){var r=e[n];this.set(r[0],r[1])}}Oi.prototype.clear=wO;Oi.prototype.delete=MO;Oi.prototype.get=kO;Oi.prototype.has=UO;Oi.prototype.set=IO;var Kr=Ia(Qn,"Map");function zO(){this.size=0,this.__data__={hash:new wa,map:new(Kr||Oi),string:new wa}}function BO(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function _o(e,n){var a=e.__data__;return BO(n)?a[typeof n=="string"?"string":"hash"]:a.map}function jO(e){var n=_o(this,e).delete(e);return this.size-=n?1:0,n}function DO(e){return _o(this,e).get(e)}function $O(e){return _o(this,e).has(e)}function PO(e,n){var a=_o(this,e),r=a.size;return a.set(e,n),this.size+=a.size==r?0:1,this}function xi(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n<a;){var r=e[n];this.set(r[0],r[1])}}xi.prototype.clear=zO;xi.prototype.delete=jO;xi.prototype.get=DO;xi.prototype.has=$O;xi.prototype.set=PO;var qO="Expected a function";function Vh(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(qO);var a=function(){var r=arguments,u=n?n.apply(this,r):r[0],o=a.cache;if(o.has(u))return o.get(u);var h=e.apply(this,r);return a.cache=o.set(u,h)||o,h};return a.cache=new(Vh.Cache||xi),a}Vh.Cache=xi;var GO=500;function HO(e){var n=Vh(e,function(r){return a.size===GO&&a.clear(),r}),a=n.cache;return n}var FO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KO=/\\(\\)?/g,VO=HO(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(FO,function(a,r,u,o){n.push(u?o.replace(KO,"$1"):r||a)}),n});function YO(e){return e==null?"":O0(e)}function mo(e,n){return zt(e)?e:Kh(e,n)?[e]:VO(YO(e))}function Zr(e){if(typeof e=="string"||ro(e))return e;var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function Yh(e,n){n=mo(n,e);for(var a=0,r=n.length;e!=null&&a<r;)e=e[Zr(n[a++])];return a&&a==r?e:void 0}function XO(e,n,a){var r=e==null?void 0:Yh(e,n);return r===void 0?a:r}function Xh(e,n){for(var a=-1,r=n.length,u=e.length;++a<r;)e[u+a]=n[a];return e}var Pg=xn?xn.isConcatSpreadable:void 0;function QO(e){return zt(e)||fo(e)||!!(Pg&&e&&e[Pg])}function Qh(e,n,a,r,u){var o=-1,h=e.length;for(a||(a=QO),u||(u=[]);++o<h;){var p=e[o];a(p)?Xh(u,p):r||(u[u.length]=p)}return u}function In(e){var n=e==null?0:e.length;return n?Qh(e):[]}var B0=U0(Object.getPrototypeOf,Object);function j0(e,n,a){var r=-1,u=e.length;n<0&&(n=-n>u?0:u+n),a=a>u?u:a,a<0&&(a+=u),u=n>a?0:a-n>>>0,n>>>=0;for(var o=Array(u);++r<u;)o[r]=e[r+n];return o}function ZO(e,n,a,r){var u=-1,o=e==null?0:e.length;for(r&&o&&(a=e[++u]);++u<o;)a=n(a,e[u],u,e);return a}function WO(){this.__data__=new Oi,this.size=0}function JO(e){var n=this.__data__,a=n.delete(e);return this.size=n.size,a}function tx(e){return this.__data__.get(e)}function ex(e){return this.__data__.has(e)}var nx=200;function ix(e,n){var a=this.__data__;if(a instanceof Oi){var r=a.__data__;if(!Kr||r.length<nx-1)return r.push([e,n]),this.size=++a.size,this;a=this.__data__=new xi(r)}return a.set(e,n),this.size=a.size,this}function Xn(e){var n=this.__data__=new Oi(e);this.size=n.size}Xn.prototype.clear=WO;Xn.prototype.delete=JO;Xn.prototype.get=tx;Xn.prototype.has=ex;Xn.prototype.set=ix;function ax(e,n){return e&&qh(n,Rn(n),e)}var D0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,qg=D0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,sx=qg&&qg.exports===D0,Gg=sx?Qn.Buffer:void 0,Hg=Gg?Gg.allocUnsafe:void 0;function rx(e,n){var a=e.length,r=Hg?Hg(a):new e.constructor(a);return e.copy(r),r}function Zh(e,n){for(var a=-1,r=e==null?0:e.length,u=0,o=[];++a<r;){var h=e[a];n(h,a,e)&&(o[u++]=h)}return o}function $0(){return[]}var lx=Object.prototype,ux=lx.propertyIsEnumerable,Fg=Object.getOwnPropertySymbols,Wh=Fg?function(e){return e==null?[]:(e=Object(e),Zh(Fg(e),function(n){return ux.call(e,n)}))}:$0;function ox(e,n){return qh(e,Wh(e),n)}var cx=Object.getOwnPropertySymbols,fx=cx?function(e){for(var n=[];e;)Xh(n,Wh(e)),e=B0(e);return n}:$0;function P0(e,n,a){var r=n(e);return zt(e)?r:Xh(r,a(e))}function bh(e){return P0(e,Rn,Wh)}function hx(e){return P0(e,z0,fx)}var Th=Ia(Qn,"DataView"),Sh=Ia(Qn,"Promise"),Ns=Ia(Qn,"Set"),Kg="[object Map]",dx="[object Object]",Vg="[object Promise]",Yg="[object Set]",Xg="[object WeakMap]",Qg="[object DataView]",px=Ua(Th),_x=Ua(Kr),mx=Ua(Sh),gx=Ua(Ns),yx=Ua(Eh),An=ia;(Th&&An(new Th(new ArrayBuffer(1)))!=Qg||Kr&&An(new Kr)!=Kg||Sh&&An(Sh.resolve())!=Vg||Ns&&An(new Ns)!=Yg||Eh&&An(new Eh)!=Xg)&&(An=function(e){var n=ia(e),a=n==dx?e.constructor:void 0,r=a?Ua(a):"";if(r)switch(r){case px:return Qg;case _x:return Kg;case mx:return Vg;case gx:return Yg;case yx:return Xg}return n});var vx=Object.prototype,Ex=vx.hasOwnProperty;function bx(e){var n=e.length,a=new e.constructor(n);return n&&typeof e[0]=="string"&&Ex.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var Fu=Qn.Uint8Array;function Tx(e){var n=new e.constructor(e.byteLength);return new Fu(n).set(new Fu(e)),n}function Sx(e,n){var a=e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var Ax=/\w*$/;function Ox(e){var n=new e.constructor(e.source,Ax.exec(e));return n.lastIndex=e.lastIndex,n}var Zg=xn?xn.prototype:void 0,Wg=Zg?Zg.valueOf:void 0;function xx(e){return Wg?Object(Wg.call(e)):{}}function Nx(e,n){var a=e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var Rx="[object Boolean]",wx="[object Date]",Cx="[object Map]",Lx="[object Number]",Mx="[object RegExp]",kx="[object Set]",Ux="[object String]",Ix="[object Symbol]",zx="[object ArrayBuffer]",Bx="[object DataView]",jx="[object Float32Array]",Dx="[object Float64Array]",$x="[object Int8Array]",Px="[object Int16Array]",qx="[object Int32Array]",Gx="[object Uint8Array]",Hx="[object Uint8ClampedArray]",Fx="[object Uint16Array]",Kx="[object Uint32Array]";function Vx(e,n,a){var r=e.constructor;switch(n){case zx:return Tx(e);case Rx:case wx:return new r(+e);case Bx:return Sx(e);case jx:case Dx:case $x:case Px:case qx:case Gx:case Hx:case Fx:case Kx:return Nx(e);case Cx:return new r;case Lx:case Ux:return new r(e);case Mx:return Ox(e);case kx:return new r;case Ix:return xx(e)}}function Yx(e){return typeof e.constructor=="function"&&!Qr(e)?rA(B0(e)):{}}var Xx="[object Map]";function Qx(e){return Bn(e)&&An(e)==Xx}var Jg=ea&&ea.isMap,Zx=Jg?ho(Jg):Qx,Wx="[object Set]";function Jx(e){return Bn(e)&&An(e)==Wx}var ty=ea&&ea.isSet,tN=ty?ho(ty):Jx,q0="[object Arguments]",eN="[object Array]",nN="[object Boolean]",iN="[object Date]",aN="[object Error]",G0="[object Function]",sN="[object GeneratorFunction]",rN="[object Map]",lN="[object Number]",H0="[object Object]",uN="[object RegExp]",oN="[object Set]",cN="[object String]",fN="[object Symbol]",hN="[object WeakMap]",dN="[object ArrayBuffer]",pN="[object DataView]",_N="[object Float32Array]",mN="[object Float64Array]",gN="[object Int8Array]",yN="[object Int16Array]",vN="[object Int32Array]",EN="[object Uint8Array]",bN="[object Uint8ClampedArray]",TN="[object Uint16Array]",SN="[object Uint32Array]",Xt={};Xt[q0]=Xt[eN]=Xt[dN]=Xt[pN]=Xt[nN]=Xt[iN]=Xt[_N]=Xt[mN]=Xt[gN]=Xt[yN]=Xt[vN]=Xt[rN]=Xt[lN]=Xt[H0]=Xt[uN]=Xt[oN]=Xt[cN]=Xt[fN]=Xt[EN]=Xt[bN]=Xt[TN]=Xt[SN]=!0;Xt[aN]=Xt[G0]=Xt[hN]=!1;function Uu(e,n,a,r,u,o){var h;if(h!==void 0)return h;if(!Nn(e))return e;var p=zt(e);if(p)return h=bx(e),uA(e,h);var d=An(e),_=d==G0||d==sN;if(Hr(e))return rx(e);if(d==H0||d==q0||_&&!u)return h=_?{}:Yx(e),ox(e,ax(h,e));if(!Xt[d])return u?e:{};h=Vx(e,d),o||(o=new Xn);var v=o.get(e);if(v)return v;o.set(e,h),tN(e)?e.forEach(function(z){h.add(Uu(z,n,a,z,e,o))}):Zx(e)&&e.forEach(function(z,G){h.set(G,Uu(z,n,a,G,e,o))});var y=bh,O=p?void 0:y(e);return x0(O||e,function(z,G){O&&(G=z,z=e[G]),co(h,G,Uu(z,n,a,G,e,o))}),h}var AN=4;function Ce(e){return Uu(e,AN)}function Wr(e){for(var n=-1,a=e==null?0:e.length,r=0,u=[];++n<a;){var o=e[n];o&&(u[r++]=o)}return u}var ON="__lodash_hash_undefined__";function xN(e){return this.__data__.set(e,ON),this}function NN(e){return this.__data__.has(e)}function ws(e){var n=-1,a=e==null?0:e.length;for(this.__data__=new xi;++n<a;)this.add(e[n])}ws.prototype.add=ws.prototype.push=xN;ws.prototype.has=NN;function F0(e,n){for(var a=-1,r=e==null?0:e.length;++a<r;)if(n(e[a],a,e))return!0;return!1}function Jh(e,n){return e.has(n)}var RN=1,wN=2;function K0(e,n,a,r,u,o){var h=a&RN,p=e.length,d=n.length;if(p!=d&&!(h&&d>p))return!1;var _=o.get(e),v=o.get(n);if(_&&v)return _==n&&v==e;var y=-1,O=!0,z=a&wN?new ws:void 0;for(o.set(e,n),o.set(n,e);++y<p;){var G=e[y],V=n[y];if(r)var A=h?r(V,G,y,n,e,o):r(G,V,y,e,n,o);if(A!==void 0){if(A)continue;O=!1;break}if(z){if(!F0(n,function(b,N){if(!Jh(z,N)&&(G===b||u(G,b,a,r,o)))return z.push(N)})){O=!1;break}}else if(!(G===V||u(G,V,a,r,o))){O=!1;break}}return o.delete(e),o.delete(n),O}function CN(e){var n=-1,a=Array(e.size);return e.forEach(function(r,u){a[++n]=[u,r]}),a}function td(e){var n=-1,a=Array(e.size);return e.forEach(function(r){a[++n]=r}),a}var LN=1,MN=2,kN="[object Boolean]",UN="[object Date]",IN="[object Error]",zN="[object Map]",BN="[object Number]",jN="[object RegExp]",DN="[object Set]",$N="[object String]",PN="[object Symbol]",qN="[object ArrayBuffer]",GN="[object DataView]",ey=xn?xn.prototype:void 0,Qf=ey?ey.valueOf:void 0;function HN(e,n,a,r,u,o,h){switch(a){case GN:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case qN:return!(e.byteLength!=n.byteLength||!o(new Fu(e),new Fu(n)));case kN:case UN:case BN:return Xr(+e,+n);case IN:return e.name==n.name&&e.message==n.message;case jN:case $N:return e==n+"";case zN:var p=CN;case DN:var d=r&LN;if(p||(p=td),e.size!=n.size&&!d)return!1;var _=h.get(e);if(_)return _==n;r|=MN,h.set(e,n);var v=K0(p(e),p(n),r,u,o,h);return h.delete(e),v;case PN:if(Qf)return Qf.call(e)==Qf.call(n)}return!1}var FN=1,KN=Object.prototype,VN=KN.hasOwnProperty;function YN(e,n,a,r,u,o){var h=a&FN,p=bh(e),d=p.length,_=bh(n),v=_.length;if(d!=v&&!h)return!1;for(var y=d;y--;){var O=p[y];if(!(h?O in n:VN.call(n,O)))return!1}var z=o.get(e),G=o.get(n);if(z&&G)return z==n&&G==e;var V=!0;o.set(e,n),o.set(n,e);for(var A=h;++y<d;){O=p[y];var b=e[O],N=n[O];if(r)var P=h?r(N,b,O,n,e,o):r(b,N,O,e,n,o);if(!(P===void 0?b===N||u(b,N,a,r,o):P)){V=!1;break}A||(A=O=="constructor")}if(V&&!A){var B=e.constructor,Z=n.constructor;B!=Z&&"constructor"in e&&"constructor"in n&&!(typeof B=="function"&&B instanceof B&&typeof Z=="function"&&Z instanceof Z)&&(V=!1)}return o.delete(e),o.delete(n),V}var XN=1,ny="[object Arguments]",iy="[object Array]",Tu="[object Object]",QN=Object.prototype,ay=QN.hasOwnProperty;function ZN(e,n,a,r,u,o){var h=zt(e),p=zt(n),d=h?iy:An(e),_=p?iy:An(n);d=d==ny?Tu:d,_=_==ny?Tu:_;var v=d==Tu,y=_==Tu,O=d==_;if(O&&Hr(e)){if(!Hr(n))return!1;h=!0,v=!1}if(O&&!v)return o||(o=new Xn),h||Fh(e)?K0(e,n,a,r,u,o):HN(e,n,d,a,r,u,o);if(!(a&XN)){var z=v&&ay.call(e,"__wrapped__"),G=y&&ay.call(n,"__wrapped__");if(z||G){var V=z?e.value():e,A=G?n.value():n;return o||(o=new Xn),u(V,A,a,r,o)}}return O?(o||(o=new Xn),YN(e,n,a,r,u,o)):!1}function ed(e,n,a,r,u){return e===n?!0:e==null||n==null||!Bn(e)&&!Bn(n)?e!==e&&n!==n:ZN(e,n,a,r,ed,u)}var WN=1,JN=2;function tR(e,n,a,r){var u=a.length,o=u;if(e==null)return!o;for(e=Object(e);u--;){var h=a[u];if(h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++u<o;){h=a[u];var p=h[0],d=e[p],_=h[1];if(h[2]){if(d===void 0&&!(p in e))return!1}else{var v=new Xn,y;if(!(y===void 0?ed(_,d,WN|JN,r,v):y))return!1}}return!0}function V0(e){return e===e&&!Nn(e)}function eR(e){for(var n=Rn(e),a=n.length;a--;){var r=n[a],u=e[r];n[a]=[r,u,V0(u)]}return n}function Y0(e,n){return function(a){return a==null?!1:a[e]===n&&(n!==void 0||e in Object(a))}}function nR(e){var n=eR(e);return n.length==1&&n[0][2]?Y0(n[0][0],n[0][1]):function(a){return a===e||tR(a,e,n)}}function iR(e,n){return e!=null&&n in Object(e)}function X0(e,n,a){n=mo(n,e);for(var r=-1,u=n.length,o=!1;++r<u;){var h=Zr(n[r]);if(!(o=e!=null&&a(e,h)))break;e=e[h]}return o||++r!=u?o:(u=e==null?0:e.length,!!u&&Hh(u)&&oo(h,u)&&(zt(e)||fo(e)))}function aR(e,n){return e!=null&&X0(e,n,iR)}var sR=1,rR=2;function lR(e,n){return Kh(e)&&V0(n)?Y0(Zr(e),n):function(a){var r=XO(a,e);return r===void 0&&r===n?aR(a,e):ed(n,r,sR|rR)}}function uR(e){return function(n){return n?.[e]}}function oR(e){return function(n){return Yh(n,e)}}function cR(e){return Kh(e)?uR(Zr(e)):oR(e)}function Wn(e){return typeof e=="function"?e:e==null?Rs:typeof e=="object"?zt(e)?lR(e[0],e[1]):nR(e):cR(e)}function fR(e,n,a,r){for(var u=-1,o=e==null?0:e.length;++u<o;){var h=e[u];n(r,h,a(h),e)}return r}function hR(e){return function(n,a,r){for(var u=-1,o=Object(n),h=r(n),p=h.length;p--;){var d=h[++u];if(a(o[d],d,o)===!1)break}return n}}var dR=hR();function pR(e,n){return e&&dR(e,n,Rn)}function _R(e,n){return function(a,r){if(a==null)return a;if(!Zn(a))return e(a,r);for(var u=a.length,o=-1,h=Object(a);++o<u&&r(h[o],o,h)!==!1;);return a}}var za=_R(pR);function mR(e,n,a,r){return za(e,function(u,o,h){n(r,u,a(u),h)}),r}function gR(e,n){return function(a,r){var u=zt(a)?fR:mR,o=n?n():{};return u(a,e,Wn(r),o)}}var Q0=Object.prototype,yR=Q0.hasOwnProperty,nd=Gh(function(e,n){e=Object(e);var a=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&w0(n[0],n[1],u)&&(r=1);++a<r;)for(var o=n[a],h=z0(o),p=-1,d=h.length;++p<d;){var _=h[p],v=e[_];(v===void 0||Xr(v,Q0[_])&&!yR.call(e,_))&&(e[_]=o[_])}return e});function sy(e){return Bn(e)&&Zn(e)}var vR=200;function ER(e,n,a,r){var u=-1,o=R0,h=!0,p=e.length,d=[],_=n.length;if(!p)return d;n.length>=vR&&(o=Jh,h=!1,n=new ws(n));t:for(;++u<p;){var v=e[u],y=v;if(v=v!==0?v:0,h&&y===y){for(var O=_;O--;)if(n[O]===y)continue t;d.push(v)}else o(n,y,r)||d.push(v)}return d}var go=Gh(function(e,n){return sy(e)?ER(e,Qh(n,1,sy,!0)):[]});function Ca(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function we(e,n,a){var r=e==null?0:e.length;return r?(n=n===void 0?1:uo(n),j0(e,n<0?0:n,r)):[]}function Vr(e,n,a){var r=e==null?0:e.length;return r?(n=n===void 0?1:uo(n),n=r-n,j0(e,0,n<0?0:n)):[]}function bR(e){return typeof e=="function"?e:Rs}function vt(e,n){var a=zt(e)?x0:za;return a(e,bR(n))}function TR(e,n){for(var a=-1,r=e==null?0:e.length;++a<r;)if(!n(e[a],a,e))return!1;return!0}function SR(e,n){var a=!0;return za(e,function(r,u,o){return a=!!n(r,u,o),a}),a}function zn(e,n,a){var r=zt(e)?TR:SR;return r(e,Wn(n))}function Z0(e,n){var a=[];return za(e,function(r,u,o){n(r,u,o)&&a.push(r)}),a}function wn(e,n){var a=zt(e)?Zh:Z0;return a(e,Wn(n))}function AR(e){return function(n,a,r){var u=Object(n);if(!Zn(n)){var o=Wn(a);n=Rn(n),a=function(p){return o(u[p],p,u)}}var h=e(n,a,r);return h>-1?u[o?n[h]:h]:void 0}}var OR=Math.max;function xR(e,n,a){var r=e==null?0:e.length;if(!r)return-1;var u=a==null?0:uo(a);return u<0&&(u=OR(r+u,0)),N0(e,Wn(n),u)}var Cs=AR(xR);function jn(e){return e&&e.length?e[0]:void 0}function NR(e,n){var a=-1,r=Zn(e)?Array(e.length):[];return za(e,function(u,o,h){r[++a]=n(u,o,h)}),r}function ft(e,n){var a=zt(e)?lo:NR;return a(e,Wn(n))}function On(e,n){return Qh(ft(e,n))}var RR=Object.prototype,wR=RR.hasOwnProperty,CR=gR(function(e,n,a){wR.call(e,a)?e[a].push(n):Ph(e,a,[n])}),LR=Object.prototype,MR=LR.hasOwnProperty;function kR(e,n){return e!=null&&MR.call(e,n)}function yt(e,n){return e!=null&&X0(e,n,kR)}var UR="[object String]";function Ye(e){return typeof e=="string"||!zt(e)&&Bn(e)&&ia(e)==UR}function IR(e,n){return lo(n,function(a){return e[a]})}function ye(e){return e==null?[]:IR(e,Rn(e))}var zR=Math.max;function Be(e,n,a,r){e=Zn(e)?e:ye(e),a=a?uo(a):0;var u=e.length;return a<0&&(a=zR(u+a,0)),Ye(e)?a<=u&&e.indexOf(n,a)>-1:!!u&&$h(e,n,a)>-1}function ry(e,n,a){var r=e==null?0:e.length;if(!r)return-1;var u=0;return $h(e,n,u)}var BR="[object Map]",jR="[object Set]",DR=Object.prototype,$R=DR.hasOwnProperty;function Qt(e){if(e==null)return!0;if(Zn(e)&&(zt(e)||typeof e=="string"||typeof e.splice=="function"||Hr(e)||Fh(e)||fo(e)))return!e.length;var n=An(e);if(n==BR||n==jR)return!e.size;if(Qr(e))return!I0(e).length;for(var a in e)if($R.call(e,a))return!1;return!0}var PR="[object RegExp]";function qR(e){return Bn(e)&&ia(e)==PR}var ly=ea&&ea.isRegExp,bi=ly?ho(ly):qR;function Ti(e){return e===void 0}var GR="Expected a function";function HR(e){if(typeof e!="function")throw new TypeError(GR);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function FR(e,n,a,r){if(!Nn(e))return e;n=mo(n,e);for(var u=-1,o=n.length,h=o-1,p=e;p!=null&&++u<o;){var d=Zr(n[u]),_=a;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(u!=h){var v=p[d];_=void 0,_===void 0&&(_=Nn(v)?v:oo(n[u+1])?[]:{})}co(p,d,_),p=p[d]}return e}function KR(e,n,a){for(var r=-1,u=n.length,o={};++r<u;){var h=n[r],p=Yh(e,h);a(p,h)&&FR(o,mo(h,e),p)}return o}function Dn(e,n){if(e==null)return{};var a=lo(hx(e),function(r){return[r]});return n=Wn(n),KR(e,a,function(r,u){return n(r,u[0])})}function VR(e,n,a,r,u){return u(e,function(o,h,p){a=r?(r=!1,o):n(a,o,h,p)}),a}function on(e,n,a){var r=zt(e)?ZO:VR,u=arguments.length<3;return r(e,Wn(n),a,u,za)}function yo(e,n){var a=zt(e)?Zh:Z0;return a(e,HR(Wn(n)))}function YR(e,n){var a;return za(e,function(r,u,o){return a=n(r,u,o),!a}),!!a}function W0(e,n,a){var r=zt(e)?F0:YR;return r(e,Wn(n))}var XR=1/0,QR=Ns&&1/td(new Ns([,-0]))[1]==XR?function(e){return new Ns(e)}:ge,ZR=200;function WR(e,n,a){var r=-1,u=R0,o=e.length,h=!0,p=[],d=p;if(o>=ZR){var _=QR(e);if(_)return td(_);h=!1,u=Jh,d=new ws}else d=p;t:for(;++r<o;){var v=e[r],y=v;if(v=v!==0?v:0,h&&y===y){for(var O=d.length;O--;)if(d[O]===y)continue t;p.push(v)}else u(d,y,a)||(d!==p&&d.push(y),p.push(v))}return p}function id(e){return e&&e.length?WR(e):[]}function Ah(e){console&&console.error&&console.error(`Error: ${e}`)}function J0(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function tv(e){const n=new Date().getTime(),a=e();return{time:new Date().getTime()-n,value:a}}function ev(e){function n(){}n.prototype=e;const a=new n;function r(){return typeof a.bar}return r(),r(),e}function JR(e){return tw(e)?e.LABEL:e.name}function tw(e){return Ye(e.LABEL)&&e.LABEL!==""}class Jn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){this._definition=n}accept(n){n.visit(this),vt(this.definition,a=>{a.accept(n)})}}class cn extends Jn{constructor(n){super([]),this.idx=1,un(this,Dn(n,a=>a!==void 0))}set definition(n){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(n){n.visit(this)}}class Ls extends Jn{constructor(n){super(n.definition),this.orgText="",un(this,Dn(n,a=>a!==void 0))}}class Xe extends Jn{constructor(n){super(n.definition),this.ignoreAmbiguities=!1,un(this,Dn(n,a=>a!==void 0))}}class Ve extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class ti extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class ei extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class ve extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class $n extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class Pn extends Jn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){super(n.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,un(this,Dn(n,a=>a!==void 0))}}class ne{constructor(n){this.idx=1,un(this,Dn(n,a=>a!==void 0))}accept(n){n.visit(this)}}function ew(e){return ft(e,Iu)}function Iu(e){function n(a){return ft(a,Iu)}if(e instanceof cn){const a={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return Ye(e.label)&&(a.label=e.label),a}else{if(e instanceof Xe)return{type:"Alternative",definition:n(e.definition)};if(e instanceof Ve)return{type:"Option",idx:e.idx,definition:n(e.definition)};if(e instanceof ti)return{type:"RepetitionMandatory",idx:e.idx,definition:n(e.definition)};if(e instanceof ei)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Iu(new ne({terminalType:e.separator})),definition:n(e.definition)};if(e instanceof $n)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Iu(new ne({terminalType:e.separator})),definition:n(e.definition)};if(e instanceof ve)return{type:"Repetition",idx:e.idx,definition:n(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:n(e.definition)};if(e instanceof ne){const a={type:"Terminal",name:e.terminalType.name,label:JR(e.terminalType),idx:e.idx};Ye(e.label)&&(a.terminalLabel=e.label);const r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(a.pattern=bi(r)?r.source:r),a}else{if(e instanceof Ls)return{type:"Rule",name:e.name,orgText:e.orgText,definition:n(e.definition)};throw Error("non exhaustive match")}}}class Ms{visit(n){const a=n;switch(a.constructor){case cn:return this.visitNonTerminal(a);case Xe:return this.visitAlternative(a);case Ve:return this.visitOption(a);case ti:return this.visitRepetitionMandatory(a);case ei:return this.visitRepetitionMandatoryWithSeparator(a);case $n:return this.visitRepetitionWithSeparator(a);case ve:return this.visitRepetition(a);case Pn:return this.visitAlternation(a);case ne:return this.visitTerminal(a);case Ls:return this.visitRule(a);default:throw Error("non exhaustive match")}}visitNonTerminal(n){}visitAlternative(n){}visitOption(n){}visitRepetition(n){}visitRepetitionMandatory(n){}visitRepetitionMandatoryWithSeparator(n){}visitRepetitionWithSeparator(n){}visitAlternation(n){}visitTerminal(n){}visitRule(n){}}function nw(e){return e instanceof Xe||e instanceof Ve||e instanceof ve||e instanceof ti||e instanceof ei||e instanceof $n||e instanceof ne||e instanceof Ls}function Ku(e,n=[]){return e instanceof Ve||e instanceof ve||e instanceof $n?!0:e instanceof Pn?W0(e.definition,r=>Ku(r,n)):e instanceof cn&&Be(n,e)?!1:e instanceof Jn?(e instanceof cn&&n.push(e),zn(e.definition,r=>Ku(r,n))):!1}function iw(e){return e instanceof Pn}function Yn(e){if(e instanceof cn)return"SUBRULE";if(e instanceof Ve)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof ti)return"AT_LEAST_ONE";if(e instanceof ei)return"AT_LEAST_ONE_SEP";if(e instanceof $n)return"MANY_SEP";if(e instanceof ve)return"MANY";if(e instanceof ne)return"CONSUME";throw Error("non exhaustive match")}class vo{walk(n,a=[]){vt(n.definition,(r,u)=>{const o=we(n.definition,u+1);if(r instanceof cn)this.walkProdRef(r,o,a);else if(r instanceof ne)this.walkTerminal(r,o,a);else if(r instanceof Xe)this.walkFlat(r,o,a);else if(r instanceof Ve)this.walkOption(r,o,a);else if(r instanceof ti)this.walkAtLeastOne(r,o,a);else if(r instanceof ei)this.walkAtLeastOneSep(r,o,a);else if(r instanceof $n)this.walkManySep(r,o,a);else if(r instanceof ve)this.walkMany(r,o,a);else if(r instanceof Pn)this.walkOr(r,o,a);else throw Error("non exhaustive match")})}walkTerminal(n,a,r){}walkProdRef(n,a,r){}walkFlat(n,a,r){const u=a.concat(r);this.walk(n,u)}walkOption(n,a,r){const u=a.concat(r);this.walk(n,u)}walkAtLeastOne(n,a,r){const u=[new Ve({definition:n.definition})].concat(a,r);this.walk(n,u)}walkAtLeastOneSep(n,a,r){const u=uy(n,a,r);this.walk(n,u)}walkMany(n,a,r){const u=[new Ve({definition:n.definition})].concat(a,r);this.walk(n,u)}walkManySep(n,a,r){const u=uy(n,a,r);this.walk(n,u)}walkOr(n,a,r){const u=a.concat(r);vt(n.definition,o=>{const h=new Xe({definition:[o]});this.walk(h,u)})}}function uy(e,n,a){return[new Ve({definition:[new ne({terminalType:e.separator})].concat(e.definition)})].concat(n,a)}function Jr(e){if(e instanceof cn)return Jr(e.referencedRule);if(e instanceof ne)return rw(e);if(nw(e))return aw(e);if(iw(e))return sw(e);throw Error("non exhaustive match")}function aw(e){let n=[];const a=e.definition;let r=0,u=a.length>r,o,h=!0;for(;u&&h;)o=a[r],h=Ku(o),n=n.concat(Jr(o)),r=r+1,u=a.length>r;return id(n)}function sw(e){const n=ft(e.definition,a=>Jr(a));return id(In(n))}function rw(e){return[e.terminalType]}const nv="_~IN~_";class lw extends vo{constructor(n){super(),this.topProd=n,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(n,a,r){}walkProdRef(n,a,r){const u=ow(n.referencedRule,n.idx)+this.topProd.name,o=a.concat(r),h=new Xe({definition:o}),p=Jr(h);this.follows[u]=p}}function uw(e){const n={};return vt(e,a=>{const r=new lw(a).startWalking();un(n,r)}),n}function ow(e,n){return e.name+n+nv}function Et(e){return e.charCodeAt(0)}function Zf(e,n){Array.isArray(e)?e.forEach(function(a){n.push(a)}):n.push(e)}function Cr(e,n){if(e[n]===!0)throw"duplicate flag "+n;e[n],e[n]=!0}function bs(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function cw(){throw Error("Internal Error - Should never get here!")}function oy(e){return e.type==="Character"}const Vu=[];for(let e=Et("0");e<=Et("9");e++)Vu.push(e);const Yu=[Et("_")].concat(Vu);for(let e=Et("a");e<=Et("z");e++)Yu.push(e);for(let e=Et("A");e<=Et("Z");e++)Yu.push(e);const cy=[Et(" "),Et("\f"),Et(`
19
+ `},Og=O1(w1)(p0),C1={config:N1},L1=function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return function(u){return a.reduceRight(function(o,h){return h(o)},u)}};function _0(e,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&e[a]&&Object.assign(n[a],_0(e[a],n[a]))}),Tg(Tg({},e),n)}var M1={type:"cancelation",msg:"operation is manually canceled"};function Ff(e){var n=!1,a=new Promise(function(r,u){e.then(function(o){return n?u(M1):r(o)}),e.catch(u)});return a.cancel=function(){return n=!0},a}var k1=["monaco"],I1=S1.create({config:A1,isInitialized:!1,resolve:null,reject:null,monaco:null}),m0=s1(I1,2),Yr=m0[0],so=m0[1];function U1(e){var n=C1.config(e),a=n.monaco,r=i1(n,k1);so(function(u){return{config:_0(u.config,r),monaco:a}})}function z1(){var e=Yr(function(n){var a=n.monaco,r=n.isInitialized,u=n.resolve;return{monaco:a,isInitialized:r,resolve:u}});if(!e.isInitialized){if(so({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ff(Kf);if(window.monaco&&window.monaco.editor)return g0(window.monaco),e.resolve(window.monaco),Ff(Kf);L1(B1,D1)($1)}return Ff(Kf)}function B1(e){return document.body.appendChild(e)}function j1(e){var n=document.createElement("script");return e&&(n.src=e),n}function D1(e){var n=Yr(function(r){var u=r.config,o=r.reject;return{config:u,reject:o}}),a=j1("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return e()},a.onerror=n.reject,a}function $1(){var e=Yr(function(a){var r=a.config,u=a.resolve,o=a.reject;return{config:r,resolve:u,reject:o}}),n=window.require;n.config(e.config),n(["vs/editor/editor.main"],function(a){var r=a.m||a;g0(r),e.resolve(r)},function(a){e.reject(a)})}function g0(e){Yr().monaco||so({monaco:e})}function P1(){return Yr(function(e){var n=e.monaco;return n})}var Kf=new Promise(function(e,n){return so({resolve:e,reject:n})}),y0={config:U1,init:z1,__getMonacoInstance:P1},q1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Vf=q1,G1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},H1=G1;function F1({children:e}){return Ra.createElement("div",{style:H1.container},e)}var K1=F1,V1=K1;function Y1({width:e,height:n,isEditorReady:a,loading:r,_ref:u,className:o,wrapperProps:h}){return Ra.createElement("section",{style:{...Vf.wrapper,width:e,height:n},...h},!a&&Ra.createElement(V1,null,r),Ra.createElement("div",{ref:u,style:{...Vf.fullWidth,...!a&&Vf.hide},className:o}))}var X1=Y1,v0=pt.memo(X1);function Q1(e){pt.useEffect(e,[])}var E0=Q1;function Z1(e,n,a=!0){let r=pt.useRef(!0);pt.useEffect(r.current||!a?()=>{r.current=!1}:e,n)}var sn=Z1;function $r(){}function As(e,n,a,r){return W1(e,r)||J1(e,n,a,r)}function W1(e,n){return e.editor.getModel(b0(e,n))}function J1(e,n,a,r){return e.editor.createModel(n,a,r?b0(e,r):void 0)}function b0(e,n){return e.Uri.parse(n)}function tS({original:e,modified:n,language:a,originalLanguage:r,modifiedLanguage:u,originalModelPath:o,modifiedModelPath:h,keepCurrentOriginalModel:p=!1,keepCurrentModifiedModel:d=!1,theme:_="light",loading:v="Loading...",options:y={},height:O="100%",width:z="100%",className:G,wrapperProps:V={},beforeMount:A=$r,onMount:b=$r}){let[N,P]=pt.useState(!1),[B,Z]=pt.useState(!0),U=pt.useRef(null),w=pt.useRef(null),E=pt.useRef(null),S=pt.useRef(b),g=pt.useRef(A),L=pt.useRef(!1);E0(()=>{let it=y0.init();return it.then(k=>(w.current=k)&&Z(!1)).catch(k=>k?.type!=="cancelation"&&console.error("Monaco initialization: error:",k)),()=>U.current?at():it.cancel()}),sn(()=>{if(U.current&&w.current){let it=U.current.getOriginalEditor(),k=As(w.current,e||"",r||a||"text",o||"");k!==it.getModel()&&it.setModel(k)}},[o],N),sn(()=>{if(U.current&&w.current){let it=U.current.getModifiedEditor(),k=As(w.current,n||"",u||a||"text",h||"");k!==it.getModel()&&it.setModel(k)}},[h],N),sn(()=>{let it=U.current.getModifiedEditor();it.getOption(w.current.editor.EditorOption.readOnly)?it.setValue(n||""):n!==it.getValue()&&(it.executeEdits("",[{range:it.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),it.pushUndoStop())},[n],N),sn(()=>{U.current?.getModel()?.original.setValue(e||"")},[e],N),sn(()=>{let{original:it,modified:k}=U.current.getModel();w.current.editor.setModelLanguage(it,r||a||"text"),w.current.editor.setModelLanguage(k,u||a||"text")},[a,r,u],N),sn(()=>{w.current?.editor.setTheme(_)},[_],N),sn(()=>{U.current?.updateOptions(y)},[y],N);let M=pt.useCallback(()=>{if(!w.current)return;g.current(w.current);let it=As(w.current,e||"",r||a||"text",o||""),k=As(w.current,n||"",u||a||"text",h||"");U.current?.setModel({original:it,modified:k})},[a,n,u,e,r,o,h]),W=pt.useCallback(()=>{!L.current&&E.current&&(U.current=w.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...y}),M(),w.current?.editor.setTheme(_),P(!0),L.current=!0)},[y,_,M]);pt.useEffect(()=>{N&&S.current(U.current,w.current)},[N]),pt.useEffect(()=>{!B&&!N&&W()},[B,N,W]);function at(){let it=U.current?.getModel();p||it?.original?.dispose(),d||it?.modified?.dispose(),U.current?.dispose()}return Ra.createElement(v0,{width:z,height:O,isEditorReady:N,loading:v,_ref:E,className:G,wrapperProps:V})}var eS=tS;pt.memo(eS);function nS(e){let n=pt.useRef();return pt.useEffect(()=>{n.current=e},[e]),n.current}var iS=nS,Eu=new Map;function aS({defaultValue:e,defaultLanguage:n,defaultPath:a,value:r,language:u,path:o,theme:h="light",line:p,loading:d="Loading...",options:_={},overrideServices:v={},saveViewState:y=!0,keepCurrentModel:O=!1,width:z="100%",height:G="100%",className:V,wrapperProps:A={},beforeMount:b=$r,onMount:N=$r,onChange:P,onValidate:B=$r}){let[Z,U]=pt.useState(!1),[w,E]=pt.useState(!0),S=pt.useRef(null),g=pt.useRef(null),L=pt.useRef(null),M=pt.useRef(N),W=pt.useRef(b),at=pt.useRef(),it=pt.useRef(r),k=iS(o),K=pt.useRef(!1),nt=pt.useRef(!1);E0(()=>{let x=y0.init();return x.then(D=>(S.current=D)&&E(!1)).catch(D=>D?.type!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>g.current?_t():x.cancel()}),sn(()=>{let x=As(S.current,e||r||"",n||u||"",o||a||"");x!==g.current?.getModel()&&(y&&Eu.set(k,g.current?.saveViewState()),g.current?.setModel(x),y&&g.current?.restoreViewState(Eu.get(o)))},[o],Z),sn(()=>{g.current?.updateOptions(_)},[_],Z),sn(()=>{!g.current||r===void 0||(g.current.getOption(S.current.editor.EditorOption.readOnly)?g.current.setValue(r):r!==g.current.getValue()&&(nt.current=!0,g.current.executeEdits("",[{range:g.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),g.current.pushUndoStop(),nt.current=!1))},[r],Z),sn(()=>{let x=g.current?.getModel();x&&u&&S.current?.editor.setModelLanguage(x,u)},[u],Z),sn(()=>{p!==void 0&&g.current?.revealLine(p)},[p],Z),sn(()=>{S.current?.editor.setTheme(h)},[h],Z);let tt=pt.useCallback(()=>{if(!(!L.current||!S.current)&&!K.current){W.current(S.current);let x=o||a,D=As(S.current,r||e||"",n||u||"",x||"");g.current=S.current?.editor.create(L.current,{model:D,automaticLayout:!0,..._},v),y&&g.current.restoreViewState(Eu.get(x)),S.current.editor.setTheme(h),p!==void 0&&g.current.revealLine(p),U(!0),K.current=!0}},[e,n,a,r,u,o,_,v,y,h,p]);pt.useEffect(()=>{Z&&M.current(g.current,S.current)},[Z]),pt.useEffect(()=>{!w&&!Z&&tt()},[w,Z,tt]),it.current=r,pt.useEffect(()=>{Z&&P&&(at.current?.dispose(),at.current=g.current?.onDidChangeModelContent(x=>{nt.current||P(g.current.getValue(),x)}))},[Z,P]),pt.useEffect(()=>{if(Z){let x=S.current.editor.onDidChangeMarkers(D=>{let F=g.current.getModel()?.uri;if(F&&D.find(J=>J.path===F.path)){let J=S.current.editor.getModelMarkers({resource:F});B?.(J)}});return()=>{x?.dispose()}}return()=>{}},[Z,B]);function _t(){at.current?.dispose(),O?y&&Eu.set(o,g.current.saveViewState()):g.current.getModel()?.dispose(),g.current.dispose()}return Ra.createElement(v0,{width:z,height:G,isEditorReady:Z,loading:d,_ref:L,className:V,wrapperProps:A})}var sS=aS,rS=pt.memo(sS),bu=rS;const lS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,r)=>r?r.toUpperCase():a.toLowerCase()),xg=e=>{const n=uS(e);return n.charAt(0).toUpperCase()+n.slice(1)},T0=(...e)=>e.filter((n,a,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===a).join(" ").trim(),oS=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var cS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const fS=pt.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:h,...p},d)=>pt.createElement("svg",{ref:d,...cS,width:n,height:n,stroke:e,strokeWidth:r?Number(a)*24/Number(n):a,className:T0("lucide",u),...!o&&!oS(p)&&{"aria-hidden":"true"},...p},[...h.map(([_,v])=>pt.createElement(_,v)),...Array.isArray(o)?o:[o]]));const ka=(e,n)=>{const a=pt.forwardRef(({className:r,...u},o)=>pt.createElement(fS,{ref:o,iconNode:n,className:T0(`lucide-${lS(xg(e))}`,`lucide-${e}`,r),...u}));return a.displayName=xg(e),a};const hS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dS=ka("check",hS);const pS=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],_S=ka("code",pS);const mS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],gS=ka("copy",mS);const yS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Ng=ka("database",yS);const vS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],ES=ka("file-code",vS);const bS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Rg=ka("info",bS);const TS=[["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"}]],ku=ka("play",TS);var S0=typeof global=="object"&&global&&global.Object===Object&&global,SS=typeof self=="object"&&self&&self.Object===Object&&self,Qn=S0||SS||Function("return this")(),xn=Qn.Symbol,A0=Object.prototype,AS=A0.hasOwnProperty,OS=A0.toString,wr=xn?xn.toStringTag:void 0;function xS(e){var n=AS.call(e,wr),a=e[wr];try{e[wr]=void 0;var r=!0}catch{}var u=OS.call(e);return r&&(n?e[wr]=a:delete e[wr]),u}var NS=Object.prototype,RS=NS.toString;function wS(e){return RS.call(e)}var CS="[object Null]",LS="[object Undefined]",wg=xn?xn.toStringTag:void 0;function ia(e){return e==null?e===void 0?LS:CS:wg&&wg in Object(e)?xS(e):wS(e)}function Bn(e){return e!=null&&typeof e=="object"}var MS="[object Symbol]";function ro(e){return typeof e=="symbol"||Bn(e)&&ia(e)==MS}function lo(e,n){for(var a=-1,r=e==null?0:e.length,u=Array(r);++a<r;)u[a]=n(e[a],a,e);return u}var zt=Array.isArray,Cg=xn?xn.prototype:void 0,Lg=Cg?Cg.toString:void 0;function O0(e){if(typeof e=="string")return e;if(zt(e))return lo(e,O0)+"";if(ro(e))return Lg?Lg.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}var kS=/\s/;function IS(e){for(var n=e.length;n--&&kS.test(e.charAt(n)););return n}var US=/^\s+/;function zS(e){return e&&e.slice(0,IS(e)+1).replace(US,"")}function Nn(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Mg=NaN,BS=/^[-+]0x[0-9a-f]+$/i,jS=/^0b[01]+$/i,DS=/^0o[0-7]+$/i,$S=parseInt;function PS(e){if(typeof e=="number")return e;if(ro(e))return Mg;if(Nn(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Nn(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=zS(e);var a=jS.test(e);return a||DS.test(e)?$S(e.slice(2),a?2:8):BS.test(e)?Mg:+e}var kg=1/0,qS=17976931348623157e292;function GS(e){if(!e)return e===0?e:0;if(e=PS(e),e===kg||e===-kg){var n=e<0?-1:1;return n*qS}return e===e?e:0}function uo(e){var n=GS(e),a=n%1;return n===n?a?n-a:n:0}function Rs(e){return e}var HS="[object AsyncFunction]",FS="[object Function]",KS="[object GeneratorFunction]",VS="[object Proxy]";function Ai(e){if(!Nn(e))return!1;var n=ia(e);return n==FS||n==KS||n==HS||n==VS}var Yf=Qn["__core-js_shared__"],Ig=(function(){var e=/[^.]+$/.exec(Yf&&Yf.keys&&Yf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function YS(e){return!!Ig&&Ig in e}var XS=Function.prototype,QS=XS.toString;function Ia(e){if(e!=null){try{return QS.call(e)}catch{}try{return e+""}catch{}}return""}var ZS=/[\\^$.*+?()[\]{}|]/g,WS=/^\[object .+?Constructor\]$/,JS=Function.prototype,tA=Object.prototype,eA=JS.toString,nA=tA.hasOwnProperty,iA=RegExp("^"+eA.call(nA).replace(ZS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aA(e){if(!Nn(e)||YS(e))return!1;var n=Ai(e)?iA:WS;return n.test(Ia(e))}function sA(e,n){return e?.[n]}function Ua(e,n){var a=sA(e,n);return aA(a)?a:void 0}var Eh=Ua(Qn,"WeakMap"),Ug=Object.create,rA=(function(){function e(){}return function(n){if(!Nn(n))return{};if(Ug)return Ug(n);e.prototype=n;var a=new e;return e.prototype=void 0,a}})();function lA(e,n,a){switch(a.length){case 0:return e.call(n);case 1:return e.call(n,a[0]);case 2:return e.call(n,a[0],a[1]);case 3:return e.call(n,a[0],a[1],a[2])}return e.apply(n,a)}function ge(){}function uA(e,n){var a=-1,r=e.length;for(n||(n=Array(r));++a<r;)n[a]=e[a];return n}var oA=800,cA=16,fA=Date.now;function hA(e){var n=0,a=0;return function(){var r=fA(),u=cA-(r-a);if(a=r,u>0){if(++n>=oA)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function dA(e){return function(){return e}}var Hu=(function(){try{var e=Ua(Object,"defineProperty");return e({},"",{}),e}catch{}})(),pA=Hu?function(e,n){return Hu(e,"toString",{configurable:!0,enumerable:!1,value:dA(n),writable:!0})}:Rs,_A=hA(pA);function x0(e,n){for(var a=-1,r=e==null?0:e.length;++a<r&&n(e[a],a,e)!==!1;);return e}function N0(e,n,a,r){for(var u=e.length,o=a+-1;++o<u;)if(n(e[o],o,e))return o;return-1}function mA(e){return e!==e}function gA(e,n,a){for(var r=a-1,u=e.length;++r<u;)if(e[r]===n)return r;return-1}function $h(e,n,a){return n===n?gA(e,n,a):N0(e,mA,a)}function R0(e,n){var a=e==null?0:e.length;return!!a&&$h(e,n,0)>-1}var yA=9007199254740991,vA=/^(?:0|[1-9]\d*)$/;function oo(e,n){var a=typeof e;return n=n??yA,!!n&&(a=="number"||a!="symbol"&&vA.test(e))&&e>-1&&e%1==0&&e<n}function Ph(e,n,a){n=="__proto__"&&Hu?Hu(e,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[n]=a}function Xr(e,n){return e===n||e!==e&&n!==n}var EA=Object.prototype,bA=EA.hasOwnProperty;function co(e,n,a){var r=e[n];(!(bA.call(e,n)&&Xr(r,a))||a===void 0&&!(n in e))&&Ph(e,n,a)}function qh(e,n,a,r){var u=!a;a||(a={});for(var o=-1,h=n.length;++o<h;){var p=n[o],d=void 0;d===void 0&&(d=e[p]),u?Ph(a,p,d):co(a,p,d)}return a}var zg=Math.max;function TA(e,n,a){return n=zg(n===void 0?e.length-1:n,0),function(){for(var r=arguments,u=-1,o=zg(r.length-n,0),h=Array(o);++u<o;)h[u]=r[n+u];u=-1;for(var p=Array(n+1);++u<n;)p[u]=r[u];return p[n]=a(h),lA(e,this,p)}}function Gh(e,n){return _A(TA(e,n,Rs),e+"")}var SA=9007199254740991;function Hh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SA}function Zn(e){return e!=null&&Hh(e.length)&&!Ai(e)}function w0(e,n,a){if(!Nn(a))return!1;var r=typeof n;return(r=="number"?Zn(a)&&oo(n,a.length):r=="string"&&n in a)?Xr(a[n],e):!1}function AA(e){return Gh(function(n,a){var r=-1,u=a.length,o=u>1?a[u-1]:void 0,h=u>2?a[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,h&&w0(a[0],a[1],h)&&(o=u<3?void 0:o,u=1),n=Object(n);++r<u;){var p=a[r];p&&e(n,p,r,o)}return n})}var OA=Object.prototype;function Qr(e){var n=e&&e.constructor,a=typeof n=="function"&&n.prototype||OA;return e===a}function xA(e,n){for(var a=-1,r=Array(e);++a<e;)r[a]=n(a);return r}var NA="[object Arguments]";function Bg(e){return Bn(e)&&ia(e)==NA}var C0=Object.prototype,RA=C0.hasOwnProperty,wA=C0.propertyIsEnumerable,fo=Bg((function(){return arguments})())?Bg:function(e){return Bn(e)&&RA.call(e,"callee")&&!wA.call(e,"callee")};function CA(){return!1}var L0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,jg=L0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,LA=jg&&jg.exports===L0,Dg=LA?Qn.Buffer:void 0,MA=Dg?Dg.isBuffer:void 0,Hr=MA||CA,kA="[object Arguments]",IA="[object Array]",UA="[object Boolean]",zA="[object Date]",BA="[object Error]",jA="[object Function]",DA="[object Map]",$A="[object Number]",PA="[object Object]",qA="[object RegExp]",GA="[object Set]",HA="[object String]",FA="[object WeakMap]",KA="[object ArrayBuffer]",VA="[object DataView]",YA="[object Float32Array]",XA="[object Float64Array]",QA="[object Int8Array]",ZA="[object Int16Array]",WA="[object Int32Array]",JA="[object Uint8Array]",tO="[object Uint8ClampedArray]",eO="[object Uint16Array]",nO="[object Uint32Array]",Jt={};Jt[YA]=Jt[XA]=Jt[QA]=Jt[ZA]=Jt[WA]=Jt[JA]=Jt[tO]=Jt[eO]=Jt[nO]=!0;Jt[kA]=Jt[IA]=Jt[KA]=Jt[UA]=Jt[VA]=Jt[zA]=Jt[BA]=Jt[jA]=Jt[DA]=Jt[$A]=Jt[PA]=Jt[qA]=Jt[GA]=Jt[HA]=Jt[FA]=!1;function iO(e){return Bn(e)&&Hh(e.length)&&!!Jt[ia(e)]}function ho(e){return function(n){return e(n)}}var M0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,Pr=M0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,aO=Pr&&Pr.exports===M0,Xf=aO&&S0.process,ea=(function(){try{var e=Pr&&Pr.require&&Pr.require("util").types;return e||Xf&&Xf.binding&&Xf.binding("util")}catch{}})(),$g=ea&&ea.isTypedArray,Fh=$g?ho($g):iO,sO=Object.prototype,rO=sO.hasOwnProperty;function k0(e,n){var a=zt(e),r=!a&&fo(e),u=!a&&!r&&Hr(e),o=!a&&!r&&!u&&Fh(e),h=a||r||u||o,p=h?xA(e.length,String):[],d=p.length;for(var _ in e)(n||rO.call(e,_))&&!(h&&(_=="length"||u&&(_=="offset"||_=="parent")||o&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||oo(_,d)))&&p.push(_);return p}function I0(e,n){return function(a){return e(n(a))}}var lO=I0(Object.keys,Object),uO=Object.prototype,oO=uO.hasOwnProperty;function U0(e){if(!Qr(e))return lO(e);var n=[];for(var a in Object(e))oO.call(e,a)&&a!="constructor"&&n.push(a);return n}function Rn(e){return Zn(e)?k0(e):U0(e)}var cO=Object.prototype,fO=cO.hasOwnProperty,un=AA(function(e,n){if(Qr(n)||Zn(n)){qh(n,Rn(n),e);return}for(var a in n)fO.call(n,a)&&co(e,a,n[a])});function hO(e){var n=[];if(e!=null)for(var a in Object(e))n.push(a);return n}var dO=Object.prototype,pO=dO.hasOwnProperty;function _O(e){if(!Nn(e))return hO(e);var n=Qr(e),a=[];for(var r in e)r=="constructor"&&(n||!pO.call(e,r))||a.push(r);return a}function z0(e){return Zn(e)?k0(e,!0):_O(e)}var mO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gO=/^\w*$/;function Kh(e,n){if(zt(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||ro(e)?!0:gO.test(e)||!mO.test(e)||n!=null&&e in Object(n)}var Fr=Ua(Object,"create");function yO(){this.__data__=Fr?Fr(null):{},this.size=0}function vO(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var EO="__lodash_hash_undefined__",bO=Object.prototype,TO=bO.hasOwnProperty;function SO(e){var n=this.__data__;if(Fr){var a=n[e];return a===EO?void 0:a}return TO.call(n,e)?n[e]:void 0}var AO=Object.prototype,OO=AO.hasOwnProperty;function xO(e){var n=this.__data__;return Fr?n[e]!==void 0:OO.call(n,e)}var NO="__lodash_hash_undefined__";function RO(e,n){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Fr&&n===void 0?NO:n,this}function wa(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n<a;){var r=e[n];this.set(r[0],r[1])}}wa.prototype.clear=yO;wa.prototype.delete=vO;wa.prototype.get=SO;wa.prototype.has=xO;wa.prototype.set=RO;function wO(){this.__data__=[],this.size=0}function po(e,n){for(var a=e.length;a--;)if(Xr(e[a][0],n))return a;return-1}var CO=Array.prototype,LO=CO.splice;function MO(e){var n=this.__data__,a=po(n,e);if(a<0)return!1;var r=n.length-1;return a==r?n.pop():LO.call(n,a,1),--this.size,!0}function kO(e){var n=this.__data__,a=po(n,e);return a<0?void 0:n[a][1]}function IO(e){return po(this.__data__,e)>-1}function UO(e,n){var a=this.__data__,r=po(a,e);return r<0?(++this.size,a.push([e,n])):a[r][1]=n,this}function Oi(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n<a;){var r=e[n];this.set(r[0],r[1])}}Oi.prototype.clear=wO;Oi.prototype.delete=MO;Oi.prototype.get=kO;Oi.prototype.has=IO;Oi.prototype.set=UO;var Kr=Ua(Qn,"Map");function zO(){this.size=0,this.__data__={hash:new wa,map:new(Kr||Oi),string:new wa}}function BO(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function _o(e,n){var a=e.__data__;return BO(n)?a[typeof n=="string"?"string":"hash"]:a.map}function jO(e){var n=_o(this,e).delete(e);return this.size-=n?1:0,n}function DO(e){return _o(this,e).get(e)}function $O(e){return _o(this,e).has(e)}function PO(e,n){var a=_o(this,e),r=a.size;return a.set(e,n),this.size+=a.size==r?0:1,this}function xi(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n<a;){var r=e[n];this.set(r[0],r[1])}}xi.prototype.clear=zO;xi.prototype.delete=jO;xi.prototype.get=DO;xi.prototype.has=$O;xi.prototype.set=PO;var qO="Expected a function";function Vh(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(qO);var a=function(){var r=arguments,u=n?n.apply(this,r):r[0],o=a.cache;if(o.has(u))return o.get(u);var h=e.apply(this,r);return a.cache=o.set(u,h)||o,h};return a.cache=new(Vh.Cache||xi),a}Vh.Cache=xi;var GO=500;function HO(e){var n=Vh(e,function(r){return a.size===GO&&a.clear(),r}),a=n.cache;return n}var FO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KO=/\\(\\)?/g,VO=HO(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(FO,function(a,r,u,o){n.push(u?o.replace(KO,"$1"):r||a)}),n});function YO(e){return e==null?"":O0(e)}function mo(e,n){return zt(e)?e:Kh(e,n)?[e]:VO(YO(e))}function Zr(e){if(typeof e=="string"||ro(e))return e;var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function Yh(e,n){n=mo(n,e);for(var a=0,r=n.length;e!=null&&a<r;)e=e[Zr(n[a++])];return a&&a==r?e:void 0}function XO(e,n,a){var r=e==null?void 0:Yh(e,n);return r===void 0?a:r}function Xh(e,n){for(var a=-1,r=n.length,u=e.length;++a<r;)e[u+a]=n[a];return e}var Pg=xn?xn.isConcatSpreadable:void 0;function QO(e){return zt(e)||fo(e)||!!(Pg&&e&&e[Pg])}function Qh(e,n,a,r,u){var o=-1,h=e.length;for(a||(a=QO),u||(u=[]);++o<h;){var p=e[o];a(p)?Xh(u,p):r||(u[u.length]=p)}return u}function Un(e){var n=e==null?0:e.length;return n?Qh(e):[]}var B0=I0(Object.getPrototypeOf,Object);function j0(e,n,a){var r=-1,u=e.length;n<0&&(n=-n>u?0:u+n),a=a>u?u:a,a<0&&(a+=u),u=n>a?0:a-n>>>0,n>>>=0;for(var o=Array(u);++r<u;)o[r]=e[r+n];return o}function ZO(e,n,a,r){var u=-1,o=e==null?0:e.length;for(r&&o&&(a=e[++u]);++u<o;)a=n(a,e[u],u,e);return a}function WO(){this.__data__=new Oi,this.size=0}function JO(e){var n=this.__data__,a=n.delete(e);return this.size=n.size,a}function tx(e){return this.__data__.get(e)}function ex(e){return this.__data__.has(e)}var nx=200;function ix(e,n){var a=this.__data__;if(a instanceof Oi){var r=a.__data__;if(!Kr||r.length<nx-1)return r.push([e,n]),this.size=++a.size,this;a=this.__data__=new xi(r)}return a.set(e,n),this.size=a.size,this}function Xn(e){var n=this.__data__=new Oi(e);this.size=n.size}Xn.prototype.clear=WO;Xn.prototype.delete=JO;Xn.prototype.get=tx;Xn.prototype.has=ex;Xn.prototype.set=ix;function ax(e,n){return e&&qh(n,Rn(n),e)}var D0=typeof rn=="object"&&rn&&!rn.nodeType&&rn,qg=D0&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,sx=qg&&qg.exports===D0,Gg=sx?Qn.Buffer:void 0,Hg=Gg?Gg.allocUnsafe:void 0;function rx(e,n){var a=e.length,r=Hg?Hg(a):new e.constructor(a);return e.copy(r),r}function Zh(e,n){for(var a=-1,r=e==null?0:e.length,u=0,o=[];++a<r;){var h=e[a];n(h,a,e)&&(o[u++]=h)}return o}function $0(){return[]}var lx=Object.prototype,ux=lx.propertyIsEnumerable,Fg=Object.getOwnPropertySymbols,Wh=Fg?function(e){return e==null?[]:(e=Object(e),Zh(Fg(e),function(n){return ux.call(e,n)}))}:$0;function ox(e,n){return qh(e,Wh(e),n)}var cx=Object.getOwnPropertySymbols,fx=cx?function(e){for(var n=[];e;)Xh(n,Wh(e)),e=B0(e);return n}:$0;function P0(e,n,a){var r=n(e);return zt(e)?r:Xh(r,a(e))}function bh(e){return P0(e,Rn,Wh)}function hx(e){return P0(e,z0,fx)}var Th=Ua(Qn,"DataView"),Sh=Ua(Qn,"Promise"),Ns=Ua(Qn,"Set"),Kg="[object Map]",dx="[object Object]",Vg="[object Promise]",Yg="[object Set]",Xg="[object WeakMap]",Qg="[object DataView]",px=Ia(Th),_x=Ia(Kr),mx=Ia(Sh),gx=Ia(Ns),yx=Ia(Eh),An=ia;(Th&&An(new Th(new ArrayBuffer(1)))!=Qg||Kr&&An(new Kr)!=Kg||Sh&&An(Sh.resolve())!=Vg||Ns&&An(new Ns)!=Yg||Eh&&An(new Eh)!=Xg)&&(An=function(e){var n=ia(e),a=n==dx?e.constructor:void 0,r=a?Ia(a):"";if(r)switch(r){case px:return Qg;case _x:return Kg;case mx:return Vg;case gx:return Yg;case yx:return Xg}return n});var vx=Object.prototype,Ex=vx.hasOwnProperty;function bx(e){var n=e.length,a=new e.constructor(n);return n&&typeof e[0]=="string"&&Ex.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var Fu=Qn.Uint8Array;function Tx(e){var n=new e.constructor(e.byteLength);return new Fu(n).set(new Fu(e)),n}function Sx(e,n){var a=e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var Ax=/\w*$/;function Ox(e){var n=new e.constructor(e.source,Ax.exec(e));return n.lastIndex=e.lastIndex,n}var Zg=xn?xn.prototype:void 0,Wg=Zg?Zg.valueOf:void 0;function xx(e){return Wg?Object(Wg.call(e)):{}}function Nx(e,n){var a=e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var Rx="[object Boolean]",wx="[object Date]",Cx="[object Map]",Lx="[object Number]",Mx="[object RegExp]",kx="[object Set]",Ix="[object String]",Ux="[object Symbol]",zx="[object ArrayBuffer]",Bx="[object DataView]",jx="[object Float32Array]",Dx="[object Float64Array]",$x="[object Int8Array]",Px="[object Int16Array]",qx="[object Int32Array]",Gx="[object Uint8Array]",Hx="[object Uint8ClampedArray]",Fx="[object Uint16Array]",Kx="[object Uint32Array]";function Vx(e,n,a){var r=e.constructor;switch(n){case zx:return Tx(e);case Rx:case wx:return new r(+e);case Bx:return Sx(e);case jx:case Dx:case $x:case Px:case qx:case Gx:case Hx:case Fx:case Kx:return Nx(e);case Cx:return new r;case Lx:case Ix:return new r(e);case Mx:return Ox(e);case kx:return new r;case Ux:return xx(e)}}function Yx(e){return typeof e.constructor=="function"&&!Qr(e)?rA(B0(e)):{}}var Xx="[object Map]";function Qx(e){return Bn(e)&&An(e)==Xx}var Jg=ea&&ea.isMap,Zx=Jg?ho(Jg):Qx,Wx="[object Set]";function Jx(e){return Bn(e)&&An(e)==Wx}var ty=ea&&ea.isSet,tN=ty?ho(ty):Jx,q0="[object Arguments]",eN="[object Array]",nN="[object Boolean]",iN="[object Date]",aN="[object Error]",G0="[object Function]",sN="[object GeneratorFunction]",rN="[object Map]",lN="[object Number]",H0="[object Object]",uN="[object RegExp]",oN="[object Set]",cN="[object String]",fN="[object Symbol]",hN="[object WeakMap]",dN="[object ArrayBuffer]",pN="[object DataView]",_N="[object Float32Array]",mN="[object Float64Array]",gN="[object Int8Array]",yN="[object Int16Array]",vN="[object Int32Array]",EN="[object Uint8Array]",bN="[object Uint8ClampedArray]",TN="[object Uint16Array]",SN="[object Uint32Array]",Xt={};Xt[q0]=Xt[eN]=Xt[dN]=Xt[pN]=Xt[nN]=Xt[iN]=Xt[_N]=Xt[mN]=Xt[gN]=Xt[yN]=Xt[vN]=Xt[rN]=Xt[lN]=Xt[H0]=Xt[uN]=Xt[oN]=Xt[cN]=Xt[fN]=Xt[EN]=Xt[bN]=Xt[TN]=Xt[SN]=!0;Xt[aN]=Xt[G0]=Xt[hN]=!1;function Iu(e,n,a,r,u,o){var h;if(h!==void 0)return h;if(!Nn(e))return e;var p=zt(e);if(p)return h=bx(e),uA(e,h);var d=An(e),_=d==G0||d==sN;if(Hr(e))return rx(e);if(d==H0||d==q0||_&&!u)return h=_?{}:Yx(e),ox(e,ax(h,e));if(!Xt[d])return u?e:{};h=Vx(e,d),o||(o=new Xn);var v=o.get(e);if(v)return v;o.set(e,h),tN(e)?e.forEach(function(z){h.add(Iu(z,n,a,z,e,o))}):Zx(e)&&e.forEach(function(z,G){h.set(G,Iu(z,n,a,G,e,o))});var y=bh,O=p?void 0:y(e);return x0(O||e,function(z,G){O&&(G=z,z=e[G]),co(h,G,Iu(z,n,a,G,e,o))}),h}var AN=4;function Ce(e){return Iu(e,AN)}function Wr(e){for(var n=-1,a=e==null?0:e.length,r=0,u=[];++n<a;){var o=e[n];o&&(u[r++]=o)}return u}var ON="__lodash_hash_undefined__";function xN(e){return this.__data__.set(e,ON),this}function NN(e){return this.__data__.has(e)}function ws(e){var n=-1,a=e==null?0:e.length;for(this.__data__=new xi;++n<a;)this.add(e[n])}ws.prototype.add=ws.prototype.push=xN;ws.prototype.has=NN;function F0(e,n){for(var a=-1,r=e==null?0:e.length;++a<r;)if(n(e[a],a,e))return!0;return!1}function Jh(e,n){return e.has(n)}var RN=1,wN=2;function K0(e,n,a,r,u,o){var h=a&RN,p=e.length,d=n.length;if(p!=d&&!(h&&d>p))return!1;var _=o.get(e),v=o.get(n);if(_&&v)return _==n&&v==e;var y=-1,O=!0,z=a&wN?new ws:void 0;for(o.set(e,n),o.set(n,e);++y<p;){var G=e[y],V=n[y];if(r)var A=h?r(V,G,y,n,e,o):r(G,V,y,e,n,o);if(A!==void 0){if(A)continue;O=!1;break}if(z){if(!F0(n,function(b,N){if(!Jh(z,N)&&(G===b||u(G,b,a,r,o)))return z.push(N)})){O=!1;break}}else if(!(G===V||u(G,V,a,r,o))){O=!1;break}}return o.delete(e),o.delete(n),O}function CN(e){var n=-1,a=Array(e.size);return e.forEach(function(r,u){a[++n]=[u,r]}),a}function td(e){var n=-1,a=Array(e.size);return e.forEach(function(r){a[++n]=r}),a}var LN=1,MN=2,kN="[object Boolean]",IN="[object Date]",UN="[object Error]",zN="[object Map]",BN="[object Number]",jN="[object RegExp]",DN="[object Set]",$N="[object String]",PN="[object Symbol]",qN="[object ArrayBuffer]",GN="[object DataView]",ey=xn?xn.prototype:void 0,Qf=ey?ey.valueOf:void 0;function HN(e,n,a,r,u,o,h){switch(a){case GN:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case qN:return!(e.byteLength!=n.byteLength||!o(new Fu(e),new Fu(n)));case kN:case IN:case BN:return Xr(+e,+n);case UN:return e.name==n.name&&e.message==n.message;case jN:case $N:return e==n+"";case zN:var p=CN;case DN:var d=r&LN;if(p||(p=td),e.size!=n.size&&!d)return!1;var _=h.get(e);if(_)return _==n;r|=MN,h.set(e,n);var v=K0(p(e),p(n),r,u,o,h);return h.delete(e),v;case PN:if(Qf)return Qf.call(e)==Qf.call(n)}return!1}var FN=1,KN=Object.prototype,VN=KN.hasOwnProperty;function YN(e,n,a,r,u,o){var h=a&FN,p=bh(e),d=p.length,_=bh(n),v=_.length;if(d!=v&&!h)return!1;for(var y=d;y--;){var O=p[y];if(!(h?O in n:VN.call(n,O)))return!1}var z=o.get(e),G=o.get(n);if(z&&G)return z==n&&G==e;var V=!0;o.set(e,n),o.set(n,e);for(var A=h;++y<d;){O=p[y];var b=e[O],N=n[O];if(r)var P=h?r(N,b,O,n,e,o):r(b,N,O,e,n,o);if(!(P===void 0?b===N||u(b,N,a,r,o):P)){V=!1;break}A||(A=O=="constructor")}if(V&&!A){var B=e.constructor,Z=n.constructor;B!=Z&&"constructor"in e&&"constructor"in n&&!(typeof B=="function"&&B instanceof B&&typeof Z=="function"&&Z instanceof Z)&&(V=!1)}return o.delete(e),o.delete(n),V}var XN=1,ny="[object Arguments]",iy="[object Array]",Tu="[object Object]",QN=Object.prototype,ay=QN.hasOwnProperty;function ZN(e,n,a,r,u,o){var h=zt(e),p=zt(n),d=h?iy:An(e),_=p?iy:An(n);d=d==ny?Tu:d,_=_==ny?Tu:_;var v=d==Tu,y=_==Tu,O=d==_;if(O&&Hr(e)){if(!Hr(n))return!1;h=!0,v=!1}if(O&&!v)return o||(o=new Xn),h||Fh(e)?K0(e,n,a,r,u,o):HN(e,n,d,a,r,u,o);if(!(a&XN)){var z=v&&ay.call(e,"__wrapped__"),G=y&&ay.call(n,"__wrapped__");if(z||G){var V=z?e.value():e,A=G?n.value():n;return o||(o=new Xn),u(V,A,a,r,o)}}return O?(o||(o=new Xn),YN(e,n,a,r,u,o)):!1}function ed(e,n,a,r,u){return e===n?!0:e==null||n==null||!Bn(e)&&!Bn(n)?e!==e&&n!==n:ZN(e,n,a,r,ed,u)}var WN=1,JN=2;function tR(e,n,a,r){var u=a.length,o=u;if(e==null)return!o;for(e=Object(e);u--;){var h=a[u];if(h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++u<o;){h=a[u];var p=h[0],d=e[p],_=h[1];if(h[2]){if(d===void 0&&!(p in e))return!1}else{var v=new Xn,y;if(!(y===void 0?ed(_,d,WN|JN,r,v):y))return!1}}return!0}function V0(e){return e===e&&!Nn(e)}function eR(e){for(var n=Rn(e),a=n.length;a--;){var r=n[a],u=e[r];n[a]=[r,u,V0(u)]}return n}function Y0(e,n){return function(a){return a==null?!1:a[e]===n&&(n!==void 0||e in Object(a))}}function nR(e){var n=eR(e);return n.length==1&&n[0][2]?Y0(n[0][0],n[0][1]):function(a){return a===e||tR(a,e,n)}}function iR(e,n){return e!=null&&n in Object(e)}function X0(e,n,a){n=mo(n,e);for(var r=-1,u=n.length,o=!1;++r<u;){var h=Zr(n[r]);if(!(o=e!=null&&a(e,h)))break;e=e[h]}return o||++r!=u?o:(u=e==null?0:e.length,!!u&&Hh(u)&&oo(h,u)&&(zt(e)||fo(e)))}function aR(e,n){return e!=null&&X0(e,n,iR)}var sR=1,rR=2;function lR(e,n){return Kh(e)&&V0(n)?Y0(Zr(e),n):function(a){var r=XO(a,e);return r===void 0&&r===n?aR(a,e):ed(n,r,sR|rR)}}function uR(e){return function(n){return n?.[e]}}function oR(e){return function(n){return Yh(n,e)}}function cR(e){return Kh(e)?uR(Zr(e)):oR(e)}function Wn(e){return typeof e=="function"?e:e==null?Rs:typeof e=="object"?zt(e)?lR(e[0],e[1]):nR(e):cR(e)}function fR(e,n,a,r){for(var u=-1,o=e==null?0:e.length;++u<o;){var h=e[u];n(r,h,a(h),e)}return r}function hR(e){return function(n,a,r){for(var u=-1,o=Object(n),h=r(n),p=h.length;p--;){var d=h[++u];if(a(o[d],d,o)===!1)break}return n}}var dR=hR();function pR(e,n){return e&&dR(e,n,Rn)}function _R(e,n){return function(a,r){if(a==null)return a;if(!Zn(a))return e(a,r);for(var u=a.length,o=-1,h=Object(a);++o<u&&r(h[o],o,h)!==!1;);return a}}var za=_R(pR);function mR(e,n,a,r){return za(e,function(u,o,h){n(r,u,a(u),h)}),r}function gR(e,n){return function(a,r){var u=zt(a)?fR:mR,o=n?n():{};return u(a,e,Wn(r),o)}}var Q0=Object.prototype,yR=Q0.hasOwnProperty,nd=Gh(function(e,n){e=Object(e);var a=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&w0(n[0],n[1],u)&&(r=1);++a<r;)for(var o=n[a],h=z0(o),p=-1,d=h.length;++p<d;){var _=h[p],v=e[_];(v===void 0||Xr(v,Q0[_])&&!yR.call(e,_))&&(e[_]=o[_])}return e});function sy(e){return Bn(e)&&Zn(e)}var vR=200;function ER(e,n,a,r){var u=-1,o=R0,h=!0,p=e.length,d=[],_=n.length;if(!p)return d;n.length>=vR&&(o=Jh,h=!1,n=new ws(n));t:for(;++u<p;){var v=e[u],y=v;if(v=v!==0?v:0,h&&y===y){for(var O=_;O--;)if(n[O]===y)continue t;d.push(v)}else o(n,y,r)||d.push(v)}return d}var go=Gh(function(e,n){return sy(e)?ER(e,Qh(n,1,sy,!0)):[]});function Ca(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function we(e,n,a){var r=e==null?0:e.length;return r?(n=n===void 0?1:uo(n),j0(e,n<0?0:n,r)):[]}function Vr(e,n,a){var r=e==null?0:e.length;return r?(n=n===void 0?1:uo(n),n=r-n,j0(e,0,n<0?0:n)):[]}function bR(e){return typeof e=="function"?e:Rs}function vt(e,n){var a=zt(e)?x0:za;return a(e,bR(n))}function TR(e,n){for(var a=-1,r=e==null?0:e.length;++a<r;)if(!n(e[a],a,e))return!1;return!0}function SR(e,n){var a=!0;return za(e,function(r,u,o){return a=!!n(r,u,o),a}),a}function zn(e,n,a){var r=zt(e)?TR:SR;return r(e,Wn(n))}function Z0(e,n){var a=[];return za(e,function(r,u,o){n(r,u,o)&&a.push(r)}),a}function wn(e,n){var a=zt(e)?Zh:Z0;return a(e,Wn(n))}function AR(e){return function(n,a,r){var u=Object(n);if(!Zn(n)){var o=Wn(a);n=Rn(n),a=function(p){return o(u[p],p,u)}}var h=e(n,a,r);return h>-1?u[o?n[h]:h]:void 0}}var OR=Math.max;function xR(e,n,a){var r=e==null?0:e.length;if(!r)return-1;var u=a==null?0:uo(a);return u<0&&(u=OR(r+u,0)),N0(e,Wn(n),u)}var Cs=AR(xR);function jn(e){return e&&e.length?e[0]:void 0}function NR(e,n){var a=-1,r=Zn(e)?Array(e.length):[];return za(e,function(u,o,h){r[++a]=n(u,o,h)}),r}function ft(e,n){var a=zt(e)?lo:NR;return a(e,Wn(n))}function On(e,n){return Qh(ft(e,n))}var RR=Object.prototype,wR=RR.hasOwnProperty,CR=gR(function(e,n,a){wR.call(e,a)?e[a].push(n):Ph(e,a,[n])}),LR=Object.prototype,MR=LR.hasOwnProperty;function kR(e,n){return e!=null&&MR.call(e,n)}function yt(e,n){return e!=null&&X0(e,n,kR)}var IR="[object String]";function Ye(e){return typeof e=="string"||!zt(e)&&Bn(e)&&ia(e)==IR}function UR(e,n){return lo(n,function(a){return e[a]})}function ye(e){return e==null?[]:UR(e,Rn(e))}var zR=Math.max;function Be(e,n,a,r){e=Zn(e)?e:ye(e),a=a?uo(a):0;var u=e.length;return a<0&&(a=zR(u+a,0)),Ye(e)?a<=u&&e.indexOf(n,a)>-1:!!u&&$h(e,n,a)>-1}function ry(e,n,a){var r=e==null?0:e.length;if(!r)return-1;var u=0;return $h(e,n,u)}var BR="[object Map]",jR="[object Set]",DR=Object.prototype,$R=DR.hasOwnProperty;function Qt(e){if(e==null)return!0;if(Zn(e)&&(zt(e)||typeof e=="string"||typeof e.splice=="function"||Hr(e)||Fh(e)||fo(e)))return!e.length;var n=An(e);if(n==BR||n==jR)return!e.size;if(Qr(e))return!U0(e).length;for(var a in e)if($R.call(e,a))return!1;return!0}var PR="[object RegExp]";function qR(e){return Bn(e)&&ia(e)==PR}var ly=ea&&ea.isRegExp,bi=ly?ho(ly):qR;function Ti(e){return e===void 0}var GR="Expected a function";function HR(e){if(typeof e!="function")throw new TypeError(GR);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function FR(e,n,a,r){if(!Nn(e))return e;n=mo(n,e);for(var u=-1,o=n.length,h=o-1,p=e;p!=null&&++u<o;){var d=Zr(n[u]),_=a;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(u!=h){var v=p[d];_=void 0,_===void 0&&(_=Nn(v)?v:oo(n[u+1])?[]:{})}co(p,d,_),p=p[d]}return e}function KR(e,n,a){for(var r=-1,u=n.length,o={};++r<u;){var h=n[r],p=Yh(e,h);a(p,h)&&FR(o,mo(h,e),p)}return o}function Dn(e,n){if(e==null)return{};var a=lo(hx(e),function(r){return[r]});return n=Wn(n),KR(e,a,function(r,u){return n(r,u[0])})}function VR(e,n,a,r,u){return u(e,function(o,h,p){a=r?(r=!1,o):n(a,o,h,p)}),a}function on(e,n,a){var r=zt(e)?ZO:VR,u=arguments.length<3;return r(e,Wn(n),a,u,za)}function yo(e,n){var a=zt(e)?Zh:Z0;return a(e,HR(Wn(n)))}function YR(e,n){var a;return za(e,function(r,u,o){return a=n(r,u,o),!a}),!!a}function W0(e,n,a){var r=zt(e)?F0:YR;return r(e,Wn(n))}var XR=1/0,QR=Ns&&1/td(new Ns([,-0]))[1]==XR?function(e){return new Ns(e)}:ge,ZR=200;function WR(e,n,a){var r=-1,u=R0,o=e.length,h=!0,p=[],d=p;if(o>=ZR){var _=QR(e);if(_)return td(_);h=!1,u=Jh,d=new ws}else d=p;t:for(;++r<o;){var v=e[r],y=v;if(v=v!==0?v:0,h&&y===y){for(var O=d.length;O--;)if(d[O]===y)continue t;p.push(v)}else u(d,y,a)||(d!==p&&d.push(y),p.push(v))}return p}function id(e){return e&&e.length?WR(e):[]}function Ah(e){console&&console.error&&console.error(`Error: ${e}`)}function J0(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function tv(e){const n=new Date().getTime(),a=e();return{time:new Date().getTime()-n,value:a}}function ev(e){function n(){}n.prototype=e;const a=new n;function r(){return typeof a.bar}return r(),r(),e}function JR(e){return tw(e)?e.LABEL:e.name}function tw(e){return Ye(e.LABEL)&&e.LABEL!==""}class Jn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){this._definition=n}accept(n){n.visit(this),vt(this.definition,a=>{a.accept(n)})}}class cn extends Jn{constructor(n){super([]),this.idx=1,un(this,Dn(n,a=>a!==void 0))}set definition(n){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(n){n.visit(this)}}class Ls extends Jn{constructor(n){super(n.definition),this.orgText="",un(this,Dn(n,a=>a!==void 0))}}class Xe extends Jn{constructor(n){super(n.definition),this.ignoreAmbiguities=!1,un(this,Dn(n,a=>a!==void 0))}}class Ve extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class ti extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class ei extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class ve extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class $n extends Jn{constructor(n){super(n.definition),this.idx=1,un(this,Dn(n,a=>a!==void 0))}}class Pn extends Jn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){super(n.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,un(this,Dn(n,a=>a!==void 0))}}class ne{constructor(n){this.idx=1,un(this,Dn(n,a=>a!==void 0))}accept(n){n.visit(this)}}function ew(e){return ft(e,Uu)}function Uu(e){function n(a){return ft(a,Uu)}if(e instanceof cn){const a={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return Ye(e.label)&&(a.label=e.label),a}else{if(e instanceof Xe)return{type:"Alternative",definition:n(e.definition)};if(e instanceof Ve)return{type:"Option",idx:e.idx,definition:n(e.definition)};if(e instanceof ti)return{type:"RepetitionMandatory",idx:e.idx,definition:n(e.definition)};if(e instanceof ei)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Uu(new ne({terminalType:e.separator})),definition:n(e.definition)};if(e instanceof $n)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Uu(new ne({terminalType:e.separator})),definition:n(e.definition)};if(e instanceof ve)return{type:"Repetition",idx:e.idx,definition:n(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:n(e.definition)};if(e instanceof ne){const a={type:"Terminal",name:e.terminalType.name,label:JR(e.terminalType),idx:e.idx};Ye(e.label)&&(a.terminalLabel=e.label);const r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(a.pattern=bi(r)?r.source:r),a}else{if(e instanceof Ls)return{type:"Rule",name:e.name,orgText:e.orgText,definition:n(e.definition)};throw Error("non exhaustive match")}}}class Ms{visit(n){const a=n;switch(a.constructor){case cn:return this.visitNonTerminal(a);case Xe:return this.visitAlternative(a);case Ve:return this.visitOption(a);case ti:return this.visitRepetitionMandatory(a);case ei:return this.visitRepetitionMandatoryWithSeparator(a);case $n:return this.visitRepetitionWithSeparator(a);case ve:return this.visitRepetition(a);case Pn:return this.visitAlternation(a);case ne:return this.visitTerminal(a);case Ls:return this.visitRule(a);default:throw Error("non exhaustive match")}}visitNonTerminal(n){}visitAlternative(n){}visitOption(n){}visitRepetition(n){}visitRepetitionMandatory(n){}visitRepetitionMandatoryWithSeparator(n){}visitRepetitionWithSeparator(n){}visitAlternation(n){}visitTerminal(n){}visitRule(n){}}function nw(e){return e instanceof Xe||e instanceof Ve||e instanceof ve||e instanceof ti||e instanceof ei||e instanceof $n||e instanceof ne||e instanceof Ls}function Ku(e,n=[]){return e instanceof Ve||e instanceof ve||e instanceof $n?!0:e instanceof Pn?W0(e.definition,r=>Ku(r,n)):e instanceof cn&&Be(n,e)?!1:e instanceof Jn?(e instanceof cn&&n.push(e),zn(e.definition,r=>Ku(r,n))):!1}function iw(e){return e instanceof Pn}function Yn(e){if(e instanceof cn)return"SUBRULE";if(e instanceof Ve)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof ti)return"AT_LEAST_ONE";if(e instanceof ei)return"AT_LEAST_ONE_SEP";if(e instanceof $n)return"MANY_SEP";if(e instanceof ve)return"MANY";if(e instanceof ne)return"CONSUME";throw Error("non exhaustive match")}class vo{walk(n,a=[]){vt(n.definition,(r,u)=>{const o=we(n.definition,u+1);if(r instanceof cn)this.walkProdRef(r,o,a);else if(r instanceof ne)this.walkTerminal(r,o,a);else if(r instanceof Xe)this.walkFlat(r,o,a);else if(r instanceof Ve)this.walkOption(r,o,a);else if(r instanceof ti)this.walkAtLeastOne(r,o,a);else if(r instanceof ei)this.walkAtLeastOneSep(r,o,a);else if(r instanceof $n)this.walkManySep(r,o,a);else if(r instanceof ve)this.walkMany(r,o,a);else if(r instanceof Pn)this.walkOr(r,o,a);else throw Error("non exhaustive match")})}walkTerminal(n,a,r){}walkProdRef(n,a,r){}walkFlat(n,a,r){const u=a.concat(r);this.walk(n,u)}walkOption(n,a,r){const u=a.concat(r);this.walk(n,u)}walkAtLeastOne(n,a,r){const u=[new Ve({definition:n.definition})].concat(a,r);this.walk(n,u)}walkAtLeastOneSep(n,a,r){const u=uy(n,a,r);this.walk(n,u)}walkMany(n,a,r){const u=[new Ve({definition:n.definition})].concat(a,r);this.walk(n,u)}walkManySep(n,a,r){const u=uy(n,a,r);this.walk(n,u)}walkOr(n,a,r){const u=a.concat(r);vt(n.definition,o=>{const h=new Xe({definition:[o]});this.walk(h,u)})}}function uy(e,n,a){return[new Ve({definition:[new ne({terminalType:e.separator})].concat(e.definition)})].concat(n,a)}function Jr(e){if(e instanceof cn)return Jr(e.referencedRule);if(e instanceof ne)return rw(e);if(nw(e))return aw(e);if(iw(e))return sw(e);throw Error("non exhaustive match")}function aw(e){let n=[];const a=e.definition;let r=0,u=a.length>r,o,h=!0;for(;u&&h;)o=a[r],h=Ku(o),n=n.concat(Jr(o)),r=r+1,u=a.length>r;return id(n)}function sw(e){const n=ft(e.definition,a=>Jr(a));return id(Un(n))}function rw(e){return[e.terminalType]}const nv="_~IN~_";class lw extends vo{constructor(n){super(),this.topProd=n,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(n,a,r){}walkProdRef(n,a,r){const u=ow(n.referencedRule,n.idx)+this.topProd.name,o=a.concat(r),h=new Xe({definition:o}),p=Jr(h);this.follows[u]=p}}function uw(e){const n={};return vt(e,a=>{const r=new lw(a).startWalking();un(n,r)}),n}function ow(e,n){return e.name+n+nv}function Et(e){return e.charCodeAt(0)}function Zf(e,n){Array.isArray(e)?e.forEach(function(a){n.push(a)}):n.push(e)}function Cr(e,n){if(e[n]===!0)throw"duplicate flag "+n;e[n],e[n]=!0}function bs(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function cw(){throw Error("Internal Error - Should never get here!")}function oy(e){return e.type==="Character"}const Vu=[];for(let e=Et("0");e<=Et("9");e++)Vu.push(e);const Yu=[Et("_")].concat(Vu);for(let e=Et("a");e<=Et("z");e++)Yu.push(e);for(let e=Et("A");e<=Et("Z");e++)Yu.push(e);const cy=[Et(" "),Et("\f"),Et(`
20
20
  `),Et("\r"),Et(" "),Et("\v"),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et(" "),Et("\u2028"),Et("\u2029"),Et(" "),Et(" "),Et(" "),Et("\uFEFF")],fw=/[0-9a-fA-F]/,Su=/[0-9]/,hw=/[1-9]/;class dw{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(n){this.idx=n.idx,this.input=n.input,this.groupIdx=n.groupIdx}pattern(n){this.idx=0,this.input=n,this.groupIdx=0,this.consumeChar("/");const a=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:n.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Cr(r,"global");break;case"i":Cr(r,"ignoreCase");break;case"m":Cr(r,"multiLine");break;case"u":Cr(r,"unicode");break;case"y":Cr(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:a,loc:this.loc(0)}}disjunction(){const n=[],a=this.idx;for(n.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),n.push(this.alternative());return{type:"Disjunction",value:n,loc:this.loc(a)}}alternative(){const n=[],a=this.idx;for(;this.isTerm();)n.push(this.term());return{type:"Alternative",value:n,loc:this.loc(a)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const n=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(n)};case"$":return{type:"EndAnchor",loc:this.loc(n)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(n)};case"B":return{type:"NonWordBoundary",loc:this.loc(n)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let a;switch(this.popChar()){case"=":a="Lookahead";break;case"!":a="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":a="Lookbehind";break;case"!":a="NegativeLookbehind"}break}}bs(a);const r=this.disjunction();return this.consumeChar(")"),{type:a,value:r,loc:this.loc(n)}}return cw()}quantifier(n=!1){let a;const r=this.idx;switch(this.popChar()){case"*":a={atLeast:0,atMost:1/0};break;case"+":a={atLeast:1,atMost:1/0};break;case"?":a={atLeast:0,atMost:1};break;case"{":const u=this.integerIncludingZero();switch(this.popChar()){case"}":a={atLeast:u,atMost:u};break;case",":let o;this.isDigit()?(o=this.integerIncludingZero(),a={atLeast:u,atMost:o}):a={atLeast:u,atMost:1/0},this.consumeChar("}");break}if(n===!0&&a===void 0)return;bs(a);break}if(!(n===!0&&a===void 0)&&bs(a))return this.peekChar(0)==="?"?(this.consumeChar("?"),a.greedy=!1):a.greedy=!0,a.type="Quantifier",a.loc=this.loc(r),a}atom(){let n;const a=this.idx;switch(this.peekChar()){case".":n=this.dotAll();break;case"\\":n=this.atomEscape();break;case"[":n=this.characterClass();break;case"(":n=this.group();break}if(n===void 0&&this.isPatternCharacter()&&(n=this.patternCharacter()),bs(n))return n.loc=this.loc(a),this.isQuantifier()&&(n.quantifier=this.quantifier()),n}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Et(`
21
21
  `),Et("\r"),Et("\u2028"),Et("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let n,a=!1;switch(this.popChar()){case"d":n=Vu;break;case"D":n=Vu,a=!0;break;case"s":n=cy;break;case"S":n=cy,a=!0;break;case"w":n=Yu;break;case"W":n=Yu,a=!0;break}if(bs(n))return{type:"Set",value:n,complement:a}}controlEscapeAtom(){let n;switch(this.popChar()){case"f":n=Et("\f");break;case"n":n=Et(`
22
22
  `);break;case"r":n=Et("\r");break;case"t":n=Et(" ");break;case"v":n=Et("\v");break}if(bs(n))return{type:"Character",value:n}}controlLetterEscapeAtom(){this.consumeChar("c");const n=this.popChar();if(/[a-zA-Z]/.test(n)===!1)throw Error("Invalid ");return{type:"Character",value:n.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Et("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const n=this.popChar();return{type:"Character",value:Et(n)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -34,23 +34,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
34
34
  Failed parsing: < ${e.toString()} >
35
35
  Using the @chevrotain/regexp-to-ast library
36
36
  Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function Oh(e,n,a){switch(e.type){case"Disjunction":for(let u=0;u<e.value.length;u++)Oh(e.value[u],n,a);break;case"Alternative":const r=e.value;for(let u=0;u<r.length;u++){const o=r[u];switch(o.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const h=o;switch(h.type){case"Character":Au(h.value,n,a);break;case"Set":if(h.complement===!0)throw Error(iv);vt(h.value,d=>{if(typeof d=="number")Au(d,n,a);else{const _=d;if(a===!0)for(let v=_.from;v<=_.to;v++)Au(v,n,a);else{for(let v=_.from;v<=_.to&&v<jr;v++)Au(v,n,a);if(_.to>=jr){const v=_.from>=jr?_.from:jr,y=_.to,O=na(v),z=na(y);for(let G=O;G<=z;G++)n[G]=G}}}});break;case"Group":Oh(h.value,n,a);break;default:throw Error("Non Exhaustive Match")}const p=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&xh(h)===!1||h.type!=="Group"&&p===!1)break}break;default:throw Error("non exhaustive match!")}return ye(n)}function Au(e,n,a){const r=na(e);n[r]=r,a===!0&&gw(e,n)}function gw(e,n){const a=String.fromCharCode(e),r=a.toUpperCase();if(r!==a){const u=na(r.charCodeAt(0));n[u]=u}else{const u=a.toLowerCase();if(u!==a){const o=na(u.charCodeAt(0));n[o]=o}}}function fy(e,n){return Cs(e.value,a=>{if(typeof a=="number")return Be(n,a);{const r=a;return Cs(n,u=>r.from<=u&&u<=r.to)!==void 0}})}function xh(e){const n=e.quantifier;return n&&n.atLeast===0?!0:e.value?zt(e.value)?zn(e.value,xh):xh(e.value):!1}class yw extends ad{constructor(n){super(),this.targetCharCodes=n,this.found=!1}visitChildren(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return;case"Lookbehind":this.visitLookbehind(n);return;case"NegativeLookbehind":this.visitNegativeLookbehind(n);return}super.visitChildren(n)}}visitCharacter(n){Be(this.targetCharCodes,n.value)&&(this.found=!0)}visitSet(n){n.complement?fy(n,this.targetCharCodes)===void 0&&(this.found=!0):fy(n,this.targetCharCodes)!==void 0&&(this.found=!0)}}function sd(e,n){if(n instanceof RegExp){const a=Eo(n),r=new yw(e);return r.visit(a),r.found}else return Cs(n,a=>Be(e,a.charCodeAt(0)))!==void 0}const La="PATTERN",Br="defaultMode",Ou="modes";let av=typeof new RegExp("(?:)").sticky=="boolean";function vw(e,n){n=nd(n,{useSticky:av,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
37
- `],tracer:(N,P)=>P()});const a=n.tracer;a("initCharCodeToOptimizedIndexMap",()=>{Gw()});let r;a("Reject Lexer.NA",()=>{r=yo(e,N=>N[La]===ke.NA)});let u=!1,o;a("Transform Patterns",()=>{u=!1,o=ft(r,N=>{const P=N[La];if(bi(P)){const B=P.source;return B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!P.ignoreCase?B:B.length===2&&B[0]==="\\"&&!Be(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],B[1])?B[1]:n.useSticky?dy(P):hy(P)}else{if(Ai(P))return u=!0,{exec:P};if(typeof P=="object")return u=!0,P;if(typeof P=="string"){if(P.length===1)return P;{const B=P.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),Z=new RegExp(B);return n.useSticky?dy(Z):hy(Z)}}else throw Error("non exhaustive match")}})});let h,p,d,_,v;a("misc mapping",()=>{h=ft(r,N=>N.tokenTypeIdx),p=ft(r,N=>{const P=N.GROUP;if(P!==ke.SKIPPED){if(Ye(P))return P;if(Ti(P))return!1;throw Error("non exhaustive match")}}),d=ft(r,N=>{const P=N.LONGER_ALT;if(P)return zt(P)?ft(P,Z=>ry(r,Z)):[ry(r,P)]}),_=ft(r,N=>N.PUSH_MODE),v=ft(r,N=>yt(N,"POP_MODE"))});let y;a("Line Terminator Handling",()=>{const N=lv(n.lineTerminatorCharacters);y=ft(r,P=>!1),n.positionTracking!=="onlyOffset"&&(y=ft(r,P=>yt(P,"LINE_BREAKS")?!!P.LINE_BREAKS:rv(P,N)===!1&&sd(N,P.PATTERN)))});let O,z,G,V;a("Misc Mapping #2",()=>{O=ft(r,sv),z=ft(o,$w),G=on(r,(N,P)=>{const B=P.GROUP;return Ye(B)&&B!==ke.SKIPPED&&(N[B]=[]),N},{}),V=ft(o,(N,P)=>({pattern:o[P],longerAlt:d[P],canLineTerminator:y[P],isCustom:O[P],short:z[P],group:p[P],push:_[P],pop:v[P],tokenTypeIdx:h[P],tokenType:r[P]}))});let A=!0,b=[];return n.safeMode||a("First Char Optimization",()=>{b=on(r,(N,P,B)=>{if(typeof P.PATTERN=="string"){const Z=P.PATTERN.charCodeAt(0),I=na(Z);Wf(N,I,V[B])}else if(zt(P.START_CHARS_HINT)){let Z;vt(P.START_CHARS_HINT,I=>{const w=typeof I=="string"?I.charCodeAt(0):I,E=na(w);Z!==E&&(Z=E,Wf(N,E,V[B]))})}else if(bi(P.PATTERN))if(P.PATTERN.unicode)A=!1,n.ensureOptimizations&&Ah(`${Xu} Unable to analyze < ${P.PATTERN.toString()} > pattern.
37
+ `],tracer:(N,P)=>P()});const a=n.tracer;a("initCharCodeToOptimizedIndexMap",()=>{Gw()});let r;a("Reject Lexer.NA",()=>{r=yo(e,N=>N[La]===ke.NA)});let u=!1,o;a("Transform Patterns",()=>{u=!1,o=ft(r,N=>{const P=N[La];if(bi(P)){const B=P.source;return B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!P.ignoreCase?B:B.length===2&&B[0]==="\\"&&!Be(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],B[1])?B[1]:n.useSticky?dy(P):hy(P)}else{if(Ai(P))return u=!0,{exec:P};if(typeof P=="object")return u=!0,P;if(typeof P=="string"){if(P.length===1)return P;{const B=P.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),Z=new RegExp(B);return n.useSticky?dy(Z):hy(Z)}}else throw Error("non exhaustive match")}})});let h,p,d,_,v;a("misc mapping",()=>{h=ft(r,N=>N.tokenTypeIdx),p=ft(r,N=>{const P=N.GROUP;if(P!==ke.SKIPPED){if(Ye(P))return P;if(Ti(P))return!1;throw Error("non exhaustive match")}}),d=ft(r,N=>{const P=N.LONGER_ALT;if(P)return zt(P)?ft(P,Z=>ry(r,Z)):[ry(r,P)]}),_=ft(r,N=>N.PUSH_MODE),v=ft(r,N=>yt(N,"POP_MODE"))});let y;a("Line Terminator Handling",()=>{const N=lv(n.lineTerminatorCharacters);y=ft(r,P=>!1),n.positionTracking!=="onlyOffset"&&(y=ft(r,P=>yt(P,"LINE_BREAKS")?!!P.LINE_BREAKS:rv(P,N)===!1&&sd(N,P.PATTERN)))});let O,z,G,V;a("Misc Mapping #2",()=>{O=ft(r,sv),z=ft(o,$w),G=on(r,(N,P)=>{const B=P.GROUP;return Ye(B)&&B!==ke.SKIPPED&&(N[B]=[]),N},{}),V=ft(o,(N,P)=>({pattern:o[P],longerAlt:d[P],canLineTerminator:y[P],isCustom:O[P],short:z[P],group:p[P],push:_[P],pop:v[P],tokenTypeIdx:h[P],tokenType:r[P]}))});let A=!0,b=[];return n.safeMode||a("First Char Optimization",()=>{b=on(r,(N,P,B)=>{if(typeof P.PATTERN=="string"){const Z=P.PATTERN.charCodeAt(0),U=na(Z);Wf(N,U,V[B])}else if(zt(P.START_CHARS_HINT)){let Z;vt(P.START_CHARS_HINT,U=>{const w=typeof U=="string"?U.charCodeAt(0):U,E=na(w);Z!==E&&(Z=E,Wf(N,E,V[B]))})}else if(bi(P.PATTERN))if(P.PATTERN.unicode)A=!1,n.ensureOptimizations&&Ah(`${Xu} Unable to analyze < ${P.PATTERN.toString()} > pattern.
38
38
  The regexp unicode flag is not currently supported by the regexp-to-ast library.
39
39
  This will disable the lexer's first char optimizations.
40
- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const Z=mw(P.PATTERN,n.ensureOptimizations);Qt(Z)&&(A=!1),vt(Z,I=>{Wf(N,I,V[B])})}else n.ensureOptimizations&&Ah(`${Xu} TokenType: <${P.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
40
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const Z=mw(P.PATTERN,n.ensureOptimizations);Qt(Z)&&(A=!1),vt(Z,U=>{Wf(N,U,V[B])})}else n.ensureOptimizations&&Ah(`${Xu} TokenType: <${P.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
41
41
  This will disable the lexer's first char optimizations.
42
42
  For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),A=!1;return N},[])}),{emptyGroups:G,patternIdxToConfig:V,charCodeToPatternIdxToConfig:b,hasCustom:u,canBeOptimized:A}}function Ew(e,n){let a=[];const r=Tw(e);a=a.concat(r.errors);const u=Sw(r.valid),o=u.valid;return a=a.concat(u.errors),a=a.concat(bw(o)),a=a.concat(Lw(o)),a=a.concat(Mw(o,n)),a=a.concat(kw(o)),a}function bw(e){let n=[];const a=wn(e,r=>bi(r[La]));return n=n.concat(Ow(a)),n=n.concat(Rw(a)),n=n.concat(ww(a)),n=n.concat(Cw(a)),n=n.concat(xw(a)),n}function Tw(e){const n=wn(e,u=>!yt(u,La)),a=ft(n,u=>({message:"Token Type: ->"+u.name+"<- missing static 'PATTERN' property",type:re.MISSING_PATTERN,tokenTypes:[u]})),r=go(e,n);return{errors:a,valid:r}}function Sw(e){const n=wn(e,u=>{const o=u[La];return!bi(o)&&!Ai(o)&&!yt(o,"exec")&&!Ye(o)}),a=ft(n,u=>({message:"Token Type: ->"+u.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:re.INVALID_PATTERN,tokenTypes:[u]})),r=go(e,n);return{errors:a,valid:r}}const Aw=/[^\\][$]/;function Ow(e){class n extends ad{constructor(){super(...arguments),this.found=!1}visitEndAnchor(o){this.found=!0}}const a=wn(e,u=>{const o=u.PATTERN;try{const h=Eo(o),p=new n;return p.visit(h),p.found}catch{return Aw.test(o.source)}});return ft(a,u=>({message:`Unexpected RegExp Anchor Error:
43
43
  Token Type: ->`+u.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
44
44
  See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:re.EOI_ANCHOR_FOUND,tokenTypes:[u]}))}function xw(e){const n=wn(e,r=>r.PATTERN.test(""));return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' must not match an empty string",type:re.EMPTY_MATCH_PATTERN,tokenTypes:[r]}))}const Nw=/[^\\[][\^]|^\^/;function Rw(e){class n extends ad{constructor(){super(...arguments),this.found=!1}visitStartAnchor(o){this.found=!0}}const a=wn(e,u=>{const o=u.PATTERN;try{const h=Eo(o),p=new n;return p.visit(h),p.found}catch{return Nw.test(o.source)}});return ft(a,u=>({message:`Unexpected RegExp Anchor Error:
45
45
  Token Type: ->`+u.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
46
- See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:re.SOI_ANCHOR_FOUND,tokenTypes:[u]}))}function ww(e){const n=wn(e,r=>{const u=r[La];return u instanceof RegExp&&(u.multiline||u.global)});return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:re.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[r]}))}function Cw(e){const n=[];let a=ft(e,o=>on(e,(h,p)=>(o.PATTERN.source===p.PATTERN.source&&!Be(n,p)&&p.PATTERN!==ke.NA&&(n.push(p),h.push(p)),h),[]));a=Wr(a);const r=wn(a,o=>o.length>1);return ft(r,o=>{const h=ft(o,d=>d.name);return{message:`The same RegExp pattern ->${jn(o).PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:re.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}})}function Lw(e){const n=wn(e,r=>{if(!yt(r,"GROUP"))return!1;const u=r.GROUP;return u!==ke.SKIPPED&&u!==ke.NA&&!Ye(u)});return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:re.INVALID_GROUP_TYPE_FOUND,tokenTypes:[r]}))}function Mw(e,n){const a=wn(e,u=>u.PUSH_MODE!==void 0&&!Be(n,u.PUSH_MODE));return ft(a,u=>({message:`Token Type: ->${u.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${u.PUSH_MODE}<-which does not exist`,type:re.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[u]}))}function kw(e){const n=[],a=on(e,(r,u,o)=>{const h=u.PATTERN;return h===ke.NA||(Ye(h)?r.push({str:h,idx:o,tokenType:u}):bi(h)&&Iw(h)&&r.push({str:h.source,idx:o,tokenType:u})),r},[]);return vt(e,(r,u)=>{vt(a,({str:o,idx:h,tokenType:p})=>{if(u<h&&Uw(o,r.PATTERN)){const d=`Token: ->${p.name}<- can never be matched.
46
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:re.SOI_ANCHOR_FOUND,tokenTypes:[u]}))}function ww(e){const n=wn(e,r=>{const u=r[La];return u instanceof RegExp&&(u.multiline||u.global)});return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:re.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[r]}))}function Cw(e){const n=[];let a=ft(e,o=>on(e,(h,p)=>(o.PATTERN.source===p.PATTERN.source&&!Be(n,p)&&p.PATTERN!==ke.NA&&(n.push(p),h.push(p)),h),[]));a=Wr(a);const r=wn(a,o=>o.length>1);return ft(r,o=>{const h=ft(o,d=>d.name);return{message:`The same RegExp pattern ->${jn(o).PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:re.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}})}function Lw(e){const n=wn(e,r=>{if(!yt(r,"GROUP"))return!1;const u=r.GROUP;return u!==ke.SKIPPED&&u!==ke.NA&&!Ye(u)});return ft(n,r=>({message:"Token Type: ->"+r.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:re.INVALID_GROUP_TYPE_FOUND,tokenTypes:[r]}))}function Mw(e,n){const a=wn(e,u=>u.PUSH_MODE!==void 0&&!Be(n,u.PUSH_MODE));return ft(a,u=>({message:`Token Type: ->${u.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${u.PUSH_MODE}<-which does not exist`,type:re.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[u]}))}function kw(e){const n=[],a=on(e,(r,u,o)=>{const h=u.PATTERN;return h===ke.NA||(Ye(h)?r.push({str:h,idx:o,tokenType:u}):bi(h)&&Uw(h)&&r.push({str:h.source,idx:o,tokenType:u})),r},[]);return vt(e,(r,u)=>{vt(a,({str:o,idx:h,tokenType:p})=>{if(u<h&&Iw(o,r.PATTERN)){const d=`Token: ->${p.name}<- can never be matched.
47
47
  Because it appears AFTER the Token Type ->${r.name}<-in the lexer's definition.
48
- See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;n.push({message:d,type:re.UNREACHABLE_PATTERN,tokenTypes:[r,p]})}})}),n}function Uw(e,n){if(bi(n)){if(zw(n))return!1;const a=n.exec(e);return a!==null&&a.index===0}else{if(Ai(n))return n(e,0,[],{});if(yt(n,"exec"))return n.exec(e,0,[],{});if(typeof n=="string")return n===e;throw Error("non exhaustive match")}}function Iw(e){return Cs([".","\\","[","]","|","^","$","(",")","?","*","+","{"],a=>e.source.indexOf(a)!==-1)===void 0}function zw(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}function hy(e){const n=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,n)}function dy(e){const n=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,n)}function Bw(e,n,a){const r=[];return yt(e,Br)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+Br+`> property in its definition
48
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;n.push({message:d,type:re.UNREACHABLE_PATTERN,tokenTypes:[r,p]})}})}),n}function Iw(e,n){if(bi(n)){if(zw(n))return!1;const a=n.exec(e);return a!==null&&a.index===0}else{if(Ai(n))return n(e,0,[],{});if(yt(n,"exec"))return n.exec(e,0,[],{});if(typeof n=="string")return n===e;throw Error("non exhaustive match")}}function Uw(e){return Cs([".","\\","[","]","|","^","$","(",")","?","*","+","{"],a=>e.source.indexOf(a)!==-1)===void 0}function zw(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}function hy(e){const n=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,n)}function dy(e){const n=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,n)}function Bw(e,n,a){const r=[];return yt(e,Br)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+Br+`> property in its definition
49
49
  `,type:re.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),yt(e,Ou)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ou+`> property in its definition
50
50
  `,type:re.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),yt(e,Ou)&&yt(e,Br)&&!yt(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${Br}: <${e.defaultMode}>which does not exist
51
51
  `,type:re.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),yt(e,Ou)&&vt(e.modes,(u,o)=>{vt(u,(h,p)=>{if(Ti(h))r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${p}>
52
52
  `,type:re.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(yt(h,"LONGER_ALT")){const d=zt(h.LONGER_ALT)?h.LONGER_ALT:[h.LONGER_ALT];vt(d,_=>{!Ti(_)&&!Be(u,_)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${_.name}> on token <${h.name}> outside of mode <${o}>
53
- `,type:re.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function jw(e,n,a){const r=[];let u=!1;const o=Wr(In(ye(e.modes))),h=yo(o,d=>d[La]===ke.NA),p=lv(a);return n&&vt(h,d=>{const _=rv(d,p);if(_!==!1){const y={message:qw(d,_),type:_.issue,tokenType:d};r.push(y)}else yt(d,"LINE_BREAKS")?d.LINE_BREAKS===!0&&(u=!0):sd(p,d.PATTERN)&&(u=!0)}),n&&!u&&r.push({message:`Warning: No LINE_BREAKS Found.
53
+ `,type:re.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function jw(e,n,a){const r=[];let u=!1;const o=Wr(Un(ye(e.modes))),h=yo(o,d=>d[La]===ke.NA),p=lv(a);return n&&vt(h,d=>{const _=rv(d,p);if(_!==!1){const y={message:qw(d,_),type:_.issue,tokenType:d};r.push(y)}else yt(d,"LINE_BREAKS")?d.LINE_BREAKS===!0&&(u=!0):sd(p,d.PATTERN)&&(u=!0)}),n&&!u&&r.push({message:`Warning: No LINE_BREAKS Found.
54
54
  This Lexer has been defined to track line and column information,
55
55
  But none of the Token Types can be identified as matching a line terminator.
56
56
  See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
@@ -59,7 +59,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;n.
59
59
  Root cause: ${n.errMsg}.
60
60
  For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(n.issue===re.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
61
61
  The problem is in the <${e.name}> Token Type
62
- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function lv(e){return ft(e,a=>Ye(a)?a.charCodeAt(0):a)}function Wf(e,n,a){e[n]===void 0?e[n]=[a]:e[n].push(a)}const jr=256;let Bu=[];function na(e){return e<jr?e:Bu[e]}function Gw(){if(Qt(Bu)){Bu=new Array(65536);for(let e=0;e<65536;e++)Bu[e]=e>255?255+~~(e/255):e}}function tl(e,n){const a=e.tokenTypeIdx;return a===n.tokenTypeIdx?!0:n.isParent===!0&&n.categoryMatchesMap[a]===!0}function Qu(e,n){return e.tokenTypeIdx===n.tokenTypeIdx}let py=1;const uv={};function el(e){const n=Hw(e);Fw(n),Vw(n),Kw(n),vt(n,a=>{a.isParent=a.categoryMatches.length>0})}function Hw(e){let n=Ce(e),a=e,r=!0;for(;r;){a=Wr(In(ft(a,o=>o.CATEGORIES)));const u=go(a,n);n=n.concat(u),Qt(u)?r=!1:a=u}return n}function Fw(e){vt(e,n=>{cv(n)||(uv[py]=n,n.tokenTypeIdx=py++),_y(n)&&!zt(n.CATEGORIES)&&(n.CATEGORIES=[n.CATEGORIES]),_y(n)||(n.CATEGORIES=[]),Yw(n)||(n.categoryMatches=[]),Xw(n)||(n.categoryMatchesMap={})})}function Kw(e){vt(e,n=>{n.categoryMatches=[],vt(n.categoryMatchesMap,(a,r)=>{n.categoryMatches.push(uv[r].tokenTypeIdx)})})}function Vw(e){vt(e,n=>{ov([],n)})}function ov(e,n){vt(e,a=>{n.categoryMatchesMap[a.tokenTypeIdx]=!0}),vt(n.CATEGORIES,a=>{const r=e.concat(n);Be(r,a)||ov(r,a)})}function cv(e){return yt(e,"tokenTypeIdx")}function _y(e){return yt(e,"CATEGORIES")}function Yw(e){return yt(e,"categoryMatches")}function Xw(e){return yt(e,"categoryMatchesMap")}function Qw(e){return yt(e,"tokenTypeIdx")}const Zw={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,n,a,r,u,o){return`unexpected character: ->${e.charAt(n)}<- at offset: ${n}, skipped ${a} characters.`}};var re;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(re||(re={}));const Dr={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
62
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function lv(e){return ft(e,a=>Ye(a)?a.charCodeAt(0):a)}function Wf(e,n,a){e[n]===void 0?e[n]=[a]:e[n].push(a)}const jr=256;let Bu=[];function na(e){return e<jr?e:Bu[e]}function Gw(){if(Qt(Bu)){Bu=new Array(65536);for(let e=0;e<65536;e++)Bu[e]=e>255?255+~~(e/255):e}}function tl(e,n){const a=e.tokenTypeIdx;return a===n.tokenTypeIdx?!0:n.isParent===!0&&n.categoryMatchesMap[a]===!0}function Qu(e,n){return e.tokenTypeIdx===n.tokenTypeIdx}let py=1;const uv={};function el(e){const n=Hw(e);Fw(n),Vw(n),Kw(n),vt(n,a=>{a.isParent=a.categoryMatches.length>0})}function Hw(e){let n=Ce(e),a=e,r=!0;for(;r;){a=Wr(Un(ft(a,o=>o.CATEGORIES)));const u=go(a,n);n=n.concat(u),Qt(u)?r=!1:a=u}return n}function Fw(e){vt(e,n=>{cv(n)||(uv[py]=n,n.tokenTypeIdx=py++),_y(n)&&!zt(n.CATEGORIES)&&(n.CATEGORIES=[n.CATEGORIES]),_y(n)||(n.CATEGORIES=[]),Yw(n)||(n.categoryMatches=[]),Xw(n)||(n.categoryMatchesMap={})})}function Kw(e){vt(e,n=>{n.categoryMatches=[],vt(n.categoryMatchesMap,(a,r)=>{n.categoryMatches.push(uv[r].tokenTypeIdx)})})}function Vw(e){vt(e,n=>{ov([],n)})}function ov(e,n){vt(e,a=>{n.categoryMatchesMap[a.tokenTypeIdx]=!0}),vt(n.CATEGORIES,a=>{const r=e.concat(n);Be(r,a)||ov(r,a)})}function cv(e){return yt(e,"tokenTypeIdx")}function _y(e){return yt(e,"CATEGORIES")}function Yw(e){return yt(e,"categoryMatches")}function Xw(e){return yt(e,"categoryMatchesMap")}function Qw(e){return yt(e,"tokenTypeIdx")}const Zw={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,n,a,r,u,o){return`unexpected character: ->${e.charAt(n)}<- at offset: ${n}, skipped ${a} characters.`}};var re;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(re||(re={}));const Dr={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
63
63
  `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Zw,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Dr);class ke{constructor(n,a=Dr){if(this.lexerDefinition=n,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(u,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const h=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${h}--> <${u}>`);const{time:p,value:d}=tv(o),_=p>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&_(`${h}<-- <${u}> time: ${p}ms`),this.traceInitIndent--,d}else return o()},typeof a=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
64
64
  a boolean 2nd argument is no longer supported`);this.config=un({},Dr,a);const r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let u,o=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Dr.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Pw;else if(this.config.lineTerminatorCharacters===Dr.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
65
65
  For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(a.safeMode&&a.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),zt(n)?u={modes:{defaultMode:Ce(n)},defaultMode:Br}:(o=!1,u=Ce(n))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Bw(u,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(jw(u,this.trackStartLines,this.config.lineTerminatorCharacters))})),u.modes=u.modes?u.modes:{},vt(u.modes,(p,d)=>{u.modes[d]=yo(p,_=>Ti(_))});const h=Rn(u.modes);if(vt(u.modes,(p,d)=>{this.TRACE_INIT(`Mode: <${d}> processing`,()=>{if(this.modes.push(d),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Ew(p,h))}),Qt(this.lexerDefinitionErrors)){el(p);let _;this.TRACE_INIT("analyzeTokenTypes",()=>{_=vw(p,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:a.positionTracking,ensureOptimizations:a.ensureOptimizations,safeMode:a.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[d]=_.patternIdxToConfig,this.charCodeToPatternIdxToConfig[d]=_.charCodeToPatternIdxToConfig,this.emptyGroups=un({},this.emptyGroups,_.emptyGroups),this.hasCustom=_.hasCustom||this.hasCustom,this.canModeBeOptimized[d]=_.canBeOptimized}})}),this.defaultMode=u.defaultMode,!Qt(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const d=ft(this.lexerDefinitionErrors,_=>_.message).join(`-----------------------
@@ -68,7 +68,7 @@ a boolean 2nd argument is no longer supported`);this.config=un({},Dr,a);const r=
68
68
  Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
69
69
  Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{_w()}),this.TRACE_INIT("toFastProperties",()=>{ev(this)})})}tokenize(n,a=this.defaultMode){if(!Qt(this.lexerDefinitionErrors)){const u=ft(this.lexerDefinitionErrors,o=>o.message).join(`-----------------------
70
70
  `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
71
- `+u)}return this.tokenizeInternal(n,a)}tokenizeInternal(n,a){let r,u,o,h,p,d,_,v,y,O,z,G,V,A,b;const N=n,P=N.length;let B=0,Z=0;const I=this.hasCustom?0:Math.floor(n.length/10),w=new Array(I),E=[];let S=this.trackStartLines?1:void 0,g=this.trackStartLines?1:void 0;const L=Dw(this.emptyGroups),M=this.trackStartLines,W=this.config.lineTerminatorsPattern;let at=0,it=[],k=[];const K=[],nt=[];Object.freeze(nt);let tt;function _t(){return it}function x(st){const ht=na(st),ct=k[ht];return ct===void 0?nt:ct}const D=st=>{if(K.length===1&&st.tokenType.PUSH_MODE===void 0){const ht=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(st);E.push({offset:st.startOffset,line:st.startLine,column:st.startColumn,length:st.image.length,message:ht})}else{K.pop();const ht=Ca(K);it=this.patternIdxToConfig[ht],k=this.charCodeToPatternIdxToConfig[ht],at=it.length;const ct=this.canModeBeOptimized[ht]&&this.config.safeMode===!1;k&&ct?tt=x:tt=_t}};function F(st){K.push(st),k=this.charCodeToPatternIdxToConfig[st],it=this.patternIdxToConfig[st],at=it.length,at=it.length;const ht=this.canModeBeOptimized[st]&&this.config.safeMode===!1;k&&ht?tt=x:tt=_t}F.call(this,a);let J;const lt=this.config.recoveryEnabled;for(;B<P;){d=null;const st=N.charCodeAt(B),ht=tt(st),ct=ht.length;for(r=0;r<ct;r++){J=ht[r];const rt=J.pattern;_=null;const xt=J.short;if(xt!==!1?st===xt&&(d=rt):J.isCustom===!0?(b=rt.exec(N,B,w,L),b!==null?(d=b[0],b.payload!==void 0&&(_=b.payload)):d=null):(this.updateLastIndex(rt,B),d=this.match(rt,n,B)),d!==null){if(p=J.longerAlt,p!==void 0){const mt=p.length;for(o=0;o<mt;o++){const Nt=it[p[o]],Pt=Nt.pattern;if(v=null,Nt.isCustom===!0?(b=Pt.exec(N,B,w,L),b!==null?(h=b[0],b.payload!==void 0&&(v=b.payload)):h=null):(this.updateLastIndex(Pt,B),h=this.match(Pt,n,B)),h&&h.length>d.length){d=h,_=v,J=Nt;break}}}break}}if(d!==null){if(y=d.length,O=J.group,O!==void 0&&(z=J.tokenTypeIdx,G=this.createTokenInstance(d,B,z,J.tokenType,S,g,y),this.handlePayload(G,_),O===!1?Z=this.addToken(w,Z,G):L[O].push(G)),n=this.chopInput(n,y),B=B+y,g=this.computeNewColumn(g,y),M===!0&&J.canLineTerminator===!0){let rt=0,xt,mt;W.lastIndex=0;do xt=W.test(d),xt===!0&&(mt=W.lastIndex-1,rt++);while(xt===!0);rt!==0&&(S=S+rt,g=y-mt,this.updateTokenEndLineColumnLocation(G,O,mt,rt,S,g,y))}this.handleModes(J,D,F,G)}else{const rt=B,xt=S,mt=g;let Nt=lt===!1;for(;Nt===!1&&B<P;)for(n=this.chopInput(n,1),B++,u=0;u<at;u++){const Pt=it[u],Ct=Pt.pattern,kt=Pt.short;if(kt!==!1?N.charCodeAt(B)===kt&&(Nt=!0):Pt.isCustom===!0?Nt=Ct.exec(N,B,w,L)!==null:(this.updateLastIndex(Ct,B),Nt=Ct.exec(n)!==null),Nt===!0)break}if(V=B-rt,g=this.computeNewColumn(g,V),A=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(N,rt,V,xt,mt,Ca(K)),E.push({offset:rt,line:xt,column:mt,length:V,message:A}),lt===!1)break}}return this.hasCustom||(w.length=Z),{tokens:w,groups:L,errors:E}}handleModes(n,a,r,u){if(n.pop===!0){const o=n.push;a(u),o!==void 0&&r.call(this,o)}else n.push!==void 0&&r.call(this,n.push)}chopInput(n,a){return n.substring(a)}updateLastIndex(n,a){n.lastIndex=a}updateTokenEndLineColumnLocation(n,a,r,u,o,h,p){let d,_;a!==void 0&&(d=r===p-1,_=d?-1:0,u===1&&d===!0||(n.endLine=o+_,n.endColumn=h-1+-_))}computeNewColumn(n,a){return n+a}createOffsetOnlyToken(n,a,r,u){return{image:n,startOffset:a,tokenTypeIdx:r,tokenType:u}}createStartOnlyToken(n,a,r,u,o,h){return{image:n,startOffset:a,startLine:o,startColumn:h,tokenTypeIdx:r,tokenType:u}}createFullToken(n,a,r,u,o,h,p){return{image:n,startOffset:a,endOffset:a+p-1,startLine:o,endLine:o,startColumn:h,endColumn:h+p-1,tokenTypeIdx:r,tokenType:u}}addTokenUsingPush(n,a,r){return n.push(r),a}addTokenUsingMemberAccess(n,a,r){return n[a]=r,a++,a}handlePayloadNoCustom(n,a){}handlePayloadWithCustom(n,a){a!==null&&(n.payload=a)}matchWithTest(n,a,r){return n.test(a)===!0?a.substring(r,n.lastIndex):null}matchWithExec(n,a){const r=n.exec(a);return r!==null?r[0]:null}}ke.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";ke.NA=/NOT_APPLICABLE/;function qr(e){return fv(e)?e.LABEL:e.name}function fv(e){return Ye(e.LABEL)&&e.LABEL!==""}const Ww="parent",my="categories",gy="label",yy="group",vy="push_mode",Ey="pop_mode",by="longer_alt",Ty="line_breaks",Sy="start_chars_hint";function bt(e){return Jw(e)}function Jw(e){const n=e.pattern,a={};if(a.name=e.name,Ti(n)||(a.PATTERN=n),yt(e,Ww))throw`The parent property is no longer supported.
71
+ `+u)}return this.tokenizeInternal(n,a)}tokenizeInternal(n,a){let r,u,o,h,p,d,_,v,y,O,z,G,V,A,b;const N=n,P=N.length;let B=0,Z=0;const U=this.hasCustom?0:Math.floor(n.length/10),w=new Array(U),E=[];let S=this.trackStartLines?1:void 0,g=this.trackStartLines?1:void 0;const L=Dw(this.emptyGroups),M=this.trackStartLines,W=this.config.lineTerminatorsPattern;let at=0,it=[],k=[];const K=[],nt=[];Object.freeze(nt);let tt;function _t(){return it}function x(st){const ht=na(st),ct=k[ht];return ct===void 0?nt:ct}const D=st=>{if(K.length===1&&st.tokenType.PUSH_MODE===void 0){const ht=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(st);E.push({offset:st.startOffset,line:st.startLine,column:st.startColumn,length:st.image.length,message:ht})}else{K.pop();const ht=Ca(K);it=this.patternIdxToConfig[ht],k=this.charCodeToPatternIdxToConfig[ht],at=it.length;const ct=this.canModeBeOptimized[ht]&&this.config.safeMode===!1;k&&ct?tt=x:tt=_t}};function F(st){K.push(st),k=this.charCodeToPatternIdxToConfig[st],it=this.patternIdxToConfig[st],at=it.length,at=it.length;const ht=this.canModeBeOptimized[st]&&this.config.safeMode===!1;k&&ht?tt=x:tt=_t}F.call(this,a);let J;const lt=this.config.recoveryEnabled;for(;B<P;){d=null;const st=N.charCodeAt(B),ht=tt(st),ct=ht.length;for(r=0;r<ct;r++){J=ht[r];const rt=J.pattern;_=null;const xt=J.short;if(xt!==!1?st===xt&&(d=rt):J.isCustom===!0?(b=rt.exec(N,B,w,L),b!==null?(d=b[0],b.payload!==void 0&&(_=b.payload)):d=null):(this.updateLastIndex(rt,B),d=this.match(rt,n,B)),d!==null){if(p=J.longerAlt,p!==void 0){const mt=p.length;for(o=0;o<mt;o++){const Nt=it[p[o]],Pt=Nt.pattern;if(v=null,Nt.isCustom===!0?(b=Pt.exec(N,B,w,L),b!==null?(h=b[0],b.payload!==void 0&&(v=b.payload)):h=null):(this.updateLastIndex(Pt,B),h=this.match(Pt,n,B)),h&&h.length>d.length){d=h,_=v,J=Nt;break}}}break}}if(d!==null){if(y=d.length,O=J.group,O!==void 0&&(z=J.tokenTypeIdx,G=this.createTokenInstance(d,B,z,J.tokenType,S,g,y),this.handlePayload(G,_),O===!1?Z=this.addToken(w,Z,G):L[O].push(G)),n=this.chopInput(n,y),B=B+y,g=this.computeNewColumn(g,y),M===!0&&J.canLineTerminator===!0){let rt=0,xt,mt;W.lastIndex=0;do xt=W.test(d),xt===!0&&(mt=W.lastIndex-1,rt++);while(xt===!0);rt!==0&&(S=S+rt,g=y-mt,this.updateTokenEndLineColumnLocation(G,O,mt,rt,S,g,y))}this.handleModes(J,D,F,G)}else{const rt=B,xt=S,mt=g;let Nt=lt===!1;for(;Nt===!1&&B<P;)for(n=this.chopInput(n,1),B++,u=0;u<at;u++){const Pt=it[u],Ct=Pt.pattern,kt=Pt.short;if(kt!==!1?N.charCodeAt(B)===kt&&(Nt=!0):Pt.isCustom===!0?Nt=Ct.exec(N,B,w,L)!==null:(this.updateLastIndex(Ct,B),Nt=Ct.exec(n)!==null),Nt===!0)break}if(V=B-rt,g=this.computeNewColumn(g,V),A=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(N,rt,V,xt,mt,Ca(K)),E.push({offset:rt,line:xt,column:mt,length:V,message:A}),lt===!1)break}}return this.hasCustom||(w.length=Z),{tokens:w,groups:L,errors:E}}handleModes(n,a,r,u){if(n.pop===!0){const o=n.push;a(u),o!==void 0&&r.call(this,o)}else n.push!==void 0&&r.call(this,n.push)}chopInput(n,a){return n.substring(a)}updateLastIndex(n,a){n.lastIndex=a}updateTokenEndLineColumnLocation(n,a,r,u,o,h,p){let d,_;a!==void 0&&(d=r===p-1,_=d?-1:0,u===1&&d===!0||(n.endLine=o+_,n.endColumn=h-1+-_))}computeNewColumn(n,a){return n+a}createOffsetOnlyToken(n,a,r,u){return{image:n,startOffset:a,tokenTypeIdx:r,tokenType:u}}createStartOnlyToken(n,a,r,u,o,h){return{image:n,startOffset:a,startLine:o,startColumn:h,tokenTypeIdx:r,tokenType:u}}createFullToken(n,a,r,u,o,h,p){return{image:n,startOffset:a,endOffset:a+p-1,startLine:o,endLine:o,startColumn:h,endColumn:h+p-1,tokenTypeIdx:r,tokenType:u}}addTokenUsingPush(n,a,r){return n.push(r),a}addTokenUsingMemberAccess(n,a,r){return n[a]=r,a++,a}handlePayloadNoCustom(n,a){}handlePayloadWithCustom(n,a){a!==null&&(n.payload=a)}matchWithTest(n,a,r){return n.test(a)===!0?a.substring(r,n.lastIndex):null}matchWithExec(n,a){const r=n.exec(a);return r!==null?r[0]:null}}ke.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";ke.NA=/NOT_APPLICABLE/;function qr(e){return fv(e)?e.LABEL:e.name}function fv(e){return Ye(e.LABEL)&&e.LABEL!==""}const Ww="parent",my="categories",gy="label",yy="group",vy="push_mode",Ey="pop_mode",by="longer_alt",Ty="line_breaks",Sy="start_chars_hint";function bt(e){return Jw(e)}function Jw(e){const n=e.pattern,a={};if(a.name=e.name,Ti(n)||(a.PATTERN=n),yt(e,Ww))throw`The parent property is no longer supported.
72
72
  See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return yt(e,my)&&(a.CATEGORIES=e[my]),el([a]),yt(e,gy)&&(a.LABEL=e[gy]),yt(e,yy)&&(a.GROUP=e[yy]),yt(e,Ey)&&(a.POP_MODE=e[Ey]),yt(e,vy)&&(a.PUSH_MODE=e[vy]),yt(e,by)&&(a.LONGER_ALT=e[by]),yt(e,Ty)&&(a.LINE_BREAKS=e[Ty]),yt(e,Sy)&&(a.START_CHARS_HINT=e[Sy]),a}const Ma=bt({name:"EOF",pattern:ke.NA});el([Ma]);function rd(e,n,a,r,u,o,h,p){return{image:n,startOffset:a,endOffset:r,startLine:u,endLine:o,startColumn:h,endColumn:p,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function tC(e,n){return tl(e,n)}const hv={buildMismatchTokenMessage({expected:e,actual:n,previous:a,ruleName:r}){return`Expecting ${fv(e)?`--> ${qr(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${n.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:n}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:n,previous:a,customUserDescription:r,ruleName:u}){const o="Expecting: ",p=`
73
73
  but found: '`+jn(n).image+"'";if(r)return o+r+p;{const d=on(e,(O,z)=>O.concat(z),[]),_=ft(d,O=>`[${ft(O,z=>qr(z)).join(", ")}]`),y=`one of these possible Token sequences:
74
74
  ${ft(_,(O,z)=>` ${z+1}. ${O}`).join(`
@@ -99,7 +99,7 @@ rule: <${n}> can be invoked from itself (directly or indirectly)
99
99
  without consuming any Tokens. The grammar path that causes this is:
100
100
  ${r}
101
101
  To fix this refactor your grammar to remove the left recursion.
102
- see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let n;return e.topLevelRule instanceof Ls?n=e.topLevelRule.name:n=e.topLevelRule,`Duplicate definition, rule: ->${n}<- is already defined in the grammar: ->${e.grammarName}<-`}};function nC(e,n){const a=new iC(e,n);return a.resolveRefs(),a.errors}class iC extends Ms{constructor(n,a){super(),this.nameToTopRule=n,this.errMsgProvider=a,this.errors=[]}resolveRefs(){vt(ye(this.nameToTopRule),n=>{this.currTopLevel=n,n.accept(this)})}visitNonTerminal(n){const a=this.nameToTopRule[n.nonTerminalName];if(a)n.referencedRule=a;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:ze.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}}}class aC extends vo{constructor(n,a){super(),this.topProd=n,this.path=a,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Ce(this.path.ruleStack).reverse(),this.occurrenceStack=Ce(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(n,a=[]){this.found||super.walk(n,a)}walkProdRef(n,a,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){const u=a.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,u)}}updateExpectedNext(){Qt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class sC extends aC{constructor(n,a){super(n,a),this.path=a,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(n,a,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){const u=a.concat(r),o=new Xe({definition:u});this.possibleTokTypes=Jr(o),this.found=!0}}}class bo extends vo{constructor(n,a){super(),this.topRule=n,this.occurrence=a,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class rC extends bo{walkMany(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkMany(n,a,r)}}class Ay extends bo{walkManySep(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkManySep(n,a,r)}}class lC extends bo{walkAtLeastOne(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOne(n,a,r)}}class Oy extends bo{walkAtLeastOneSep(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOneSep(n,a,r)}}function Nh(e,n,a=[]){a=Ce(a);let r=[],u=0;function o(p){return p.concat(we(e,u+1))}function h(p){const d=Nh(o(p),n,a);return r.concat(d)}for(;a.length<n&&u<e.length;){const p=e[u];if(p instanceof Xe)return h(p.definition);if(p instanceof cn)return h(p.definition);if(p instanceof Ve)r=h(p.definition);else if(p instanceof ti){const d=p.definition.concat([new ve({definition:p.definition})]);return h(d)}else if(p instanceof ei){const d=[new Xe({definition:p.definition}),new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})];return h(d)}else if(p instanceof $n){const d=p.definition.concat([new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})]);r=h(d)}else if(p instanceof ve){const d=p.definition.concat([new ve({definition:p.definition})]);r=h(d)}else{if(p instanceof Pn)return vt(p.definition,d=>{Qt(d.definition)===!1&&(r=h(d.definition))}),r;if(p instanceof ne)a.push(p.terminalType);else throw Error("non exhaustive match")}u++}return r.push({partialPath:a,suffixDef:we(e,u)}),r}function dv(e,n,a,r){const u="EXIT_NONE_TERMINAL",o=[u],h="EXIT_ALTERNATIVE";let p=!1;const d=n.length,_=d-r-1,v=[],y=[];for(y.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Qt(y);){const O=y.pop();if(O===h){p&&Ca(y).idx<=_&&y.pop();continue}const z=O.def,G=O.idx,V=O.ruleStack,A=O.occurrenceStack;if(Qt(z))continue;const b=z[0];if(b===u){const N={idx:G,def:we(z),ruleStack:Vr(V),occurrenceStack:Vr(A)};y.push(N)}else if(b instanceof ne)if(G<d-1){const N=G+1,P=n[N];if(a(P,b.terminalType)){const B={idx:N,def:we(z),ruleStack:V,occurrenceStack:A};y.push(B)}}else if(G===d-1)v.push({nextTokenType:b.terminalType,nextTokenOccurrence:b.idx,ruleStack:V,occurrenceStack:A}),p=!0;else throw Error("non exhaustive match");else if(b instanceof cn){const N=Ce(V);N.push(b.nonTerminalName);const P=Ce(A);P.push(b.idx);const B={idx:G,def:b.definition.concat(o,we(z)),ruleStack:N,occurrenceStack:P};y.push(B)}else if(b instanceof Ve){const N={idx:G,def:we(z),ruleStack:V,occurrenceStack:A};y.push(N),y.push(h);const P={idx:G,def:b.definition.concat(we(z)),ruleStack:V,occurrenceStack:A};y.push(P)}else if(b instanceof ti){const N=new ve({definition:b.definition,idx:b.idx}),P=b.definition.concat([N],we(z)),B={idx:G,def:P,ruleStack:V,occurrenceStack:A};y.push(B)}else if(b instanceof ei){const N=new ne({terminalType:b.separator}),P=new ve({definition:[N].concat(b.definition),idx:b.idx}),B=b.definition.concat([P],we(z)),Z={idx:G,def:B,ruleStack:V,occurrenceStack:A};y.push(Z)}else if(b instanceof $n){const N={idx:G,def:we(z),ruleStack:V,occurrenceStack:A};y.push(N),y.push(h);const P=new ne({terminalType:b.separator}),B=new ve({definition:[P].concat(b.definition),idx:b.idx}),Z=b.definition.concat([B],we(z)),I={idx:G,def:Z,ruleStack:V,occurrenceStack:A};y.push(I)}else if(b instanceof ve){const N={idx:G,def:we(z),ruleStack:V,occurrenceStack:A};y.push(N),y.push(h);const P=new ve({definition:b.definition,idx:b.idx}),B=b.definition.concat([P],we(z)),Z={idx:G,def:B,ruleStack:V,occurrenceStack:A};y.push(Z)}else if(b instanceof Pn)for(let N=b.definition.length-1;N>=0;N--){const P=b.definition[N],B={idx:G,def:P.definition.concat(we(z)),ruleStack:V,occurrenceStack:A};y.push(B),y.push(h)}else if(b instanceof Xe)y.push({idx:G,def:b.definition.concat(we(z)),ruleStack:V,occurrenceStack:A});else if(b instanceof Ls)y.push(uC(b,G,V,A));else throw Error("non exhaustive match")}return v}function uC(e,n,a,r){const u=Ce(a);u.push(e.name);const o=Ce(r);return o.push(1),{idx:n,def:e.definition,ruleStack:u,occurrenceStack:o}}var se;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(se||(se={}));function pv(e){if(e instanceof Ve||e==="Option")return se.OPTION;if(e instanceof ve||e==="Repetition")return se.REPETITION;if(e instanceof ti||e==="RepetitionMandatory")return se.REPETITION_MANDATORY;if(e instanceof ei||e==="RepetitionMandatoryWithSeparator")return se.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof $n||e==="RepetitionWithSeparator")return se.REPETITION_WITH_SEPARATOR;if(e instanceof Pn||e==="Alternation")return se.ALTERNATION;throw Error("non exhaustive match")}function oC(e,n,a,r,u,o){const h=ld(e,n,a),p=gv(h)?Qu:tl;return o(h,r,p,u)}function cC(e,n,a,r,u,o){const h=ud(e,n,u,a),p=gv(h)?Qu:tl;return o(h[0],p,r)}function fC(e,n,a,r){const u=e.length,o=zn(e,h=>zn(h,p=>p.length===1));if(n)return function(h){const p=ft(h,d=>d.GATE);for(let d=0;d<u;d++){const _=e[d],v=_.length,y=p[d];if(!(y!==void 0&&y.call(this)===!1))t:for(let O=0;O<v;O++){const z=_[O],G=z.length;for(let V=0;V<G;V++){const A=this.LA(V+1);if(a(A,z[V])===!1)continue t}return d}}};if(o&&!r){const h=ft(e,d=>In(d)),p=on(h,(d,_,v)=>(vt(_,y=>{yt(d,y.tokenTypeIdx)||(d[y.tokenTypeIdx]=v),vt(y.categoryMatches,O=>{yt(d,O)||(d[O]=v)})}),d),{});return function(){const d=this.LA(1);return p[d.tokenTypeIdx]}}else return function(){for(let h=0;h<u;h++){const p=e[h],d=p.length;t:for(let _=0;_<d;_++){const v=p[_],y=v.length;for(let O=0;O<y;O++){const z=this.LA(O+1);if(a(z,v[O])===!1)continue t}return h}}}}function hC(e,n,a){const r=zn(e,o=>o.length===1),u=e.length;if(r&&!a){const o=In(e);if(o.length===1&&Qt(o[0].categoryMatches)){const p=o[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===p}}else{const h=on(o,(p,d,_)=>(p[d.tokenTypeIdx]=!0,vt(d.categoryMatches,v=>{p[v]=!0}),p),[]);return function(){const p=this.LA(1);return h[p.tokenTypeIdx]===!0}}}else return function(){t:for(let o=0;o<u;o++){const h=e[o],p=h.length;for(let d=0;d<p;d++){const _=this.LA(d+1);if(n(_,h[d])===!1)continue t}return!0}return!1}}class dC extends vo{constructor(n,a,r){super(),this.topProd=n,this.targetOccurrence=a,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(n,a,r,u){return n.idx===this.targetOccurrence&&this.targetProdType===a?(this.restDef=r.concat(u),!0):!1}walkOption(n,a,r){this.checkIsTarget(n,se.OPTION,a,r)||super.walkOption(n,a,r)}walkAtLeastOne(n,a,r){this.checkIsTarget(n,se.REPETITION_MANDATORY,a,r)||super.walkOption(n,a,r)}walkAtLeastOneSep(n,a,r){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR,a,r)||super.walkOption(n,a,r)}walkMany(n,a,r){this.checkIsTarget(n,se.REPETITION,a,r)||super.walkOption(n,a,r)}walkManySep(n,a,r){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR,a,r)||super.walkOption(n,a,r)}}class _v extends Ms{constructor(n,a,r){super(),this.targetOccurrence=n,this.targetProdType=a,this.targetRef=r,this.result=[]}checkIsTarget(n,a){n.idx===this.targetOccurrence&&this.targetProdType===a&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)}visitOption(n){this.checkIsTarget(n,se.OPTION)}visitRepetition(n){this.checkIsTarget(n,se.REPETITION)}visitRepetitionMandatory(n){this.checkIsTarget(n,se.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(n){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(n){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR)}visitAlternation(n){this.checkIsTarget(n,se.ALTERNATION)}}function xy(e){const n=new Array(e);for(let a=0;a<e;a++)n[a]=[];return n}function Jf(e){let n=[""];for(let a=0;a<e.length;a++){const r=e[a],u=[];for(let o=0;o<n.length;o++){const h=n[o];u.push(h+"_"+r.tokenTypeIdx);for(let p=0;p<r.categoryMatches.length;p++){const d="_"+r.categoryMatches[p];u.push(h+d)}}n=u}return n}function pC(e,n,a){for(let r=0;r<e.length;r++){if(r===a)continue;const u=e[r];for(let o=0;o<n.length;o++){const h=n[o];if(u[h]===!0)return!1}}return!0}function mv(e,n){const a=ft(e,h=>Nh([h],1)),r=xy(a.length),u=ft(a,h=>{const p={};return vt(h,d=>{const _=Jf(d.partialPath);vt(_,v=>{p[v]=!0})}),p});let o=a;for(let h=1;h<=n;h++){const p=o;o=xy(p.length);for(let d=0;d<p.length;d++){const _=p[d];for(let v=0;v<_.length;v++){const y=_[v].partialPath,O=_[v].suffixDef,z=Jf(y);if(pC(u,z,d)||Qt(O)||y.length===n){const V=r[d];if(Rh(V,y)===!1){V.push(y);for(let A=0;A<z.length;A++){const b=z[A];u[d][b]=!0}}}else{const V=Nh(O,h+1,y);o[d]=o[d].concat(V),vt(V,A=>{const b=Jf(A.partialPath);vt(b,N=>{u[d][N]=!0})})}}}}return r}function ld(e,n,a,r){const u=new _v(e,se.ALTERNATION,r);return n.accept(u),mv(u.result,a)}function ud(e,n,a,r){const u=new _v(e,a);n.accept(u);const o=u.result,p=new dC(n,e,a).startWalking(),d=new Xe({definition:o}),_=new Xe({definition:p});return mv([d,_],r)}function Rh(e,n){t:for(let a=0;a<e.length;a++){const r=e[a];if(r.length===n.length){for(let u=0;u<r.length;u++){const o=n[u],h=r[u];if((o===h||h.categoryMatchesMap[o.tokenTypeIdx]!==void 0)===!1)continue t}return!0}}return!1}function _C(e,n){return e.length<n.length&&zn(e,(a,r)=>{const u=n[r];return a===u||u.categoryMatchesMap[a.tokenTypeIdx]})}function gv(e){return zn(e,n=>zn(n,a=>zn(a,r=>Qt(r.categoryMatches))))}function mC(e){const n=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return ft(n,a=>Object.assign({type:ze.CUSTOM_LOOKAHEAD_VALIDATION},a))}function gC(e,n,a,r){const u=On(e,d=>yC(d,a)),o=CC(e,n,a),h=On(e,d=>xC(d,a)),p=On(e,d=>bC(d,e,r,a));return u.concat(o,h,p)}function yC(e,n){const a=new EC;e.accept(a);const r=a.allProductions,u=CR(r,vC),o=Dn(u,p=>p.length>1);return ft(ye(o),p=>{const d=jn(p),_=n.buildDuplicateFoundError(e,p),v=Yn(d),y={message:_,type:ze.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:v,occurrence:d.idx},O=yv(d);return O&&(y.parameter=O),y})}function vC(e){return`${Yn(e)}_#_${e.idx}_#_${yv(e)}`}function yv(e){return e instanceof ne?e.terminalType.name:e instanceof cn?e.nonTerminalName:""}class EC extends Ms{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(n){this.allProductions.push(n)}visitOption(n){this.allProductions.push(n)}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}visitAlternation(n){this.allProductions.push(n)}visitTerminal(n){this.allProductions.push(n)}}function bC(e,n,a,r){const u=[];if(on(n,(h,p)=>p.name===e.name?h+1:h,0)>1){const h=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:a});u.push({message:h,type:ze.DUPLICATE_RULE_NAME,ruleName:e.name})}return u}function TC(e,n,a){const r=[];let u;return Be(n,e)||(u=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${a}<-as it is not defined in any of the super grammars `,r.push({message:u,type:ze.INVALID_RULE_OVERRIDE,ruleName:e})),r}function vv(e,n,a,r=[]){const u=[],o=ju(n.definition);if(Qt(o))return[];{const h=e.name;Be(o,e)&&u.push({message:a.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:ze.LEFT_RECURSION,ruleName:h});const d=go(o,r.concat([e])),_=On(d,v=>{const y=Ce(r);return y.push(v),vv(e,v,a,y)});return u.concat(_)}}function ju(e){let n=[];if(Qt(e))return n;const a=jn(e);if(a instanceof cn)n.push(a.referencedRule);else if(a instanceof Xe||a instanceof Ve||a instanceof ti||a instanceof ei||a instanceof $n||a instanceof ve)n=n.concat(ju(a.definition));else if(a instanceof Pn)n=In(ft(a.definition,o=>ju(o.definition)));else if(!(a instanceof ne))throw Error("non exhaustive match");const r=Ku(a),u=e.length>1;if(r&&u){const o=we(e);return n.concat(ju(o))}else return n}class od extends Ms{constructor(){super(...arguments),this.alternations=[]}visitAlternation(n){this.alternations.push(n)}}function SC(e,n){const a=new od;e.accept(a);const r=a.alternations;return On(r,o=>{const h=Vr(o.definition);return On(h,(p,d)=>{const _=dv([p],[],tl,1);return Qt(_)?[{message:n.buildEmptyAlternationError({topLevelRule:e,alternation:o,emptyChoiceIdx:d}),type:ze.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:o.idx,alternative:d+1}]:[]})})}function AC(e,n,a){const r=new od;e.accept(r);let u=r.alternations;return u=yo(u,h=>h.ignoreAmbiguities===!0),On(u,h=>{const p=h.idx,d=h.maxLookahead||n,_=ld(p,e,d,h),v=RC(_,h,e,a),y=wC(_,h,e,a);return v.concat(y)})}class OC extends Ms{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}}function xC(e,n){const a=new od;e.accept(a);const r=a.alternations;return On(r,o=>o.definition.length>255?[{message:n.buildTooManyAlternativesError({topLevelRule:e,alternation:o}),type:ze.TOO_MANY_ALTS,ruleName:e.name,occurrence:o.idx}]:[])}function NC(e,n,a){const r=[];return vt(e,u=>{const o=new OC;u.accept(o);const h=o.allProductions;vt(h,p=>{const d=pv(p),_=p.maxLookahead||n,v=p.idx,O=ud(v,u,d,_)[0];if(Qt(In(O))){const z=a.buildEmptyRepetitionError({topLevelRule:u,repetition:p});r.push({message:z,type:ze.NO_NON_EMPTY_LOOKAHEAD,ruleName:u.name})}})}),r}function RC(e,n,a,r){const u=[],o=on(e,(p,d,_)=>(n.definition[_].ignoreAmbiguities===!0||vt(d,v=>{const y=[_];vt(e,(O,z)=>{_!==z&&Rh(O,v)&&n.definition[z].ignoreAmbiguities!==!0&&y.push(z)}),y.length>1&&!Rh(u,v)&&(u.push(v),p.push({alts:y,path:v}))}),p),[]);return ft(o,p=>{const d=ft(p.alts,v=>v+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:a,alternation:n,ambiguityIndices:d,prefixPath:p.path}),type:ze.AMBIGUOUS_ALTS,ruleName:a.name,occurrence:n.idx,alternatives:p.alts}})}function wC(e,n,a,r){const u=on(e,(h,p,d)=>{const _=ft(p,v=>({idx:d,path:v}));return h.concat(_)},[]);return Wr(On(u,h=>{if(n.definition[h.idx].ignoreAmbiguities===!0)return[];const d=h.idx,_=h.path,v=wn(u,O=>n.definition[O.idx].ignoreAmbiguities!==!0&&O.idx<d&&_C(O.path,_));return ft(v,O=>{const z=[O.idx+1,d+1],G=n.idx===0?"":n.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:a,alternation:n,ambiguityIndices:z,prefixPath:O.path}),type:ze.AMBIGUOUS_PREFIX_ALTS,ruleName:a.name,occurrence:G,alternatives:z}})}))}function CC(e,n,a){const r=[],u=ft(n,o=>o.name);return vt(e,o=>{const h=o.name;if(Be(u,h)){const p=a.buildNamespaceConflictError(o);r.push({message:p,type:ze.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),r}function LC(e){const n=nd(e,{errMsgProvider:eC}),a={};return vt(e.rules,r=>{a[r.name]=r}),nC(a,n.errMsgProvider)}function MC(e){return e=nd(e,{errMsgProvider:xa}),gC(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}const Ev="MismatchedTokenException",bv="NoViableAltException",Tv="EarlyExitException",Sv="NotAllInputParsedException",Av=[Ev,bv,Tv,Sv];Object.freeze(Av);function Zu(e){return Be(Av,e.name)}class To extends Error{constructor(n,a){super(n),this.token=a,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class Ov extends To{constructor(n,a,r){super(n,a),this.previousToken=r,this.name=Ev}}class kC extends To{constructor(n,a,r){super(n,a),this.previousToken=r,this.name=bv}}class UC extends To{constructor(n,a){super(n,a),this.name=Sv}}class IC extends To{constructor(n,a,r){super(n,a),this.previousToken=r,this.name=Tv}}const th={},xv="InRuleRecoveryException";class zC extends Error{constructor(n){super(n),this.name=xv}}class BC{initRecoverable(n){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=yt(n,"recoveryEnabled")?n.recoveryEnabled:Si.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=jC)}getTokenToInsert(n){const a=rd(n,"",NaN,NaN,NaN,NaN,NaN,NaN);return a.isInsertedInRecovery=!0,a}canTokenTypeBeInsertedInRecovery(n){return!0}canTokenTypeBeDeletedInRecovery(n){return!0}tryInRepetitionRecovery(n,a,r,u){const o=this.findReSyncTokenType(),h=this.exportLexerState(),p=[];let d=!1;const _=this.LA(1);let v=this.LA(1);const y=()=>{const O=this.LA(0),z=this.errorMessageProvider.buildMismatchTokenMessage({expected:u,actual:_,previous:O,ruleName:this.getCurrRuleFullName()}),G=new Ov(z,_,this.LA(0));G.resyncedTokens=Vr(p),this.SAVE_ERROR(G)};for(;!d;)if(this.tokenMatcher(v,u)){y();return}else if(r.call(this)){y(),n.apply(this,a);return}else this.tokenMatcher(v,o)?d=!0:(v=this.SKIP_TOKEN(),this.addToResyncTokens(v,p));this.importLexerState(h)}shouldInRepetitionRecoveryBeTried(n,a,r){return!(r===!1||this.tokenMatcher(this.LA(1),n)||this.isBackTracking()||this.canPerformInRuleRecovery(n,this.getFollowsForInRuleRecovery(n,a)))}getFollowsForInRuleRecovery(n,a){const r=this.getCurrentGrammarPath(n,a);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(n,a){if(this.canRecoverWithSingleTokenInsertion(n,a))return this.getTokenToInsert(n);if(this.canRecoverWithSingleTokenDeletion(n)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new zC("sad sad panda")}canPerformInRuleRecovery(n,a){return this.canRecoverWithSingleTokenInsertion(n,a)||this.canRecoverWithSingleTokenDeletion(n)}canRecoverWithSingleTokenInsertion(n,a){if(!this.canTokenTypeBeInsertedInRecovery(n)||Qt(a))return!1;const r=this.LA(1);return Cs(a,o=>this.tokenMatcher(r,o))!==void 0}canRecoverWithSingleTokenDeletion(n){return this.canTokenTypeBeDeletedInRecovery(n)?this.tokenMatcher(this.LA(2),n):!1}isInCurrentRuleReSyncSet(n){const a=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(a);return Be(r,n)}findReSyncTokenType(){const n=this.flattenFollowSet();let a=this.LA(1),r=2;for(;;){const u=Cs(n,o=>tC(a,o));if(u!==void 0)return u;a=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return th;const n=this.getLastExplicitRuleShortName(),a=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:a,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const n=this.RULE_STACK,a=this.RULE_OCCURRENCE_STACK;return ft(n,(r,u)=>u===0?th:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:a[u],inRule:this.shortRuleNameToFullName(n[u-1])})}flattenFollowSet(){const n=ft(this.buildFullFollowKeyStack(),a=>this.getFollowSetFromFollowKey(a));return In(n)}getFollowSetFromFollowKey(n){if(n===th)return[Ma];const a=n.ruleName+n.idxInCallingRule+nv+n.inRule;return this.resyncFollows[a]}addToResyncTokens(n,a){return this.tokenMatcher(n,Ma)||a.push(n),a}reSyncTo(n){const a=[];let r=this.LA(1);for(;this.tokenMatcher(r,n)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,a);return Vr(a)}attemptInRepetitionRecovery(n,a,r,u,o,h,p){}getCurrentGrammarPath(n,a){const r=this.getHumanReadableRuleStack(),u=Ce(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:u,lastTok:n,lastTokOccurrence:a}}getHumanReadableRuleStack(){return ft(this.RULE_STACK,n=>this.shortRuleNameToFullName(n))}}function jC(e,n,a,r,u,o,h){const p=this.getKeyForAutomaticLookahead(r,u);let d=this.firstAfterRepMap[p];if(d===void 0){const O=this.getCurrRuleFullName(),z=this.getGAstProductions()[O];d=new o(z,u).startWalking(),this.firstAfterRepMap[p]=d}let _=d.token,v=d.occurrence;const y=d.isEndOfRule;this.RULE_STACK.length===1&&y&&_===void 0&&(_=Ma,v=1),!(_===void 0||v===void 0)&&this.shouldInRepetitionRecoveryBeTried(_,v,h)&&this.tryInRepetitionRecovery(e,n,a,_)}const DC=4,aa=8,Nv=1<<aa,Rv=2<<aa,wh=3<<aa,Ch=4<<aa,Lh=5<<aa,Du=6<<aa;function eh(e,n,a){return a|n|e}class $C{constructor(n){var a;this.maxLookahead=(a=n?.maxLookahead)!==null&&a!==void 0?a:Si.maxLookahead}validate(n){const a=this.validateNoLeftRecursion(n.rules);if(Qt(a)){const r=this.validateEmptyOrAlternatives(n.rules),u=this.validateAmbiguousAlternationAlternatives(n.rules,this.maxLookahead),o=this.validateSomeNonEmptyLookaheadPath(n.rules,this.maxLookahead);return[...a,...r,...u,...o]}return a}validateNoLeftRecursion(n){return On(n,a=>vv(a,a,xa))}validateEmptyOrAlternatives(n){return On(n,a=>SC(a,xa))}validateAmbiguousAlternationAlternatives(n,a){return On(n,r=>AC(r,a,xa))}validateSomeNonEmptyLookaheadPath(n,a){return NC(n,a,xa)}buildLookaheadForAlternation(n){return oC(n.prodOccurrence,n.rule,n.maxLookahead,n.hasPredicates,n.dynamicTokensEnabled,fC)}buildLookaheadForOptional(n){return cC(n.prodOccurrence,n.rule,n.maxLookahead,n.dynamicTokensEnabled,pv(n.prodType),hC)}}class PC{initLooksAhead(n){this.dynamicTokensEnabled=yt(n,"dynamicTokensEnabled")?n.dynamicTokensEnabled:Si.dynamicTokensEnabled,this.maxLookahead=yt(n,"maxLookahead")?n.maxLookahead:Si.maxLookahead,this.lookaheadStrategy=yt(n,"lookaheadStrategy")?n.lookaheadStrategy:new $C({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(n){vt(n,a=>{this.TRACE_INIT(`${a.name} Rule Lookahead`,()=>{const{alternation:r,repetition:u,option:o,repetitionMandatory:h,repetitionMandatoryWithSeparator:p,repetitionWithSeparator:d}=GC(a);vt(r,_=>{const v=_.idx===0?"":_.idx;this.TRACE_INIT(`${Yn(_)}${v}`,()=>{const y=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:_.idx,rule:a,maxLookahead:_.maxLookahead||this.maxLookahead,hasPredicates:_.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),O=eh(this.fullRuleNameToShort[a.name],Nv,_.idx);this.setLaFuncCache(O,y)})}),vt(u,_=>{this.computeLookaheadFunc(a,_.idx,wh,"Repetition",_.maxLookahead,Yn(_))}),vt(o,_=>{this.computeLookaheadFunc(a,_.idx,Rv,"Option",_.maxLookahead,Yn(_))}),vt(h,_=>{this.computeLookaheadFunc(a,_.idx,Ch,"RepetitionMandatory",_.maxLookahead,Yn(_))}),vt(p,_=>{this.computeLookaheadFunc(a,_.idx,Du,"RepetitionMandatoryWithSeparator",_.maxLookahead,Yn(_))}),vt(d,_=>{this.computeLookaheadFunc(a,_.idx,Lh,"RepetitionWithSeparator",_.maxLookahead,Yn(_))})})})}computeLookaheadFunc(n,a,r,u,o,h){this.TRACE_INIT(`${h}${a===0?"":a}`,()=>{const p=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:a,rule:n,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:u}),d=eh(this.fullRuleNameToShort[n.name],r,a);this.setLaFuncCache(d,p)})}getKeyForAutomaticLookahead(n,a){const r=this.getLastExplicitRuleShortName();return eh(r,n,a)}getLaFuncFromCache(n){return this.lookAheadFuncsCache.get(n)}setLaFuncCache(n,a){this.lookAheadFuncsCache.set(n,a)}}class qC extends Ms{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(n){this.dslMethods.option.push(n)}visitRepetitionWithSeparator(n){this.dslMethods.repetitionWithSeparator.push(n)}visitRepetitionMandatory(n){this.dslMethods.repetitionMandatory.push(n)}visitRepetitionMandatoryWithSeparator(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)}visitRepetition(n){this.dslMethods.repetition.push(n)}visitAlternation(n){this.dslMethods.alternation.push(n)}}const xu=new qC;function GC(e){xu.reset(),e.accept(xu);const n=xu.dslMethods;return xu.reset(),n}function Ny(e,n){isNaN(e.startOffset)===!0?(e.startOffset=n.startOffset,e.endOffset=n.endOffset):e.endOffset<n.endOffset&&(e.endOffset=n.endOffset)}function Ry(e,n){isNaN(e.startOffset)===!0?(e.startOffset=n.startOffset,e.startColumn=n.startColumn,e.startLine=n.startLine,e.endOffset=n.endOffset,e.endColumn=n.endColumn,e.endLine=n.endLine):e.endOffset<n.endOffset&&(e.endOffset=n.endOffset,e.endColumn=n.endColumn,e.endLine=n.endLine)}function HC(e,n,a){e.children[a]===void 0?e.children[a]=[n]:e.children[a].push(n)}function FC(e,n,a){e.children[n]===void 0?e.children[n]=[a]:e.children[n].push(a)}const KC="name";function wv(e,n){Object.defineProperty(e,KC,{enumerable:!1,configurable:!0,writable:!1,value:n})}function VC(e,n){const a=Rn(e),r=a.length;for(let u=0;u<r;u++){const o=a[u],h=e[o],p=h.length;for(let d=0;d<p;d++){const _=h[d];_.tokenTypeIdx===void 0&&this[_.name](_.children,n)}}}function YC(e,n){const a=function(){};wv(a,e+"BaseSemantics");const r={visit:function(u,o){if(zt(u)&&(u=u[0]),!Ti(u))return this[u.name](u.children,o)},validateVisitor:function(){const u=QC(this,n);if(!Qt(u)){const o=ft(u,h=>h.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
102
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let n;return e.topLevelRule instanceof Ls?n=e.topLevelRule.name:n=e.topLevelRule,`Duplicate definition, rule: ->${n}<- is already defined in the grammar: ->${e.grammarName}<-`}};function nC(e,n){const a=new iC(e,n);return a.resolveRefs(),a.errors}class iC extends Ms{constructor(n,a){super(),this.nameToTopRule=n,this.errMsgProvider=a,this.errors=[]}resolveRefs(){vt(ye(this.nameToTopRule),n=>{this.currTopLevel=n,n.accept(this)})}visitNonTerminal(n){const a=this.nameToTopRule[n.nonTerminalName];if(a)n.referencedRule=a;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:ze.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}}}class aC extends vo{constructor(n,a){super(),this.topProd=n,this.path=a,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Ce(this.path.ruleStack).reverse(),this.occurrenceStack=Ce(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(n,a=[]){this.found||super.walk(n,a)}walkProdRef(n,a,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){const u=a.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,u)}}updateExpectedNext(){Qt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class sC extends aC{constructor(n,a){super(n,a),this.path=a,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(n,a,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){const u=a.concat(r),o=new Xe({definition:u});this.possibleTokTypes=Jr(o),this.found=!0}}}class bo extends vo{constructor(n,a){super(),this.topRule=n,this.occurrence=a,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class rC extends bo{walkMany(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkMany(n,a,r)}}class Ay extends bo{walkManySep(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkManySep(n,a,r)}}class lC extends bo{walkAtLeastOne(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOne(n,a,r)}}class Oy extends bo{walkAtLeastOneSep(n,a,r){if(n.idx===this.occurrence){const u=jn(a.concat(r));this.result.isEndOfRule=u===void 0,u instanceof ne&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOneSep(n,a,r)}}function Nh(e,n,a=[]){a=Ce(a);let r=[],u=0;function o(p){return p.concat(we(e,u+1))}function h(p){const d=Nh(o(p),n,a);return r.concat(d)}for(;a.length<n&&u<e.length;){const p=e[u];if(p instanceof Xe)return h(p.definition);if(p instanceof cn)return h(p.definition);if(p instanceof Ve)r=h(p.definition);else if(p instanceof ti){const d=p.definition.concat([new ve({definition:p.definition})]);return h(d)}else if(p instanceof ei){const d=[new Xe({definition:p.definition}),new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})];return h(d)}else if(p instanceof $n){const d=p.definition.concat([new ve({definition:[new ne({terminalType:p.separator})].concat(p.definition)})]);r=h(d)}else if(p instanceof ve){const d=p.definition.concat([new ve({definition:p.definition})]);r=h(d)}else{if(p instanceof Pn)return vt(p.definition,d=>{Qt(d.definition)===!1&&(r=h(d.definition))}),r;if(p instanceof ne)a.push(p.terminalType);else throw Error("non exhaustive match")}u++}return r.push({partialPath:a,suffixDef:we(e,u)}),r}function dv(e,n,a,r){const u="EXIT_NONE_TERMINAL",o=[u],h="EXIT_ALTERNATIVE";let p=!1;const d=n.length,_=d-r-1,v=[],y=[];for(y.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Qt(y);){const O=y.pop();if(O===h){p&&Ca(y).idx<=_&&y.pop();continue}const z=O.def,G=O.idx,V=O.ruleStack,A=O.occurrenceStack;if(Qt(z))continue;const b=z[0];if(b===u){const N={idx:G,def:we(z),ruleStack:Vr(V),occurrenceStack:Vr(A)};y.push(N)}else if(b instanceof ne)if(G<d-1){const N=G+1,P=n[N];if(a(P,b.terminalType)){const B={idx:N,def:we(z),ruleStack:V,occurrenceStack:A};y.push(B)}}else if(G===d-1)v.push({nextTokenType:b.terminalType,nextTokenOccurrence:b.idx,ruleStack:V,occurrenceStack:A}),p=!0;else throw Error("non exhaustive match");else if(b instanceof cn){const N=Ce(V);N.push(b.nonTerminalName);const P=Ce(A);P.push(b.idx);const B={idx:G,def:b.definition.concat(o,we(z)),ruleStack:N,occurrenceStack:P};y.push(B)}else if(b instanceof Ve){const N={idx:G,def:we(z),ruleStack:V,occurrenceStack:A};y.push(N),y.push(h);const P={idx:G,def:b.definition.concat(we(z)),ruleStack:V,occurrenceStack:A};y.push(P)}else if(b instanceof ti){const N=new ve({definition:b.definition,idx:b.idx}),P=b.definition.concat([N],we(z)),B={idx:G,def:P,ruleStack:V,occurrenceStack:A};y.push(B)}else if(b instanceof ei){const N=new ne({terminalType:b.separator}),P=new ve({definition:[N].concat(b.definition),idx:b.idx}),B=b.definition.concat([P],we(z)),Z={idx:G,def:B,ruleStack:V,occurrenceStack:A};y.push(Z)}else if(b instanceof $n){const N={idx:G,def:we(z),ruleStack:V,occurrenceStack:A};y.push(N),y.push(h);const P=new ne({terminalType:b.separator}),B=new ve({definition:[P].concat(b.definition),idx:b.idx}),Z=b.definition.concat([B],we(z)),U={idx:G,def:Z,ruleStack:V,occurrenceStack:A};y.push(U)}else if(b instanceof ve){const N={idx:G,def:we(z),ruleStack:V,occurrenceStack:A};y.push(N),y.push(h);const P=new ve({definition:b.definition,idx:b.idx}),B=b.definition.concat([P],we(z)),Z={idx:G,def:B,ruleStack:V,occurrenceStack:A};y.push(Z)}else if(b instanceof Pn)for(let N=b.definition.length-1;N>=0;N--){const P=b.definition[N],B={idx:G,def:P.definition.concat(we(z)),ruleStack:V,occurrenceStack:A};y.push(B),y.push(h)}else if(b instanceof Xe)y.push({idx:G,def:b.definition.concat(we(z)),ruleStack:V,occurrenceStack:A});else if(b instanceof Ls)y.push(uC(b,G,V,A));else throw Error("non exhaustive match")}return v}function uC(e,n,a,r){const u=Ce(a);u.push(e.name);const o=Ce(r);return o.push(1),{idx:n,def:e.definition,ruleStack:u,occurrenceStack:o}}var se;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(se||(se={}));function pv(e){if(e instanceof Ve||e==="Option")return se.OPTION;if(e instanceof ve||e==="Repetition")return se.REPETITION;if(e instanceof ti||e==="RepetitionMandatory")return se.REPETITION_MANDATORY;if(e instanceof ei||e==="RepetitionMandatoryWithSeparator")return se.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof $n||e==="RepetitionWithSeparator")return se.REPETITION_WITH_SEPARATOR;if(e instanceof Pn||e==="Alternation")return se.ALTERNATION;throw Error("non exhaustive match")}function oC(e,n,a,r,u,o){const h=ld(e,n,a),p=gv(h)?Qu:tl;return o(h,r,p,u)}function cC(e,n,a,r,u,o){const h=ud(e,n,u,a),p=gv(h)?Qu:tl;return o(h[0],p,r)}function fC(e,n,a,r){const u=e.length,o=zn(e,h=>zn(h,p=>p.length===1));if(n)return function(h){const p=ft(h,d=>d.GATE);for(let d=0;d<u;d++){const _=e[d],v=_.length,y=p[d];if(!(y!==void 0&&y.call(this)===!1))t:for(let O=0;O<v;O++){const z=_[O],G=z.length;for(let V=0;V<G;V++){const A=this.LA(V+1);if(a(A,z[V])===!1)continue t}return d}}};if(o&&!r){const h=ft(e,d=>Un(d)),p=on(h,(d,_,v)=>(vt(_,y=>{yt(d,y.tokenTypeIdx)||(d[y.tokenTypeIdx]=v),vt(y.categoryMatches,O=>{yt(d,O)||(d[O]=v)})}),d),{});return function(){const d=this.LA(1);return p[d.tokenTypeIdx]}}else return function(){for(let h=0;h<u;h++){const p=e[h],d=p.length;t:for(let _=0;_<d;_++){const v=p[_],y=v.length;for(let O=0;O<y;O++){const z=this.LA(O+1);if(a(z,v[O])===!1)continue t}return h}}}}function hC(e,n,a){const r=zn(e,o=>o.length===1),u=e.length;if(r&&!a){const o=Un(e);if(o.length===1&&Qt(o[0].categoryMatches)){const p=o[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===p}}else{const h=on(o,(p,d,_)=>(p[d.tokenTypeIdx]=!0,vt(d.categoryMatches,v=>{p[v]=!0}),p),[]);return function(){const p=this.LA(1);return h[p.tokenTypeIdx]===!0}}}else return function(){t:for(let o=0;o<u;o++){const h=e[o],p=h.length;for(let d=0;d<p;d++){const _=this.LA(d+1);if(n(_,h[d])===!1)continue t}return!0}return!1}}class dC extends vo{constructor(n,a,r){super(),this.topProd=n,this.targetOccurrence=a,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(n,a,r,u){return n.idx===this.targetOccurrence&&this.targetProdType===a?(this.restDef=r.concat(u),!0):!1}walkOption(n,a,r){this.checkIsTarget(n,se.OPTION,a,r)||super.walkOption(n,a,r)}walkAtLeastOne(n,a,r){this.checkIsTarget(n,se.REPETITION_MANDATORY,a,r)||super.walkOption(n,a,r)}walkAtLeastOneSep(n,a,r){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR,a,r)||super.walkOption(n,a,r)}walkMany(n,a,r){this.checkIsTarget(n,se.REPETITION,a,r)||super.walkOption(n,a,r)}walkManySep(n,a,r){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR,a,r)||super.walkOption(n,a,r)}}class _v extends Ms{constructor(n,a,r){super(),this.targetOccurrence=n,this.targetProdType=a,this.targetRef=r,this.result=[]}checkIsTarget(n,a){n.idx===this.targetOccurrence&&this.targetProdType===a&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)}visitOption(n){this.checkIsTarget(n,se.OPTION)}visitRepetition(n){this.checkIsTarget(n,se.REPETITION)}visitRepetitionMandatory(n){this.checkIsTarget(n,se.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(n){this.checkIsTarget(n,se.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(n){this.checkIsTarget(n,se.REPETITION_WITH_SEPARATOR)}visitAlternation(n){this.checkIsTarget(n,se.ALTERNATION)}}function xy(e){const n=new Array(e);for(let a=0;a<e;a++)n[a]=[];return n}function Jf(e){let n=[""];for(let a=0;a<e.length;a++){const r=e[a],u=[];for(let o=0;o<n.length;o++){const h=n[o];u.push(h+"_"+r.tokenTypeIdx);for(let p=0;p<r.categoryMatches.length;p++){const d="_"+r.categoryMatches[p];u.push(h+d)}}n=u}return n}function pC(e,n,a){for(let r=0;r<e.length;r++){if(r===a)continue;const u=e[r];for(let o=0;o<n.length;o++){const h=n[o];if(u[h]===!0)return!1}}return!0}function mv(e,n){const a=ft(e,h=>Nh([h],1)),r=xy(a.length),u=ft(a,h=>{const p={};return vt(h,d=>{const _=Jf(d.partialPath);vt(_,v=>{p[v]=!0})}),p});let o=a;for(let h=1;h<=n;h++){const p=o;o=xy(p.length);for(let d=0;d<p.length;d++){const _=p[d];for(let v=0;v<_.length;v++){const y=_[v].partialPath,O=_[v].suffixDef,z=Jf(y);if(pC(u,z,d)||Qt(O)||y.length===n){const V=r[d];if(Rh(V,y)===!1){V.push(y);for(let A=0;A<z.length;A++){const b=z[A];u[d][b]=!0}}}else{const V=Nh(O,h+1,y);o[d]=o[d].concat(V),vt(V,A=>{const b=Jf(A.partialPath);vt(b,N=>{u[d][N]=!0})})}}}}return r}function ld(e,n,a,r){const u=new _v(e,se.ALTERNATION,r);return n.accept(u),mv(u.result,a)}function ud(e,n,a,r){const u=new _v(e,a);n.accept(u);const o=u.result,p=new dC(n,e,a).startWalking(),d=new Xe({definition:o}),_=new Xe({definition:p});return mv([d,_],r)}function Rh(e,n){t:for(let a=0;a<e.length;a++){const r=e[a];if(r.length===n.length){for(let u=0;u<r.length;u++){const o=n[u],h=r[u];if((o===h||h.categoryMatchesMap[o.tokenTypeIdx]!==void 0)===!1)continue t}return!0}}return!1}function _C(e,n){return e.length<n.length&&zn(e,(a,r)=>{const u=n[r];return a===u||u.categoryMatchesMap[a.tokenTypeIdx]})}function gv(e){return zn(e,n=>zn(n,a=>zn(a,r=>Qt(r.categoryMatches))))}function mC(e){const n=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return ft(n,a=>Object.assign({type:ze.CUSTOM_LOOKAHEAD_VALIDATION},a))}function gC(e,n,a,r){const u=On(e,d=>yC(d,a)),o=CC(e,n,a),h=On(e,d=>xC(d,a)),p=On(e,d=>bC(d,e,r,a));return u.concat(o,h,p)}function yC(e,n){const a=new EC;e.accept(a);const r=a.allProductions,u=CR(r,vC),o=Dn(u,p=>p.length>1);return ft(ye(o),p=>{const d=jn(p),_=n.buildDuplicateFoundError(e,p),v=Yn(d),y={message:_,type:ze.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:v,occurrence:d.idx},O=yv(d);return O&&(y.parameter=O),y})}function vC(e){return`${Yn(e)}_#_${e.idx}_#_${yv(e)}`}function yv(e){return e instanceof ne?e.terminalType.name:e instanceof cn?e.nonTerminalName:""}class EC extends Ms{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(n){this.allProductions.push(n)}visitOption(n){this.allProductions.push(n)}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}visitAlternation(n){this.allProductions.push(n)}visitTerminal(n){this.allProductions.push(n)}}function bC(e,n,a,r){const u=[];if(on(n,(h,p)=>p.name===e.name?h+1:h,0)>1){const h=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:a});u.push({message:h,type:ze.DUPLICATE_RULE_NAME,ruleName:e.name})}return u}function TC(e,n,a){const r=[];let u;return Be(n,e)||(u=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${a}<-as it is not defined in any of the super grammars `,r.push({message:u,type:ze.INVALID_RULE_OVERRIDE,ruleName:e})),r}function vv(e,n,a,r=[]){const u=[],o=ju(n.definition);if(Qt(o))return[];{const h=e.name;Be(o,e)&&u.push({message:a.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:ze.LEFT_RECURSION,ruleName:h});const d=go(o,r.concat([e])),_=On(d,v=>{const y=Ce(r);return y.push(v),vv(e,v,a,y)});return u.concat(_)}}function ju(e){let n=[];if(Qt(e))return n;const a=jn(e);if(a instanceof cn)n.push(a.referencedRule);else if(a instanceof Xe||a instanceof Ve||a instanceof ti||a instanceof ei||a instanceof $n||a instanceof ve)n=n.concat(ju(a.definition));else if(a instanceof Pn)n=Un(ft(a.definition,o=>ju(o.definition)));else if(!(a instanceof ne))throw Error("non exhaustive match");const r=Ku(a),u=e.length>1;if(r&&u){const o=we(e);return n.concat(ju(o))}else return n}class od extends Ms{constructor(){super(...arguments),this.alternations=[]}visitAlternation(n){this.alternations.push(n)}}function SC(e,n){const a=new od;e.accept(a);const r=a.alternations;return On(r,o=>{const h=Vr(o.definition);return On(h,(p,d)=>{const _=dv([p],[],tl,1);return Qt(_)?[{message:n.buildEmptyAlternationError({topLevelRule:e,alternation:o,emptyChoiceIdx:d}),type:ze.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:o.idx,alternative:d+1}]:[]})})}function AC(e,n,a){const r=new od;e.accept(r);let u=r.alternations;return u=yo(u,h=>h.ignoreAmbiguities===!0),On(u,h=>{const p=h.idx,d=h.maxLookahead||n,_=ld(p,e,d,h),v=RC(_,h,e,a),y=wC(_,h,e,a);return v.concat(y)})}class OC extends Ms{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}}function xC(e,n){const a=new od;e.accept(a);const r=a.alternations;return On(r,o=>o.definition.length>255?[{message:n.buildTooManyAlternativesError({topLevelRule:e,alternation:o}),type:ze.TOO_MANY_ALTS,ruleName:e.name,occurrence:o.idx}]:[])}function NC(e,n,a){const r=[];return vt(e,u=>{const o=new OC;u.accept(o);const h=o.allProductions;vt(h,p=>{const d=pv(p),_=p.maxLookahead||n,v=p.idx,O=ud(v,u,d,_)[0];if(Qt(Un(O))){const z=a.buildEmptyRepetitionError({topLevelRule:u,repetition:p});r.push({message:z,type:ze.NO_NON_EMPTY_LOOKAHEAD,ruleName:u.name})}})}),r}function RC(e,n,a,r){const u=[],o=on(e,(p,d,_)=>(n.definition[_].ignoreAmbiguities===!0||vt(d,v=>{const y=[_];vt(e,(O,z)=>{_!==z&&Rh(O,v)&&n.definition[z].ignoreAmbiguities!==!0&&y.push(z)}),y.length>1&&!Rh(u,v)&&(u.push(v),p.push({alts:y,path:v}))}),p),[]);return ft(o,p=>{const d=ft(p.alts,v=>v+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:a,alternation:n,ambiguityIndices:d,prefixPath:p.path}),type:ze.AMBIGUOUS_ALTS,ruleName:a.name,occurrence:n.idx,alternatives:p.alts}})}function wC(e,n,a,r){const u=on(e,(h,p,d)=>{const _=ft(p,v=>({idx:d,path:v}));return h.concat(_)},[]);return Wr(On(u,h=>{if(n.definition[h.idx].ignoreAmbiguities===!0)return[];const d=h.idx,_=h.path,v=wn(u,O=>n.definition[O.idx].ignoreAmbiguities!==!0&&O.idx<d&&_C(O.path,_));return ft(v,O=>{const z=[O.idx+1,d+1],G=n.idx===0?"":n.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:a,alternation:n,ambiguityIndices:z,prefixPath:O.path}),type:ze.AMBIGUOUS_PREFIX_ALTS,ruleName:a.name,occurrence:G,alternatives:z}})}))}function CC(e,n,a){const r=[],u=ft(n,o=>o.name);return vt(e,o=>{const h=o.name;if(Be(u,h)){const p=a.buildNamespaceConflictError(o);r.push({message:p,type:ze.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),r}function LC(e){const n=nd(e,{errMsgProvider:eC}),a={};return vt(e.rules,r=>{a[r.name]=r}),nC(a,n.errMsgProvider)}function MC(e){return e=nd(e,{errMsgProvider:xa}),gC(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}const Ev="MismatchedTokenException",bv="NoViableAltException",Tv="EarlyExitException",Sv="NotAllInputParsedException",Av=[Ev,bv,Tv,Sv];Object.freeze(Av);function Zu(e){return Be(Av,e.name)}class To extends Error{constructor(n,a){super(n),this.token=a,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class Ov extends To{constructor(n,a,r){super(n,a),this.previousToken=r,this.name=Ev}}class kC extends To{constructor(n,a,r){super(n,a),this.previousToken=r,this.name=bv}}class IC extends To{constructor(n,a){super(n,a),this.name=Sv}}class UC extends To{constructor(n,a,r){super(n,a),this.previousToken=r,this.name=Tv}}const th={},xv="InRuleRecoveryException";class zC extends Error{constructor(n){super(n),this.name=xv}}class BC{initRecoverable(n){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=yt(n,"recoveryEnabled")?n.recoveryEnabled:Si.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=jC)}getTokenToInsert(n){const a=rd(n,"",NaN,NaN,NaN,NaN,NaN,NaN);return a.isInsertedInRecovery=!0,a}canTokenTypeBeInsertedInRecovery(n){return!0}canTokenTypeBeDeletedInRecovery(n){return!0}tryInRepetitionRecovery(n,a,r,u){const o=this.findReSyncTokenType(),h=this.exportLexerState(),p=[];let d=!1;const _=this.LA(1);let v=this.LA(1);const y=()=>{const O=this.LA(0),z=this.errorMessageProvider.buildMismatchTokenMessage({expected:u,actual:_,previous:O,ruleName:this.getCurrRuleFullName()}),G=new Ov(z,_,this.LA(0));G.resyncedTokens=Vr(p),this.SAVE_ERROR(G)};for(;!d;)if(this.tokenMatcher(v,u)){y();return}else if(r.call(this)){y(),n.apply(this,a);return}else this.tokenMatcher(v,o)?d=!0:(v=this.SKIP_TOKEN(),this.addToResyncTokens(v,p));this.importLexerState(h)}shouldInRepetitionRecoveryBeTried(n,a,r){return!(r===!1||this.tokenMatcher(this.LA(1),n)||this.isBackTracking()||this.canPerformInRuleRecovery(n,this.getFollowsForInRuleRecovery(n,a)))}getFollowsForInRuleRecovery(n,a){const r=this.getCurrentGrammarPath(n,a);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(n,a){if(this.canRecoverWithSingleTokenInsertion(n,a))return this.getTokenToInsert(n);if(this.canRecoverWithSingleTokenDeletion(n)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new zC("sad sad panda")}canPerformInRuleRecovery(n,a){return this.canRecoverWithSingleTokenInsertion(n,a)||this.canRecoverWithSingleTokenDeletion(n)}canRecoverWithSingleTokenInsertion(n,a){if(!this.canTokenTypeBeInsertedInRecovery(n)||Qt(a))return!1;const r=this.LA(1);return Cs(a,o=>this.tokenMatcher(r,o))!==void 0}canRecoverWithSingleTokenDeletion(n){return this.canTokenTypeBeDeletedInRecovery(n)?this.tokenMatcher(this.LA(2),n):!1}isInCurrentRuleReSyncSet(n){const a=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(a);return Be(r,n)}findReSyncTokenType(){const n=this.flattenFollowSet();let a=this.LA(1),r=2;for(;;){const u=Cs(n,o=>tC(a,o));if(u!==void 0)return u;a=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return th;const n=this.getLastExplicitRuleShortName(),a=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:a,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const n=this.RULE_STACK,a=this.RULE_OCCURRENCE_STACK;return ft(n,(r,u)=>u===0?th:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:a[u],inRule:this.shortRuleNameToFullName(n[u-1])})}flattenFollowSet(){const n=ft(this.buildFullFollowKeyStack(),a=>this.getFollowSetFromFollowKey(a));return Un(n)}getFollowSetFromFollowKey(n){if(n===th)return[Ma];const a=n.ruleName+n.idxInCallingRule+nv+n.inRule;return this.resyncFollows[a]}addToResyncTokens(n,a){return this.tokenMatcher(n,Ma)||a.push(n),a}reSyncTo(n){const a=[];let r=this.LA(1);for(;this.tokenMatcher(r,n)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,a);return Vr(a)}attemptInRepetitionRecovery(n,a,r,u,o,h,p){}getCurrentGrammarPath(n,a){const r=this.getHumanReadableRuleStack(),u=Ce(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:u,lastTok:n,lastTokOccurrence:a}}getHumanReadableRuleStack(){return ft(this.RULE_STACK,n=>this.shortRuleNameToFullName(n))}}function jC(e,n,a,r,u,o,h){const p=this.getKeyForAutomaticLookahead(r,u);let d=this.firstAfterRepMap[p];if(d===void 0){const O=this.getCurrRuleFullName(),z=this.getGAstProductions()[O];d=new o(z,u).startWalking(),this.firstAfterRepMap[p]=d}let _=d.token,v=d.occurrence;const y=d.isEndOfRule;this.RULE_STACK.length===1&&y&&_===void 0&&(_=Ma,v=1),!(_===void 0||v===void 0)&&this.shouldInRepetitionRecoveryBeTried(_,v,h)&&this.tryInRepetitionRecovery(e,n,a,_)}const DC=4,aa=8,Nv=1<<aa,Rv=2<<aa,wh=3<<aa,Ch=4<<aa,Lh=5<<aa,Du=6<<aa;function eh(e,n,a){return a|n|e}class $C{constructor(n){var a;this.maxLookahead=(a=n?.maxLookahead)!==null&&a!==void 0?a:Si.maxLookahead}validate(n){const a=this.validateNoLeftRecursion(n.rules);if(Qt(a)){const r=this.validateEmptyOrAlternatives(n.rules),u=this.validateAmbiguousAlternationAlternatives(n.rules,this.maxLookahead),o=this.validateSomeNonEmptyLookaheadPath(n.rules,this.maxLookahead);return[...a,...r,...u,...o]}return a}validateNoLeftRecursion(n){return On(n,a=>vv(a,a,xa))}validateEmptyOrAlternatives(n){return On(n,a=>SC(a,xa))}validateAmbiguousAlternationAlternatives(n,a){return On(n,r=>AC(r,a,xa))}validateSomeNonEmptyLookaheadPath(n,a){return NC(n,a,xa)}buildLookaheadForAlternation(n){return oC(n.prodOccurrence,n.rule,n.maxLookahead,n.hasPredicates,n.dynamicTokensEnabled,fC)}buildLookaheadForOptional(n){return cC(n.prodOccurrence,n.rule,n.maxLookahead,n.dynamicTokensEnabled,pv(n.prodType),hC)}}class PC{initLooksAhead(n){this.dynamicTokensEnabled=yt(n,"dynamicTokensEnabled")?n.dynamicTokensEnabled:Si.dynamicTokensEnabled,this.maxLookahead=yt(n,"maxLookahead")?n.maxLookahead:Si.maxLookahead,this.lookaheadStrategy=yt(n,"lookaheadStrategy")?n.lookaheadStrategy:new $C({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(n){vt(n,a=>{this.TRACE_INIT(`${a.name} Rule Lookahead`,()=>{const{alternation:r,repetition:u,option:o,repetitionMandatory:h,repetitionMandatoryWithSeparator:p,repetitionWithSeparator:d}=GC(a);vt(r,_=>{const v=_.idx===0?"":_.idx;this.TRACE_INIT(`${Yn(_)}${v}`,()=>{const y=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:_.idx,rule:a,maxLookahead:_.maxLookahead||this.maxLookahead,hasPredicates:_.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),O=eh(this.fullRuleNameToShort[a.name],Nv,_.idx);this.setLaFuncCache(O,y)})}),vt(u,_=>{this.computeLookaheadFunc(a,_.idx,wh,"Repetition",_.maxLookahead,Yn(_))}),vt(o,_=>{this.computeLookaheadFunc(a,_.idx,Rv,"Option",_.maxLookahead,Yn(_))}),vt(h,_=>{this.computeLookaheadFunc(a,_.idx,Ch,"RepetitionMandatory",_.maxLookahead,Yn(_))}),vt(p,_=>{this.computeLookaheadFunc(a,_.idx,Du,"RepetitionMandatoryWithSeparator",_.maxLookahead,Yn(_))}),vt(d,_=>{this.computeLookaheadFunc(a,_.idx,Lh,"RepetitionWithSeparator",_.maxLookahead,Yn(_))})})})}computeLookaheadFunc(n,a,r,u,o,h){this.TRACE_INIT(`${h}${a===0?"":a}`,()=>{const p=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:a,rule:n,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:u}),d=eh(this.fullRuleNameToShort[n.name],r,a);this.setLaFuncCache(d,p)})}getKeyForAutomaticLookahead(n,a){const r=this.getLastExplicitRuleShortName();return eh(r,n,a)}getLaFuncFromCache(n){return this.lookAheadFuncsCache.get(n)}setLaFuncCache(n,a){this.lookAheadFuncsCache.set(n,a)}}class qC extends Ms{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(n){this.dslMethods.option.push(n)}visitRepetitionWithSeparator(n){this.dslMethods.repetitionWithSeparator.push(n)}visitRepetitionMandatory(n){this.dslMethods.repetitionMandatory.push(n)}visitRepetitionMandatoryWithSeparator(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)}visitRepetition(n){this.dslMethods.repetition.push(n)}visitAlternation(n){this.dslMethods.alternation.push(n)}}const xu=new qC;function GC(e){xu.reset(),e.accept(xu);const n=xu.dslMethods;return xu.reset(),n}function Ny(e,n){isNaN(e.startOffset)===!0?(e.startOffset=n.startOffset,e.endOffset=n.endOffset):e.endOffset<n.endOffset&&(e.endOffset=n.endOffset)}function Ry(e,n){isNaN(e.startOffset)===!0?(e.startOffset=n.startOffset,e.startColumn=n.startColumn,e.startLine=n.startLine,e.endOffset=n.endOffset,e.endColumn=n.endColumn,e.endLine=n.endLine):e.endOffset<n.endOffset&&(e.endOffset=n.endOffset,e.endColumn=n.endColumn,e.endLine=n.endLine)}function HC(e,n,a){e.children[a]===void 0?e.children[a]=[n]:e.children[a].push(n)}function FC(e,n,a){e.children[n]===void 0?e.children[n]=[a]:e.children[n].push(a)}const KC="name";function wv(e,n){Object.defineProperty(e,KC,{enumerable:!1,configurable:!0,writable:!1,value:n})}function VC(e,n){const a=Rn(e),r=a.length;for(let u=0;u<r;u++){const o=a[u],h=e[o],p=h.length;for(let d=0;d<p;d++){const _=h[d];_.tokenTypeIdx===void 0&&this[_.name](_.children,n)}}}function YC(e,n){const a=function(){};wv(a,e+"BaseSemantics");const r={visit:function(u,o){if(zt(u)&&(u=u[0]),!Ti(u))return this[u.name](u.children,o)},validateVisitor:function(){const u=QC(this,n);if(!Qt(u)){const o=ft(u,h=>h.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
103
103
  ${o.join(`
104
104
 
105
105
  `).replace(/\n/g,`
@@ -109,8 +109,8 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleN
109
109
  Note that the first argument for the parser constructor
110
110
  is no longer a Token vector (since v4.0).`);if(typeof n[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
111
111
  See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
112
- For Further details.`)}if(zt(n))this.tokensMap=on(n,(o,h)=>(o[h.name]=h,o),{});else if(yt(n,"modes")&&zn(In(ye(n.modes)),Qw)){const o=In(ye(n.modes)),h=id(o);this.tokensMap=on(h,(p,d)=>(p[d.name]=d,p),{})}else if(Nn(n))this.tokensMap=Ce(n);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Ma;const r=yt(n,"modes")?In(ye(n.modes)):ye(n),u=zn(r,o=>Qt(o.categoryMatches));this.tokenMatcher=u?Qu:tl,el(ye(this.tokensMap))}defineRule(n,a,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${n}> may not be defined after the 'performSelfAnalysis' method has been called'
113
- Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const u=yt(r,"resyncEnabled")?r.resyncEnabled:to.resyncEnabled,o=yt(r,"recoveryValueFunc")?r.recoveryValueFunc:to.recoveryValueFunc,h=this.ruleShortNameIdx<<DC+aa;this.ruleShortNameIdx++,this.shortRuleNameToFull[h]=n,this.fullRuleNameToShort[n]=h;let p;return this.outputCst===!0?p=function(...v){try{this.ruleInvocationStateUpdate(h,n,this.subruleIdx),a.apply(this,v);const y=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(y),y}catch(y){return this.invokeRuleCatch(y,u,o)}finally{this.ruleFinallyStateUpdate()}}:p=function(...v){try{return this.ruleInvocationStateUpdate(h,n,this.subruleIdx),a.apply(this,v)}catch(y){return this.invokeRuleCatch(y,u,o)}finally{this.ruleFinallyStateUpdate()}},Object.assign(p,{ruleName:n,originalGrammarAction:a})}invokeRuleCatch(n,a,r){const u=this.RULE_STACK.length===1,o=a&&!this.isBackTracking()&&this.recoveryEnabled;if(Zu(n)){const h=n;if(o){const p=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(p))if(h.resyncedTokens=this.reSyncTo(p),this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return r(n);else{if(this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,h.partialCstResult=d}throw h}}else{if(u)return this.moveToTerminatedState(),r(n);throw h}}else throw n}optionInternal(n,a){const r=this.getKeyForAutomaticLookahead(Rv,a);return this.optionInternalLogic(n,a,r)}optionInternalLogic(n,a,r){let u=this.getLaFuncFromCache(r),o;if(typeof n!="function"){o=n.DEF;const h=n.GATE;if(h!==void 0){const p=u;u=()=>h.call(this)&&p.call(this)}}else o=n;if(u.call(this)===!0)return o.call(this)}atLeastOneInternal(n,a){const r=this.getKeyForAutomaticLookahead(Ch,n);return this.atLeastOneInternalLogic(n,a,r)}atLeastOneInternalLogic(n,a,r){let u=this.getLaFuncFromCache(r),o;if(typeof a!="function"){o=a.DEF;const h=a.GATE;if(h!==void 0){const p=u;u=()=>h.call(this)&&p.call(this)}}else o=a;if(u.call(this)===!0){let h=this.doSingleRepetition(o);for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(n,se.REPETITION_MANDATORY,a.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[n,a],u,Ch,n,lC)}atLeastOneSepFirstInternal(n,a){const r=this.getKeyForAutomaticLookahead(Du,n);this.atLeastOneSepFirstInternalLogic(n,a,r)}atLeastOneSepFirstInternalLogic(n,a,r){const u=a.DEF,o=a.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const p=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,o,p,u,Oy],p,Du,n,Oy)}else throw this.raiseEarlyExitException(n,se.REPETITION_MANDATORY_WITH_SEPARATOR,a.ERR_MSG)}manyInternal(n,a){const r=this.getKeyForAutomaticLookahead(wh,n);return this.manyInternalLogic(n,a,r)}manyInternalLogic(n,a,r){let u=this.getLaFuncFromCache(r),o;if(typeof a!="function"){o=a.DEF;const p=a.GATE;if(p!==void 0){const d=u;u=()=>p.call(this)&&d.call(this)}}else o=a;let h=!0;for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[n,a],u,wh,n,rC,h)}manySepFirstInternal(n,a){const r=this.getKeyForAutomaticLookahead(Lh,n);this.manySepFirstInternalLogic(n,a,r)}manySepFirstInternalLogic(n,a,r){const u=a.DEF,o=a.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const p=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,o,p,u,Ay],p,Lh,n,Ay)}}repetitionSepSecondInternal(n,a,r,u,o){for(;r();)this.CONSUME(a),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,a,r,u,o],r,Du,n,o)}doSingleRepetition(n){const a=this.getLexerPosition();return n.call(this),this.getLexerPosition()>a}orInternal(n,a){const r=this.getKeyForAutomaticLookahead(Nv,a),u=zt(n)?n:n.DEF,h=this.getLaFuncFromCache(r).call(this,u);if(h!==void 0)return u[h].ALT.call(this);this.raiseNoAltException(a,n.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const n=this.LA(1),a=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:n,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new UC(a,n))}}subruleInternal(n,a,r){let u;try{const o=r!==void 0?r.ARGS:void 0;return this.subruleIdx=a,u=n.apply(this,o),this.cstPostNonTerminal(u,r!==void 0&&r.LABEL!==void 0?r.LABEL:n.ruleName),u}catch(o){throw this.subruleInternalError(o,r,n.ruleName)}}subruleInternalError(n,a,r){throw Zu(n)&&n.partialCstResult!==void 0&&(this.cstPostNonTerminal(n.partialCstResult,a!==void 0&&a.LABEL!==void 0?a.LABEL:r),delete n.partialCstResult),n}consumeInternal(n,a,r){let u;try{const o=this.LA(1);this.tokenMatcher(o,n)===!0?(this.consumeToken(),u=o):this.consumeInternalError(n,o,r)}catch(o){u=this.consumeInternalRecovery(n,a,o)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:n.name,u),u}consumeInternalError(n,a,r){let u;const o=this.LA(0);throw r!==void 0&&r.ERR_MSG?u=r.ERR_MSG:u=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:a,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Ov(u,a,o))}consumeInternalRecovery(n,a,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const u=this.getFollowsForInRuleRecovery(n,a);try{return this.tryInRuleRecovery(n,u)}catch(o){throw o.name===xv?r:o}}else throw r}saveRecogState(){const n=this.errors,a=Ce(this.RULE_STACK);return{errors:n,lexerState:this.exportLexerState(),RULE_STACK:a,CST_STACK:this.CST_STACK}}reloadRecogState(n){this.errors=n.errors,this.importLexerState(n.lexerState),this.RULE_STACK=n.RULE_STACK}ruleInvocationStateUpdate(n,a,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(n),this.cstInvocationStateUpdate(a)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const n=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[n]}shortRuleNameToFullName(n){return this.shortRuleNameToFull[n]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Ma)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class n2{initErrorHandler(n){this._errors=[],this.errorMessageProvider=yt(n,"errorMessageProvider")?n.errorMessageProvider:Si.errorMessageProvider}SAVE_ERROR(n){if(Zu(n))return n.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Ce(this.RULE_OCCURRENCE_STACK)},this._errors.push(n),n;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Ce(this._errors)}set errors(n){this._errors=n}raiseEarlyExitException(n,a,r){const u=this.getCurrRuleFullName(),o=this.getGAstProductions()[u],p=ud(n,o,a,this.maxLookahead)[0],d=[];for(let v=1;v<=this.maxLookahead;v++)d.push(this.LA(v));const _=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:p,actual:d,previous:this.LA(0),customUserDescription:r,ruleName:u});throw this.SAVE_ERROR(new IC(_,this.LA(1),this.LA(0)))}raiseNoAltException(n,a){const r=this.getCurrRuleFullName(),u=this.getGAstProductions()[r],o=ld(n,u,this.maxLookahead),h=[];for(let _=1;_<=this.maxLookahead;_++)h.push(this.LA(_));const p=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:h,previous:p,customUserDescription:a,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new kC(d,this.LA(1),p))}}class i2{initContentAssist(){}computeContentAssist(n,a){const r=this.gastProductionsCache[n];if(Ti(r))throw Error(`Rule ->${n}<- does not exist in this grammar.`);return dv([r],a,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(n){const a=jn(n.ruleStack),u=this.getGAstProductions()[a];return new sC(u,n).startWalking()}}const So={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(So);const wy=!0,Cy=Math.pow(2,aa)-1,Cv=bt({name:"RECORDING_PHASE_TOKEN",pattern:ke.NA});el([Cv]);const Lv=rd(Cv,`This IToken indicates the Parser is in Recording Phase
112
+ For Further details.`)}if(zt(n))this.tokensMap=on(n,(o,h)=>(o[h.name]=h,o),{});else if(yt(n,"modes")&&zn(Un(ye(n.modes)),Qw)){const o=Un(ye(n.modes)),h=id(o);this.tokensMap=on(h,(p,d)=>(p[d.name]=d,p),{})}else if(Nn(n))this.tokensMap=Ce(n);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Ma;const r=yt(n,"modes")?Un(ye(n.modes)):ye(n),u=zn(r,o=>Qt(o.categoryMatches));this.tokenMatcher=u?Qu:tl,el(ye(this.tokensMap))}defineRule(n,a,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${n}> may not be defined after the 'performSelfAnalysis' method has been called'
113
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const u=yt(r,"resyncEnabled")?r.resyncEnabled:to.resyncEnabled,o=yt(r,"recoveryValueFunc")?r.recoveryValueFunc:to.recoveryValueFunc,h=this.ruleShortNameIdx<<DC+aa;this.ruleShortNameIdx++,this.shortRuleNameToFull[h]=n,this.fullRuleNameToShort[n]=h;let p;return this.outputCst===!0?p=function(...v){try{this.ruleInvocationStateUpdate(h,n,this.subruleIdx),a.apply(this,v);const y=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(y),y}catch(y){return this.invokeRuleCatch(y,u,o)}finally{this.ruleFinallyStateUpdate()}}:p=function(...v){try{return this.ruleInvocationStateUpdate(h,n,this.subruleIdx),a.apply(this,v)}catch(y){return this.invokeRuleCatch(y,u,o)}finally{this.ruleFinallyStateUpdate()}},Object.assign(p,{ruleName:n,originalGrammarAction:a})}invokeRuleCatch(n,a,r){const u=this.RULE_STACK.length===1,o=a&&!this.isBackTracking()&&this.recoveryEnabled;if(Zu(n)){const h=n;if(o){const p=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(p))if(h.resyncedTokens=this.reSyncTo(p),this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return r(n);else{if(this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,h.partialCstResult=d}throw h}}else{if(u)return this.moveToTerminatedState(),r(n);throw h}}else throw n}optionInternal(n,a){const r=this.getKeyForAutomaticLookahead(Rv,a);return this.optionInternalLogic(n,a,r)}optionInternalLogic(n,a,r){let u=this.getLaFuncFromCache(r),o;if(typeof n!="function"){o=n.DEF;const h=n.GATE;if(h!==void 0){const p=u;u=()=>h.call(this)&&p.call(this)}}else o=n;if(u.call(this)===!0)return o.call(this)}atLeastOneInternal(n,a){const r=this.getKeyForAutomaticLookahead(Ch,n);return this.atLeastOneInternalLogic(n,a,r)}atLeastOneInternalLogic(n,a,r){let u=this.getLaFuncFromCache(r),o;if(typeof a!="function"){o=a.DEF;const h=a.GATE;if(h!==void 0){const p=u;u=()=>h.call(this)&&p.call(this)}}else o=a;if(u.call(this)===!0){let h=this.doSingleRepetition(o);for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(n,se.REPETITION_MANDATORY,a.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[n,a],u,Ch,n,lC)}atLeastOneSepFirstInternal(n,a){const r=this.getKeyForAutomaticLookahead(Du,n);this.atLeastOneSepFirstInternalLogic(n,a,r)}atLeastOneSepFirstInternalLogic(n,a,r){const u=a.DEF,o=a.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const p=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,o,p,u,Oy],p,Du,n,Oy)}else throw this.raiseEarlyExitException(n,se.REPETITION_MANDATORY_WITH_SEPARATOR,a.ERR_MSG)}manyInternal(n,a){const r=this.getKeyForAutomaticLookahead(wh,n);return this.manyInternalLogic(n,a,r)}manyInternalLogic(n,a,r){let u=this.getLaFuncFromCache(r),o;if(typeof a!="function"){o=a.DEF;const p=a.GATE;if(p!==void 0){const d=u;u=()=>p.call(this)&&d.call(this)}}else o=a;let h=!0;for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[n,a],u,wh,n,rC,h)}manySepFirstInternal(n,a){const r=this.getKeyForAutomaticLookahead(Lh,n);this.manySepFirstInternalLogic(n,a,r)}manySepFirstInternalLogic(n,a,r){const u=a.DEF,o=a.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const p=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,o,p,u,Ay],p,Lh,n,Ay)}}repetitionSepSecondInternal(n,a,r,u,o){for(;r();)this.CONSUME(a),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,a,r,u,o],r,Du,n,o)}doSingleRepetition(n){const a=this.getLexerPosition();return n.call(this),this.getLexerPosition()>a}orInternal(n,a){const r=this.getKeyForAutomaticLookahead(Nv,a),u=zt(n)?n:n.DEF,h=this.getLaFuncFromCache(r).call(this,u);if(h!==void 0)return u[h].ALT.call(this);this.raiseNoAltException(a,n.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const n=this.LA(1),a=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:n,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new IC(a,n))}}subruleInternal(n,a,r){let u;try{const o=r!==void 0?r.ARGS:void 0;return this.subruleIdx=a,u=n.apply(this,o),this.cstPostNonTerminal(u,r!==void 0&&r.LABEL!==void 0?r.LABEL:n.ruleName),u}catch(o){throw this.subruleInternalError(o,r,n.ruleName)}}subruleInternalError(n,a,r){throw Zu(n)&&n.partialCstResult!==void 0&&(this.cstPostNonTerminal(n.partialCstResult,a!==void 0&&a.LABEL!==void 0?a.LABEL:r),delete n.partialCstResult),n}consumeInternal(n,a,r){let u;try{const o=this.LA(1);this.tokenMatcher(o,n)===!0?(this.consumeToken(),u=o):this.consumeInternalError(n,o,r)}catch(o){u=this.consumeInternalRecovery(n,a,o)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:n.name,u),u}consumeInternalError(n,a,r){let u;const o=this.LA(0);throw r!==void 0&&r.ERR_MSG?u=r.ERR_MSG:u=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:a,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Ov(u,a,o))}consumeInternalRecovery(n,a,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const u=this.getFollowsForInRuleRecovery(n,a);try{return this.tryInRuleRecovery(n,u)}catch(o){throw o.name===xv?r:o}}else throw r}saveRecogState(){const n=this.errors,a=Ce(this.RULE_STACK);return{errors:n,lexerState:this.exportLexerState(),RULE_STACK:a,CST_STACK:this.CST_STACK}}reloadRecogState(n){this.errors=n.errors,this.importLexerState(n.lexerState),this.RULE_STACK=n.RULE_STACK}ruleInvocationStateUpdate(n,a,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(n),this.cstInvocationStateUpdate(a)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const n=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[n]}shortRuleNameToFullName(n){return this.shortRuleNameToFull[n]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Ma)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class n2{initErrorHandler(n){this._errors=[],this.errorMessageProvider=yt(n,"errorMessageProvider")?n.errorMessageProvider:Si.errorMessageProvider}SAVE_ERROR(n){if(Zu(n))return n.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Ce(this.RULE_OCCURRENCE_STACK)},this._errors.push(n),n;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Ce(this._errors)}set errors(n){this._errors=n}raiseEarlyExitException(n,a,r){const u=this.getCurrRuleFullName(),o=this.getGAstProductions()[u],p=ud(n,o,a,this.maxLookahead)[0],d=[];for(let v=1;v<=this.maxLookahead;v++)d.push(this.LA(v));const _=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:p,actual:d,previous:this.LA(0),customUserDescription:r,ruleName:u});throw this.SAVE_ERROR(new UC(_,this.LA(1),this.LA(0)))}raiseNoAltException(n,a){const r=this.getCurrRuleFullName(),u=this.getGAstProductions()[r],o=ld(n,u,this.maxLookahead),h=[];for(let _=1;_<=this.maxLookahead;_++)h.push(this.LA(_));const p=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:h,previous:p,customUserDescription:a,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new kC(d,this.LA(1),p))}}class i2{initContentAssist(){}computeContentAssist(n,a){const r=this.gastProductionsCache[n];if(Ti(r))throw Error(`Rule ->${n}<- does not exist in this grammar.`);return dv([r],a,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(n){const a=jn(n.ruleStack),u=this.getGAstProductions()[a];return new sC(u,n).startWalking()}}const So={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(So);const wy=!0,Cy=Math.pow(2,aa)-1,Cv=bt({name:"RECORDING_PHASE_TOKEN",pattern:ke.NA});el([Cv]);const Lv=rd(Cv,`This IToken indicates the Parser is in Recording Phase
114
114
  See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Lv);const a2={name:`This CSTNode indicates the Parser is in Recording Phase
115
115
  See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class s2{initGastRecorder(n){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let n=0;n<10;n++){const a=n>0?n:"";this[`CONSUME${a}`]=function(r,u){return this.consumeInternalRecord(r,n,u)},this[`SUBRULE${a}`]=function(r,u){return this.subruleInternalRecord(r,n,u)},this[`OPTION${a}`]=function(r){return this.optionInternalRecord(r,n)},this[`OR${a}`]=function(r){return this.orInternalRecord(r,n)},this[`MANY${a}`]=function(r){this.manyInternalRecord(n,r)},this[`MANY_SEP${a}`]=function(r){this.manySepFirstInternalRecord(n,r)},this[`AT_LEAST_ONE${a}`]=function(r){this.atLeastOneInternalRecord(n,r)},this[`AT_LEAST_ONE_SEP${a}`]=function(r){this.atLeastOneSepFirstInternalRecord(n,r)}}this.consume=function(n,a,r){return this.consumeInternalRecord(a,n,r)},this.subrule=function(n,a,r){return this.subruleInternalRecord(a,n,r)},this.option=function(n,a){return this.optionInternalRecord(a,n)},this.or=function(n,a){return this.orInternalRecord(a,n)},this.many=function(n,a){this.manyInternalRecord(n,a)},this.atLeastOne=function(n,a){this.atLeastOneInternalRecord(n,a)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const n=this;for(let a=0;a<10;a++){const r=a>0?a:"";delete n[`CONSUME${r}`],delete n[`SUBRULE${r}`],delete n[`OPTION${r}`],delete n[`OR${r}`],delete n[`MANY${r}`],delete n[`MANY_SEP${r}`],delete n[`AT_LEAST_ONE${r}`],delete n[`AT_LEAST_ONE_SEP${r}`]}delete n.consume,delete n.subrule,delete n.option,delete n.or,delete n.many,delete n.atLeastOne,delete n.ACTION,delete n.BACKTRACK,delete n.LA})}ACTION_RECORD(n){}BACKTRACK_RECORD(n,a){return()=>!0}LA_RECORD(n){return Ju}topLevelRuleRecord(n,a){try{const r=new Ls({definition:[],name:n});return r.name=n,this.recordingProdStack.push(r),a.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
116
116
  This error was thrown during the "grammar recording phase" For more info see:
@@ -123,59 +123,59 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
123
123
  `)}`)})}constructor(n,a){this.definitionErrors=[],this.selfAnalysisDone=!1;const r=this;if(r.initErrorHandler(a),r.initLexerAdapter(),r.initLooksAhead(a),r.initRecognizerEngine(n,a),r.initRecoverable(a),r.initTreeBuilder(a),r.initContentAssist(),r.initGastRecorder(a),r.initPerformanceTracer(a),yt(a,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
124
124
  Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
125
125
  See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
126
- For further details.`);this.skipValidations=yt(a,"skipValidations")?a.skipValidations:Si.skipValidations}}nl.DEFER_DEFINITION_ERRORS_HANDLING=!1;u2(nl,[BC,PC,WC,JC,e2,t2,n2,i2,s2,l2]);class o2 extends nl{constructor(n,a=Si){const r=Ce(a);r.outputCst=!0,super(n,r)}}const Mv=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",c2=Mv+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f2="["+Mv+"]["+c2+"]*",h2=new RegExp("^"+f2+"$");function kv(e,n){const a=[];let r=n.exec(e);for(;r;){const u=[];u.startIndex=n.lastIndex-r[0].length;const o=r.length;for(let h=0;h<o;h++)u.push(r[h]);a.push(u),r=n.exec(e)}return a}const Ao=function(e){const n=h2.exec(e);return!(n===null||typeof n>"u")};function d2(e){return typeof e<"u"}const p2={allowBooleanAttributes:!1,unpairedTags:[]};function _2(e,n){n=Object.assign({},p2,n);const a=[];let r=!1,u=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let o=0;o<e.length;o++)if(e[o]==="<"&&e[o+1]==="?"){if(o+=2,o=ky(e,o),o.err)return o}else if(e[o]==="<"){let h=o;if(o++,e[o]==="!"){o=Uy(e,o);continue}else{let p=!1;e[o]==="/"&&(p=!0,o++);let d="";for(;o<e.length&&e[o]!==">"&&e[o]!==" "&&e[o]!==" "&&e[o]!==`
127
- `&&e[o]!=="\r";o++)d+=e[o];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),o--),!S2(d)){let y;return d.trim().length===0?y="Invalid space after '<'.":y="Tag '"+d+"' is an invalid name.",ce("InvalidTag",y,Ie(e,o))}const _=y2(e,o);if(_===!1)return ce("InvalidAttr","Attributes for '"+d+"' have open quote.",Ie(e,o));let v=_.value;if(o=_.index,v[v.length-1]==="/"){const y=o-v.length;v=v.substring(0,v.length-1);const O=Iy(v,n);if(O===!0)r=!0;else return ce(O.err.code,O.err.msg,Ie(e,y+O.err.line))}else if(p)if(_.tagClosed){if(v.trim().length>0)return ce("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",Ie(e,h));if(a.length===0)return ce("InvalidTag","Closing tag '"+d+"' has not been opened.",Ie(e,h));{const y=a.pop();if(d!==y.tagName){let O=Ie(e,y.tagStartPos);return ce("InvalidTag","Expected closing tag '"+y.tagName+"' (opened in line "+O.line+", col "+O.col+") instead of closing tag '"+d+"'.",Ie(e,h))}a.length==0&&(u=!0)}}else return ce("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",Ie(e,o));else{const y=Iy(v,n);if(y!==!0)return ce(y.err.code,y.err.msg,Ie(e,o-v.length+y.err.line));if(u===!0)return ce("InvalidXml","Multiple possible root nodes found.",Ie(e,o));n.unpairedTags.indexOf(d)!==-1||a.push({tagName:d,tagStartPos:h}),r=!0}for(o++;o<e.length;o++)if(e[o]==="<")if(e[o+1]==="!"){o++,o=Uy(e,o);continue}else if(e[o+1]==="?"){if(o=ky(e,++o),o.err)return o}else break;else if(e[o]==="&"){const y=b2(e,o);if(y==-1)return ce("InvalidChar","char '&' is not expected.",Ie(e,o));o=y}else if(u===!0&&!My(e[o]))return ce("InvalidXml","Extra text at the end",Ie(e,o));e[o]==="<"&&o--}}else{if(My(e[o]))continue;return ce("InvalidChar","char '"+e[o]+"' is not expected.",Ie(e,o))}if(r){if(a.length==1)return ce("InvalidTag","Unclosed tag '"+a[0].tagName+"'.",Ie(e,a[0].tagStartPos));if(a.length>0)return ce("InvalidXml","Invalid '"+JSON.stringify(a.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ce("InvalidXml","Start tag expected.",1);return!0}function My(e){return e===" "||e===" "||e===`
128
- `||e==="\r"}function ky(e,n){const a=n;for(;n<e.length;n++)if(e[n]=="?"||e[n]==" "){const r=e.substr(a,n-a);if(n>5&&r==="xml")return ce("InvalidXml","XML declaration allowed only at the start of the document.",Ie(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function Uy(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n<e.length;n++)if(e[n]==="-"&&e[n+1]==="-"&&e[n+2]===">"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let a=1;for(n+=8;n<e.length;n++)if(e[n]==="<")a++;else if(e[n]===">"&&(a--,a===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n<e.length;n++)if(e[n]==="]"&&e[n+1]==="]"&&e[n+2]===">"){n+=2;break}}return n}const m2='"',g2="'";function y2(e,n){let a="",r="",u=!1;for(;n<e.length;n++){if(e[n]===m2||e[n]===g2)r===""?r=e[n]:r!==e[n]||(r="");else if(e[n]===">"&&r===""){u=!0;break}a+=e[n]}return r!==""?!1:{value:a,index:n,tagClosed:u}}const v2=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Iy(e,n){const a=kv(e,v2),r={};for(let u=0;u<a.length;u++){if(a[u][1].length===0)return ce("InvalidAttr","Attribute '"+a[u][2]+"' has no space in starting.",Mr(a[u]));if(a[u][3]!==void 0&&a[u][4]===void 0)return ce("InvalidAttr","Attribute '"+a[u][2]+"' is without value.",Mr(a[u]));if(a[u][3]===void 0&&!n.allowBooleanAttributes)return ce("InvalidAttr","boolean attribute '"+a[u][2]+"' is not allowed.",Mr(a[u]));const o=a[u][2];if(!T2(o))return ce("InvalidAttr","Attribute '"+o+"' is an invalid name.",Mr(a[u]));if(!r.hasOwnProperty(o))r[o]=1;else return ce("InvalidAttr","Attribute '"+o+"' is repeated.",Mr(a[u]))}return!0}function E2(e,n){let a=/\d/;for(e[n]==="x"&&(n++,a=/[\da-fA-F]/);n<e.length;n++){if(e[n]===";")return n;if(!e[n].match(a))break}return-1}function b2(e,n){if(n++,e[n]===";")return-1;if(e[n]==="#")return n++,E2(e,n);let a=0;for(;n<e.length;n++,a++)if(!(e[n].match(/\w/)&&a<20)){if(e[n]===";")break;return-1}return n}function ce(e,n,a){return{err:{code:e,msg:n,line:a.line||a,col:a.col}}}function T2(e){return Ao(e)}function S2(e){return Ao(e)}function Ie(e,n){const a=e.substring(0,n).split(/\r?\n/);return{line:a.length,col:a[a.length-1].length+1}}function Mr(e){return e.startIndex+e[1].length}const A2={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,a){return e},captureMetaData:!1};function Uv(e){return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:e.maxEntitySize??1e4,maxExpansionDepth:e.maxExpansionDepth??10,maxTotalExpansions:e.maxTotalExpansions??1e3,maxExpandedLength:e.maxExpandedLength??1e5,allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:Uv(!0)}const O2=function(e){const n=Object.assign({},A2,e);return n.processEntities=Uv(n.processEntities),n};let eo;typeof Symbol!="function"?eo="@@xmlMetadata":eo=Symbol("XML Node Metadata");class Oa{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,a){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:a})}addChild(n,a){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child}),a!==void 0&&(this.child[this.child.length-1][eo]={startIndex:a})}static getMetaDataSymbol(){return eo}}class x2{constructor(n){this.suppressValidationErr=!n,this.options=n}readDocType(n,a){const r={};if(n[a+3]==="O"&&n[a+4]==="C"&&n[a+5]==="T"&&n[a+6]==="Y"&&n[a+7]==="P"&&n[a+8]==="E"){a=a+9;let u=1,o=!1,h=!1,p="";for(;a<n.length;a++)if(n[a]==="<"&&!h){if(o&&Aa(n,"!ENTITY",a)){a+=7;let d,_;if([d,_,a]=this.readEntityExp(n,a+1,this.suppressValidationErr),_.indexOf("&")===-1){const v=d.replace(/[.\-+*:]/g,"\\.");r[d]={regx:RegExp(`&${v};`,"g"),val:_}}}else if(o&&Aa(n,"!ELEMENT",a)){a+=8;const{index:d}=this.readElementExp(n,a+1);a=d}else if(o&&Aa(n,"!ATTLIST",a))a+=8;else if(o&&Aa(n,"!NOTATION",a)){a+=9;const{index:d}=this.readNotationExp(n,a+1,this.suppressValidationErr);a=d}else if(Aa(n,"!--",a))h=!0;else throw new Error("Invalid DOCTYPE");u++,p=""}else if(n[a]===">"){if(h?n[a-1]==="-"&&n[a-2]==="-"&&(h=!1,u--):u--,u===0)break}else n[a]==="["?o=!0:p+=n[a];if(u!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:a}}readEntityExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a])&&n[a]!=='"'&&n[a]!=="'";)r+=n[a],a++;if(kr(r),a=Ke(n,a),!this.suppressValidationErr){if(n.substring(a,a+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(n[a]==="%")throw new Error("Parameter entities are not supported")}let u="";if([a,u]=this.readIdentifierVal(n,a,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize&&u.length>this.options.maxEntitySize)throw new Error(`Entity "${r}" size (${u.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return a--,[r,u,a]}readNotationExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a]);)r+=n[a],a++;!this.suppressValidationErr&&kr(r),a=Ke(n,a);const u=n.substring(a,a+6).toUpperCase();if(!this.suppressValidationErr&&u!=="SYSTEM"&&u!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${u}"`);a+=u.length,a=Ke(n,a);let o=null,h=null;if(u==="PUBLIC")[a,o]=this.readIdentifierVal(n,a,"publicIdentifier"),a=Ke(n,a),(n[a]==='"'||n[a]==="'")&&([a,h]=this.readIdentifierVal(n,a,"systemIdentifier"));else if(u==="SYSTEM"&&([a,h]=this.readIdentifierVal(n,a,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:r,publicIdentifier:o,systemIdentifier:h,index:--a}}readIdentifierVal(n,a,r){let u="";const o=n[a];if(o!=='"'&&o!=="'")throw new Error(`Expected quoted string, found "${o}"`);for(a++;a<n.length&&n[a]!==o;)u+=n[a],a++;if(n[a]!==o)throw new Error(`Unterminated ${r} value`);return a++,[a,u]}readElementExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a]);)r+=n[a],a++;if(!this.suppressValidationErr&&!Ao(r))throw new Error(`Invalid element name: "${r}"`);a=Ke(n,a);let u="";if(n[a]==="E"&&Aa(n,"MPTY",a))a+=4;else if(n[a]==="A"&&Aa(n,"NY",a))a+=2;else if(n[a]==="("){for(a++;a<n.length&&n[a]!==")";)u+=n[a],a++;if(n[a]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${n[a]}"`);return{elementName:r,contentModel:u.trim(),index:a}}readAttlistExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a]);)r+=n[a],a++;kr(r),a=Ke(n,a);let u="";for(;a<n.length&&!/\s/.test(n[a]);)u+=n[a],a++;if(!kr(u))throw new Error(`Invalid attribute name: "${u}"`);a=Ke(n,a);let o="";if(n.substring(a,a+8).toUpperCase()==="NOTATION"){if(o="NOTATION",a+=8,a=Ke(n,a),n[a]!=="(")throw new Error(`Expected '(', found "${n[a]}"`);a++;let p=[];for(;a<n.length&&n[a]!==")";){let d="";for(;a<n.length&&n[a]!=="|"&&n[a]!==")";)d+=n[a],a++;if(d=d.trim(),!kr(d))throw new Error(`Invalid notation name: "${d}"`);p.push(d),n[a]==="|"&&(a++,a=Ke(n,a))}if(n[a]!==")")throw new Error("Unterminated list of notations");a++,o+=" ("+p.join("|")+")"}else{for(;a<n.length&&!/\s/.test(n[a]);)o+=n[a],a++;const p=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!p.includes(o.toUpperCase()))throw new Error(`Invalid attribute type: "${o}"`)}a=Ke(n,a);let h="";return n.substring(a,a+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",a+=8):n.substring(a,a+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",a+=7):[a,h]=this.readIdentifierVal(n,a,"ATTLIST"),{elementName:r,attributeName:u,attributeType:o,defaultValue:h,index:a}}}const Ke=(e,n)=>{for(;n<e.length&&/\s/.test(e[n]);)n++;return n};function Aa(e,n,a){for(let r=0;r<n.length;r++)if(n[r]!==e[a+r+1])return!1;return!0}function kr(e){if(Ao(e))return e;throw new Error(`Invalid entity name ${e}`)}const N2=/^[-+]?0x[a-fA-F0-9]+$/,R2=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,w2={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function C2(e,n={}){if(n=Object.assign({},w2,n),!e||typeof e!="string")return e;let a=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(a))return e;if(e==="0")return 0;if(n.hex&&N2.test(a))return U2(a,16);if(a.includes("e")||a.includes("E"))return M2(e,a,n);{const r=R2.exec(a);if(r){const u=r[1]||"",o=r[2];let h=k2(r[3]);const p=u?e[o.length+1]===".":e[o.length]===".";if(!n.leadingZeros&&(o.length>1||o.length===1&&!p))return e;{const d=Number(a),_=String(d);if(d===0)return d;if(_.search(/[eE]/)!==-1)return n.eNotation?d:e;if(a.indexOf(".")!==-1)return _==="0"||_===h||_===`${u}${h}`?d:e;let v=o?h:a;return o?v===_||u+v===_?d:e:v===_||v===u+_?d:e}}else return e}}const L2=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function M2(e,n,a){if(!a.eNotation)return e;const r=n.match(L2);if(r){let u=r[1]||"";const o=r[3].indexOf("e")===-1?"E":"e",h=r[2],p=u?e[h.length+1]===o:e[h.length]===o;return h.length>1&&p?e:h.length===1&&(r[3].startsWith(`.${o}`)||r[3][0]===o)?Number(n):a.leadingZeros&&!p?(n=(r[1]||"")+r[3],Number(n)):e}else return e}function k2(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substring(0,e.length-1))),e}function U2(e,n){if(parseInt)return parseInt(e,n);if(Number.parseInt)return Number.parseInt(e,n);if(window&&window.parseInt)return window.parseInt(e,n);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function Iv(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const a of e)if(typeof a=="string"&&n===a||a instanceof RegExp&&a.test(n))return!0}:()=>!1}class I2{constructor(n){if(this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(a,r)=>zy(r,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(a,r)=>zy(r,16,"&#x")}},this.addExternalEntities=z2,this.parseXml=P2,this.parseTextData=B2,this.resolveNameSpace=j2,this.buildAttributesMap=$2,this.isItStopNode=F2,this.replaceEntitiesValue=G2,this.readStopNodeData=V2,this.saveTextToParentTag=H2,this.addChild=q2,this.ignoreAttributesFn=Iv(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let a=0;a<this.options.stopNodes.length;a++){const r=this.options.stopNodes[a];typeof r=="string"&&(r.startsWith("*.")?this.stopNodesWildcard.add(r.substring(2)):this.stopNodesExact.add(r))}}}}function z2(e){const n=Object.keys(e);for(let a=0;a<n.length;a++){const r=n[a],u=r.replace(/[.\-+*:]/g,"\\.");this.lastEntities[r]={regex:new RegExp("&"+u+";","g"),val:e[r]}}}function B2(e,n,a,r,u,o,h){if(e!==void 0&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){h||(e=this.replaceEntitiesValue(e,n,a));const p=this.options.tagValueProcessor(n,e,a,u,o);return p==null?e:typeof p!=typeof e||p!==e?p:this.options.trimValues?Uh(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Uh(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function j2(e){if(this.options.removeNSPrefix){const n=e.split(":"),a=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=a+n[1])}return e}const D2=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function $2(e,n,a){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const r=kv(e,D2),u=r.length,o={};for(let h=0;h<u;h++){const p=this.resolveNameSpace(r[h][1]);if(this.ignoreAttributesFn(p,n))continue;let d=r[h][4],_=this.options.attributeNamePrefix+p;if(p.length)if(this.options.transformAttributeName&&(_=this.options.transformAttributeName(_)),_==="__proto__"&&(_="#__proto__"),d!==void 0){this.options.trimValues&&(d=d.trim()),d=this.replaceEntitiesValue(d,a,n);const v=this.options.attributeValueProcessor(p,d,n);v==null?o[_]=d:typeof v!=typeof d||v!==d?o[_]=v:o[_]=Uh(d,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[_]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const h={};return h[this.options.attributesGroupName]=o,h}return o}}const P2=function(e){e=e.replace(/\r\n?/g,`
129
- `);const n=new Oa("!xml");let a=n,r="",u="";this.entityExpansionCount=0,this.currentExpandedLength=0;const o=new x2(this.options.processEntities);for(let h=0;h<e.length;h++)if(e[h]==="<")if(e[h+1]==="/"){const d=Na(e,">",h,"Closing Tag is not closed.");let _=e.substring(h+2,d).trim();if(this.options.removeNSPrefix){const O=_.indexOf(":");O!==-1&&(_=_.substr(O+1))}this.options.transformTagName&&(_=this.options.transformTagName(_)),a&&(r=this.saveTextToParentTag(r,a,u));const v=u.substring(u.lastIndexOf(".")+1);if(_&&this.options.unpairedTags.indexOf(_)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${_}>`);let y=0;v&&this.options.unpairedTags.indexOf(v)!==-1?(y=u.lastIndexOf(".",u.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=u.lastIndexOf("."),u=u.substring(0,y),a=this.tagsNodeStack.pop(),r="",h=d}else if(e[h+1]==="?"){let d=kh(e,h,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,a,u),!(this.options.ignoreDeclaration&&d.tagName==="?xml"||this.options.ignorePiTags)){const _=new Oa(d.tagName);_.add(this.options.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&(_[":@"]=this.buildAttributesMap(d.tagExp,u,d.tagName)),this.addChild(a,_,u,h)}h=d.closeIndex+1}else if(e.substr(h+1,3)==="!--"){const d=Na(e,"-->",h+4,"Comment is not closed.");if(this.options.commentPropName){const _=e.substring(h+4,d-2);r=this.saveTextToParentTag(r,a,u),a.add(this.options.commentPropName,[{[this.options.textNodeName]:_}])}h=d}else if(e.substr(h+1,2)==="!D"){const d=o.readDocType(e,h);this.docTypeEntities=d.entities,h=d.i}else if(e.substr(h+1,2)==="!["){const d=Na(e,"]]>",h,"CDATA is not closed.")-2,_=e.substring(h+9,d);r=this.saveTextToParentTag(r,a,u);let v=this.parseTextData(_,a.tagname,u,!0,!1,!0,!0);v==null&&(v=""),this.options.cdataPropName?a.add(this.options.cdataPropName,[{[this.options.textNodeName]:_}]):a.add(this.options.textNodeName,v),h=d+2}else{let d=kh(e,h,this.options.removeNSPrefix),_=d.tagName;const v=d.rawTagName;let y=d.tagExp,O=d.attrExpPresent,z=d.closeIndex;if(this.options.transformTagName){const A=this.options.transformTagName(_);y===_&&(y=A),_=A}a&&r&&a.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,a,u,!1));const G=a;G&&this.options.unpairedTags.indexOf(G.tagname)!==-1&&(a=this.tagsNodeStack.pop(),u=u.substring(0,u.lastIndexOf("."))),_!==n.tagname&&(u+=u?"."+_:_);const V=h;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,u,_)){let A="";if(y.length>0&&y.lastIndexOf("/")===y.length-1)_[_.length-1]==="/"?(_=_.substr(0,_.length-1),u=u.substr(0,u.length-1),y=_):y=y.substr(0,y.length-1),h=d.closeIndex;else if(this.options.unpairedTags.indexOf(_)!==-1)h=d.closeIndex;else{const N=this.readStopNodeData(e,v,z+1);if(!N)throw new Error(`Unexpected end of ${v}`);h=N.i,A=N.tagContent}const b=new Oa(_);_!==y&&O&&(b[":@"]=this.buildAttributesMap(y,u,_)),A&&(A=this.parseTextData(A,_,u,!0,O,!0,!0)),u=u.substr(0,u.lastIndexOf(".")),b.add(this.options.textNodeName,A),this.addChild(a,b,u,V)}else{if(y.length>0&&y.lastIndexOf("/")===y.length-1){if(_[_.length-1]==="/"?(_=_.substr(0,_.length-1),u=u.substr(0,u.length-1),y=_):y=y.substr(0,y.length-1),this.options.transformTagName){const b=this.options.transformTagName(_);y===_&&(y=b),_=b}const A=new Oa(_);_!==y&&O&&(A[":@"]=this.buildAttributesMap(y,u,_)),this.addChild(a,A,u,V),u=u.substr(0,u.lastIndexOf("."))}else{const A=new Oa(_);this.tagsNodeStack.push(a),_!==y&&O&&(A[":@"]=this.buildAttributesMap(y,u,_)),this.addChild(a,A,u,V),a=A}r="",h=z}}else r+=e[h];return n.child};function q2(e,n,a,r){this.options.captureMetaData||(r=void 0);const u=this.options.updateTag(n.tagname,a,n[":@"]);u===!1||(typeof u=="string"&&(n.tagname=u),e.addChild(n,r))}const G2=function(e,n,a){if(e.indexOf("&")===-1)return e;const r=this.options.processEntities;if(!r.enabled||r.allowedTags&&!r.allowedTags.includes(n)||r.tagFilter&&!r.tagFilter(n,a))return e;for(let u in this.docTypeEntities){const o=this.docTypeEntities[u],h=e.match(o.regx);if(h){if(this.entityExpansionCount+=h.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);const p=e.length;if(e=e.replace(o.regx,o.val),r.maxExpandedLength&&(this.currentExpandedLength+=e.length-p,this.currentExpandedLength>r.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${r.maxExpandedLength}`)}}if(e.indexOf("&")===-1)return e;for(let u in this.lastEntities){const o=this.lastEntities[u];e=e.replace(o.regex,o.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities)for(let u in this.htmlEntities){const o=this.htmlEntities[u];e=e.replace(o.regex,o.val)}return e=e.replace(this.ampEntity.regex,this.ampEntity.val),e};function H2(e,n,a,r){return e&&(r===void 0&&(r=n.child.length===0),e=this.parseTextData(e,n.tagname,a,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function F2(e,n,a,r){return!!(n&&n.has(r)||e&&e.has(a))}function K2(e,n,a=">"){let r,u="";for(let o=n;o<e.length;o++){let h=e[o];if(r)h===r&&(r="");else if(h==='"'||h==="'")r=h;else if(h===a[0])if(a[1]){if(e[o+1]===a[1])return{data:u,index:o}}else return{data:u,index:o};else h===" "&&(h=" ");u+=h}}function Na(e,n,a,r){const u=e.indexOf(n,a);if(u===-1)throw new Error(r);return u+n.length-1}function kh(e,n,a,r=">"){const u=K2(e,n+1,r);if(!u)return;let o=u.data;const h=u.index,p=o.search(/\s/);let d=o,_=!0;p!==-1&&(d=o.substring(0,p),o=o.substring(p+1).trimStart());const v=d;if(a){const y=d.indexOf(":");y!==-1&&(d=d.substr(y+1),_=d!==u.data.substr(y+1))}return{tagName:d,tagExp:o,closeIndex:h,attrExpPresent:_,rawTagName:v}}function V2(e,n,a){const r=a;let u=1;for(;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="/"){const o=Na(e,">",a,`${n} is not closed`);if(e.substring(a+2,o).trim()===n&&(u--,u===0))return{tagContent:e.substring(r,a),i:o};a=o}else if(e[a+1]==="?")a=Na(e,"?>",a+1,"StopNode is not closed.");else if(e.substr(a+1,3)==="!--")a=Na(e,"-->",a+3,"StopNode is not closed.");else if(e.substr(a+1,2)==="![")a=Na(e,"]]>",a,"StopNode is not closed.")-2;else{const o=kh(e,a,">");o&&((o&&o.tagName)===n&&o.tagExp[o.tagExp.length-1]!=="/"&&u++,a=o.closeIndex)}}function Uh(e,n,a){if(n&&typeof e=="string"){const r=e.trim();return r==="true"?!0:r==="false"?!1:C2(e,a)}else return d2(e)?e:""}function zy(e,n,a){const r=Number.parseInt(e,n);return r>=0&&r<=1114111?String.fromCodePoint(r):a+e+";"}const nh=Oa.getMetaDataSymbol();function Y2(e,n){return zv(e,n)}function zv(e,n,a){let r;const u={};for(let o=0;o<e.length;o++){const h=e[o],p=X2(h);let d="";if(a===void 0?d=p:d=a+"."+p,p===n.textNodeName)r===void 0?r=h[p]:r+=""+h[p];else{if(p===void 0)continue;if(h[p]){let _=zv(h[p],n,d);const v=Z2(_,n);h[nh]!==void 0&&(_[nh]=h[nh]),h[":@"]?Q2(_,h[":@"],d,n):Object.keys(_).length===1&&_[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?_=_[n.textNodeName]:Object.keys(_).length===0&&(n.alwaysCreateTextNode?_[n.textNodeName]="":_=""),u[p]!==void 0&&u.hasOwnProperty(p)?(Array.isArray(u[p])||(u[p]=[u[p]]),u[p].push(_)):n.isArray(p,d,v)?u[p]=[_]:u[p]=_}}}return typeof r=="string"?r.length>0&&(u[n.textNodeName]=r):r!==void 0&&(u[n.textNodeName]=r),u}function X2(e){const n=Object.keys(e);for(let a=0;a<n.length;a++){const r=n[a];if(r!==":@")return r}}function Q2(e,n,a,r){if(n){const u=Object.keys(n),o=u.length;for(let h=0;h<o;h++){const p=u[h];r.isArray(p,a+"."+p,!0,!0)?e[p]=[n[p]]:e[p]=n[p]}}}function Z2(e,n){const{textNodeName:a}=n,r=Object.keys(e).length;return!!(r===0||r===1&&(e[a]||typeof e[a]=="boolean"||e[a]===0))}class W2{constructor(n){this.externalEntities={},this.options=O2(n)}parse(n,a){if(typeof n!="string"&&n.toString)n=n.toString();else if(typeof n!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(a){a===!0&&(a={});const o=_2(n,a);if(o!==!0)throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}const r=new I2(this.options);r.addExternalEntities(this.externalEntities);const u=r.parseXml(n);return this.options.preserveOrder||u===void 0?u:Y2(u,this.options)}addEntity(n,a){if(a.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(a==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=a}static getMetaDataSymbol(){return Oa.getMetaDataSymbol()}}const J2=`
130
- `;function tL(e,n){let a="";return n.format&&n.indentBy.length>0&&(a=J2),Bv(e,n,"",a)}function Bv(e,n,a,r){let u="",o=!1;for(let h=0;h<e.length;h++){const p=e[h],d=eL(p);if(d===void 0)continue;let _="";if(a.length===0?_=d:_=`${a}.${d}`,d===n.textNodeName){let G=p[d];nL(_,n)||(G=n.tagValueProcessor(d,G),G=jv(G,n)),o&&(u+=r),u+=G,o=!1;continue}else if(d===n.cdataPropName){o&&(u+=r),u+=`<![CDATA[${p[d][0][n.textNodeName]}]]>`,o=!1;continue}else if(d===n.commentPropName){u+=r+`<!--${p[d][0][n.textNodeName]}-->`,o=!0;continue}else if(d[0]==="?"){const G=By(p[":@"],n),V=d==="?xml"?"":r;let A=p[d][0][n.textNodeName];A=A.length!==0?" "+A:"",u+=V+`<${d}${A}${G}?>`,o=!0;continue}let v=r;v!==""&&(v+=n.indentBy);const y=By(p[":@"],n),O=r+`<${d}${y}`,z=Bv(p[d],n,_,v);n.unpairedTags.indexOf(d)!==-1?n.suppressUnpairedNode?u+=O+">":u+=O+"/>":(!z||z.length===0)&&n.suppressEmptyNode?u+=O+"/>":z&&z.endsWith(">")?u+=O+`>${z}${r}</${d}>`:(u+=O+">",z&&r!==""&&(z.includes("/>")||z.includes("</"))?u+=r+n.indentBy+z+r:u+=z,u+=`</${d}>`),o=!0}return u}function eL(e){const n=Object.keys(e);for(let a=0;a<n.length;a++){const r=n[a];if(e.hasOwnProperty(r)&&r!==":@")return r}}function By(e,n){let a="";if(e&&!n.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let u=n.attributeValueProcessor(r,e[r]);u=jv(u,n),u===!0&&n.suppressBooleanAttributes?a+=` ${r.substr(n.attributeNamePrefix.length)}`:a+=` ${r.substr(n.attributeNamePrefix.length)}="${u}"`}return a}function nL(e,n){e=e.substr(0,e.length-n.textNodeName.length-1);let a=e.substr(e.lastIndexOf(".")+1);for(let r in n.stopNodes)if(n.stopNodes[r]===e||n.stopNodes[r]==="*."+a)return!0;return!1}function jv(e,n){if(e&&e.length>0&&n.processEntities)for(let a=0;a<n.entities.length;a++){const r=n.entities[a];e=e.replace(r.regex,r.val)}return e}const iL={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Ni(e){this.options=Object.assign({},iL,e),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=Iv(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=rL),this.processTextOrObjNode=aL,this.options.format?(this.indentate=sL,this.tagEndChar=`>
126
+ For further details.`);this.skipValidations=yt(a,"skipValidations")?a.skipValidations:Si.skipValidations}}nl.DEFER_DEFINITION_ERRORS_HANDLING=!1;u2(nl,[BC,PC,WC,JC,e2,t2,n2,i2,s2,l2]);class o2 extends nl{constructor(n,a=Si){const r=Ce(a);r.outputCst=!0,super(n,r)}}const Mv=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",c2=Mv+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f2="["+Mv+"]["+c2+"]*",h2=new RegExp("^"+f2+"$");function kv(e,n){const a=[];let r=n.exec(e);for(;r;){const u=[];u.startIndex=n.lastIndex-r[0].length;const o=r.length;for(let h=0;h<o;h++)u.push(r[h]);a.push(u),r=n.exec(e)}return a}const Ao=function(e){const n=h2.exec(e);return!(n===null||typeof n>"u")};function d2(e){return typeof e<"u"}const p2={allowBooleanAttributes:!1,unpairedTags:[]};function _2(e,n){n=Object.assign({},p2,n);const a=[];let r=!1,u=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let o=0;o<e.length;o++)if(e[o]==="<"&&e[o+1]==="?"){if(o+=2,o=ky(e,o),o.err)return o}else if(e[o]==="<"){let h=o;if(o++,e[o]==="!"){o=Iy(e,o);continue}else{let p=!1;e[o]==="/"&&(p=!0,o++);let d="";for(;o<e.length&&e[o]!==">"&&e[o]!==" "&&e[o]!==" "&&e[o]!==`
127
+ `&&e[o]!=="\r";o++)d+=e[o];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),o--),!S2(d)){let y;return d.trim().length===0?y="Invalid space after '<'.":y="Tag '"+d+"' is an invalid name.",ce("InvalidTag",y,Ue(e,o))}const _=y2(e,o);if(_===!1)return ce("InvalidAttr","Attributes for '"+d+"' have open quote.",Ue(e,o));let v=_.value;if(o=_.index,v[v.length-1]==="/"){const y=o-v.length;v=v.substring(0,v.length-1);const O=Uy(v,n);if(O===!0)r=!0;else return ce(O.err.code,O.err.msg,Ue(e,y+O.err.line))}else if(p)if(_.tagClosed){if(v.trim().length>0)return ce("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",Ue(e,h));if(a.length===0)return ce("InvalidTag","Closing tag '"+d+"' has not been opened.",Ue(e,h));{const y=a.pop();if(d!==y.tagName){let O=Ue(e,y.tagStartPos);return ce("InvalidTag","Expected closing tag '"+y.tagName+"' (opened in line "+O.line+", col "+O.col+") instead of closing tag '"+d+"'.",Ue(e,h))}a.length==0&&(u=!0)}}else return ce("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",Ue(e,o));else{const y=Uy(v,n);if(y!==!0)return ce(y.err.code,y.err.msg,Ue(e,o-v.length+y.err.line));if(u===!0)return ce("InvalidXml","Multiple possible root nodes found.",Ue(e,o));n.unpairedTags.indexOf(d)!==-1||a.push({tagName:d,tagStartPos:h}),r=!0}for(o++;o<e.length;o++)if(e[o]==="<")if(e[o+1]==="!"){o++,o=Iy(e,o);continue}else if(e[o+1]==="?"){if(o=ky(e,++o),o.err)return o}else break;else if(e[o]==="&"){const y=b2(e,o);if(y==-1)return ce("InvalidChar","char '&' is not expected.",Ue(e,o));o=y}else if(u===!0&&!My(e[o]))return ce("InvalidXml","Extra text at the end",Ue(e,o));e[o]==="<"&&o--}}else{if(My(e[o]))continue;return ce("InvalidChar","char '"+e[o]+"' is not expected.",Ue(e,o))}if(r){if(a.length==1)return ce("InvalidTag","Unclosed tag '"+a[0].tagName+"'.",Ue(e,a[0].tagStartPos));if(a.length>0)return ce("InvalidXml","Invalid '"+JSON.stringify(a.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ce("InvalidXml","Start tag expected.",1);return!0}function My(e){return e===" "||e===" "||e===`
128
+ `||e==="\r"}function ky(e,n){const a=n;for(;n<e.length;n++)if(e[n]=="?"||e[n]==" "){const r=e.substr(a,n-a);if(n>5&&r==="xml")return ce("InvalidXml","XML declaration allowed only at the start of the document.",Ue(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function Iy(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n<e.length;n++)if(e[n]==="-"&&e[n+1]==="-"&&e[n+2]===">"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let a=1;for(n+=8;n<e.length;n++)if(e[n]==="<")a++;else if(e[n]===">"&&(a--,a===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n<e.length;n++)if(e[n]==="]"&&e[n+1]==="]"&&e[n+2]===">"){n+=2;break}}return n}const m2='"',g2="'";function y2(e,n){let a="",r="",u=!1;for(;n<e.length;n++){if(e[n]===m2||e[n]===g2)r===""?r=e[n]:r!==e[n]||(r="");else if(e[n]===">"&&r===""){u=!0;break}a+=e[n]}return r!==""?!1:{value:a,index:n,tagClosed:u}}const v2=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Uy(e,n){const a=kv(e,v2),r={};for(let u=0;u<a.length;u++){if(a[u][1].length===0)return ce("InvalidAttr","Attribute '"+a[u][2]+"' has no space in starting.",Mr(a[u]));if(a[u][3]!==void 0&&a[u][4]===void 0)return ce("InvalidAttr","Attribute '"+a[u][2]+"' is without value.",Mr(a[u]));if(a[u][3]===void 0&&!n.allowBooleanAttributes)return ce("InvalidAttr","boolean attribute '"+a[u][2]+"' is not allowed.",Mr(a[u]));const o=a[u][2];if(!T2(o))return ce("InvalidAttr","Attribute '"+o+"' is an invalid name.",Mr(a[u]));if(!r.hasOwnProperty(o))r[o]=1;else return ce("InvalidAttr","Attribute '"+o+"' is repeated.",Mr(a[u]))}return!0}function E2(e,n){let a=/\d/;for(e[n]==="x"&&(n++,a=/[\da-fA-F]/);n<e.length;n++){if(e[n]===";")return n;if(!e[n].match(a))break}return-1}function b2(e,n){if(n++,e[n]===";")return-1;if(e[n]==="#")return n++,E2(e,n);let a=0;for(;n<e.length;n++,a++)if(!(e[n].match(/\w/)&&a<20)){if(e[n]===";")break;return-1}return n}function ce(e,n,a){return{err:{code:e,msg:n,line:a.line||a,col:a.col}}}function T2(e){return Ao(e)}function S2(e){return Ao(e)}function Ue(e,n){const a=e.substring(0,n).split(/\r?\n/);return{line:a.length,col:a[a.length-1].length+1}}function Mr(e){return e.startIndex+e[1].length}const A2={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,a){return e},captureMetaData:!1};function Iv(e){return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:e.maxEntitySize??1e4,maxExpansionDepth:e.maxExpansionDepth??10,maxTotalExpansions:e.maxTotalExpansions??1e3,maxExpandedLength:e.maxExpandedLength??1e5,allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:Iv(!0)}const O2=function(e){const n=Object.assign({},A2,e);return n.processEntities=Iv(n.processEntities),n};let eo;typeof Symbol!="function"?eo="@@xmlMetadata":eo=Symbol("XML Node Metadata");class Oa{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,a){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:a})}addChild(n,a){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child}),a!==void 0&&(this.child[this.child.length-1][eo]={startIndex:a})}static getMetaDataSymbol(){return eo}}class x2{constructor(n){this.suppressValidationErr=!n,this.options=n}readDocType(n,a){const r={};if(n[a+3]==="O"&&n[a+4]==="C"&&n[a+5]==="T"&&n[a+6]==="Y"&&n[a+7]==="P"&&n[a+8]==="E"){a=a+9;let u=1,o=!1,h=!1,p="";for(;a<n.length;a++)if(n[a]==="<"&&!h){if(o&&Aa(n,"!ENTITY",a)){a+=7;let d,_;if([d,_,a]=this.readEntityExp(n,a+1,this.suppressValidationErr),_.indexOf("&")===-1){const v=d.replace(/[.\-+*:]/g,"\\.");r[d]={regx:RegExp(`&${v};`,"g"),val:_}}}else if(o&&Aa(n,"!ELEMENT",a)){a+=8;const{index:d}=this.readElementExp(n,a+1);a=d}else if(o&&Aa(n,"!ATTLIST",a))a+=8;else if(o&&Aa(n,"!NOTATION",a)){a+=9;const{index:d}=this.readNotationExp(n,a+1,this.suppressValidationErr);a=d}else if(Aa(n,"!--",a))h=!0;else throw new Error("Invalid DOCTYPE");u++,p=""}else if(n[a]===">"){if(h?n[a-1]==="-"&&n[a-2]==="-"&&(h=!1,u--):u--,u===0)break}else n[a]==="["?o=!0:p+=n[a];if(u!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:a}}readEntityExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a])&&n[a]!=='"'&&n[a]!=="'";)r+=n[a],a++;if(kr(r),a=Ke(n,a),!this.suppressValidationErr){if(n.substring(a,a+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(n[a]==="%")throw new Error("Parameter entities are not supported")}let u="";if([a,u]=this.readIdentifierVal(n,a,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize&&u.length>this.options.maxEntitySize)throw new Error(`Entity "${r}" size (${u.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return a--,[r,u,a]}readNotationExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a]);)r+=n[a],a++;!this.suppressValidationErr&&kr(r),a=Ke(n,a);const u=n.substring(a,a+6).toUpperCase();if(!this.suppressValidationErr&&u!=="SYSTEM"&&u!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${u}"`);a+=u.length,a=Ke(n,a);let o=null,h=null;if(u==="PUBLIC")[a,o]=this.readIdentifierVal(n,a,"publicIdentifier"),a=Ke(n,a),(n[a]==='"'||n[a]==="'")&&([a,h]=this.readIdentifierVal(n,a,"systemIdentifier"));else if(u==="SYSTEM"&&([a,h]=this.readIdentifierVal(n,a,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:r,publicIdentifier:o,systemIdentifier:h,index:--a}}readIdentifierVal(n,a,r){let u="";const o=n[a];if(o!=='"'&&o!=="'")throw new Error(`Expected quoted string, found "${o}"`);for(a++;a<n.length&&n[a]!==o;)u+=n[a],a++;if(n[a]!==o)throw new Error(`Unterminated ${r} value`);return a++,[a,u]}readElementExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a]);)r+=n[a],a++;if(!this.suppressValidationErr&&!Ao(r))throw new Error(`Invalid element name: "${r}"`);a=Ke(n,a);let u="";if(n[a]==="E"&&Aa(n,"MPTY",a))a+=4;else if(n[a]==="A"&&Aa(n,"NY",a))a+=2;else if(n[a]==="("){for(a++;a<n.length&&n[a]!==")";)u+=n[a],a++;if(n[a]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${n[a]}"`);return{elementName:r,contentModel:u.trim(),index:a}}readAttlistExp(n,a){a=Ke(n,a);let r="";for(;a<n.length&&!/\s/.test(n[a]);)r+=n[a],a++;kr(r),a=Ke(n,a);let u="";for(;a<n.length&&!/\s/.test(n[a]);)u+=n[a],a++;if(!kr(u))throw new Error(`Invalid attribute name: "${u}"`);a=Ke(n,a);let o="";if(n.substring(a,a+8).toUpperCase()==="NOTATION"){if(o="NOTATION",a+=8,a=Ke(n,a),n[a]!=="(")throw new Error(`Expected '(', found "${n[a]}"`);a++;let p=[];for(;a<n.length&&n[a]!==")";){let d="";for(;a<n.length&&n[a]!=="|"&&n[a]!==")";)d+=n[a],a++;if(d=d.trim(),!kr(d))throw new Error(`Invalid notation name: "${d}"`);p.push(d),n[a]==="|"&&(a++,a=Ke(n,a))}if(n[a]!==")")throw new Error("Unterminated list of notations");a++,o+=" ("+p.join("|")+")"}else{for(;a<n.length&&!/\s/.test(n[a]);)o+=n[a],a++;const p=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!p.includes(o.toUpperCase()))throw new Error(`Invalid attribute type: "${o}"`)}a=Ke(n,a);let h="";return n.substring(a,a+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",a+=8):n.substring(a,a+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",a+=7):[a,h]=this.readIdentifierVal(n,a,"ATTLIST"),{elementName:r,attributeName:u,attributeType:o,defaultValue:h,index:a}}}const Ke=(e,n)=>{for(;n<e.length&&/\s/.test(e[n]);)n++;return n};function Aa(e,n,a){for(let r=0;r<n.length;r++)if(n[r]!==e[a+r+1])return!1;return!0}function kr(e){if(Ao(e))return e;throw new Error(`Invalid entity name ${e}`)}const N2=/^[-+]?0x[a-fA-F0-9]+$/,R2=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,w2={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function C2(e,n={}){if(n=Object.assign({},w2,n),!e||typeof e!="string")return e;let a=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(a))return e;if(e==="0")return 0;if(n.hex&&N2.test(a))return I2(a,16);if(a.includes("e")||a.includes("E"))return M2(e,a,n);{const r=R2.exec(a);if(r){const u=r[1]||"",o=r[2];let h=k2(r[3]);const p=u?e[o.length+1]===".":e[o.length]===".";if(!n.leadingZeros&&(o.length>1||o.length===1&&!p))return e;{const d=Number(a),_=String(d);if(d===0)return d;if(_.search(/[eE]/)!==-1)return n.eNotation?d:e;if(a.indexOf(".")!==-1)return _==="0"||_===h||_===`${u}${h}`?d:e;let v=o?h:a;return o?v===_||u+v===_?d:e:v===_||v===u+_?d:e}}else return e}}const L2=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function M2(e,n,a){if(!a.eNotation)return e;const r=n.match(L2);if(r){let u=r[1]||"";const o=r[3].indexOf("e")===-1?"E":"e",h=r[2],p=u?e[h.length+1]===o:e[h.length]===o;return h.length>1&&p?e:h.length===1&&(r[3].startsWith(`.${o}`)||r[3][0]===o)?Number(n):a.leadingZeros&&!p?(n=(r[1]||"")+r[3],Number(n)):e}else return e}function k2(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substring(0,e.length-1))),e}function I2(e,n){if(parseInt)return parseInt(e,n);if(Number.parseInt)return Number.parseInt(e,n);if(window&&window.parseInt)return window.parseInt(e,n);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function Uv(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const a of e)if(typeof a=="string"&&n===a||a instanceof RegExp&&a.test(n))return!0}:()=>!1}class U2{constructor(n){if(this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(a,r)=>zy(r,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(a,r)=>zy(r,16,"&#x")}},this.addExternalEntities=z2,this.parseXml=P2,this.parseTextData=B2,this.resolveNameSpace=j2,this.buildAttributesMap=$2,this.isItStopNode=F2,this.replaceEntitiesValue=G2,this.readStopNodeData=V2,this.saveTextToParentTag=H2,this.addChild=q2,this.ignoreAttributesFn=Uv(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let a=0;a<this.options.stopNodes.length;a++){const r=this.options.stopNodes[a];typeof r=="string"&&(r.startsWith("*.")?this.stopNodesWildcard.add(r.substring(2)):this.stopNodesExact.add(r))}}}}function z2(e){const n=Object.keys(e);for(let a=0;a<n.length;a++){const r=n[a],u=r.replace(/[.\-+*:]/g,"\\.");this.lastEntities[r]={regex:new RegExp("&"+u+";","g"),val:e[r]}}}function B2(e,n,a,r,u,o,h){if(e!==void 0&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){h||(e=this.replaceEntitiesValue(e,n,a));const p=this.options.tagValueProcessor(n,e,a,u,o);return p==null?e:typeof p!=typeof e||p!==e?p:this.options.trimValues?Ih(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Ih(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function j2(e){if(this.options.removeNSPrefix){const n=e.split(":"),a=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=a+n[1])}return e}const D2=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function $2(e,n,a){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const r=kv(e,D2),u=r.length,o={};for(let h=0;h<u;h++){const p=this.resolveNameSpace(r[h][1]);if(this.ignoreAttributesFn(p,n))continue;let d=r[h][4],_=this.options.attributeNamePrefix+p;if(p.length)if(this.options.transformAttributeName&&(_=this.options.transformAttributeName(_)),_==="__proto__"&&(_="#__proto__"),d!==void 0){this.options.trimValues&&(d=d.trim()),d=this.replaceEntitiesValue(d,a,n);const v=this.options.attributeValueProcessor(p,d,n);v==null?o[_]=d:typeof v!=typeof d||v!==d?o[_]=v:o[_]=Ih(d,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[_]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const h={};return h[this.options.attributesGroupName]=o,h}return o}}const P2=function(e){e=e.replace(/\r\n?/g,`
129
+ `);const n=new Oa("!xml");let a=n,r="",u="";this.entityExpansionCount=0,this.currentExpandedLength=0;const o=new x2(this.options.processEntities);for(let h=0;h<e.length;h++)if(e[h]==="<")if(e[h+1]==="/"){const d=Na(e,">",h,"Closing Tag is not closed.");let _=e.substring(h+2,d).trim();if(this.options.removeNSPrefix){const O=_.indexOf(":");O!==-1&&(_=_.substr(O+1))}this.options.transformTagName&&(_=this.options.transformTagName(_)),a&&(r=this.saveTextToParentTag(r,a,u));const v=u.substring(u.lastIndexOf(".")+1);if(_&&this.options.unpairedTags.indexOf(_)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${_}>`);let y=0;v&&this.options.unpairedTags.indexOf(v)!==-1?(y=u.lastIndexOf(".",u.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=u.lastIndexOf("."),u=u.substring(0,y),a=this.tagsNodeStack.pop(),r="",h=d}else if(e[h+1]==="?"){let d=kh(e,h,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,a,u),!(this.options.ignoreDeclaration&&d.tagName==="?xml"||this.options.ignorePiTags)){const _=new Oa(d.tagName);_.add(this.options.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&(_[":@"]=this.buildAttributesMap(d.tagExp,u,d.tagName)),this.addChild(a,_,u,h)}h=d.closeIndex+1}else if(e.substr(h+1,3)==="!--"){const d=Na(e,"-->",h+4,"Comment is not closed.");if(this.options.commentPropName){const _=e.substring(h+4,d-2);r=this.saveTextToParentTag(r,a,u),a.add(this.options.commentPropName,[{[this.options.textNodeName]:_}])}h=d}else if(e.substr(h+1,2)==="!D"){const d=o.readDocType(e,h);this.docTypeEntities=d.entities,h=d.i}else if(e.substr(h+1,2)==="!["){const d=Na(e,"]]>",h,"CDATA is not closed.")-2,_=e.substring(h+9,d);r=this.saveTextToParentTag(r,a,u);let v=this.parseTextData(_,a.tagname,u,!0,!1,!0,!0);v==null&&(v=""),this.options.cdataPropName?a.add(this.options.cdataPropName,[{[this.options.textNodeName]:_}]):a.add(this.options.textNodeName,v),h=d+2}else{let d=kh(e,h,this.options.removeNSPrefix),_=d.tagName;const v=d.rawTagName;let y=d.tagExp,O=d.attrExpPresent,z=d.closeIndex;if(this.options.transformTagName){const A=this.options.transformTagName(_);y===_&&(y=A),_=A}a&&r&&a.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,a,u,!1));const G=a;G&&this.options.unpairedTags.indexOf(G.tagname)!==-1&&(a=this.tagsNodeStack.pop(),u=u.substring(0,u.lastIndexOf("."))),_!==n.tagname&&(u+=u?"."+_:_);const V=h;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,u,_)){let A="";if(y.length>0&&y.lastIndexOf("/")===y.length-1)_[_.length-1]==="/"?(_=_.substr(0,_.length-1),u=u.substr(0,u.length-1),y=_):y=y.substr(0,y.length-1),h=d.closeIndex;else if(this.options.unpairedTags.indexOf(_)!==-1)h=d.closeIndex;else{const N=this.readStopNodeData(e,v,z+1);if(!N)throw new Error(`Unexpected end of ${v}`);h=N.i,A=N.tagContent}const b=new Oa(_);_!==y&&O&&(b[":@"]=this.buildAttributesMap(y,u,_)),A&&(A=this.parseTextData(A,_,u,!0,O,!0,!0)),u=u.substr(0,u.lastIndexOf(".")),b.add(this.options.textNodeName,A),this.addChild(a,b,u,V)}else{if(y.length>0&&y.lastIndexOf("/")===y.length-1){if(_[_.length-1]==="/"?(_=_.substr(0,_.length-1),u=u.substr(0,u.length-1),y=_):y=y.substr(0,y.length-1),this.options.transformTagName){const b=this.options.transformTagName(_);y===_&&(y=b),_=b}const A=new Oa(_);_!==y&&O&&(A[":@"]=this.buildAttributesMap(y,u,_)),this.addChild(a,A,u,V),u=u.substr(0,u.lastIndexOf("."))}else{const A=new Oa(_);this.tagsNodeStack.push(a),_!==y&&O&&(A[":@"]=this.buildAttributesMap(y,u,_)),this.addChild(a,A,u,V),a=A}r="",h=z}}else r+=e[h];return n.child};function q2(e,n,a,r){this.options.captureMetaData||(r=void 0);const u=this.options.updateTag(n.tagname,a,n[":@"]);u===!1||(typeof u=="string"&&(n.tagname=u),e.addChild(n,r))}const G2=function(e,n,a){if(e.indexOf("&")===-1)return e;const r=this.options.processEntities;if(!r.enabled||r.allowedTags&&!r.allowedTags.includes(n)||r.tagFilter&&!r.tagFilter(n,a))return e;for(let u in this.docTypeEntities){const o=this.docTypeEntities[u],h=e.match(o.regx);if(h){if(this.entityExpansionCount+=h.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);const p=e.length;if(e=e.replace(o.regx,o.val),r.maxExpandedLength&&(this.currentExpandedLength+=e.length-p,this.currentExpandedLength>r.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${r.maxExpandedLength}`)}}if(e.indexOf("&")===-1)return e;for(let u in this.lastEntities){const o=this.lastEntities[u];e=e.replace(o.regex,o.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities)for(let u in this.htmlEntities){const o=this.htmlEntities[u];e=e.replace(o.regex,o.val)}return e=e.replace(this.ampEntity.regex,this.ampEntity.val),e};function H2(e,n,a,r){return e&&(r===void 0&&(r=n.child.length===0),e=this.parseTextData(e,n.tagname,a,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function F2(e,n,a,r){return!!(n&&n.has(r)||e&&e.has(a))}function K2(e,n,a=">"){let r,u="";for(let o=n;o<e.length;o++){let h=e[o];if(r)h===r&&(r="");else if(h==='"'||h==="'")r=h;else if(h===a[0])if(a[1]){if(e[o+1]===a[1])return{data:u,index:o}}else return{data:u,index:o};else h===" "&&(h=" ");u+=h}}function Na(e,n,a,r){const u=e.indexOf(n,a);if(u===-1)throw new Error(r);return u+n.length-1}function kh(e,n,a,r=">"){const u=K2(e,n+1,r);if(!u)return;let o=u.data;const h=u.index,p=o.search(/\s/);let d=o,_=!0;p!==-1&&(d=o.substring(0,p),o=o.substring(p+1).trimStart());const v=d;if(a){const y=d.indexOf(":");y!==-1&&(d=d.substr(y+1),_=d!==u.data.substr(y+1))}return{tagName:d,tagExp:o,closeIndex:h,attrExpPresent:_,rawTagName:v}}function V2(e,n,a){const r=a;let u=1;for(;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="/"){const o=Na(e,">",a,`${n} is not closed`);if(e.substring(a+2,o).trim()===n&&(u--,u===0))return{tagContent:e.substring(r,a),i:o};a=o}else if(e[a+1]==="?")a=Na(e,"?>",a+1,"StopNode is not closed.");else if(e.substr(a+1,3)==="!--")a=Na(e,"-->",a+3,"StopNode is not closed.");else if(e.substr(a+1,2)==="![")a=Na(e,"]]>",a,"StopNode is not closed.")-2;else{const o=kh(e,a,">");o&&((o&&o.tagName)===n&&o.tagExp[o.tagExp.length-1]!=="/"&&u++,a=o.closeIndex)}}function Ih(e,n,a){if(n&&typeof e=="string"){const r=e.trim();return r==="true"?!0:r==="false"?!1:C2(e,a)}else return d2(e)?e:""}function zy(e,n,a){const r=Number.parseInt(e,n);return r>=0&&r<=1114111?String.fromCodePoint(r):a+e+";"}const nh=Oa.getMetaDataSymbol();function Y2(e,n){return zv(e,n)}function zv(e,n,a){let r;const u={};for(let o=0;o<e.length;o++){const h=e[o],p=X2(h);let d="";if(a===void 0?d=p:d=a+"."+p,p===n.textNodeName)r===void 0?r=h[p]:r+=""+h[p];else{if(p===void 0)continue;if(h[p]){let _=zv(h[p],n,d);const v=Z2(_,n);h[nh]!==void 0&&(_[nh]=h[nh]),h[":@"]?Q2(_,h[":@"],d,n):Object.keys(_).length===1&&_[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?_=_[n.textNodeName]:Object.keys(_).length===0&&(n.alwaysCreateTextNode?_[n.textNodeName]="":_=""),u[p]!==void 0&&u.hasOwnProperty(p)?(Array.isArray(u[p])||(u[p]=[u[p]]),u[p].push(_)):n.isArray(p,d,v)?u[p]=[_]:u[p]=_}}}return typeof r=="string"?r.length>0&&(u[n.textNodeName]=r):r!==void 0&&(u[n.textNodeName]=r),u}function X2(e){const n=Object.keys(e);for(let a=0;a<n.length;a++){const r=n[a];if(r!==":@")return r}}function Q2(e,n,a,r){if(n){const u=Object.keys(n),o=u.length;for(let h=0;h<o;h++){const p=u[h];r.isArray(p,a+"."+p,!0,!0)?e[p]=[n[p]]:e[p]=n[p]}}}function Z2(e,n){const{textNodeName:a}=n,r=Object.keys(e).length;return!!(r===0||r===1&&(e[a]||typeof e[a]=="boolean"||e[a]===0))}class W2{constructor(n){this.externalEntities={},this.options=O2(n)}parse(n,a){if(typeof n!="string"&&n.toString)n=n.toString();else if(typeof n!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(a){a===!0&&(a={});const o=_2(n,a);if(o!==!0)throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}const r=new U2(this.options);r.addExternalEntities(this.externalEntities);const u=r.parseXml(n);return this.options.preserveOrder||u===void 0?u:Y2(u,this.options)}addEntity(n,a){if(a.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(a==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=a}static getMetaDataSymbol(){return Oa.getMetaDataSymbol()}}const J2=`
130
+ `;function tL(e,n){let a="";return n.format&&n.indentBy.length>0&&(a=J2),Bv(e,n,"",a)}function Bv(e,n,a,r){let u="",o=!1;for(let h=0;h<e.length;h++){const p=e[h],d=eL(p);if(d===void 0)continue;let _="";if(a.length===0?_=d:_=`${a}.${d}`,d===n.textNodeName){let G=p[d];nL(_,n)||(G=n.tagValueProcessor(d,G),G=jv(G,n)),o&&(u+=r),u+=G,o=!1;continue}else if(d===n.cdataPropName){o&&(u+=r),u+=`<![CDATA[${p[d][0][n.textNodeName]}]]>`,o=!1;continue}else if(d===n.commentPropName){u+=r+`<!--${p[d][0][n.textNodeName]}-->`,o=!0;continue}else if(d[0]==="?"){const G=By(p[":@"],n),V=d==="?xml"?"":r;let A=p[d][0][n.textNodeName];A=A.length!==0?" "+A:"",u+=V+`<${d}${A}${G}?>`,o=!0;continue}let v=r;v!==""&&(v+=n.indentBy);const y=By(p[":@"],n),O=r+`<${d}${y}`,z=Bv(p[d],n,_,v);n.unpairedTags.indexOf(d)!==-1?n.suppressUnpairedNode?u+=O+">":u+=O+"/>":(!z||z.length===0)&&n.suppressEmptyNode?u+=O+"/>":z&&z.endsWith(">")?u+=O+`>${z}${r}</${d}>`:(u+=O+">",z&&r!==""&&(z.includes("/>")||z.includes("</"))?u+=r+n.indentBy+z+r:u+=z,u+=`</${d}>`),o=!0}return u}function eL(e){const n=Object.keys(e);for(let a=0;a<n.length;a++){const r=n[a];if(e.hasOwnProperty(r)&&r!==":@")return r}}function By(e,n){let a="";if(e&&!n.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let u=n.attributeValueProcessor(r,e[r]);u=jv(u,n),u===!0&&n.suppressBooleanAttributes?a+=` ${r.substr(n.attributeNamePrefix.length)}`:a+=` ${r.substr(n.attributeNamePrefix.length)}="${u}"`}return a}function nL(e,n){e=e.substr(0,e.length-n.textNodeName.length-1);let a=e.substr(e.lastIndexOf(".")+1);for(let r in n.stopNodes)if(n.stopNodes[r]===e||n.stopNodes[r]==="*."+a)return!0;return!1}function jv(e,n){if(e&&e.length>0&&n.processEntities)for(let a=0;a<n.entities.length;a++){const r=n.entities[a];e=e.replace(r.regex,r.val)}return e}const iL={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Ni(e){this.options=Object.assign({},iL,e),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=Uv(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=rL),this.processTextOrObjNode=aL,this.options.format?(this.indentate=sL,this.tagEndChar=`>
131
131
  `,this.newLine=`
132
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ni.prototype.build=function(e){return this.options.preserveOrder?tL(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)};Ni.prototype.j2x=function(e,n,a){let r="",u="";const o=a.join(".");for(let h in e)if(Object.prototype.hasOwnProperty.call(e,h))if(typeof e[h]>"u")this.isAttribute(h)&&(u+="");else if(e[h]===null)this.isAttribute(h)||h===this.options.cdataPropName?u+="":h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(e[h]instanceof Date)u+=this.buildTextValNode(e[h],h,"",n);else if(typeof e[h]!="object"){const p=this.isAttribute(h);if(p&&!this.ignoreAttributesFn(p,o))r+=this.buildAttrPairStr(p,""+e[h]);else if(!p)if(h===this.options.textNodeName){let d=this.options.tagValueProcessor(h,""+e[h]);u+=this.replaceEntitiesValue(d)}else u+=this.buildTextValNode(e[h],h,"",n)}else if(Array.isArray(e[h])){const p=e[h].length;let d="",_="";for(let v=0;v<p;v++){const y=e[h][v];if(!(typeof y>"u"))if(y===null)h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){const O=this.j2x(y,n+1,a.concat(h));d+=O.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(_+=O.attrStr)}else d+=this.processTextOrObjNode(y,h,n,a);else if(this.options.oneListGroup){let O=this.options.tagValueProcessor(h,y);O=this.replaceEntitiesValue(O),d+=O}else d+=this.buildTextValNode(y,h,"",n)}this.options.oneListGroup&&(d=this.buildObjectNode(d,h,_,n)),u+=d}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const p=Object.keys(e[h]),d=p.length;for(let _=0;_<d;_++)r+=this.buildAttrPairStr(p[_],""+e[h][p[_]])}else u+=this.processTextOrObjNode(e[h],h,n,a);return{attrStr:r,val:u}};Ni.prototype.buildAttrPairStr=function(e,n){return n=this.options.attributeValueProcessor(e,""+n),n=this.replaceEntitiesValue(n),this.options.suppressBooleanAttributes&&n==="true"?" "+e:" "+e+'="'+n+'"'};function aL(e,n,a,r){const u=this.j2x(e,a+1,r.concat(n));return e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],n,u.attrStr,a):this.buildObjectNode(u.val,n,u.attrStr,a)}Ni.prototype.buildObjectNode=function(e,n,a,r){if(e==="")return n[0]==="?"?this.indentate(r)+"<"+n+a+"?"+this.tagEndChar:this.indentate(r)+"<"+n+a+this.closeTag(n)+this.tagEndChar;{let u="</"+n+this.tagEndChar,o="";return n[0]==="?"&&(o="?",u=""),(a||a==="")&&e.indexOf("<")===-1?this.indentate(r)+"<"+n+a+o+">"+e+u:this.options.commentPropName!==!1&&n===this.options.commentPropName&&o.length===0?this.indentate(r)+`<!--${e}-->`+this.newLine:this.indentate(r)+"<"+n+a+o+this.tagEndChar+e+this.indentate(r)+u}};Ni.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`></${e}`,n};Ni.prototype.buildTextValNode=function(e,n,a,r){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+`<!--${e}-->`+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+a+"?"+this.tagEndChar;{let u=this.options.tagValueProcessor(n,e);return u=this.replaceEntitiesValue(u),u===""?this.indentate(r)+"<"+n+a+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+a+">"+u+"</"+n+this.tagEndChar}};Ni.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){const a=this.options.entities[n];e=e.replace(a.regex,a.val)}return e};function sL(e){return this.options.indentBy.repeat(e)}function rL(e){return e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName?e.substr(this.attrPrefixLen):!1}var $u={exports:{}};var lL=$u.exports,jy;function uL(){return jy||(jy=1,(function(e,n){((a,r)=>{e.exports=r()})(lL,function a(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},u,o=!r.document&&!!r.postMessage,h=r.IS_PAPA_WORKER||!1,p={},d=0,_={};function v(E){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(S){var g=Z(S);g.chunkSize=parseInt(g.chunkSize),S.step||S.chunk||(g.chunkSize=null),this._handle=new V(g),(this._handle.streamer=this)._config=g}).call(this,E),this.parseChunk=function(S,g){var L=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<L){let W=this._config.newline;W||(M=this._config.quoteChar||'"',W=this._handle.guessLineEndings(S,M)),S=[...S.split(W).slice(L)].join(W)}this.isFirstChunk&&w(this._config.beforeFirstChunk)&&(M=this._config.beforeFirstChunk(S))!==void 0&&(S=M),this.isFirstChunk=!1,this._halted=!1;var L=this._partialLine+S,M=(this._partialLine="",this._handle.parse(L,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(S=M.meta.cursor,L=(this._finished||(this._partialLine=L.substring(S-this._baseIndex),this._baseIndex=S),M&&M.data&&(this._rowCount+=M.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),h)r.postMessage({results:M,workerId:_.WORKER_ID,finished:L});else if(w(this._config.chunk)&&!g){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=M=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!L||!w(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),L||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(S){w(this._config.error)?this._config.error(S):h&&this._config.error&&r.postMessage({workerId:_.WORKER_ID,error:S,finished:!1})}}function y(E){var S;(E=E||{}).chunkSize||(E.chunkSize=_.RemoteChunkSize),v.call(this,E),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(g){this._input=g,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(S=new XMLHttpRequest,this._config.withCredentials&&(S.withCredentials=this._config.withCredentials),o||(S.onload=I(this._chunkLoaded,this),S.onerror=I(this._chunkError,this)),S.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var g,L=this._config.downloadRequestHeaders;for(g in L)S.setRequestHeader(g,L[g])}var M;this._config.chunkSize&&(M=this._start+this._config.chunkSize-1,S.setRequestHeader("Range","bytes="+this._start+"-"+M));try{S.send(this._config.downloadRequestBody)}catch(W){this._chunkError(W.message)}o&&S.status===0&&this._chunkError()}},this._chunkLoaded=function(){S.readyState===4&&(S.status<200||400<=S.status?this._chunkError():(this._start+=this._config.chunkSize||S.responseText.length,this._finished=!this._config.chunkSize||this._start>=(g=>(g=g.getResponseHeader("Content-Range"))!==null?parseInt(g.substring(g.lastIndexOf("/")+1)):-1)(S),this.parseChunk(S.responseText)))},this._chunkError=function(g){g=S.statusText||g,this._sendError(new Error(g))}}function O(E){(E=E||{}).chunkSize||(E.chunkSize=_.LocalChunkSize),v.call(this,E);var S,g,L=typeof FileReader<"u";this.stream=function(M){this._input=M,g=M.slice||M.webkitSlice||M.mozSlice,L?((S=new FileReader).onload=I(this._chunkLoaded,this),S.onerror=I(this._chunkError,this)):S=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var M=this._input,W=(this._config.chunkSize&&(W=Math.min(this._start+this._config.chunkSize,this._input.size),M=g.call(M,this._start,W)),S.readAsText(M,this._config.encoding));L||this._chunkLoaded({target:{result:W}})},this._chunkLoaded=function(M){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(M.target.result)},this._chunkError=function(){this._sendError(S.error)}}function z(E){var S;v.call(this,E=E||{}),this.stream=function(g){return S=g,this._nextChunk()},this._nextChunk=function(){var g,L;if(!this._finished)return g=this._config.chunkSize,S=g?(L=S.substring(0,g),S.substring(g)):(L=S,""),this._finished=!S,this.parseChunk(L)}}function G(E){v.call(this,E=E||{});var S=[],g=!0,L=!1;this.pause=function(){v.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){v.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(M){this._input=M,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){L&&S.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),S.length?this.parseChunk(S.shift()):g=!0},this._streamData=I(function(M){try{S.push(typeof M=="string"?M:M.toString(this._config.encoding)),g&&(g=!1,this._checkIsFinished(),this.parseChunk(S.shift()))}catch(W){this._streamError(W)}},this),this._streamError=I(function(M){this._streamCleanUp(),this._sendError(M)},this),this._streamEnd=I(function(){this._streamCleanUp(),L=!0,this._streamData("")},this),this._streamCleanUp=I(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function V(E){var S,g,L,M,W=Math.pow(2,53),at=-W,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,k=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,K=this,nt=0,tt=0,_t=!1,x=!1,D=[],F={data:[],errors:[],meta:{}};function J(ct){return E.skipEmptyLines==="greedy"?ct.join("").trim()==="":ct.length===1&&ct[0].length===0}function lt(){if(F&&L&&(ht("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+_.DefaultDelimiter+"'"),L=!1),E.skipEmptyLines&&(F.data=F.data.filter(function(Nt){return!J(Nt)})),st()){let Nt=function(Pt,Ct){w(E.transformHeader)&&(Pt=E.transformHeader(Pt,Ct)),D.push(Pt)};var mt=Nt;if(F)if(Array.isArray(F.data[0])){for(var ct=0;st()&&ct<F.data.length;ct++)F.data[ct].forEach(Nt);F.data.splice(0,1)}else F.data.forEach(Nt)}function rt(Nt,Pt){for(var Ct=E.header?{}:[],kt=0;kt<Nt.length;kt++){var At=kt,Ee=Nt[kt],Ee=((It,Ht)=>(ee=>(E.dynamicTypingFunction&&E.dynamicTyping[ee]===void 0&&(E.dynamicTyping[ee]=E.dynamicTypingFunction(ee)),(E.dynamicTyping[ee]||E.dynamicTyping)===!0))(It)?Ht==="true"||Ht==="TRUE"||Ht!=="false"&&Ht!=="FALSE"&&((ee=>{if(it.test(ee)&&(ee=parseFloat(ee),at<ee&&ee<W))return 1})(Ht)?parseFloat(Ht):k.test(Ht)?new Date(Ht):Ht===""?null:Ht):Ht)(At=E.header?kt>=D.length?"__parsed_extra":D[kt]:At,Ee=E.transform?E.transform(Ee,At):Ee);At==="__parsed_extra"?(Ct[At]=Ct[At]||[],Ct[At].push(Ee)):Ct[At]=Ee}return E.header&&(kt>D.length?ht("FieldMismatch","TooManyFields","Too many fields: expected "+D.length+" fields but parsed "+kt,tt+Pt):kt<D.length&&ht("FieldMismatch","TooFewFields","Too few fields: expected "+D.length+" fields but parsed "+kt,tt+Pt)),Ct}var xt;F&&(E.header||E.dynamicTyping||E.transform)&&(xt=1,!F.data.length||Array.isArray(F.data[0])?(F.data=F.data.map(rt),xt=F.data.length):F.data=rt(F.data,0),E.header&&F.meta&&(F.meta.fields=D),tt+=xt)}function st(){return E.header&&D.length===0}function ht(ct,rt,xt,mt){ct={type:ct,code:rt,message:xt},mt!==void 0&&(ct.row=mt),F.errors.push(ct)}w(E.step)&&(M=E.step,E.step=function(ct){F=ct,st()?lt():(lt(),F.data.length!==0&&(nt+=ct.data.length,E.preview&&nt>E.preview?g.abort():(F.data=F.data[0],M(F,K))))}),this.parse=function(ct,rt,xt){var mt=E.quoteChar||'"',mt=(E.newline||(E.newline=this.guessLineEndings(ct,mt)),L=!1,E.delimiter?w(E.delimiter)&&(E.delimiter=E.delimiter(ct),F.meta.delimiter=E.delimiter):((mt=((Nt,Pt,Ct,kt,At)=>{var Ee,It,Ht,ee;At=At||[","," ","|",";",_.RECORD_SEP,_.UNIT_SEP];for(var qn=0;qn<At.length;qn++){for(var fn,sa=At[qn],$t=0,hn=0,le=0,Se=(Ht=void 0,new b({comments:kt,delimiter:sa,newline:Pt,preview:10}).parse(Nt)),je=0;je<Se.data.length;je++)Ct&&J(Se.data[je])?le++:(fn=Se.data[je].length,hn+=fn,Ht===void 0?Ht=fn:0<fn&&($t+=Math.abs(fn-Ht),Ht=fn));0<Se.data.length&&(hn/=Se.data.length-le),(It===void 0||$t<=It)&&(ee===void 0||ee<hn)&&1.99<hn&&(It=$t,Ee=sa,ee=hn)}return{successful:!!(E.delimiter=Ee),bestDelimiter:Ee}})(ct,E.newline,E.skipEmptyLines,E.comments,E.delimitersToGuess)).successful?E.delimiter=mt.bestDelimiter:(L=!0,E.delimiter=_.DefaultDelimiter),F.meta.delimiter=E.delimiter),Z(E));return E.preview&&E.header&&mt.preview++,S=ct,g=new b(mt),F=g.parse(S,rt,xt),lt(),_t?{meta:{paused:!0}}:F||{meta:{paused:!1}}},this.paused=function(){return _t},this.pause=function(){_t=!0,g.abort(),S=w(E.chunk)?"":S.substring(g.getCharIndex())},this.resume=function(){K.streamer._halted?(_t=!1,K.streamer.parseChunk(S,!0)):setTimeout(K.resume,3)},this.aborted=function(){return x},this.abort=function(){x=!0,g.abort(),F.meta.aborted=!0,w(E.complete)&&E.complete(F),S=""},this.guessLineEndings=function(Nt,mt){Nt=Nt.substring(0,1048576);var mt=new RegExp(A(mt)+"([^]*?)"+A(mt),"gm"),xt=(Nt=Nt.replace(mt,"")).split("\r"),mt=Nt.split(`
132
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ni.prototype.build=function(e){return this.options.preserveOrder?tL(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)};Ni.prototype.j2x=function(e,n,a){let r="",u="";const o=a.join(".");for(let h in e)if(Object.prototype.hasOwnProperty.call(e,h))if(typeof e[h]>"u")this.isAttribute(h)&&(u+="");else if(e[h]===null)this.isAttribute(h)||h===this.options.cdataPropName?u+="":h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(e[h]instanceof Date)u+=this.buildTextValNode(e[h],h,"",n);else if(typeof e[h]!="object"){const p=this.isAttribute(h);if(p&&!this.ignoreAttributesFn(p,o))r+=this.buildAttrPairStr(p,""+e[h]);else if(!p)if(h===this.options.textNodeName){let d=this.options.tagValueProcessor(h,""+e[h]);u+=this.replaceEntitiesValue(d)}else u+=this.buildTextValNode(e[h],h,"",n)}else if(Array.isArray(e[h])){const p=e[h].length;let d="",_="";for(let v=0;v<p;v++){const y=e[h][v];if(!(typeof y>"u"))if(y===null)h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){const O=this.j2x(y,n+1,a.concat(h));d+=O.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(_+=O.attrStr)}else d+=this.processTextOrObjNode(y,h,n,a);else if(this.options.oneListGroup){let O=this.options.tagValueProcessor(h,y);O=this.replaceEntitiesValue(O),d+=O}else d+=this.buildTextValNode(y,h,"",n)}this.options.oneListGroup&&(d=this.buildObjectNode(d,h,_,n)),u+=d}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const p=Object.keys(e[h]),d=p.length;for(let _=0;_<d;_++)r+=this.buildAttrPairStr(p[_],""+e[h][p[_]])}else u+=this.processTextOrObjNode(e[h],h,n,a);return{attrStr:r,val:u}};Ni.prototype.buildAttrPairStr=function(e,n){return n=this.options.attributeValueProcessor(e,""+n),n=this.replaceEntitiesValue(n),this.options.suppressBooleanAttributes&&n==="true"?" "+e:" "+e+'="'+n+'"'};function aL(e,n,a,r){const u=this.j2x(e,a+1,r.concat(n));return e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],n,u.attrStr,a):this.buildObjectNode(u.val,n,u.attrStr,a)}Ni.prototype.buildObjectNode=function(e,n,a,r){if(e==="")return n[0]==="?"?this.indentate(r)+"<"+n+a+"?"+this.tagEndChar:this.indentate(r)+"<"+n+a+this.closeTag(n)+this.tagEndChar;{let u="</"+n+this.tagEndChar,o="";return n[0]==="?"&&(o="?",u=""),(a||a==="")&&e.indexOf("<")===-1?this.indentate(r)+"<"+n+a+o+">"+e+u:this.options.commentPropName!==!1&&n===this.options.commentPropName&&o.length===0?this.indentate(r)+`<!--${e}-->`+this.newLine:this.indentate(r)+"<"+n+a+o+this.tagEndChar+e+this.indentate(r)+u}};Ni.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`></${e}`,n};Ni.prototype.buildTextValNode=function(e,n,a,r){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+`<!--${e}-->`+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+a+"?"+this.tagEndChar;{let u=this.options.tagValueProcessor(n,e);return u=this.replaceEntitiesValue(u),u===""?this.indentate(r)+"<"+n+a+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+a+">"+u+"</"+n+this.tagEndChar}};Ni.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){const a=this.options.entities[n];e=e.replace(a.regex,a.val)}return e};function sL(e){return this.options.indentBy.repeat(e)}function rL(e){return e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName?e.substr(this.attrPrefixLen):!1}var $u={exports:{}};var lL=$u.exports,jy;function uL(){return jy||(jy=1,(function(e,n){((a,r)=>{e.exports=r()})(lL,function a(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},u,o=!r.document&&!!r.postMessage,h=r.IS_PAPA_WORKER||!1,p={},d=0,_={};function v(E){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(S){var g=Z(S);g.chunkSize=parseInt(g.chunkSize),S.step||S.chunk||(g.chunkSize=null),this._handle=new V(g),(this._handle.streamer=this)._config=g}).call(this,E),this.parseChunk=function(S,g){var L=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<L){let W=this._config.newline;W||(M=this._config.quoteChar||'"',W=this._handle.guessLineEndings(S,M)),S=[...S.split(W).slice(L)].join(W)}this.isFirstChunk&&w(this._config.beforeFirstChunk)&&(M=this._config.beforeFirstChunk(S))!==void 0&&(S=M),this.isFirstChunk=!1,this._halted=!1;var L=this._partialLine+S,M=(this._partialLine="",this._handle.parse(L,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(S=M.meta.cursor,L=(this._finished||(this._partialLine=L.substring(S-this._baseIndex),this._baseIndex=S),M&&M.data&&(this._rowCount+=M.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),h)r.postMessage({results:M,workerId:_.WORKER_ID,finished:L});else if(w(this._config.chunk)&&!g){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=M=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!L||!w(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),L||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(S){w(this._config.error)?this._config.error(S):h&&this._config.error&&r.postMessage({workerId:_.WORKER_ID,error:S,finished:!1})}}function y(E){var S;(E=E||{}).chunkSize||(E.chunkSize=_.RemoteChunkSize),v.call(this,E),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(g){this._input=g,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(S=new XMLHttpRequest,this._config.withCredentials&&(S.withCredentials=this._config.withCredentials),o||(S.onload=U(this._chunkLoaded,this),S.onerror=U(this._chunkError,this)),S.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var g,L=this._config.downloadRequestHeaders;for(g in L)S.setRequestHeader(g,L[g])}var M;this._config.chunkSize&&(M=this._start+this._config.chunkSize-1,S.setRequestHeader("Range","bytes="+this._start+"-"+M));try{S.send(this._config.downloadRequestBody)}catch(W){this._chunkError(W.message)}o&&S.status===0&&this._chunkError()}},this._chunkLoaded=function(){S.readyState===4&&(S.status<200||400<=S.status?this._chunkError():(this._start+=this._config.chunkSize||S.responseText.length,this._finished=!this._config.chunkSize||this._start>=(g=>(g=g.getResponseHeader("Content-Range"))!==null?parseInt(g.substring(g.lastIndexOf("/")+1)):-1)(S),this.parseChunk(S.responseText)))},this._chunkError=function(g){g=S.statusText||g,this._sendError(new Error(g))}}function O(E){(E=E||{}).chunkSize||(E.chunkSize=_.LocalChunkSize),v.call(this,E);var S,g,L=typeof FileReader<"u";this.stream=function(M){this._input=M,g=M.slice||M.webkitSlice||M.mozSlice,L?((S=new FileReader).onload=U(this._chunkLoaded,this),S.onerror=U(this._chunkError,this)):S=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var M=this._input,W=(this._config.chunkSize&&(W=Math.min(this._start+this._config.chunkSize,this._input.size),M=g.call(M,this._start,W)),S.readAsText(M,this._config.encoding));L||this._chunkLoaded({target:{result:W}})},this._chunkLoaded=function(M){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(M.target.result)},this._chunkError=function(){this._sendError(S.error)}}function z(E){var S;v.call(this,E=E||{}),this.stream=function(g){return S=g,this._nextChunk()},this._nextChunk=function(){var g,L;if(!this._finished)return g=this._config.chunkSize,S=g?(L=S.substring(0,g),S.substring(g)):(L=S,""),this._finished=!S,this.parseChunk(L)}}function G(E){v.call(this,E=E||{});var S=[],g=!0,L=!1;this.pause=function(){v.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){v.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(M){this._input=M,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){L&&S.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),S.length?this.parseChunk(S.shift()):g=!0},this._streamData=U(function(M){try{S.push(typeof M=="string"?M:M.toString(this._config.encoding)),g&&(g=!1,this._checkIsFinished(),this.parseChunk(S.shift()))}catch(W){this._streamError(W)}},this),this._streamError=U(function(M){this._streamCleanUp(),this._sendError(M)},this),this._streamEnd=U(function(){this._streamCleanUp(),L=!0,this._streamData("")},this),this._streamCleanUp=U(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function V(E){var S,g,L,M,W=Math.pow(2,53),at=-W,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,k=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,K=this,nt=0,tt=0,_t=!1,x=!1,D=[],F={data:[],errors:[],meta:{}};function J(ct){return E.skipEmptyLines==="greedy"?ct.join("").trim()==="":ct.length===1&&ct[0].length===0}function lt(){if(F&&L&&(ht("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+_.DefaultDelimiter+"'"),L=!1),E.skipEmptyLines&&(F.data=F.data.filter(function(Nt){return!J(Nt)})),st()){let Nt=function(Pt,Ct){w(E.transformHeader)&&(Pt=E.transformHeader(Pt,Ct)),D.push(Pt)};var mt=Nt;if(F)if(Array.isArray(F.data[0])){for(var ct=0;st()&&ct<F.data.length;ct++)F.data[ct].forEach(Nt);F.data.splice(0,1)}else F.data.forEach(Nt)}function rt(Nt,Pt){for(var Ct=E.header?{}:[],kt=0;kt<Nt.length;kt++){var At=kt,Ee=Nt[kt],Ee=((Ut,Ht)=>(ee=>(E.dynamicTypingFunction&&E.dynamicTyping[ee]===void 0&&(E.dynamicTyping[ee]=E.dynamicTypingFunction(ee)),(E.dynamicTyping[ee]||E.dynamicTyping)===!0))(Ut)?Ht==="true"||Ht==="TRUE"||Ht!=="false"&&Ht!=="FALSE"&&((ee=>{if(it.test(ee)&&(ee=parseFloat(ee),at<ee&&ee<W))return 1})(Ht)?parseFloat(Ht):k.test(Ht)?new Date(Ht):Ht===""?null:Ht):Ht)(At=E.header?kt>=D.length?"__parsed_extra":D[kt]:At,Ee=E.transform?E.transform(Ee,At):Ee);At==="__parsed_extra"?(Ct[At]=Ct[At]||[],Ct[At].push(Ee)):Ct[At]=Ee}return E.header&&(kt>D.length?ht("FieldMismatch","TooManyFields","Too many fields: expected "+D.length+" fields but parsed "+kt,tt+Pt):kt<D.length&&ht("FieldMismatch","TooFewFields","Too few fields: expected "+D.length+" fields but parsed "+kt,tt+Pt)),Ct}var xt;F&&(E.header||E.dynamicTyping||E.transform)&&(xt=1,!F.data.length||Array.isArray(F.data[0])?(F.data=F.data.map(rt),xt=F.data.length):F.data=rt(F.data,0),E.header&&F.meta&&(F.meta.fields=D),tt+=xt)}function st(){return E.header&&D.length===0}function ht(ct,rt,xt,mt){ct={type:ct,code:rt,message:xt},mt!==void 0&&(ct.row=mt),F.errors.push(ct)}w(E.step)&&(M=E.step,E.step=function(ct){F=ct,st()?lt():(lt(),F.data.length!==0&&(nt+=ct.data.length,E.preview&&nt>E.preview?g.abort():(F.data=F.data[0],M(F,K))))}),this.parse=function(ct,rt,xt){var mt=E.quoteChar||'"',mt=(E.newline||(E.newline=this.guessLineEndings(ct,mt)),L=!1,E.delimiter?w(E.delimiter)&&(E.delimiter=E.delimiter(ct),F.meta.delimiter=E.delimiter):((mt=((Nt,Pt,Ct,kt,At)=>{var Ee,Ut,Ht,ee;At=At||[","," ","|",";",_.RECORD_SEP,_.UNIT_SEP];for(var qn=0;qn<At.length;qn++){for(var fn,sa=At[qn],$t=0,hn=0,le=0,Se=(Ht=void 0,new b({comments:kt,delimiter:sa,newline:Pt,preview:10}).parse(Nt)),je=0;je<Se.data.length;je++)Ct&&J(Se.data[je])?le++:(fn=Se.data[je].length,hn+=fn,Ht===void 0?Ht=fn:0<fn&&($t+=Math.abs(fn-Ht),Ht=fn));0<Se.data.length&&(hn/=Se.data.length-le),(Ut===void 0||$t<=Ut)&&(ee===void 0||ee<hn)&&1.99<hn&&(Ut=$t,Ee=sa,ee=hn)}return{successful:!!(E.delimiter=Ee),bestDelimiter:Ee}})(ct,E.newline,E.skipEmptyLines,E.comments,E.delimitersToGuess)).successful?E.delimiter=mt.bestDelimiter:(L=!0,E.delimiter=_.DefaultDelimiter),F.meta.delimiter=E.delimiter),Z(E));return E.preview&&E.header&&mt.preview++,S=ct,g=new b(mt),F=g.parse(S,rt,xt),lt(),_t?{meta:{paused:!0}}:F||{meta:{paused:!1}}},this.paused=function(){return _t},this.pause=function(){_t=!0,g.abort(),S=w(E.chunk)?"":S.substring(g.getCharIndex())},this.resume=function(){K.streamer._halted?(_t=!1,K.streamer.parseChunk(S,!0)):setTimeout(K.resume,3)},this.aborted=function(){return x},this.abort=function(){x=!0,g.abort(),F.meta.aborted=!0,w(E.complete)&&E.complete(F),S=""},this.guessLineEndings=function(Nt,mt){Nt=Nt.substring(0,1048576);var mt=new RegExp(A(mt)+"([^]*?)"+A(mt),"gm"),xt=(Nt=Nt.replace(mt,"")).split("\r"),mt=Nt.split(`
133
133
  `),Nt=1<mt.length&&mt[0].length<xt[0].length;if(xt.length===1||Nt)return`
134
134
  `;for(var Pt=0,Ct=0;Ct<xt.length;Ct++)xt[Ct][0]===`
135
135
  `&&Pt++;return Pt>=xt.length/2?`\r
136
136
  `:"\r"}}function A(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(E){var S=(E=E||{}).delimiter,g=E.newline,L=E.comments,M=E.step,W=E.preview,at=E.fastMode,it=null,k=!1,K=E.quoteChar==null?'"':E.quoteChar,nt=K;if(E.escapeChar!==void 0&&(nt=E.escapeChar),(typeof S!="string"||-1<_.BAD_DELIMITERS.indexOf(S))&&(S=","),L===S)throw new Error("Comment character same as delimiter");L===!0?L="#":(typeof L!="string"||-1<_.BAD_DELIMITERS.indexOf(L))&&(L=!1),g!==`
137
137
  `&&g!=="\r"&&g!==`\r
138
138
  `&&(g=`
139
- `);var tt=0,_t=!1;this.parse=function(x,D,F){if(typeof x!="string")throw new Error("Input must be a string");var J=x.length,lt=S.length,st=g.length,ht=L.length,ct=w(M),rt=[],xt=[],mt=[],Nt=tt=0;if(!x)return $t();if(at||at!==!1&&x.indexOf(K)===-1){for(var Pt=x.split(g),Ct=0;Ct<Pt.length;Ct++){if(mt=Pt[Ct],tt+=mt.length,Ct!==Pt.length-1)tt+=g.length;else if(F)return $t();if(!L||mt.substring(0,ht)!==L){if(ct){if(rt=[],ee(mt.split(S)),hn(),_t)return $t()}else ee(mt.split(S));if(W&&W<=Ct)return rt=rt.slice(0,W),$t(!0)}}return $t()}for(var kt=x.indexOf(S,tt),At=x.indexOf(g,tt),Ee=new RegExp(A(nt)+A(K),"g"),It=x.indexOf(K,tt);;)if(x[tt]===K)for(It=tt,tt++;;){if((It=x.indexOf(K,It+1))===-1)return F||xt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:rt.length,index:tt}),fn();if(It===J-1)return fn(x.substring(tt,It).replace(Ee,K));if(K===nt&&x[It+1]===nt)It++;else if(K===nt||It===0||x[It-1]!==nt){kt!==-1&&kt<It+1&&(kt=x.indexOf(S,It+1));var Ht=qn((At=At!==-1&&At<It+1?x.indexOf(g,It+1):At)===-1?kt:Math.min(kt,At));if(x.substr(It+1+Ht,lt)===S){mt.push(x.substring(tt,It).replace(Ee,K)),x[tt=It+1+Ht+lt]!==K&&(It=x.indexOf(K,tt)),kt=x.indexOf(S,tt),At=x.indexOf(g,tt);break}if(Ht=qn(At),x.substring(It+1+Ht,It+1+Ht+st)===g){if(mt.push(x.substring(tt,It).replace(Ee,K)),sa(It+1+Ht+st),kt=x.indexOf(S,tt),It=x.indexOf(K,tt),ct&&(hn(),_t))return $t();if(W&&rt.length>=W)return $t(!0);break}xt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:rt.length,index:tt}),It++}}else if(L&&mt.length===0&&x.substring(tt,tt+ht)===L){if(At===-1)return $t();tt=At+st,At=x.indexOf(g,tt),kt=x.indexOf(S,tt)}else if(kt!==-1&&(kt<At||At===-1))mt.push(x.substring(tt,kt)),tt=kt+lt,kt=x.indexOf(S,tt);else{if(At===-1)break;if(mt.push(x.substring(tt,At)),sa(At+st),ct&&(hn(),_t))return $t();if(W&&rt.length>=W)return $t(!0)}return fn();function ee(le){rt.push(le),Nt=tt}function qn(le){var Se=0;return Se=le!==-1&&(le=x.substring(It+1,le))&&le.trim()===""?le.length:Se}function fn(le){return F||(le===void 0&&(le=x.substring(tt)),mt.push(le),tt=J,ee(mt),ct&&hn()),$t()}function sa(le){tt=le,ee(mt),mt=[],At=x.indexOf(g,tt)}function $t(le){if(E.header&&!D&&rt.length&&!k){var Se=rt[0],je=Object.create(null),Us=new Set(Se);let Is=!1;for(let Ri=0;Ri<Se.length;Ri++){let dn=Se[Ri];if(je[dn=w(E.transformHeader)?E.transformHeader(dn,Ri):dn]){let Cn,Le=je[dn];for(;Cn=dn+"_"+Le,Le++,Us.has(Cn););Us.add(Cn),Se[Ri]=Cn,je[dn]++,Is=!0,(it=it===null?{}:it)[Cn]=dn}else je[dn]=1,Se[Ri]=dn;Us.add(dn)}Is&&console.warn("Duplicate headers found and renamed."),k=!0}return{data:rt,errors:xt,meta:{delimiter:S,linebreak:g,aborted:_t,truncated:!!le,cursor:Nt+(D||0),renamedHeaders:it}}}function hn(){M($t()),rt=[],xt=[]}},this.abort=function(){_t=!0},this.getCharIndex=function(){return tt}}function N(E){var S=E.data,g=p[S.workerId],L=!1;if(S.error)g.userError(S.error,S.file);else if(S.results&&S.results.data){var M={abort:function(){L=!0,P(S.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:B,resume:B};if(w(g.userStep)){for(var W=0;W<S.results.data.length&&(g.userStep({data:S.results.data[W],errors:S.results.errors,meta:S.results.meta},M),!L);W++);delete S.results}else w(g.userChunk)&&(g.userChunk(S.results,M,S.file),delete S.results)}S.finished&&!L&&P(S.workerId,S.results)}function P(E,S){var g=p[E];w(g.userComplete)&&g.userComplete(S),g.terminate(),delete p[E]}function B(){throw new Error("Not implemented.")}function Z(E){if(typeof E!="object"||E===null)return E;var S,g=Array.isArray(E)?[]:{};for(S in E)g[S]=Z(E[S]);return g}function I(E,S){return function(){E.apply(S,arguments)}}function w(E){return typeof E=="function"}return _.parse=function(E,S){var g=(S=S||{}).dynamicTyping||!1;if(w(g)&&(S.dynamicTypingFunction=g,g={}),S.dynamicTyping=g,S.transform=!!w(S.transform)&&S.transform,!S.worker||!_.WORKERS_SUPPORTED)return g=null,_.NODE_STREAM_INPUT,typeof E=="string"?(E=(L=>L.charCodeAt(0)!==65279?L:L.slice(1))(E),g=new(S.download?y:z)(S)):E.readable===!0&&w(E.read)&&w(E.on)?g=new G(S):(r.File&&E instanceof File||E instanceof Object)&&(g=new O(S)),g.stream(E);(g=(()=>{var L;return!!_.WORKERS_SUPPORTED&&(L=(()=>{var M=r.URL||r.webkitURL||null,W=a.toString();return _.BLOB_URL||(_.BLOB_URL=M.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",W,")();"],{type:"text/javascript"})))})(),(L=new r.Worker(L)).onmessage=N,L.id=d++,p[L.id]=L)})()).userStep=S.step,g.userChunk=S.chunk,g.userComplete=S.complete,g.userError=S.error,S.step=w(S.step),S.chunk=w(S.chunk),S.complete=w(S.complete),S.error=w(S.error),delete S.worker,g.postMessage({input:E,config:S,workerId:g.id})},_.unparse=function(E,S){var g=!1,L=!0,M=",",W=`\r
139
+ `);var tt=0,_t=!1;this.parse=function(x,D,F){if(typeof x!="string")throw new Error("Input must be a string");var J=x.length,lt=S.length,st=g.length,ht=L.length,ct=w(M),rt=[],xt=[],mt=[],Nt=tt=0;if(!x)return $t();if(at||at!==!1&&x.indexOf(K)===-1){for(var Pt=x.split(g),Ct=0;Ct<Pt.length;Ct++){if(mt=Pt[Ct],tt+=mt.length,Ct!==Pt.length-1)tt+=g.length;else if(F)return $t();if(!L||mt.substring(0,ht)!==L){if(ct){if(rt=[],ee(mt.split(S)),hn(),_t)return $t()}else ee(mt.split(S));if(W&&W<=Ct)return rt=rt.slice(0,W),$t(!0)}}return $t()}for(var kt=x.indexOf(S,tt),At=x.indexOf(g,tt),Ee=new RegExp(A(nt)+A(K),"g"),Ut=x.indexOf(K,tt);;)if(x[tt]===K)for(Ut=tt,tt++;;){if((Ut=x.indexOf(K,Ut+1))===-1)return F||xt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:rt.length,index:tt}),fn();if(Ut===J-1)return fn(x.substring(tt,Ut).replace(Ee,K));if(K===nt&&x[Ut+1]===nt)Ut++;else if(K===nt||Ut===0||x[Ut-1]!==nt){kt!==-1&&kt<Ut+1&&(kt=x.indexOf(S,Ut+1));var Ht=qn((At=At!==-1&&At<Ut+1?x.indexOf(g,Ut+1):At)===-1?kt:Math.min(kt,At));if(x.substr(Ut+1+Ht,lt)===S){mt.push(x.substring(tt,Ut).replace(Ee,K)),x[tt=Ut+1+Ht+lt]!==K&&(Ut=x.indexOf(K,tt)),kt=x.indexOf(S,tt),At=x.indexOf(g,tt);break}if(Ht=qn(At),x.substring(Ut+1+Ht,Ut+1+Ht+st)===g){if(mt.push(x.substring(tt,Ut).replace(Ee,K)),sa(Ut+1+Ht+st),kt=x.indexOf(S,tt),Ut=x.indexOf(K,tt),ct&&(hn(),_t))return $t();if(W&&rt.length>=W)return $t(!0);break}xt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:rt.length,index:tt}),Ut++}}else if(L&&mt.length===0&&x.substring(tt,tt+ht)===L){if(At===-1)return $t();tt=At+st,At=x.indexOf(g,tt),kt=x.indexOf(S,tt)}else if(kt!==-1&&(kt<At||At===-1))mt.push(x.substring(tt,kt)),tt=kt+lt,kt=x.indexOf(S,tt);else{if(At===-1)break;if(mt.push(x.substring(tt,At)),sa(At+st),ct&&(hn(),_t))return $t();if(W&&rt.length>=W)return $t(!0)}return fn();function ee(le){rt.push(le),Nt=tt}function qn(le){var Se=0;return Se=le!==-1&&(le=x.substring(Ut+1,le))&&le.trim()===""?le.length:Se}function fn(le){return F||(le===void 0&&(le=x.substring(tt)),mt.push(le),tt=J,ee(mt),ct&&hn()),$t()}function sa(le){tt=le,ee(mt),mt=[],At=x.indexOf(g,tt)}function $t(le){if(E.header&&!D&&rt.length&&!k){var Se=rt[0],je=Object.create(null),Is=new Set(Se);let Us=!1;for(let Ri=0;Ri<Se.length;Ri++){let dn=Se[Ri];if(je[dn=w(E.transformHeader)?E.transformHeader(dn,Ri):dn]){let Cn,Le=je[dn];for(;Cn=dn+"_"+Le,Le++,Is.has(Cn););Is.add(Cn),Se[Ri]=Cn,je[dn]++,Us=!0,(it=it===null?{}:it)[Cn]=dn}else je[dn]=1,Se[Ri]=dn;Is.add(dn)}Us&&console.warn("Duplicate headers found and renamed."),k=!0}return{data:rt,errors:xt,meta:{delimiter:S,linebreak:g,aborted:_t,truncated:!!le,cursor:Nt+(D||0),renamedHeaders:it}}}function hn(){M($t()),rt=[],xt=[]}},this.abort=function(){_t=!0},this.getCharIndex=function(){return tt}}function N(E){var S=E.data,g=p[S.workerId],L=!1;if(S.error)g.userError(S.error,S.file);else if(S.results&&S.results.data){var M={abort:function(){L=!0,P(S.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:B,resume:B};if(w(g.userStep)){for(var W=0;W<S.results.data.length&&(g.userStep({data:S.results.data[W],errors:S.results.errors,meta:S.results.meta},M),!L);W++);delete S.results}else w(g.userChunk)&&(g.userChunk(S.results,M,S.file),delete S.results)}S.finished&&!L&&P(S.workerId,S.results)}function P(E,S){var g=p[E];w(g.userComplete)&&g.userComplete(S),g.terminate(),delete p[E]}function B(){throw new Error("Not implemented.")}function Z(E){if(typeof E!="object"||E===null)return E;var S,g=Array.isArray(E)?[]:{};for(S in E)g[S]=Z(E[S]);return g}function U(E,S){return function(){E.apply(S,arguments)}}function w(E){return typeof E=="function"}return _.parse=function(E,S){var g=(S=S||{}).dynamicTyping||!1;if(w(g)&&(S.dynamicTypingFunction=g,g={}),S.dynamicTyping=g,S.transform=!!w(S.transform)&&S.transform,!S.worker||!_.WORKERS_SUPPORTED)return g=null,_.NODE_STREAM_INPUT,typeof E=="string"?(E=(L=>L.charCodeAt(0)!==65279?L:L.slice(1))(E),g=new(S.download?y:z)(S)):E.readable===!0&&w(E.read)&&w(E.on)?g=new G(S):(r.File&&E instanceof File||E instanceof Object)&&(g=new O(S)),g.stream(E);(g=(()=>{var L;return!!_.WORKERS_SUPPORTED&&(L=(()=>{var M=r.URL||r.webkitURL||null,W=a.toString();return _.BLOB_URL||(_.BLOB_URL=M.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",W,")();"],{type:"text/javascript"})))})(),(L=new r.Worker(L)).onmessage=N,L.id=d++,p[L.id]=L)})()).userStep=S.step,g.userChunk=S.chunk,g.userComplete=S.complete,g.userError=S.error,S.step=w(S.step),S.chunk=w(S.chunk),S.complete=w(S.complete),S.error=w(S.error),delete S.worker,g.postMessage({input:E,config:S,workerId:g.id})},_.unparse=function(E,S){var g=!1,L=!0,M=",",W=`\r
140
140
  `,at='"',it=at+at,k=!1,K=null,nt=!1,tt=((()=>{if(typeof S=="object"){if(typeof S.delimiter!="string"||_.BAD_DELIMITERS.filter(function(D){return S.delimiter.indexOf(D)!==-1}).length||(M=S.delimiter),typeof S.quotes!="boolean"&&typeof S.quotes!="function"&&!Array.isArray(S.quotes)||(g=S.quotes),typeof S.skipEmptyLines!="boolean"&&typeof S.skipEmptyLines!="string"||(k=S.skipEmptyLines),typeof S.newline=="string"&&(W=S.newline),typeof S.quoteChar=="string"&&(at=S.quoteChar),typeof S.header=="boolean"&&(L=S.header),Array.isArray(S.columns)){if(S.columns.length===0)throw new Error("Option columns is empty");K=S.columns}S.escapeChar!==void 0&&(it=S.escapeChar+at),S.escapeFormulae instanceof RegExp?nt=S.escapeFormulae:typeof S.escapeFormulae=="boolean"&&S.escapeFormulae&&(nt=/^[=+\-@\t\r].*$/)}})(),new RegExp(A(at),"g"));if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return _t(null,E,k);if(typeof E[0]=="object")return _t(K||Object.keys(E[0]),E,k)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||K),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),_t(E.fields||[],E.data||[],k);throw new Error("Unable to serialize unrecognized input");function _t(D,F,J){var lt="",st=(typeof D=="string"&&(D=JSON.parse(D)),typeof F=="string"&&(F=JSON.parse(F)),Array.isArray(D)&&0<D.length),ht=!Array.isArray(F[0]);if(st&&L){for(var ct=0;ct<D.length;ct++)0<ct&&(lt+=M),lt+=x(D[ct],ct);0<F.length&&(lt+=W)}for(var rt=0;rt<F.length;rt++){var xt=(st?D:F[rt]).length,mt=!1,Nt=st?Object.keys(F[rt]).length===0:F[rt].length===0;if(J&&!st&&(mt=J==="greedy"?F[rt].join("").trim()==="":F[rt].length===1&&F[rt][0].length===0),J==="greedy"&&st){for(var Pt=[],Ct=0;Ct<xt;Ct++){var kt=ht?D[Ct]:Ct;Pt.push(F[rt][kt])}mt=Pt.join("").trim()===""}if(!mt){for(var At=0;At<xt;At++){0<At&&!Nt&&(lt+=M);var Ee=st&&ht?D[At]:At;lt+=x(F[rt][Ee],At)}rt<F.length-1&&(!J||0<xt&&!Nt)&&(lt+=W)}}return lt}function x(D,F){var J,lt;return D==null?"":D.constructor===Date?JSON.stringify(D).slice(1,25):(lt=!1,nt&&typeof D=="string"&&nt.test(D)&&(D="'"+D,lt=!0),J=D.toString().replace(tt,it),(lt=lt||g===!0||typeof g=="function"&&g(D,F)||Array.isArray(g)&&g[F]||((st,ht)=>{for(var ct=0;ct<ht.length;ct++)if(-1<st.indexOf(ht[ct]))return!0;return!1})(J,_.BAD_DELIMITERS)||-1<J.indexOf(M)||J.charAt(0)===" "||J.charAt(J.length-1)===" ")?at+J+at:J)}},_.RECORD_SEP="",_.UNIT_SEP="",_.BYTE_ORDER_MARK="\uFEFF",_.BAD_DELIMITERS=["\r",`
141
- `,'"',_.BYTE_ORDER_MARK],_.WORKERS_SUPPORTED=!o&&!!r.Worker,_.NODE_STREAM_INPUT=1,_.LocalChunkSize=10485760,_.RemoteChunkSize=5242880,_.DefaultDelimiter=",",_.Parser=b,_.ParserHandle=V,_.NetworkStreamer=y,_.FileStreamer=O,_.StringStreamer=z,_.ReadableStreamStreamer=G,r.jQuery&&((u=r.jQuery).fn.parse=function(E){var S=E.config||{},g=[];return this.each(function(W){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var at=0;at<this.files.length;at++)g.push({file:this.files[at],inputElem:this,instanceConfig:u.extend({},S)})}),L(),this;function L(){if(g.length===0)w(E.complete)&&E.complete();else{var W,at,it,k,K=g[0];if(w(E.before)){var nt=E.before(K.file,K.inputElem);if(typeof nt=="object"){if(nt.action==="abort")return W="AbortError",at=K.file,it=K.inputElem,k=nt.reason,void(w(E.error)&&E.error({name:W},at,it,k));if(nt.action==="skip")return void M();typeof nt.config=="object"&&(K.instanceConfig=u.extend(K.instanceConfig,nt.config))}else if(nt==="skip")return void M()}var tt=K.instanceConfig.complete;K.instanceConfig.complete=function(_t){w(tt)&&tt(_t,K.file,K.inputElem),M()},_.parse(K.file,K.instanceConfig)}}function M(){g.splice(0,1),L()}}),h&&(r.onmessage=function(E){E=E.data,_.WORKER_ID===void 0&&E&&(_.WORKER_ID=E.workerId),typeof E.input=="string"?r.postMessage({workerId:_.WORKER_ID,results:_.parse(E.input,E.config),finished:!0}):(r.File&&E.input instanceof File||E.input instanceof Object)&&(E=_.parse(E.input,E.config))&&r.postMessage({workerId:_.WORKER_ID,results:E,finished:!0})}),(y.prototype=Object.create(v.prototype)).constructor=y,(O.prototype=Object.create(v.prototype)).constructor=O,(z.prototype=Object.create(z.prototype)).constructor=z,(G.prototype=Object.create(v.prototype)).constructor=G,_})})($u)),$u.exports}var oL=uL();const Dy=ao(oL);var ih={exports:{}},Ur={},Nu={exports:{}},ah={},sh={},$y;function cd(){if($y)return sh;$y=1;function e(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var r=new e(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},e.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},e.prototype.has_match=function(r){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(r))return!0;return!1},e.prototype.set_indent=function(r,u){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(r){this.__items.push(r);var u=r.lastIndexOf(`
141
+ `,'"',_.BYTE_ORDER_MARK],_.WORKERS_SUPPORTED=!o&&!!r.Worker,_.NODE_STREAM_INPUT=1,_.LocalChunkSize=10485760,_.RemoteChunkSize=5242880,_.DefaultDelimiter=",",_.Parser=b,_.ParserHandle=V,_.NetworkStreamer=y,_.FileStreamer=O,_.StringStreamer=z,_.ReadableStreamStreamer=G,r.jQuery&&((u=r.jQuery).fn.parse=function(E){var S=E.config||{},g=[];return this.each(function(W){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var at=0;at<this.files.length;at++)g.push({file:this.files[at],inputElem:this,instanceConfig:u.extend({},S)})}),L(),this;function L(){if(g.length===0)w(E.complete)&&E.complete();else{var W,at,it,k,K=g[0];if(w(E.before)){var nt=E.before(K.file,K.inputElem);if(typeof nt=="object"){if(nt.action==="abort")return W="AbortError",at=K.file,it=K.inputElem,k=nt.reason,void(w(E.error)&&E.error({name:W},at,it,k));if(nt.action==="skip")return void M();typeof nt.config=="object"&&(K.instanceConfig=u.extend(K.instanceConfig,nt.config))}else if(nt==="skip")return void M()}var tt=K.instanceConfig.complete;K.instanceConfig.complete=function(_t){w(tt)&&tt(_t,K.file,K.inputElem),M()},_.parse(K.file,K.instanceConfig)}}function M(){g.splice(0,1),L()}}),h&&(r.onmessage=function(E){E=E.data,_.WORKER_ID===void 0&&E&&(_.WORKER_ID=E.workerId),typeof E.input=="string"?r.postMessage({workerId:_.WORKER_ID,results:_.parse(E.input,E.config),finished:!0}):(r.File&&E.input instanceof File||E.input instanceof Object)&&(E=_.parse(E.input,E.config))&&r.postMessage({workerId:_.WORKER_ID,results:E,finished:!0})}),(y.prototype=Object.create(v.prototype)).constructor=y,(O.prototype=Object.create(v.prototype)).constructor=O,(z.prototype=Object.create(z.prototype)).constructor=z,(G.prototype=Object.create(v.prototype)).constructor=G,_})})($u)),$u.exports}var oL=uL();const Dy=ao(oL);var ih={exports:{}},Ir={},Nu={exports:{}},ah={},sh={},$y;function cd(){if($y)return sh;$y=1;function e(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var r=new e(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},e.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},e.prototype.has_match=function(r){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(r))return!0;return!1},e.prototype.set_indent=function(r,u){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(r){this.__items.push(r);var u=r.lastIndexOf(`
142
142
  `);u!==-1?this.__character_count=r.length-u:this.__character_count+=r.length},e.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function n(r,u){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),u=u||"",r.indent_level>0&&(u=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}n.prototype.get_indent_size=function(r,u){var o=this.__base_string_length;return u=u||0,r<0&&(o=0),o+=r*this.__indent_size,o+=u,o},n.prototype.get_indent_string=function(r,u){var o=this.__base_string;return u=u||0,r<0&&(r=0,o=""),u+=r*this.__indent_size,this.__ensure_cache(u),o+=this.__cache[u],o},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,u=0,o="";this.__indent_size&&r>=this.__indent_size&&(u=Math.floor(r/this.__indent_size),r-=u*this.__indent_size,o=new Array(u+1).join(this.__indent_string)),r&&(o+=new Array(r+1).join(" ")),this.__cache.push(o)};function a(r,u){this.__indent_cache=new n(r,u),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(r,u){return this.__indent_cache.get_indent_string(r,u)},a.prototype.get_indent_size=function(r,u){return this.__indent_cache.get_indent_size(r,u)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(r){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
143
143
  `&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
144
144
  `);return r!==`
145
145
  `&&(o=o.replace(/[\n]/g,r)),o},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(r,u){return r=r||0,u=u||0,this.next_line.set_indent(r,u),this.__lines.length>1?(this.current_line.set_indent(r,u),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(r){for(var u=0;u<r.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},a.prototype.remove_indent=function(r){for(var u=this.__lines.length;r<u;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(r,u){for(var o=this.__lines.length-2;o>=0;){var h=this.__lines[o];if(h.is_empty())break;if(h.item(0).indexOf(r)!==0&&h.item(-1)!==u){this.__lines.splice(o+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},sh.Output=a,sh}var rh={},Py;function Dv(){if(Py)return rh;Py=1;function e(n,a,r,u){this.type=n,this.text=a,this.comments_before=null,this.newlines=r||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return rh.Token=e,rh}var lh={},qy;function $v(){return qy||(qy=1,(function(e){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",a="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",u="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",h="(?:"+o+"|["+n+r+"])",p="(?:"+o+"|["+a+r+u+"])*";e.identifier=new RegExp(h+p,"g"),e.identifierStart=new RegExp(h),e.identifierMatch=new RegExp("(?:"+o+"|["+a+r+u+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
146
- |`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")})(lh)),lh}var uh={},Ir={},Gy;function fd(){if(Gy)return Ir;Gy=1;function e(r,u){this.raw_options=n(r,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(r,u){var o=this.raw_options[r],h=u||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(h=o.concat()):typeof o=="string"&&(h=o.split(/[^a-zA-Z0-9_\/\-]+/)),h},e.prototype._get_boolean=function(r,u){var o=this.raw_options[r],h=o===void 0?!!u:!!o;return h},e.prototype._get_characters=function(r,u){var o=this.raw_options[r],h=u||"";return typeof o=="string"&&(h=o.replace(/\\r/,"\r").replace(/\\n/,`
146
+ |`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")})(lh)),lh}var uh={},Ur={},Gy;function fd(){if(Gy)return Ur;Gy=1;function e(r,u){this.raw_options=n(r,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(r,u){var o=this.raw_options[r],h=u||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(h=o.concat()):typeof o=="string"&&(h=o.split(/[^a-zA-Z0-9_\/\-]+/)),h},e.prototype._get_boolean=function(r,u){var o=this.raw_options[r],h=o===void 0?!!u:!!o;return h},e.prototype._get_characters=function(r,u){var o=this.raw_options[r],h=u||"";return typeof o=="string"&&(h=o.replace(/\\r/,"\r").replace(/\\n/,`
147
147
  `).replace(/\\t/," ")),h},e.prototype._get_number=function(r,u){var o=this.raw_options[r];u=parseInt(u,10),isNaN(u)&&(u=0);var h=parseInt(o,10);return isNaN(h)&&(h=u),h},e.prototype._get_selection=function(r,u,o){var h=this._get_selection_list(r,u,o);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
148
148
  `+u+`
149
149
  You passed in: '`+this.raw_options[r]+"'");return h[0]},e.prototype._get_selection_list=function(r,u,o){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[u[0]],!this._is_valid_selection(o,u))throw new Error("Invalid Default Value!");var h=this._get_array(r,o);if(!this._is_valid_selection(h,u))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
150
150
  `+u+`
151
- You passed in: '`+this.raw_options[r]+"'");return h},e.prototype._is_valid_selection=function(r,u){return r.length&&u.length&&!r.some(function(o){return u.indexOf(o)===-1})};function n(r,u){var o={};r=a(r);var h;for(h in r)h!==u&&(o[h]=r[h]);if(u&&r[u])for(h in r[u])o[h]=r[u][h];return o}function a(r){var u={},o;for(o in r){var h=o.replace(/-/g,"_");u[h]=r[o]}return u}return Ir.Options=e,Ir.normalizeOpts=a,Ir.mergeOpts=n,Ir}var Hy;function Pv(){if(Hy)return uh;Hy=1;var e=fd().Options,n=["before-newline","after-newline","preserve-newline"];function a(r){e.call(this,r,"js");var u=this.raw_options.brace_style||null;u==="expand-strict"?this.raw_options.brace_style="expand":u==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<o.length;h++)o[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[h];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return a.prototype=new e,uh.Options=a,uh}var Ts={},oh={},Fy;function hd(){if(Fy)return oh;Fy=1;var e=RegExp.prototype.hasOwnProperty("sticky");function n(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}return n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},n.prototype.peek=function(a){var r=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(r=this.__input.charAt(a)),r},n.prototype.__match=function(a,r){a.lastIndex=r;var u=a.exec(this.__input);return u&&!(e&&a.sticky)&&u.index!==r&&(u=null),u},n.prototype.test=function(a,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(a,r):!1},n.prototype.testChar=function(a,r){var u=this.peek(r);return a.lastIndex=0,u!==null&&a.test(u)},n.prototype.match=function(a){var r=this.__match(a,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(a,r,u){var o="",h;return a&&(h=this.match(a),h&&(o+=h[0])),r&&(h||!a)&&(o+=this.readUntil(r,u)),o},n.prototype.readUntil=function(a,r){var u="",o=this.__position;a.lastIndex=this.__position;var h=a.exec(this.__input);return h?(o=h.index,r&&(o+=h[0].length)):o=this.__input_length,u=this.__input.substring(this.__position,o),this.__position=o,u},n.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},n.prototype.get_regexp=function(a,r){var u=null,o="g";return r&&e&&(o="y"),typeof a=="string"&&a!==""?u=new RegExp(a,o):a&&(u=new RegExp(a.source,o)),u},n.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(a){var r=this.__position,u=this.readUntilAfter(a);return this.__position=r,u},n.prototype.lookBack=function(a){var r=this.__position-1;return r>=a.length&&this.__input.substring(r-a.length,r).toLowerCase()===a},oh.InputScanner=n,oh}var Ru={},ch={},Ky;function cL(){if(Ky)return ch;Ky=1;function e(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}return e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},e.prototype.peek=function(n){var a=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(a=this.__tokens[n]),a},e.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},ch.TokenStream=e,ch}var fh={},hh={},Vy;function Oo(){if(Vy)return hh;Vy=1;function e(n,a){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}return e.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(n){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(n),a._update(),a},e.prototype.until=function(n){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(n),a._update(),a},e.prototype.starting_with=function(n){var a=this._create();return a._starting_pattern=this._input.get_regexp(n,!0),a._update(),a},e.prototype.matching=function(n){var a=this._create();return a._match_pattern=this._input.get_regexp(n,!0),a._update(),a},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},hh.Pattern=e,hh}var Yy;function fL(){if(Yy)return fh;Yy=1;var e=Oo().Pattern;function n(a,r){e.call(this,a,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return n.prototype=new e,n.prototype.__set_whitespace_patterns=function(a,r){a+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var r=this.__split(this._newline_regexp,a);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return a},n.prototype.matching=function(a,r){var u=this._create();return u.__set_whitespace_patterns(a,r),u._update(),u},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(a,r){a.lastIndex=0;for(var u=0,o=[],h=a.exec(r);h;)o.push(r.substring(u,h.index)),u=h.index+h[0].length,h=a.exec(r);return u<r.length?o.push(r.substring(u,r.length)):o.push(""),o},fh.WhitespacePattern=n,fh}var Xy;function no(){if(Xy)return Ru;Xy=1;var e=hd().InputScanner,n=Dv().Token,a=cL().TokenStream,r=fL().WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(h,p){this._input=new e(h),this._options=p||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var h,p=new n(u.START,""),d=null,_=[],v=new a;p.type!==u.EOF;){for(h=this._get_next_token(p,d);this._is_comment(h);)v.add(h),h=this._get_next_token(p,d);v.isEmpty()||(h.comments_before=v,v=new a),h.parent=d,this._is_opening(h)?(_.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=_.pop(),h.parent=d),h.previous=p,p.next=h,this.__tokens.add(h),p=h}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(h,p){this._readWhitespace();var d=this._input.read(/.+/g);return d?this._create_token(u.RAW,d):this._create_token(u.EOF,"")},o.prototype._is_comment=function(h){return!1},o.prototype._is_opening=function(h){return!1},o.prototype._is_closing=function(h,p){return!1},o.prototype._create_token=function(h,p){var d=new n(h,p,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return d},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Ru.Tokenizer=o,Ru.TOKEN=u,Ru}var dh={},Qy;function dd(){if(Qy)return dh;Qy=1;function e(n,a){n=typeof n=="string"?n:n.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+a,"g")}return e.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)a[r[1]]=r[2],r=this.__directive_pattern.exec(n);return a},e.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},dh.Directives=e,dh}var ph={},Zy;function qv(){if(Zy)return ph;Zy=1;var e=Oo().Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function a(r,u){e.call(this,r,u),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),u&&(this.__template_pattern=this._input.get_regexp(u.__template_pattern),this._excluded=Object.assign(this._excluded,u._excluded),this._disabled=Object.assign(this._disabled,u._disabled));var o=new e(r);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}return a.prototype=new e,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(r){var u=this._create();return u._disabled[r]=!0,u._update(),u},a.prototype.read_options=function(r){var u=this._create();for(var o in n)u._disabled[o]=r.templating.indexOf(o)===-1;return u._update(),u},a.prototype.exclude=function(r){var u=this._create();return u._excluded[r]=!0,u._update(),u},a.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var u=this._read_template();u;)this._match_pattern?u+=this._input.read(this._match_pattern):u+=this._input.readUntil(this.__template_pattern),r+=u,u=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},a.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},a.prototype._read_template=function(){var r="",u=this._input.peek();if(u==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(r=r||this.__patterns.erb.read())}else u==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},ph.TemplatablePattern=a,ph}var Wy;function wu(){if(Wy)return Ts;Wy=1;var e=hd().InputScanner,n=no().Tokenizer,a=no().TOKEN,r=dd().Directives,u=$v(),o=Oo().Pattern,h=qv().TemplatablePattern;function p(I,w){return w.indexOf(I)!==-1}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},_=new r(/\/\*/,/\*\//),v=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,y=/[0-9]/,O=/[^\d\.]/,z=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),G=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";G=G.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),G="\\?\\.(?!\\d) "+G,G=G.replace(/ /g,"|");var V=new RegExp(G),A="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),b=A.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),N=new RegExp("^(?:"+b.join("|")+")$"),P,B=function(I,w){n.call(this,I,w),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var E=new o(this._input),S=new h(this._input).read_options(this._options);this.__patterns={template:S,identifier:S.starting_with(u.identifier).matching(u.identifierMatch),number:E.matching(v),punct:E.matching(V),comment:E.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:E.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:E.matching(/<!--/),html_comment_end:E.matching(/-->/),include:E.starting_with(/#include/).until_after(u.lineBreak),shebang:E.starting_with(/#!/).until_after(u.lineBreak),xml:E.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:S.until(/['\\\n\r\u2028\u2029]/),double_quote:S.until(/["\\\n\r\u2028\u2029]/),template_text:S.until(/[`\\$]/),template_expression:S.until(/[`}\\]/)}};B.prototype=new n,B.prototype._is_comment=function(I){return I.type===d.COMMENT||I.type===d.BLOCK_COMMENT||I.type===d.UNKNOWN},B.prototype._is_opening=function(I){return I.type===d.START_BLOCK||I.type===d.START_EXPR},B.prototype._is_closing=function(I,w){return(I.type===d.END_BLOCK||I.type===d.END_EXPR)&&w&&(I.text==="]"&&w.text==="["||I.text===")"&&w.text==="("||I.text==="}"&&w.text==="{")},B.prototype._reset=function(){P=!1},B.prototype._get_next_token=function(I,w){var E=null;this._readWhitespace();var S=this._input.peek();return S===null?this._create_token(d.EOF,""):(E=E||this._read_non_javascript(S),E=E||this._read_string(S),E=E||this._read_pair(S,this._input.peek(1)),E=E||this._read_word(I),E=E||this._read_singles(S),E=E||this._read_comment(S),E=E||this._read_regexp(S,I),E=E||this._read_xml(S,I),E=E||this._read_punctuation(),E=E||this._create_token(d.UNKNOWN,this._input.next()),E)},B.prototype._read_word=function(I){var w;if(w=this.__patterns.identifier.read(),w!=="")return w=w.replace(u.allLineBreaks,`
152
- `),!(I.type===d.DOT||I.type===d.RESERVED&&(I.text==="set"||I.text==="get"))&&N.test(w)?(w==="in"||w==="of")&&(I.type===d.WORD||I.type===d.STRING)?this._create_token(d.OPERATOR,w):this._create_token(d.RESERVED,w):this._create_token(d.WORD,w);if(w=this.__patterns.number.read(),w!=="")return this._create_token(d.WORD,w)},B.prototype._read_singles=function(I){var w=null;return I==="("||I==="["?w=this._create_token(d.START_EXPR,I):I===")"||I==="]"?w=this._create_token(d.END_EXPR,I):I==="{"?w=this._create_token(d.START_BLOCK,I):I==="}"?w=this._create_token(d.END_BLOCK,I):I===";"?w=this._create_token(d.SEMICOLON,I):I==="."&&O.test(this._input.peek(1))?w=this._create_token(d.DOT,I):I===","&&(w=this._create_token(d.COMMA,I)),w&&this._input.next(),w},B.prototype._read_pair=function(I,w){var E=null;return I==="#"&&w==="{"&&(E=this._create_token(d.START_BLOCK,I+w)),E&&(this._input.next(),this._input.next()),E},B.prototype._read_punctuation=function(){var I=this.__patterns.punct.read();if(I!=="")return I==="="?this._create_token(d.EQUALS,I):I==="?."?this._create_token(d.DOT,I):this._create_token(d.OPERATOR,I)},B.prototype._read_non_javascript=function(I){var w="";if(I==="#"){if(this._is_first_token()&&(w=this.__patterns.shebang.read(),w))return this._create_token(d.UNKNOWN,w.trim()+`
151
+ You passed in: '`+this.raw_options[r]+"'");return h},e.prototype._is_valid_selection=function(r,u){return r.length&&u.length&&!r.some(function(o){return u.indexOf(o)===-1})};function n(r,u){var o={};r=a(r);var h;for(h in r)h!==u&&(o[h]=r[h]);if(u&&r[u])for(h in r[u])o[h]=r[u][h];return o}function a(r){var u={},o;for(o in r){var h=o.replace(/-/g,"_");u[h]=r[o]}return u}return Ur.Options=e,Ur.normalizeOpts=a,Ur.mergeOpts=n,Ur}var Hy;function Pv(){if(Hy)return uh;Hy=1;var e=fd().Options,n=["before-newline","after-newline","preserve-newline"];function a(r){e.call(this,r,"js");var u=this.raw_options.brace_style||null;u==="expand-strict"?this.raw_options.brace_style="expand":u==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<o.length;h++)o[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[h];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return a.prototype=new e,uh.Options=a,uh}var Ts={},oh={},Fy;function hd(){if(Fy)return oh;Fy=1;var e=RegExp.prototype.hasOwnProperty("sticky");function n(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}return n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},n.prototype.peek=function(a){var r=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(r=this.__input.charAt(a)),r},n.prototype.__match=function(a,r){a.lastIndex=r;var u=a.exec(this.__input);return u&&!(e&&a.sticky)&&u.index!==r&&(u=null),u},n.prototype.test=function(a,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(a,r):!1},n.prototype.testChar=function(a,r){var u=this.peek(r);return a.lastIndex=0,u!==null&&a.test(u)},n.prototype.match=function(a){var r=this.__match(a,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(a,r,u){var o="",h;return a&&(h=this.match(a),h&&(o+=h[0])),r&&(h||!a)&&(o+=this.readUntil(r,u)),o},n.prototype.readUntil=function(a,r){var u="",o=this.__position;a.lastIndex=this.__position;var h=a.exec(this.__input);return h?(o=h.index,r&&(o+=h[0].length)):o=this.__input_length,u=this.__input.substring(this.__position,o),this.__position=o,u},n.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},n.prototype.get_regexp=function(a,r){var u=null,o="g";return r&&e&&(o="y"),typeof a=="string"&&a!==""?u=new RegExp(a,o):a&&(u=new RegExp(a.source,o)),u},n.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(a){var r=this.__position,u=this.readUntilAfter(a);return this.__position=r,u},n.prototype.lookBack=function(a){var r=this.__position-1;return r>=a.length&&this.__input.substring(r-a.length,r).toLowerCase()===a},oh.InputScanner=n,oh}var Ru={},ch={},Ky;function cL(){if(Ky)return ch;Ky=1;function e(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}return e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},e.prototype.peek=function(n){var a=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(a=this.__tokens[n]),a},e.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},ch.TokenStream=e,ch}var fh={},hh={},Vy;function Oo(){if(Vy)return hh;Vy=1;function e(n,a){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}return e.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(n){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(n),a._update(),a},e.prototype.until=function(n){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(n),a._update(),a},e.prototype.starting_with=function(n){var a=this._create();return a._starting_pattern=this._input.get_regexp(n,!0),a._update(),a},e.prototype.matching=function(n){var a=this._create();return a._match_pattern=this._input.get_regexp(n,!0),a._update(),a},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},hh.Pattern=e,hh}var Yy;function fL(){if(Yy)return fh;Yy=1;var e=Oo().Pattern;function n(a,r){e.call(this,a,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return n.prototype=new e,n.prototype.__set_whitespace_patterns=function(a,r){a+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var r=this.__split(this._newline_regexp,a);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return a},n.prototype.matching=function(a,r){var u=this._create();return u.__set_whitespace_patterns(a,r),u._update(),u},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(a,r){a.lastIndex=0;for(var u=0,o=[],h=a.exec(r);h;)o.push(r.substring(u,h.index)),u=h.index+h[0].length,h=a.exec(r);return u<r.length?o.push(r.substring(u,r.length)):o.push(""),o},fh.WhitespacePattern=n,fh}var Xy;function no(){if(Xy)return Ru;Xy=1;var e=hd().InputScanner,n=Dv().Token,a=cL().TokenStream,r=fL().WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(h,p){this._input=new e(h),this._options=p||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var h,p=new n(u.START,""),d=null,_=[],v=new a;p.type!==u.EOF;){for(h=this._get_next_token(p,d);this._is_comment(h);)v.add(h),h=this._get_next_token(p,d);v.isEmpty()||(h.comments_before=v,v=new a),h.parent=d,this._is_opening(h)?(_.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=_.pop(),h.parent=d),h.previous=p,p.next=h,this.__tokens.add(h),p=h}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(h,p){this._readWhitespace();var d=this._input.read(/.+/g);return d?this._create_token(u.RAW,d):this._create_token(u.EOF,"")},o.prototype._is_comment=function(h){return!1},o.prototype._is_opening=function(h){return!1},o.prototype._is_closing=function(h,p){return!1},o.prototype._create_token=function(h,p){var d=new n(h,p,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return d},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Ru.Tokenizer=o,Ru.TOKEN=u,Ru}var dh={},Qy;function dd(){if(Qy)return dh;Qy=1;function e(n,a){n=typeof n=="string"?n:n.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+a,"g")}return e.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)a[r[1]]=r[2],r=this.__directive_pattern.exec(n);return a},e.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},dh.Directives=e,dh}var ph={},Zy;function qv(){if(Zy)return ph;Zy=1;var e=Oo().Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function a(r,u){e.call(this,r,u),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),u&&(this.__template_pattern=this._input.get_regexp(u.__template_pattern),this._excluded=Object.assign(this._excluded,u._excluded),this._disabled=Object.assign(this._disabled,u._disabled));var o=new e(r);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}return a.prototype=new e,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(r){var u=this._create();return u._disabled[r]=!0,u._update(),u},a.prototype.read_options=function(r){var u=this._create();for(var o in n)u._disabled[o]=r.templating.indexOf(o)===-1;return u._update(),u},a.prototype.exclude=function(r){var u=this._create();return u._excluded[r]=!0,u._update(),u},a.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var u=this._read_template();u;)this._match_pattern?u+=this._input.read(this._match_pattern):u+=this._input.readUntil(this.__template_pattern),r+=u,u=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},a.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},a.prototype._read_template=function(){var r="",u=this._input.peek();if(u==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(r=r||this.__patterns.erb.read())}else u==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},ph.TemplatablePattern=a,ph}var Wy;function wu(){if(Wy)return Ts;Wy=1;var e=hd().InputScanner,n=no().Tokenizer,a=no().TOKEN,r=dd().Directives,u=$v(),o=Oo().Pattern,h=qv().TemplatablePattern;function p(U,w){return w.indexOf(U)!==-1}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},_=new r(/\/\*/,/\*\//),v=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,y=/[0-9]/,O=/[^\d\.]/,z=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),G=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";G=G.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),G="\\?\\.(?!\\d) "+G,G=G.replace(/ /g,"|");var V=new RegExp(G),A="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),b=A.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),N=new RegExp("^(?:"+b.join("|")+")$"),P,B=function(U,w){n.call(this,U,w),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var E=new o(this._input),S=new h(this._input).read_options(this._options);this.__patterns={template:S,identifier:S.starting_with(u.identifier).matching(u.identifierMatch),number:E.matching(v),punct:E.matching(V),comment:E.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:E.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:E.matching(/<!--/),html_comment_end:E.matching(/-->/),include:E.starting_with(/#include/).until_after(u.lineBreak),shebang:E.starting_with(/#!/).until_after(u.lineBreak),xml:E.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:S.until(/['\\\n\r\u2028\u2029]/),double_quote:S.until(/["\\\n\r\u2028\u2029]/),template_text:S.until(/[`\\$]/),template_expression:S.until(/[`}\\]/)}};B.prototype=new n,B.prototype._is_comment=function(U){return U.type===d.COMMENT||U.type===d.BLOCK_COMMENT||U.type===d.UNKNOWN},B.prototype._is_opening=function(U){return U.type===d.START_BLOCK||U.type===d.START_EXPR},B.prototype._is_closing=function(U,w){return(U.type===d.END_BLOCK||U.type===d.END_EXPR)&&w&&(U.text==="]"&&w.text==="["||U.text===")"&&w.text==="("||U.text==="}"&&w.text==="{")},B.prototype._reset=function(){P=!1},B.prototype._get_next_token=function(U,w){var E=null;this._readWhitespace();var S=this._input.peek();return S===null?this._create_token(d.EOF,""):(E=E||this._read_non_javascript(S),E=E||this._read_string(S),E=E||this._read_pair(S,this._input.peek(1)),E=E||this._read_word(U),E=E||this._read_singles(S),E=E||this._read_comment(S),E=E||this._read_regexp(S,U),E=E||this._read_xml(S,U),E=E||this._read_punctuation(),E=E||this._create_token(d.UNKNOWN,this._input.next()),E)},B.prototype._read_word=function(U){var w;if(w=this.__patterns.identifier.read(),w!=="")return w=w.replace(u.allLineBreaks,`
152
+ `),!(U.type===d.DOT||U.type===d.RESERVED&&(U.text==="set"||U.text==="get"))&&N.test(w)?(w==="in"||w==="of")&&(U.type===d.WORD||U.type===d.STRING)?this._create_token(d.OPERATOR,w):this._create_token(d.RESERVED,w):this._create_token(d.WORD,w);if(w=this.__patterns.number.read(),w!=="")return this._create_token(d.WORD,w)},B.prototype._read_singles=function(U){var w=null;return U==="("||U==="["?w=this._create_token(d.START_EXPR,U):U===")"||U==="]"?w=this._create_token(d.END_EXPR,U):U==="{"?w=this._create_token(d.START_BLOCK,U):U==="}"?w=this._create_token(d.END_BLOCK,U):U===";"?w=this._create_token(d.SEMICOLON,U):U==="."&&O.test(this._input.peek(1))?w=this._create_token(d.DOT,U):U===","&&(w=this._create_token(d.COMMA,U)),w&&this._input.next(),w},B.prototype._read_pair=function(U,w){var E=null;return U==="#"&&w==="{"&&(E=this._create_token(d.START_BLOCK,U+w)),E&&(this._input.next(),this._input.next()),E},B.prototype._read_punctuation=function(){var U=this.__patterns.punct.read();if(U!=="")return U==="="?this._create_token(d.EQUALS,U):U==="?."?this._create_token(d.DOT,U):this._create_token(d.OPERATOR,U)},B.prototype._read_non_javascript=function(U){var w="";if(U==="#"){if(this._is_first_token()&&(w=this.__patterns.shebang.read(),w))return this._create_token(d.UNKNOWN,w.trim()+`
153
153
  `);if(w=this.__patterns.include.read(),w)return this._create_token(d.UNKNOWN,w.trim()+`
154
- `);I=this._input.next();var E="#";if(this._input.hasNext()&&this._input.testChar(y)){do I=this._input.next(),E+=I;while(this._input.hasNext()&&I!=="#"&&I!=="=");return I==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(E+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(E+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,E)}this._input.back()}else if(I==="<"&&this._is_first_token()){if(w=this.__patterns.html_comment_start.read(),w){for(;this._input.hasNext()&&!this._input.testChar(u.newline);)w+=this._input.next();return P=!0,this._create_token(d.COMMENT,w)}}else if(P&&I==="-"&&(w=this.__patterns.html_comment_end.read(),w))return P=!1,this._create_token(d.COMMENT,w);return null},B.prototype._read_comment=function(I){var w=null;if(I==="/"){var E="";if(this._input.peek(1)==="*"){E=this.__patterns.block_comment.read();var S=_.get_directives(E);S&&S.ignore==="start"&&(E+=_.readIgnored(this._input)),E=E.replace(u.allLineBreaks,`
155
- `),w=this._create_token(d.BLOCK_COMMENT,E),w.directives=S}else this._input.peek(1)==="/"&&(E=this.__patterns.comment.read(),w=this._create_token(d.COMMENT,E))}return w},B.prototype._read_string=function(I){if(I==="`"||I==="'"||I==='"'){var w=this._input.next();return this.has_char_escapes=!1,I==="`"?w+=this._read_string_recursive("`",!0,"${"):w+=this._read_string_recursive(I),this.has_char_escapes&&this._options.unescape_strings&&(w=Z(w)),this._input.peek()===I&&(w+=this._input.next()),w=w.replace(u.allLineBreaks,`
156
- `),this._create_token(d.STRING,w)}return null},B.prototype._allow_regexp_or_xml=function(I){return I.type===d.RESERVED&&p(I.text,["return","case","throw","else","do","typeof","yield"])||I.type===d.END_EXPR&&I.text===")"&&I.opened.previous.type===d.RESERVED&&p(I.opened.previous.text,["if","while","for"])||p(I.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},B.prototype._read_regexp=function(I,w){if(I==="/"&&this._allow_regexp_or_xml(w)){for(var E=this._input.next(),S=!1,g=!1;this._input.hasNext()&&(S||g||this._input.peek()!==I)&&!this._input.testChar(u.newline);)E+=this._input.peek(),S?S=!1:(S=this._input.peek()==="\\",this._input.peek()==="["?g=!0:this._input.peek()==="]"&&(g=!1)),this._input.next();return this._input.peek()===I&&(E+=this._input.next(),E+=this._input.read(u.identifier)),this._create_token(d.STRING,E)}return null},B.prototype._read_xml=function(I,w){if(this._options.e4x&&I==="<"&&this._allow_regexp_or_xml(w)){var E="",S=this.__patterns.xml.read_match();if(S){for(var g=S[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),L=g.indexOf("{")===0,M=0;S;){var W=!!S[1],at=S[2],it=!!S[S.length-1]||at.slice(0,8)==="![CDATA[";if(!it&&(at===g||L&&at.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(W?--M:++M),E+=S[0],M<=0)break;S=this.__patterns.xml.read_match()}return S||(E+=this._input.match(/[\s\S]*/g)[0]),E=E.replace(u.allLineBreaks,`
157
- `),this._create_token(d.STRING,E)}}return null};function Z(I){for(var w="",E=0,S=new e(I),g=null;S.hasNext();)if(g=S.match(/([\s]|[^\\]|\\\\)+/g),g&&(w+=g[0]),S.peek()==="\\"){if(S.next(),S.peek()==="x")g=S.match(/x([0-9A-Fa-f]{2})/g);else if(S.peek()==="u")g=S.match(/u([0-9A-Fa-f]{4})/g),g||(g=S.match(/u\{([0-9A-Fa-f]+)\}/g));else{w+="\\",S.hasNext()&&(w+=S.next());continue}if(!g||(E=parseInt(g[1],16),E>126&&E<=255&&g[0].indexOf("x")===0))return I;E>=0&&E<32||E>1114111?w+="\\"+g[0]:E===34||E===39||E===92?w+="\\"+String.fromCharCode(E):w+=String.fromCharCode(E)}return w}return B.prototype._read_string_recursive=function(I,w,E){var S,g;I==="'"?g=this.__patterns.single_quote:I==='"'?g=this.__patterns.double_quote:I==="`"?g=this.__patterns.template_text:I==="}"&&(g=this.__patterns.template_expression);for(var L=g.read(),M="";this._input.hasNext();){if(M=this._input.next(),M===I||!w&&u.newline.test(M)){this._input.back();break}else M==="\\"&&this._input.hasNext()?(S=this._input.peek(),S==="x"||S==="u"?this.has_char_escapes=!0:S==="\r"&&this._input.peek(1)===`
158
- `&&this._input.next(),M+=this._input.next()):E&&(E==="${"&&M==="$"&&this._input.peek()==="{"&&(M+=this._input.next()),E===M&&(I==="`"?M+=this._read_string_recursive("}",w,"`"):M+=this._read_string_recursive("`",w,"${"),this._input.hasNext()&&(M+=this._input.next())));M+=g.read(),L+=M}return L},Ts.Tokenizer=B,Ts.TOKEN=d,Ts.positionable_operators=z.slice(),Ts.line_starters=A.slice(),Ts}var Jy;function hL(){if(Jy)return ah;Jy=1;var e=cd().Output,n=Dv().Token,a=$v(),r=Pv().Options,u=wu().Tokenizer,o=wu().line_starters,h=wu().positionable_operators,p=wu().TOKEN;function d(g,L){return L.indexOf(g)!==-1}function _(g){return g.replace(/^\s+/g,"")}function v(g){for(var L={},M=0;M<g.length;M++)L[g[M].replace(/-/g,"_")]=g[M];return L}function y(g,L){return g&&g.type===p.RESERVED&&g.text===L}function O(g,L){return g&&g.type===p.RESERVED&&d(g.text,L)}var z=["case","return","do","if","throw","else","await","break","continue","async"],G=["before-newline","after-newline","preserve-newline"],V=v(G),A=[V.before_newline,V.preserve_newline],b={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function N(g,L){L.multiline_frame||L.mode===b.ForInitializer||L.mode===b.Conditional||g.remove_indent(L.start_line_index)}function P(g){g=g.replace(a.allLineBreaks,`
154
+ `);U=this._input.next();var E="#";if(this._input.hasNext()&&this._input.testChar(y)){do U=this._input.next(),E+=U;while(this._input.hasNext()&&U!=="#"&&U!=="=");return U==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(E+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(E+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,E)}this._input.back()}else if(U==="<"&&this._is_first_token()){if(w=this.__patterns.html_comment_start.read(),w){for(;this._input.hasNext()&&!this._input.testChar(u.newline);)w+=this._input.next();return P=!0,this._create_token(d.COMMENT,w)}}else if(P&&U==="-"&&(w=this.__patterns.html_comment_end.read(),w))return P=!1,this._create_token(d.COMMENT,w);return null},B.prototype._read_comment=function(U){var w=null;if(U==="/"){var E="";if(this._input.peek(1)==="*"){E=this.__patterns.block_comment.read();var S=_.get_directives(E);S&&S.ignore==="start"&&(E+=_.readIgnored(this._input)),E=E.replace(u.allLineBreaks,`
155
+ `),w=this._create_token(d.BLOCK_COMMENT,E),w.directives=S}else this._input.peek(1)==="/"&&(E=this.__patterns.comment.read(),w=this._create_token(d.COMMENT,E))}return w},B.prototype._read_string=function(U){if(U==="`"||U==="'"||U==='"'){var w=this._input.next();return this.has_char_escapes=!1,U==="`"?w+=this._read_string_recursive("`",!0,"${"):w+=this._read_string_recursive(U),this.has_char_escapes&&this._options.unescape_strings&&(w=Z(w)),this._input.peek()===U&&(w+=this._input.next()),w=w.replace(u.allLineBreaks,`
156
+ `),this._create_token(d.STRING,w)}return null},B.prototype._allow_regexp_or_xml=function(U){return U.type===d.RESERVED&&p(U.text,["return","case","throw","else","do","typeof","yield"])||U.type===d.END_EXPR&&U.text===")"&&U.opened.previous.type===d.RESERVED&&p(U.opened.previous.text,["if","while","for"])||p(U.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},B.prototype._read_regexp=function(U,w){if(U==="/"&&this._allow_regexp_or_xml(w)){for(var E=this._input.next(),S=!1,g=!1;this._input.hasNext()&&(S||g||this._input.peek()!==U)&&!this._input.testChar(u.newline);)E+=this._input.peek(),S?S=!1:(S=this._input.peek()==="\\",this._input.peek()==="["?g=!0:this._input.peek()==="]"&&(g=!1)),this._input.next();return this._input.peek()===U&&(E+=this._input.next(),E+=this._input.read(u.identifier)),this._create_token(d.STRING,E)}return null},B.prototype._read_xml=function(U,w){if(this._options.e4x&&U==="<"&&this._allow_regexp_or_xml(w)){var E="",S=this.__patterns.xml.read_match();if(S){for(var g=S[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),L=g.indexOf("{")===0,M=0;S;){var W=!!S[1],at=S[2],it=!!S[S.length-1]||at.slice(0,8)==="![CDATA[";if(!it&&(at===g||L&&at.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(W?--M:++M),E+=S[0],M<=0)break;S=this.__patterns.xml.read_match()}return S||(E+=this._input.match(/[\s\S]*/g)[0]),E=E.replace(u.allLineBreaks,`
157
+ `),this._create_token(d.STRING,E)}}return null};function Z(U){for(var w="",E=0,S=new e(U),g=null;S.hasNext();)if(g=S.match(/([\s]|[^\\]|\\\\)+/g),g&&(w+=g[0]),S.peek()==="\\"){if(S.next(),S.peek()==="x")g=S.match(/x([0-9A-Fa-f]{2})/g);else if(S.peek()==="u")g=S.match(/u([0-9A-Fa-f]{4})/g),g||(g=S.match(/u\{([0-9A-Fa-f]+)\}/g));else{w+="\\",S.hasNext()&&(w+=S.next());continue}if(!g||(E=parseInt(g[1],16),E>126&&E<=255&&g[0].indexOf("x")===0))return U;E>=0&&E<32||E>1114111?w+="\\"+g[0]:E===34||E===39||E===92?w+="\\"+String.fromCharCode(E):w+=String.fromCharCode(E)}return w}return B.prototype._read_string_recursive=function(U,w,E){var S,g;U==="'"?g=this.__patterns.single_quote:U==='"'?g=this.__patterns.double_quote:U==="`"?g=this.__patterns.template_text:U==="}"&&(g=this.__patterns.template_expression);for(var L=g.read(),M="";this._input.hasNext();){if(M=this._input.next(),M===U||!w&&u.newline.test(M)){this._input.back();break}else M==="\\"&&this._input.hasNext()?(S=this._input.peek(),S==="x"||S==="u"?this.has_char_escapes=!0:S==="\r"&&this._input.peek(1)===`
158
+ `&&this._input.next(),M+=this._input.next()):E&&(E==="${"&&M==="$"&&this._input.peek()==="{"&&(M+=this._input.next()),E===M&&(U==="`"?M+=this._read_string_recursive("}",w,"`"):M+=this._read_string_recursive("`",w,"${"),this._input.hasNext()&&(M+=this._input.next())));M+=g.read(),L+=M}return L},Ts.Tokenizer=B,Ts.TOKEN=d,Ts.positionable_operators=z.slice(),Ts.line_starters=A.slice(),Ts}var Jy;function hL(){if(Jy)return ah;Jy=1;var e=cd().Output,n=Dv().Token,a=$v(),r=Pv().Options,u=wu().Tokenizer,o=wu().line_starters,h=wu().positionable_operators,p=wu().TOKEN;function d(g,L){return L.indexOf(g)!==-1}function _(g){return g.replace(/^\s+/g,"")}function v(g){for(var L={},M=0;M<g.length;M++)L[g[M].replace(/-/g,"_")]=g[M];return L}function y(g,L){return g&&g.type===p.RESERVED&&g.text===L}function O(g,L){return g&&g.type===p.RESERVED&&d(g.text,L)}var z=["case","return","do","if","throw","else","await","break","continue","async"],G=["before-newline","after-newline","preserve-newline"],V=v(G),A=[V.before_newline,V.preserve_newline],b={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function N(g,L){L.multiline_frame||L.mode===b.ForInitializer||L.mode===b.Conditional||g.remove_indent(L.start_line_index)}function P(g){g=g.replace(a.allLineBreaks,`
159
159
  `);for(var L=[],M=g.indexOf(`
160
160
  `);M!==-1;)L.push(g.substring(0,M)),g=g.substring(M+1),M=g.indexOf(`
161
- `);return g.length&&L.push(g),L}function B(g){return g===b.ArrayLiteral}function Z(g){return d(g,[b.Expression,b.ForInitializer,b.Conditional])}function I(g,L){for(var M=0;M<g.length;M++){var W=g[M].trim();if(W.charAt(0)!==L)return!1}return!0}function w(g,L){for(var M=0,W=g.length,at;M<W;M++)if(at=g[M],at&&at.indexOf(L)!==0)return!1;return!0}function E(g,L){L=L||{},this._source_text=g||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(L)}E.prototype.create_flags=function(g,L){var M=0;g&&(M=g.indentation_level,!this._output.just_added_newline()&&g.line_indent_level>M&&(M=g.line_indent_level));var W={mode:L,parent:g,last_token:g?g.last_token:new n(p.START_BLOCK,""),last_word:g?g.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:M,alignment:0,line_indent_level:g?g.line_indent_level:M,start_line_index:this._output.get_line_number(),ternary_depth:0};return W},E.prototype._reset=function(g){var L=g.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,L),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(b.BlockStatement);var M=new u(g,this._options);return this._tokens=M.tokenize(),g},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var g,L=this._reset(this._source_text),M=this._options.eol;this._options.eol==="auto"&&(M=`
162
- `,L&&a.lineBreak.test(L||"")&&(M=L.match(a.lineBreak)[0]));for(var W=this._tokens.next();W;)this.handle_token(W),this._last_last_text=this._flags.last_token.text,this._flags.last_token=W,W=this._tokens.next();return g=this._output.get_code(M),g},E.prototype.handle_token=function(g,L){g.type===p.START_EXPR?this.handle_start_expr(g):g.type===p.END_EXPR?this.handle_end_expr(g):g.type===p.START_BLOCK?this.handle_start_block(g):g.type===p.END_BLOCK?this.handle_end_block(g):g.type===p.WORD?this.handle_word(g):g.type===p.RESERVED?this.handle_word(g):g.type===p.SEMICOLON?this.handle_semicolon(g):g.type===p.STRING?this.handle_string(g):g.type===p.EQUALS?this.handle_equals(g):g.type===p.OPERATOR?this.handle_operator(g):g.type===p.COMMA?this.handle_comma(g):g.type===p.BLOCK_COMMENT?this.handle_block_comment(g,L):g.type===p.COMMENT?this.handle_comment(g,L):g.type===p.DOT?this.handle_dot(g):g.type===p.EOF?this.handle_eof(g):g.type===p.UNKNOWN?this.handle_unknown(g,L):this.handle_unknown(g,L)},E.prototype.handle_whitespace_and_comments=function(g,L){var M=g.newlines,W=this._options.keep_array_indentation&&B(this._flags.mode);if(g.comments_before)for(var at=g.comments_before.next();at;)this.handle_whitespace_and_comments(at,L),this.handle_token(at,L),at=g.comments_before.next();if(W)for(var it=0;it<M;it+=1)this.print_newline(it>0,L);else if(this._options.max_preserve_newlines&&M>this._options.max_preserve_newlines&&(M=this._options.max_preserve_newlines),this._options.preserve_newlines&&M>1){this.print_newline(!1,L);for(var k=1;k<M;k+=1)this.print_newline(!0,L)}};var S=["async","break","continue","return","throw","yield"];return E.prototype.allow_wrap_or_preserved_newline=function(g,L){if(L=L===void 0?!1:L,!this._output.just_added_newline()){var M=this._options.preserve_newlines&&g.newlines||L,W=d(this._flags.last_token.text,h)||d(g.text,h);if(W){var at=d(this._flags.last_token.text,h)&&d(this._options.operator_position,A)||d(g.text,h);M=M&&at}if(M)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(O(this._flags.last_token,S))return;this._output.set_wrap_point()}}},E.prototype.print_newline=function(g,L){if(!L&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==p.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var M=this._tokens.peek();this._flags.mode===b.Statement&&!(this._flags.if_block&&y(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(g)&&(this._flags.multiline_frame=!0)},E.prototype.print_token_line_indentation=function(g){this._output.just_added_newline()&&(this._options.keep_array_indentation&&g.newlines&&(g.text==="["||B(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(g.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},E.prototype.print_token=function(g){if(this._output.raw){this._output.add_raw_token(g);return}if(this._options.comma_first&&g.previous&&g.previous.type===p.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var L=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(L),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(g),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(g),this._output.non_breaking_space=!0,this._output.add_token(g.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},E.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.set_mode=function(g){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,g),this._flags=this.create_flags(this._previous_flags,g),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===b.Statement&&N(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(g){var L=!1;return L=L||O(this._flags.last_token,["var","let","const"])&&g.type===p.WORD,L=L||y(this._flags.last_token,"do"),L=L||!(this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement)&&O(this._flags.last_token,S)&&!g.newlines,L=L||y(this._flags.last_token,"else")&&!(y(g,"if")&&!g.comments_before),L=L||this._flags.last_token.type===p.END_EXPR&&(this._previous_flags.mode===b.ForInitializer||this._previous_flags.mode===b.Conditional),L=L||this._flags.last_token.type===p.WORD&&this._flags.mode===b.BlockStatement&&!this._flags.in_case&&!(g.text==="--"||g.text==="++")&&this._last_last_text!=="function"&&g.type!==p.WORD&&g.type!==p.RESERVED,L=L||this._flags.mode===b.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"])),L?(this.set_mode(b.Statement),this.indent(),this.handle_whitespace_and_comments(g,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g,O(g,["do","for","if","while"])),!0):!1},E.prototype.handle_start_expr=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g);var L=b.Expression;if(g.text==="["){if(this._flags.last_token.type===p.WORD||this._flags.last_token.text===")"){O(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(g),this.set_mode(L),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}L=b.ArrayLiteral,B(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),d(this._flags.last_token.type,[p.START_EXPR,p.END_EXPR,p.WORD,p.OPERATOR,p.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===p.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,L=b.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,L=b.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&g.whitespace_before===""?this._output.space_before_token=!1:(d(this._flags.last_token.text,o)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g);else if(this._flags.last_token.type===p.WORD){this._output.space_before_token=!1;var M=this._tokens.peek(-3);if(this._options.space_after_named_function&&M){var W=this._tokens.peek(-4);O(M,["async","function"])||M.text==="*"&&O(W,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b.ObjectLiteral?(M.text==="{"||M.text===","||M.text==="*"&&(W.text==="{"||W.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(g);(this._flags.last_token.type===p.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===p.START_BLOCK?this.print_newline():(this._flags.last_token.type===p.END_EXPR||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===p.COMMA)&&this.allow_wrap_or_preserved_newline(g,g.newlines),this.print_token(g),this.set_mode(L),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(g){for(;this._flags.mode===b.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(g,g.text==="]"&&B(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===p.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(g),this.restore_mode(),N(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===b.Conditional&&(this._previous_flags.mode=b.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(g){this.handle_whitespace_and_comments(g);var L=this._tokens.peek(),M=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===p.END_EXPR?(this.set_mode(b.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(b.BlockStatement):M&&(d(M.text,[":",","])&&d(L.type,[p.STRING,p.WORD,p.RESERVED])||d(L.text,["get","set","..."])&&d(M.type,[p.WORD,p.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(M.text,[":",","])?this.set_mode(b.BlockStatement):this.set_mode(b.ObjectLiteral):this._flags.last_token.type===p.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(b.BlockStatement):d(this._flags.last_token.type,[p.EQUALS,p.START_EXPR,p.COMMA,p.OPERATOR])||O(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b.ObjectLiteral):this.set_mode(b.BlockStatement),this._flags.last_token&&O(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var W=!L.comments_before&&L.text==="}",at=W&&this._flags.last_word==="function"&&this._flags.last_token.type===p.END_EXPR;if(this._options.brace_preserve_inline){var it=0,k=null;this._flags.inline_frame=!0;do if(it+=1,k=this._tokens.peek(it-1),k.newlines){this._flags.inline_frame=!1;break}while(k.type!==p.EOF&&!(k.type===p.END_BLOCK&&k.opened===g))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==p.OPERATOR&&(at||this._flags.last_token.type===p.EQUALS||O(this._flags.last_token,z)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(B(this._previous_flags.mode)&&(this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.COMMA)&&((this._flags.last_token.type===p.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(g),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==p.OPERATOR&&this._flags.last_token.type!==p.START_EXPR&&(d(this._flags.last_token.type,[p.START_BLOCK,p.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(g),this.indent(),!W&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},E.prototype.handle_end_block=function(g){for(this.handle_whitespace_and_comments(g);this._flags.mode===b.Statement;)this.restore_mode();var L=this._flags.last_token.type===p.START_BLOCK;this._flags.inline_frame&&!L?this._output.space_before_token=!0:this._options.brace_style==="expand"?L||this.print_newline():L||(B(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(g)},E.prototype.handle_word=function(g){if(g.type===p.RESERVED){if(d(g.text,["set","get"])&&this._flags.mode!==b.ObjectLiteral)g.type=p.WORD;else if(g.text==="import"&&d(this._tokens.peek().text,["(","."]))g.type=p.WORD;else if(d(g.text,["as","from"])&&!this._flags.import_block)g.type=p.WORD;else if(this._flags.mode===b.ObjectLiteral){var L=this._tokens.peek();L.text===":"&&(g.type=p.WORD)}}if(this.start_of_statement(g)?O(this._flags.last_token,["var","let","const"])&&g.type===p.WORD&&(this._flags.declaration_statement=!0):g.newlines&&!Z(this._flags.mode)&&(this._flags.last_token.type!==p.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==p.EQUALS&&(this._options.preserve_newlines||!O(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(g),this.print_newline()):this.handle_whitespace_and_comments(g),this._flags.do_block&&!this._flags.do_while)if(y(g,"while")){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&y(g,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===b.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&O(g,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(g),this._flags.in_case=!0;return}if((this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)&&!this.start_of_object_property()&&!(d(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===b.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(g),y(g,"function")){(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(d(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===p.OPERATOR))&&!this._output.just_added_blankline()&&!g.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD?O(this._flags.last_token,["get","set","new","export"])||O(this._flags.last_token,S)?this._output.space_before_token=!0:y(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===p.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Z(this._flags.mode)||B(this._flags.mode))||this.print_newline(),this.print_token(g),this._flags.last_word=g.text;return}var M="NONE";if(this._flags.last_token.type===p.END_BLOCK?this._previous_flags.inline_frame?M="SPACE":O(g,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines?M="NEWLINE":(M="SPACE",this._output.space_before_token=!0):M="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&this._flags.mode===b.BlockStatement?M="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&Z(this._flags.mode)?M="SPACE":this._flags.last_token.type===p.STRING?M="NEWLINE":this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&d(this._last_last_text,["{",","]))?M="SPACE":this._flags.last_token.type===p.START_BLOCK?this._flags.inline_frame?M="SPACE":M="NEWLINE":this._flags.last_token.type===p.END_EXPR&&(this._output.space_before_token=!0,M="NEWLINE"),O(g,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?M="SPACE":M="NEWLINE"),O(g,["else","catch","finally"]))if((!(this._flags.last_token.type===p.END_BLOCK&&this._previous_flags.mode===b.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var W=this._output.current_line;W.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else M==="NEWLINE"?O(this._flags.last_token,z)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&O(g,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==p.END_EXPR?(this._flags.last_token.type!==p.START_EXPR||!O(g,["var","let","const"]))&&this._flags.last_token.text!==":"&&(y(g,"if")&&y(g.previous,"else")?this._output.space_before_token=!0:this.print_newline()):O(g,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&B(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():M==="SPACE"&&(this._output.space_before_token=!0);g.previous&&(g.previous.type===p.WORD||g.previous.type===p.RESERVED)&&(this._output.space_before_token=!0),this.print_token(g),this._flags.last_word=g.text,g.type===p.RESERVED&&(g.text==="do"?this._flags.do_block=!0:g.text==="if"?this._flags.if_block=!0:g.text==="import"?this._flags.import_block=!0:this._flags.import_block&&y(g,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(g){this.start_of_statement(g)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(g);for(var L=this._tokens.peek();this._flags.mode===b.Statement&&!(this._flags.if_block&&y(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(g)},E.prototype.handle_string=function(g){g.text.startsWith("`")&&g.newlines===0&&g.whitespace_before===""&&(g.previous.text===")"||this._flags.last_token.type===p.WORD)||(this.start_of_statement(g)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(g),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g):g.text.startsWith("`")&&this._flags.last_token.type===p.END_EXPR&&(g.previous.text==="]"||g.previous.text===")")&&g.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(g)},E.prototype.handle_equals=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0},E.prototype.handle_comma=function(g){this.handle_whitespace_and_comments(g,!0),this.print_token(g),this._output.space_before_token=!0,this._flags.declaration_statement?(Z(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)):this._flags.mode===b.ObjectLiteral||this._flags.mode===b.Statement&&this._flags.parent.mode===b.ObjectLiteral?(this._flags.mode===b.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)},E.prototype.handle_operator=function(g){var L=g.text==="*"&&(O(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[p.START_BLOCK,p.COMMA,p.END_BLOCK,p.SEMICOLON])),M=d(g.text,["-","+"])&&(d(this._flags.last_token.type,[p.START_BLOCK,p.START_EXPR,p.EQUALS,p.OPERATOR])||d(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(g)){var W=!L;this.handle_whitespace_and_comments(g,W)}if(g.text==="*"&&this._flags.last_token.type===p.DOT){this.print_token(g);return}if(g.text==="::"){this.print_token(g);return}if(d(g.text,["-","+"])&&this.start_of_object_property()){this.print_token(g);return}if(this._flags.last_token.type===p.OPERATOR&&d(this._options.operator_position,A)&&this.allow_wrap_or_preserved_newline(g),g.text===":"&&this._flags.in_case){this.print_token(g),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==p.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var at=!0,it=!0,k=!1;if(g.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,k=!0):g.text==="?"&&(this._flags.ternary_depth+=1),!M&&!L&&this._options.preserve_newlines&&d(g.text,h)){var K=g.text===":",nt=K&&k,tt=K&&!k;switch(this._options.operator_position){case V.before_newline:this._output.space_before_token=!tt,this.print_token(g),(!K||nt)&&this.allow_wrap_or_preserved_newline(g),this._output.space_before_token=!0;return;case V.after_newline:this._output.space_before_token=!0,!K||nt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(g):this._output.space_before_token=!1,this.print_token(g),this._output.space_before_token=!0;return;case V.preserve_newline:tt||this.allow_wrap_or_preserved_newline(g),at=!(this._output.just_added_newline()||tt),this._output.space_before_token=at,this.print_token(g),this._output.space_before_token=!0;return}}if(L){this.allow_wrap_or_preserved_newline(g),at=!1;var _t=this._tokens.peek();it=_t&&d(_t.type,[p.WORD,p.RESERVED])}else if(g.text==="...")this.allow_wrap_or_preserved_newline(g),at=this._flags.last_token.type===p.START_BLOCK,it=!1;else if(d(g.text,["--","++","!","~"])||M){if((this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR)&&this.allow_wrap_or_preserved_newline(g),at=!1,it=!1,g.newlines&&(g.text==="--"||g.text==="++"||g.text==="~")){var x=O(this._flags.last_token,z)&&g.newlines;x&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(x,!0)}this._flags.last_token.text===";"&&Z(this._flags.mode)&&(at=!0),this._flags.last_token.type===p.RESERVED?at=!0:this._flags.last_token.type===p.END_EXPR?at=!(this._flags.last_token.text==="]"&&(g.text==="--"||g.text==="++")):this._flags.last_token.type===p.OPERATOR&&(at=d(g.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(g.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(it=!0)),(this._flags.mode===b.BlockStatement&&!this._flags.inline_frame||this._flags.mode===b.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||at,this.print_token(g),this._output.space_before_token=it},E.prototype.handle_block_comment=function(g,L){if(this._output.raw){this._output.add_raw_token(g),g.directives&&g.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(g.directives){this.print_newline(!1,L),this.print_token(g),g.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(g.text)&&!g.newlines){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0;return}else this.print_block_commment(g,L)},E.prototype.print_block_commment=function(g,L){var M=P(g.text),W,at=!1,it=!1,k=g.whitespace_before,K=k.length;if(this.print_newline(!1,L),this.print_token_line_indentation(g),this._output.add_token(M[0]),this.print_newline(!1,L),M.length>1){for(M=M.slice(1),at=I(M,"*"),it=w(M,k),at&&(this._flags.alignment=1),W=0;W<M.length;W++)at?(this.print_token_line_indentation(g),this._output.add_token(_(M[W]))):it&&M[W]?(this.print_token_line_indentation(g),this._output.add_token(M[W].substring(K))):(this._output.current_line.set_indent(-1),this._output.add_token(M[W])),this.print_newline(!1,L);this._flags.alignment=0}},E.prototype.handle_comment=function(g,L){g.newlines?this.print_newline(!1,L):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(g),this.print_newline(!1,L)},E.prototype.handle_dot=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),O(this._flags.last_token,z)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(g,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(g)},E.prototype.handle_unknown=function(g,L){this.print_token(g),g.text[g.text.length-1]===`
161
+ `);return g.length&&L.push(g),L}function B(g){return g===b.ArrayLiteral}function Z(g){return d(g,[b.Expression,b.ForInitializer,b.Conditional])}function U(g,L){for(var M=0;M<g.length;M++){var W=g[M].trim();if(W.charAt(0)!==L)return!1}return!0}function w(g,L){for(var M=0,W=g.length,at;M<W;M++)if(at=g[M],at&&at.indexOf(L)!==0)return!1;return!0}function E(g,L){L=L||{},this._source_text=g||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(L)}E.prototype.create_flags=function(g,L){var M=0;g&&(M=g.indentation_level,!this._output.just_added_newline()&&g.line_indent_level>M&&(M=g.line_indent_level));var W={mode:L,parent:g,last_token:g?g.last_token:new n(p.START_BLOCK,""),last_word:g?g.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:M,alignment:0,line_indent_level:g?g.line_indent_level:M,start_line_index:this._output.get_line_number(),ternary_depth:0};return W},E.prototype._reset=function(g){var L=g.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,L),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(b.BlockStatement);var M=new u(g,this._options);return this._tokens=M.tokenize(),g},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var g,L=this._reset(this._source_text),M=this._options.eol;this._options.eol==="auto"&&(M=`
162
+ `,L&&a.lineBreak.test(L||"")&&(M=L.match(a.lineBreak)[0]));for(var W=this._tokens.next();W;)this.handle_token(W),this._last_last_text=this._flags.last_token.text,this._flags.last_token=W,W=this._tokens.next();return g=this._output.get_code(M),g},E.prototype.handle_token=function(g,L){g.type===p.START_EXPR?this.handle_start_expr(g):g.type===p.END_EXPR?this.handle_end_expr(g):g.type===p.START_BLOCK?this.handle_start_block(g):g.type===p.END_BLOCK?this.handle_end_block(g):g.type===p.WORD?this.handle_word(g):g.type===p.RESERVED?this.handle_word(g):g.type===p.SEMICOLON?this.handle_semicolon(g):g.type===p.STRING?this.handle_string(g):g.type===p.EQUALS?this.handle_equals(g):g.type===p.OPERATOR?this.handle_operator(g):g.type===p.COMMA?this.handle_comma(g):g.type===p.BLOCK_COMMENT?this.handle_block_comment(g,L):g.type===p.COMMENT?this.handle_comment(g,L):g.type===p.DOT?this.handle_dot(g):g.type===p.EOF?this.handle_eof(g):g.type===p.UNKNOWN?this.handle_unknown(g,L):this.handle_unknown(g,L)},E.prototype.handle_whitespace_and_comments=function(g,L){var M=g.newlines,W=this._options.keep_array_indentation&&B(this._flags.mode);if(g.comments_before)for(var at=g.comments_before.next();at;)this.handle_whitespace_and_comments(at,L),this.handle_token(at,L),at=g.comments_before.next();if(W)for(var it=0;it<M;it+=1)this.print_newline(it>0,L);else if(this._options.max_preserve_newlines&&M>this._options.max_preserve_newlines&&(M=this._options.max_preserve_newlines),this._options.preserve_newlines&&M>1){this.print_newline(!1,L);for(var k=1;k<M;k+=1)this.print_newline(!0,L)}};var S=["async","break","continue","return","throw","yield"];return E.prototype.allow_wrap_or_preserved_newline=function(g,L){if(L=L===void 0?!1:L,!this._output.just_added_newline()){var M=this._options.preserve_newlines&&g.newlines||L,W=d(this._flags.last_token.text,h)||d(g.text,h);if(W){var at=d(this._flags.last_token.text,h)&&d(this._options.operator_position,A)||d(g.text,h);M=M&&at}if(M)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(O(this._flags.last_token,S))return;this._output.set_wrap_point()}}},E.prototype.print_newline=function(g,L){if(!L&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==p.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var M=this._tokens.peek();this._flags.mode===b.Statement&&!(this._flags.if_block&&y(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(g)&&(this._flags.multiline_frame=!0)},E.prototype.print_token_line_indentation=function(g){this._output.just_added_newline()&&(this._options.keep_array_indentation&&g.newlines&&(g.text==="["||B(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(g.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},E.prototype.print_token=function(g){if(this._output.raw){this._output.add_raw_token(g);return}if(this._options.comma_first&&g.previous&&g.previous.type===p.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var L=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(L),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(g),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(g),this._output.non_breaking_space=!0,this._output.add_token(g.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},E.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.set_mode=function(g){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,g),this._flags=this.create_flags(this._previous_flags,g),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===b.Statement&&N(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(g){var L=!1;return L=L||O(this._flags.last_token,["var","let","const"])&&g.type===p.WORD,L=L||y(this._flags.last_token,"do"),L=L||!(this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement)&&O(this._flags.last_token,S)&&!g.newlines,L=L||y(this._flags.last_token,"else")&&!(y(g,"if")&&!g.comments_before),L=L||this._flags.last_token.type===p.END_EXPR&&(this._previous_flags.mode===b.ForInitializer||this._previous_flags.mode===b.Conditional),L=L||this._flags.last_token.type===p.WORD&&this._flags.mode===b.BlockStatement&&!this._flags.in_case&&!(g.text==="--"||g.text==="++")&&this._last_last_text!=="function"&&g.type!==p.WORD&&g.type!==p.RESERVED,L=L||this._flags.mode===b.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"])),L?(this.set_mode(b.Statement),this.indent(),this.handle_whitespace_and_comments(g,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g,O(g,["do","for","if","while"])),!0):!1},E.prototype.handle_start_expr=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g);var L=b.Expression;if(g.text==="["){if(this._flags.last_token.type===p.WORD||this._flags.last_token.text===")"){O(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(g),this.set_mode(L),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}L=b.ArrayLiteral,B(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),d(this._flags.last_token.type,[p.START_EXPR,p.END_EXPR,p.WORD,p.OPERATOR,p.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===p.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,L=b.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,L=b.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&g.whitespace_before===""?this._output.space_before_token=!1:(d(this._flags.last_token.text,o)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g);else if(this._flags.last_token.type===p.WORD){this._output.space_before_token=!1;var M=this._tokens.peek(-3);if(this._options.space_after_named_function&&M){var W=this._tokens.peek(-4);O(M,["async","function"])||M.text==="*"&&O(W,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b.ObjectLiteral?(M.text==="{"||M.text===","||M.text==="*"&&(W.text==="{"||W.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(g);(this._flags.last_token.type===p.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===p.START_BLOCK?this.print_newline():(this._flags.last_token.type===p.END_EXPR||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===p.COMMA)&&this.allow_wrap_or_preserved_newline(g,g.newlines),this.print_token(g),this.set_mode(L),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(g){for(;this._flags.mode===b.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(g,g.text==="]"&&B(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===p.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(g),this.restore_mode(),N(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===b.Conditional&&(this._previous_flags.mode=b.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(g){this.handle_whitespace_and_comments(g);var L=this._tokens.peek(),M=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===p.END_EXPR?(this.set_mode(b.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(b.BlockStatement):M&&(d(M.text,[":",","])&&d(L.type,[p.STRING,p.WORD,p.RESERVED])||d(L.text,["get","set","..."])&&d(M.type,[p.WORD,p.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(M.text,[":",","])?this.set_mode(b.BlockStatement):this.set_mode(b.ObjectLiteral):this._flags.last_token.type===p.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(b.BlockStatement):d(this._flags.last_token.type,[p.EQUALS,p.START_EXPR,p.COMMA,p.OPERATOR])||O(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b.ObjectLiteral):this.set_mode(b.BlockStatement),this._flags.last_token&&O(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var W=!L.comments_before&&L.text==="}",at=W&&this._flags.last_word==="function"&&this._flags.last_token.type===p.END_EXPR;if(this._options.brace_preserve_inline){var it=0,k=null;this._flags.inline_frame=!0;do if(it+=1,k=this._tokens.peek(it-1),k.newlines){this._flags.inline_frame=!1;break}while(k.type!==p.EOF&&!(k.type===p.END_BLOCK&&k.opened===g))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==p.OPERATOR&&(at||this._flags.last_token.type===p.EQUALS||O(this._flags.last_token,z)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(B(this._previous_flags.mode)&&(this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.COMMA)&&((this._flags.last_token.type===p.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(g),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==p.OPERATOR&&this._flags.last_token.type!==p.START_EXPR&&(d(this._flags.last_token.type,[p.START_BLOCK,p.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(g),this.indent(),!W&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},E.prototype.handle_end_block=function(g){for(this.handle_whitespace_and_comments(g);this._flags.mode===b.Statement;)this.restore_mode();var L=this._flags.last_token.type===p.START_BLOCK;this._flags.inline_frame&&!L?this._output.space_before_token=!0:this._options.brace_style==="expand"?L||this.print_newline():L||(B(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(g)},E.prototype.handle_word=function(g){if(g.type===p.RESERVED){if(d(g.text,["set","get"])&&this._flags.mode!==b.ObjectLiteral)g.type=p.WORD;else if(g.text==="import"&&d(this._tokens.peek().text,["(","."]))g.type=p.WORD;else if(d(g.text,["as","from"])&&!this._flags.import_block)g.type=p.WORD;else if(this._flags.mode===b.ObjectLiteral){var L=this._tokens.peek();L.text===":"&&(g.type=p.WORD)}}if(this.start_of_statement(g)?O(this._flags.last_token,["var","let","const"])&&g.type===p.WORD&&(this._flags.declaration_statement=!0):g.newlines&&!Z(this._flags.mode)&&(this._flags.last_token.type!==p.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==p.EQUALS&&(this._options.preserve_newlines||!O(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(g),this.print_newline()):this.handle_whitespace_and_comments(g),this._flags.do_block&&!this._flags.do_while)if(y(g,"while")){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&y(g,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===b.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&O(g,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(g),this._flags.in_case=!0;return}if((this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)&&!this.start_of_object_property()&&!(d(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===b.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(g),y(g,"function")){(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(d(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===p.OPERATOR))&&!this._output.just_added_blankline()&&!g.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD?O(this._flags.last_token,["get","set","new","export"])||O(this._flags.last_token,S)?this._output.space_before_token=!0:y(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===p.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Z(this._flags.mode)||B(this._flags.mode))||this.print_newline(),this.print_token(g),this._flags.last_word=g.text;return}var M="NONE";if(this._flags.last_token.type===p.END_BLOCK?this._previous_flags.inline_frame?M="SPACE":O(g,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines?M="NEWLINE":(M="SPACE",this._output.space_before_token=!0):M="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&this._flags.mode===b.BlockStatement?M="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&Z(this._flags.mode)?M="SPACE":this._flags.last_token.type===p.STRING?M="NEWLINE":this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&d(this._last_last_text,["{",","]))?M="SPACE":this._flags.last_token.type===p.START_BLOCK?this._flags.inline_frame?M="SPACE":M="NEWLINE":this._flags.last_token.type===p.END_EXPR&&(this._output.space_before_token=!0,M="NEWLINE"),O(g,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?M="SPACE":M="NEWLINE"),O(g,["else","catch","finally"]))if((!(this._flags.last_token.type===p.END_BLOCK&&this._previous_flags.mode===b.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var W=this._output.current_line;W.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else M==="NEWLINE"?O(this._flags.last_token,z)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&O(g,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==p.END_EXPR?(this._flags.last_token.type!==p.START_EXPR||!O(g,["var","let","const"]))&&this._flags.last_token.text!==":"&&(y(g,"if")&&y(g.previous,"else")?this._output.space_before_token=!0:this.print_newline()):O(g,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&B(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():M==="SPACE"&&(this._output.space_before_token=!0);g.previous&&(g.previous.type===p.WORD||g.previous.type===p.RESERVED)&&(this._output.space_before_token=!0),this.print_token(g),this._flags.last_word=g.text,g.type===p.RESERVED&&(g.text==="do"?this._flags.do_block=!0:g.text==="if"?this._flags.if_block=!0:g.text==="import"?this._flags.import_block=!0:this._flags.import_block&&y(g,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(g){this.start_of_statement(g)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(g);for(var L=this._tokens.peek();this._flags.mode===b.Statement&&!(this._flags.if_block&&y(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(g)},E.prototype.handle_string=function(g){g.text.startsWith("`")&&g.newlines===0&&g.whitespace_before===""&&(g.previous.text===")"||this._flags.last_token.type===p.WORD)||(this.start_of_statement(g)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(g),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g):g.text.startsWith("`")&&this._flags.last_token.type===p.END_EXPR&&(g.previous.text==="]"||g.previous.text===")")&&g.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(g)},E.prototype.handle_equals=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0},E.prototype.handle_comma=function(g){this.handle_whitespace_and_comments(g,!0),this.print_token(g),this._output.space_before_token=!0,this._flags.declaration_statement?(Z(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)):this._flags.mode===b.ObjectLiteral||this._flags.mode===b.Statement&&this._flags.parent.mode===b.ObjectLiteral?(this._flags.mode===b.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)},E.prototype.handle_operator=function(g){var L=g.text==="*"&&(O(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[p.START_BLOCK,p.COMMA,p.END_BLOCK,p.SEMICOLON])),M=d(g.text,["-","+"])&&(d(this._flags.last_token.type,[p.START_BLOCK,p.START_EXPR,p.EQUALS,p.OPERATOR])||d(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(g)){var W=!L;this.handle_whitespace_and_comments(g,W)}if(g.text==="*"&&this._flags.last_token.type===p.DOT){this.print_token(g);return}if(g.text==="::"){this.print_token(g);return}if(d(g.text,["-","+"])&&this.start_of_object_property()){this.print_token(g);return}if(this._flags.last_token.type===p.OPERATOR&&d(this._options.operator_position,A)&&this.allow_wrap_or_preserved_newline(g),g.text===":"&&this._flags.in_case){this.print_token(g),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==p.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var at=!0,it=!0,k=!1;if(g.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,k=!0):g.text==="?"&&(this._flags.ternary_depth+=1),!M&&!L&&this._options.preserve_newlines&&d(g.text,h)){var K=g.text===":",nt=K&&k,tt=K&&!k;switch(this._options.operator_position){case V.before_newline:this._output.space_before_token=!tt,this.print_token(g),(!K||nt)&&this.allow_wrap_or_preserved_newline(g),this._output.space_before_token=!0;return;case V.after_newline:this._output.space_before_token=!0,!K||nt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(g):this._output.space_before_token=!1,this.print_token(g),this._output.space_before_token=!0;return;case V.preserve_newline:tt||this.allow_wrap_or_preserved_newline(g),at=!(this._output.just_added_newline()||tt),this._output.space_before_token=at,this.print_token(g),this._output.space_before_token=!0;return}}if(L){this.allow_wrap_or_preserved_newline(g),at=!1;var _t=this._tokens.peek();it=_t&&d(_t.type,[p.WORD,p.RESERVED])}else if(g.text==="...")this.allow_wrap_or_preserved_newline(g),at=this._flags.last_token.type===p.START_BLOCK,it=!1;else if(d(g.text,["--","++","!","~"])||M){if((this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR)&&this.allow_wrap_or_preserved_newline(g),at=!1,it=!1,g.newlines&&(g.text==="--"||g.text==="++"||g.text==="~")){var x=O(this._flags.last_token,z)&&g.newlines;x&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(x,!0)}this._flags.last_token.text===";"&&Z(this._flags.mode)&&(at=!0),this._flags.last_token.type===p.RESERVED?at=!0:this._flags.last_token.type===p.END_EXPR?at=!(this._flags.last_token.text==="]"&&(g.text==="--"||g.text==="++")):this._flags.last_token.type===p.OPERATOR&&(at=d(g.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(g.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(it=!0)),(this._flags.mode===b.BlockStatement&&!this._flags.inline_frame||this._flags.mode===b.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||at,this.print_token(g),this._output.space_before_token=it},E.prototype.handle_block_comment=function(g,L){if(this._output.raw){this._output.add_raw_token(g),g.directives&&g.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(g.directives){this.print_newline(!1,L),this.print_token(g),g.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(g.text)&&!g.newlines){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0;return}else this.print_block_commment(g,L)},E.prototype.print_block_commment=function(g,L){var M=P(g.text),W,at=!1,it=!1,k=g.whitespace_before,K=k.length;if(this.print_newline(!1,L),this.print_token_line_indentation(g),this._output.add_token(M[0]),this.print_newline(!1,L),M.length>1){for(M=M.slice(1),at=U(M,"*"),it=w(M,k),at&&(this._flags.alignment=1),W=0;W<M.length;W++)at?(this.print_token_line_indentation(g),this._output.add_token(_(M[W]))):it&&M[W]?(this.print_token_line_indentation(g),this._output.add_token(M[W].substring(K))):(this._output.current_line.set_indent(-1),this._output.add_token(M[W])),this.print_newline(!1,L);this._flags.alignment=0}},E.prototype.handle_comment=function(g,L){g.newlines?this.print_newline(!1,L):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(g),this.print_newline(!1,L)},E.prototype.handle_dot=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),O(this._flags.last_token,z)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(g,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(g)},E.prototype.handle_unknown=function(g,L){this.print_token(g),g.text[g.text.length-1]===`
163
163
  `&&this.print_newline(!1,L)},E.prototype.handle_eof=function(g){for(;this._flags.mode===b.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g)},ah.Beautifier=E,ah}var t0;function dL(){if(t0)return Nu.exports;t0=1;var e=hL().Beautifier,n=Pv().Options;function a(r,u){var o=new e(r,u);return o.beautify()}return Nu.exports=a,Nu.exports.defaultOptions=function(){return new n},Nu.exports}var Cu={exports:{}},_h={},mh={},e0;function Gv(){if(e0)return mh;e0=1;var e=fd().Options;function n(a){e.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<u.length;o++)u[o]!=="expand"?this.brace_style="collapse":this.brace_style=u[o]}return n.prototype=new e,mh.Options=n,mh}var n0;function pL(){if(n0)return _h;n0=1;var e=Gv().Options,n=cd().Output,a=hd().InputScanner,r=dd().Directives,u=new r(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,p=/\s/,d=/(?:\s|\n)+/g,_=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,v=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(O,z){this._source_text=O||"",this._options=new e(z),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return y.prototype.eatString=function(O){var z="";for(this._ch=this._input.next();this._ch;){if(z+=this._ch,this._ch==="\\")z+=this._input.next();else if(O.indexOf(this._ch)!==-1||this._ch===`
164
164
  `)break;this._ch=this._input.next()}return z},y.prototype.eatWhitespace=function(O){for(var z=p.test(this._input.peek()),G=0;p.test(this._input.peek());)this._ch=this._input.next(),O&&this._ch===`
165
165
  `&&(G===0||G<this._options.max_preserve_newlines)&&(G++,this._output.add_new_line(!0));return z},y.prototype.foundNestedPseudoClass=function(){for(var O=0,z=1,G=this._input.peek(z);G;){if(G==="{")return!0;if(G==="(")O+=1;else if(G===")"){if(O===0)return!1;O-=1}else if(G===";"||G==="}")return!1;z++,G=this._input.peek(z)}return!1},y.prototype.print_string=function(O){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(O)},y.prototype.preserveSingleSpace=function(O){O&&(this._output.space_before_token=!0)},y.prototype.indent=function(){this._indentLevel++},y.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var O=this._source_text,z=this._options.eol;z==="auto"&&(z=`
166
166
  `,O&&o.test(O||"")&&(z=O.match(o)[0])),O=O.replace(h,`
167
- `);var G=O.match(/^[\t ]*/)[0];this._output=new n(this._options,G),this._input=new a(O),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var V=0,A=!1,b=!1,N=!1,P=!1,B=!1,Z=this._ch,I=!1,w,E,S;w=this._input.read(d),E=w!=="",S=Z,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Z=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var g=this._input.read(_),L=u.get_directives(g);L&&L.ignore==="start"&&(g+=u.readIgnored(this._input)),this.print_string(g),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(v)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(E),this.print_string(this._ch);var M=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);M.match(/[ :]$/)&&(M=this.eatString(": ").replace(/\s+$/,""),this.print_string(M),this._output.space_before_token=!0),V===0&&M.indexOf(":")!==-1&&(b=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(E),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var W=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);W.match(/[ :]$/)&&(W=this.eatString(": ").replace(/\s+$/,""),this.print_string(W),this._output.space_before_token=!0),V===0&&W.indexOf(":")!==-1?(b=!0,this.indent()):W in this.NESTED_AT_RULE?(this._nestedLevel+=1,W in this.CONDITIONAL_GROUP_RULE&&(N=!0)):V===0&&!b&&(P=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(E),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")b&&(b=!1,this.outdent()),P=!1,N?(N=!1,A=this._indentLevel>=this._nestedLevel):A=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&A&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(S==="("?this._output.space_before_token=!1:S!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),S==="{"&&this._output.trim(!0),b&&(this.outdent(),b=!1),this.print_string(this._ch),A=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var at=0;at<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;at++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[at])){I=!0;break}(A||N)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!P&&V===0?(this.print_string(":"),b||(b=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var it=S==='"'||S==="'";this.preserveSingleSpace(it||E),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")I=!1,V===0?(b&&(this.outdent(),b=!1),P=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),V++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),V&&(V--,this.outdent()));else{var k=!1;this._input.lookBack("with")&&(k=!0),this.preserveSingleSpace(E||k),this.print_string(this._ch),b&&S==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),B=!0):(this.eatWhitespace(),V++,this.indent())}else if(this._ch===")")V&&(V--,this.outdent()),B&&this._input.peek()===";"&&this._options.selector_separator_newline&&(B=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!b||B)&&V===0&&!P?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!b&&V===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&p.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(E),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),p.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var K=S==='"'||S==="'";this.preserveSingleSpace(K||E),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
168
- `&&I&&this._output.add_new_line()}var nt=this._output.get_code(z);return nt},_h.Beautifier=y,_h}var i0;function _L(){if(i0)return Cu.exports;i0=1;var e=pL().Beautifier,n=Gv().Options;function a(r,u){var o=new e(r,u);return o.beautify()}return Cu.exports=a,Cu.exports.defaultOptions=function(){return new n},Cu.exports}var Lu={exports:{}},gh={},yh={},a0;function Hv(){if(a0)return yh;a0=1;var e=fd().Options;function n(a){e.call(this,a,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return n.prototype=new e,yh.Options=n,yh}var Mu={},s0;function r0(){if(s0)return Mu;s0=1;var e=no().Tokenizer,n=no().TOKEN,a=dd().Directives,r=qv().TemplatablePattern,u=Oo().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},h=new a(/<\!--/,/-->/),p=function(d,_){e.call(this,d,_),this._current_tag_name="";var v=new r(this._input).read_options(this._options),y=new u(this._input);if(this.__patterns={word:v.until(/[\n\r\t <]/),word_control_flow_close_excluded:v.until(/[\n\r\t <}]/),single_quote:v.until_after(/'/),double_quote:v.until_after(/"/),attribute:v.until(/[\n\r\t =>]|\/>/),element_name:v.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var O=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(O).until_after(O)}};return p.prototype=new e,p.prototype._is_comment=function(d){return!1},p.prototype._is_opening=function(d){return d.type===o.TAG_OPEN||d.type===o.CONTROL_FLOW_OPEN},p.prototype._is_closing=function(d,_){return d.type===o.TAG_CLOSE&&_&&((d.text===">"||d.text==="/>")&&_.text[0]==="<"||d.text==="}}"&&_.text[0]==="{"&&_.text[1]==="{")||d.type===o.CONTROL_FLOW_CLOSE&&d.text==="}"&&_.text.endsWith("{")},p.prototype._reset=function(){this._current_tag_name=""},p.prototype._get_next_token=function(d,_){var v=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(o.EOF,""):(v=v||this._read_open_handlebars(y,_),v=v||this._read_attribute(y,d,_),v=v||this._read_close(y,_),v=v||this._read_script_and_style(y,d),v=v||this._read_control_flows(y,_),v=v||this._read_raw_content(y,d,_),v=v||this._read_content_word(y,_),v=v||this._read_comment_or_cdata(y),v=v||this._read_processing(y),v=v||this._read_open(y,_),v=v||this._create_token(o.UNKNOWN,this._input.next()),v)},p.prototype._read_comment_or_cdata=function(d){var _=null,v=null,y=null;if(d==="<"){var O=this._input.peek(1);O==="!"&&(v=this.__patterns.comment.read(),v?(y=h.get_directives(v),y&&y.ignore==="start"&&(v+=h.readIgnored(this._input))):v=this.__patterns.cdata.read()),v&&(_=this._create_token(o.COMMENT,v),_.directives=y)}return _},p.prototype._read_processing=function(d){var _=null,v=null,y=null;if(d==="<"){var O=this._input.peek(1);(O==="!"||O==="?")&&(v=this.__patterns.conditional_comment.read(),v=v||this.__patterns.processing.read()),v&&(_=this._create_token(o.COMMENT,v),_.directives=y)}return _},p.prototype._read_open=function(d,_){var v=null,y=null;return(!_||_.type===o.CONTROL_FLOW_OPEN)&&d==="<"&&(v=this._input.next(),this._input.peek()==="/"&&(v+=this._input.next()),v+=this.__patterns.element_name.read(),y=this._create_token(o.TAG_OPEN,v)),y},p.prototype._read_open_handlebars=function(d,_){var v=null,y=null;return(!_||_.type===o.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&d==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(v=this.__patterns.handlebars_comment.read(),v=v||this.__patterns.handlebars.read(),y=this._create_token(o.COMMENT,v)):(v=this.__patterns.handlebars_open.read(),y=this._create_token(o.TAG_OPEN,v))),y},p.prototype._read_control_flows=function(d,_){var v="",y=null;if(!this._options.templating.includes("angular"))return y;if(d==="@"){if(v=this.__patterns.angular_control_flow_start.read(),v==="")return y;for(var O=v.endsWith("(")?1:0,z=0;!(v.endsWith("{")&&O===z);){var G=this._input.next();if(G===null)break;G==="("?O++:G===")"&&z++,v+=G}y=this._create_token(o.CONTROL_FLOW_OPEN,v)}else d==="}"&&_&&_.type===o.CONTROL_FLOW_OPEN&&(v=this._input.next(),y=this._create_token(o.CONTROL_FLOW_CLOSE,v));return y},p.prototype._read_close=function(d,_){var v=null,y=null;return _&&_.type===o.TAG_OPEN&&(_.text[0]==="<"&&(d===">"||d==="/"&&this._input.peek(1)===">")?(v=this._input.next(),d==="/"&&(v+=this._input.next()),y=this._create_token(o.TAG_CLOSE,v)):_.text[0]==="{"&&d==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(o.TAG_CLOSE,"}}"))),y},p.prototype._read_attribute=function(d,_,v){var y=null,O="";if(v&&v.text[0]==="<")if(d==="=")y=this._create_token(o.EQUALS,this._input.next());else if(d==='"'||d==="'"){var z=this._input.next();d==='"'?z+=this.__patterns.double_quote.read():z+=this.__patterns.single_quote.read(),y=this._create_token(o.VALUE,z)}else O=this.__patterns.attribute.read(),O&&(_.type===o.EQUALS?y=this._create_token(o.VALUE,O):y=this._create_token(o.ATTRIBUTE,O));return y},p.prototype._is_content_unformatted=function(d){return this._options.void_elements.indexOf(d)===-1&&(this._options.content_unformatted.indexOf(d)!==-1||this._options.unformatted.indexOf(d)!==-1)},p.prototype._read_raw_content=function(d,_,v){var y="";if(v&&v.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(_.type===o.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var O=_.opened.text.substr(1).toLowerCase();this._is_content_unformatted(O)&&(y=this._input.readUntil(new RegExp("</"+O+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(o.TEXT,y):null},p.prototype._read_script_and_style=function(d,_){if(_.type===o.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var v=_.opened.text.substr(1).toLowerCase();if(v==="script"||v==="style"){var y=this._read_comment_or_cdata(d);if(y)return y.type=o.TEXT,y;var O=this._input.readUntil(new RegExp("</"+v+"[\\n\\r\\t ]*?>","ig"));if(O)return this._create_token(o.TEXT,O)}}return null},p.prototype._read_content_word=function(d,_){var v="";return this._options.unformatted_content_delimiter&&d===this._options.unformatted_content_delimiter[0]&&(v=this.__patterns.unformatted_content_delimiter.read()),v||(v=_&&_.type===o.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),v?this._create_token(o.TEXT,v):null},Mu.Tokenizer=p,Mu.TOKEN=o,Mu}var l0;function mL(){if(l0)return gh;l0=1;var e=Hv().Options,n=cd().Output,a=r0().Tokenizer,r=r0().TOKEN,u=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,h=function(A,b){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=A.max_preserve_newlines,this.preserve_newlines=A.preserve_newlines,this._output=new n(A,b)};h.prototype.current_line_has_match=function(A){return this._output.current_line.has_match(A)},h.prototype.set_space_before_token=function(A,b){this._output.space_before_token=A,this._output.non_breaking_space=b},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(A){this._output.add_raw_token(A)},h.prototype.print_preserved_newlines=function(A){var b=0;A.type!==r.TEXT&&A.previous.type!==r.TEXT&&(b=A.newlines?1:0),this.preserve_newlines&&(b=A.newlines<this.max_preserve_newlines+1?A.newlines:this.max_preserve_newlines+1);for(var N=0;N<b;N++)this.print_newline(N>0);return b!==0},h.prototype.traverse_whitespace=function(A){return A.whitespace_before||A.newlines?(this.print_preserved_newlines(A)||(this._output.space_before_token=!0),!0):!1},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(A){this._output.add_new_line(A)},h.prototype.print_token=function(A){A.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(A.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(A){return A=this.indent_level+(A||0),A<1?"":this._output.get_indent_string(A)};var p=function(A){for(var b=null,N=A.next;N.type!==r.EOF&&A.closed!==N;){if(N.type===r.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===r.EQUALS&&N.next.next&&N.next.next.type===r.VALUE&&(b=N.next.next.text);break}N=N.next}return b},d=function(A,b){var N=null,P=null;return b.closed?(A==="script"?N="text/javascript":A==="style"&&(N="text/css"),N=p(b)||N,N.search("text/css")>-1?P="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?P="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?P="html":N.search(/test\/null/)>-1&&(P="null"),P):null};function _(A,b){return b.indexOf(A)!==-1}function v(A,b,N){this.parent=A||null,this.tag=b?b.tag_name:"",this.indent_level=N||0,this.parser_token=b||null}function y(A){this._printer=A,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(A){var b=new v(this._current_frame,A,this._printer.indent_level);this._current_frame=b},y.prototype._try_pop_frame=function(A){var b=null;return A&&(b=A.parser_token,this._printer.indent_level=A.indent_level,this._current_frame=A.parent),b},y.prototype._get_frame=function(A,b){for(var N=this._current_frame;N&&A.indexOf(N.tag)===-1;){if(b&&b.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},y.prototype.try_pop=function(A,b){var N=this._get_frame([A],b);return this._try_pop_frame(N)},y.prototype.indent_to_tag=function(A){var b=this._get_frame(A);b&&(this._printer.indent_level=b.indent_level)};function O(A,b,N,P){this._source_text=A||"",b=b||{},this._js_beautify=N,this._css_beautify=P,this._tag_stack=null;var B=new e(b,"html");this._options=B,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}O.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var A=this._source_text,b=this._options.eol;this._options.eol==="auto"&&(b=`
167
+ `);var G=O.match(/^[\t ]*/)[0];this._output=new n(this._options,G),this._input=new a(O),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var V=0,A=!1,b=!1,N=!1,P=!1,B=!1,Z=this._ch,U=!1,w,E,S;w=this._input.read(d),E=w!=="",S=Z,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Z=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var g=this._input.read(_),L=u.get_directives(g);L&&L.ignore==="start"&&(g+=u.readIgnored(this._input)),this.print_string(g),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(v)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(E),this.print_string(this._ch);var M=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);M.match(/[ :]$/)&&(M=this.eatString(": ").replace(/\s+$/,""),this.print_string(M),this._output.space_before_token=!0),V===0&&M.indexOf(":")!==-1&&(b=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(E),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var W=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);W.match(/[ :]$/)&&(W=this.eatString(": ").replace(/\s+$/,""),this.print_string(W),this._output.space_before_token=!0),V===0&&W.indexOf(":")!==-1?(b=!0,this.indent()):W in this.NESTED_AT_RULE?(this._nestedLevel+=1,W in this.CONDITIONAL_GROUP_RULE&&(N=!0)):V===0&&!b&&(P=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(E),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")b&&(b=!1,this.outdent()),P=!1,N?(N=!1,A=this._indentLevel>=this._nestedLevel):A=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&A&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(S==="("?this._output.space_before_token=!1:S!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),S==="{"&&this._output.trim(!0),b&&(this.outdent(),b=!1),this.print_string(this._ch),A=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var at=0;at<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;at++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[at])){U=!0;break}(A||N)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!P&&V===0?(this.print_string(":"),b||(b=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var it=S==='"'||S==="'";this.preserveSingleSpace(it||E),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")U=!1,V===0?(b&&(this.outdent(),b=!1),P=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),V++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),V&&(V--,this.outdent()));else{var k=!1;this._input.lookBack("with")&&(k=!0),this.preserveSingleSpace(E||k),this.print_string(this._ch),b&&S==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),B=!0):(this.eatWhitespace(),V++,this.indent())}else if(this._ch===")")V&&(V--,this.outdent()),B&&this._input.peek()===";"&&this._options.selector_separator_newline&&(B=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!b||B)&&V===0&&!P?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!b&&V===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&p.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(E),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),p.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var K=S==='"'||S==="'";this.preserveSingleSpace(K||E),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
168
+ `&&U&&this._output.add_new_line()}var nt=this._output.get_code(z);return nt},_h.Beautifier=y,_h}var i0;function _L(){if(i0)return Cu.exports;i0=1;var e=pL().Beautifier,n=Gv().Options;function a(r,u){var o=new e(r,u);return o.beautify()}return Cu.exports=a,Cu.exports.defaultOptions=function(){return new n},Cu.exports}var Lu={exports:{}},gh={},yh={},a0;function Hv(){if(a0)return yh;a0=1;var e=fd().Options;function n(a){e.call(this,a,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return n.prototype=new e,yh.Options=n,yh}var Mu={},s0;function r0(){if(s0)return Mu;s0=1;var e=no().Tokenizer,n=no().TOKEN,a=dd().Directives,r=qv().TemplatablePattern,u=Oo().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},h=new a(/<\!--/,/-->/),p=function(d,_){e.call(this,d,_),this._current_tag_name="";var v=new r(this._input).read_options(this._options),y=new u(this._input);if(this.__patterns={word:v.until(/[\n\r\t <]/),word_control_flow_close_excluded:v.until(/[\n\r\t <}]/),single_quote:v.until_after(/'/),double_quote:v.until_after(/"/),attribute:v.until(/[\n\r\t =>]|\/>/),element_name:v.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var O=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(O).until_after(O)}};return p.prototype=new e,p.prototype._is_comment=function(d){return!1},p.prototype._is_opening=function(d){return d.type===o.TAG_OPEN||d.type===o.CONTROL_FLOW_OPEN},p.prototype._is_closing=function(d,_){return d.type===o.TAG_CLOSE&&_&&((d.text===">"||d.text==="/>")&&_.text[0]==="<"||d.text==="}}"&&_.text[0]==="{"&&_.text[1]==="{")||d.type===o.CONTROL_FLOW_CLOSE&&d.text==="}"&&_.text.endsWith("{")},p.prototype._reset=function(){this._current_tag_name=""},p.prototype._get_next_token=function(d,_){var v=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(o.EOF,""):(v=v||this._read_open_handlebars(y,_),v=v||this._read_attribute(y,d,_),v=v||this._read_close(y,_),v=v||this._read_script_and_style(y,d),v=v||this._read_control_flows(y,_),v=v||this._read_raw_content(y,d,_),v=v||this._read_content_word(y,_),v=v||this._read_comment_or_cdata(y),v=v||this._read_processing(y),v=v||this._read_open(y,_),v=v||this._create_token(o.UNKNOWN,this._input.next()),v)},p.prototype._read_comment_or_cdata=function(d){var _=null,v=null,y=null;if(d==="<"){var O=this._input.peek(1);O==="!"&&(v=this.__patterns.comment.read(),v?(y=h.get_directives(v),y&&y.ignore==="start"&&(v+=h.readIgnored(this._input))):v=this.__patterns.cdata.read()),v&&(_=this._create_token(o.COMMENT,v),_.directives=y)}return _},p.prototype._read_processing=function(d){var _=null,v=null,y=null;if(d==="<"){var O=this._input.peek(1);(O==="!"||O==="?")&&(v=this.__patterns.conditional_comment.read(),v=v||this.__patterns.processing.read()),v&&(_=this._create_token(o.COMMENT,v),_.directives=y)}return _},p.prototype._read_open=function(d,_){var v=null,y=null;return(!_||_.type===o.CONTROL_FLOW_OPEN)&&d==="<"&&(v=this._input.next(),this._input.peek()==="/"&&(v+=this._input.next()),v+=this.__patterns.element_name.read(),y=this._create_token(o.TAG_OPEN,v)),y},p.prototype._read_open_handlebars=function(d,_){var v=null,y=null;return(!_||_.type===o.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&d==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(v=this.__patterns.handlebars_comment.read(),v=v||this.__patterns.handlebars.read(),y=this._create_token(o.COMMENT,v)):(v=this.__patterns.handlebars_open.read(),y=this._create_token(o.TAG_OPEN,v))),y},p.prototype._read_control_flows=function(d,_){var v="",y=null;if(!this._options.templating.includes("angular"))return y;if(d==="@"){if(v=this.__patterns.angular_control_flow_start.read(),v==="")return y;for(var O=v.endsWith("(")?1:0,z=0;!(v.endsWith("{")&&O===z);){var G=this._input.next();if(G===null)break;G==="("?O++:G===")"&&z++,v+=G}y=this._create_token(o.CONTROL_FLOW_OPEN,v)}else d==="}"&&_&&_.type===o.CONTROL_FLOW_OPEN&&(v=this._input.next(),y=this._create_token(o.CONTROL_FLOW_CLOSE,v));return y},p.prototype._read_close=function(d,_){var v=null,y=null;return _&&_.type===o.TAG_OPEN&&(_.text[0]==="<"&&(d===">"||d==="/"&&this._input.peek(1)===">")?(v=this._input.next(),d==="/"&&(v+=this._input.next()),y=this._create_token(o.TAG_CLOSE,v)):_.text[0]==="{"&&d==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(o.TAG_CLOSE,"}}"))),y},p.prototype._read_attribute=function(d,_,v){var y=null,O="";if(v&&v.text[0]==="<")if(d==="=")y=this._create_token(o.EQUALS,this._input.next());else if(d==='"'||d==="'"){var z=this._input.next();d==='"'?z+=this.__patterns.double_quote.read():z+=this.__patterns.single_quote.read(),y=this._create_token(o.VALUE,z)}else O=this.__patterns.attribute.read(),O&&(_.type===o.EQUALS?y=this._create_token(o.VALUE,O):y=this._create_token(o.ATTRIBUTE,O));return y},p.prototype._is_content_unformatted=function(d){return this._options.void_elements.indexOf(d)===-1&&(this._options.content_unformatted.indexOf(d)!==-1||this._options.unformatted.indexOf(d)!==-1)},p.prototype._read_raw_content=function(d,_,v){var y="";if(v&&v.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(_.type===o.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var O=_.opened.text.substr(1).toLowerCase();this._is_content_unformatted(O)&&(y=this._input.readUntil(new RegExp("</"+O+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(o.TEXT,y):null},p.prototype._read_script_and_style=function(d,_){if(_.type===o.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var v=_.opened.text.substr(1).toLowerCase();if(v==="script"||v==="style"){var y=this._read_comment_or_cdata(d);if(y)return y.type=o.TEXT,y;var O=this._input.readUntil(new RegExp("</"+v+"[\\n\\r\\t ]*?>","ig"));if(O)return this._create_token(o.TEXT,O)}}return null},p.prototype._read_content_word=function(d,_){var v="";return this._options.unformatted_content_delimiter&&d===this._options.unformatted_content_delimiter[0]&&(v=this.__patterns.unformatted_content_delimiter.read()),v||(v=_&&_.type===o.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),v?this._create_token(o.TEXT,v):null},Mu.Tokenizer=p,Mu.TOKEN=o,Mu}var l0;function mL(){if(l0)return gh;l0=1;var e=Hv().Options,n=cd().Output,a=r0().Tokenizer,r=r0().TOKEN,u=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,h=function(A,b){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=A.max_preserve_newlines,this.preserve_newlines=A.preserve_newlines,this._output=new n(A,b)};h.prototype.current_line_has_match=function(A){return this._output.current_line.has_match(A)},h.prototype.set_space_before_token=function(A,b){this._output.space_before_token=A,this._output.non_breaking_space=b},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(A){this._output.add_raw_token(A)},h.prototype.print_preserved_newlines=function(A){var b=0;A.type!==r.TEXT&&A.previous.type!==r.TEXT&&(b=A.newlines?1:0),this.preserve_newlines&&(b=A.newlines<this.max_preserve_newlines+1?A.newlines:this.max_preserve_newlines+1);for(var N=0;N<b;N++)this.print_newline(N>0);return b!==0},h.prototype.traverse_whitespace=function(A){return A.whitespace_before||A.newlines?(this.print_preserved_newlines(A)||(this._output.space_before_token=!0),!0):!1},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(A){this._output.add_new_line(A)},h.prototype.print_token=function(A){A.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(A.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(A){return A=this.indent_level+(A||0),A<1?"":this._output.get_indent_string(A)};var p=function(A){for(var b=null,N=A.next;N.type!==r.EOF&&A.closed!==N;){if(N.type===r.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===r.EQUALS&&N.next.next&&N.next.next.type===r.VALUE&&(b=N.next.next.text);break}N=N.next}return b},d=function(A,b){var N=null,P=null;return b.closed?(A==="script"?N="text/javascript":A==="style"&&(N="text/css"),N=p(b)||N,N.search("text/css")>-1?P="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?P="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?P="html":N.search(/test\/null/)>-1&&(P="null"),P):null};function _(A,b){return b.indexOf(A)!==-1}function v(A,b,N){this.parent=A||null,this.tag=b?b.tag_name:"",this.indent_level=N||0,this.parser_token=b||null}function y(A){this._printer=A,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(A){var b=new v(this._current_frame,A,this._printer.indent_level);this._current_frame=b},y.prototype._try_pop_frame=function(A){var b=null;return A&&(b=A.parser_token,this._printer.indent_level=A.indent_level,this._current_frame=A.parent),b},y.prototype._get_frame=function(A,b){for(var N=this._current_frame;N&&A.indexOf(N.tag)===-1;){if(b&&b.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},y.prototype.try_pop=function(A,b){var N=this._get_frame([A],b);return this._try_pop_frame(N)},y.prototype.indent_to_tag=function(A){var b=this._get_frame(A);b&&(this._printer.indent_level=b.indent_level)};function O(A,b,N,P){this._source_text=A||"",b=b||{},this._js_beautify=N,this._css_beautify=P,this._tag_stack=null;var B=new e(b,"html");this._options=B,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}O.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var A=this._source_text,b=this._options.eol;this._options.eol==="auto"&&(b=`
169
169
  `,A&&u.test(A)&&(b=A.match(u)[0])),A=A.replace(o,`
170
- `);var N=A.match(/^[\t ]*/)[0],P={text:"",type:""},B=new z(this._options),Z=new h(this._options,N),I=new a(A,this._options).tokenize();this._tag_stack=new y(Z);for(var w=null,E=I.next();E.type!==r.EOF;)E.type===r.TAG_OPEN||E.type===r.COMMENT?(w=this._handle_tag_open(Z,E,B,P,I),B=w):E.type===r.ATTRIBUTE||E.type===r.EQUALS||E.type===r.VALUE||E.type===r.TEXT&&!B.tag_complete?w=this._handle_inside_tag(Z,E,B,P):E.type===r.TAG_CLOSE?w=this._handle_tag_close(Z,E,B):E.type===r.TEXT?w=this._handle_text(Z,E,B):E.type===r.CONTROL_FLOW_OPEN?w=this._handle_control_flow_open(Z,E):E.type===r.CONTROL_FLOW_CLOSE?w=this._handle_control_flow_close(Z,E):Z.add_raw_token(E),P=w,E=I.next();var S=Z._output.get_code(b);return S},O.prototype._handle_control_flow_open=function(A,b){var N={text:b.text,type:b.type};return A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),b.newlines?A.print_preserved_newlines(b):A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),A.print_token(b),A.indent(),N},O.prototype._handle_control_flow_close=function(A,b){var N={text:b.text,type:b.type};return A.deindent(),b.newlines?A.print_preserved_newlines(b):A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),A.print_token(b),N},O.prototype._handle_tag_close=function(A,b,N){var P={text:b.text,type:b.type};return A.alignment_size=0,N.tag_complete=!0,A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),N.is_unformatted?A.add_raw_token(b):(N.tag_start_char==="<"&&(A.set_space_before_token(b.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&A.print_newline(!1)),A.print_token(b)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(A.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&A.set_wrap_point(),P},O.prototype._handle_inside_tag=function(A,b,N,P){var B=N.has_wrapped_attrs,Z={text:b.text,type:b.type};return A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),N.is_unformatted?A.add_raw_token(b):N.tag_start_char==="{"&&b.type===r.TEXT?A.print_preserved_newlines(b)?(b.newlines=0,A.add_raw_token(b)):A.print_token(b):(b.type===r.ATTRIBUTE?A.set_space_before_token(!0):(b.type===r.EQUALS||b.type===r.VALUE&&b.previous.type===r.EQUALS)&&A.set_space_before_token(!1),b.type===r.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(A.traverse_whitespace(b),B=B||b.newlines!==0),this._is_wrap_attributes_force&&N.attr_count>=this._options.wrap_attributes_min_attrs&&(P.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(A.print_newline(!1),B=!0)),A.print_token(b),B=B||A.previous_token_wrapped(),N.has_wrapped_attrs=B),Z},O.prototype._handle_text=function(A,b,N){var P={text:b.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(A,b,N):N.is_unformatted||N.is_content_unformatted?A.add_raw_token(b):(A.traverse_whitespace(b),A.print_token(b)),P},O.prototype._print_custom_beatifier_text=function(A,b,N){var P=this;if(b.text!==""){var B=b.text,Z,I=1,w="",E="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?Z=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?Z=this._css_beautify:N.custom_beautifier_name==="html"&&(Z=function(at,it){var k=new O(at,it,P._js_beautify,P._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?I=0:this._options.indent_scripts==="separate"&&(I=-A.indent_level);var S=A.get_full_indent(I);if(B=B.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&B[0]==="<"&&B.match(/^(<!--|<!\[CDATA\[)/)){var g=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(B);if(!g){A.add_raw_token(b);return}w=S+g[1]+`
170
+ `);var N=A.match(/^[\t ]*/)[0],P={text:"",type:""},B=new z(this._options),Z=new h(this._options,N),U=new a(A,this._options).tokenize();this._tag_stack=new y(Z);for(var w=null,E=U.next();E.type!==r.EOF;)E.type===r.TAG_OPEN||E.type===r.COMMENT?(w=this._handle_tag_open(Z,E,B,P,U),B=w):E.type===r.ATTRIBUTE||E.type===r.EQUALS||E.type===r.VALUE||E.type===r.TEXT&&!B.tag_complete?w=this._handle_inside_tag(Z,E,B,P):E.type===r.TAG_CLOSE?w=this._handle_tag_close(Z,E,B):E.type===r.TEXT?w=this._handle_text(Z,E,B):E.type===r.CONTROL_FLOW_OPEN?w=this._handle_control_flow_open(Z,E):E.type===r.CONTROL_FLOW_CLOSE?w=this._handle_control_flow_close(Z,E):Z.add_raw_token(E),P=w,E=U.next();var S=Z._output.get_code(b);return S},O.prototype._handle_control_flow_open=function(A,b){var N={text:b.text,type:b.type};return A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),b.newlines?A.print_preserved_newlines(b):A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),A.print_token(b),A.indent(),N},O.prototype._handle_control_flow_close=function(A,b){var N={text:b.text,type:b.type};return A.deindent(),b.newlines?A.print_preserved_newlines(b):A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),A.print_token(b),N},O.prototype._handle_tag_close=function(A,b,N){var P={text:b.text,type:b.type};return A.alignment_size=0,N.tag_complete=!0,A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),N.is_unformatted?A.add_raw_token(b):(N.tag_start_char==="<"&&(A.set_space_before_token(b.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&A.print_newline(!1)),A.print_token(b)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(A.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&A.set_wrap_point(),P},O.prototype._handle_inside_tag=function(A,b,N,P){var B=N.has_wrapped_attrs,Z={text:b.text,type:b.type};return A.set_space_before_token(b.newlines||b.whitespace_before!=="",!0),N.is_unformatted?A.add_raw_token(b):N.tag_start_char==="{"&&b.type===r.TEXT?A.print_preserved_newlines(b)?(b.newlines=0,A.add_raw_token(b)):A.print_token(b):(b.type===r.ATTRIBUTE?A.set_space_before_token(!0):(b.type===r.EQUALS||b.type===r.VALUE&&b.previous.type===r.EQUALS)&&A.set_space_before_token(!1),b.type===r.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(A.traverse_whitespace(b),B=B||b.newlines!==0),this._is_wrap_attributes_force&&N.attr_count>=this._options.wrap_attributes_min_attrs&&(P.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(A.print_newline(!1),B=!0)),A.print_token(b),B=B||A.previous_token_wrapped(),N.has_wrapped_attrs=B),Z},O.prototype._handle_text=function(A,b,N){var P={text:b.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(A,b,N):N.is_unformatted||N.is_content_unformatted?A.add_raw_token(b):(A.traverse_whitespace(b),A.print_token(b)),P},O.prototype._print_custom_beatifier_text=function(A,b,N){var P=this;if(b.text!==""){var B=b.text,Z,U=1,w="",E="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?Z=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?Z=this._css_beautify:N.custom_beautifier_name==="html"&&(Z=function(at,it){var k=new O(at,it,P._js_beautify,P._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?U=0:this._options.indent_scripts==="separate"&&(U=-A.indent_level);var S=A.get_full_indent(U);if(B=B.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&B[0]==="<"&&B.match(/^(<!--|<!\[CDATA\[)/)){var g=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(B);if(!g){A.add_raw_token(b);return}w=S+g[1]+`
171
171
  `,B=g[4],g[5]&&(E=S+g[5]),B=B.replace(/\n[ \t]*$/,""),(g[2]||g[3].indexOf(`
172
172
  `)!==-1)&&(g=g[3].match(/[ \t]+$/),g&&(b.whitespace_before=g[0]))}if(B)if(Z){var L=function(){this.eol=`
173
173
  `};L.prototype=this._options.raw_options;var M=new L;B=Z(S+B,M)}else{var W=b.whitespace_before;W&&(B=B.replace(new RegExp(`
174
174
  (`+W+")?","g"),`
175
175
  `)),B=S+B.replace(/\n/g,`
176
176
  `+S)}w&&(B?B=w+B+`
177
- `+E:B=w+E),A.print_newline(!1),B&&(b.text=B,b.whitespace_before="",b.newlines=0,A.add_raw_token(b),A.print_newline(!0))}},O.prototype._handle_tag_open=function(A,b,N,P,B){var Z=this._get_tag_open_token(b);if((N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&b.type===r.TAG_OPEN&&!Z.is_start_tag?(A.add_raw_token(b),Z.start_tag_token=this._tag_stack.try_pop(Z.tag_name)):(A.traverse_whitespace(b),this._set_tag_position(A,b,Z,N,P),Z.is_inline_element||A.set_wrap_point(),A.print_token(b)),Z.is_start_tag&&this._is_wrap_attributes_force){var I=0,w;do w=B.peek(I),w.type===r.ATTRIBUTE&&(Z.attr_count+=1),I+=1;while(w.type!==r.EOF&&w.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(Z.alignment_size=b.text.length+1),!Z.tag_complete&&!Z.is_unformatted&&(A.alignment_size=Z.alignment_size),Z};var z=function(A,b,N){if(this.parent=b||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!N)this.tag_complete=!0;else{var P;this.tag_start_char=N.text[0],this.text=N.text,this.tag_start_char==="<"?(P=N.text.match(/^<([^\s>]*)/),this.tag_check=P?P[1]:""):(P=N.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=P?P[1]:"",(N.text.startsWith("{{#>")||N.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&N.next!==null?this.tag_check=N.next.text.split(" ")[0]:this.tag_check=N.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),N.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||N.closed&&N.closed.text==="/>";var B=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(B=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!A.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(B)))}};O.prototype._get_tag_open_token=function(A){var b=new z(this._options,this._tag_stack.get_parser_token(),A);return b.alignment_size=this._options.wrap_attributes_indent_size,b.is_end_tag=b.is_end_tag||_(b.tag_check,this._options.void_elements),b.is_empty_element=b.tag_complete||b.is_start_tag&&b.is_end_tag,b.is_unformatted=!b.tag_complete&&_(b.tag_check,this._options.unformatted),b.is_content_unformatted=!b.is_empty_element&&_(b.tag_check,this._options.content_unformatted),b.is_inline_element=_(b.tag_name,this._options.inline)||this._options.inline_custom_elements&&b.tag_name.includes("-")||b.tag_start_char==="{",b},O.prototype._set_tag_position=function(A,b,N,P,B){if(N.is_empty_element||(N.is_end_tag?N.start_tag_token=this._tag_stack.try_pop(N.tag_name):(this._do_optional_end_element(N)&&(N.is_inline_element||A.print_newline(!1)),this._tag_stack.record_tag(N),(N.tag_name==="script"||N.tag_name==="style")&&!(N.is_unformatted||N.is_content_unformatted)&&(N.custom_beautifier_name=d(N.tag_check,b)))),_(N.tag_check,this._options.extra_liners)&&(A.print_newline(!1),A._output.just_added_blankline()||A.print_newline(!0)),N.is_empty_element){if(N.tag_start_char==="{"&&N.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),N.indent_content=!0;var Z=A.current_line_has_match(/{{#if/);Z||A.print_newline(!1)}N.tag_name==="!--"&&B.type===r.TAG_CLOSE&&P.is_end_tag&&N.text.indexOf(`
178
- `)===-1||(N.is_inline_element||N.is_unformatted||A.print_newline(!1),this._calcluate_parent_multiline(A,N))}else if(N.is_end_tag){var I=!1;I=N.start_tag_token&&N.start_tag_token.multiline_content,I=I||!N.is_inline_element&&!(P.is_inline_element||P.is_unformatted)&&!(B.type===r.TAG_CLOSE&&N.start_tag_token===P)&&B.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(I=!1),I&&A.print_newline(!1)}else N.indent_content=!N.custom_beautifier_name,N.tag_start_char==="<"&&(N.tag_name==="html"?N.indent_content=this._options.indent_inner_html:N.tag_name==="head"?N.indent_content=this._options.indent_head_inner_html:N.tag_name==="body"&&(N.indent_content=this._options.indent_body_inner_html)),!(N.is_inline_element||N.is_unformatted)&&(B.type!=="TK_CONTENT"||N.is_content_unformatted)&&A.print_newline(!1),this._calcluate_parent_multiline(A,N)},O.prototype._calcluate_parent_multiline=function(A,b){b.parent&&A._output.just_added_newline()&&!((b.is_inline_element||b.is_unformatted)&&b.parent.is_inline_element)&&(b.parent.multiline_content=!0)};var G=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],V=["a","audio","del","ins","map","noscript","video"];return O.prototype._do_optional_end_element=function(A){var b=null;if(!(A.is_empty_element||!A.is_start_tag||!A.parent)){if(A.tag_name==="body")b=b||this._tag_stack.try_pop("head");else if(A.tag_name==="li")b=b||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(A.tag_name==="dd"||A.tag_name==="dt")b=b||this._tag_stack.try_pop("dt",["dl"]),b=b||this._tag_stack.try_pop("dd",["dl"]);else if(A.parent.tag_name==="p"&&G.indexOf(A.tag_name)!==-1){var N=A.parent.parent;(!N||V.indexOf(N.tag_name)===-1)&&(b=b||this._tag_stack.try_pop("p"))}else A.tag_name==="rp"||A.tag_name==="rt"?(b=b||this._tag_stack.try_pop("rt",["ruby","rtc"]),b=b||this._tag_stack.try_pop("rp",["ruby","rtc"])):A.tag_name==="optgroup"?b=b||this._tag_stack.try_pop("optgroup",["select"]):A.tag_name==="option"?b=b||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):A.tag_name==="colgroup"?b=b||this._tag_stack.try_pop("caption",["table"]):A.tag_name==="thead"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"])):A.tag_name==="tbody"||A.tag_name==="tfoot"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("thead",["table"]),b=b||this._tag_stack.try_pop("tbody",["table"])):A.tag_name==="tr"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(A.tag_name==="th"||A.tag_name==="td")&&(b=b||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),b=b||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return A.parent=this._tag_stack.get_parser_token(),b}},gh.Beautifier=O,gh}var u0;function gL(){if(u0)return Lu.exports;u0=1;var e=mL().Beautifier,n=Hv().Options;function a(r,u,o,h){var p=new e(r,u,o,h);return p.beautify()}return Lu.exports=a,Lu.exports.defaultOptions=function(){return new n},Lu.exports}var o0;function yL(){if(o0)return Ur;o0=1;var e=dL(),n=_L(),a=gL();function r(u,o,h,p){return h=h||e,p=p||n,a(u,o,h,p)}return r.defaultOptions=a.defaultOptions,Ur.js=e,Ur.css=n,Ur.html=r,Ur}var c0;function vL(){return c0||(c0=1,(function(e){function n(a,r,u){var o=function(h,p){return a.js_beautify(h,p)};return o.js=a.js_beautify,o.css=r.css_beautify,o.html=u.html_beautify,o.js_beautify=a.js_beautify,o.css_beautify=r.css_beautify,o.html_beautify=u.html_beautify,o}(function(a){var r=yL();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,a.exports=n(r,r,r)})(e)})(ih)),ih.exports}var EL=vL();const bL=ao(EL);var TL=bt({name:"WhiteSpace",pattern:/\s+/,group:ke.SKIPPED}),SL=bt({name:"LineComment",pattern:/\/\/[^\n\r]*/,group:ke.SKIPPED}),AL=bt({name:"BlockComment",pattern:/\/\*[\s\S]*?\*\//,group:ke.SKIPPED}),fe=bt({name:"Identifier",pattern:/[a-zA-Z_$][a-zA-Z0-9_.[\]]*/}),Fv=bt({name:"QuotedIdentifier",pattern:/`([^`\\]|\\.)*`/}),Pu=bt({name:"From",pattern:/from/i,longer_alt:fe}),Ih=bt({name:"To",pattern:/to/i,longer_alt:fe}),zh=bt({name:"Transform",pattern:/transform/i,longer_alt:fe}),Kv=bt({name:"Set",pattern:/set/i,longer_alt:fe}),Vv=bt({name:"Section",pattern:/section/i,longer_alt:fe}),Yv=bt({name:"Multiple",pattern:/multiple/i,longer_alt:fe}),Xv=bt({name:"Clone",pattern:/clone/i,longer_alt:fe}),Qv=bt({name:"Delete",pattern:/delete/i,longer_alt:fe}),Zv=bt({name:"Define",pattern:/define/i,longer_alt:fe}),Wv=bt({name:"Modify",pattern:/modify/i,longer_alt:fe}),Bh=bt({name:"If",pattern:/if/i,longer_alt:fe}),Jv=bt({name:"Else",pattern:/else/i,longer_alt:fe}),tE=bt({name:"True",pattern:/true/i,longer_alt:fe}),eE=bt({name:"False",pattern:/false/i,longer_alt:fe}),nE=bt({name:"Null",pattern:/null/i,longer_alt:fe}),iE=bt({name:"Return",pattern:/return/i,longer_alt:fe}),aE=bt({name:"Unsafe",pattern:/unsafe/i,longer_alt:fe}),sE=bt({name:"Where",pattern:/where/i,longer_alt:fe}),rE=bt({name:"EqualsEquals",pattern:/==/}),lE=bt({name:"EqualsEqualsEquals",pattern:/===/}),uE=bt({name:"NotEquals",pattern:/!=/}),oE=bt({name:"NotEqualsEquals",pattern:/!==/}),cE=bt({name:"LessThanOrEqual",pattern:/<=/}),fE=bt({name:"GreaterThanOrEqual",pattern:/>=/}),hE=bt({name:"LessThan",pattern:/</}),dE=bt({name:"GreaterThan",pattern:/>/}),pE=bt({name:"And",pattern:/&&/}),_E=bt({name:"Or",pattern:/\|\|/}),mE=bt({name:"Not",pattern:/!/}),Ss=bt({name:"Equals",pattern:/=/}),gE=bt({name:"Plus",pattern:/\+/}),jh=bt({name:"Minus",pattern:/-/}),yE=bt({name:"Times",pattern:/\*/}),vE=bt({name:"Divide",pattern:/\//}),EE=bt({name:"Modulo",pattern:/%/}),Vn=bt({name:"LParen",pattern:/\(/}),Ei=bt({name:"RParen",pattern:/\)/}),qu=bt({name:"Comma",pattern:/,/}),bE=bt({name:"StringLiteral",pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/}),TE=bt({name:"NumericLiteral",pattern:/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/}),SE=[TL,SL,AL,Pu,Ih,zh,Kv,Vv,Yv,Xv,Qv,Zv,Wv,Bh,Jv,tE,eE,nE,iE,aE,sE,lE,rE,oE,uE,cE,fE,pE,_E,Ss,hE,dE,mE,gE,jh,yE,vE,EE,Vn,Ei,qu,bE,TE,Fv,fe],OL=new ke(SE),xL=class extends o2{constructor(){super(SE),this.performSelfAnalysis()}query=this.RULE("query",()=>{this.CONSUME(Pu),this.SUBRULE(this.typeFormat,{LABEL:"sourceType"}),this.CONSUME(Ih),this.SUBRULE1(this.typeFormat,{LABEL:"targetType"}),this.OPTION(()=>{this.CONSUME(zh),this.OPTION1(()=>{this.CONSUME(aE)}),this.MANY(()=>{this.SUBRULE(this.action)})})});typeFormat=this.RULE("typeFormat",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"name"}),this.OPTION(()=>{this.CONSUME(Vn),this.MANY_SEP({SEP:qu,DEF:()=>{this.SUBRULE(this.typeFormatParameter,{LABEL:"params"})}}),this.CONSUME(Ei)})});typeFormatParameter=this.RULE("typeFormatParameter",()=>{this.OR([{GATE:()=>this.LA(2).tokenType===Ss,ALT:()=>this.SUBRULE(this.namedParameter)},{ALT:()=>this.SUBRULE(this.literal)}])});namedParameter=this.RULE("namedParameter",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"key"}),this.CONSUME(Ss),this.SUBRULE(this.literal,{LABEL:"value"})});anyIdentifier=this.RULE("anyIdentifier",()=>{this.OR([{ALT:()=>this.CONSUME(fe)},{ALT:()=>this.CONSUME(Fv)}])});literal=this.RULE("literal",()=>{this.OR([{ALT:()=>this.CONSUME(bE)},{ALT:()=>this.CONSUME(TE)},{ALT:()=>this.CONSUME(tE)},{ALT:()=>this.CONSUME(eE)},{ALT:()=>this.CONSUME(nE)}])});action=this.RULE("action",()=>{this.OR([{ALT:()=>this.SUBRULE(this.setRule)},{ALT:()=>this.SUBRULE(this.modifyRule)},{ALT:()=>this.SUBRULE(this.sectionRule)},{ALT:()=>this.SUBRULE(this.cloneRule)},{ALT:()=>this.SUBRULE(this.deleteRule)},{ALT:()=>this.SUBRULE(this.ifAction)},{ALT:()=>this.SUBRULE(this.defineRule)},{ALT:()=>this.SUBRULE(this.returnRule)}])});returnRule=this.RULE("returnRule",()=>{this.CONSUME(iE),this.SUBRULE(this.expression,{LABEL:"expr"})});deleteRule=this.RULE("deleteRule",()=>{this.CONSUME(Qv),this.SUBRULE(this.anyIdentifier,{LABEL:"field"})});ifAction=this.RULE("ifAction",()=>{this.CONSUME(Bh),this.CONSUME(Vn),this.SUBRULE(this.expression,{LABEL:"condition"}),this.CONSUME(Ei),this.CONSUME2(Vn),this.MANY(()=>{this.SUBRULE(this.action,{LABEL:"thenActions"})}),this.CONSUME2(Ei),this.OPTION(()=>{this.CONSUME(Jv),this.CONSUME3(Vn),this.MANY2(()=>{this.SUBRULE2(this.action,{LABEL:"elseActions"})}),this.CONSUME3(Ei)})});cloneRule=this.RULE("cloneRule",()=>{this.CONSUME(Xv),this.OPTION(()=>{this.CONSUME(Vn),this.MANY_SEP({SEP:qu,DEF:()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"fields"})}}),this.CONSUME(Ei)})});setRule=this.RULE("setRule",()=>{this.CONSUME(Kv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ss),this.SUBRULE(this.expression,{LABEL:"right"})});modifyRule=this.RULE("modifyRule",()=>{this.CONSUME(Wv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ss),this.SUBRULE(this.expression,{LABEL:"right"})});expression=this.RULE("expression",()=>{this.SUBRULE(this.logicalOr)});logicalOr=this.RULE("logicalOr",()=>{this.SUBRULE(this.logicalAnd,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(_E),this.SUBRULE1(this.logicalAnd,{LABEL:"rhs"})})});logicalAnd=this.RULE("logicalAnd",()=>{this.SUBRULE(this.comparison,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(pE),this.SUBRULE1(this.comparison,{LABEL:"rhs"})})});comparison=this.RULE("comparison",()=>{this.SUBRULE(this.addition,{LABEL:"lhs"}),this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(rE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(lE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(uE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(oE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(cE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(fE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(hE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(dE,{LABEL:"ops"})}]),this.SUBRULE1(this.addition,{LABEL:"rhs"})})});addition=this.RULE("addition",()=>{this.SUBRULE(this.multiplication,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(gE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(jh,{LABEL:"ops"})}]),this.SUBRULE1(this.multiplication,{LABEL:"rhs"})})});multiplication=this.RULE("multiplication",()=>{this.SUBRULE(this.unaryExpression,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(yE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(vE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(EE,{LABEL:"ops"})}]),this.SUBRULE1(this.unaryExpression,{LABEL:"rhs"})})});unaryExpression=this.RULE("unaryExpression",()=>{this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(jh,{LABEL:"sign"})},{ALT:()=>this.CONSUME(mE,{LABEL:"sign"})}])}),this.SUBRULE(this.atomic)});atomic=this.RULE("atomic",()=>{this.OR([{ALT:()=>this.SUBRULE(this.literal)},{GATE:()=>this.LA(2).tokenType===Vn,ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.anyIdentifier)},{ALT:()=>{this.CONSUME(Vn),this.SUBRULE(this.expression),this.CONSUME(Ei)}}])});functionCall=this.RULE("functionCall",()=>{this.OR([{ALT:()=>this.CONSUME(fe,{LABEL:"name"})},{ALT:()=>this.CONSUME(Bh,{LABEL:"name"})}]),this.CONSUME(Vn),this.MANY_SEP({SEP:qu,DEF:()=>{this.SUBRULE(this.expression,{LABEL:"args"})}}),this.CONSUME(Ei)});sectionRule=this.RULE("sectionRule",()=>{this.CONSUME(Vv),this.OPTION(()=>{this.CONSUME(Yv)}),this.SUBRULE(this.anyIdentifier,{LABEL:"sectionName"}),this.CONSUME(Vn),this.OPTION1(()=>{this.CONSUME(Pu,{LABEL:"subqueryFrom"}),this.SUBRULE(this.typeFormat,{LABEL:"subquerySourceType"}),this.CONSUME(Ih,{LABEL:"subqueryTo"}),this.SUBRULE1(this.typeFormat,{LABEL:"subqueryTargetType"}),this.OPTION2(()=>{this.CONSUME(zh,{LABEL:"subqueryTransform"})})}),this.MANY(()=>{this.SUBRULE(this.action)}),this.CONSUME(Ei),this.OPTION3(()=>{this.CONSUME1(Pu,{LABEL:"followFrom"}),this.SUBRULE(this.expression,{LABEL:"followExpr"})}),this.OPTION4(()=>{this.CONSUME(sE,{LABEL:"whereClause"}),this.SUBRULE1(this.expression,{LABEL:"whereExpr"})})});defineRule=this.RULE("defineRule",()=>{this.CONSUME(Zv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ss),this.SUBRULE(this.expression,{LABEL:"right"})})},Os=new xL,NL={substring:(e,n)=>{if(e.length<2)throw new Error("substring() requires at least 2 arguments (string, start, [length])");let[a,r,u]=e;return u!==void 0?`String(${a}).slice(${r}, (${r}) + (${u}))`:`String(${a}).slice(${r})`},if:(e,n)=>{if(e.length!==3)throw new Error("if() requires exactly 3 arguments (condition, trueValue, falseValue)");let[a,r,u]=e;return`((${a}) ? (${r}) : (${u}))`},text:(e,n)=>{if(e.length!==1)throw new Error("text() requires exactly 1 argument (string or number)");let[a]=e;return`String(${a})`},replace:(e,n)=>{if(e.length!==3)throw new Error("replace() requires exactly 3 arguments (string, search, replacement)");let[a,r,u]=e;return`String(${a}).replace(${r}, ${u})`},number:(e,n)=>{if(e.length!==1)throw new Error("number() requires exactly 1 argument (string)");let[a]=e;return`Number(${a})`},extractnumber:(e,n)=>{if(e.length!==1)throw new Error("extractNumber() requires exactly 1 argument (string)");let[a]=e;return`(() => { const match = String(${a}).match(/\\d+(\\.\\d+)?/); return match ? Number(match[0]) : null; })()`},uppercase:(e,n)=>{if(e.length!==1)throw new Error("uppercase() requires exactly 1 argument (string)");let[a]=e;return`String(${a}).toUpperCase()`},lowercase:(e,n)=>{if(e.length!==1)throw new Error("lowercase() requires exactly 1 argument (string)");let[a]=e;return`String(${a}).toLowerCase()`},xmlnode:(e,n)=>{if(e.length<1)throw new Error("xmlnode() requires at least 1 argument (string)");let[a,...r]=e,u=r.join(", ");return`env.functions.xmlnode(${a}${u?", "+u:""})`},split:(e,n)=>{if(e.length<1)throw new Error("split() requires at least 1 argument (string)");let[a,r,u]=e,o=r!==void 0?r:'""',h=u!==void 0?`, ${u}`:"";return`String(${a}).split(${o}${h})`},to_base64:(e,n)=>{if(e.length!==1)throw new Error("to_base64() requires exactly 1 argument (string)");let[a]=e;return`env.functions.to_base64(${a})`},from_base64:(e,n)=>{if(e.length!==1)throw new Error("from_base64() requires exactly 1 argument (string)");let[a]=e;return`env.functions.from_base64(${a})`},aslist:(e,n)=>{if(e.length!==1)throw new Error("aslist() requires exactly 1 argument");let[a]=e;return`env.functions.aslist(${a})`},spreadsheet:(e,n)=>{if(e.length!==1)throw new Error("spreadsheet() requires exactly 1 argument");let[a]=e;return`env.functions.spreadsheet(${a})`},unpack:(e,n)=>{if(e.length<2)throw new Error("unpack() requires at least 2 arguments (string, fieldSpec1, [fieldSpec2, ...])");let[a,...r]=e;r.forEach(o=>{let h=o.replace(/^["']|["']$/g,""),p=h.split(":");if(p.length<3)throw new Error(`Invalid field spec for unpack(): ${h}. Expected "name:start:length[:modifier]"`);let[d,_,v]=p;if(!/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(d))throw new Error(`Invalid field name in unpack() spec: "${d}". Must be a valid JavaScript identifier.`);let y=parseInt(_,10),O=parseInt(v,10);if(isNaN(y)||isNaN(O))throw new Error(`Invalid character positions in unpack() spec: ${h}`)});let u=r.join(", ");return`env.functions.unpack(${a}, ${u})`},pack:(e,n)=>{if(e.length<2)throw new Error("pack() requires at least 2 arguments (object, fieldSpec1, [fieldSpec2, ...])");let[a,...r]=e;r.forEach(o=>{let h=o.replace(/^["']|["']$/g,""),p=h.split(":");if(p.length<3)throw new Error(`Invalid field spec for pack(): ${h}. Expected "name:start:length[:modifier]"`);let[d,_,v]=p;if(!/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(d))throw new Error(`Invalid field name in pack() spec: "${d}". Must be a valid JavaScript identifier.`);let y=parseInt(_,10),O=parseInt(v,10);if(isNaN(y)||isNaN(O))throw new Error(`Invalid character positions in pack() spec: ${h}`)});let u=r.join(", ");return`env.functions.pack(${a}, ${u})`},concat:(e,n)=>`env.functions.concat(${e.join(", ")})`,avg:(e,n)=>{if(e.length!==2)throw new Error("avg() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.avg(${a}, ${u})`},minof:(e,n)=>{if(e.length!==2)throw new Error("minof() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.minof(${a}, ${u})`},maxof:(e,n)=>{if(e.length!==2)throw new Error("maxof() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.maxof(${a}, ${u})`},every:(e,n)=>{if(e.length!==2)throw new Error("every() requires exactly 2 arguments (array, conditionExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.every(${a}, ${u})`},some:(e,n)=>{if(e.length!==2)throw new Error("some() requires exactly 2 arguments (array, conditionExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.some(${a}, ${u})`},distinct:(e,n)=>{if(e.length!==2)throw new Error("distinct() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.distinct(${a}, ${u})`},sum:(e,n)=>{if(e.length!==2)throw new Error("sum() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.sum(${a}, ${u})`},groupby:(e,n)=>{if(e.length!==2)throw new Error("groupby() requires exactly 2 arguments (array, keyExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.groupby(${a}, ${u})`},transpose:(e,n)=>{if(e.length<2)throw new Error("transpose() requires at least 2 arguments (source, key1, [key2, ...])");return`env.functions.transpose(${e.join(", ")})`},list:(e,n)=>`[${e.join(", ")}]`,array:(e,n)=>`[${e.join(", ")}]`,extract:(e,n)=>{if(e.length<2)throw new Error("extract() requires at least 2 arguments (source, key1, [key2, ...])");let[a,...r]=e;return`env.functions.extract(${a}, ${n.safeMode}, ${r.join(", ")})`},floor:(e,n)=>{if(e.length!==1)throw new Error("floor() requires exactly 1 argument");return`Math.floor(${e[0]})`},ceil:(e,n)=>{if(e.length!==1)throw new Error("ceil() requires exactly 1 argument");return`Math.ceil(${e[0]})`},round:(e,n)=>{if(e.length<1||e.length>2)throw new Error("round() requires 1 or 2 arguments (value, [mode])");return`env.functions.round(${e.join(", ")})`},abs:(e,n)=>{if(e.length!==1)throw new Error("abs() requires exactly 1 argument");return`Math.abs(${e[0]})`},fixed:(e,n)=>{if(e.length<1||e.length>3)throw new Error("fixed() requires 1 to 3 arguments (value, [decimals], [mode])");return`env.functions.fixed(${e.join(", ")})`},min:(e,n)=>{if(e.length<2)throw new Error("min() requires at least 2 arguments");return`Math.min(${e.join(", ")})`},max:(e,n)=>{if(e.length<2)throw new Error("max() requires at least 2 arguments");return`Math.max(${e.join(", ")})`},trim:(e,n)=>{if(e.length!==1)throw new Error("trim() requires exactly 1 argument");return`String(${e[0]}).trim()`},padstart:(e,n)=>{if(e.length<2)throw new Error("padstart() requires at least 2 arguments (str, length, [char])");let[a,r,u]=e;return u!==void 0?`String(${a}).padStart(${r}, ${u})`:`String(${a}).padStart(${r})`},padend:(e,n)=>{if(e.length<2)throw new Error("padend() requires at least 2 arguments (str, length, [char])");let[a,r,u]=e;return u!==void 0?`String(${a}).padEnd(${r}, ${u})`:`String(${a}).padEnd(${r})`},indexof:(e,n)=>{if(e.length!==2)throw new Error("indexof() requires exactly 2 arguments (str, search)");return`String(${e[0]}).indexOf(${e[1]})`},startswith:(e,n)=>{if(e.length!==2)throw new Error("startswith() requires exactly 2 arguments (str, prefix)");return`String(${e[0]}).startsWith(${e[1]})`},endswith:(e,n)=>{if(e.length!==2)throw new Error("endswith() requires exactly 2 arguments (str, suffix)");return`String(${e[0]}).endsWith(${e[1]})`}},vh=class{sourceRoot={type:"object",properties:{}};targetRoot={type:"object",properties:{}};sourceStack=[this.sourceRoot];targetStack=[this.targetRoot];getCurrentSource(){return this.sourceStack[this.sourceStack.length-1]}getCurrentTarget(){return this.targetStack[this.targetStack.length-1]}recordAccess(e,n="any",a=!1){let r=a?this.getCurrentTarget():this.getCurrentSource();this.setInNode(r,e,n)}recordAssignment(e,n="any"){this.setInNode(this.getCurrentTarget(),e,n)}recordClone(e){let n=this.getCurrentTarget();e?e.forEach(a=>{this.setInNode(this.getCurrentSource(),a,"any"),this.setInNode(n,a,"any")}):n.isOpen=!0}recordDelete(e){let n=this.getCurrentTarget();this.deleteInNode(n,e)}pushSection(e,n,a){n!=="parent"&&this.setInNode(this.getCurrentSource(),n,a?"array":"object");let r={type:a?"array":"object"};a?r.items={type:"object",properties:{}}:r.properties={};let u={type:"object",properties:{}};this.setInNodeExplicit(this.getCurrentTarget(),e,r),this.targetStack.push(a?r.items:r),this.sourceStack.push(u)}popSection(e,n){let a=this.sourceStack.pop();this.targetStack.pop();let r=this.getCurrentSource();if(e!=="parent"){let u=this.getOrSetNode(r,e,n?"array":"object"),o=n?u.items:u;o&&(o.properties||(o.properties={}),Object.assign(o.properties,a.properties||{}))}else r.properties||(r.properties={}),Object.assign(r.properties,a.properties||{})}parsePath(e){if(!e)return[];let n=[],a=e.split(".");for(let r of a){let u=r.match(/^([^[\]]*)((?:\[\d+\])*)$/);if(u){u[1]&&n.push(u[1]);let o=u[2].match(/\[\d+\]/g);if(o)for(let h of o)n.push("[]")}else n.push(r)}return n}setInNode(e,n,a){let r=this.parsePath(n),u=e;for(let o=0;o<r.length;o++){let h=r[o],p=o===r.length-1;if(h==="[]"){u.type="array",u.items||(u.items={type:p?a:"object",properties:{}}),u=u.items;continue}u.properties||(u.properties={}),p?(!u.properties[h]||u.properties[h].type==="any")&&(u.properties[h]={type:a},a==="object"?u.properties[h].properties={}:a==="array"&&(u.properties[h].items={type:"object",properties:{}})):(u.properties[h]||(u.properties[h]={type:"object",properties:{}}),u=u.properties[h])}}setInNodeExplicit(e,n,a){let r=this.parsePath(n),u=e;for(let o=0;o<r.length;o++){let h=r[o],p=o===r.length-1;if(h==="[]"){u.type="array",u.items||(u.items={type:p?a.type:"object",properties:{}}),p?u.items=a:u=u.items;continue}u.properties||(u.properties={}),p?u.properties[h]=a:(u.properties[h]||(u.properties[h]={type:"object",properties:{}}),u=u.properties[h])}}deleteInNode(e,n){let a=this.parsePath(n),r=e;for(let u=0;u<a.length;u++){let o=a[u],h=u===a.length-1;if(o==="[]"){if(!r.items)return;h?(delete r.items,r.type="any"):r=r.items;continue}if(!r.properties)return;if(h)delete r.properties[o];else if(r=r.properties[o],!r)return}}getOrSetNode(e,n,a){let r=this.parsePath(n),u=e;for(let o=0;o<r.length;o++){let h=r[o],p=o===r.length-1;if(h==="[]"){if(u.type="array",!u.items){let _=p?a:"object";u.items={type:_},_==="object"?u.items.properties={}:_==="array"&&(u.items.items={type:"object",properties:{}})}u=u.items;continue}let d=p?a:"object";u.properties||(u.properties={}),u.properties[h]||(u.properties[h]={type:d},d==="object"?u.properties[h].properties={}:d==="array"&&(u.properties[h].items={type:"object",properties:{}})),u=u.properties[h]}return u}getResult(){return{source:this.sourceRoot,target:this.targetRoot}}},RL=Os.getBaseCstVisitorConstructor(),wL=class extends RL{readFrom="source";scopeStack=[];safeMode=!0;isAnalyzing=!1;tracker=new vh;lastInferredType="any";constructor(){super(),this.validateVisitor()}reset(){this.readFrom="source",this.scopeStack=[],this.tracker=new vh,this.lastInferredType="any"}visitWithContext(e,n){let a=this.readFrom;this.readFrom=n.readFrom;try{return this.visit(e)}finally{this.readFrom=a}}query(e){this.reset(),this.isAnalyzing&&(this.tracker=new vh);let n=this.visit(e.sourceType),a=this.visit(e.targetType),r=!!e.Unsafe;this.safeMode=!r,this.scopeStack.push({format:a.name,options:a.options,isSerializationScope:!0});try{let u=e.action?e.action.map(v=>this.visit(v)):[];e.Transform||u.push("Object.assign(target, source);");let o=n.name,h=a.name,p=JSON.stringify(n.options),d=JSON.stringify(a.options),_=u.some(v=>typeof v=="string"&&v.trim().startsWith("return "));return{code:`
177
+ `+E:B=w+E),A.print_newline(!1),B&&(b.text=B,b.whitespace_before="",b.newlines=0,A.add_raw_token(b),A.print_newline(!0))}},O.prototype._handle_tag_open=function(A,b,N,P,B){var Z=this._get_tag_open_token(b);if((N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&b.type===r.TAG_OPEN&&!Z.is_start_tag?(A.add_raw_token(b),Z.start_tag_token=this._tag_stack.try_pop(Z.tag_name)):(A.traverse_whitespace(b),this._set_tag_position(A,b,Z,N,P),Z.is_inline_element||A.set_wrap_point(),A.print_token(b)),Z.is_start_tag&&this._is_wrap_attributes_force){var U=0,w;do w=B.peek(U),w.type===r.ATTRIBUTE&&(Z.attr_count+=1),U+=1;while(w.type!==r.EOF&&w.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(Z.alignment_size=b.text.length+1),!Z.tag_complete&&!Z.is_unformatted&&(A.alignment_size=Z.alignment_size),Z};var z=function(A,b,N){if(this.parent=b||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!N)this.tag_complete=!0;else{var P;this.tag_start_char=N.text[0],this.text=N.text,this.tag_start_char==="<"?(P=N.text.match(/^<([^\s>]*)/),this.tag_check=P?P[1]:""):(P=N.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=P?P[1]:"",(N.text.startsWith("{{#>")||N.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&N.next!==null?this.tag_check=N.next.text.split(" ")[0]:this.tag_check=N.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),N.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||N.closed&&N.closed.text==="/>";var B=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(B=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!A.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(B)))}};O.prototype._get_tag_open_token=function(A){var b=new z(this._options,this._tag_stack.get_parser_token(),A);return b.alignment_size=this._options.wrap_attributes_indent_size,b.is_end_tag=b.is_end_tag||_(b.tag_check,this._options.void_elements),b.is_empty_element=b.tag_complete||b.is_start_tag&&b.is_end_tag,b.is_unformatted=!b.tag_complete&&_(b.tag_check,this._options.unformatted),b.is_content_unformatted=!b.is_empty_element&&_(b.tag_check,this._options.content_unformatted),b.is_inline_element=_(b.tag_name,this._options.inline)||this._options.inline_custom_elements&&b.tag_name.includes("-")||b.tag_start_char==="{",b},O.prototype._set_tag_position=function(A,b,N,P,B){if(N.is_empty_element||(N.is_end_tag?N.start_tag_token=this._tag_stack.try_pop(N.tag_name):(this._do_optional_end_element(N)&&(N.is_inline_element||A.print_newline(!1)),this._tag_stack.record_tag(N),(N.tag_name==="script"||N.tag_name==="style")&&!(N.is_unformatted||N.is_content_unformatted)&&(N.custom_beautifier_name=d(N.tag_check,b)))),_(N.tag_check,this._options.extra_liners)&&(A.print_newline(!1),A._output.just_added_blankline()||A.print_newline(!0)),N.is_empty_element){if(N.tag_start_char==="{"&&N.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),N.indent_content=!0;var Z=A.current_line_has_match(/{{#if/);Z||A.print_newline(!1)}N.tag_name==="!--"&&B.type===r.TAG_CLOSE&&P.is_end_tag&&N.text.indexOf(`
178
+ `)===-1||(N.is_inline_element||N.is_unformatted||A.print_newline(!1),this._calcluate_parent_multiline(A,N))}else if(N.is_end_tag){var U=!1;U=N.start_tag_token&&N.start_tag_token.multiline_content,U=U||!N.is_inline_element&&!(P.is_inline_element||P.is_unformatted)&&!(B.type===r.TAG_CLOSE&&N.start_tag_token===P)&&B.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(U=!1),U&&A.print_newline(!1)}else N.indent_content=!N.custom_beautifier_name,N.tag_start_char==="<"&&(N.tag_name==="html"?N.indent_content=this._options.indent_inner_html:N.tag_name==="head"?N.indent_content=this._options.indent_head_inner_html:N.tag_name==="body"&&(N.indent_content=this._options.indent_body_inner_html)),!(N.is_inline_element||N.is_unformatted)&&(B.type!=="TK_CONTENT"||N.is_content_unformatted)&&A.print_newline(!1),this._calcluate_parent_multiline(A,N)},O.prototype._calcluate_parent_multiline=function(A,b){b.parent&&A._output.just_added_newline()&&!((b.is_inline_element||b.is_unformatted)&&b.parent.is_inline_element)&&(b.parent.multiline_content=!0)};var G=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],V=["a","audio","del","ins","map","noscript","video"];return O.prototype._do_optional_end_element=function(A){var b=null;if(!(A.is_empty_element||!A.is_start_tag||!A.parent)){if(A.tag_name==="body")b=b||this._tag_stack.try_pop("head");else if(A.tag_name==="li")b=b||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(A.tag_name==="dd"||A.tag_name==="dt")b=b||this._tag_stack.try_pop("dt",["dl"]),b=b||this._tag_stack.try_pop("dd",["dl"]);else if(A.parent.tag_name==="p"&&G.indexOf(A.tag_name)!==-1){var N=A.parent.parent;(!N||V.indexOf(N.tag_name)===-1)&&(b=b||this._tag_stack.try_pop("p"))}else A.tag_name==="rp"||A.tag_name==="rt"?(b=b||this._tag_stack.try_pop("rt",["ruby","rtc"]),b=b||this._tag_stack.try_pop("rp",["ruby","rtc"])):A.tag_name==="optgroup"?b=b||this._tag_stack.try_pop("optgroup",["select"]):A.tag_name==="option"?b=b||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):A.tag_name==="colgroup"?b=b||this._tag_stack.try_pop("caption",["table"]):A.tag_name==="thead"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"])):A.tag_name==="tbody"||A.tag_name==="tfoot"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("thead",["table"]),b=b||this._tag_stack.try_pop("tbody",["table"])):A.tag_name==="tr"?(b=b||this._tag_stack.try_pop("caption",["table"]),b=b||this._tag_stack.try_pop("colgroup",["table"]),b=b||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(A.tag_name==="th"||A.tag_name==="td")&&(b=b||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),b=b||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return A.parent=this._tag_stack.get_parser_token(),b}},gh.Beautifier=O,gh}var u0;function gL(){if(u0)return Lu.exports;u0=1;var e=mL().Beautifier,n=Hv().Options;function a(r,u,o,h){var p=new e(r,u,o,h);return p.beautify()}return Lu.exports=a,Lu.exports.defaultOptions=function(){return new n},Lu.exports}var o0;function yL(){if(o0)return Ir;o0=1;var e=dL(),n=_L(),a=gL();function r(u,o,h,p){return h=h||e,p=p||n,a(u,o,h,p)}return r.defaultOptions=a.defaultOptions,Ir.js=e,Ir.css=n,Ir.html=r,Ir}var c0;function vL(){return c0||(c0=1,(function(e){function n(a,r,u){var o=function(h,p){return a.js_beautify(h,p)};return o.js=a.js_beautify,o.css=r.css_beautify,o.html=u.html_beautify,o.js_beautify=a.js_beautify,o.css_beautify=r.css_beautify,o.html_beautify=u.html_beautify,o}(function(a){var r=yL();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,a.exports=n(r,r,r)})(e)})(ih)),ih.exports}var EL=vL();const bL=ao(EL);var TL=bt({name:"WhiteSpace",pattern:/\s+/,group:ke.SKIPPED}),SL=bt({name:"LineComment",pattern:/\/\/[^\n\r]*/,group:ke.SKIPPED}),AL=bt({name:"BlockComment",pattern:/\/\*[\s\S]*?\*\//,group:ke.SKIPPED}),fe=bt({name:"Identifier",pattern:/[a-zA-Z_$][a-zA-Z0-9_.[\]]*/}),Fv=bt({name:"QuotedIdentifier",pattern:/`([^`\\]|\\.)*`/}),Pu=bt({name:"From",pattern:/from/i,longer_alt:fe}),Uh=bt({name:"To",pattern:/to/i,longer_alt:fe}),zh=bt({name:"Transform",pattern:/transform/i,longer_alt:fe}),Kv=bt({name:"Set",pattern:/set/i,longer_alt:fe}),Vv=bt({name:"Section",pattern:/section/i,longer_alt:fe}),Yv=bt({name:"Multiple",pattern:/multiple/i,longer_alt:fe}),Xv=bt({name:"Clone",pattern:/clone/i,longer_alt:fe}),Qv=bt({name:"Delete",pattern:/delete/i,longer_alt:fe}),Zv=bt({name:"Define",pattern:/define/i,longer_alt:fe}),Wv=bt({name:"Modify",pattern:/modify/i,longer_alt:fe}),Bh=bt({name:"If",pattern:/if/i,longer_alt:fe}),Jv=bt({name:"Else",pattern:/else/i,longer_alt:fe}),tE=bt({name:"True",pattern:/true/i,longer_alt:fe}),eE=bt({name:"False",pattern:/false/i,longer_alt:fe}),nE=bt({name:"Null",pattern:/null/i,longer_alt:fe}),iE=bt({name:"Return",pattern:/return/i,longer_alt:fe}),aE=bt({name:"Unsafe",pattern:/unsafe/i,longer_alt:fe}),sE=bt({name:"Where",pattern:/where/i,longer_alt:fe}),rE=bt({name:"EqualsEquals",pattern:/==/}),lE=bt({name:"EqualsEqualsEquals",pattern:/===/}),uE=bt({name:"NotEquals",pattern:/!=/}),oE=bt({name:"NotEqualsEquals",pattern:/!==/}),cE=bt({name:"LessThanOrEqual",pattern:/<=/}),fE=bt({name:"GreaterThanOrEqual",pattern:/>=/}),hE=bt({name:"LessThan",pattern:/</}),dE=bt({name:"GreaterThan",pattern:/>/}),pE=bt({name:"And",pattern:/&&/}),_E=bt({name:"Or",pattern:/\|\|/}),mE=bt({name:"Not",pattern:/!/}),Ss=bt({name:"Equals",pattern:/=/}),gE=bt({name:"Plus",pattern:/\+/}),jh=bt({name:"Minus",pattern:/-/}),yE=bt({name:"Times",pattern:/\*/}),vE=bt({name:"Divide",pattern:/\//}),EE=bt({name:"Modulo",pattern:/%/}),Vn=bt({name:"LParen",pattern:/\(/}),Ei=bt({name:"RParen",pattern:/\)/}),qu=bt({name:"Comma",pattern:/,/}),bE=bt({name:"StringLiteral",pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/}),TE=bt({name:"NumericLiteral",pattern:/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/}),SE=[TL,SL,AL,Pu,Uh,zh,Kv,Vv,Yv,Xv,Qv,Zv,Wv,Bh,Jv,tE,eE,nE,iE,aE,sE,lE,rE,oE,uE,cE,fE,pE,_E,Ss,hE,dE,mE,gE,jh,yE,vE,EE,Vn,Ei,qu,bE,TE,Fv,fe],OL=new ke(SE),xL=class extends o2{constructor(){super(SE),this.performSelfAnalysis()}query=this.RULE("query",()=>{this.CONSUME(Pu),this.SUBRULE(this.typeFormat,{LABEL:"sourceType"}),this.CONSUME(Uh),this.SUBRULE1(this.typeFormat,{LABEL:"targetType"}),this.OPTION(()=>{this.CONSUME(zh),this.OPTION1(()=>{this.CONSUME(aE)}),this.MANY(()=>{this.SUBRULE(this.action)})})});typeFormat=this.RULE("typeFormat",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"name"}),this.OPTION(()=>{this.CONSUME(Vn),this.MANY_SEP({SEP:qu,DEF:()=>{this.SUBRULE(this.typeFormatParameter,{LABEL:"params"})}}),this.CONSUME(Ei)})});typeFormatParameter=this.RULE("typeFormatParameter",()=>{this.OR([{GATE:()=>this.LA(2).tokenType===Ss,ALT:()=>this.SUBRULE(this.namedParameter)},{ALT:()=>this.SUBRULE(this.literal)}])});namedParameter=this.RULE("namedParameter",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"key"}),this.CONSUME(Ss),this.SUBRULE(this.literal,{LABEL:"value"})});anyIdentifier=this.RULE("anyIdentifier",()=>{this.OR([{ALT:()=>this.CONSUME(fe)},{ALT:()=>this.CONSUME(Fv)}])});literal=this.RULE("literal",()=>{this.OR([{ALT:()=>this.CONSUME(bE)},{ALT:()=>this.CONSUME(TE)},{ALT:()=>this.CONSUME(tE)},{ALT:()=>this.CONSUME(eE)},{ALT:()=>this.CONSUME(nE)}])});action=this.RULE("action",()=>{this.OR([{ALT:()=>this.SUBRULE(this.setRule)},{ALT:()=>this.SUBRULE(this.modifyRule)},{ALT:()=>this.SUBRULE(this.sectionRule)},{ALT:()=>this.SUBRULE(this.cloneRule)},{ALT:()=>this.SUBRULE(this.deleteRule)},{ALT:()=>this.SUBRULE(this.ifAction)},{ALT:()=>this.SUBRULE(this.defineRule)},{ALT:()=>this.SUBRULE(this.returnRule)}])});returnRule=this.RULE("returnRule",()=>{this.CONSUME(iE),this.SUBRULE(this.expression,{LABEL:"expr"})});deleteRule=this.RULE("deleteRule",()=>{this.CONSUME(Qv),this.SUBRULE(this.anyIdentifier,{LABEL:"field"})});ifAction=this.RULE("ifAction",()=>{this.CONSUME(Bh),this.CONSUME(Vn),this.SUBRULE(this.expression,{LABEL:"condition"}),this.CONSUME(Ei),this.CONSUME2(Vn),this.MANY(()=>{this.SUBRULE(this.action,{LABEL:"thenActions"})}),this.CONSUME2(Ei),this.OPTION(()=>{this.CONSUME(Jv),this.CONSUME3(Vn),this.MANY2(()=>{this.SUBRULE2(this.action,{LABEL:"elseActions"})}),this.CONSUME3(Ei)})});cloneRule=this.RULE("cloneRule",()=>{this.CONSUME(Xv),this.OPTION(()=>{this.CONSUME(Vn),this.MANY_SEP({SEP:qu,DEF:()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"fields"})}}),this.CONSUME(Ei)})});setRule=this.RULE("setRule",()=>{this.CONSUME(Kv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ss),this.SUBRULE(this.expression,{LABEL:"right"})});modifyRule=this.RULE("modifyRule",()=>{this.CONSUME(Wv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ss),this.SUBRULE(this.expression,{LABEL:"right"})});expression=this.RULE("expression",()=>{this.SUBRULE(this.logicalOr)});logicalOr=this.RULE("logicalOr",()=>{this.SUBRULE(this.logicalAnd,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(_E),this.SUBRULE1(this.logicalAnd,{LABEL:"rhs"})})});logicalAnd=this.RULE("logicalAnd",()=>{this.SUBRULE(this.comparison,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(pE),this.SUBRULE1(this.comparison,{LABEL:"rhs"})})});comparison=this.RULE("comparison",()=>{this.SUBRULE(this.addition,{LABEL:"lhs"}),this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(rE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(lE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(uE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(oE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(cE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(fE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(hE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(dE,{LABEL:"ops"})}]),this.SUBRULE1(this.addition,{LABEL:"rhs"})})});addition=this.RULE("addition",()=>{this.SUBRULE(this.multiplication,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(gE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(jh,{LABEL:"ops"})}]),this.SUBRULE1(this.multiplication,{LABEL:"rhs"})})});multiplication=this.RULE("multiplication",()=>{this.SUBRULE(this.unaryExpression,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(yE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(vE,{LABEL:"ops"})},{ALT:()=>this.CONSUME(EE,{LABEL:"ops"})}]),this.SUBRULE1(this.unaryExpression,{LABEL:"rhs"})})});unaryExpression=this.RULE("unaryExpression",()=>{this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(jh,{LABEL:"sign"})},{ALT:()=>this.CONSUME(mE,{LABEL:"sign"})}])}),this.SUBRULE(this.atomic)});atomic=this.RULE("atomic",()=>{this.OR([{ALT:()=>this.SUBRULE(this.literal)},{GATE:()=>this.LA(2).tokenType===Vn,ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.anyIdentifier)},{ALT:()=>{this.CONSUME(Vn),this.SUBRULE(this.expression),this.CONSUME(Ei)}}])});functionCall=this.RULE("functionCall",()=>{this.OR([{ALT:()=>this.CONSUME(fe,{LABEL:"name"})},{ALT:()=>this.CONSUME(Bh,{LABEL:"name"})}]),this.CONSUME(Vn),this.MANY_SEP({SEP:qu,DEF:()=>{this.SUBRULE(this.expression,{LABEL:"args"})}}),this.CONSUME(Ei)});sectionRule=this.RULE("sectionRule",()=>{this.CONSUME(Vv),this.OPTION(()=>{this.CONSUME(Yv)}),this.SUBRULE(this.anyIdentifier,{LABEL:"sectionName"}),this.CONSUME(Vn),this.OPTION1(()=>{this.CONSUME(Pu,{LABEL:"subqueryFrom"}),this.SUBRULE(this.typeFormat,{LABEL:"subquerySourceType"}),this.CONSUME(Uh,{LABEL:"subqueryTo"}),this.SUBRULE1(this.typeFormat,{LABEL:"subqueryTargetType"}),this.OPTION2(()=>{this.CONSUME(zh,{LABEL:"subqueryTransform"})})}),this.MANY(()=>{this.SUBRULE(this.action)}),this.CONSUME(Ei),this.OPTION3(()=>{this.CONSUME1(Pu,{LABEL:"followFrom"}),this.SUBRULE(this.expression,{LABEL:"followExpr"})}),this.OPTION4(()=>{this.CONSUME(sE,{LABEL:"whereClause"}),this.SUBRULE1(this.expression,{LABEL:"whereExpr"})})});defineRule=this.RULE("defineRule",()=>{this.CONSUME(Zv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Ss),this.SUBRULE(this.expression,{LABEL:"right"})})},Os=new xL,NL={substring:(e,n)=>{if(e.length<2)throw new Error("substring() requires at least 2 arguments (string, start, [length])");let[a,r,u]=e;return u!==void 0?`String(${a}).slice(${r}, (${r}) + (${u}))`:`String(${a}).slice(${r})`},if:(e,n)=>{if(e.length!==3)throw new Error("if() requires exactly 3 arguments (condition, trueValue, falseValue)");let[a,r,u]=e;return`((${a}) ? (${r}) : (${u}))`},text:(e,n)=>{if(e.length!==1)throw new Error("text() requires exactly 1 argument (string or number)");let[a]=e;return`String(${a})`},replace:(e,n)=>{if(e.length!==3)throw new Error("replace() requires exactly 3 arguments (string, search, replacement)");let[a,r,u]=e;return`String(${a}).replace(${r}, ${u})`},number:(e,n)=>{if(e.length!==1)throw new Error("number() requires exactly 1 argument (string)");let[a]=e;return`Number(${a})`},extractnumber:(e,n)=>{if(e.length!==1)throw new Error("extractNumber() requires exactly 1 argument (string)");let[a]=e;return`(() => { const match = String(${a}).match(/\\d+(\\.\\d+)?/); return match ? Number(match[0]) : null; })()`},uppercase:(e,n)=>{if(e.length!==1)throw new Error("uppercase() requires exactly 1 argument (string)");let[a]=e;return`String(${a}).toUpperCase()`},lowercase:(e,n)=>{if(e.length!==1)throw new Error("lowercase() requires exactly 1 argument (string)");let[a]=e;return`String(${a}).toLowerCase()`},xmlnode:(e,n)=>{if(e.length<1)throw new Error("xmlnode() requires at least 1 argument (string)");let[a,...r]=e,u=r.join(", ");return`env.functions.xmlnode(${a}${u?", "+u:""})`},split:(e,n)=>{if(e.length<1)throw new Error("split() requires at least 1 argument (string)");let[a,r,u]=e,o=r!==void 0?r:'""',h=u!==void 0?`, ${u}`:"";return`String(${a}).split(${o}${h})`},to_base64:(e,n)=>{if(e.length!==1)throw new Error("to_base64() requires exactly 1 argument (string)");let[a]=e;return`env.functions.to_base64(${a})`},from_base64:(e,n)=>{if(e.length!==1)throw new Error("from_base64() requires exactly 1 argument (string)");let[a]=e;return`env.functions.from_base64(${a})`},aslist:(e,n)=>{if(e.length!==1)throw new Error("aslist() requires exactly 1 argument");let[a]=e;return`env.functions.aslist(${a})`},spreadsheet:(e,n)=>{if(e.length!==1)throw new Error("spreadsheet() requires exactly 1 argument");let[a]=e;return`env.functions.spreadsheet(${a})`},unpack:(e,n)=>{if(e.length<2)throw new Error("unpack() requires at least 2 arguments (string, fieldSpec1, [fieldSpec2, ...])");let[a,...r]=e;r.forEach(o=>{let h=o.replace(/^["']|["']$/g,""),p=h.split(":");if(p.length<3)throw new Error(`Invalid field spec for unpack(): ${h}. Expected "name:start:length[:modifier]"`);let[d,_,v]=p;if(!/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(d))throw new Error(`Invalid field name in unpack() spec: "${d}". Must be a valid JavaScript identifier.`);let y=parseInt(_,10),O=parseInt(v,10);if(isNaN(y)||isNaN(O))throw new Error(`Invalid character positions in unpack() spec: ${h}`)});let u=r.join(", ");return`env.functions.unpack(${a}, ${u})`},pack:(e,n)=>{if(e.length<2)throw new Error("pack() requires at least 2 arguments (object, fieldSpec1, [fieldSpec2, ...])");let[a,...r]=e;r.forEach(o=>{let h=o.replace(/^["']|["']$/g,""),p=h.split(":");if(p.length<3)throw new Error(`Invalid field spec for pack(): ${h}. Expected "name:start:length[:modifier]"`);let[d,_,v]=p;if(!/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(d))throw new Error(`Invalid field name in pack() spec: "${d}". Must be a valid JavaScript identifier.`);let y=parseInt(_,10),O=parseInt(v,10);if(isNaN(y)||isNaN(O))throw new Error(`Invalid character positions in pack() spec: ${h}`)});let u=r.join(", ");return`env.functions.pack(${a}, ${u})`},concat:(e,n)=>`env.functions.concat(${e.join(", ")})`,avg:(e,n)=>{if(e.length!==2)throw new Error("avg() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.avg(${a}, ${u})`},minof:(e,n)=>{if(e.length!==2)throw new Error("minof() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.minof(${a}, ${u})`},maxof:(e,n)=>{if(e.length!==2)throw new Error("maxof() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.maxof(${a}, ${u})`},every:(e,n)=>{if(e.length!==2)throw new Error("every() requires exactly 2 arguments (array, conditionExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.every(${a}, ${u})`},some:(e,n)=>{if(e.length!==2)throw new Error("some() requires exactly 2 arguments (array, conditionExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.some(${a}, ${u})`},distinct:(e,n)=>{if(e.length!==2)throw new Error("distinct() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.distinct(${a}, ${u})`},sum:(e,n)=>{if(e.length!==2)throw new Error("sum() requires exactly 2 arguments (array, valueExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.sum(${a}, ${u})`},groupby:(e,n)=>{if(e.length!==2)throw new Error("groupby() requires exactly 2 arguments (array, keyExpression)");let[a,r]=e,u=`(item) => { const source = _safeSource(item); return ${r}; }`;return`env.functions.groupby(${a}, ${u})`},transpose:(e,n)=>{if(e.length<2)throw new Error("transpose() requires at least 2 arguments (source, key1, [key2, ...])");return`env.functions.transpose(${e.join(", ")})`},list:(e,n)=>`[${e.join(", ")}]`,array:(e,n)=>`[${e.join(", ")}]`,extract:(e,n)=>{if(e.length<2)throw new Error("extract() requires at least 2 arguments (source, key1, [key2, ...])");let[a,...r]=e;return`env.functions.extract(${a}, ${n.safeMode}, ${r.join(", ")})`},floor:(e,n)=>{if(e.length!==1)throw new Error("floor() requires exactly 1 argument");return`Math.floor(${e[0]})`},ceil:(e,n)=>{if(e.length!==1)throw new Error("ceil() requires exactly 1 argument");return`Math.ceil(${e[0]})`},round:(e,n)=>{if(e.length<1||e.length>2)throw new Error("round() requires 1 or 2 arguments (value, [mode])");return`env.functions.round(${e.join(", ")})`},abs:(e,n)=>{if(e.length!==1)throw new Error("abs() requires exactly 1 argument");return`Math.abs(${e[0]})`},fixed:(e,n)=>{if(e.length<1||e.length>3)throw new Error("fixed() requires 1 to 3 arguments (value, [decimals], [mode])");return`env.functions.fixed(${e.join(", ")})`},min:(e,n)=>{if(e.length<2)throw new Error("min() requires at least 2 arguments");return`Math.min(${e.join(", ")})`},max:(e,n)=>{if(e.length<2)throw new Error("max() requires at least 2 arguments");return`Math.max(${e.join(", ")})`},trim:(e,n)=>{if(e.length!==1)throw new Error("trim() requires exactly 1 argument");return`String(${e[0]}).trim()`},padstart:(e,n)=>{if(e.length<2)throw new Error("padstart() requires at least 2 arguments (str, length, [char])");let[a,r,u]=e;return u!==void 0?`String(${a}).padStart(${r}, ${u})`:`String(${a}).padStart(${r})`},padend:(e,n)=>{if(e.length<2)throw new Error("padend() requires at least 2 arguments (str, length, [char])");let[a,r,u]=e;return u!==void 0?`String(${a}).padEnd(${r}, ${u})`:`String(${a}).padEnd(${r})`},indexof:(e,n)=>{if(e.length!==2)throw new Error("indexof() requires exactly 2 arguments (str, search)");return`String(${e[0]}).indexOf(${e[1]})`},startswith:(e,n)=>{if(e.length!==2)throw new Error("startswith() requires exactly 2 arguments (str, prefix)");return`String(${e[0]}).startsWith(${e[1]})`},endswith:(e,n)=>{if(e.length!==2)throw new Error("endswith() requires exactly 2 arguments (str, suffix)");return`String(${e[0]}).endsWith(${e[1]})`}},vh=class{sourceRoot={type:"object",properties:{}};targetRoot={type:"object",properties:{}};sourceStack=[this.sourceRoot];targetStack=[this.targetRoot];getCurrentSource(){return this.sourceStack[this.sourceStack.length-1]}getCurrentTarget(){return this.targetStack[this.targetStack.length-1]}recordAccess(e,n="any",a=!1){let r=a?this.getCurrentTarget():this.getCurrentSource();this.setInNode(r,e,n)}recordAssignment(e,n="any"){this.setInNode(this.getCurrentTarget(),e,n)}recordClone(e){let n=this.getCurrentTarget();e?e.forEach(a=>{this.setInNode(this.getCurrentSource(),a,"any"),this.setInNode(n,a,"any")}):n.isOpen=!0}recordDelete(e){let n=this.getCurrentTarget();this.deleteInNode(n,e)}pushSection(e,n,a){n!=="parent"&&this.setInNode(this.getCurrentSource(),n,a?"array":"object");let r={type:a?"array":"object"};a?r.items={type:"object",properties:{}}:r.properties={};let u={type:"object",properties:{}};this.setInNodeExplicit(this.getCurrentTarget(),e,r),this.targetStack.push(a?r.items:r),this.sourceStack.push(u)}popSection(e,n){let a=this.sourceStack.pop();this.targetStack.pop();let r=this.getCurrentSource();if(e!=="parent"){let u=this.getOrSetNode(r,e,n?"array":"object"),o=n?u.items:u;o&&(o.properties||(o.properties={}),Object.assign(o.properties,a.properties||{}))}else r.properties||(r.properties={}),Object.assign(r.properties,a.properties||{})}parsePath(e){if(!e)return[];let n=[],a=e.split(".");for(let r of a){let u=r.match(/^([^[\]]*)((?:\[\d+\])*)$/);if(u){u[1]&&n.push(u[1]);let o=u[2].match(/\[\d+\]/g);if(o)for(let h of o)n.push("[]")}else n.push(r)}return n}setInNode(e,n,a){let r=this.parsePath(n),u=e;for(let o=0;o<r.length;o++){let h=r[o],p=o===r.length-1;if(h==="[]"){u.type="array",u.items||(u.items={type:p?a:"object",properties:{}}),u=u.items;continue}u.properties||(u.properties={}),p?(!u.properties[h]||u.properties[h].type==="any")&&(u.properties[h]={type:a},a==="object"?u.properties[h].properties={}:a==="array"&&(u.properties[h].items={type:"object",properties:{}})):(u.properties[h]||(u.properties[h]={type:"object",properties:{}}),u=u.properties[h])}}setInNodeExplicit(e,n,a){let r=this.parsePath(n),u=e;for(let o=0;o<r.length;o++){let h=r[o],p=o===r.length-1;if(h==="[]"){u.type="array",u.items||(u.items={type:p?a.type:"object",properties:{}}),p?u.items=a:u=u.items;continue}u.properties||(u.properties={}),p?u.properties[h]=a:(u.properties[h]||(u.properties[h]={type:"object",properties:{}}),u=u.properties[h])}}deleteInNode(e,n){let a=this.parsePath(n),r=e;for(let u=0;u<a.length;u++){let o=a[u],h=u===a.length-1;if(o==="[]"){if(!r.items)return;h?(delete r.items,r.type="any"):r=r.items;continue}if(!r.properties)return;if(h)delete r.properties[o];else if(r=r.properties[o],!r)return}}getOrSetNode(e,n,a){let r=this.parsePath(n),u=e;for(let o=0;o<r.length;o++){let h=r[o],p=o===r.length-1;if(h==="[]"){if(u.type="array",!u.items){let _=p?a:"object";u.items={type:_},_==="object"?u.items.properties={}:_==="array"&&(u.items.items={type:"object",properties:{}})}u=u.items;continue}let d=p?a:"object";u.properties||(u.properties={}),u.properties[h]||(u.properties[h]={type:d},d==="object"?u.properties[h].properties={}:d==="array"&&(u.properties[h].items={type:"object",properties:{}})),u=u.properties[h]}return u}getResult(){return{source:this.sourceRoot,target:this.targetRoot}}},RL=Os.getBaseCstVisitorConstructor(),wL=class extends RL{readFrom="source";scopeStack=[];safeMode=!0;isAnalyzing=!1;tracker=new vh;lastInferredType="any";constructor(){super(),this.validateVisitor()}reset(){this.readFrom="source",this.scopeStack=[],this.tracker=new vh,this.lastInferredType="any"}visitWithContext(e,n){let a=this.readFrom;this.readFrom=n.readFrom;try{return this.visit(e)}finally{this.readFrom=a}}query(e){this.reset(),this.isAnalyzing&&(this.tracker=new vh);let n=this.visit(e.sourceType),a=this.visit(e.targetType),r=!!e.Unsafe;this.safeMode=!r,this.scopeStack.push({format:a.name,options:a.options,isSerializationScope:!0});try{let u=e.action?e.action.map(v=>this.visit(v)):[];e.Transform||u.push("Object.assign(target, source);");let o=n.name,h=a.name,p=JSON.stringify(n.options),d=JSON.stringify(a.options),_=u.some(v=>typeof v=="string"&&v.trim().startsWith("return "));return{code:`
179
179
  return function(input, env) {
180
180
  // 1. Parse Input
181
181
  const _safeSource = (v) => (typeof v === 'object' && v !== null) ? (Array.isArray(v) ? [...v] : { ...v }) : (v || {});
@@ -287,7 +287,7 @@ You passed in: '`+this.raw_options[r]+"'");return h},e.prototype._is_valid_selec
287
287
  }
288
288
  }
289
289
  `}finally{if(this.isAnalyzing){let v=_==="parent"||this.isSimplePath(_)?_:"parent";this.tracker.popSection(v,h)}}}finally{this.scopeStack.pop()}}},f0=new wL,CL=Os.getBaseCstVisitorConstructor(),LL=class extends CL{constructor(){super(),this.validateVisitor()}query(e){let n=this.visit(e.sourceType),a=this.visit(e.targetType),r=!!e.Unsafe,u=e.action?e.action.map(h=>this.visit(h)):[],o={from:n,to:a,actions:u};return r&&(o.unsafe=!0),o}typeFormat(e){return this.visit(e.name).name}typeFormatParameter(e){}namedParameter(e){}anyIdentifier(e){if(e.Identifier){let a=e.Identifier[0].image;return{name:a,quoted:!1,raw:a}}let n=e.QuotedIdentifier[0].image;return{name:n.slice(1,-1).replace(/\\(.)/g,"$1"),quoted:!0,raw:n}}literal(e){return e.StringLiteral?e.StringLiteral[0].image:e.NumericLiteral?e.NumericLiteral[0].image:e.True?"true":e.False?"false":e.Null?"null":""}action(e){if(e.setRule)return this.visit(e.setRule);if(e.modifyRule)return this.visit(e.modifyRule);if(e.sectionRule)return this.visit(e.sectionRule);if(e.cloneRule)return this.visit(e.cloneRule);if(e.ifAction)return this.visit(e.ifAction);if(e.deleteRule)return this.visit(e.deleteRule);if(e.defineRule)return this.visit(e.defineRule);if(e.returnRule)return this.visit(e.returnRule);throw new Error("Unknown action type in CST")}setRule(e){let n=this.visit(e.left),a=this.visit(e.right);return{type:"set",target:n.name,expression:a}}modifyRule(e){let n=this.visit(e.left),a=this.visit(e.right);return{type:"modify",target:n.name,expression:a}}deleteRule(e){return{type:"delete",field:this.visit(e.field).name}}defineRule(e){let n=this.visit(e.left),a=this.visit(e.right);return{type:"define",variable:n.name,expression:a}}cloneRule(e){return e.fields&&e.fields.length>0?{type:"clone",fields:e.fields.map(n=>this.visit(n).name)}:{type:"clone"}}returnRule(e){return{type:"return",expression:this.visit(e.expr)}}ifAction(e){let n=this.visit(e.condition),a=e.thenActions?e.thenActions.map(o=>this.visit(o)):[],r=e.elseActions&&e.elseActions.length>0?e.elseActions.map(o=>this.visit(o)):void 0,u={type:"if",condition:n,thenActions:a};return r!==void 0&&(u.elseActions=r),u}sectionRule(e){let n=this.visit(e.sectionName).name,a=!!e.Multiple,r=!!e.subqueryFrom,u=e.action?e.action.map(d=>this.visit(d)):[],o=e.followExpr?this.visit(e.followExpr):void 0,h=e.whereExpr?this.visit(e.whereExpr):void 0,p={type:"section",name:n,actions:u};return a&&(p.multiple=!0),o!==void 0&&(p.from=o),h!==void 0&&(p.where=h),r&&(p.isSubquery=!0,p.sourceFormat=this.visit(e.subquerySourceType),p.targetFormat=this.visit(e.subqueryTargetType)),p}expression(e){return this.visit(e.logicalOr)}logicalOr(e){let n=this.visit(e.lhs);if(e.rhs&&e.rhs.length>0)for(let a=0;a<e.rhs.length;a++)n+=` || ${this.visit(e.rhs[a])}`;return n}logicalAnd(e){let n=this.visit(e.lhs);if(e.rhs&&e.rhs.length>0)for(let a=0;a<e.rhs.length;a++)n+=` && ${this.visit(e.rhs[a])}`;return n}comparison(e){let n=this.visit(e.lhs);if(e.rhs&&e.rhs.length>0){let a=e.ops[0].image;n+=` ${a} ${this.visit(e.rhs[0])}`}return n}addition(e){let n=this.visit(e.lhs);if(e.rhs&&e.rhs.length>0)for(let a=0;a<e.rhs.length;a++){let r=e.ops[a].image;n+=` ${r} ${this.visit(e.rhs[a])}`}return n}multiplication(e){let n=this.visit(e.lhs);if(e.rhs&&e.rhs.length>0)for(let a=0;a<e.rhs.length;a++){let r=e.ops[a].image;n+=` ${r} ${this.visit(e.rhs[a])}`}return n}unaryExpression(e){let n=this.visit(e.atomic);return e.sign&&e.sign.length>0?`${e.sign[0].image}${n}`:n}atomic(e){return e.literal?this.visit(e.literal):e.functionCall?this.visit(e.functionCall):e.anyIdentifier?this.visit(e.anyIdentifier).raw:e.expression?`(${this.visit(e.expression)})`:""}functionCall(e){let n=e.name[0].image,a=e.args?e.args.map(r=>this.visit(r)):[];return`${n}(${a.join(", ")})`}};new LL;var AE={};function ks(e,n){AE[e.toLowerCase()]=n}function h0(e){let n=AE[e.toLowerCase()];if(!n)throw new Error(`No adapter found for format: ${e}`);return n}function ML(e){let n="";for(;e>=0;)n=String.fromCharCode(e%26+65)+n,e=Math.floor(e/26)-1;return n}ks("json",{parse:e=>typeof e!="string"?e:JSON.parse(e),serialize:e=>JSON.stringify(e,null,2)});var kL=new Ni({ignoreAttributes:!1,attributeNamePrefix:"$",textNodeName:"_",format:!0});ks("xml",{parse:(e,n)=>typeof e!="string"?e:new W2({ignoreAttributes:!1,removeNSPrefix:!0,...n}).parse(e),serialize:(e,n)=>{let a=n?.rootGenerated??n?.params?.[0]??"root";return(n?new Ni({ignoreAttributes:!1,attributeNamePrefix:"$",textNodeName:"_",format:!0,...n}):kL).build({[a]:e})}});ks("csv",{parse:(e,n)=>{if(typeof e!="string")return e;let a=n?.delimiter??n?.params?.[0]??",";return{rows:Dy.parse(e,{delimiter:a,skipEmptyLines:!0,...n}).data.map(r=>{let u={};return Array.isArray(r)&&r.forEach((o,h)=>{u[ML(h)]=o}),u})}},serialize:(e,n)=>{if(!e||!Array.isArray(e.rows))return"";let a=n?.delimiter??n?.params?.[0]??",",r=e.rows.map(u=>Object.keys(u).filter(o=>/^[A-Z]+$/.test(o)).sort((o,h)=>o.length!==h.length?o.length-h.length:o.localeCompare(h)).map(o=>u[o]));return Dy.unparse(r,{delimiter:a,...n})}});ks("edifact",{parse:(e,n)=>{if(typeof e!="string")return e;let a="'",r="+",u=":",o="?",h=e.trim();if(h.startsWith("UNA")){let y=h.substring(3,9);u=y[0],r=y[1],o=y[3],a=y[5],h=h.substring(9).trim()}n&&(n.segmentTerminator&&(a=n.segmentTerminator),n.elementSeparator&&(r=n.elementSeparator),n.componentSeparator&&(u=n.componentSeparator),n.releaseChar&&(o=n.releaseChar));let p={},d=(y,O,z)=>{let G=[],V="";for(let A=0;A<y.length;A++){let b=y[A];b===z&&A+1<y.length?V+=z+y[++A]:b===O?(G.push(V),V=""):V+=b}return G.push(V),G},_=(y,O)=>{let z="";for(let G=0;G<y.length;G++)y[G]===O&&G+1<y.length?z+=y[++G]:z+=y[G];return z},v=d(h,a,o).map(y=>y.trim()).filter(y=>y.length>0);for(let y of v){let O=d(y,r,o),z=_(O[0],o),G=O.slice(1).map(V=>{let A=d(V,u,o).map(b=>_(b,o));return A.length>1?A:A[0]});p[z]||(p[z]=[]),p[z].push(G)}return p},serialize:(e,n)=>{if(!e||typeof e!="object")return"";let a=n?.segmentTerminator??"'",r=n?.elementSeparator??"+",u=n?.componentSeparator??":",o=n?.releaseChar??"?",h=d=>{if(d==null)return"";let _=String(d),v="";for(let y of _)(y===a||y===r||y===u||y===o)&&(v+=o),v+=y;return v},p="";n?.includeUNA&&(p+=`UNA${u}${r}.${o} ${a}`);for(let d in e){let _=Array.isArray(e[d])?e[d]:[e[d]];for(let v of _){if(p+=d,Array.isArray(v))for(let y of v)p+=r,Array.isArray(y)?p+=y.map(h).join(u):p+=h(y);p+=a}}return p}});ks("object",{parse:e=>{if(typeof e=="string"&&(e.trim().startsWith("{")||e.trim().startsWith("[")))try{return JSON.parse(e)}catch{return e}return e},serialize:e=>e});ks("plaintext",{parse:(e,n)=>{if(typeof e!="string")return e;let a=n?.separator??n?.params?.[0]??/\r?\n/;return{rows:e.split(a).filter(r=>r.length>0)}},serialize:(e,n)=>{if(!e||!Array.isArray(e.rows))return"";let a=n?.separator??n?.params?.[0]??`
290
- `;return e.rows.join(a)}});var UL={spreadsheet:e=>{let n=Array.isArray(e)?e:e==null?[]:[e];if(!Array.isArray(e)&&e&&typeof e=="object"&&Array.isArray(e.rows)&&(n=e.rows),n.length===0)return[];let a=[],r=[],u=[];for(let o=0;o<n.length;o++){let h=n[o];if(!(!h||typeof h!="object"))if(o===0){u=Object.keys(h);for(let p of u)r.push(String(h[p]))}else{let p={};for(let d=0;d<u.length;d++){let _=u[d],v=r[d];p[v]=h[_]}a.push(p)}}return a},aslist:e=>Array.isArray(e)?e:e==null?[]:[e],to_base64:e=>{let n=String(e);return typeof btoa=="function"?btoa(unescape(encodeURIComponent(n))):Buffer.from(n,"utf-8").toString("base64")},from_base64:e=>{let n=String(e);return typeof atob=="function"?decodeURIComponent(escape(atob(n))):Buffer.from(n,"base64").toString("utf-8")},xmlnode:(e,...n)=>{if(n.length>0){let a=[];for(let o=0;o<n.length;o+=2)a.push([n[o],n[o+1]]);let r=a.map(([o,h])=>[`$${o}`,h]),u=Object.fromEntries(r);return{_:e,...u}}return e},unpack:(e,...n)=>{let a=String(e||""),r={};for(let u of n){let o=u.split(":");if(o.length<3)continue;let[h,p,d,_]=o,v=parseInt(p,10),y=parseInt(d,10);if(isNaN(v)||isNaN(y))continue;let O=a.substring(v,v+y);_!=="raw"&&(O=O.trim()),r[h]=O}return r},pack:(e,...n)=>{let a=e||{},r=n.map(h=>{let p=h.split(":");if(p.length<3)return null;let[d,_,v,y]=p;return{name:d,start:parseInt(_,10),length:parseInt(v,10),left:y==="left"}}).filter(h=>h!==null),u=r.reduce((h,p)=>Math.max(h,p.start+p.length),0),o=" ".repeat(u);for(let h of r){let p=String(a[h.name]??""),d=(h.left?p.padStart(h.length):p.padEnd(h.length)).substring(0,h.length);o=o.substring(0,h.start)+d+o.substring(h.start+h.length)}return o},sum:(e,n)=>Array.isArray(e)?e.reduce((a,r)=>{let u=Number(n(r));return a+(isNaN(u)?0:u)},0):0,avg:(e,n)=>{if(!Array.isArray(e)||e.length===0)return 0;let a=0,r=0;for(let u of e){let o=n(u);if(o==null)continue;let h=Number(o);isNaN(h)||(a+=h,r++)}return r===0?0:a/r},minof:(e,n)=>{if(!Array.isArray(e))return null;let a=null;for(let r of e){let u=n(r);if(u==null)continue;let o=Number(u);!isNaN(o)&&(a===null||o<a)&&(a=o)}return a},maxof:(e,n)=>{if(!Array.isArray(e))return null;let a=null;for(let r of e){let u=n(r);if(u==null)continue;let o=Number(u);!isNaN(o)&&(a===null||o>a)&&(a=o)}return a},every:(e,n)=>Array.isArray(e)?e.every(a=>!!n(a)):!0,some:(e,n)=>Array.isArray(e)?e.some(a=>!!n(a)):!1,distinct:(e,n)=>{if(!Array.isArray(e))return[];let a=new Set,r=[];for(let u of e){let o=n(u),h=String(o);a.has(h)||(a.add(h),r.push(o))}return r},groupby:(e,n)=>{if(!Array.isArray(e))return[];let a=new Map;for(let r of e){let u=n(r),o=String(u);a.has(o)||a.set(o,{key:u,items:[]}),a.get(o).items.push(r)}return Array.from(a.values())},concat:(...e)=>e.reduce((n,a)=>n.concat(Array.isArray(a)?a:a==null?[]:[a]),[]),transpose:(e,...n)=>{if(!e||typeof e!="object"||n.length===0)return[];let a=0;for(let u of n){let o=e[u];Array.isArray(o)?a=Math.max(a,o.length):o!=null&&(a=Math.max(a,1))}let r=[];for(let u=0;u<a;u++){let o={};for(let h of n){let p=e[h];Array.isArray(p)?o[h]=p[u]:o[h]=u===0?p:void 0}r.push(o)}return r},extract:(e,n,...a)=>{if(!e||typeof e!="object")return{};let r=(o,h,p)=>{if(!h)return o;let d=h.split("."),_=o;for(let v of d)if(p){if(_==null)return;_=_[v]}else _=_[v];return _},u={};for(let o of a){let h=o.indexOf(":"),p,d;h!==-1?(p=o.substring(0,h),d=o.substring(h+1)):(p=o,d=o),u[p]=r(e,d,n)}return u},round:(e,n="half-up")=>{let a=Number(e);if(n==="half-even"){let r=Math.floor(a);return a-r===.5?r%2===0?r:r+1:Math.round(a)}return Math.round(a)},fixed:(e,n=2,a="half-up")=>{let r=Number(e),u=Math.max(0,Math.floor(Number(n))),o=Math.pow(10,u),h;if(a==="half-even"){let p=Math.abs(r)*o,d=Math.floor(p);h=(p-d===.5?d%2===0?d:d+1:Math.round(p))/o*Math.sign(r||1)}else h=Math.round(Math.abs(r)*o)/o*Math.sign(r||1);return h.toFixed(u)}};async function IL(e,n){if(n?.cache){let v=await n.cache.retrieve(e);if(v)return d0(v)}let a=OL.tokenize(e);if(a.errors.length>0)throw new Error(`Lexing errors: ${a.errors[0].message}`);Os.input=a.tokens;let r=Os.query();if(Os.errors.length>0)throw new Error(`Parsing errors: ${Os.errors[0].message}`);f0.isAnalyzing=!0;let{code:u,analysis:o,sourceType:h,targetType:p}=f0.visit(r),d=bL.js(u,{indent_size:2,space_in_empty_paren:!0,end_with_newline:!0});n?.cache&&await n.cache.save(e,d);let _=d0(d);return o&&(o.sourceFormat=h.name,o.targetFormat=p.name,_.analysis=o),_}function d0(e){let n=new Function(e)(),a={parse:(u,o,h)=>h0(u).parse(o,h),serialize:(u,o,h)=>h0(u).serialize(o,h),functions:UL},r=(u=>n(u,a));return r.code=e,r}function Un(e,...n){return e.reduce((a,r,u)=>a+r+(n[u]??""),"")}const xs=[{name:"Customer Profile (JSON to XML)",query:Un`from json
290
+ `;return e.rows.join(a)}});var IL={spreadsheet:e=>{let n=Array.isArray(e)?e:e==null?[]:[e];if(!Array.isArray(e)&&e&&typeof e=="object"&&Array.isArray(e.rows)&&(n=e.rows),n.length===0)return[];let a=[],r=[],u=[];for(let o=0;o<n.length;o++){let h=n[o];if(!(!h||typeof h!="object"))if(o===0){u=Object.keys(h);for(let p of u)r.push(String(h[p]))}else{let p={};for(let d=0;d<u.length;d++){let _=u[d],v=r[d];p[v]=h[_]}a.push(p)}}return a},aslist:e=>Array.isArray(e)?e:e==null?[]:[e],to_base64:e=>{let n=String(e);return typeof btoa=="function"?btoa(unescape(encodeURIComponent(n))):Buffer.from(n,"utf-8").toString("base64")},from_base64:e=>{let n=String(e);return typeof atob=="function"?decodeURIComponent(escape(atob(n))):Buffer.from(n,"base64").toString("utf-8")},xmlnode:(e,...n)=>{if(n.length>0){let a=[];for(let o=0;o<n.length;o+=2)a.push([n[o],n[o+1]]);let r=a.map(([o,h])=>[`$${o}`,h]),u=Object.fromEntries(r);return{_:e,...u}}return e},unpack:(e,...n)=>{let a=String(e||""),r={};for(let u of n){let o=u.split(":");if(o.length<3)continue;let[h,p,d,_]=o,v=parseInt(p,10),y=parseInt(d,10);if(isNaN(v)||isNaN(y))continue;let O=a.substring(v,v+y);_!=="raw"&&(O=O.trim()),r[h]=O}return r},pack:(e,...n)=>{let a=e||{},r=n.map(h=>{let p=h.split(":");if(p.length<3)return null;let[d,_,v,y]=p;return{name:d,start:parseInt(_,10),length:parseInt(v,10),left:y==="left"}}).filter(h=>h!==null),u=r.reduce((h,p)=>Math.max(h,p.start+p.length),0),o=" ".repeat(u);for(let h of r){let p=String(a[h.name]??""),d=(h.left?p.padStart(h.length):p.padEnd(h.length)).substring(0,h.length);o=o.substring(0,h.start)+d+o.substring(h.start+h.length)}return o},sum:(e,n)=>Array.isArray(e)?e.reduce((a,r)=>{let u=Number(n(r));return a+(isNaN(u)?0:u)},0):0,avg:(e,n)=>{if(!Array.isArray(e)||e.length===0)return 0;let a=0,r=0;for(let u of e){let o=n(u);if(o==null)continue;let h=Number(o);isNaN(h)||(a+=h,r++)}return r===0?0:a/r},minof:(e,n)=>{if(!Array.isArray(e))return null;let a=null;for(let r of e){let u=n(r);if(u==null)continue;let o=Number(u);!isNaN(o)&&(a===null||o<a)&&(a=o)}return a},maxof:(e,n)=>{if(!Array.isArray(e))return null;let a=null;for(let r of e){let u=n(r);if(u==null)continue;let o=Number(u);!isNaN(o)&&(a===null||o>a)&&(a=o)}return a},every:(e,n)=>Array.isArray(e)?e.every(a=>!!n(a)):!0,some:(e,n)=>Array.isArray(e)?e.some(a=>!!n(a)):!1,distinct:(e,n)=>{if(!Array.isArray(e))return[];let a=new Set,r=[];for(let u of e){let o=n(u),h=String(o);a.has(h)||(a.add(h),r.push(o))}return r},groupby:(e,n)=>{if(!Array.isArray(e))return[];let a=new Map;for(let r of e){let u=n(r),o=String(u);a.has(o)||a.set(o,{key:u,items:[]}),a.get(o).items.push(r)}return Array.from(a.values())},concat:(...e)=>e.reduce((n,a)=>n.concat(Array.isArray(a)?a:a==null?[]:[a]),[]),transpose:(e,...n)=>{if(!e||typeof e!="object"||n.length===0)return[];let a=0;for(let u of n){let o=e[u];Array.isArray(o)?a=Math.max(a,o.length):o!=null&&(a=Math.max(a,1))}let r=[];for(let u=0;u<a;u++){let o={};for(let h of n){let p=e[h];Array.isArray(p)?o[h]=p[u]:o[h]=u===0?p:void 0}r.push(o)}return r},extract:(e,n,...a)=>{if(!e||typeof e!="object")return{};let r=(o,h,p)=>{if(!h)return o;let d=h.split("."),_=o;for(let v of d)if(p){if(_==null)return;_=_[v]}else _=_[v];return _},u={};for(let o of a){let h=o.indexOf(":"),p,d;h!==-1?(p=o.substring(0,h),d=o.substring(h+1)):(p=o,d=o),u[p]=r(e,d,n)}return u},round:(e,n="half-up")=>{let a=Number(e);if(n==="half-even"){let r=Math.floor(a);return a-r===.5?r%2===0?r:r+1:Math.round(a)}return Math.round(a)},fixed:(e,n=2,a="half-up")=>{let r=Number(e),u=Math.max(0,Math.floor(Number(n))),o=Math.pow(10,u),h;if(a==="half-even"){let p=Math.abs(r)*o,d=Math.floor(p);h=(p-d===.5?d%2===0?d:d+1:Math.round(p))/o*Math.sign(r||1)}else h=Math.round(Math.abs(r)*o)/o*Math.sign(r||1);return h.toFixed(u)}};async function UL(e,n){if(n?.cache){let v=await n.cache.retrieve(e);if(v)return d0(v)}let a=OL.tokenize(e);if(a.errors.length>0)throw new Error(`Lexing errors: ${a.errors[0].message}`);Os.input=a.tokens;let r=Os.query();if(Os.errors.length>0)throw new Error(`Parsing errors: ${Os.errors[0].message}`);f0.isAnalyzing=!0;let{code:u,analysis:o,sourceType:h,targetType:p}=f0.visit(r),d=bL.js(u,{indent_size:2,space_in_empty_paren:!0,end_with_newline:!0});n?.cache&&await n.cache.save(e,d);let _=d0(d);return o&&(o.sourceFormat=h.name,o.targetFormat=p.name,_.analysis=o),_}function d0(e){let n=new Function(e)(),a={parse:(u,o,h)=>h0(u).parse(o,h),serialize:(u,o,h)=>h0(u).serialize(o,h),functions:IL},r=(u=>n(u,a));return r.code=e,r}function In(e,...n){return e.reduce((a,r,u)=>a+r+(n[u]??""),"")}const xs=[{name:"Customer Profile (JSON to XML)",query:In`from json
291
291
  to xml("UserProfile")
292
292
  transform
293
293
  section profile(
@@ -330,14 +330,14 @@ transform
330
330
  set accountType = if(visits > 40, "Frequent", "Casual")
331
331
  set lastSeen = substring(lastLogin, 0, 10)
332
332
  ) from metrics
333
- ) from customer`,source:JSON.stringify({customer:{id:"CUST-001",name:"Jane Doe",isActive:!0,contact:{email:"jane.doe@example.com",phone:"+1-555-0199"},addresses:[{type:"billing",street:"123 Main St",city:"Metropolis",zip:"10001",primary:!0},{type:"shipping",street:"456 Ocean Dr",city:"Gotham",zip:"10200",primary:!1}],orders:[{id:"ORD-2023-001",date:"2023-10-15",total:150.5,status:"shipped",items:[{sku:"WIDGET-A",qty:2,price:50},{sku:"GADGET-B",qty:1,price:50.5}]},{id:"ORD-2023-009",date:"2023-11-01",total:200,status:"pending",items:[{sku:"LUX-ITEM",qty:1,price:200}]}],metrics:{visits:42,lastLogin:"2023-11-05T10:00:00Z",tags:["vip","early-adopter"]}}},null,2)},{name:"Simple Math (JSON to JSON)",query:Un`from json
333
+ ) from customer`,source:JSON.stringify({customer:{id:"CUST-001",name:"Jane Doe",isActive:!0,contact:{email:"jane.doe@example.com",phone:"+1-555-0199"},addresses:[{type:"billing",street:"123 Main St",city:"Metropolis",zip:"10001",primary:!0},{type:"shipping",street:"456 Ocean Dr",city:"Gotham",zip:"10200",primary:!1}],orders:[{id:"ORD-2023-001",date:"2023-10-15",total:150.5,status:"shipped",items:[{sku:"WIDGET-A",qty:2,price:50},{sku:"GADGET-B",qty:1,price:50.5}]},{id:"ORD-2023-009",date:"2023-11-01",total:200,status:"pending",items:[{sku:"LUX-ITEM",qty:1,price:200}]}],metrics:{visits:42,lastLogin:"2023-11-05T10:00:00Z",tags:["vip","early-adopter"]}}},null,2)},{name:"Simple Math (JSON to JSON)",query:In`from json
334
334
  to json
335
335
  transform
336
336
  set sum = a + b
337
337
  set difference = a - b
338
338
  set product = a * b
339
339
  set quotient = a / b
340
- set formatted = "The result is " + (a + b)`,source:JSON.stringify({a:10,b:5},null,2)},{name:"Books (XML to JSON)",query:Un`from xml
340
+ set formatted = "The result is " + (a + b)`,source:JSON.stringify({a:10,b:5},null,2)},{name:"Books (XML to JSON)",query:In`from xml
341
341
  to json
342
342
  transform
343
343
  section library(
@@ -357,7 +357,7 @@ transform
357
357
  <author>George Orwell</author>
358
358
  <year>1949</year>
359
359
  </book>
360
- </catalog>`},{name:"Inventory (CSV to JSON)",query:Un`from csv
360
+ </catalog>`},{name:"Inventory (CSV to JSON)",query:In`from csv
361
361
  to json
362
362
  transform
363
363
  section multiple products(
@@ -369,7 +369,7 @@ transform
369
369
  ) from spreadsheet(source)`,source:`ID,Name,Quantity,Price,Category
370
370
  P001,Wireless Mouse,50,25.99,Accessories
371
371
  P002,Mechanical Keyboard,30,89.50,Accessories
372
- P003,USB-C Hub,100,15.00,Cables`},{name:"Log Parsing (Plaintext to JSON)",query:Un`from plaintext
372
+ P003,USB-C Hub,100,15.00,Cables`},{name:"Log Parsing (Plaintext to JSON)",query:In`from plaintext
373
373
  to json
374
374
  transform
375
375
  section multiple entries(
@@ -380,19 +380,19 @@ transform
380
380
  )
381
381
  ) from rows`,source:`2023-10-27 10:00:01 INFO Application started successfully
382
382
  2023-10-27 10:05:23 WARN Memory usage reaching 80%
383
- 2023-10-27 10:10:12 ERROR Failed to connect to database`},{name:"Data Utilities (JSON to JSON)",query:Un`from json
383
+ 2023-10-27 10:10:12 ERROR Failed to connect to database`},{name:"Data Utilities (JSON to JSON)",query:In`from json
384
384
  to json
385
385
  transform
386
386
  set original = textValue
387
387
  set encoded = to_base64(textValue)
388
388
  set decoded = from_base64(to_base64(textValue))
389
389
  set listData = aslist(singleValue)
390
- set emptyList = aslist(null)`,source:JSON.stringify({textValue:"Hello MorphQL!",singleValue:42},null,2)},{name:"XML Attributes (JSON to XML)",query:Un`from json
390
+ set emptyList = aslist(null)`,source:JSON.stringify({textValue:"Hello MorphQL!",singleValue:42},null,2)},{name:"XML Attributes (JSON to XML)",query:In`from json
391
391
  to xml("Store")
392
392
  transform
393
393
  section multiple items(
394
394
  set result = xmlnode(name, "id", id, "qty", quantity)
395
- ) from products`,source:JSON.stringify({products:[{id:"item-1",name:"Apple",quantity:10},{id:"item-2",name:"Banana",quantity:20}]},null,2)},{name:"Fixed-Width Output (JSON to Plaintext)",query:Un`from json
395
+ ) from products`,source:JSON.stringify({products:[{id:"item-1",name:"Apple",quantity:10},{id:"item-2",name:"Banana",quantity:20}]},null,2)},{name:"Fixed-Width Output (JSON to Plaintext)",query:In`from json
396
396
  to plaintext
397
397
  transform
398
398
  section multiple rows(
@@ -401,7 +401,7 @@ transform
401
401
  "name:5:15",
402
402
  "score:20:5:left"
403
403
  )
404
- ) from users`,source:JSON.stringify({users:[{id:"1",name:"Alice",score:"100"},{id:"2",name:"Bob",score:"85"},{id:"3",name:"Charlie",score:"92"}]},null,2)},{name:"Invoice Mapping (EDIFACT to JSON)",query:Un`from edifact to object
404
+ ) from users`,source:JSON.stringify({users:[{id:"1",name:"Alice",score:"100"},{id:"2",name:"Bob",score:"85"},{id:"3",name:"Charlie",score:"92"}]},null,2)},{name:"Invoice Mapping (EDIFACT to JSON)",query:In`from edifact to object
405
405
  transform
406
406
  set invoiceNumber = BGM[0][1]
407
407
  set invoiceDate = DTM[0][0][1]
@@ -440,7 +440,7 @@ MOA+203:250.00:USD'
440
440
  UNS+S'
441
441
  MOA+77:750.00:USD'
442
442
  UNT+13+1'
443
- UNZ+1+1'`},{name:"Advanced Object Construction (Flat to Array)",query:Un`from object to object
443
+ UNZ+1+1'`},{name:"Advanced Object Construction (Flat to Array)",query:In`from object to object
444
444
  transform
445
445
  define INV_TYPE = "Invoice"
446
446
  define TRN_TYPE = "Transport Document"
@@ -448,7 +448,7 @@ transform
448
448
  set documents = list(
449
449
  extract(source, "number:inv_number", "type:INV_TYPE"),
450
450
  extract(source, "number:trn_number", "type:TRN_TYPE")
451
- )`,source:JSON.stringify({inv_number:"INV-2024-01",trn_number:"TRN-9988",date:"2024-02-12"},null,2)},{name:"Order Analytics (groupby + sum)",query:Un`from json to json
451
+ )`,source:JSON.stringify({inv_number:"INV-2024-01",trn_number:"TRN-9988",date:"2024-02-12"},null,2)},{name:"Order Analytics (groupby + sum)",query:In`from json to json
452
452
  transform
453
453
  section multiple byStatus(
454
454
  set status = key
@@ -495,4 +495,4 @@ set discounted = sum(items, price * quantity)`}},{name:"groupby",doc:{signature:
495
495
  round(4.5, "half-even") // 4 (banker's)
496
496
  round(3.5, "half-even") // 4 (banker's)`}},{name:"abs",doc:{signature:"abs(value)",description:"Returns the absolute value of a number.",parameters:[{name:"value",description:"The number"}],returns:"number",example:"abs(-42) // 42"}},{name:"fixed",doc:{signature:"fixed(value, [decimals], [mode])",description:`Formats a number to a fixed number of decimal places. Mode controls tie-breaking: "half-up" (default) rounds .5 away from zero; "half-even" uses banker's rounding. Returns a string. Default decimals: 2.`,parameters:[{name:"value",description:"The number to format"},{name:"decimals",description:"(Optional) Number of decimal places. Default: 2"},{name:"mode",description:'(Optional) Rounding mode: "half-up" (default) or "half-even"'}],returns:"string",example:`fixed(2.5, 2) // "2.50" (half-up)
497
497
  fixed(2.5, 2, "half-even") // "2.50" (banker's, no tie at 2 decimals)
498
- fixed(2.5, 0, "half-even") // "2" (banker's, rounds to even)`}},{name:"min",doc:{signature:"min(a, b, ...)",description:"Returns the smallest of two or more numbers.",parameters:[{name:"a, b, ...",description:"Numbers to compare"}],returns:"number",example:"min(3, 1, 4) // 1"}},{name:"max",doc:{signature:"max(a, b, ...)",description:"Returns the largest of two or more numbers.",parameters:[{name:"a, b, ...",description:"Numbers to compare"}],returns:"number",example:"max(3, 1, 4) // 4"}},{name:"trim",doc:{signature:"trim(str)",description:"Removes leading and trailing whitespace from a string.",parameters:[{name:"str",description:"The string to trim"}],returns:"string",example:'trim(" hello ") // "hello"'}},{name:"padstart",doc:{signature:"padstart(str, length, [char])",description:"Pads the start of a string with a character until it reaches the target length.",parameters:[{name:"str",description:"The string to pad"},{name:"length",description:"Target total length"},{name:"char",description:'(Optional) Pad character. Default: " "'}],returns:"string",example:'padstart(id, 8, "0") // "00000042"'}},{name:"padend",doc:{signature:"padend(str, length, [char])",description:"Pads the end of a string with a character until it reaches the target length.",parameters:[{name:"str",description:"The string to pad"},{name:"length",description:"Target total length"},{name:"char",description:'(Optional) Pad character. Default: " "'}],returns:"string",example:'padend(name, 20) // "Alice "'}},{name:"indexof",doc:{signature:"indexof(str, search)",description:"Returns the index of the first occurrence of a substring. Returns -1 if not found.",parameters:[{name:"str",description:"The string to search in"},{name:"search",description:"The substring to find"}],returns:"number",example:'indexof("hello world", "world") // 6'}},{name:"startswith",doc:{signature:"startswith(str, prefix)",description:"Returns true if the string starts with the given prefix.",parameters:[{name:"str",description:"The string to check"},{name:"prefix",description:"The prefix to look for"}],returns:"boolean",example:'startswith("hello", "he") // true'}},{name:"endswith",doc:{signature:"endswith(str, suffix)",description:"Returns true if the string ends with the given suffix.",parameters:[{name:"str",description:"The string to check"},{name:"suffix",description:"The suffix to look for"}],returns:"boolean",example:'endswith("hello", "lo") // true'}}],DL=()=>jL.map(e=>e.name),$L=[{symbol:"===",category:"comparison",precedence:7},{symbol:"!==",category:"comparison",precedence:7},{symbol:"==",category:"comparison",precedence:7},{symbol:"!=",category:"comparison",precedence:7},{symbol:"<=",category:"comparison",precedence:6},{symbol:">=",category:"comparison",precedence:6},{symbol:"<",category:"comparison",precedence:6},{symbol:">",category:"comparison",precedence:6},{symbol:"&&",category:"logical",precedence:5},{symbol:"||",category:"logical",precedence:4},{symbol:"!",category:"logical",precedence:9},{symbol:"+",category:"arithmetic",precedence:10},{symbol:"-",category:"arithmetic",precedence:10},{symbol:"*",category:"arithmetic",precedence:11},{symbol:"/",category:"arithmetic",precedence:11},{symbol:"%",category:"arithmetic",precedence:11},{symbol:"=",category:"assignment",precedence:1}],PL=()=>$L.map(e=>e.symbol);function qL(){return{keywords:BL(),builtinFunctions:DL(),operators:PL(),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"predefined","@default":"identifier"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}const GL=qL();function HL(e){e.languages.register({id:"morphql"}),e.languages.setMonarchTokensProvider("morphql",GL),e.languages.setLanguageConfiguration("morphql",{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}]})}function io({node:e,name:n}){const[a,r]=pt.useState(!0);if(!e)return null;const u=e.properties&&Object.keys(e.properties).length>0,o=e.items,h=u||o,p=d=>{switch(d){case"string":return"text-emerald-400";case"number":return"text-amber-400";case"boolean":return"text-indigo-400";case"array":return"text-pink-400";case"object":return"text-slate-400";default:return"text-slate-500"}};return et.jsxs("div",{className:"pl-4",children:[et.jsxs("div",{className:"flex items-center gap-2 py-0.5 group",children:[h?et.jsx("button",{onClick:()=>r(!a),className:"p-0.5 hover:bg-slate-800 rounded transition-colors text-slate-500",children:et.jsx(ku,{className:`w-3 h-3 transition-transform ${a?"rotate-90":""}`})}):et.jsx("div",{className:"w-4"}),n&&et.jsxs("span",{className:"text-xs font-mono text-slate-300",children:[n,":"]}),et.jsxs("span",{className:`text-[10px] uppercase font-bold ${p(e.type)} tracking-wider opacity-80`,children:[e.type,e.isOpen&&et.jsx("span",{className:"text-[10px] text-indigo-400 ml-1 italic",children:"(open)"})]})]}),a&&et.jsxs("div",{children:[u&&Object.entries(e.properties).map(([d,_])=>et.jsx(io,{name:d,node:_},d)),o&&et.jsx(io,{name:"items",node:e.items})]})]})}function FL({initialQuery:e=xs[0].query,initialSourceData:n=xs[0].source,className:a="",onQueryChange:r,onSourceDataChange:u}){const[o,h]=pt.useState(e),[p,d]=pt.useState(n),[_,v]=pt.useState(!1),[y,O]=pt.useState({result:"",generatedCode:"",error:null}),[z,G]=pt.useState("query"),[V,A]=pt.useState("output"),b=w=>{const E=w.trim();return E.startsWith("<")?"xml":E.startsWith("{")||E.startsWith("[")?"json":"plaintext"},N=b(p);pt.useEffect(()=>{h(e)},[e]),pt.useEffect(()=>{d(n)},[n]),pt.useEffect(()=>{async function w(){try{const E=await IL(o,{analyze:!0}),S=E(p);O({result:typeof S=="string"?S:JSON.stringify(S,null,2),generatedCode:E.code,error:null,analysis:E.analysis})}catch(E){O({result:"",generatedCode:"",error:E instanceof Error?E.message:String(E)})}}w()},[o,p]);const P=w=>{const E=xs.find(S=>S.name===w.target.value);E&&(h(E.query),d(E.source),r?.(E.query),u?.(E.source))},B=()=>{navigator.clipboard.writeText(y.result),v(!0),setTimeout(()=>v(!1),2e3)},Z=w=>{const E=w||"";h(E),r?.(E)},I=w=>{const E=w||"";d(E),u?.(E)};return et.jsxs("div",{className:`flex flex-col h-full bg-[#0f172a] text-slate-200 overflow-hidden ${a}`,children:[et.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800 bg-[#1e293b]",children:[et.jsxs("div",{className:"flex items-center gap-3",children:[et.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:et.jsx(ku,{className:"w-5 h-5 text-white fill-current"})}),et.jsxs("div",{children:[et.jsx("h1",{className:"text-lg font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-slate-400",children:"MorphQL Playground"}),et.jsx("p",{className:"text-xs text-slate-400 font-medium",children:"High-Performance Query-to-Code Engine"})]})]}),et.jsxs("div",{className:"flex items-center gap-4",children:[et.jsxs("select",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700 text-slate-200 outline-none cursor-pointer",onChange:P,defaultValue:"",children:[et.jsx("option",{value:"",disabled:!0,children:"Load Example..."}),xs.map(w=>et.jsx("option",{value:w.name,children:w.name},w.name))]}),et.jsx("a",{href:"https://hyperwindmill.github.io/morphql",className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700",children:"Documentation"})]})]}),et.jsxs("main",{className:"flex-1 flex overflow-hidden",children:[et.jsxs("div",{className:"w-1/2 flex flex-col border-r border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("button",{onClick:()=>G("query"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${z==="query"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(ES,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Morph Query"})]}),et.jsxs("button",{onClick:()=>G("js"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${z==="js"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(_S,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Generated JS"})]}),et.jsxs("button",{onClick:()=>G("source"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${z==="source"?"bg-slate-800 text-emerald-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Ng,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Source Data"})]})]}),et.jsxs("div",{className:"flex-1 overflow-hidden",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${z==="query"?"block":"hidden"}`,children:et.jsx(bu,{theme:"vs-dark",defaultLanguage:"morphql",value:o,onChange:Z,beforeMount:w=>{HL(w)},options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${z==="js"?"block":"hidden"}`,children:et.jsx(bu,{theme:"vs-dark",defaultLanguage:"javascript",value:y.generatedCode,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${z==="source"?"block":"hidden"}`,children:et.jsx(bu,{theme:"vs-dark",language:N,value:p,onChange:I,options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]}),et.jsxs("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1",children:[et.jsxs("button",{onClick:()=>A("output"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${V==="output"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(ku,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Transformation Result"})]}),et.jsxs("button",{onClick:()=>A("structure"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${V==="structure"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Rg,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Structure"})]})]}),V==="output"&&et.jsx("button",{onClick:B,className:"p-1 hover:bg-slate-800 rounded transition-colors text-slate-400 hover:text-white",title:"Copy Result",children:_?et.jsx(dS,{className:"w-4 h-4 text-emerald-400"}):et.jsx(gS,{className:"w-4 h-4"})})]}),et.jsxs("div",{className:"flex-1 overflow-hidden bg-[#1e1e1e]",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 ${V==="output"?"block":"hidden"}`,children:y.error?et.jsxs("div",{className:"p-4 flex gap-3 text-red-400 bg-red-950/20 m-4 rounded-lg border border-red-900/50",children:[et.jsx(Rg,{className:"w-5 h-5 flex-shrink-0"}),et.jsxs("div",{children:[et.jsx("p",{className:"text-sm font-bold mb-1",children:"Compilation/Execution Error"}),et.jsx("p",{className:"text-xs font-mono",children:y.error})]})]}):et.jsx(bu,{theme:"vs-dark",language:b(y.result),value:y.result,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),V==="structure"&&et.jsxs("div",{className:"h-full flex flex-col divide-y divide-slate-800 overflow-hidden",children:[et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Input Structure"}),et.jsx(Ng,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:y.analysis?.source?et.jsx(io,{node:y.analysis.source}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No input structure detected"})})]}),et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Output Structure"}),et.jsx(ku,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:y.analysis?.target?et.jsx(io,{node:y.analysis.target}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No output structure detected"})})]})]})]})]})]}),et.jsxs("footer",{className:"px-6 py-2 border-t border-slate-800 bg-[#1e293b] flex justify-between items-center",children:[et.jsx("div",{className:"flex items-center gap-6",children:et.jsx("div",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:"Version: 0.1.31"})}),et.jsx("div",{className:"text-[10px] text-slate-500 font-medium italic",children:"MorphQL Engine © 2026"})]})]})}function KL(){const[e,n]=pt.useState(()=>sessionStorage.getItem("morph_query")||xs[0].query),[a,r]=pt.useState(()=>sessionStorage.getItem("morph_source")||xs[0].source),u=h=>{n(h),sessionStorage.setItem("morph_query",h)},o=h=>{r(h),sessionStorage.setItem("morph_source",h)};return et.jsx("div",{className:"h-screen w-screen",children:et.jsx(FL,{initialQuery:e,initialSourceData:a,onQueryChange:u,onSourceDataChange:o})})}WT.createRoot(document.getElementById("root")).render(et.jsx(Ra.StrictMode,{children:et.jsx(KL,{})}))});export default VL();
498
+ fixed(2.5, 0, "half-even") // "2" (banker's, rounds to even)`}},{name:"min",doc:{signature:"min(a, b, ...)",description:"Returns the smallest of two or more numbers.",parameters:[{name:"a, b, ...",description:"Numbers to compare"}],returns:"number",example:"min(3, 1, 4) // 1"}},{name:"max",doc:{signature:"max(a, b, ...)",description:"Returns the largest of two or more numbers.",parameters:[{name:"a, b, ...",description:"Numbers to compare"}],returns:"number",example:"max(3, 1, 4) // 4"}},{name:"trim",doc:{signature:"trim(str)",description:"Removes leading and trailing whitespace from a string.",parameters:[{name:"str",description:"The string to trim"}],returns:"string",example:'trim(" hello ") // "hello"'}},{name:"padstart",doc:{signature:"padstart(str, length, [char])",description:"Pads the start of a string with a character until it reaches the target length.",parameters:[{name:"str",description:"The string to pad"},{name:"length",description:"Target total length"},{name:"char",description:'(Optional) Pad character. Default: " "'}],returns:"string",example:'padstart(id, 8, "0") // "00000042"'}},{name:"padend",doc:{signature:"padend(str, length, [char])",description:"Pads the end of a string with a character until it reaches the target length.",parameters:[{name:"str",description:"The string to pad"},{name:"length",description:"Target total length"},{name:"char",description:'(Optional) Pad character. Default: " "'}],returns:"string",example:'padend(name, 20) // "Alice "'}},{name:"indexof",doc:{signature:"indexof(str, search)",description:"Returns the index of the first occurrence of a substring. Returns -1 if not found.",parameters:[{name:"str",description:"The string to search in"},{name:"search",description:"The substring to find"}],returns:"number",example:'indexof("hello world", "world") // 6'}},{name:"startswith",doc:{signature:"startswith(str, prefix)",description:"Returns true if the string starts with the given prefix.",parameters:[{name:"str",description:"The string to check"},{name:"prefix",description:"The prefix to look for"}],returns:"boolean",example:'startswith("hello", "he") // true'}},{name:"endswith",doc:{signature:"endswith(str, suffix)",description:"Returns true if the string ends with the given suffix.",parameters:[{name:"str",description:"The string to check"},{name:"suffix",description:"The suffix to look for"}],returns:"boolean",example:'endswith("hello", "lo") // true'}}],DL=()=>jL.map(e=>e.name),$L=[{symbol:"===",category:"comparison",precedence:7},{symbol:"!==",category:"comparison",precedence:7},{symbol:"==",category:"comparison",precedence:7},{symbol:"!=",category:"comparison",precedence:7},{symbol:"<=",category:"comparison",precedence:6},{symbol:">=",category:"comparison",precedence:6},{symbol:"<",category:"comparison",precedence:6},{symbol:">",category:"comparison",precedence:6},{symbol:"&&",category:"logical",precedence:5},{symbol:"||",category:"logical",precedence:4},{symbol:"!",category:"logical",precedence:9},{symbol:"+",category:"arithmetic",precedence:10},{symbol:"-",category:"arithmetic",precedence:10},{symbol:"*",category:"arithmetic",precedence:11},{symbol:"/",category:"arithmetic",precedence:11},{symbol:"%",category:"arithmetic",precedence:11},{symbol:"=",category:"assignment",precedence:1}],PL=()=>$L.map(e=>e.symbol);function qL(){return{keywords:BL(),builtinFunctions:DL(),operators:PL(),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"predefined","@default":"identifier"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}const GL=qL();function HL(e){e.languages.register({id:"morphql"}),e.languages.setMonarchTokensProvider("morphql",GL),e.languages.setLanguageConfiguration("morphql",{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}]})}function io({node:e,name:n}){const[a,r]=pt.useState(!0);if(!e)return null;const u=e.properties&&Object.keys(e.properties).length>0,o=e.items,h=u||o,p=d=>{switch(d){case"string":return"text-emerald-400";case"number":return"text-amber-400";case"boolean":return"text-indigo-400";case"array":return"text-pink-400";case"object":return"text-slate-400";default:return"text-slate-500"}};return et.jsxs("div",{className:"pl-4",children:[et.jsxs("div",{className:"flex items-center gap-2 py-0.5 group",children:[h?et.jsx("button",{onClick:()=>r(!a),className:"p-0.5 hover:bg-slate-800 rounded transition-colors text-slate-500",children:et.jsx(ku,{className:`w-3 h-3 transition-transform ${a?"rotate-90":""}`})}):et.jsx("div",{className:"w-4"}),n&&et.jsxs("span",{className:"text-xs font-mono text-slate-300",children:[n,":"]}),et.jsxs("span",{className:`text-[10px] uppercase font-bold ${p(e.type)} tracking-wider opacity-80`,children:[e.type,e.isOpen&&et.jsx("span",{className:"text-[10px] text-indigo-400 ml-1 italic",children:"(open)"})]})]}),a&&et.jsxs("div",{children:[u&&Object.entries(e.properties).map(([d,_])=>et.jsx(io,{name:d,node:_},d)),o&&et.jsx(io,{name:"items",node:e.items})]})]})}function FL({initialQuery:e=xs[0].query,initialSourceData:n=xs[0].source,className:a="",onQueryChange:r,onSourceDataChange:u}){const[o,h]=pt.useState(e),[p,d]=pt.useState(n),[_,v]=pt.useState(!1),[y,O]=pt.useState({result:"",generatedCode:"",error:null}),[z,G]=pt.useState("query"),[V,A]=pt.useState("output"),b=w=>{const E=w.trim();return E.startsWith("<")?"xml":E.startsWith("{")||E.startsWith("[")?"json":"plaintext"},N=b(p);pt.useEffect(()=>{h(e)},[e]),pt.useEffect(()=>{d(n)},[n]),pt.useEffect(()=>{async function w(){try{const E=await UL(o,{analyze:!0}),S=E(p);O({result:typeof S=="string"?S:JSON.stringify(S,null,2),generatedCode:E.code,error:null,analysis:E.analysis})}catch(E){O({result:"",generatedCode:"",error:E instanceof Error?E.message:String(E)})}}w()},[o,p]);const P=w=>{const E=xs.find(S=>S.name===w.target.value);E&&(h(E.query),d(E.source),r?.(E.query),u?.(E.source))},B=()=>{navigator.clipboard.writeText(y.result),v(!0),setTimeout(()=>v(!1),2e3)},Z=w=>{const E=w||"";h(E),r?.(E)},U=w=>{const E=w||"";d(E),u?.(E)};return et.jsxs("div",{className:`flex flex-col h-full bg-[#0f172a] text-slate-200 overflow-hidden ${a}`,children:[et.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800 bg-[#1e293b]",children:[et.jsxs("div",{className:"flex items-center gap-3",children:[et.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:et.jsx(ku,{className:"w-5 h-5 text-white fill-current"})}),et.jsxs("div",{children:[et.jsx("h1",{className:"text-lg font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-slate-400",children:"MorphQL Playground"}),et.jsx("p",{className:"text-xs text-slate-400 font-medium",children:"High-Performance Query-to-Code Engine"})]})]}),et.jsxs("div",{className:"flex items-center gap-4",children:[et.jsxs("select",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700 text-slate-200 outline-none cursor-pointer",onChange:P,defaultValue:"",children:[et.jsx("option",{value:"",disabled:!0,children:"Load Example..."}),xs.map(w=>et.jsx("option",{value:w.name,children:w.name},w.name))]}),et.jsx("a",{href:"https://hyperwindmill.github.io/morphql",className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700",children:"Documentation"})]})]}),et.jsxs("main",{className:"flex-1 flex overflow-hidden",children:[et.jsxs("div",{className:"w-1/2 flex flex-col border-r border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("button",{onClick:()=>G("query"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${z==="query"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(ES,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Morph Query"})]}),et.jsxs("button",{onClick:()=>G("js"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${z==="js"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(_S,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Generated JS"})]}),et.jsxs("button",{onClick:()=>G("source"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${z==="source"?"bg-slate-800 text-emerald-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Ng,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Source Data"})]})]}),et.jsxs("div",{className:"flex-1 overflow-hidden",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${z==="query"?"block":"hidden"}`,children:et.jsx(bu,{theme:"vs-dark",defaultLanguage:"morphql",value:o,onChange:Z,beforeMount:w=>{HL(w)},options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${z==="js"?"block":"hidden"}`,children:et.jsx(bu,{theme:"vs-dark",defaultLanguage:"javascript",value:y.generatedCode,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),et.jsx("div",{className:`h-full flex flex-col pt-2 bg-[#1e1e1e] ${z==="source"?"block":"hidden"}`,children:et.jsx(bu,{theme:"vs-dark",language:N,value:p,onChange:U,options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]}),et.jsxs("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-slate-900 border-b border-slate-800",children:[et.jsxs("div",{className:"flex items-center gap-1",children:[et.jsxs("button",{onClick:()=>A("output"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${V==="output"?"bg-slate-800 text-amber-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(ku,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Transformation Result"})]}),et.jsxs("button",{onClick:()=>A("structure"),className:`flex items-center gap-2 px-3 py-1.5 rounded-md transition-all ${V==="structure"?"bg-slate-800 text-indigo-400 shadow-sm":"text-slate-500 hover:text-slate-300 hover:bg-slate-800/50"}`,children:[et.jsx(Rg,{className:"w-4 h-4"}),et.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Structure"})]})]}),V==="output"&&et.jsx("button",{onClick:B,className:"p-1 hover:bg-slate-800 rounded transition-colors text-slate-400 hover:text-white",title:"Copy Result",children:_?et.jsx(dS,{className:"w-4 h-4 text-emerald-400"}):et.jsx(gS,{className:"w-4 h-4"})})]}),et.jsxs("div",{className:"flex-1 overflow-hidden bg-[#1e1e1e]",children:[et.jsx("div",{className:`h-full flex flex-col pt-2 ${V==="output"?"block":"hidden"}`,children:y.error?et.jsxs("div",{className:"p-4 flex gap-3 text-red-400 bg-red-950/20 m-4 rounded-lg border border-red-900/50",children:[et.jsx(Rg,{className:"w-5 h-5 flex-shrink-0"}),et.jsxs("div",{children:[et.jsx("p",{className:"text-sm font-bold mb-1",children:"Compilation/Execution Error"}),et.jsx("p",{className:"text-xs font-mono",children:y.error})]})]}):et.jsx(bu,{theme:"vs-dark",language:b(y.result),value:y.result,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})}),V==="structure"&&et.jsxs("div",{className:"h-full flex flex-col divide-y divide-slate-800 overflow-hidden",children:[et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Input Structure"}),et.jsx(Ng,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:y.analysis?.source?et.jsx(io,{node:y.analysis.source}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No input structure detected"})})]}),et.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[et.jsxs("div",{className:"px-4 py-1.5 bg-slate-900/50 flex items-center justify-between border-b border-slate-800",children:[et.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-slate-500",children:"Output Structure"}),et.jsx(ku,{className:"w-3 h-3 text-slate-600"})]}),et.jsx("div",{className:"flex-1 overflow-auto p-4 custom-scrollbar",children:y.analysis?.target?et.jsx(io,{node:y.analysis.target}):et.jsx("div",{className:"h-full flex items-center justify-center text-slate-600 italic text-xs",children:"No output structure detected"})})]})]})]})]})]}),et.jsxs("footer",{className:"px-6 py-2 border-t border-slate-800 bg-[#1e293b] flex justify-between items-center",children:[et.jsx("div",{className:"flex items-center gap-6",children:et.jsx("div",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:"Version: 0.1.32"})}),et.jsx("div",{className:"text-[10px] text-slate-500 font-medium italic",children:"MorphQL Engine © 2026"})]})]})}function KL(){const[e,n]=pt.useState(()=>sessionStorage.getItem("morph_query")||xs[0].query),[a,r]=pt.useState(()=>sessionStorage.getItem("morph_source")||xs[0].source),u=h=>{n(h),sessionStorage.setItem("morph_query",h)},o=h=>{r(h),sessionStorage.setItem("morph_source",h)};return et.jsx("div",{className:"h-screen w-screen",children:et.jsx(FL,{initialQuery:e,initialSourceData:a,onQueryChange:u,onSourceDataChange:o})})}WT.createRoot(document.getElementById("root")).render(et.jsx(Ra.StrictMode,{children:et.jsx(KL,{})}))});export default VL();