PageSourceSearch

https://www.tvigle.ru/_next/static/chunks/9944-689a5c961ffe5883.js

js tvigle.ru collected 2026-10-01 10:15:56 UTC 202,594 bytes, 28 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="afaf96d7-3a92-428c-9257-4fe5575aa23e",e._sentryDebugIdIdentifier="sentry-dbid-afaf96d7-3a92-428c-9257-4fe5575aa23e")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9944],{15197:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}n.d(t,{Nj:()=>ev,TS:()=>ey});var o,l,a,s,u,c,f,d,h,p,m,g,y,v,b,k,x,w={stringify:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==r(e)||null===e)return"";t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){!function(e,t,n){var i;i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===r(i)?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({encode:!0},t);var n=function(e){return t.encode?encodeURIComponent(e):String(e)};return Object.keys(e).reduce(function(r,i){var o=e[i];return void 0===o||(null===o?t.skipNull||r.push([n(i),""].join("=")):Array.isArray(o)?o.map(function(e){r.push("".concat(n(i),"[]=").concat(n(e)))}).join():r.push([n(i),n(o)].join("="))),r},[]).join("&")}};(o||(o={})).TYPE_ACTION="type_action",function(e){e.TYPE_REGISTRATION_ITEM="type_registration_item",e.TYPE_SAK_SESSION_EVENT_ITEM="type_sak_sessions_event_item"}(l||(l={})),function(e){e.NOWHERE="nowhere",e.FLOATING_ONE_TAP="floating_one_tap",e.MULTIBRANDING="multibranding_widget"}(a||(a={}));class S{actionStatsCollector;constructor(e){this.actionStatsCollector=e}logEvent(e,t){let n={type:l.TYPE_REGISTRATION_ITEM,[l.TYPE_REGISTRATION_ITEM]:t};return this.actionStatsCollector.logEvent({screen:e,event:n})}}let _="2.6.5",C="vk.ru",E=`login.${C}`,T=`oauth.${C}`,O=`id.${C}`,I=`api.${C}`,A=(e,t)=>{let{__vkidDomain:n,app:r}=t.get();return`https://${n}/${e}?app_id=${r}`},P=(e,t)=>{let{__apiDomain:n}=t.get();return`https://${n}/method/${e}`},D=e=>{let t=Object.keys(e).map(t=>{let n=e[t];return t=encodeURIComponent(t||""),n=encodeURIComponent(void 0===n?"":n),`${t}=${n}`});return t.push("v=5.207"),t.join("&")},L=(e,t)=>fetch(e,{method:"POST",body:D(t),mode:"cors",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(e=>e.json());class M{static MAX_INT32=0x7fffffff;timeoutId=null;lastEvent;config;stackEvents=[];accessToken;constructor(e,t){this.config=e,this.accessToken=t}getIntId(){return Math.floor(Math.random()*M.MAX_INT32)}getCurrentTime(e=!0){let t=Date.now().toString(10);return e?t+"000":t}sendStats(e){return this.stackEvents.push(e),this.timeoutId&&window.clearTimeout(this.timeoutId),new Promise((e,t)=>{this.timeoutId=window.setTimeout(()=>{let n={events:JSON.stringify(this.stackEvents),sak_version:_};this.stackEvents=[];let r=A("stat_events_vkid_sdk",this.config);this.accessToken&&(n.access_token=this.accessToken,r=P("statEvents.addVKID",this.config)),L(r,n).then(e).catch(t)},0)})}getBaseEvent(e){return{id:this.getIntId(),prev_event_id:this.lastEvent?.id||0,prev_nav_id:0,timestamp:this.getCurrentTime(),url:window.location.href,screen:e}}logEvent(e){return this.lastEvent=e,this.sendStats(e)}}class N{productStatsCollector;constructor(e){this.productStatsCollector=e}logEvent(e){let t={...this.productStatsCollector.getBaseEvent(e.screen),type:o.TYPE_ACTION,[o.TYPE_ACTION]:e.event};return this.productStatsCollector.logEvent(t)}}class F{registrationStatsCollector;uniqueSessionId;constructor(e){let t=new N(new M(e));this.registrationStatsCollector=new S(t)}setUniqueSessionId(e){this.uniqueSessionId=e}getFields(){let e=[{name:"sdk_type",value:"vkid"}];return this.uniqueSessionId&&e.push({name:"unique_session_id",value:this.uniqueSessionId}),e}sendCustomAuthStart(e){let t=this.getFields();return e&&t.push({name:"oauth_service",value:e}),this.registrationStatsCollector.logEvent(a.NOWHERE,{event_type:"custom_auth_start",fields:t})}}class R{promise;callback;resolve;reject;
1constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}setCallback=e=>{this.callback=e};removeCallback=()=>{this.callback=null};sendSuccess=e=>{this.resolve(e),this.callback&&this.callback()};sendError=e=>{this.reject(e),this.callback&&this.callback()};get value(){return this.promise}}let z=(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};function V(e,t){try{let n=new Date(new Date().getTime()+(t.expires||9e5)).toUTCString(),r=location.host.split(".").slice(-2).join(".");document.cookie=`vkid_sdk:${e}=${encodeURIComponent(t.value||"")}; expires=${n}; path=/; domain=.${r}; SameSite=Strict; Secure`}catch(e){}}function j(e){let t=location.host.split(".").slice(-2).join(".");try{document.cookie=`vkid_sdk:${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Strict; Secure; domain=.${t}`}catch(e){}}function B(e,t){let n;return t.value?(V(e,t),t.value):((n=function(e){try{let t=document.cookie.match(RegExp("(?:^|; )"+("vkid_sdk:"+e).replace(/([.$?*|{}()\[\]\\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}catch(e){return}}(e))||(n=z(48),V(e,{...t,value:n})),n)}let H=e=>B("state",{value:e}),U=e=>B("codeVerifier",{value:e}),$=()=>j("state"),W=()=>j("codeVerifier");!function(e){e.AUTH="from_custom_auth",e.BUTTON_ONE_TAP="from_one_tap",e.FLOATING_ONE_TAP="from_floating_one_tap",e.MULTIBRANDING="from_multibranding"}(s||(s={})),function(e){e[e.EventNotSupported=100]="EventNotSupported",e[e.CannotCreateNewTab=101]="CannotCreateNewTab",e[e.NewTabHasBeenClosed=102]="NewTabHasBeenClosed",e[e.AuthorizationFailed=103]="AuthorizationFailed",e[e.StateMismatch=104]="StateMismatch"}(u||(u={}));let Y={[u.EventNotSupported]:"Event is not supported",[u.CannotCreateNewTab]:"Cannot create new tab. Try checking your browser settings",[u.NewTabHasBeenClosed]:"New tab has been closed",[u.AuthorizationFailed]:"Authorization failed with an error",[u.StateMismatch]:"The received state does not match the expected state"};class q extends R{state=H();sendSuccessData=e=>{this.sendSuccess({type:e.type,code:e.code,state:e.state,device_id:e.device_id,expires_in:e.expires_in,ext_id:e.ext_id})};sendNewTabHasBeenClosed=()=>{this.sendError({code:u.NewTabHasBeenClosed,error:Y[u.NewTabHasBeenClosed],state:this.state})};sendAuthorizationFailed=e=>{this.sendError({code:u.AuthorizationFailed,error:Y[u.AuthorizationFailed],error_description:JSON.stringify(e),state:this.state})};sendEventNotSupported=()=>{this.sendError({code:u.EventNotSupported,error:Y[u.EventNotSupported],state:this.state})};sendCannotCreateNewTab=()=>{this.sendError({code:u.CannotCreateNewTab,error:Y[u.CannotCreateNewTab],state:this.state})};sendStateMismatchError=()=>{this.sendError({code:u.StateMismatch,error:Y[u.StateMismatch],state:this.state})}}!function(e){e.Redirect="redirect",e.InNewTab="new_tab",e.InNewWindow="new_window"}(c||(c={})),function(e){e.Redirect="redirect",e.Callback="callback"}(f||(f={})),(d||(d={})).LOWCODE="lowcode",function(e){e.Default="",e.None="none",e.Login="login",e.Consent="consent",e.SelectAccount="select_account"}(h||(h={}));let G=[".vk.com",".vk.ru"],K=e=>!!G.find(t=>e.endsWith(t));var X=n(80754),Z=n.n(X),Q=n(63009),J=n.n(Q);let ee=e=>{let t=J()(e);return Z().stringify(t).replace(/=*$/g,"").replace(/\+/g,"-").replace(/\//g,"_")},et=(e,t,n)=>{let r={...t,v:_,sdk_type:"vkid",app_id:n.app,redirect_uri:n.redirectUrl,debug:n.__debug?1:null,localhost:n.__localhost?1:null},i=w.stringify(r,{skipNull:!0});return`https://${n.__vkidDomain}/${e}?${i}`},en=(e,t)=>{let n=t.get().redirectUrl,r=n.includes("?"),i=Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&");return`${n}${r?"&":"?"}${i}`},er=e=>{if(Object.values(e).filter(Boolean).length)return btoa(JSON.stringify(e))},ei=((e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r})("qazwsxedcrfvtgbyhnujmikol",6);!function(e){e.OK="ok_ru",e.MAIL="mail_ru",e.VK="vkid"}(p||(p={})),function(e){e[e.OK=p.OK]="OK",e[e.MAIL=p.MAIL]="MAIL"}(m||(m={}));class eo{static config;dataService;opener;interval;id=ei();analytics;
1state;codeVerifier;constructor(){this.analytics=new F(eo.config)}close=()=>{this.opener&&this.opener.close()};handleMessage=({origin:e,source:t,data:n})=>{if(t===this.opener&&this.opener&&K(e)){if(this.unsubscribe(),n.payload.error){this.dataService.sendAuthorizationFailed(n.payload.error);return}if(n.action==="oauth2_authorize_response"+this.state){if(this.state!==n.payload.state)this.dataService.sendStateMismatchError();else{!function(e){if(e)try{let t=new Date(new Date().getTime()+31536e6).toUTCString(),n=location.host.split(".").slice(-2).join(".");document.cookie=`vkidExtId=${encodeURIComponent(e||"")}; expires=${t}; path=/; domain=.${n}; SameSite=Strict; Secure`}catch(e){}}(n.payload.ext_id),delete n.payload.ext_id,$(),this.state="";let{responseMode:e}=eo.config.get();e===f.Redirect?(this.redirectWithPayload(n.payload),this.close()):this.dataService.sendSuccessData(n.payload)}return}this.dataService.sendEventNotSupported()}};handleInterval=()=>{this.opener?.closed&&(this.unsubscribe(),this.dataService.sendNewTabHasBeenClosed())};subscribe=()=>{this.interval=window.setInterval(this.handleInterval,1e3),window.addEventListener("message",this.handleMessage),this.dataService.removeCallback()};unsubscribe=()=>{window.removeEventListener("message",this.handleMessage),clearInterval(this.interval),this.dataService.setCallback(this.close)};loginInNewTab=e=>{let t=window.open(e,"_blank");return this.handleWindowOpen(t)};loginInNewWindow=e=>{let t=screen.height/2-400,n=screen.width/2-400,r=`top=${t},left=${n},width=800,height=800,location`,i=window.open(e,"_blank",r);return this.handleWindowOpen(i)};handleWindowOpen=e=>(this.dataService=new q,this.opener=e,this.opener?this.subscribe():this.dataService.sendCannotCreateNewTab(),this.dataService.value);loginByRedirect=e=>(location.assign(e),Promise.resolve());login=e=>{let t=eo.config.get(),{scope:n,app:r,codeChallenge:i,prompt:o}=t,l=e?.statsFlowSource||s.AUTH,a=e?.uniqueSessionId||this.id;l===s.AUTH&&this.analytics.setUniqueSessionId(a),this.codeVerifier=U(t.codeVerifier),this.state=H(t.state);let u=[...o];(Object.values(m).includes(e?.provider)||e?.screen)&&u.unshift(h.Login);let f={lang_id:e?.lang,scheme:e?.scheme,code_challenge:i||ee(this.codeVerifier),code_challenge_method:"s256",client_id:r,response_type:"code",scope:n,state:this.state,provider:e?.provider,prompt:u.join(" ").trim(),stats_info:er({flow_source:l,session_id:a})};t.mode!==c.Redirect&&(l===s.AUTH&&this.analytics.sendCustomAuthStart(e?.provider),f.origin=location.protocol+"//"+location.hostname);let d=et("authorize",f,t);switch(t.mode){case c.InNewWindow:return this.loginInNewWindow(d);case c.InNewTab:return this.loginInNewTab(d);default:if(l===s.AUTH)return this.analytics.sendCustomAuthStart(e?.provider).finally(()=>{this.loginByRedirect(d)});return this.loginByRedirect(d)}};checkState(e){if(this.state!==e)return{code:u.StateMismatch,error:Y[u.StateMismatch],state:e};$(),this.state=""}exchangeCode(e,t,n){let r=eo.config.get();this.state=H(r.state);let i={grant_type:"authorization_code",redirect_uri:r.redirectUrl,client_id:r.app,code_verifier:n||this.codeVerifier||U(),state:this.state,device_id:t},o=w.stringify(i);return fetch(`https://${r.__vkidDomain}/oauth2/auth?${o}`,{method:"POST",body:new URLSearchParams({code:e})}).then(e=>this.oauthSectionFetchHandler(e)).then(e=>{let t=this.checkState(e.state);if(t)throw t;return W(),this.codeVerifier="",e})}refreshToken(e,t){let n=eo.config.get();this.state=H(n.state);let r={grant_type:"refresh_token",redirect_uri:n.redirectUrl,client_id:n.app,device_id:t,state:this.state},i=w.stringify(r);return fetch(`https://${n.__vkidDomain}/oauth2/auth?${i}`,{method:"POST",body:new URLSearchParams({refresh_token:e})}).then(e=>this.oauthSectionFetchHandler(e)).then(e=>{let t=this.checkState(e.state);if(t)throw t;return eo.config.update({state:n.state}),e})}logout(e){let t=eo.config.get(),n={client_id:t.app},r=w.stringify(n);return fetch(`https://${t.__vkidDomain}/oauth2/logout?${r}`,{method:"POST",body:new URLSearchParams({access_token:e})}).then(e=>this.oauthSectionFetchHandler(e))}userInfo(e){let t=eo.config.get(),n={client_id:t.app},r=w.stringify(n);
1return fetch(`https://${t.__vkidDomain}/oauth2/user_info?${r}`,{method:"POST",body:new URLSearchParams({access_token:e})}).then(e=>this.oauthSectionFetchHandler(e))}publicInfo(e){let t=eo.config.get(),n={client_id:t.app},r=w.stringify(n);return fetch(`https://${t.__vkidDomain}/oauth2/public_info?${r}`,{method:"POST",body:new URLSearchParams({id_token:e})}).then(e=>this.oauthSectionFetchHandler(e))}oauthSectionFetchHandler(e){return e.json().then(e=>{if("error"in e)throw e;return e})}redirectWithPayload(e){location.assign(en(e,eo.config))}}class el{actionStatsCollector;constructor(e){this.actionStatsCollector=e}logEvent(e){let t={type:l.TYPE_SAK_SESSION_EVENT_ITEM,[l.TYPE_SAK_SESSION_EVENT_ITEM]:e};return this.actionStatsCollector.logEvent({screen:a.NOWHERE,event:t})}sendSdkInit(e,t){this.logEvent({step:"vkid_sdk_init",additional_info:e,fields:t})}}let ea=e=>(t,n,r)=>{let i=r.value;r.value=function(t){for(let n of Object.keys(e)){let r=e[n];r?.forEach(e=>{let{result:r,makeError:i}=e(t[n]);if(!r)throw Error(i(n))})}return i?.apply(this,arguments)}},es=e=>{let t=!0;return("string"==typeof e&&""===e.trim()||void 0===e||null==e)&&(t=!1),{result:t,makeError:e=>`${e} is required parameter`}};!function(e){e[e.OFF=0]="OFF",e[e.ON=1]="ON",e[e.IN_PROGRESS=2]="IN_PROGRESS"}(g||(g={}));class eu{config;constructor(e){this.config=e}init(){this.getTrackerId().then(e=>{e?.response?.active===g.ON&&this.includeOnPage(e.response.tracker_id)}).catch(console.error)}getTrackerId(){return L(A("vkid_sdk_get_config",this.config),{})}includeOnPage(e){if((window._tmr||(window._tmr=[])).push({id:e,type:"pageView",start:new Date().getTime()}),document.getElementById("tmr-code"))return;let t=document.createElement("script");t.type="text/javascript",t.async=!0,t.id="tmr-code",t.src="https://mytopf.com/js/code.js";let n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}}class ec{sakSessionStatsCollector;store={app:0,redirectUrl:"",mode:c.InNewTab,responseMode:f.Redirect,codeVerifier:"",state:"",prompt:[h.Default],__loginDomain:E,__oauthDomain:T,__vkidDomain:O,__apiDomain:I};myTrackerService;constructor(){let e=new N(new M(this));this.sakSessionStatsCollector=new el(e),this.myTrackerService=new eu(this)}init(e){let t=e.groupSubscriptionsLimit?.maxSubscriptionsToShow,n=e.groupSubscriptionsLimit?.periodInDays;return this.set(e),this.sakSessionStatsCollector.sendSdkInit(e.source,[{name:"limit_settings",value:`${t||2};${n||30}`}]),this.myTrackerService.init(),this}update(e){return this.set(e)}set(e){return this.store={...this.store,...e},this}get(){return this.store}}!function(e,t,n,r){var i,o=arguments.length,l=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(o<3?i(l):o>3?i(t,n,l):i(t,n))||l);o>3&&l&&Object.defineProperty(t,n,l)}([ea({app:[es,e=>({result:["number","string"].includes(typeof e)&&!isNaN(parseInt(e)),makeError:e=>`${e} should be number`})],redirectUrl:[es]})],ec.prototype,"init",null);class ef{events=(function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map(function(e){e(n)}),(e["*"]||[]).slice().map(function(e){e(t,n)})}}})();on(e,t){return this.events.on(e,t),this}off(e,t){return this.events.off(e,t),this}}!function(e){e.MESSAGE="message",e.UNSUPPORTED_MESSAGE="unsupported_message"}(y||(y={}));let ed="vk-sak-sdk";class eh extends ef{config;constructor(e){super(),this.config=e,this.handleMessage=this.handleMessage.bind(this),window.addEventListener("message",this.handleMessage)}destroy(){delete this.config,window.removeEventListener("message",this.handleMessage)}sendMessage(e){this.config.iframe.contentWindow?.postMessage({type:ed,...e},this.config.origin)}handleMessage(e){if(!this.config.origin||e.origin!==this.config.origin||e.source!==this.config.iframe.contentWindow||e.data?.type!==ed){this.events.emit(y.UNSUPPORTED_MESSAGE,e.data);return}this.events.emit(y.MESSAGE,e.data)}}!function(e){e.LOGIN_SUCCESS="onetap: success login",e.SHOW_FULL_AUTH="onetap: show full auth",e.START_AUTHORIZE="onetap: start authorize",e.NOT_AUTHORIZED="onetap: not authorized",e.AUTHENTICATION_INFO="onetap: authentication_info"}(v||(v={})),function(e){e.LOADING="loading",e.LOADED="loaded",e.NOT_LOADED="not_loaded"}(b||(b={})),function(e){e[e.TimeoutExceeded=0]="TimeoutExceeded",e[e.InternalError=1]="InternalError",e[e.AuthError=2]="AuthError"}(k||(k={}));let ep={[k.TimeoutExceeded]:"timeout",[k.InternalError]:"internal error",[k.AuthError]:"auth error"};!function(e){e.START_LOAD="common: start load",e.LOAD="common: load",e.SHOW="common: show",e.HIDE="common: hide",e.CLOSE="common: close",e.ERROR="common: error",e.RESIZE="common: resize"}(x||(x={}));let em=e=>`
2<div id="${e}" data-test-id="widget">
3  <style>
4    #${e} {
5      width: 100%;
6      height: 100%;
7      max-width: 100%;
8      max-height: 100%;
9    }
10
11    #${e} iframe {
12      border: none;
13      color-scheme: auto;
14    }
15
16    #${e} .loader,
17    #${e} .error {
18      display: none;
19      width: 100%;
20      height: 100%;
21      text-align: center;
22    }
23  </style>
24  <div class="loader"></div>
25  <div class="error"></div>
26  <iframe width="100%" height="100%"></iframe>
27</div>
28  `;class eg extends ef{static config;static auth;id=ei();lang;scheme;vkidAppName="";config;timeoutTimer;bridge;container;templateRenderer=em;elements;constructor(){super(),this.config=eg.config}
28render(e){let{container:t,...n}=e;return(this.container=t,this.renderTemplate(),this.registerElements(),"fastAuthDisabled"in e&&e.fastAuthDisabled)?this.setState(b.NOT_LOADED):this.loadWidgetFrame(n),this}close(){clearTimeout(this.timeoutTimer),this.elements?.root?.remove(),this.bridge?.destroy(),this.events.emit(x.CLOSE)}show(){return this.elements.root&&(this.elements.root.style.display="block",this.events.emit(x.SHOW)),this}hide(){return this.elements.root&&(this.elements.root.style.display="none",this.events.emit(x.HIDE)),this}onStartLoadHandler(){this.setState(b.LOADING),this.timeoutTimer=setTimeout(()=>{this.onErrorHandler({code:k.TimeoutExceeded,text:ep[k.TimeoutExceeded]})},5e3),this.events.emit(x.START_LOAD)}onLoadHandler(){clearTimeout(this.timeoutTimer),setTimeout(()=>{this.setState(b.LOADED)},300),this.events.emit(x.LOAD)}onErrorHandler(e){clearTimeout(this.timeoutTimer),this.setState(b.NOT_LOADED),this.events.emit(v.AUTHENTICATION_INFO,{is_online:!1}),this.events.emit(x.ERROR,e),this.elements?.iframe?.remove()}onBridgeMessageHandler(e){switch(e.handler){case x.LOAD:this.onLoadHandler();break;case x.CLOSE:this.close();break;case x.ERROR:this.onErrorHandler({code:k.InternalError,text:ep[k.InternalError],details:e.params});break;case x.RESIZE:this.elements.root.style.height=`${e.params.height}px`}}renderTemplate(){this.container.insertAdjacentHTML("beforeend",this.templateRenderer(this.id))}loadWidgetFrame(e){this.onStartLoadHandler(),this.bridge=new eh({iframe:this.elements.iframe,origin:`https://${this.config.get().__vkidDomain}`}),this.bridge.on(y.MESSAGE,e=>this.onBridgeMessageHandler(e)),this.elements.iframe.src=this.getWidgetFrameSrc(this.config.get(),e)}getWidgetFrameSrc(e,t){let n={...t,origin:location.protocol+"//"+location.host,oauth_version:2};return et(this.vkidAppName,n,e)}setState(e){this.elements.root.setAttribute("data-state",e)}registerElements(){let e=document.getElementById(this.id);this.elements={root:e,iframe:e.querySelector("iframe")}}redirectWithPayload(e){location.assign(en(e,eg.config))}}!function(e,t,n,r){var i,o=arguments.length,l=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(o<3?i(l):o>3?i(t,n,l):i(t,n))||l);o>3&&l&&Object.defineProperty(t,n,l)}([ea({container:[es]})],eg.prototype,"render",null);let ey=new ec;eo.config=ey;let ev=new eo;eg.config=ey,eg.auth=ev},19021:function(e,t,n){var r;r=function(){var e=e||function(e,t){if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50477)}catch(e){}var r,i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),l={},a=l.lib={},s=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=s.extend({init:function(e,n){e=this.words=e||[],t!=n?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var l=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=l<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new u.init(t,e)}}),c=l.enc={},f=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,l=this.blockSize,a=o/(4*l),s=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*l,c=e.min(4*s,o);if(s){for(var f=0;f<s;f+=l)this._doProcessBlock(i,f);n=i.splice(0,s),r.sigBytes-=c}return new u.init(n,c)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}});var m=l.algo={};return l}(Math);return e},e.exports=r()},80754:function(e,t,n){var r;r=function(e){var t;return t=e.lib.WordArray,e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var l=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)i.push(r.charAt(l>>>6*(3-a)&63));var s=r.charAt(64);if(s)for(;i.length%4;)i.push(s);return i.join("")},parse:function(e){var n=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var l=r.charAt(64);if(l){var a=e.indexOf(l);-1!==a&&(n=a)}return function(e,n,r){for(var i=[],o=0,l=0;l<n;l++)if(l%4){var a=r[e.charCodeAt(l-1)]<<l%4*2|r[e.charCodeAt(l)]>>>6-l%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return t.create(i,o)}(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
28+/="},e.enc.Base64},e.exports=r(n(19021))},63009:function(e,t,n){var r;r=function(e){var t,n,r,i,o,l,a,s,u;return t=Math,r=(n=e.lib).WordArray,i=n.Hasher,o=e.algo,l=[],a=[],function(){function e(e){return(e-(0|e))*0x100000000|0}for(var n=2,r=0;r<64;)(function(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0})(n)&&(r<8&&(l[r]=e(t.pow(n,.5))),a[r]=e(t.pow(n,1/3)),r++),n++}(),s=[],u=o.SHA256=i.extend({_doReset:function(){this._hash=new r.init(l.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],l=n[3],u=n[4],c=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)s[h]=0|e[t+h];else{var p=s[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=s[h-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;s[h]=m+s[h-7]+y+s[h-16]}var v=u&c^~u&f,b=r&i^r&o^i&o,k=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=d+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+v+a[h]+s[h],w=k+b;d=f,f=c,c=u,u=l+x|0,l=o,o=i,i=r,r=x+w|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+l|0,n[4]=n[4]+u|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=t.floor(r/0x100000000),n[(i+64>>>9<<4)+15]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA256=i._createHelper(u),e.HmacSHA256=i._createHmacHelper(u),e.SHA256},e.exports=r(n(19021))},62796:function(e,t,n){var r;r=function(e){"use strict";var t="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),n="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),r="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),i="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),o=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function l(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i=({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"})[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var a=function(e,r){return o.test(r)?t[e.month()]:n[e.month()]};a.s=n,a.f=t;var s=function(e,t){return o.test(t)?r[e.month()]:i[e.month()]};s.s=i,s.f=r;var u={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:a,monthsShort:s,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:l,mm:l,h:"час",hh:l,d:"день",dd:l,M:"месяц",MM:l,y:"год",yy:l},ordinal:function(e){return e},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(u,null,!0),u},e.exports=r(n(74353))},6279:function(e){var t;t=function(){return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,l,a){for(var s,u,c,f=o.$locale().relativeTime||i,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(s=l?n(t).diff(o,m.d,!0):o.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(s));if(c=s>0,g<=m.r||!m.r){g<=1&&p>0&&(m=d[p-1]);var y=f[m.l];a&&(g=a(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,m.l,c);break}}if(r)return u;var v=c?f.future:f.past;return"function"==typeof v?v(u):v.replace("%s",u)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var l=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(l(this),e)},r.fromNow=function(e){return this.from(l(this),e)}}},e.exports=t()},88569:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var o,l=function(e,n,r){void 0===r&&(r={});var i,o,l,a,s=new Date(e);return(void 0===(i=r)&&(i={}),(a=t[l=n+"|"+(o=i.timeZoneName||"short")])||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[l]=a),a).formatToParts(s)},a=function(t,n){for(var r=l(t,n),o=[],a=0;a<r.length;a+=1){var s=r[a],u=s.type,c=s.value,f=e[u];f>=0&&(o[f]=parseInt(c,10))}var d=o[3],h=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===d?0:d)+":"+o[4]+":"+o[5]+":000",p=+t;return(i.utc(h).valueOf()-(p-=p%1e3))/6e4},s=r.prototype;s.tz=function(e,t){void 0===e&&(e=o);
28var n,r=this.utcOffset(),l=this.toDate(),a=l.toLocaleString("en-US",{timeZone:e}),s=Math.round((l-new Date(a))/1e3/60),u=-(15*Math.round(l.getTimezoneOffset()/15))-s;if(Number(u)){if(n=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var c=n.utcOffset();n=n.add(r-c,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},s.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=l(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var u=s.startOf;s.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,l=n||t||o,s=a(+i(),l);if("string"!=typeof e)return i(e).tz(l);var u=function(e,t,n){var r=e-60*t*1e3,i=a(r,n);if(t===i)return[r,t];var o=a(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),s,l),c=u[0],f=u[1],d=i(c).utcOffset(f);return d.$x.$timezone=l,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}},e.exports=t()},83826:function(e){var t;t=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var l=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},l.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},l.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=l.parse;l.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var s=l.init;l.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else s.call(this)};var u=l.utcOffset;l.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],l=60*+i[1]+ +i[2];return 0===l?0:"+"===o?l:-l}(r)))return this;var l=16>=Math.abs(r)?60*r:r;if(0===l)return this.utc(i);var a=this.clone();if(i)return a.$offset=l,a.$u=!1,a;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(l+s,e)).$offset=l,a.$x.$localOffset=s,a};var c=l.format;l.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},l.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var f=l.toDate;l.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=l.diff;l.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),i=o(e).local();return d.call(r,i,t,n)}}},e.exports=t()},92849:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=s(f,n),f!==(i=s(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(f,{name:n,newValue:e(p,c,i)})):void 0!==i&&a(f,{name:n,newValue:i}));return f}},5077:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;
28\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,f=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:c,column:f};return function(t){return t.position=new p(e),g(r),t}}function p(e){this.start=e,this.end={line:c,column:f},this.source=s.source}function m(t){var n=Error(s.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=f,n.source=e,s.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return p.prototype.content=e,g(r),function(){var e,n=[];for(y(n);e=function(){var e=h(),n=g(i);if(n){if(v(),!g(o))return m("property missing ':'");var r=g(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(a),s}}();)!1!==e&&(n.push(e),y(n));return n}()}},13589:(e,t,n)=>{"use strict";n.d(t,{Z4:()=>R,i3:()=>$});var r,i=n(96540),o=n(40961);function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){var t=(0,i.useRef)(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var h="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function p(e){return parseFloat(e.replace("px",""))}function m(e,t,n){return e<t?t:e>n?n:e}function g(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=f(t);!(n=r()).done;){var i=n.value;i&&("function"==typeof i?i(e):i.current=e)}}}function y(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n   - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n   - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}var v=(0,i.createContext)({});function b(e){var t=e.children,n=e.registrations,r=(0,i.useCallback)(function(e){return n.current.add(e),function(){return n.current.delete(e)}},[n]);return(0,i.createElement)(v.Provider,{value:r},t)}var k={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},x=function(){function e(e,t,n,r,i,o,l,a,s){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=i,this.cssProp=o,this.oppositeCssProp=l,this.isCenter=a,this.isPush=s}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function w(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new x(e,t?w(k[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"to
28p":"left","center"===e,!["right","bottom"].includes(e))}var S={top:w("top"),bottom:w("bottom"),left:w("left"),right:w("right")},_=s({},S,{center:w("center")}),C=["top","left","bottom","right"],E=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw Error("Please provide at least 1 bounds objects in order to merge");for(var i,o=Object.fromEntries(C.map(function(e){return[e,n[e]]})),l=f(r);!(i=l()).done;)for(var a,s=i.value,u=f(C);!(a=u()).done;){var c=a.value;o[c]=Math.min(o[c],s[c])}return new e(o)},a(e,[{key:"allSidesArePositive",get:function(){var e=this;return C.every(function(t){return e[t]>=0})}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(C.filter(function(t){return e[t]<0}).map(function(t){return[t,e[t]]}))}}]),e}();function T(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return e+(t?p(t):0)},0)}function O(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var I={top:0,left:0,right:0,bottom:0,width:0,height:0},A=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,I,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,i=r.withTransform,o=r.environment,l=void 0===o?window:o,a=r.withScrollbars,u=new e(O(t.getBoundingClientRect()));if(!(void 0===i||i)){var c=l.getComputedStyle(t),f=c.width,d=c.height,h=c.boxSizing,m=c.borderLeft,g=c.borderRight,y=c.borderTop,v=c.borderBottom,b=c.paddingLeft,k=c.paddingRight,x=c.paddingTop,w=c.paddingBottom,S="border-box"===h?p(f):T(f,m,g,b,k),_="border-box"===h?p(d):T(d,y,v,x,w);u=new e(s({},u,{width:S,height:_}))}if(!(void 0===a||a)){var C=u.width-t.clientWidth,E=u.height-t.clientHeight;return u.substract({right:C,bottom:E})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n,r=null!=(n=null==t?void 0:t.document.scrollingElement)?n:null==t?void 0:t.document.documentElement,i=null!=r?r:{},o=i.clientWidth,l=void 0===o?0:o,a=i.clientHeight,s=void 0===a?0:a;return new e({width:l,height:s,right:l,bottom:s})};var t=e.prototype;return t.toObject=function(){return O(this)},t.merge=function(t){var n=this.toObject();return new e(s({},n,"function"==typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=Object.entries(t),i=0;i<r.length;i++){var o=r[i],l=o[0],a=o[1];if(l in S){var s=S[l];n[l]+=s.factor(a),n[s.isHorizontal?"width":"height"]-=a}else n[l]-=a||0}return new e(n)},t.offsetsTo=function(e){return new E({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=Object.values(S),i=0;i<r.length;i++){var o=r[i];n[o.prop]=t(o,n[o.prop])}return new e(n)},a(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),P=function(){function e(e,t,n,r,i){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=i,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(!t){this.subjectsBounds=e;return}var n="function"==typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:s({},e.layer,n)})},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,i=r.trigger,o=r.layer,l=r.arrow,a=t.isHorizontal,s=t.oppositeCssProp,u=t.oppositeSizeProp,c=t.prop,f=t.opposite,d=A.empty();d[f.prop]=i[c]-t.factor(this.offsets.trigger),d[c]=d[f.prop]-t.factor(o[t.sizeProp]);var h=2*this.offsets.arrow,p=i[s]-(o[u]-l[u])+h,g=i[s]+(i[u]-l[u])-h;if(n.isPush||(p+=o[u],g+=o[u]),n.isCenter){var y=(a?S.top:S.left).prop,v=(a?S.bottom:S.right).prop;d[y]=m(i[y]+i[u]/2-o[u]/2+e,p,g),d[v]=d[y]+o[u]}else{var b=i[n.prop],k=b<p?p-b:b>g?g-b:0;d[n.prop]=m(b+e+k,p,g),d[n.opposite.prop]=d[n.prop]+n.factor(o[u])}d.width=d.right-d.left,d.height=d.bottom-d.top;var x=A.create(d);return 0===e&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides(function(t,n){return n-t.factor(e)}).merge(function(t){return{width:t.width+2*e,height:t.height+2*e}})},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}
28),n=E.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},a(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this;return(null!=(e=null==(t=Object.entries(this.getContainerOffsets().negativeSides).map(function(e){var t=e[0],n=e[1];return[S[t],n]}).filter(function(e){var t=e[0];return n.primary.isOppositeDirection(t)}).sort(function(e,t){var n=e[1];return t[1]-n}))?void 0:t[0])?e:[])[0]||null}}]),e}(),D=function(e){function t(){return e.apply(this,arguments)||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u(t,e),t.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=A.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},t}(P),L={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},M=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t,n=e.split("-"),r=n[0],i=n[1],o=S[r];return t="center"===i?_.center:o.isHorizontal?"start"===i?_.top:_.bottom:"start"===i?_.left:_.right,[o,t]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function i(i){void 0===i&&(i=n.placement);var o=e.getSidesFromPlacementType(i),l=o[0],a=o[1],s=S[l.isHorizontal?n.preferY:n.preferX],u=!l.isHorizontal&&t.triggerHasBiggerWidth||l.isHorizontal&&t.triggerHasBiggerHeight;function c(e,i){return new P(e,i,t,n.layerDimensions,r)}var f=[];return f[0]=c(l,a),f[1]=c(l,a.isCenter?s:_.center),f[2]=c(l,_[(a.opposite.isCenter?s.opposite:a.opposite).prop]),f[3]=c(s,u?l:_[l.opposite.prop]),f[4]=c(s,_.center),f[5]=c(s,u?_[l.opposite.prop]:l),f[6]=c(S[s.opposite.prop],u?l:_[l.opposite.prop]),f[7]=c(S[s.opposite.prop],_.center),f[8]=c(S[s.opposite.prop],u?_[l.opposite.prop]:l),f[9]=c(S[l.opposite.prop],a),f[10]=c(S[l.opposite.prop],a.isCenter?s:_.center),f[11]=c(S[l.opposite.prop],_[(a.opposite.isCenter?s.opposite:a.opposite).prop]),f=f.filter(function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)})}return"center"===n.placement?new e([new D(_.center,_.center,t,n.layerDimensions,r)].concat(i(n.preferY+"-"+n.preferX)),n,t):new e(i(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter(function(t){return t.primary===e})},t.findFirstPlacementThatFits=function(){return this.placements.find(function(e){return e.fitsContainer})},t.placementWithBiggestVisibleSurface=function(){return this.placements.map(function(e){return{placement:e,surface:e.visibleSurface}}).sort(function(e,t){return t.surface-e.surface})[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t,n=this.config,r=n.auto,i=n.snap;if(!r||i||e instanceof D)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var l=o.find(function(e){return!e.fitsContainer});if(!l)return 0;var a=l.secondaryOffsetSide;if(!a)return 0;var s=e.getContainerOffsets(),u=e.secondary;return t=e.triggerIsBigger||l===e?a.isPush?-1:1:u===_.left||[_.top,_.center].includes(u)&&a.isPush?-1:1,s[a.prop]*t},t.getStyles=function(e,t,n,r){var i={willChange:"top, left, width, height"};return{arrow:function(e,t,n){if(t.primary.isCenter)return L;var r,i,o,l,a,u,c,f,d,h,p=e.layer,g=e.trigger,y=e.arrow,v=t.primary.oppositeSizeProp,b=g[v]>p[v],k=n+y[v]/2,x=p[v]-y[v]/2-n,w=(r=e.layer,i=e.trigger,o=e.arrow,l=t.primary.oppositeSizeProp,u=(a=t.primary.isHorizontal?["top","bottom"]:["left","right"])[0],c=a[1],((f=r[u]+r[l]/2-i[u]-o[l]/2-n)<0?-f:0)+((d=r[c]-r[l]/2-i[c]+o[l]/2+n)>0?-d:0)),S=t.primary.prop,_=t.primary.oppositeCssProp,C=b?p[v]/2+w:g[_]+g[v]/2-p[_];return s({},L,((h={})[S]="100%",h[_]=m(C,k,x),h))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset),layer:this.config.overflowContainer?s({}
vendor: 1,232 bytes, line 28
28,i,{position:"fixed",top:e.top,left:e.left}):s({},i,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=E.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some(function(e){var n=e[0];return e[1]<=-t[S[n].sizeProp]})?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),i=n.getLayerBounds(r);return{styles:this.getStyles(i,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:i,hasDisappeared:this.getHasDisappeared(i)}},e}(),N=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,i,o,l,a,s){var u=A.fromWindow(t);return new e({layer:A.fromElement(n,{environment:t,withTransform:!1}),trigger:s?A.create(O(s())):A.fromElement(r),arrow:o?A.fromElement(o):A.empty(),parent:i?A.fromElement(i):u,window:u,scrollC
28ontainers:[u].concat(l.map(function(e){return A.fromElement(e,{withScrollbars:!1})}))},a)};var t=e.prototype;return t.merge=function(t){return new e(s({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map(function(t){return t.offsetsTo(e)})},a(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),F={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0};function R(e){var t,n,r,l,a,u,c,m,k,x,w,S,_,C,E,T,O,I,A,P,D,L,R,V,j,B,H,U,$,W,Y,q,G,K,X,Z,Q,J,ee=e.isOpen,et=void 0!==ee&&ee,en=e.overflowContainer,er=void 0===en?F.overflowContainer:en,ei=e.environment,eo=void 0===ei?"undefined"!=typeof window?window:void 0:ei,el=e.ResizeObserver,ea=e.placement,es=void 0===ea?F.placement:ea,eu=e.possiblePlacements,ec=void 0===eu?F.possiblePlacements:eu,ef=e.preferX,ed=void 0===ef?F.preferX:ef,eh=e.preferY,ep=void 0===eh?F.preferY:eh,em=e.auto,eg=void 0===em?F.auto:em,ey=e.snap,ev=void 0===ey?F.snap:ey,eb=e.triggerOffset,ek=void 0===eb?F.triggerOffset:eb,ex=e.containerOffset,ew=void 0===ex?F.containerOffset:ex,eS=e.arrowOffset,e_=void 0===eS?F.arrowOffset:eS,eC=e.container,eE=void 0===eC?F.container:eC,eT=e.layerDimensions,eO=void 0===eT?null:eT,eI=e.onDisappear,eA=e.onOutsideClick,eP=e.onParentClose,eD=e.trigger,eL=(0,i.useState)(function(){return{layerSide:"center"===es?"center":M.getSidesFromPlacementType(es)[0].prop,styles:{layer:{position:er?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}}),eM=eL[0],eN=eL[1],eF=(0,i.useRef)(null),eR=(t=(0,i.useRef)(eM),et?t.current=eM:t.current=null,t),ez=(0,i.useRef)({cancelled:!1});(0,i.useEffect)(function(){return function(){ez.current.cancelled=!0}},[]);var eV=(0,i.useCallback)(function(e,t,n){var r=e.arrow,i=e.layer,o=e.scrollContainers,l=e.trigger,a=o[0],s=N.create(eo,i,l,a,r,o,er,null==eD?void 0:eD.getBounds),u=M.create(s,{placement:es,possiblePlacements:ec,auto:eg,layerDimensions:eO,arrowOffset:e_,containerOffset:ew,triggerOffset:ek,preferX:ed,preferY:ep,snap:ev,overflowContainer:er}).result(t,n),c=u.hasDisappeared,f={layerSide:u.layerSide,styles:u.styles};if(!eR.current||function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var i=r[n];if(e.styles.layer[i]!==t.styles.layer[i]||e.styles.arrow[i]!==t.styles.arrow[i])return!0}return!1}(eR.current,f)){eR.current=f,ez.current.cancelled=!0;var d={cancelled:!1};ez.current=d,Promise.resolve().then(function(){d.cancelled||eN(f)})}null!=c&&null!=eI&&eI(c)},[e_,eg,ew,eo,eO,eI,er,es,ec,ed,ep,ev,ek,eR,eD]),ej=(r=(n={ResizeObserverPolyfill:el,environment:eo,enabled:et,overflowContainer:er,onChange:eV,triggerOption:eD}).enabled,l=n.onChange,a=n.environment,u=n.ResizeObserverPolyfill,c=n.overflowContainer,m=n.triggerOption,k=function(e,t){if(void 0!==e)return t||e.ResizeObserver}(a,u),(0,i.useEffect)(function(){},[k]),x=(0,i.useRef)(null),w=!!m,E=(S={scrollContainers:[],trigger:null,layer:null},_=(0,i.useRef)(S),C=(0,i.useMemo)(function(){return[function(){return _.current},function(e){"function"==typeof e?_.current=e(_.current):_.current=e}]},[]))[0],T=C[1],A=(O=(0,i.useRef)([]),I=(0,i.useMemo)(function(){return{hasEventSubscriptions:function(){return O.current.length>0},removeAllEventSubscriptions:function(){for(var e,t=f(O.current);!(e=t()).done;)(0,e.value)();O.current=[]},addEventSubscription:function(e){O.current.push(e)}}},[])).hasEventSubscriptions,P=I.addEventSubscription,D=I.removeAllEventSubscriptions,L=(0,i.useCallback)(function(){var e=E(),t=e.layer,n=e.trigger,r=e.scrollC
28ontainers,i=r[0];if(!t)throw Error(y("layer"));if(!n&&!w)throw Error(y("trigger"));var o={top:0,left:0};if(i){var s=i.scrollLeft;o={top:i.scrollTop,left:s}}else{var u=a.scrollX;o={top:a.scrollY,left:u}}var c={left:0,top:0};if(i){var f=a.getComputedStyle(i),d=f.borderLeftWidth,h=f.borderTopWidth;c={left:p(d)||0,top:p(h)||0}}l({layer:t,trigger:n,scrollContainers:r,arrow:x.current},o,c)},[E,l,a,x,w]),R=(0,i.useCallback)(function(){var e=E(),t=e.trigger,n=e.layer,r=e.scrollContainers;if(!n)throw Error(y("layer"));if(!t&&!w)throw Error(y("trigger"));if(k){for(var i=!1,o=new k(function(){if(!i){i=!0;return}L()}),l=0,s=[t,n,document.body];l<s.length;l++){var u=s[l];u&&o.observe(u)}P(function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var i=r[e];i&&o.unobserve(i)}o.disconnect()})}for(var c,d=[a].concat(r),h=f(d);!(c=h()).done;)!function(){var e=c.value;e.addEventListener("scroll",L),P(function(){return e.removeEventListener("scroll",L)})}()},[E,P,L,a,k,w]),V=(0,i.useCallback)(function(e,t){r&&e&&e!==t&&(D(),R(),L())},[D,R,L,r]),j=d((0,i.useCallback)(function(e){var t=E().layer;T(function(t){return s({},t,{layer:e})}),V(t,e)},[E,T,V])),B=(0,i.useCallback)(function(e){var t=function e(t,n){var r=[];if(!t||!n||t===document.body)return r;var i=n.getComputedStyle(t);return[i.overflow,i.overflowX,i.overflowY].some(function(e){return["auto","scroll"].includes(e)})&&r.push(t),[].concat(r,e(t.parentElement,n))}(e,a),n=t[0];return n&&!(["relative","absolute","fixed"].includes(a.getComputedStyle(n).position)||c)&&(n.style.position="relative"),t},[a,c]),H=d((0,i.useCallback)(function(e){var t=B(e),n=E().trigger;T(function(n){return s({},n,{trigger:e,scrollContainers:t})}),V(n,e)},[E,T,V,B])),h(function(){U&&T(function(e){return s({},e,{scrollContainers:B(U)})})},[U=null==m?void 0:null==m.getParent?void 0:m.getParent(),T,B]),h(function(){return r&&!A()&&R(),function(){A()&&D()}},[r,A,R,D]),h(function(){r&&L()}),{triggerRef:H,layerRef:j,arrowRef:x,closestScrollContainer:E().scrollContainers[0]||null}),eB=ej.triggerRef,eH=ej.layerRef,eU=ej.arrowRef,e$=ej.closestScrollContainer,eW=(W=($={isOpen:et,onOutsideClick:eA,onParentClose:eP}).isOpen,Y=$.onOutsideClick,q=$.onParentClose,G=(0,i.useRef)(null),K=(0,i.useRef)(null),X=(0,i.useRef)(new Set),Z=(0,i.useContext)(v),Q=(0,i.useCallback)(function(e){var t=e.target,n=G.current&&G.current.contains(t),r=K.current&&K.current.contains(t),i=function(e,t){for(var n,r=f(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(X.current,e);return r&&i&&X.current.forEach(function(e){return(0,e.closeChild)()}),!n&&!r&&i},[G,K,X]),(0,i.useEffect)(function(){if("function"==typeof Z)return Z({shouldCloseWhenClickedOutside:Q,closeChild:function(){q&&q()}})},[Z,Q,q,X]),(0,i.useEffect)(function(){var e="function"==typeof Z;if(W&&Y&&!e)return document.addEventListener("click",t,!0),function(){return document.removeEventListener("click",t,!0)};function t(e){Q(e)&&Y()}},[W,Y,Q,Z]),(0,i.useEffect)(function(){W||X.current.forEach(function(e){return(0,e.closeChild)()})},[W]),{closeOnOutsideClickRefs:{trigger:G,layer:K},registrations:X}),eY=eW.closeOnOutsideClickRefs,eq=eW.registrations;return{triggerProps:eD?{}:{ref:g(eB,eY.trigger,eF)},layerProps:{ref:g(eH,eY.layer),style:eM.styles.layer},arrowProps:{ref:eU,style:eM.styles.arrow,layerSide:eM.layerSide},layerSide:eM.layerSide,triggerBounds:et?eD?eD.getBounds():null==(J=eF.current)?void 0:J.getBoundingClientRect():null,renderLayer:function(e){return"undefined"!=typeof document?(0,o.createPortal)((0,i.createElement)(b,{registrations:eq,children:e}),er||!e$?function(e){var t;if("function"==typeof e){if(!(t=e())||!(t instanceof HTMLElement))throw Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"==typeof e){if(!(t=document.getElementById(e)))throw Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else HTMLElement,(t=document.getElementById(z))||((t=document.createElement("div")).id=z,t.style.cssText="\n        position: absolute;\n        top: 0px;\n        left: 0px;\n        right: 0px;\n      ",document.body.appendChild(t));return t}(eE):e$):null}}}var z="layers",V=["size","angle","borderWidth","borderColor","roundness","backgroundColor","layerSide","style"],j="left",B="bottom",H="right";function U(e,t){return Math.tan(Math.PI/180*e)*t}var $=(0,i.forwardRef)(function(e,t){var n,r,o,l,a,u,c,f,d,h,p,m,g,y,v,b,k,x,w=e.size,_=void 0===w?8:w,C=e.angle,E=void 0===C?45:C,T=e.borderWidth,O=void 0===T?0:T,I=e.borderColor,A=e.roundness,P=e.backgroundColor,D=void 0===P?"white":P,L=e.layerSide,M=void 0===L?"top":L,N=e.style,F=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,V);if("center"===M)return null;var R=S[M],z=2*U(E,_),$=Math.max(_,z);return(0,i.createElement)("svg",s({ref:t},F,{style:s({},void 0===N?{}:N,{transform:"translate"+(R.isHorizontal?"Y":"X")+"(-50%)"}),width:$,height:$,preserveAspectRatio:R.isPush?"xMinYMin":"xMaxYMax",viewBox:((n={})[B]="0 "+-O+" "+z+" "+_,n.top="0 0 "+z+" "+(_+O),n[H]=-O+" 0 "+_+" "+z,n[j]="0 0 "+(_+O)+" "+z,n)[R.prop]}),(0,i.createElement)("path",{fill:D,strokeWidth:O,stroke:void 0===I?"black":I,d:(a=(void 0===A?0:A)/10*_*2,u=((r={})[B]=[0,_],r.top=[0,0],r[H]=[_,z],r[j]=[0,z],r)[R.prop].join(" "),c=R.isHorizontal?"V 0":"H "+z,f=z/2,d=z/2+U(E,_/8),h=_/8,p=((o={})[B]=["C",d,h,f+a,0,f,0],o.top=["C",d,_-h,f+a,_,f,_],o[H]=["C",h,z-d,0,f-a,0,f],o[j]=["C",_-h,z-d,_,f-a,_,f],o)[R.prop].join(" "),m=z/2-U(E,_/8),g=_/8,y=((l={})[B]=["C",f-a,0,m,g,u],l.top=["C",f-a,_,m,_-g,u],l[H]=["C",0,f+a,g,z-m,u],l[j]=["C",_,f+a,_-g,z-m,u],l)[R.prop].join(" "),["M",u,c,p,y].join(" "))}),(0,i.createElement)("path",{fill:D,d:(v=U(E,O),k=(b=R.isPush?[0,O]:[_,_-O])[0],x=b[1],R.isHorizontal?["M",k,O,"V",z-O,"L",x,z-O-v,"V",v+O,"Z"].join(" "):["M",O,k,"H",z-O,"L",z-O-v,x,"H",v+O,"Z"].join(" "))}))});!function(e){e[e.ENTERING=0]="ENTERING",e[e.LEAVING=1]="LEAVING",e[e.IDLE=2]="IDLE"}(r||(r={}))},35229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esMo
28dule?e:{default:e}})(n(51133)),i=n(98917);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},98917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(o,s)).replace(r,a))}},51133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(5077))},20373:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r,i=n(96540);let o=function(){if(void 0!==r)return r;var e=!1,t={get passive(){e=!0}},n=function(){};return window.addEventListener("t",n,t),window.removeEventListener("t",n,t),r=e,e};var l=i.useLayoutEffect,a=function(e){var t=i.useRef(e);return l(function(){t.current=e}),t},s="touchstart",u=["mousedown",s],c=function(e){if(e===s&&o())return{passive:!0}},f=document;function d(e,t,n){var r=(void 0===n?{}:n).document,o=void 0===r?f:r,l=a(t);(0,i.useEffect)(function(){if(t){var n=function(t){!e.current||!l.current||e.current.contains(t.target)||l.current(t)};return u.forEach(function(e){o.addEventListener(e,n,c(e))}),function(){u.forEach(function(e){o.removeEventListener(e,n)})}}},[!t])}},53110:(e,t,n)=>{"use strict";n.d(t,{F0:()=>f});let{Axios:r,AxiosError:i,CanceledError:o,isCancel:l,CancelToken:a,VERSION:s,all:u,Cancel:c,isAxiosError:f,spread:d,toFormData:h,AxiosHeaders:p,HttpStatusCode:m,formToJSON:g,getAdapter:y,mergeConfig:v,create:b}=n(52769).A},49785:(e,t,n)=>{"use strict";n.d(t,{Op:()=>R,mN:()=>eE,xI:()=>N});var r=n(96540),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,l=e=>null==e;let a=e=>"object"==typeof e;var s=e=>!l(e)&&!Array.isArray(e)&&a(e)&&!o(e),u=e=>s(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>t.split(".").some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join("."))),f=e=>{let t=e.constructor&&e.constructor.prototype;return s(t)&&t.hasOwnProperty("isPrototypeOf")},d="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){if(e instanceof Date)return new Date(e);let t="undefined"!=typeof FileList&&e instanceof FileList;if(d&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(s(e)&&f(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var p=e=>/^\w*$/.test(e),m=e=>void 0===e,g=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>g(e.replace(/["|']|\]/g,"").split(/\.|\[/)),v=(e,t,n)=>{if(!t||!s(e))return n;let r=(p(t)?[t]:y(t)).reduce((e,t)=>l(e)?void 0:e[t],e);return m(r)||r===e?m(e[t])?n:e[t]:r},b=e=>"boolean"==typeof e,k=e=>"function"==typeof e,x=(e,t,n)=>{let r=-1,i=p(t)?[t]:y(t),o=i.length,l=o-1;for(;++r<o;){let t=i[r],o=n;if(r!==l){let n=e[t];o=s(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};let w={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},_={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},C="form",E="root",T=r.createContext(null);T.displayName="HookFormControlContext";let O=()=>r.useContext(T);var I=(e,t,n,r=!0)=>{let i={};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==S.all&&(t._proxyFormState[o]=!r||S.all),n&&(n[o]=!0),e[o])});return i};let A="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var P=e=>"string"==typeof e,D=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),v(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),v(n,e))):(r&&(t.watchAll=!0),n),L=e=>l(e)||!a(e);function M(e,t,n=new WeakSet){if(e===t)return!0;
28if(L(e)||L(t))return Object.is(e,t);if(o(e)&&o(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;for(let i of(n.add(e),n.add(t),r)){let r=e[i];if(!(i in t))return!1;if("ref"!==i){let e=t[i];if(o(r)&&o(e)||(s(r)||Array.isArray(r))&&(s(e)||Array.isArray(e))?!M(r,e,n):!Object.is(r,e))return!1}}return!0}let N=e=>e.render(function(e){let t=O(),{name:n,disabled:i,control:o=t,shouldUnregister:l,defaultValue:a,exact:s=!0}=e,f=c(o._names.array,n),d=r.useMemo(()=>v(o._formValues,n,v(o._defaultValues,n,a)),[o,n,a]),p=function(e){let t=O(),{control:n=t,name:i,defaultValue:o,disabled:l,exact:a,compute:s}=e||{},u=r.useRef(o),c=r.useRef(s),f=r.useRef(void 0),d=r.useRef(n),h=r.useRef(i);c.current=s;let[p,m]=r.useState(()=>{let e=n._getWatch(i,u.current);return c.current?c.current(e):e}),g=r.useCallback(e=>{let t=D(i,n._names,e||n._formValues,!1,u.current);return c.current?c.current(t):t},[n._formValues,n._names,i]),y=r.useCallback(e=>{if(!l){let t=D(i,n._names,e||n._formValues,!1,u.current);if(c.current){let e=c.current(t);M(e,f.current)||(m(e),f.current=e)}else m(t)}},[n._formValues,n._names,l,i]);A(()=>(d.current===n&&M(h.current,i)||(d.current=n,h.current=i,y()),n._subscribe({name:i,formState:{values:!0},exact:a,callback:e=>{y(e.values)}})),[n,a,i,y]),r.useEffect(()=>n._removeUnmounted());let v=d.current!==n,b=h.current,k=r.useMemo(()=>{if(l)return null;let e=!v&&!M(b,i);return v||e?g():null},[l,v,i,b,g]);return null!==k?k:p}({control:o,name:n,defaultValue:d,exact:s}),g=function(e){let t=O(),{control:n=t,disabled:i,name:o,exact:l}=e||{},[a,s]=r.useState(()=>({...n._formState,defaultValues:n._defaultValues})),u=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return A(()=>n._subscribe({name:o,formState:u.current,exact:l,callback:e=>{i||s({...n._formState,...e,defaultValues:n._defaultValues})}}),[o,i,l]),r.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),r.useMemo(()=>I(a,n,u.current,!1),[a,n])}({control:o,name:n,exact:s}),y=r.useRef(e),S=r.useRef(o.register(n,{...e.rules,value:p,...b(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;let _=r.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!v(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!v(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!v(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!v(g.validatingFields,n)},error:{enumerable:!0,get:()=>v(g.errors,n)}}),[g,n]),C=r.useCallback(e=>S.current.onChange({target:{value:u(e),name:n},type:w.CHANGE}),[n]),E=r.useCallback(()=>S.current.onBlur({target:{value:v(o._formValues,n),name:n},type:w.BLUR}),[n,o._formValues]),T=r.useCallback(e=>{let t=v(o._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>k(e.focus)&&e.focus(),select:()=>k(e.select)&&e.select(),setCustomValidity:t=>k(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>k(e.reportValidity)&&e.reportValidity()})},[o._fields,n]),P=r.useMemo(()=>({name:n,value:p,...b(i)||g.disabled?{disabled:g.disabled||i}:{},onChange:C,onBlur:E,ref:T}),[n,i,g.disabled,C,E,T,p]);return r.useEffect(()=>{let e=o._options.shouldUnregister||l;o.register(n,{...y.current.rules,...b(y.current.disabled)?{disabled:y.current.disabled}:{}});let t=(e,t)=>{let n=v(o._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(v(o._options.defaultValues,n,y.current.defaultValue));x(o._defaultValues,n,e),m(v(o._formValues,n))&&x(o._formValues,n,e)}return f||o.register(n),()=>{(f?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}},[n,o,f,l]),r.useEffect(()=>{o._setDisabledField({disabled:i,name:n})},[i,n,o]),r.useMemo(()=>({field:P,formState:g,fieldState:_}),[P,g,_])}(e)),F=r.createContext(null);F.displayName="HookFormContext";let R=e=>{let{children:t,watch:n,getValues:i,getFieldState:o,setError:l,clearErrors:a,setValue:s,setValues:u,trigger:c,formState:f,resetField:d,reset:h,handleSubmit:p,unregister:m,control:g,register:y,setFocus:v,subscribe:b}=e,k=r.useMemo(()=>({watch:n,getValues:i,getFieldState:o,setError:l,clearErrors:a,setValue:s,setValues:u,trigger:c,formState:f,resetField:d,reset:h,handleSubmit:p,unregister:m,control:g,register:y,setFocus:v,subscribe:b}),[a,g,f,o,i,p,y,h,d,l,v,s,u,b,c,m,n]);return r.createElement(F.Provider,{value:k},r.createElement(T.Provider,{value:k.control},t))};var z=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},V=e=>Array.isArray(e)?e:[e],j=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},B=e=>s(e)&&!Object.keys(e).length,H=e=>"file"===e.type,U=e=>{if(!d)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$=e=>"select-multiple"===e.type,W=e=>"radio"===e.type,Y=e=>W(e)||i(e),q=e=>U(e)&&e.isConnected;function G(e,t){if(P(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:p(t)?[t]:y(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if(l(e)){e=void 0;break}e=e[t[r]],r++}return e}(e,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(s(r)&&B(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(r))&&G(e,n.slice(0,-1)),e}var K=e=>{for(let t in e)if(k(e[t]))return!0;return!1};function X(e){return Array.isArray(e)||s(e)&&!K(e)}function Z(e,t={}){for(let n in e){let r=e[n];X(r)?(t[n]=Array.isArray(r)?[]:{},Z(r,t[n])):m(r)||(t[n]=!0)}return t}function Q(e,t,n){for(let r in n||(n=Z(t)),e){let i=e[r];if(X(i))m(t)||L(n[r])?n[r]=Z(i,Array.isArray(i)?[]:{}):Q(i,l(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!M(i,e)}}return function e(t){if(!1!==t){if(!0===t)return!0;
28if(Array.isArray(t)){let n=t.map(t=>e(t));return n.some(e=>void 0!==e)?n:void 0}if(s(t)){let n={};for(let r in t){let i=e(t[r]);m(i)||(n[r]=i)}return Object.keys(n).length?n:void 0}}}(n)||{}}let J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var et=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J},en=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>m(e)?e:t?""===e?NaN:e?+e:e:n&&P(e)?new Date(e):r?r(e):e;let er={isValid:!1,value:null};var ei=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,er):er;function eo(e){let t=e.ref;return H(t)?t.files:W(t)?ei(e.refs).value:$(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?et(e.refs).value:en(m(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=v(t,n);e&&x(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ea=e=>e instanceof RegExp,es=e=>m(e)?e:ea(e)?e.source:s(e)?ea(e.value)?e.value.source:e.value:e,eu=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched});let ec="AsyncFunction";var ef=e=>!!e&&!!e.validate&&!!(k(e.validate)&&e.validate.constructor.name===ec||s(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===ec)),ed=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),eh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let ep=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=v(e,i);if(n){let{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(ep(o,t))break}else if(s(o)&&ep(o,t))break}}};function em(e,t,n){let r=v(e,n);if(r||p(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=v(t,r),l=v(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(l&&l.type)return{name:r,error:l};if(l&&l.root&&l.root.type)return{name:`${r}.root`,error:l.root};i.pop()}return{name:n}}var eg=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return B(o)||r&&Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||S.all))},ey=(e,t,n)=>!e||!t||e===t||V(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),ev=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eb=(e,t)=>!g(v(e,t)).length&&G(e,t),ek=(e,t,n)=>{let r=V(v(e,n));return x(r,E,t[n]),x(e,n,r),e};function ex(e,t,n="validate"){if(P(e)||Array.isArray(e)&&e.every(P)||b(e)&&!e)return{type:n,message:P(e)?e:"",ref:t}}var ew=e=>s(e)&&!ea(e)?e:{value:e,message:""},eS=async(e,t,n,r,o,a)=>{let{ref:u,refs:c,required:f,maxLength:d,minLength:h,min:p,max:g,pattern:y,validate:x,name:w,valueAsNumber:S,mount:C}=e._f,E=v(n,w);if(!C||t.has(w))return{};let T=c?c[0]:u,O=e=>{o&&T.reportValidity&&(T.setCustomValidity(b(e)?"":e||""),T.reportValidity())},I={},A=W(u),D=i(u),L=(S||H(u))&&m(u.value)&&m(E)||U(u)&&""===u.value||""===E||Array.isArray(E)&&!E.length||S&&"number"==typeof E&&isNaN(E),M=z.bind(null,w,r,I),N=(e,t,n,r=_.maxLength,i=_.minLength)=>{let o=e?t:n;I[w]={type:e?r:i,message:o,ref:u,...M(e?r:i,o)}};if(a?!Array.isArray(E)||!E.length:f&&(!(A||D)&&(L||l(E))||b(E)&&!E||D&&!et(c).isValid||A&&!ei(c).isValid)){let{value:e,message:t}=P(f)?{value:!!f,message:f}:ew(f);if(e&&(I[w]={type:_.required,message:t,ref:T,...M(_.required,t)},!r))return O(t),I}if(!L&&(!l(p)||!l(g))){let e,t;let n=ew(g),i=ew(p);if(l(E)||isNaN(E)){let r=u.valueAsDate||new Date(E),o=e=>new Date(new Date().toDateString()+" "+e),l="time"==u.type,a="week"==u.type;P(n.value)&&E&&(e=l?o(E)>o(n.value):a?E>n.value:r>new Date(n.value)),P(i.value)&&E&&(t=l?o(E)<o(i.value):a?E<i.value:r<new Date(i.value))}else{let r=u.valueAsNumber||(E?+E:E);l(n.value)||(e=r>n.value),l(i.value)||(t=r<i.value)}if((e||t)&&(N(!!e,n.message,i.message,_.max,_.min),!r))return O(I[w].message),I}if((d||h)&&!L&&(P(E)||a&&Array.isArray(E))){let e=ew(d),t=ew(h),n=!l(e.value)&&E.length>+e.value,i=!l(t.value)&&E.length<+t.value;if((n||i)&&(N(n,e.message,t.message),!r))return O(I[w].message),I}if(y&&!L&&P(E)){let{value:e,message:t}=ew(y);if(ea(e)&&!E.match(e)&&(I[w]={type:_.pattern,message:t,ref:u,...M(_.pattern,t)},!r))return O(t),I}if(x){if(k(x)){let e=ex(await x(E,n),T);if(e&&(I[w]={...e,...M(_.validate,e.message)},!r))return O(e.message),I}else if(s(x)){let e={};for(let t in x){if(!B(e)&&!r)break;let i=ex(await x[t](E,n),T,t);i&&(e={...i,...M(t,i.message)},O(i.message),r&&(I[w]=e))}if(!B(e)&&(I[w]={ref:T,...e},!r))return I}}return O(!0),I}
28;let e_={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0},eC={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function eE(e={}){let t=r.useRef(void 0),n=r.useRef(void 0),[a,f]=r.useState(()=>({...h(eC),isLoading:k(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:k(e.defaultValues)?void 0:e.defaultValues}));if(!t.current){if(e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!k(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=function(e={}){let t,n={...e_,...e},r={...h(eC),isLoading:k(n.defaultValues),errors:n.errors||{},disabled:n.disabled||!1},a={},f=(s(n.defaultValues)||s(n.values))&&h(n.defaultValues||n.values)||{},p=n.shouldUnregister?{}:h(f),y={action:!1,mount:!1,watch:!1,keepIsValid:!1},T={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},O=0,I={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={...I},L={...A},N={array:j(),state:j()},F=n.criteriaMode===S.all,R=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},z=async e=>{if(!y.keepIsValid&&!n.disabled&&(A.isValid||L.isValid||e)){let e;n.resolver?(e=B((await et()).errors),W()):e=await ea({fields:a,onlyCheckValid:!0,eventType:w.VALID}),e!==r.isValid&&N.state.next({isValid:e})}},W=(e,t)=>{!n.disabled&&(A.isValidating||A.validatingFields||L.isValidating||L.validatingFields)&&((e||Array.from(T.mount)).forEach(e=>{e&&(t?x(r.validatingFields,e,t):G(r.validatingFields,e))}),N.state.next({validatingFields:r.validatingFields,isValidating:!B(r.validatingFields)}))},K=()=>{r.dirtyFields=Q(f,p)},X=(e,t)=>{x(r.errors,e,t),N.state.next({errors:r.errors})},Z=(e,t,n,i)=>{let o=v(a,e);if(o){let l=m(v(p,e)),a=v(p,e,m(n)?v(f,e):n);m(a)||i&&i.defaultChecked||t?x(p,e,t?a:eo(o._f)):ew(e,a),y.mount&&!y.action&&(z(),l&&r.isDirty&&(A.isDirty||L.isDirty)&&!ec()&&(r.isDirty=!1,N.state.next({...r})))}},J=(e,t,i,o,l)=>{let a=!1,s=!1,u={name:e};if(!n.disabled){if(!i||o){(A.isDirty||L.isDirty)&&(s=r.isDirty,r.isDirty=u.isDirty=ec(),a=s!==u.isDirty);let n=M(v(f,e),t);s=!!v(r.dirtyFields,e),n?G(r.dirtyFields,e):x(r.dirtyFields,e,!0),u.dirtyFields=r.dirtyFields,a=a||(A.dirtyFields||L.dirtyFields)&&!n!==s}if(i){let t=v(r.touchedFields,e);t||(x(r.touchedFields,e,i),u.touchedFields=r.touchedFields,a=a||(A.touchedFields||L.touchedFields)&&t!==i)}a&&l&&N.state.next(u)}return a?u:{}},ee=(e,i,o,l)=>{let a=v(r.errors,e),s=(A.isValid||L.isValid)&&b(i)&&r.isValid!==i;if(n.delayError&&o?(t=R(()=>X(e,o)))(n.delayError):(clearTimeout(O),t=null,o?x(r.errors,e,o):G(r.errors,e)),(o?!M(a,o):a)||!B(l)||s){let t={...l,...s&&b(i)?{isValid:i}:{},errors:r.errors,name:e};r={...r,...t},N.state.next(t)}},et=async e=>(W(e,!0),await n.resolver(p,n.context,el(e||T.mount,a,n.criteriaMode,n.shouldUseNativeValidation))),er=async e=>{let{errors:t}=await et(e);if(W(e),e)for(let n of e){let e=v(t,n);e?x(r.errors,n,e):G(r.errors,n)}else r.errors=t;return t},ei=async({name:t,eventType:n})=>{if(e.validate){let i=await e.validate({formValues:p,formState:r,name:t,eventType:n});if(s(i))for(let e in i)i[e]&&eM(`${C}.${e}`,{message:P(i.message)?i.message:"",type:_.validate});else P(i)||!i?eM(C,{message:i||"",type:_.validate}):eL(C);return i}return!0},ea=async({fields:t,onlyCheckValid:i,name:o,eventType:l,context:a={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(a.runRootValidation=!0,!await ei({name:o,eventType:l})&&(a.valid=!1,i)))return a.valid;for(let o in t){let s=t[o];if(s){let{_f:t,...u}=s;if(t){let o=T.array.has(t.name),l=s._f&&ef(s._f);l&&A.validatingFields&&W([t.name],!0);let u=await eS(s,T.disabled,p,F,n.shouldUseNativeValidation&&!i,o);if(l&&A.validatingFields&&W([t.name]),u[t.name]&&(a.valid=!1,i)||(i||(v(u,t.name)?o?ek(r.errors,u,t.name):x(r.errors,t.name,u[t.name]):G(r.errors,t.name)),e.shouldUseNativeValidation&&u[t.name]))break}B(u)||await ea({context:a,onlyCheckValid:i,fields:u,name:o,eventType:l})}}return a.valid},ec=(e,t)=>!n.disabled&&(e&&t&&x(p,e,t),!M(eP(),f)),ex=(e,t,n)=>D(e,T,{...y.mount?p:m(t)?f:P(e)?{[e]:t}:t},n,t),ew=(e,t,n={})=>{let r=v(a,e),o=t;if(r){let n=r._f;n&&(n.disabled||x(p,e,en(t,n)),o=U(n.ref)&&l(t)?"":t,$(n.ref)?[...n.ref.options].forEac
28h(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):H(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||N.state.next({name:e,values:h(p)})))}(n.shouldDirty||n.shouldTouch)&&J(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&eA(e)},eE=(e,t,n)=>{for(let r in t){if(!t.hasOwnProperty(r))return;let i=t[r],l=e+"."+r,u=v(a,l);(T.array.has(e)||s(i)||u&&!u._f)&&!o(i)?eE(l,i,n):ew(l,i,n)}},eT=(e,t,n={})=>{let i=v(a,e),o=T.array.has(e),s=h(t),u=M(v(p,e),s);if(x(p,e,s),o)N.array.next({name:e,values:h(p)}),(A.isDirty||A.dirtyFields||L.isDirty||L.dirtyFields)&&n.shouldDirty&&(K(),N.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:ec(e,s)}));else{let t=Array.isArray(s)&&!s.length||B(s);!i||i._f||l(s)||t?ew(e,s,n):eE(e,s,n)}if(!u){let t=eh(e,T);N.state.next({...t&&r,name:y.mount||t?e:void 0,values:h(p)})}},eO=async i=>{y.mount=!0;let l=i.target,s=l.name,c=!0,f=v(a,s),d=e=>{c=Number.isNaN(e)||o(e)&&isNaN(e.getTime())||M(e,v(p,s,e))},m=eu(n.mode),g=eu(n.reValidateMode);if(f){let o,y;let b=l.type?eo(f._f):u(i),k=i.type===w.BLUR||i.type===w.FOCUS_OUT,S=!ed(f._f)&&!e.validate&&!n.resolver&&!v(r.errors,s)&&!f._f.deps||ev(k,v(r.touchedFields,s),r.isSubmitted,g,m),_=eh(s,T,k);x(p,s,b),k?l&&l.readOnly||(f._f.onBlur&&f._f.onBlur(i),t&&t(0)):f._f.onChange&&f._f.onChange(i);let C=J(s,b,k),E=!B(C)||_;if(k||N.state.next({name:s,type:i.type,values:h(p)}),S)return(A.isValid||L.isValid)&&("onBlur"===n.mode?k&&z():k||z()),E&&N.state.next({name:s,..._?{}:C});if(!n.resolver&&e.validate&&await ei({name:s,eventType:i.type}),!k&&_&&N.state.next({...r}),n.resolver){let{errors:e}=await et([s]);if(W([s]),d(b),c){let t=em(r.errors,a,s),n=em(e,a,t.name||s);o=n.error,s=n.name,y=B(e)}}else W([s],!0),o=(await eS(f,T.disabled,p,F,n.shouldUseNativeValidation))[s],W([s]),d(b),c&&(o?y=!1:(A.isValid||L.isValid)&&(y=await ea({fields:a,onlyCheckValid:!0,name:s,eventType:i.type})));c&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&eA(f._f.deps),ee(s,y,o,C))}},eI=(e,t)=>{if(v(r.errors,t)&&e.focus)return e.focus(),1},eA=async(e,t={})=>{let i,o;let l=V(e);if(n.resolver){let t=await er(m(e)?e:l);i=B(t),o=e?!l.some(e=>v(t,e)):i}else e?((o=(await Promise.all(l.map(async e=>{let t=v(a,e);return await ea({fields:t&&t._f?{[e]:t}:t,eventType:w.TRIGGER})}))).every(Boolean))||r.isValid)&&z():o=i=await ea({fields:a,name:e,eventType:w.TRIGGER});return N.state.next({...!P(e)||(A.isValid||L.isValid)&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!o&&ep(a,eI,e?l:T.mount),o},eP=(e,t)=>{let n={...y.mount?p:f};return t&&(n=function e(t,n){let r={};for(let i in t)if(t.hasOwnProperty(i)){let o=t[i],l=n[i];if(o&&s(o)&&l){let t=e(o,l);s(t)&&(r[i]=t)}else t[i]&&(r[i]=l)}return r}(t.dirtyFields?r.dirtyFields:r.touchedFields,n)),m(e)?n:P(e)?v(n,e):e.map(e=>v(n,e))},eD=(e,t)=>({invalid:!!v((t||r).errors,e),isDirty:!!v((t||r).dirtyFields,e),error:v((t||r).errors,e),isValidating:!!v(r.validatingFields,e),isTouched:!!v((t||r).touchedFields,e)}),eL=e=>{let t=e?V(e):void 0;null==t||t.forEach(e=>G(r.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:r.errors})}):N.state.next({errors:{}})},eM=(e,t,n)=>{let i=(v(a,e,{_f:{}})._f||{}).ref,{ref:o,message:l,type:s,...u}=v(r.errors,e)||{};x(r.errors,e,{...u,...t,ref:i}),N.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},eN=e=>N.state.subscribe({next:t=>{if(ey(e.name,t.name,e.exact)&&eg(t,e.formState||A,eU,e.reRenderRoot)){let n={...p};e.callback({values:n,...r,...t,defaultValues:f})}}}).unsubscribe,eF=(e,t={})=>{for(let i of e?V(e):T.mount)T.mount.delete(i),T.array.delete(i),t.keepValue||(G(a,i),G(p,i)),t.keepError||G(r.errors,i),t.keepDirty||G(r.dirtyFields,i),t.keepTouched||G(r.touchedFields,i),t.keepIsValidating||G(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||G(f,i);N.state.next({values:h(p)}),N.state.next({...r,...t.keepDirty?{isDirty:ec()}:{}}),t.keepIsValid||z()},eR=({disabled:e,name:t})=>{if(b(e)&&y.mount||e||T.disabled.has(t)){let n=T.disabled.has(t),r=!!e;e?T.disabled.add(t):T.disabled.delete(t),n!==r&&y.mount&&!y.action&&z()}},ez=(e,t={})=>{let r=v(a,e),i=b(t.disabled)||b(n.disabled),o=!T.registerName.has(e)&&r&&r._f&&!r._f.mount;return x(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),T.mount.add(e),r&&!o?eR({disabled:b(t.disabled)?t.disabled:n.disabled,name:e}):Z(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:es(t.min),max:es(t.max),minLength:es(t.minLength),maxLength:es(t.maxLength),pattern:es(t.pattern)}:{}
28,name:e,onChange:eO,onBlur:eO,ref:i=>{if(i){T.registerName.add(e),ez(e,t),T.registerName.delete(e),r=v(a,e);let n=m(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=Y(n),l=r._f.refs||[];(o?l.find(e=>e===n):n===r._f.ref)||(x(a,e,{_f:{...r._f,...o?{refs:[...l.filter(q),n,...Array.isArray(v(f,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),Z(e,!1,void 0,n))}else(r=v(a,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(c(T.array,e)&&y.action)&&T.unMount.add(e)}}},eV=()=>n.shouldFocusError&&ep(a,eI,T.mount),ej=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let l=h(p);if(N.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await et();W(),r.errors=e,l=h(t)}else await ea({fields:a,eventType:w.SUBMIT});if(T.disabled.size)for(let e of T.disabled)G(l,e);if(G(r.errors,E),B(r.errors)){N.state.next({errors:{}});try{await e(l,i)}catch(e){o=e}}else t&&await t({...r.errors},i),eV(),setTimeout(eV);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(r.errors)&&!o,submitCount:r.submitCount+1,errors:r.errors}),o)throw o},eB=(e,t={})=>{let i=e?h(e):f,o=h(i),l=B(e),s=l?f:o;if(t.keepDefaultValues||(f=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...T.mount,...Object.keys(Q(f,p))]))){let t=v(r.dirtyFields,e),n=v(p,e),i=v(s,e);t&&!m(n)?x(s,e,n):t||m(i)||eT(e,i)}else{if(d&&m(e))for(let e of T.mount){let t=v(a,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(U(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of T.mount)eT(e,v(s,e));else a={}}p=n.shouldUnregister?t.keepDefaultValues?h(f):{}:h(s),N.array.next({values:{...s}}),N.state.next({values:{...s}})}T={mount:t.keepDirtyValues?T.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},y.mount=!A.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!n.shouldUnregister&&!B(s),y.watch=!!n.shouldUnregister,y.keepIsValid=!!t.keepIsValid,y.action=!1,t.keepErrors||(r.errors={}),N.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!l&&(t.keepDirty?r.isDirty:!!(t.keepDefaultValues&&!M(e,f))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:l?{}:t.keepDirtyValues?t.keepDefaultValues&&p?Q(f,p):r.dirtyFields:t.keepDefaultValues&&e?Q(f,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1,defaultValues:f})},eH=(e,t)=>eB(k(e)?e(p):e,{...n.resetOptions,...t}),eU=e=>{r={...r,...e}},e$={control:{register:ez,unregister:eF,getFieldState:eD,handleSubmit:ej,setError:eM,_subscribe:eN,_runSchema:et,_updateIsValidating:W,_focusError:eV,_getWatch:ex,_getDirty:ec,_setValid:z,_setFieldArray:(e,t=[],i,o,l=!0,s=!0)=>{if(o&&i&&!n.disabled){if(y.action=!0,s&&Array.isArray(v(a,e))){let t=i(v(a,e),o.argA,o.argB);l&&x(a,e,t)}if(s&&Array.isArray(v(r.errors,e))){let t=i(v(r.errors,e),o.argA,o.argB);l&&x(r.errors,e,t),eb(r.errors,e)}if((A.touchedFields||L.touchedFields)&&s&&Array.isArray(v(r.touchedFields,e))){let t=i(v(r.touchedFields,e),o.argA,o.argB);l&&x(r.touchedFields,e,t)}(A.dirtyFields||L.dirtyFields)&&K(),N.state.next({name:e,isDirty:ec(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else x(p,e,t)},_setDisabledField:eR,_setErrors:e=>{r.errors=e,N.state.next({errors:r.errors,isValid:!1})},_getFieldArray:e=>g(v(y.mount?p:f,e,n.shouldUnregister?v(f,e,[]):[])),_reset:eB,_resetDefaultValues:()=>k(n.defaultValues)&&n.defaultValues().then(e=>{eH(e,n.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of T.unMount){let t=v(a,e);t&&(t._f.refs?t._f.refs.every(e=>!q(e)):!q(t._f.ref))&&eF(e)}T.unMount=new Set},_disableForm:e=>{b(e)&&(N.state.next({disabled:e}),ep(a,(t,n)=>{let r=v(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:N,_proxyFormState:A,get _fields(){return a},get _formValues(){return p},get _state(){return y},set _state(value){y=value},get _defaultValues(){return f},get _names(){return T},set _names(value){T=value},get _formState(){return r},get _options(){return n},set _options(value){n={...n,...value}}},subscribe:e=>(y.mount=!0,L={...L,...e.formState},eN({...e,formState:{...I,...e.formState}})),trigger:eA,register:ez,handleSubmit:ej,watch:(e,t)=>k(e)?N.state.subscribe({next:n=>"values"in n&&e(n.values||ex(void 0,t),n)}):ex(e,t,!0),setValue:eT,setValues:e=>{let t=k(e)?e(p):e;M(p,t)||(p={...p,...t},N.state.next({...r,values:p}))},getValues:eP,reset:eH,resetField:(e,t={})=>{v(a,e)&&(m(t.defaultValue)?eT(e,h(v(f,e))):(eT(e,t.defaultValue),x(f,e,h(t.defaultValue))),t.keepTouched||G(r.touchedFields,e),t.keepDirty||(G(r.dirtyFields,e),r.isDirty=t.defaultValue?ec(e,h(v(f,e))):ec()),!t.keepError&&(G(r.errors,e),A.isValid&&z()),N.state.next({...r}))},clearErrors:eL,unregister:eF,setError:eM,setFocus:(e,t={})=>{let n=v(a,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&k(e.select)&&e.select()})}},getFieldState:eD};return{...e$,formControl:e$}}(e);t.current={...r,formState:a}}}let p=t.current.control;return p._options=e,A(()=>{let e=p._subscribe({formState:p._proxyFormState,callback:()=>f({...p._formState}
28),reRenderRoot:!0});return f(e=>({...e,isReady:!0})),p._formState.isReady=!0,e},[p]),r.useEffect(()=>p._disableForm(e.disabled),[p,e.disabled]),r.useEffect(()=>{e.mode&&(p._options.mode=e.mode),e.reValidateMode&&(p._options.reValidateMode=e.reValidateMode)},[p,e.mode,e.reValidateMode]),r.useEffect(()=>{e.errors&&(p._setErrors(e.errors),p._focusError())},[p,e.errors]),r.useEffect(()=>{e.shouldUnregister&&p._subjects.state.next({values:p._getWatch()})},[p,e.shouldUnregister]),r.useEffect(()=>{if(p._proxyFormState.isDirty){let e=p._getDirty();e!==a.isDirty&&p._subjects.state.next({isDirty:e})}},[p,a.isDirty]),r.useEffect(()=>{var t;e.values&&!M(e.values,n.current)?(p._reset(e.values,{keepFieldsRef:!0,...p._options.resetOptions}),(null===(t=p._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||p._setValid(),n.current=e.values,f(e=>({...e}))):p._resetDefaultValues()},[p,e.values]),r.useEffect(()=>{p._state.mount||(p._setValid(),p._state.mount=!0),p._state.watch&&(p._state.watch=!1,p._subjects.state.next({...p._formState})),p._removeUnmounted()}),t.current.formState=r.useMemo(()=>I(a,p),[p,a]),t.current}},60509:(e,t,n)=>{"use strict";n.d(t,{oz:()=>nP});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>w,commaSeparated:()=>x,number:()=>b,overloadedBoolean:()=>v,spaceSeparated:()=>k});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tT,contentInitial:()=>tx,disable:()=>tO,document:()=>tk,flow:()=>tS,flowInitial:()=>tw,insideSpan:()=>tE,string:()=>t_,text:()=>tC});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function s(e,t){return((t||a).jsx?l:o).test(e)}let u=/[ \t\n\f\r]/g;function c(e){return""===e.replace(u,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function d(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function h(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class p{constructor(e,t){this.attribute=t,this.property=e}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let m=0,g=S(),y=S(),v=S(),b=S(),k=S(),x=S(),w=S();function S(){return 2**++m}let _=Object.keys(r);class C extends p{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o<_.length;){let e=_[o];!function(e,t,n){n&&(e[t]=n)}(this,_[o],(n&r[e])===r[e])}}}function E(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new C(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[h(r)]=r,n[h(o.attribute)]=r}return new f(t,n,e.space)}C.prototype.defined=!0;let T=E({properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:y,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:k,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:b,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:k,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:y,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function O(e,t){return t in e?e[t]:t}function I(e,t){return O(e,t.toLowerCase())}let A=E({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:k,autoFocus:g,autoPlay:g,blocking:k,capture:null,charSet:null,checked:g,cite:null,className:k,cols:b,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:k,coords:b|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:k,height:b,hidden:v,high:b,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:k,itemRef:k,itemScope:g,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxCl
28ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:b,pattern:null,ping:k,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:k,required:g,reversed:g,rows:b,rowSpan:b,sandbox:k,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:I}),P=E({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav
28-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:w,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:b,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
28Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O}),D=E({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),L=E({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:I}),M=E({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),N=d([T,A,D,L,M],"html"),F=d([T,P,D,L,M],"svg"),R=/[A-Z]/g,z=/-[a-z]/g,V=/^data[-\w.:]+$/i;function j(e){return"-"+e.toLowerCase()}function B(e){return e.charAt(1).toUpperCase()}let H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var U=n(35229);let $=Y("end"),W=Y("start");function Y(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function q(e){return e&&"object"==typeof e?"position"in e||"type"in e?K(e.position):"start"in e||"end"in e?K(e):"line"in e||"column"in e?G(e):"":""}function G(e){return X(e&&e.line)+":"+X(e&&e.column)}function K(e){return G(e&&e.start)+"-"+G(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}
28class Z extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=q(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z.prototype.file="",Z.prototype.name="",Z.prototype.reason="",Z.prototype.message="",Z.prototype.stack="",Z.prototype.column=void 0,Z.prototype.line=void 0,Z.prototype.ancestors=void 0,Z.prototype.cause=void 0,Z.prototype.fatal=void 0,Z.prototype.place=void 0,Z.prototype.ruleId=void 0,Z.prototype.source=void 0;let Q={}.hasOwnProperty,J=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=F,e.schema=i),e.ancestors.push(t);let o=es(e,t.tagName,!1),l=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&Q.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=h(t),r=t,i=p;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&V.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(z,B);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!z.test(e)){let n=e.replace(R,j);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=C}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return U(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Z("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)Q.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&en.has(t.tagName)?n=l:i[r]=l}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),a=ea(e,t);return et.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),eo(e,l,o,t),el(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eu(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=F,e.schema=i),e.ancestors.push(t);let o=null===t.name?e.Fragment:es(e,t.name,!0),l=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else eu(e,t.position)}else{let i;let o=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eu(e,t.position)}else i=null===r.value||r.value;n[o]=i}return n}(e,t),a=ea(e,t);return eo(e,l,o,t),el(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}
28(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return el(r,ea(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function el(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:J;for(;++r<t.children.length;){let o;let l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=ei(e,l,o);void 0!==a&&n.push(a)}return n}function es(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=s(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=s(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return Q.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eu(e)}function eu(e,t){let n=new Z("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ec(e){return"-"+e.toLowerCase()}let ef={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ed=n(74848);n(96540);let eh={};function ep(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return em(e.children,t,n)}return Array.isArray(e)?em(e,t,n):""}function em(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ep(e[i],t,n);return r.join("")}function eg(e,t,n,r){let i;let o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function ey(e,t){return e.length>0?(eg(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&eb(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),eb(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eb(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);eb(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);eb(this.left,t.reverse())}}}}function eb(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ek(e){let t,n,r,i,o,l,a;let s={},u=-1,c=new ev(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let i=e.get(t)[1],o=e.get(t)[2],l=t-1,a=[],s=i._tokenizer;!s&&(s=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._c
28ontentTypeTextTrailing=!0));let u=s.events,c=[],f={},d=-1,h=i,p=0,m=0,g=[0];for(;h;){for(;e.get(++l)[1]!==h;);a.push(l),!h._tokenizer&&(n=o.sliceStream(h),h.next||n.push(null),r&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(m=d+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){let t=u.slice(g[d],g[d+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)f[p+c[d][0]]=p+c[d][1],p+=c[d][1]-c[d][0]-1;return f}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return eg(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}let ex={}.hasOwnProperty,ew=eM(/[A-Za-z]/),eS=eM(/[\dA-Za-z]/),e_=eM(/[#-'*+\--9=?A-Z^-~]/);function eC(e){return null!==e&&(e<32||127===e)}let eE=eM(/\d/),eT=eM(/[\dA-Fa-f]/),eO=eM(/[!-/:-@[-`{-~]/);function eI(e){return null!==e&&e<-2}function eA(e){return null!==e&&(e<0||32===e)}function eP(e){return -2===e||-1===e||32===e}let eD=eM(/\p{P}|\p{S}/u),eL=eM(/\s/);function eM(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eN(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){return eP(r)?(e.enter(n),function r(l){return eP(l)&&o++<i?(e.consume(l),r):(e.exit(n),t(l))}(r)):t(r)}}let eF={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eI(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eR={tokenize:function(e){let t,n,r;let i=this,o=[],l=0;return a;function a(t){if(l<o.length){let n=o[l];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(l++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(l);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return eg(i.events,o+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(l===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(ez,c,f)(n)}function c(e){return t&&y(),g(l),d(e)}function f(e){return i.parser.lazy[i.now().line]=l!==o.length,r=i.now().offset,p(e)}function d(t){return i.containerState={},e.attempt(ez,h,p)(t)}function h(e){return l++,o.push([i.currentConstruct,i.containerState]),d(e)}function p(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eI(n)?(e.consume(n),m(e.exit("chunkFlow")),l=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,o){let a=i.sliceStream(e);if(o&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(g(l),o=a;o<i.events.length;)i.events[o][1].end={...n},o++;eg(i.events,s+1,0,i.events.slice(a)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},ez={tokenize:function(e,t,n){return eN(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eV={partial:!0,tokenize:function(e,t,n){return function(t){return eP(t)?eN(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eI(e)?t(e):n(e)}}},ej={resolve:function(e){return ek(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eI(t)?e.check(eB,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eB={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,i,"linePrefix")};function i(i){if(null===i||eI(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eH={tokenize:function(e){let t=this,n=e.attempt(eV,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,eN(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ej,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eU={resolveAll:eq()},e$=eY("string"),eW=eY("text");function eY(e){return{resolveAll:eq("text"===e?eG:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return s(e)?i(e):l(e)}function l(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eq(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eG(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],o=t.sliceStream(i),l=o.length,a=-1,s=0;for(;l--;){let e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eK={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){return e.enter("thematicBreak"),r=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eP(n)?eN(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||eI(l))?(e.exit("thematicBreak"),t(l)):n(l)}(o)}}},eX={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eV,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eN(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eP(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
28=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eQ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eN(e,e.attempt(eX,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eE(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eK,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eE(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eV,r.interrupt?n:s,e.attempt(eZ,c,u))}
28function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eP(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eZ={partial:!0,tokenize:function(e,t,n){let r=this;return eN(e,function(e){let i=r.events[r.events.length-1];return!eP(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eQ={partial:!0,tokenize:function(e,t,n){let r=this;return eN(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eJ={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eP(t)?eN(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eJ,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eP(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,r,i,o,l,a,s){let u=s||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||eC(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eI(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return!c&&(null===i||41===i||eA(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||eC(i)?n(i):(e.consume(i),92===i?m:p)}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function e1(e,t,n,r,i,o){let l;let a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return s>999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):eI(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eI(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!eP(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function e2(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===l?(e.exit(o),a(l)):null===t?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||eI(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function e4(e,t){let n;return function r(i){return eI(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eP(i)?eN(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e5(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e3={partial:!0,tokenize:function(e,t,n){return function(t){return eA(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eP(t)?eN(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eI(e)?t(e):n(e)}}},e6={name:"codeIndented",tokenize:function(e,t,n){let r=this;
28return function(t){return e.enter("codeIndented"),eN(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eI(n)?e.attempt(e9,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eI(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eN(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eI(e)?i(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=l,e.push(["exit",l,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let l,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){l="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eP(n)?eN(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||eI(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eV,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),eP(t)?eN(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),eP(i)?eN(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eI(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,a=0;return function(t){return function(t){let o=i.events[i.events.length-1];return l=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eP(i)?eN(e,s,"whitespace")(i):s(i))}(t)}(t)};function s(o){return null===o||eI(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tr,c,p)(o)):(e.enter("co
28deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):eP(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eN(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||eI(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return l>0&&eP(t)?eN(e,h,"linePrefix",l+1)(t):h(t)}function h(t){return null===t||eI(t)?e.check(tr,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eI(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function tl(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ta={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eS,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eT,u):(e.enter("characterReferenceValue"),r=7,i=eE,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==eS||tl(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<r?(e.consume(a),u):n(a)}}},ts={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eO(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tu={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eN(e,t,"linePrefix")}}};function tc(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let tf={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eg(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=l);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=ey(o=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),o=ey(o,[["enter",c,t]]),o=ey(o,tc(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=ey(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=ey(o,e.slice(i+1)),o=ey(o,[["exit",s,t]]),eg(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i;let o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(e5(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(td,u,i?u:c)(t):91===t?e.attempt(th,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(tp,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},td={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eA(t)?e4(e,i)(t):i(t)}function i(t){return 41===t?u(t):e0(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eA(t)?e4(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?e2(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return eA(t)?e4(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},th={tokenize:function(e,t,n){let r=this;return function(t){return e1.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(e5(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tp={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tm={name:"labelStartImage",resolveAll:tf.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tg(e){return null===e||eA(e)||eL(e)?1:eD(e)?2:void 0}let ty={name:"attention",resolveAll:function(e,t){let n,r,i,o,l,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
28n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f={...e[n][1].end},d={...e[c][1].start};tv(f,-a),tv(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[c][1].start={...l.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=ey(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=ey(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),s=ey(s,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=ey(s,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=ey(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,eg(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=tg(i);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=tg(a),c=!u||2===u&&o||r.includes(a),f=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!f)),s._close=!!(42===n?f:f&&(u||!c)),t(a)}(l)}}};function tv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tb={name:"labelStartLink",resolveAll:tf.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tk={42:eX,43:eX,45:eX,48:eX,49:eX,50:eX,51:eX,52:eX,53:eX,54:eX,55:eX,56:eX,57:eX,62:eJ},tx={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),e1.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return(r=e5(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return eA(t)?e4(e,a)(t):a(t)}function a(t){return e0(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(e3,u,u)(t)}function u(t){return eP(t)?eN(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eI(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},tw={[-2]:e6,[-1]:e6,32:e6},tS={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eg(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eA(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eI(r)?(e.exit("atxHeading"),t(r)):eP(r)?eN(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eA(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(i)}}},42:eK,45:[e7,eK],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,l,a;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,h):63===l?(e.consume(l),r=3,s.interrupt?t:D):ew(l)?(e.consume(l),o=String.fromCharCode(l),p):n(l)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,l=0,d):ew(i)?(e.consume(i),r=4,s.interrupt?t:D):n(i)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:D):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:_:d:n(r)}function h(t){return ew(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(l){if(null===l||47===l||62===l||eA(l)){let a=47===l,u=o.toLowerCase();return!a&&!i&&te.includes(u)?(r=1,s.interrupt?t(l):_(l)):e8.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),m):s.interrupt?t(l):_(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return eP(n)?(e.consume(n),t):w(n)}(l):g(l))}return 45===l||eS(l)?(e.consume(l),o+=String.fromCharCode(l),p):n(l)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:_):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ew(t)?(e.consume(t),y):eP(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):eP(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):eP(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eA(n)?v(n):(e.consume(n),t)}(t)}function k(t){return t===a?(e.consume(t),a=null,x):null===t||eI(t)?n(t):(e.consume(t),k)}function x(e){return 47===e||62===e||eP(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eI(t)?_(t):eP(t)?(e.consume(t),S):n(t)}function _(t){return 45===t&&2===r?(e.consume(t),O):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),D):93===t&&5===r?(e.consume(t),P):eI(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,M,C)(t)):null===t||eI(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),_)}function C(t){return e.check(tn,E,M)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||eI(t)?C(t):(e.enter("htmlFlowData"),_(t))}function O(t){return 45===t?(e.consume(t),D):_(t)}function I(t){return 47===t?(e.consume(t),o="",A):_(t)}function A(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),L):_(t)}return ew(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):_(t)}function P(t){return 93===t?(e.consume(t),D):_(t)}function D(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),D):_(t)}function L(t){return null===t||eI(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),L)}function M(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eK,96:ti,126:ti},t_={38:ta,92:ts},tC={[-5]:tu,[-4]:tu,[-3]:tu,33:tm,38:ta,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ew(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eC(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):e_(t)?(e.consume(t),a):n(t)}function s(i){return eS(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eS(o)
28)&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),k):63===t?(e.consume(t),v):ew(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):ew(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eI(t)?(o=c,A(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?I(e):45===e?f(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):eI(t)?(o=p,A(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):p(t)}function y(t){return null===t||62===t?I(t):eI(t)?(o=y,A(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):eI(t)?(o=v,A(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function k(t){return ew(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||eS(t)?(e.consume(t),x):function t(n){return eI(n)?(o=t,A(n)):eP(n)?(e.consume(n),t):I(n)}(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):47===t||62===t||eA(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||ew(t)?(e.consume(t),_):eI(t)?(o=S,A(t)):eP(t)?(e.consume(t),S):I(t)}function _(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),_):function t(n){return 61===n?(e.consume(n),C):eI(n)?(o=t,A(n)):eP(n)?(e.consume(n),t):S(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):eI(t)?(o=C,A(t)):eP(t)?(e.consume(t),C):(e.consume(t),T)}function E(t){return t===r?(e.consume(t),r=void 0,O):null===t?n(t):eI(t)?(o=E,A(t)):(e.consume(t),E)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eA(t)?S(t):(e.consume(t),T)}function O(e){return 47===e||62===e||eA(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return eP(t)?eN(e,D,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),o(t)}}}],91:tb,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eI(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ts],93:tf,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",a(l))}(s)):eI(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||eI(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}}}},tE={null:[ty,eU]},tT={null:[42,95]},tO={null:[]},tI=/[\0\t\n\r]/g;function tA(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tD(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;
28return tA(n.slice(t?2:1),t?16:10)}return tl(n)||e}let tL={}.hasOwnProperty;function tM(e){return{line:e.line,column:e.column,offset:e.offset}}function tN(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+q({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+q({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+q({start:t.start,end:t.end})+") is still open")}function tF(e){let t=this;t.parser=function(n){var r,o;let l,a,s,u;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tA(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tl(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tM(e.end)},codeFenced:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tP,tD),n.identifier=e5(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tM(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
28ype)&&(u.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tL.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},l={stack:[r],tokenStack:[],config:t,enter:o,exit:a,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,o,l,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||o||(o=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(i=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tL.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||tN).call(l,void 0,e[0])}for(r.position={start:tM(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tM(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tM(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tN).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+q({start:e.start,end:e.end})+"): it’s not open");n.position.end=tM(e.end)}function s(){return ep(this.stack.pop(),"boolean"!=typeof eh.includeImageAlt||eh.includeImageAlt,"boolean"!=typeof eh.includeHtml||eh.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tM(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tM(e.end)}function f(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ek(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(ex.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ex.call(i,r)||(i[r]=[]);let e=o[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eg(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}([i,...(e||{}).extensions||[]]),content:n(eF),defined:[],document:n(eR),flow:n(eH),lazy:{},string:n(e$),text:n(eW)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
28olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],l=[],a=[],s={attempt:p(function(e,t){m(e,t.from)}),check:p(h),consume:function(e){eI(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:p(h,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o;let l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":"	";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(f(e),t)},sliceStream:f,write:function(e){return(l=ey(l,e),function(){let e;for(;r._index<l.length;){let n=l[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==l[l.length-1])?[]:(m(t,0),u.events=tc(o,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function f(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function d(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function h(e,t){t.restore()}function p(e,t){return function(n,i,o){let l,c,f,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return p([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function p(e){return(l=e,c=0,0===e.length)?o:m(e[c])}function m(e){return function(n){return(h=function(){let e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,g()}}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(f,h),i}function v(e){return(h.restore(),++c<l.length)?m(l[c]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&eg(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(o).document().write((a=1,s="",u=!0,function(e,t,n){let r,i,o,c,f;let d=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,s="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tI.lastIndex=o,c=(r=tI.exec(e))&&void 0!==r.index?r.index:e.length,f=e.charCodeAt(c),!r){s=e.slice(o);break}if(10===f&&o===c&&l)d.push(-3),l=void 0;else switch(l&&(d.push(-5),l=void 0),o<c&&(d.push(e.slice(o,c)),a+=c-o),f){case 0:d.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),d.push(-2);a++<i;)d.push(-1);break;case 10:d.push(-4),a=1;break;default:l=!0,a=1}o=c+1}return n&&(l&&d.push(-5),s&&d.push(s),d.push(null)),d})(n,r,!0))))}}let tR="object"==typeof self?self:globalThis,tz=(e,t)=>
28{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new tR[e](t)},tV=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,l]=t[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(tz(e,t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(tz(o,l),i)};return r},tj=e=>tV(new Map,e)(0),{toString:tB}={},{keys:tH}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tB.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},t$=([e,t])=>0===e&&("function"===t||"symbol"===t),tW=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[l,a]=tU(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}let e=[],t=i([l,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],s=i([l,n],r);for(let t of tH(r))(e||!t$(tU(r[t])))&&n.push([o(t),o(r[t])]);return s}case 3:return i([l,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{let t=[],n=i([l,t],r);for(let[n,i]of r)(e||!(t$(tU(n))||t$(tU(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([l,t],r);for(let n of r)(e||!t$(tU(n)))&&t.push(o(n));return n}}let{message:s}=r;return i([l,{name:a,message:s}],r)};return o},tY=(e,{json:t,lossy:n}={})=>{let r=[];return tW(!(t||n),!!t,new Map,r)(e),r},tq="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tj(tY(e,t)):structuredClone(e):(e,t)=>tj(tY(e,t));function tG(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),l="";if(37===o&&eS(e.charCodeAt(n+1))&&eS(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tK(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tX(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tZ=function(e){if(null==e)return tJ;if("function"==typeof e)return tQ(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tZ(e[n]);return tQ(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):tQ(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return tQ(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function tQ(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function tJ(){return!0}let t0=[];function t1(e,t,n,r){let i,o,l;"function"==typeof t&&"function"!=typeof n?(o=void 0,l=t,i=n):(o=t,l=n,i=r),function(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let o=tZ(i),l=r?-1:1;(function e(i,a,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;
28let c,f,d,h=t0;if((!t||o(i,a,s[s.length-1]||void 0))&&!1===(h=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?t0:[u])[0])return h;if("children"in i&&i.children&&i.children&&"skip"!==h[0])for(f=(r?i.children.length:-1)+l,d=s.concat(i);f>-1&&f<i.children.length;){if(!1===(c=e(i.children[f],f,d)())[0])return c;f="number"==typeof c[1]?c[1]:f+l}return h}})(e,void 0,[])()}(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},i)}function t2(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function t4(e){let t=e.spread;return null==t?e.children.length>1:t}function t5(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t3={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tG(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t2(e,t);let i={src:tG(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tG(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t2(e,t);let i={href:tG(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tG(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t4(n[r])}return t}(n):t4(t),o={},l=[];
28if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=W(t.children[1]),l=$(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,l=o?o.length:t.children.length,a=-1,s=[];for(;++a<l;){let n=t.children[a],r={},l=o?o[a]:void 0;l&&(r.align=l);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(t5(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t5(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t6,yaml:t6,definition:t6,footnoteDefinition:t6};function t6(){}let t9={}.hasOwnProperty,t7={};function t8(e,t){e.position&&(t.position=function(e){let t=W(e),n=$(e);if(t&&n)return{start:t,end:n}}(e))}function ne(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tq(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nt(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nn(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nr(e,t){let n=function(e,t){let n=t||t7,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nn(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nn(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:ne,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t3,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(t9.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tq(n);return r.children=o.all(e),r}return tq(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t9.call(n,"hProperties")||t9.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:t8,wrap:nt};return t1(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.o
28ptions.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tK,r=e.options.footnoteBackLabel||tX,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let o=e.all(i),l=String(i.identifier).toUpperCase(),u=tG(l.toLowerCase()),c=0,f=[],d=e.footnoteCounts.get(l);for(;void 0!==d&&++c<=d;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else o.push(...f);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tq(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
28,{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function ni(e,t){return e&&"run"in e?async function(n,r){let i=nr(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nr(n,{file:r,...e||t})}}function no(e){if(e)throw e}var nl=n(92849);function na(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let ns={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nu(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(nu(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;nu(e);let n=e.length,r=-1,i=0,o=-1,l=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)nu(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){nu(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,a=0;continue}}else if(i.length>0){i="",o=0,l=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),o=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function nu(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let nc={cwd:function(){return"/"}};function nf(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nd=["history","path","basename","stem","extname","dirname"];class nh{constructor(e){let t,n;t=e?nf(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nd.length;){let e=nd[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nd.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?ns.basename(this.path):void 0}set basename(e){nm(e,"basename"),np(e,"basename"),this.path=ns.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ns.dirname(this.path):void 0}set dirname(e){ng(this.basename,"dirname"),this.path=ns.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?ns.extname(this.path):void 0}set extname(e){if(np(e,"extname"),ng(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=ns.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nf(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nf(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nm(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?ns.basename(this.path,this.extname):void 0}set stem(e){nm(e,"stem"),np(e,"stem"),this.path=ns.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Z(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function np(e,t){if(e&&e.includes(ns.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+ns.sep+"`")}function nm(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function ng(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let ny=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nv={}.hasOwnProperty;
28class nb extends ny{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(o,...l){let a=e[++n],s=-1;if(o){r(o);return}for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let o;let l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nb,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nl(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nS("data",this.frozen),this.namespace[e]=t,this):nv.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nS("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=nE(e),n=this.parser||this.Parser;return nx("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nx("process",this.parser||this.Parser),nw("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=nE(e),l=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(l,o,function(e,t,r){if(e||!t||!r)return a(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nx("processSync",this.parser||this.Parser),nw("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,no(e),t=r}),nC("processSync","process",n),t}run(e,t,n){n_(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){let l=nE(t);r.run(e,l,function(t,r,l){let a=r||e;t?o(t):i?i(a):n(void 0,a,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){no(e),n=t,r=!0}),nC("runSync","run",r),n}stringify(e,t){this.freeze();let n=nE(t),r=this.compiler||this.Compiler;return nw("stringify",r),n_(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nS("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=nl(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)l(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;l(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,l=n[i][1];na(l)&&na(r)&&(r=nl(!0,l,r)),n[i]=[e,r,...o]}}}}let nk=new nb().freeze();function nx(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nw(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nS(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function n_(e){if(!na(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nC(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nE(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new nh(e)}let nT=[],nO={allowDangerousHtml:!0},nI=/^(https?|ircs?|mailto|xmpp)$/i,nA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nP(e){let t=function(e){let t=e.rehypePlugins||nT,n=e.remarkPlugins||nT,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nO}:nO;return nk().use(tF).use(n).use(ni,r).use(t)}(e),n=function(e){let t=e.children||"",n=new nh;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||nD;for(let e of nA)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return t1(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return l?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,o=function(e,t,r,i){let o=Array.isArray(r.children),a=W(e);return n(t,r,i,o,{columnNumber:a?a.column-1:void 0,fileName:l,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
28if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,o=function(e,t,n,o){let l=Array.isArray(n.children)?i:r;return o?l(t,n,o):l(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?F:N,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ei(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(e,{Fragment:ed.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ed.jsx,jsxs:ed.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nD(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nI.test(e.slice(0,t))?e:""}}}]);

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