@20minutes/tyr 0.1.87 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/articlePage-desktop-critical.css +1 -1
- package/dist/css/articlePage-desktop-no-critical.css +1 -1
- package/dist/css/articlePage-mobile-critical.css +1 -1
- package/dist/css/articlePage-mobile-no-critical.css +1 -1
- package/dist/css/errorPage-desktop-critical.css +1 -1
- package/dist/css/errorPage-desktop-no-critical.css +1 -1
- package/dist/css/errorPage-mobile-critical.css +1 -1
- package/dist/css/errorPage-mobile-no-critical.css +1 -1
- package/dist/css/global.css +1 -1
- package/dist/css/horoscopePage-desktop-critical.css +1 -1
- package/dist/css/horoscopePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-mobile-critical.css +1 -1
- package/dist/css/horoscopehomePage-mobile-no-critical.css +1 -1
- package/dist/css/searchPage-desktop-critical.css +1 -1
- package/dist/css/searchPage-desktop-no-critical.css +1 -1
- package/dist/css/searchPage-mobile-critical.css +1 -1
- package/dist/css/searchPage-mobile-no-critical.css +1 -1
- package/dist/css/tagPage-desktop-critical.css +1 -1
- package/dist/css/tagPage-desktop-no-critical.css +1 -1
- package/dist/css/tagPage-mobile-critical.css +1 -1
- package/dist/css/tagPage-mobile-no-critical.css +1 -1
- package/dist/index.es.js +46047 -45764
- package/dist/index.umd.js +162 -154
- package/dist/js/ads.min.js +1 -1
- package/dist/js/awsRum.min.js +4 -4
- package/dist/js/main.min.js +37 -37
- package/dist/managers/helpers/AdsManager.d.ts +2 -1
- package/dist/types/graphql.d.ts +250 -16
- package/package.json +11 -8
package/dist/js/main.min.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var TyrBundle=function(ap,t4,P,uc){"use strict";var lp=(t=>(t.MOBILE="mobile",t.DESKTOP="desktop",t))(lp||{});const up=(t,r)=>{const i=t==="dark";r.setAttribute("aria-checked",String(i));const a=r.querySelector("span[aria-hidden]");a&&(a.setAttribute("aria-hidden",String(i)),a.innerHTML=i?"on":"off")},s0=(t=document.querySelector(".js-switch-dark-mode"))=>{const r=localStorage.getItem("theme")||"light";r&&t&&(document.documentElement.dataset.theme=r,up(r,t))},c0=(t=document.querySelector(".js-switch-dark-mode"))=>{t&&t.addEventListener("click",()=>{const r=document.documentElement.dataset.theme,i=!r||r==="light"?"dark":"light";document.documentElement.dataset.theme=i,localStorage.setItem("theme",i),up(i,t)})},f0=t=>{var r;const i=t.querySelector(".js-expandButton__label");t.setAttribute("aria-expanded","true"),i.innerHTML="Voir moins",(r=t.previousElementSibling)==null||r.setAttribute("aria-hidden","false")},d0=t=>{var r;const i=t.querySelector(".js-expandButton__label");t.setAttribute("aria-expanded","false"),i.innerHTML="Voir plus",(r=t.previousElementSibling)==null||r.setAttribute("aria-hidden","true")},p0=t=>{const r=t.currentTarget;return t.preventDefault(),r.getAttribute("aria-expanded")==="true"?d0(r):f0(r)},h0=(t=document.querySelector(".js-expandButton"))=>{t&&document.querySelectorAll(".js-expandButton").forEach(r=>r.addEventListener("click",p0))},m0=(t,r)=>{r.stopImmediatePropagation(),r.preventDefault();const i=r.currentTarget,a=document.querySelectorAll(".js-collapse__button"),u=document.querySelectorAll('[role="tabpanel"]'),c=i.getAttribute("aria-controls"),g=Object.values(u).find(y=>y.id===c);if(i.getAttribute("aria-expanded")==="true"){i.setAttribute("aria-expanded","false"),g?.setAttribute("aria-hidden","true");return}a.forEach(y=>{y.setAttribute("aria-expanded","false")}),u.forEach(y=>{y.setAttribute("aria-hidden","true")}),i.setAttribute("aria-expanded","true"),g&&g.removeAttribute("aria-hidden")},g0=(t=document.querySelector(".js-collapse__button"))=>{t&&document.querySelectorAll(".c-collapse__button").forEach(r=>{r.addEventListener("click",m0.bind(!1,t))})},v0=({navigatedList:t,nextBtn:r,prevBtn:i})=>{t&&(t.scrollLeft>0&&(t.scrollLeft+t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible"),r.classList.remove("o-nav-button--visible"),i.classList.add("o-nav-button--visible")),t.clientWidth<t.scrollWidth?r.classList.add("o-nav-button--visible"):(i.classList.remove("o-nav-button--visible"),r.classList.remove("o-nav-button--visible")),t.scrollLeft+t.clientWidth===t.scrollWidth&&r.classList.remove("o-nav-button--visible"))},y0=({navigatedList:t,nextBtn:r,prevBtn:i,sliderVariant:a})=>{if(t)if(t.scrollWidth-t.clientWidth>t.clientWidth){let u=t.scrollLeft;switch(a){case"partners":u+=t.clientWidth+32;break;case"rubrics":u+=t.clientWidth-36;break;default:u+=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:u,behavior:"smooth"}),i.classList.add("o-nav-button--visible"),u+t.clientWidth>=t.scrollWidth&&r.classList.remove("o-nav-button--visible")}else{const u=t.scrollWidth-t.clientWidth;t.scrollTo({left:u,behavior:"smooth"}),r.classList.remove("o-nav-button--visible"),i.classList.add("o-nav-button--visible")}},b0=({navigatedList:t,nextBtn:r,prevBtn:i,sliderVariant:a})=>{if(t)if(t.clientWidth<t.scrollLeft){let u=t.scrollLeft;switch(a){case"partners":u-=t.clientWidth+32;break;case"rubrics":u-=t.clientWidth-36;break;default:u-=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:u,behavior:"smooth"}),r.classList.add("o-nav-button--visible"),u===0&&i.classList.remove("o-nav-button--visible")}else t.scrollTo({left:0,behavior:"smooth"}),i.classList.remove("o-nav-button--visible"),t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible")},_0=({navigatedList:t,nextBtn:r,prevBtn:i})=>{v0({navigatedList:t,nextBtn:r,prevBtn:i})},w0=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:i}=r.dataset;if(r){const a=r.querySelector(".js-navigation-container__list"),u=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");a&&a.clientWidth<a.scrollWidth&&u?.classList.add("o-nav-button--visible"),u?.addEventListener("click",y0.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:c,sliderVariant:i})),c?.addEventListener("click",b0.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:c,sliderVariant:i}))}}},S0=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:i}=r.dataset;if(r){const a=r.querySelector(".js-navigation-container__list"),u=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",_0.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:c,sliderVariant:i}))}}},x0=(t,r)=>{r.preventDefault();const i=r.target,a=t.querySelectorAll('[role="tab"]'),u=t.querySelectorAll('[role="tabpanel"]'),c=i.getAttribute("aria-controls"),g=Object.values(u).find(y=>y.id===c);a.forEach(y=>{y.setAttribute("aria-selected","false")}),u.forEach(y=>{y.setAttribute("aria-hidden","true")}),i.setAttribute("aria-selected","true"),g&&g.removeAttribute("aria-hidden")},sp=t=>t.code==="ArrowLeft"||t.keyCode===39,cp=t=>t.code==="ArrowRight"||t.keyCode===37,E0=(t=document.querySelector(".js-tabs"))=>{if(t){const r=t.querySelectorAll('[role="tab"]');r.forEach(a=>{a.addEventListener("click",x0.bind(!1,t))});const i=t.querySelector('[role="tablist"]');if(i&&r.length>0){let a=0;i.addEventListener("keydown",u=>{u instanceof KeyboardEvent&&(sp(u)||cp(u))&&(r[a].setAttribute("tabindex","-1"),sp(u)?(a+=1,a>=r.length&&(a=0)):cp(u)&&(a-=1,a<0&&(a=r.length-1)),r[a].setAttribute("tabindex","0"),r[a].focus())})}}},k0=()=>{const t=document.documentElement.scrollTop;let r=document.documentElement.scrollHeight-document.documentElement.clientHeight;const i=document.querySelector(".js-limit-scroll-progress-bar");i&&(r=i.scrollHeight-document.documentElement.clientHeight+(window.pageYOffset+i.getBoundingClientRect().top));const a=Math.round(t/r*100),u=document.querySelector(".c-progress__bar");u&&(u.style.width=`${a}%`,a>=100&&(u.style.width="100%"))},N0=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",k0)};var O0=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],D0="Tab",M0="Escape";function yi(t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=t,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}yi.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=bl('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(r){r.addEventListener("click",this._show)}.bind(this));const t=this.$el;return this._closers=bl("[data-a11y-dialog-hide]",this.$el).filter(function(r){return r.closest('[aria-modal="true"], [data-a11y-dialog]')===t}).concat(bl('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(r){r.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},yi.prototype.show=function(t){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,fp(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",t),this)},yi.prototype.hide=function(t){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",t),this):this},yi.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(t){t.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(t){t.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},yi.prototype.on=function(t,r){return typeof this._listeners[t]>"u"&&(this._listeners[t]=[]),this._listeners[t].push(r),this},yi.prototype.off=function(t,r){var i=(this._listeners[t]||[]).indexOf(r);return i>-1&&this._listeners[t].splice(i,1),this},yi.prototype._fire=function(t,r){var i=this._listeners[t]||[],a=new CustomEvent(t,{detail:r});this.$el.dispatchEvent(a),i.forEach(function(u){u(this.$el,r)}.bind(this))},yi.prototype._bindKeypress=function(t){const r=document.activeElement;r&&r.closest('[aria-modal="true"]')!==this.$el||(this.shown&&t.key===M0&&this.$el.getAttribute("role")!=="alertdialog"&&(t.preventDefault(),this.hide(t)),this.shown&&t.key===D0&&B0(this.$el,t))},yi.prototype._maintainFocus=function(t){this.shown&&!t.target.closest('[aria-modal="true"]')&&!t.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&fp(this.$el)};function L0(t){return Array.prototype.slice.call(t)}function bl(t,r){return L0((r||document).querySelectorAll(t))}function fp(t){var r=t.querySelector("[autofocus]")||t;r.focus()}function C0(t){return bl(O0.join(","),t).filter(function(r){return!!(r.offsetWidth||r.offsetHeight||r.getClientRects().length)})}function B0(t,r){var i=C0(t),a=i.indexOf(document.activeElement);r.shiftKey&&a===0?(i[i.length-1].focus(),r.preventDefault()):!r.shiftKey&&a===i.length-1&&(i[0].focus(),r.preventDefault())}function sc(){bl("[data-a11y-dialog]").forEach(function(t){new yi(t)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",sc):window.requestAnimationFrame?window.requestAnimationFrame(sc):window.setTimeout(sc,16));const F0=(t=document.querySelector(".js-modal"))=>{t&&new yi(t)},P0=t=>{var r;t.preventDefault();const i=t.currentTarget,a=(r=i.closest(".js-search-toggle"))==null?void 0:r.querySelector(".c-search-form");i.setAttribute("aria-hidden","true"),a?.setAttribute("aria-hidden","false")},K0=(t=document.querySelector(".js-search-toggle"))=>{if(t){const r=t.querySelector(".c-header__search-button");r?.addEventListener("click",P0)}},R0=()=>{const t=document.querySelectorAll(".js-header-link"),r=document.querySelector(".js-overlay");if(r)for(const i of t)i.addEventListener("mouseenter",()=>{const a=i.querySelector(".js-sub-menu");if(a){if(window.getComputedStyle(a).getPropertyValue("display")!=="none"){r.classList.remove("u-hidden");return}r.classList.add("u-hidden")}}),i.addEventListener("mouseleave",()=>{r.classList.add("u-hidden")})};let vu,dp=0;const I0=()=>{vu="down",document.body.getBoundingClientRect().top>dp&&(vu="up"),dp=document.body.getBoundingClientRect().top;const t=document.querySelector(".c-read-also-banner");t&&(vu==="up"&&(t.classList.remove("c-read-also-banner__scrolldirection--down"),t.style.paddingTop="",t.style.paddingBottom="",t.classList.contains("c-read-also-banner__scrolldirection--up")||t.classList.add("c-read-also-banner__scrolldirection--up")),vu==="down"&&(t.classList.remove("c-read-also-banner__scrolldirection--up"),t.style.paddingTop="0",t.style.paddingBottom="0",t.classList.contains("c-read-also-banner__scrolldirection--down")||t.classList.add("c-read-also-banner__scrolldirection--down")))},j0=(t=document.querySelector(".c-read-also-banner"))=>{t&&window.addEventListener("scroll",I0)},T0=()=>{s0(),c0(),h0(),E0(),g0(),N0(),K0(),F0(),j0(),window.layout===lp.DESKTOP&&(w0(),S0(),R0())};var z0=(t=>(t[t.article=0]="article",t[t.divers=1]="divers",t[t.horoscope=2]="horoscope",t))(z0||{}),H0=(t=>(t.UNKNOWN="Non connu",t.SLIDESHOW_COVER="Slideshow cover",t.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",t.SLIDESHOW_PAGE="Slideshow page",t.ARTICLE="article",t.MISC="divers",t.HOME="home",t.LIVE="live",t.SECTION="section",t.TAG="tag",t))(H0||{}),A0=(t=>(t.MISC="divers",t.HOME="home",t.LOCAL="local",t.PLANET="plan\xE8te",t))(A0||{}),q0=(t=>(t.PAGETYPE="pageType",t.TAGS="tags",t))(q0||{});const U0="adDefined",V0=t=>document.cookie.indexOf(t)!==-1,Q0=t=>{const r=document.cookie.split(";").filter(i=>i.indexOf(t)!==-1)[0];return r?r.split("=")[1]:"{}"},X0=t=>{const r=[`${t.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];t.domain&&r.push(`domain=${t.domain}`),document.cookie=r.join("; ")},cc=function(t){const r=localStorage.getItem(t);return r?JSON.parse(r):void 0},Z0=t=>{let r=t;const i="\xE3\xE0\xE1\xE4\xE2\u1EBD\xE8\xE9\xEB\xEA\xEC\xED\xEF\xEE\xF5\xF2\xF3\xF6\xF4\xF9\xFA\xFC\xFB\xF1\xE7\xB7/_,:;",a="aaaaaeeeeeiiiiooooouuuunc------";for(let u=0;u<i.length;u+=1)r=r.replace(new RegExp(i.charAt(u),"g"),a.charAt(u));return r},$0=t=>{let r=t.toLowerCase().replace(/[\s-]+/g,"_");return r=Z0(r),r.replace(/[^\w-]+/g,"")},fc=new Date;new Date().setMinutes(fc.getMinutes()-19),new Date().setHours(fc.getHours()-6),new Date().setDate(fc.getDate()-3);const Y0=(t=window.location.href)=>{const r={},i=document.createElement("a");return i.href=t,i.search.substring(1).split("&").forEach(a=>{const u=a.split("=");r[u[0]]=decodeURIComponent(u[1])}),r},J0=(t,r=100)=>{const i=t.getBoundingClientRect(),a=window.pageYOffset||document.documentElement.scrollTop,u=Math.max(document.documentElement.clientHeight,window.innerHeight||0),c=a+u,g=i.top+a;return c>g-r},W0=()=>{if(V0("20min_fp")){const t=Q0("20min_fp");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${t}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then(r=>{r.ok&&alert("La demande de suppression a bien \xE9t\xE9 prise en compte")}),X0({name:"20min_fp"})}},G0=()=>{const t=document.getElementById("delete-fingerprint");t&&t.addEventListener("click",W0)},e_=(t,r,i=()=>{})=>{performance.mark(`20mn:${t}:Start`);const a=document.getElementsByTagName("script")[0],u=document.createElement("script");u.async=!0,u.src=r,u.onload=()=>{i(),performance.mark(`20mn:${t}:End`)},a&&a.parentNode&&a.parentNode.insertBefore(u,a)},pp=(t,r,i,a="",u="",c="")=>{var g,y,b;if(!((b=(y=(g=window.ATInternet)==null?void 0:g.Tracker)==null?void 0:y.instances)!=null&&b.length))return;const w={elem:t,name:$0(r),type:i,chapter1:a,chapter2:u,chapter3:c};Object.keys(w).forEach(D=>{w[D]===""&&delete w[D]}),window.ATInternet.Tracker.instances[0].click.send(w)},t_=()=>{if(document.querySelector('iframe[src*="www.ultimedia.com"], iframe[data-src*="www.ultimedia.com"]')){const t=document.createElement("script");t.async=!0,t.src="https://www.ultimedia.com/js/common/visible_player.js",document.getElementsByTagName("head")[0].appendChild(t)}},n_=()=>{t_()},r_=()=>{var t;!document.querySelector(".gcse-search")||!((t=window.envVariables)!=null&&t.googleSearchCode)||e_("googlesearch",`https://cse.google.com/cse.js?cx=${window.envVariables.googleSearchCode}`)},i_=()=>{r_()};let _l=[],hp;const o_=(t,r)=>{let i=!1;return()=>{i||(t(),i=!0,hp=setTimeout(()=>{i=!1},r))}},a_=t=>t.event&&J0(t.elem,Number(t.distance))?(t.elem.dispatchEvent(new Event(t.event)),t.elem.dataset.lazyLoaded="true",!1):!0,mp=()=>{o_(()=>{_l=_l.filter(a_),_l.length<=0&&(clearTimeout(hp),window.removeEventListener("scroll",mp))},50)()},l_=()=>{_l.length<=0||window.addEventListener("scroll",mp)},gp=t=>{_l.push(t),l_()},u_=()=>{document.addEventListener(U0,t=>{const r=t,{elem:i}=r.detail[0];if(i.getAttribute("data-delayed")!=="true")return;const a={elem:i,event:i.getAttribute("id"),distance:i.dataset.distanceVisible};gp(a)})},s_=()=>{document.querySelectorAll('[data-delayed="true"]:not([data-dfp-name])').forEach(t=>{const r={elem:t,event:t.getAttribute("id"),distance:t.dataset.distanceVisible};gp(r)})},c_=()=>{u_(),s_()},f_=()=>{var t,r;const i=Y0(),a=document.createElement("div");a.className="OUTBRAIN",a.setAttribute("data-widget-id","type|default('AR_1')"),a.setAttribute("data-src","https://www.20minutes.fr"),"advertisingId"in i&&"appVersion"in i&&(a.setAttribute("data-ob-user-id",i.advertisingId),a.setAttribute("data-ob-app-ver",i.appVersion),a.setAttribute("data-ob-installation-key","{{ outbrain_ios_id }}")),(r=(t=document?.currentScript)==null?void 0:t.parentNode)==null||r.insertBefore(a,document.currentScript)},d_=()=>{f_()};var Dr=(t=>(t.MOBILE="mobile",t.DESKTOP="desktop",t))(Dr||{}),Fa=(t=>(t.photo="photo",t.podcast="podcast",t.video="video",t))(Fa||{});const wl={asset:{font:{"Oswald-Bold":{value:"fonts/Oswald-Bold",family:"Oswald",weight:"700",style:"normal",extensions:["woff2","woff"]},"SourceSerifPro-Regular":{value:"fonts/SourceSerifPro-Regular",family:"Source Serif Pro",weight:"400",style:"normal",extensions:["woff2","woff"]},"SourceSerifPro-Italic":{value:"fonts/SourceSerifPro-Italic",family:"Source Serif Pro",weight:"400",style:"italic",extensions:["woff2","woff"]},"SourceSerifPro-Bold":{value:"fonts/SourceSerifPro-Bold",family:"Source Serif Pro",weight:"700",style:"normal",extensions:["woff2","woff"]}}},breakpoint:{xs:{value:"0",description:"no minimum width value because we are in mobile-first"},sm:{value:"479",description:"minimum width value for a small devices (tablets)"},md:{value:"767",description:"minimum width value for a medium devices, (desktops)"},lg:{value:"1024",description:"minimum width value for a large devices (wide screen)"}},color:{primary:{ultramarine:{value:"#4742ff"},"ultramarine-light":{value:"#6b72fb"}},secondary:{orange:{value:"#fa9917"},yellow:{value:"#f2e500"},green:{value:"#6cac4b"},purple:{value:"#ae6ba2"},red:{value:"#ff3333"},blue:{value:"#0000ff"},pink:{value:"#ef2a82"},sponsoring:{value:"#fff5f1"}},greyscale:{black:{value:"#000000"},white:{value:"#ffffff"},"grey-100":{value:"#f7f7f7"},"grey-200":{value:"#dddddd"},"grey-300":{value:"#898a8c"},"grey-400":{value:"#6a6a6a"},"grey-500":{value:"#484848"},"grey-600":{value:"#2f3134"},"grey-700":{value:"#181a1e"},"grey-800":{value:"#0f1116"}},status:{error:{value:"#ff3333"}},rubric:{default:{value:"#000000"},direct:{value:"#f22b36"},sport:{value:"#00b4c0"},entertainment:{value:"#92317e"},planet:{value:"#88be27"},magazine:{value:"#008f8c"},production:{value:"#c5be00"},c2c:{value:"#f7562a"},tempo:{value:"#cc0f53"}}},"font-family":{base:{value:"Arial"},oswald:{value:"'Oswald', sans-serif"},"source-serif-pro":{value:"'Source Serif Pro', serif"}},"font-size":{"xxs-4":{value:"8px"},"xxs-3":{value:"11px"},"xxs-2":{value:"12px"},xxs:{value:"14px"},xs:{value:"16px"},s:{value:"18px"},m:{value:"20px"},l:{value:"22px"},xl:{value:"26px"},xxl:{value:"28px"},"xxl-2":{value:"38px"},"xxl-3":{value:"44px"},"xxl-4":{value:"48px"},"xxl-5":{value:"54px"}},"font-weight":{regular:{value:"400"},bold:{value:"700"}},"line-height":{base:{value:"1.2"},large:{value:"1.5"}},radius:{0:{value:"0"},"xxs-2":{value:"2px"},xxs:{value:"4px"},xs:{value:"6px"},s:{value:"10px"},m:{value:"20px"},l:{value:"40px"},xl:{value:"50px"},xxl:{value:"100px"}},spacing:{0:{value:"0"},"xxs-2":{value:"4px"},xxs:{value:"8px"},xs:{value:"12px"},s:{value:"16px"},m:{value:"24px"},l:{value:"32px"},xl:{value:"40px"},xxl:{value:"64px"},"xxl-2":{value:"120px"}},typography:{heading:{"xxs-2":{description:"use for titles of CardMedium (ad), CardSmall, CardExtraSmall and CardOverview",fontSize:{value:"18px"}},xxs:{description:"use for titles of Tabs, ArticleSummary, footer categories, OverviewBar and RubricCards",fontSize:{value:"20px"}},xs:{description:"use for minified header title",fontSize:{value:"22px"}},s:{description:"use for title of HeaderBanner and CardMostRead and for article subtitle",fontSize:{value:"26px"}},m:{description:"use for title of CardExtraLarge (mobile), CardLarge (mobile), CardMedium, Newsletter, LiveCards and PartnerCards",fontSize:{value:"28px"}},l:{description:"use for pages title (mobile)",fontSize:{value:"38px"}},xl:{description:"use for title of CardLarge (desktop) and CardMostRead",fontSize:{value:"44px"}},xxl:{description:"use for CardExtraLarge title (desktop)",fontSize:{value:"48px"}},"xxl-2":{description:"use for pages title (desktop)",fontSize:{value:"54px"}}},text:{"xxs-3":{description:"use for CardFooter",fontSize:{value:"8px"}},"xxs-2":{description:"use for advanced SocialBar numbers and Checkbox label (mobile)",fontSize:{value:"11px"}},xxs:{description:"use for Label, simple SocialBar numbers, date info in Signature and CardHeader, Checkbox label (desktop), HoroscopeTiles label and footer download buttons label",fontSize:{value:"12px"}},xs:{description:'use for "See more" button, images caption, HoroscopeHomepageContent heading subtitle and Newsletter button label',fontSize:{value:"14px"}},s:{description:"use for InfoBanner, Newsletter description (mobile), footer content, Tag, HoroscopeHomepageContent link and buttons label",fontSize:{value:"16px"}},m:{description:"use for HeaderPage subtitle (mobile), CardExtraLarge summary (mobile), HoroscopeContent, Newsletter description (desktop), input placeholder label in ArticleHeader summary and article quote author name",fontSize:{value:"18px"},lineHeight:{value:"1.5"}},l:{description:"use for ArticleContent and ArticleSummary content",fontSize:{value:"20px"},lineHeight:{value:"1.5"}},xl:{description:"use for HeaderPage subtitle (desktop) and CardExtraLarge summary (desktop)",fontSize:{value:"22px"}},xxl:{description:"use for ArticleHeader lead and article quote",fontSize:{value:"26px"}}}}};[...Object.keys(wl.color.primary),...Object.keys(wl.color.secondary),...Object.keys(wl.color.rubric)];const p_={bg:["background-color"],color:["color"]},h_={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},m_={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"]},vp={radius:["border-radius"]},g_={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"]},v_={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},yp={...g_,...v_},y_={...yp,...p_,...vp},b_={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"]};Object.keys(wl["font-family"]).filter(t=>!["base"].includes(t));const __=Object.keys(wl.color.rubric),dc=typeof window<"u"?P.useLayoutEffect:()=>{};var Pa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc={},w_={get exports(){return pc},set exports(t){pc=t}};/*!
|
|
1
|
+
var TyrBundle=function(gp,ER,D,vc){"use strict";var vp=(t=>(t.MOBILE="mobile",t.DESKTOP="desktop",t))(vp||{});const yp=(t,r)=>{const o=t==="dark";r.setAttribute("aria-checked",String(o));const i=r.querySelector("span[aria-hidden]");i&&(i.setAttribute("aria-hidden",String(o)),i.innerHTML=o?"on":"off")},S0=(t=document.querySelector(".js-switch-dark-mode"))=>{const r=localStorage.getItem("theme")||"light";r&&t&&(document.documentElement.dataset.theme=r,yp(r,t))},x0=(t=document.querySelector(".js-switch-dark-mode"))=>{t&&t.addEventListener("click",()=>{const r=document.documentElement.dataset.theme,o=!r||r==="light"?"dark":"light";document.documentElement.dataset.theme=o,localStorage.setItem("theme",o),yp(o,t)})},E0=t=>{var r;const o=t.querySelector(".js-expandButton__label");t.setAttribute("aria-expanded","true"),o.innerHTML="Voir moins",(r=t.previousElementSibling)==null||r.setAttribute("aria-hidden","false")},k0=t=>{var r;const o=t.querySelector(".js-expandButton__label");t.setAttribute("aria-expanded","false"),o.innerHTML="Voir plus",(r=t.previousElementSibling)==null||r.setAttribute("aria-hidden","true")},N0=t=>{const r=t.currentTarget;return t.preventDefault(),r.getAttribute("aria-expanded")==="true"?k0(r):E0(r)},O0=(t=document.querySelector(".js-expandButton"))=>{t&&document.querySelectorAll(".js-expandButton").forEach(r=>r.addEventListener("click",N0))},L0=(t,r)=>{r.stopImmediatePropagation(),r.preventDefault();const o=r.currentTarget,i=document.querySelectorAll(".js-collapse__button"),l=document.querySelectorAll('[role="tabpanel"]'),c=o.getAttribute("aria-controls"),g=Object.values(l).find(v=>v.id===c);if(o.getAttribute("aria-expanded")==="true"){o.setAttribute("aria-expanded","false"),g?.setAttribute("aria-hidden","true");return}i.forEach(v=>{v.setAttribute("aria-expanded","false")}),l.forEach(v=>{v.setAttribute("aria-hidden","true")}),o.setAttribute("aria-expanded","true"),g&&g.removeAttribute("aria-hidden")},C0=(t=document.querySelector(".js-collapse__button"))=>{t&&document.querySelectorAll(".c-collapse__button").forEach(r=>{r.addEventListener("click",L0.bind(!1,t))})},M0=({navigatedList:t,nextBtn:r,prevBtn:o})=>{t&&(t.scrollLeft>0&&(t.scrollLeft+t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible"),r.classList.remove("o-nav-button--visible"),o.classList.add("o-nav-button--visible")),t.clientWidth<t.scrollWidth?r.classList.add("o-nav-button--visible"):(o.classList.remove("o-nav-button--visible"),r.classList.remove("o-nav-button--visible")),t.scrollLeft+t.clientWidth===t.scrollWidth&&r.classList.remove("o-nav-button--visible"))},F0=({navigatedList:t,nextBtn:r,prevBtn:o,sliderVariant:i})=>{if(t)if(t.scrollWidth-t.clientWidth>t.clientWidth){let l=t.scrollLeft;switch(i){case"partners":l+=t.clientWidth+32;break;case"rubrics":l+=t.clientWidth-36;break;default:l+=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:l,behavior:"smooth"}),o.classList.add("o-nav-button--visible"),l+t.clientWidth>=t.scrollWidth&&r.classList.remove("o-nav-button--visible")}else{const l=t.scrollWidth-t.clientWidth;t.scrollTo({left:l,behavior:"smooth"}),r.classList.remove("o-nav-button--visible"),o.classList.add("o-nav-button--visible")}},D0=({navigatedList:t,nextBtn:r,prevBtn:o,sliderVariant:i})=>{if(t)if(t.clientWidth<t.scrollLeft){let l=t.scrollLeft;switch(i){case"partners":l-=t.clientWidth+32;break;case"rubrics":l-=t.clientWidth-36;break;default:l-=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:l,behavior:"smooth"}),r.classList.add("o-nav-button--visible"),l===0&&o.classList.remove("o-nav-button--visible")}else t.scrollTo({left:0,behavior:"smooth"}),o.classList.remove("o-nav-button--visible"),t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible")},P0=({navigatedList:t,nextBtn:r,prevBtn:o})=>{M0({navigatedList:t,nextBtn:r,prevBtn:o})},B0=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:o}=r.dataset;if(r){const i=r.querySelector(".js-navigation-container__list"),l=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");i&&i.clientWidth<i.scrollWidth&&l?.classList.add("o-nav-button--visible"),l?.addEventListener("click",F0.bind(!1,{navigatedList:i,nextBtn:l,prevBtn:c,sliderVariant:o})),c?.addEventListener("click",D0.bind(!1,{navigatedList:i,nextBtn:l,prevBtn:c,sliderVariant:o}))}}},R0=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:o}=r.dataset;if(r){const i=r.querySelector(".js-navigation-container__list"),l=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",P0.bind(!1,{navigatedList:i,nextBtn:l,prevBtn:c,sliderVariant:o}))}}},T0=(t,r)=>{r.preventDefault();const o=r.target,i=t.querySelectorAll('[role="tab"]'),l=t.querySelectorAll('[role="tabpanel"]'),c=o.getAttribute("aria-controls"),g=Object.values(l).find(v=>v.id===c);i.forEach(v=>{v.setAttribute("aria-selected","false")}),l.forEach(v=>{v.setAttribute("aria-hidden","true")}),o.setAttribute("aria-selected","true"),g&&g.removeAttribute("aria-hidden")},bp=t=>t.code==="ArrowLeft"||t.keyCode===39,_p=t=>t.code==="ArrowRight"||t.keyCode===37,j0=(t=document.querySelector(".js-tabs"))=>{if(t){const r=t.querySelectorAll('[role="tab"]');r.forEach(i=>{i.addEventListener("click",T0.bind(!1,t))});const o=t.querySelector('[role="tablist"]');if(o&&r.length>0){let i=0;o.addEventListener("keydown",l=>{l instanceof KeyboardEvent&&(bp(l)||_p(l))&&(r[i].setAttribute("tabindex","-1"),bp(l)?(i+=1,i>=r.length&&(i=0)):_p(l)&&(i-=1,i<0&&(i=r.length-1)),r[i].setAttribute("tabindex","0"),r[i].focus())})}}},I0=()=>{const t=document.documentElement.scrollTop;let r=document.documentElement.scrollHeight-document.documentElement.clientHeight;const o=document.querySelector(".js-limit-scroll-progress-bar");o&&(r=o.scrollHeight-document.documentElement.clientHeight+(window.pageYOffset+o.getBoundingClientRect().top));const i=Math.round(t/r*100),l=document.querySelector(".c-progress__bar");l&&(l.style.width=`${i}%`,i>=100&&(l.style.width="100%"))},z0=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",I0)};var K0=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],A0="Tab",H0="Escape";function _o(t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=t,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}_o.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=wl('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(r){r.addEventListener("click",this._show)}.bind(this));const t=this.$el;return this._closers=wl("[data-a11y-dialog-hide]",this.$el).filter(function(r){return r.closest('[aria-modal="true"], [data-a11y-dialog]')===t}).concat(wl('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(r){r.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},_o.prototype.show=function(t){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,wp(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",t),this)},_o.prototype.hide=function(t){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",t),this):this},_o.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(t){t.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(t){t.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},_o.prototype.on=function(t,r){return typeof this._listeners[t]>"u"&&(this._listeners[t]=[]),this._listeners[t].push(r),this},_o.prototype.off=function(t,r){var o=(this._listeners[t]||[]).indexOf(r);return o>-1&&this._listeners[t].splice(o,1),this},_o.prototype._fire=function(t,r){var o=this._listeners[t]||[],i=new CustomEvent(t,{detail:r});this.$el.dispatchEvent(i),o.forEach(function(l){l(this.$el,r)}.bind(this))},_o.prototype._bindKeypress=function(t){const r=document.activeElement;r&&r.closest('[aria-modal="true"]')!==this.$el||(this.shown&&t.key===H0&&this.$el.getAttribute("role")!=="alertdialog"&&(t.preventDefault(),this.hide(t)),this.shown&&t.key===A0&&U0(this.$el,t))},_o.prototype._maintainFocus=function(t){this.shown&&!t.target.closest('[aria-modal="true"]')&&!t.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&wp(this.$el)};function V0(t){return Array.prototype.slice.call(t)}function wl(t,r){return V0((r||document).querySelectorAll(t))}function wp(t){var r=t.querySelector("[autofocus]")||t;r.focus()}function q0(t){return wl(K0.join(","),t).filter(function(r){return!!(r.offsetWidth||r.offsetHeight||r.getClientRects().length)})}function U0(t,r){var o=q0(t),i=o.indexOf(document.activeElement);r.shiftKey&&i===0?(o[o.length-1].focus(),r.preventDefault()):!r.shiftKey&&i===o.length-1&&(o[0].focus(),r.preventDefault())}function yc(){wl("[data-a11y-dialog]").forEach(function(t){new _o(t)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",yc):window.requestAnimationFrame?window.requestAnimationFrame(yc):window.setTimeout(yc,16));const Q0=(t=document.querySelector(".js-modal"))=>{t&&new _o(t)},X0=t=>{var r;t.preventDefault();const o=t.currentTarget,i=(r=o.closest(".js-search-toggle"))==null?void 0:r.querySelector(".c-search-form");o.setAttribute("aria-hidden","true"),i?.setAttribute("aria-hidden","false")},Z0=(t=document.querySelector(".js-search-toggle"))=>{if(t){const r=t.querySelector(".c-header__search-button");r?.addEventListener("click",X0)}},$0=()=>{const t=document.querySelectorAll(".js-header-link"),r=document.querySelector(".js-overlay");if(r)for(const o of t)o.addEventListener("mouseenter",()=>{const i=o.querySelector(".js-sub-menu");if(i){if(window.getComputedStyle(i).getPropertyValue("display")!=="none"){r.classList.remove("u-hidden");return}r.classList.add("u-hidden")}}),o.addEventListener("mouseleave",()=>{r.classList.add("u-hidden")})};let bu,Sp=0;const Y0=()=>{bu="down",document.body.getBoundingClientRect().top>Sp&&(bu="up"),Sp=document.body.getBoundingClientRect().top;const t=document.querySelector(".c-read-also-banner");t&&(bu==="up"&&(t.classList.remove("c-read-also-banner__scrolldirection--down"),t.style.paddingTop="",t.style.paddingBottom="",t.classList.contains("c-read-also-banner__scrolldirection--up")||t.classList.add("c-read-also-banner__scrolldirection--up")),bu==="down"&&(t.classList.remove("c-read-also-banner__scrolldirection--up"),t.style.paddingTop="0",t.style.paddingBottom="0",t.classList.contains("c-read-also-banner__scrolldirection--down")||t.classList.add("c-read-also-banner__scrolldirection--down")))},J0=(t=document.querySelector(".c-read-also-banner"))=>{t&&window.addEventListener("scroll",Y0)},W0=()=>{S0(),x0(),O0(),j0(),C0(),z0(),Z0(),Q0(),J0(),window.layout===vp.DESKTOP&&(B0(),R0(),$0())};var G0=(t=>(t[t.article=0]="article",t[t.divers=1]="divers",t[t.horoscope=2]="horoscope",t))(G0||{}),e_=(t=>(t.UNKNOWN="Non connu",t.SLIDESHOW_COVER="Slideshow cover",t.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",t.SLIDESHOW_PAGE="Slideshow page",t.ARTICLE="article",t.MISC="divers",t.HOME="home",t.LIVE="live",t.SECTION="section",t.TAG="tag",t))(e_||{}),t_=(t=>(t.MISC="divers",t.HOME="home",t.LOCAL="local",t.PLANET="plan\xE8te",t))(t_||{}),n_=(t=>(t.PAGETYPE="pageType",t.TAGS="tags",t))(n_||{});const r_="adDefined",o_=t=>document.cookie.indexOf(t)!==-1,i_=t=>{const r=document.cookie.split(";").filter(o=>o.indexOf(t)!==-1)[0];return r?r.split("=")[1]:"{}"},a_=t=>{const r=[`${t.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];t.domain&&r.push(`domain=${t.domain}`),document.cookie=r.join("; ")},bc=function(t){const r=localStorage.getItem(t);return r?JSON.parse(r):void 0},l_=t=>{let r=t;const o="\xE3\xE0\xE1\xE4\xE2\u1EBD\xE8\xE9\xEB\xEA\xEC\xED\xEF\xEE\xF5\xF2\xF3\xF6\xF4\xF9\xFA\xFC\xFB\xF1\xE7\xB7/_,:;",i="aaaaaeeeeeiiiiooooouuuunc------";for(let l=0;l<o.length;l+=1)r=r.replace(new RegExp(o.charAt(l),"g"),i.charAt(l));return r},u_=t=>{let r=t.toLowerCase().replace(/[\s-]+/g,"_");return r=l_(r),r.replace(/[^\w-]+/g,"")},_c=new Date;new Date().setMinutes(_c.getMinutes()-19),new Date().setHours(_c.getHours()-6),new Date().setDate(_c.getDate()-3);const s_=(t=window.location.href)=>{const r={},o=document.createElement("a");return o.href=t,o.search.substring(1).split("&").forEach(i=>{const l=i.split("=");r[l[0]]=decodeURIComponent(l[1])}),r},c_=(t,r=100)=>{const o=t.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,l=Math.max(document.documentElement.clientHeight,window.innerHeight||0),c=i+l,g=o.top+i;return c>g-r},f_=()=>{if(o_("20min_fp")){const t=i_("20min_fp");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${t}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then(r=>{r.ok&&alert("La demande de suppression a bien \xE9t\xE9 prise en compte")}),a_({name:"20min_fp"})}},d_=()=>{const t=document.getElementById("delete-fingerprint");t&&t.addEventListener("click",f_)},p_=(t,r,o=()=>{})=>{performance.mark(`20mn:${t}:Start`);const i=document.getElementsByTagName("script")[0],l=document.createElement("script");l.async=!0,l.src=r,l.onload=()=>{o(),performance.mark(`20mn:${t}:End`)},i&&i.parentNode&&i.parentNode.insertBefore(l,i)},xp=(t,r,o,i="",l="",c="")=>{var g,v,b;if(!((b=(v=(g=window.ATInternet)==null?void 0:g.Tracker)==null?void 0:v.instances)!=null&&b.length))return;const w={elem:t,name:u_(r),type:o,chapter1:i,chapter2:l,chapter3:c};Object.keys(w).forEach(L=>{w[L]===""&&delete w[L]}),window.ATInternet.Tracker.instances[0].click.send(w)},h_=()=>{if(document.querySelector('iframe[src*="www.ultimedia.com"], iframe[data-src*="www.ultimedia.com"]')){const t=document.createElement("script");t.async=!0,t.src="https://www.ultimedia.com/js/common/visible_player.js",document.getElementsByTagName("head")[0].appendChild(t)}},m_=()=>{h_()},g_=()=>{var t;!document.querySelector(".gcse-search")||!((t=window.envVariables)!=null&&t.googleSearchCode)||p_("googlesearch",`https://cse.google.com/cse.js?cx=${window.envVariables.googleSearchCode}`)},v_=()=>{g_()};let Sl=[],Ep;const y_=(t,r)=>{let o=!1;return()=>{o||(t(),o=!0,Ep=setTimeout(()=>{o=!1},r))}},b_=t=>t.event&&c_(t.elem,Number(t.distance))?(t.elem.dispatchEvent(new Event(t.event)),t.elem.dataset.lazyLoaded="true",!1):!0,kp=()=>{y_(()=>{Sl=Sl.filter(b_),Sl.length<=0&&(clearTimeout(Ep),window.removeEventListener("scroll",kp))},50)()},__=()=>{Sl.length<=0||window.addEventListener("scroll",kp)},Np=t=>{Sl.push(t),__()},w_=()=>{document.addEventListener(r_,t=>{const r=t,{elem:o}=r.detail[0];if(o.getAttribute("data-delayed")!=="true")return;const i={elem:o,event:o.getAttribute("id"),distance:o.dataset.distanceVisible};Np(i)})},S_=()=>{document.querySelectorAll('[data-delayed="true"]:not([data-dfp-name])').forEach(t=>{const r={elem:t,event:t.getAttribute("id"),distance:t.dataset.distanceVisible};Np(r)})},x_=()=>{w_(),S_()},E_=()=>{var t,r;const o=s_(),i=document.createElement("div");i.className="OUTBRAIN",i.setAttribute("data-widget-id","type|default('AR_1')"),i.setAttribute("data-src","https://www.20minutes.fr"),"advertisingId"in o&&"appVersion"in o&&(i.setAttribute("data-ob-user-id",o.advertisingId),i.setAttribute("data-ob-app-ver",o.appVersion),i.setAttribute("data-ob-installation-key","{{ outbrain_ios_id }}")),(r=(t=document?.currentScript)==null?void 0:t.parentNode)==null||r.insertBefore(i,document.currentScript)},k_=()=>{E_()};var Un=(t=>(t.MOBILE="mobile",t.DESKTOP="desktop",t))(Un||{}),Ra=(t=>(t.photo="photo",t.podcast="podcast",t.video="video",t))(Ra||{});const xl={asset:{font:{"Oswald-Bold":{value:"fonts/Oswald-Bold",family:"Oswald",weight:"700",style:"normal",extensions:["woff2","woff"]},"SourceSerifPro-Regular":{value:"fonts/SourceSerifPro-Regular",family:"Source Serif Pro",weight:"400",style:"normal",extensions:["woff2","woff"]},"SourceSerifPro-Italic":{value:"fonts/SourceSerifPro-Italic",family:"Source Serif Pro",weight:"400",style:"italic",extensions:["woff2","woff"]},"SourceSerifPro-Bold":{value:"fonts/SourceSerifPro-Bold",family:"Source Serif Pro",weight:"700",style:"normal",extensions:["woff2","woff"]}}},breakpoint:{xs:{value:"0",description:"no minimum width value because we are in mobile-first"},sm:{value:"479",description:"minimum width value for a small devices (tablets)"},md:{value:"767",description:"minimum width value for a medium devices, (desktops)"},lg:{value:"1024",description:"minimum width value for a large devices (wide screen)"}},color:{primary:{ultramarine:{value:"#4742ff"},"ultramarine-light":{value:"#6b72fb"}},secondary:{orange:{value:"#fa9917"},yellow:{value:"#f2e500"},green:{value:"#6cac4b"},purple:{value:"#ae6ba2"},red:{value:"#ff3333"},blue:{value:"#0000ff"},pink:{value:"#ef2a82"},sponsoring:{value:"#fff5f1"}},greyscale:{black:{value:"#000000"},white:{value:"#ffffff"},"grey-100":{value:"#f7f7f7"},"grey-200":{value:"#dddddd"},"grey-300":{value:"#898a8c"},"grey-400":{value:"#6a6a6a"},"grey-500":{value:"#484848"},"grey-600":{value:"#2f3134"},"grey-700":{value:"#181a1e"},"grey-800":{value:"#0f1116"}},status:{error:{value:"#ff3333"}},rubric:{default:{value:"#000000"},direct:{value:"#f22b36"},sport:{value:"#00b4c0"},entertainment:{value:"#92317e"},planet:{value:"#88be27"},magazine:{value:"#008f8c"},production:{value:"#c5be00"},c2c:{value:"#f7562a"},tempo:{value:"#cc0f53"}}},"font-family":{base:{value:"Arial"},oswald:{value:"'Oswald', sans-serif"},"source-serif-pro":{value:"'Source Serif Pro', serif"}},"font-size":{"xxs-4":{value:"8px"},"xxs-3":{value:"11px"},"xxs-2":{value:"12px"},xxs:{value:"14px"},xs:{value:"16px"},s:{value:"18px"},m:{value:"20px"},l:{value:"22px"},xl:{value:"26px"},xxl:{value:"28px"},"xxl-2":{value:"38px"},"xxl-3":{value:"44px"},"xxl-4":{value:"48px"},"xxl-5":{value:"54px"}},"font-weight":{regular:{value:"400"},bold:{value:"700"}},"line-height":{base:{value:"1.2"},large:{value:"1.5"}},radius:{0:{value:"0"},"xxs-2":{value:"2px"},xxs:{value:"4px"},xs:{value:"6px"},s:{value:"10px"},m:{value:"20px"},l:{value:"40px"},xl:{value:"50px"},xxl:{value:"100px"}},spacing:{0:{value:"0"},"xxs-2":{value:"4px"},xxs:{value:"8px"},xs:{value:"12px"},s:{value:"16px"},m:{value:"24px"},l:{value:"32px"},xl:{value:"40px"},xxl:{value:"64px"},"xxl-2":{value:"120px"}},typography:{heading:{"xxs-2":{description:"use for titles of CardMedium (ad), CardSmall, CardExtraSmall and CardOverview",fontSize:{value:"18px"}},xxs:{description:"use for titles of Tabs, ArticleSummary, footer categories, OverviewBar and RubricCards",fontSize:{value:"20px"}},xs:{description:"use for minified header title",fontSize:{value:"22px"}},s:{description:"use for title of HeaderBanner and CardMostRead and for article subtitle",fontSize:{value:"26px"}},m:{description:"use for title of CardExtraLarge (mobile), CardLarge (mobile), CardMedium, Newsletter, LiveCards and PartnerCards",fontSize:{value:"28px"}},l:{description:"use for pages title (mobile)",fontSize:{value:"38px"}},xl:{description:"use for title of CardLarge (desktop) and CardMostRead",fontSize:{value:"44px"}},xxl:{description:"use for CardExtraLarge title (desktop)",fontSize:{value:"48px"}},"xxl-2":{description:"use for pages title (desktop)",fontSize:{value:"54px"}}},text:{"xxs-3":{description:"use for CardFooter",fontSize:{value:"8px"}},"xxs-2":{description:"use for advanced SocialBar numbers and Checkbox label (mobile)",fontSize:{value:"11px"}},xxs:{description:"use for Label, simple SocialBar numbers, date info in Signature and CardHeader, Checkbox label (desktop), HoroscopeTiles label and footer download buttons label",fontSize:{value:"12px"}},xs:{description:'use for "See more" button, images caption, HoroscopeHomepageContent heading subtitle and Newsletter button label',fontSize:{value:"14px"}},s:{description:"use for InfoBanner, Newsletter description (mobile), footer content, Tag, HoroscopeHomepageContent link and buttons label",fontSize:{value:"16px"}},m:{description:"use for HeaderPage subtitle (mobile), CardExtraLarge summary (mobile), HoroscopeContent, Newsletter description (desktop), input placeholder label in ArticleHeader summary and article quote author name",fontSize:{value:"18px"},lineHeight:{value:"1.5"}},l:{description:"use for ArticleContent and ArticleSummary content",fontSize:{value:"20px"},lineHeight:{value:"1.5"}},xl:{description:"use for HeaderPage subtitle (desktop) and CardExtraLarge summary (desktop)",fontSize:{value:"22px"}},xxl:{description:"use for ArticleHeader lead and article quote",fontSize:{value:"26px"}}}}};[...Object.keys(xl.color.primary),...Object.keys(xl.color.secondary),...Object.keys(xl.color.rubric)];const N_={bg:["background-color"],color:["color"]},O_={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},L_={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"]},Op={radius:["border-radius"]},C_={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"]},M_={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},Lp={...C_,...M_},F_={...Lp,...N_,...Op},D_={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"]};Object.keys(xl["font-family"]).filter(t=>!["base"].includes(t));const P_=Object.keys(xl.color.rubric),wc=typeof window<"u"?D.useLayoutEffect:()=>{};var Ta=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sc={},B_={get exports(){return Sc},set exports(t){Sc=t}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(t){(function(){var r={}.hasOwnProperty;function i(){for(var a=[],u=0;u<arguments.length;u++){var c=arguments[u];if(c){var g=typeof c;if(g==="string"||g==="number")a.push(c);else if(Array.isArray(c)){if(c.length){var y=i.apply(null,c);y&&a.push(y)}}else if(g==="object"){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){a.push(c.toString());continue}for(var b in c)r.call(c,b)&&c[b]&&a.push(b)}}}return a.join(" ")}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(w_);const ot=pc;var mt={},S_={get exports(){return mt},set exports(t){mt=t}};(function(t,r){(function(i,a){t.exports=a()})(Pa,function(){var i=Array.prototype.slice;function a(l,f){f&&(l.prototype=Object.create(f.prototype)),l.prototype.constructor=l}function u(l){return b(l)?l:Xe(l)}a(c,u);function c(l){return w(l)?l:st(l)}a(g,u);function g(l){return D(l)?l:ut(l)}a(y,u);function y(l){return b(l)&&!K(l)?l:Pt(l)}function b(l){return!!(l&&l[T])}function w(l){return!!(l&&l[F])}function D(l){return!!(l&&l[R])}function K(l){return w(l)||D(l)}function L(l){return!!(l&&l[j])}u.isIterable=b,u.isKeyed=w,u.isIndexed=D,u.isAssociative=K,u.isOrdered=L,u.Keyed=c,u.Indexed=g,u.Set=y;var T="@@__IMMUTABLE_ITERABLE__@@",F="@@__IMMUTABLE_KEYED__@@",R="@@__IMMUTABLE_INDEXED__@@",j="@@__IMMUTABLE_ORDERED__@@",G="delete",Y=5,W=1<<Y,J=W-1,le={},Se={value:!1},_e={value:!1};function Ie(l){return l.value=!1,l}function ve(l){l&&(l.value=!0)}function xe(){}function we(l,f){f=f||0;for(var v=Math.max(0,l.length-f),x=new Array(v),E=0;E<v;E++)x[E]=l[E+f];return x}function he(l){return l.size===void 0&&(l.size=l.__iterate(De)),l.size}function ge(l,f){if(typeof f!="number"){var v=f>>>0;if(""+v!==f||v===4294967295)return NaN;f=v}return f<0?he(l)+f:f}function De(){return!0}function je(l,f,v){return(l===0||v!==void 0&&l<=-v)&&(f===void 0||v!==void 0&&f>=v)}function Ce(l,f){return ue(l,f,0)}function He(l,f){return ue(l,f,f)}function ue(l,f,v){return l===void 0?v:l<0?Math.max(0,f+l):f===void 0?l:Math.min(f,l)}var fe=0,ae=1,Me=2,Je=typeof Symbol=="function"&&Symbol.iterator,Et="@@iterator",Ct=Je||Et;function qe(l){this.next=l}qe.prototype.toString=function(){return"[Iterator]"},qe.KEYS=fe,qe.VALUES=ae,qe.ENTRIES=Me,qe.prototype.inspect=qe.prototype.toSource=function(){return this.toString()},qe.prototype[Ct]=function(){return this};function Te(l,f,v,x){var E=l===0?f:l===1?v:[f,v];return x?x.value=E:x={value:E,done:!1},x}function dt(){return{value:void 0,done:!0}}function Rt(l){return!!kt(l)}function It(l){return l&&typeof l.next=="function"}function Ft(l){var f=kt(l);return f&&f.call(l)}function kt(l){var f=l&&(Je&&l[Je]||l[Et]);if(typeof f=="function")return f}function en(l){return l&&typeof l.length=="number"}a(Xe,u);function Xe(l){return l==null?nt():b(l)?l.toSeq():Ge(l)}Xe.of=function(){return Xe(arguments)},Xe.prototype.toSeq=function(){return this},Xe.prototype.toString=function(){return this.__toString("Seq {","}")},Xe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Xe.prototype.__iterate=function(l,f){return ct(this,l,f,!0)},Xe.prototype.__iterator=function(l,f){return xn(this,l,f,!0)},a(st,Xe);function st(l){return l==null?nt().toKeyedSeq():b(l)?w(l)?l.toSeq():l.fromEntrySeq():Ye(l)}st.prototype.toKeyedSeq=function(){return this},a(ut,Xe);function ut(l){return l==null?nt():b(l)?w(l)?l.entrySeq():l.toIndexedSeq():ht(l)}ut.of=function(){return ut(arguments)},ut.prototype.toIndexedSeq=function(){return this},ut.prototype.toString=function(){return this.__toString("Seq [","]")},ut.prototype.__iterate=function(l,f){return ct(this,l,f,!1)},ut.prototype.__iterator=function(l,f){return xn(this,l,f,!1)},a(Pt,Xe);function Pt(l){return(l==null?nt():b(l)?w(l)?l.entrySeq():l:ht(l)).toSetSeq()}Pt.of=function(){return Pt(arguments)},Pt.prototype.toSetSeq=function(){return this},Xe.isSeq=Kt,Xe.Keyed=st,Xe.Set=Pt,Xe.Indexed=ut;var hn="@@__IMMUTABLE_SEQ__@@";Xe.prototype[hn]=!0,a(Bt,ut);function Bt(l){this._array=l,this.size=l.length}Bt.prototype.get=function(l,f){return this.has(l)?this._array[ge(this,l)]:f},Bt.prototype.__iterate=function(l,f){for(var v=this._array,x=v.length-1,E=0;E<=x;E++)if(l(v[f?x-E:E],E,this)===!1)return E+1;return E},Bt.prototype.__iterator=function(l,f){var v=this._array,x=v.length-1,E=0;return new qe(function(){return E>x?dt():Te(l,E,v[f?x-E++:E++])})},a(Nt,st);function Nt(l){var f=Object.keys(l);this._object=l,this._keys=f,this.size=f.length}Nt.prototype.get=function(l,f){return f!==void 0&&!this.has(l)?f:this._object[l]},Nt.prototype.has=function(l){return this._object.hasOwnProperty(l)},Nt.prototype.__iterate=function(l,f){for(var v=this._object,x=this._keys,E=x.length-1,M=0;M<=E;M++){var z=x[f?E-M:M];if(l(v[z],z,this)===!1)return M+1}return M},Nt.prototype.__iterator=function(l,f){var v=this._object,x=this._keys,E=x.length-1,M=0;return new qe(function(){var z=x[f?E-M:M];return M++>E?dt():Te(l,z,v[z])})},Nt.prototype[j]=!0,a(rt,ut);function rt(l){this._iterable=l,this.size=l.length||l.size}rt.prototype.__iterateUncached=function(l,f){if(f)return this.cacheResult().__iterate(l,f);var v=this._iterable,x=Ft(v),E=0;if(It(x))for(var M;!(M=x.next()).done&&l(M.value,E++,this)!==!1;);return E},rt.prototype.__iteratorUncached=function(l,f){if(f)return this.cacheResult().__iterator(l,f);var v=this._iterable,x=Ft(v);if(!It(x))return new qe(dt);var E=0;return new qe(function(){var M=x.next();return M.done?M:Te(l,E++,M.value)})},a(pt,ut);function pt(l){this._iterator=l,this._iteratorCache=[]}pt.prototype.__iterateUncached=function(l,f){if(f)return this.cacheResult().__iterate(l,f);for(var v=this._iterator,x=this._iteratorCache,E=0;E<x.length;)if(l(x[E],E++,this)===!1)return E;for(var M;!(M=v.next()).done;){var z=M.value;if(x[E]=z,l(z,E++,this)===!1)break}return E},pt.prototype.__iteratorUncached=function(l,f){if(f)return this.cacheResult().__iterator(l,f);var v=this._iterator,x=this._iteratorCache,E=0;return new qe(function(){if(E>=x.length){var M=v.next();if(M.done)return M;x[E]=M.value}return Te(l,E,x[E++])})};function Kt(l){return!!(l&&l[hn])}var Fe;function nt(){return Fe||(Fe=new Bt([]))}function Ye(l){var f=Array.isArray(l)?new Bt(l).fromEntrySeq():It(l)?new pt(l).fromEntrySeq():Rt(l)?new rt(l).fromEntrySeq():typeof l=="object"?new Nt(l):void 0;if(!f)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return f}function ht(l){var f=Sn(l);if(!f)throw new TypeError("Expected Array or iterable object of values: "+l);return f}function Ge(l){var f=Sn(l)||typeof l=="object"&&new Nt(l);if(!f)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return f}function Sn(l){return en(l)?new Bt(l):It(l)?new pt(l):Rt(l)?new rt(l):void 0}function ct(l,f,v,x){var E=l._cache;if(E){for(var M=E.length-1,z=0;z<=M;z++){var q=E[v?M-z:z];if(f(q[1],x?q[0]:z,l)===!1)return z+1}return z}return l.__iterateUncached(f,v)}function xn(l,f,v,x){var E=l._cache;if(E){var M=E.length-1,z=0;return new qe(function(){var q=E[v?M-z:z];return z++>M?dt():Te(f,x?q[0]:z-1,q[1])})}return l.__iteratorUncached(f,v)}function tn(l,f){return f?pr(f,l,"",{"":l}):Vn(l)}function pr(l,f,v,x){return Array.isArray(f)?l.call(x,v,ut(f).map(function(E,M){return pr(l,E,M,f)})):ro(f)?l.call(x,v,st(f).map(function(E,M){return pr(l,E,M,f)})):f}function Vn(l){return Array.isArray(l)?ut(l).map(Vn).toList():ro(l)?st(l).map(Vn).toMap():l}function ro(l){return l&&(l.constructor===Object||l.constructor===void 0)}function jt(l,f){if(l===f||l!==l&&f!==f)return!0;if(!l||!f)return!1;if(typeof l.valueOf=="function"&&typeof f.valueOf=="function"){if(l=l.valueOf(),f=f.valueOf(),l===f||l!==l&&f!==f)return!0;if(!l||!f)return!1}return!!(typeof l.equals=="function"&&typeof f.equals=="function"&&l.equals(f))}function _i(l,f){if(l===f)return!0;if(!b(f)||l.size!==void 0&&f.size!==void 0&&l.size!==f.size||l.__hash!==void 0&&f.__hash!==void 0&&l.__hash!==f.__hash||w(l)!==w(f)||D(l)!==D(f)||L(l)!==L(f))return!1;if(l.size===0&&f.size===0)return!0;var v=!K(l);if(L(l)){var x=l.entries();return f.every(function(te,re){var oe=x.next().value;return oe&&jt(oe[1],te)&&(v||jt(oe[0],re))})&&x.next().done}var E=!1;if(l.size===void 0)if(f.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{E=!0;var M=l;l=f,f=M}var z=!0,q=f.__iterate(function(te,re){if(v?!l.has(te):E?!jt(te,l.get(re,le)):!jt(l.get(re,le),te))return z=!1,!1});return z&&l.size===q}a(Jt,ut);function Jt(l,f){if(!(this instanceof Jt))return new Jt(l,f);if(this._value=l,this.size=f===void 0?1/0:Math.max(0,f),this.size===0){if(wi)return wi;wi=this}}Jt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Jt.prototype.get=function(l,f){return this.has(l)?this._value:f},Jt.prototype.includes=function(l){return jt(this._value,l)},Jt.prototype.slice=function(l,f){var v=this.size;return je(l,f,v)?this:new Jt(this._value,He(f,v)-Ce(l,v))},Jt.prototype.reverse=function(){return this},Jt.prototype.indexOf=function(l){return jt(this._value,l)?0:-1},Jt.prototype.lastIndexOf=function(l){return jt(this._value,l)?this.size:-1},Jt.prototype.__iterate=function(l,f){for(var v=0;v<this.size;v++)if(l(this._value,v,this)===!1)return v+1;return v},Jt.prototype.__iterator=function(l,f){var v=this,x=0;return new qe(function(){return x<v.size?Te(l,x++,v._value):dt()})},Jt.prototype.equals=function(l){return l instanceof Jt?jt(this._value,l._value):_i(l)};var wi;function fn(l,f){if(!l)throw new Error(f)}a(qt,ut);function qt(l,f,v){if(!(this instanceof qt))return new qt(l,f,v);if(fn(v!==0,"Cannot step a Range by 0"),l=l||0,f===void 0&&(f=1/0),v=v===void 0?1:Math.abs(v),f<l&&(v=-v),this._start=l,this._end=f,this._step=v,this.size=Math.max(0,Math.ceil((f-l)/v-1)+1),this.size===0){if(zn)return zn;zn=this}}qt.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},qt.prototype.get=function(l,f){return this.has(l)?this._start+ge(this,l)*this._step:f},qt.prototype.includes=function(l){var f=(l-this._start)/this._step;return f>=0&&f<this.size&&f===Math.floor(f)},qt.prototype.slice=function(l,f){return je(l,f,this.size)?this:(l=Ce(l,this.size),f=He(f,this.size),f<=l?new qt(0,0):new qt(this.get(l,this._end),this.get(f,this._end),this._step))},qt.prototype.indexOf=function(l){var f=l-this._start;if(f%this._step===0){var v=f/this._step;if(v>=0&&v<this.size)return v}return-1},qt.prototype.lastIndexOf=function(l){return this.indexOf(l)},qt.prototype.__iterate=function(l,f){for(var v=this.size-1,x=this._step,E=f?this._start+v*x:this._start,M=0;M<=v;M++){if(l(E,M,this)===!1)return M+1;E+=f?-x:x}return M},qt.prototype.__iterator=function(l,f){var v=this.size-1,x=this._step,E=f?this._start+v*x:this._start,M=0;return new qe(function(){var z=E;return E+=f?-x:x,M>v?dt():Te(l,M++,z)})},qt.prototype.equals=function(l){return l instanceof qt?this._start===l._start&&this._end===l._end&&this._step===l._step:_i(this,l)};var zn;a(it,u);function it(){throw TypeError("Abstract")}a(Qn,it);function Qn(){}a(Xn,it);function Xn(){}a(er,it);function er(){}it.Keyed=Qn,it.Indexed=Xn,it.Set=er;var En=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(l,f){l=l|0,f=f|0;var v=l&65535,x=f&65535;return v*x+((l>>>16)*x+v*(f>>>16)<<16>>>0)|0};function Mr(l){return l>>>1&1073741824|l&3221225471}function Tt(l){if(l===!1||l===null||l===void 0||typeof l.valueOf=="function"&&(l=l.valueOf(),l===!1||l===null||l===void 0))return 0;if(l===!0)return 1;var f=typeof l;if(f==="number"){var v=l|0;for(v!==l&&(v^=l*4294967295);l>4294967295;)l/=4294967295,v^=l;return Mr(v)}if(f==="string")return l.length>ji?io(l):tr(l);if(typeof l.hashCode=="function")return l.hashCode();if(f==="object")return Si(l);if(typeof l.toString=="function")return tr(l.toString());throw new Error("Value type "+f+" cannot be hashed.")}function io(l){var f=gr[l];return f===void 0&&(f=tr(l),nr===ao&&(nr=0,gr={}),nr++,gr[l]=f),f}function tr(l){for(var f=0,v=0;v<l.length;v++)f=31*f+l.charCodeAt(v)|0;return Mr(f)}function Si(l){var f;if(ei&&(f=ti.get(l),f!==void 0)||(f=l[mr],f!==void 0)||!oo&&(f=l.propertyIsEnumerable&&l.propertyIsEnumerable[mr],f!==void 0||(f=Gr(l),f!==void 0)))return f;if(f=++hr,hr&1073741824&&(hr=0),ei)ti.set(l,f);else{if(Lr!==void 0&&Lr(l)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(oo)Object.defineProperty(l,mr,{enumerable:!1,configurable:!1,writable:!1,value:f});else if(l.propertyIsEnumerable!==void 0&&l.propertyIsEnumerable===l.constructor.prototype.propertyIsEnumerable)l.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},l.propertyIsEnumerable[mr]=f;else if(l.nodeType!==void 0)l[mr]=f;else throw new Error("Unable to set a non-enumerable property on object.")}return f}var Lr=Object.isExtensible,oo=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Gr(l){if(l&&l.nodeType>0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var ei=typeof WeakMap=="function",ti;ei&&(ti=new WeakMap);var hr=0,mr="__immutablehash__";typeof Symbol=="function"&&(mr=Symbol(mr));var ji=16,ao=255,nr=0,gr={};function mn(l){fn(l!==1/0,"Cannot perform this action with an infinite size.")}a(at,Qn);function at(l){return l==null?Wt():Cr(l)&&!L(l)?l:Wt().withMutations(function(f){var v=c(l);mn(v.size),v.forEach(function(x,E){return f.set(E,x)})})}at.prototype.toString=function(){return this.__toString("Map {","}")},at.prototype.get=function(l,f){return this._root?this._root.get(0,void 0,l,f):f},at.prototype.set=function(l,f){return Bn(this,l,f)},at.prototype.setIn=function(l,f){return this.updateIn(l,le,function(){return f})},at.prototype.remove=function(l){return Bn(this,l,le)},at.prototype.deleteIn=function(l){return this.updateIn(l,function(){return le})},at.prototype.update=function(l,f,v){return arguments.length===1?l(this):this.updateIn([l],f,v)},at.prototype.updateIn=function(l,f,v){v||(v=f,f=void 0);var x=S(this,Pn(l),f,v);return x===le?void 0:x},at.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Wt()},at.prototype.merge=function(){return yr(this,void 0,arguments)},at.prototype.mergeWith=function(l){var f=i.call(arguments,1);return yr(this,l,f)},at.prototype.mergeIn=function(l){var f=i.call(arguments,1);return this.updateIn(l,Wt(),function(v){return typeof v.merge=="function"?v.merge.apply(v,f):f[f.length-1]})},at.prototype.mergeDeep=function(){return yr(this,jr,arguments)},at.prototype.mergeDeepWith=function(l){var f=i.call(arguments,1);return yr(this,Tr(l),f)},at.prototype.mergeDeepIn=function(l){var f=i.call(arguments,1);return this.updateIn(l,Wt(),function(v){return typeof v.mergeDeep=="function"?v.mergeDeep.apply(v,f):f[f.length-1]})},at.prototype.sort=function(l){return Xt(or(this,l))},at.prototype.sortBy=function(l,f){return Xt(or(this,f,l))},at.prototype.withMutations=function(l){var f=this.asMutable();return l(f),f.wasAltered()?f.__ensureOwner(this.__ownerID):this},at.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new xe)},at.prototype.asImmutable=function(){return this.__ensureOwner()},at.prototype.wasAltered=function(){return this.__altered},at.prototype.__iterator=function(l,f){return new ri(this,l,f)},at.prototype.__iterate=function(l,f){var v=this,x=0;return this._root&&this._root.iterate(function(E){return x++,l(E[1],E[0],v)},f),x},at.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?Ti(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function Cr(l){return!!(l&&l[Br])}at.isMap=Cr;var Br="@@__IMMUTABLE_MAP__@@",tt=at.prototype;tt[Br]=!0,tt[G]=tt.remove,tt.removeIn=tt.deleteIn;function Fr(l,f){this.ownerID=l,this.entries=f}Fr.prototype.get=function(l,f,v,x){for(var E=this.entries,M=0,z=E.length;M<z;M++)if(jt(v,E[M][0]))return E[M][1];return x},Fr.prototype.update=function(l,f,v,x,E,M,z){for(var q=E===le,te=this.entries,re=0,oe=te.length;re<oe&&!jt(x,te[re][0]);re++);var Ne=re<oe;if(Ne?te[re][1]===E:q)return this;if(ve(z),(q||!Ne)&&ve(M),!(q&&te.length===1)){if(!Ne&&!q&&te.length>=ie)return lo(l,te,x,E);var ke=l&&l===this.ownerID,$e=ke?te:we(te);return Ne?q?re===oe-1?$e.pop():$e[re]=$e.pop():$e[re]=[x,E]:$e.push([x,E]),ke?(this.entries=$e,this):new Fr(l,$e)}};function Pr(l,f,v){this.ownerID=l,this.bitmap=f,this.nodes=v}Pr.prototype.get=function(l,f,v,x){f===void 0&&(f=Tt(v));var E=1<<((l===0?f:f>>>l)&J),M=this.bitmap;return M&E?this.nodes[O(M&E-1)].get(l+Y,f,v,x):x},Pr.prototype.update=function(l,f,v,x,E,M,z){v===void 0&&(v=Tt(x));var q=(f===0?v:v>>>f)&J,te=1<<q,re=this.bitmap,oe=(re&te)!==0;if(!oe&&E===le)return this;var Ne=O(re&te-1),ke=this.nodes,$e=oe?ke[Ne]:void 0,lt=Rr($e,l,f+Y,v,x,E,M,z);if(lt===$e)return this;if(!oe&<&&ke.length>=me)return Ir(l,ke,re,q,lt);if(oe&&!lt&&ke.length===2&&un(ke[Ne^1]))return ke[Ne^1];if(oe&<&&ke.length===1&&un(lt))return lt;var Ht=l&&l===this.ownerID,Sr=oe?lt?re:re^te:re|te,Vr=oe?lt?B(ke,Ne,lt,Ht):U(ke,Ne,Ht):X(ke,Ne,lt,Ht);return Ht?(this.bitmap=Sr,this.nodes=Vr,this):new Pr(l,Sr,Vr)};function ni(l,f,v){this.ownerID=l,this.count=f,this.nodes=v}ni.prototype.get=function(l,f,v,x){f===void 0&&(f=Tt(v));var E=(l===0?f:f>>>l)&J,M=this.nodes[E];return M?M.get(l+Y,f,v,x):x},ni.prototype.update=function(l,f,v,x,E,M,z){v===void 0&&(v=Tt(x));var q=(f===0?v:v>>>f)&J,te=E===le,re=this.nodes,oe=re[q];if(te&&!oe)return this;var Ne=Rr(oe,l,f+Y,v,x,E,M,z);if(Ne===oe)return this;var ke=this.count;if(!oe)ke++;else if(!Ne&&(ke--,ke<be))return uo(l,re,ke,q);var $e=l&&l===this.ownerID,lt=B(re,q,Ne,$e);return $e?(this.count=ke,this.nodes=lt,this):new ni(l,ke,lt)};function vt(l,f,v){this.ownerID=l,this.keyHash=f,this.entries=v}vt.prototype.get=function(l,f,v,x){for(var E=this.entries,M=0,z=E.length;M<z;M++)if(jt(v,E[M][0]))return E[M][1];return x},vt.prototype.update=function(l,f,v,x,E,M,z){v===void 0&&(v=Tt(x));var q=E===le;if(v!==this.keyHash)return q?this:(ve(z),ve(M),xi(this,l,f,v,[x,E]));for(var te=this.entries,re=0,oe=te.length;re<oe&&!jt(x,te[re][0]);re++);var Ne=re<oe;if(Ne?te[re][1]===E:q)return this;if(ve(z),(q||!Ne)&&ve(M),q&&oe===2)return new zt(l,this.keyHash,te[re^1]);var ke=l&&l===this.ownerID,$e=ke?te:we(te);return Ne?q?re===oe-1?$e.pop():$e[re]=$e.pop():$e[re]=[x,E]:$e.push([x,E]),ke?(this.entries=$e,this):new vt(l,this.keyHash,$e)};function zt(l,f,v){this.ownerID=l,this.keyHash=f,this.entry=v}zt.prototype.get=function(l,f,v,x){return jt(v,this.entry[0])?this.entry[1]:x},zt.prototype.update=function(l,f,v,x,E,M,z){var q=E===le,te=jt(x,this.entry[0]);if(te?E===this.entry[1]:q)return this;if(ve(z),q){ve(M);return}return te?l&&l===this.ownerID?(this.entry[1]=E,this):new zt(l,this.keyHash,[x,E]):(ve(M),xi(this,l,f,Tt(x),[x,E]))},Fr.prototype.iterate=vt.prototype.iterate=function(l,f){for(var v=this.entries,x=0,E=v.length-1;x<=E;x++)if(l(v[f?E-x:x])===!1)return!1},Pr.prototype.iterate=ni.prototype.iterate=function(l,f){for(var v=this.nodes,x=0,E=v.length-1;x<=E;x++){var M=v[f?E-x:x];if(M&&M.iterate(l,f)===!1)return!1}},zt.prototype.iterate=function(l,f){return l(this.entry)},a(ri,qe);function ri(l,f,v){this._type=f,this._reverse=v,this._stack=l._root&&Kr(l._root)}ri.prototype.next=function(){for(var l=this._type,f=this._stack;f;){var v=f.node,x=f.index++,E;if(v.entry){if(x===0)return ii(l,v.entry)}else if(v.entries){if(E=v.entries.length-1,x<=E)return ii(l,v.entries[this._reverse?E-x:x])}else if(E=v.nodes.length-1,x<=E){var M=v.nodes[this._reverse?E-x:x];if(M){if(M.entry)return ii(l,M.entry);f=this._stack=Kr(M,f)}continue}f=this._stack=this._stack.__prev}return dt()};function ii(l,f){return Te(l,f[0],f[1])}function Kr(l,f){return{node:l,index:0,__prev:f}}function Ti(l,f,v,x){var E=Object.create(tt);return E.size=l,E._root=f,E.__ownerID=v,E.__hash=x,E.__altered=!1,E}var vr;function Wt(){return vr||(vr=Ti(0))}function Bn(l,f,v){var x,E;if(l._root){var M=Ie(Se),z=Ie(_e);if(x=Rr(l._root,l.__ownerID,0,void 0,f,v,M,z),!z.value)return l;E=l.size+(M.value?v===le?-1:1:0)}else{if(v===le)return l;E=1,x=new Fr(l.__ownerID,[[f,v]])}return l.__ownerID?(l.size=E,l._root=x,l.__hash=void 0,l.__altered=!0,l):x?Ti(E,x):Wt()}function Rr(l,f,v,x,E,M,z,q){return l?l.update(f,v,x,E,M,z,q):M===le?l:(ve(q),ve(z),new zt(f,x,[E,M]))}function un(l){return l.constructor===zt||l.constructor===vt}function xi(l,f,v,x,E){if(l.keyHash===x)return new vt(f,x,[l.entry,E]);var M=(v===0?l.keyHash:l.keyHash>>>v)&J,z=(v===0?x:x>>>v)&J,q,te=M===z?[xi(l,f,v+Y,x,E)]:(q=new zt(f,x,E),M<z?[l,q]:[q,l]);return new Pr(f,1<<M|1<<z,te)}function lo(l,f,v,x){l||(l=new xe);for(var E=new zt(l,Tt(v),[v,x]),M=0;M<f.length;M++){var z=f[M];E=E.update(l,0,void 0,z[0],z[1])}return E}function uo(l,f,v,x){for(var E=0,M=0,z=new Array(v),q=0,te=1,re=f.length;q<re;q++,te<<=1){var oe=f[q];oe!==void 0&&q!==x&&(E|=te,z[M++]=oe)}return new Pr(l,E,z)}function Ir(l,f,v,x,E){for(var M=0,z=new Array(W),q=0;v!==0;q++,v>>>=1)z[q]=v&1?f[M++]:void 0;return z[x]=E,new ni(l,M+1,z)}function yr(l,f,v){for(var x=[],E=0;E<v.length;E++){var M=v[E],z=c(M);b(M)||(z=z.map(function(q){return tn(q)})),x.push(z)}return p(l,f,x)}function jr(l,f,v){return l&&l.mergeDeep&&b(f)?l.mergeDeep(f):jt(l,f)?l:f}function Tr(l){return function(f,v,x){if(f&&f.mergeDeepWith&&b(v))return f.mergeDeepWith(l,v);var E=l(f,v,x);return jt(f,E)?f:E}}function p(l,f,v){return v=v.filter(function(x){return x.size!==0}),v.length===0?l:l.size===0&&!l.__ownerID&&v.length===1?l.constructor(v[0]):l.withMutations(function(x){for(var E=f?function(z,q){x.update(q,le,function(te){return te===le?z:f(te,z,q)})}:function(z,q){x.set(q,z)},M=0;M<v.length;M++)v[M].forEach(E)})}function S(l,f,v,x){var E=l===le,M=f.next();if(M.done){var z=E?v:l,q=x(z);return q===z?l:q}fn(E||l&&l.set,"invalid keyPath");var te=M.value,re=E?le:l.get(te,le),oe=S(re,f,v,x);return oe===re?l:oe===le?l.remove(te):(E?Wt():l).set(te,oe)}function O(l){return l=l-(l>>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function B(l,f,v,x){var E=x?l:we(l);return E[f]=v,E}function X(l,f,v,x){var E=l.length+1;if(x&&f+1===E)return l[f]=v,l;for(var M=new Array(E),z=0,q=0;q<E;q++)q===f?(M[q]=v,z=-1):M[q]=l[q+z];return M}function U(l,f,v){var x=l.length-1;if(v&&f===x)return l.pop(),l;for(var E=new Array(x),M=0,z=0;z<x;z++)z===f&&(M=1),E[z]=l[z+M];return E}var ie=W/4,me=W/2,be=W/4;a(Ee,Xn);function Ee(l){var f=vn();if(l==null)return f;if(We(l))return l;var v=g(l),x=v.size;return x===0?f:(mn(x),x>0&&x<W?gn(0,x,Y,null,new nn(v.toArray())):f.withMutations(function(E){E.setSize(x),v.forEach(function(M,z){return E.set(z,M)})}))}Ee.of=function(){return this(arguments)},Ee.prototype.toString=function(){return this.__toString("List [","]")},Ee.prototype.get=function(l,f){if(l=ge(this,l),l>=0&&l<this.size){l+=this._origin;var v=zr(this,l);return v&&v.array[l&J]}return f},Ee.prototype.set=function(l,f){return rr(this,l,f)},Ee.prototype.remove=function(l){return this.has(l)?l===0?this.shift():l===this.size-1?this.pop():this.splice(l,1):this},Ee.prototype.insert=function(l,f){return this.splice(l,0,f)},Ee.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):vn()},Ee.prototype.push=function(){var l=arguments,f=this.size;return this.withMutations(function(v){oi(v,0,f+l.length);for(var x=0;x<l.length;x++)v.set(f+x,l[x])})},Ee.prototype.pop=function(){return oi(this,0,-1)},Ee.prototype.unshift=function(){var l=arguments;return this.withMutations(function(f){oi(f,-l.length);for(var v=0;v<l.length;v++)f.set(v,l[v])})},Ee.prototype.shift=function(){return oi(this,1)},Ee.prototype.merge=function(){return so(this,void 0,arguments)},Ee.prototype.mergeWith=function(l){var f=i.call(arguments,1);return so(this,l,f)},Ee.prototype.mergeDeep=function(){return so(this,jr,arguments)},Ee.prototype.mergeDeepWith=function(l){var f=i.call(arguments,1);return so(this,Tr(l),f)},Ee.prototype.setSize=function(l){return oi(this,0,l)},Ee.prototype.slice=function(l,f){var v=this.size;return je(l,f,v)?this:oi(this,Ce(l,v),He(f,v))},Ee.prototype.__iterator=function(l,f){var v=0,x=br(this,f);return new qe(function(){var E=x();return E===sn?dt():Te(l,v++,E)})},Ee.prototype.__iterate=function(l,f){for(var v=0,x=br(this,f),E;(E=x())!==sn&&l(E,v++,this)!==!1;);return v},Ee.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?gn(this._origin,this._capacity,this._level,this._root,this._tail,l,this.__hash):(this.__ownerID=l,this)};function We(l){return!!(l&&l[St])}Ee.isList=We;var St="@@__IMMUTABLE_LIST__@@",Ot=Ee.prototype;Ot[St]=!0,Ot[G]=Ot.remove,Ot.setIn=tt.setIn,Ot.deleteIn=Ot.removeIn=tt.removeIn,Ot.update=tt.update,Ot.updateIn=tt.updateIn,Ot.mergeIn=tt.mergeIn,Ot.mergeDeepIn=tt.mergeDeepIn,Ot.withMutations=tt.withMutations,Ot.asMutable=tt.asMutable,Ot.asImmutable=tt.asImmutable,Ot.wasAltered=tt.wasAltered;function nn(l,f){this.array=l,this.ownerID=f}nn.prototype.removeBefore=function(l,f,v){if(v===f?1<<f:this.array.length===0)return this;var x=v>>>f&J;if(x>=this.array.length)return new nn([],l);var E=x===0,M;if(f>0){var z=this.array[x];if(M=z&&z.removeBefore(l,f-Y,v),M===z&&E)return this}if(E&&!M)return this;var q=An(this,l);if(!E)for(var te=0;te<x;te++)q.array[te]=void 0;return M&&(q.array[x]=M),q},nn.prototype.removeAfter=function(l,f,v){if(v===(f?1<<f:0)||this.array.length===0)return this;var x=v-1>>>f&J;if(x>=this.array.length)return this;var E;if(f>0){var M=this.array[x];if(E=M&&M.removeAfter(l,f-Y,v),E===M&&x===this.array.length-1)return this}var z=An(this,l);return z.array.splice(x+1),E&&(z.array[x]=E),z};var sn={};function br(l,f){var v=l._origin,x=l._capacity,E=Hr(x),M=l._tail;return z(l._root,l._level,0);function z(re,oe,Ne){return oe===0?q(re,Ne):te(re,oe,Ne)}function q(re,oe){var Ne=oe===E?M&&M.array:re&&re.array,ke=oe>v?0:v-oe,$e=x-oe;return $e>W&&($e=W),function(){if(ke===$e)return sn;var lt=f?--$e:ke++;return Ne&&Ne[lt]}}function te(re,oe,Ne){var ke,$e=re&&re.array,lt=Ne>v?0:v-Ne>>oe,Ht=(x-Ne>>oe)+1;return Ht>W&&(Ht=W),function(){do{if(ke){var Sr=ke();if(Sr!==sn)return Sr;ke=null}if(lt===Ht)return sn;var Vr=f?--Ht:lt++;ke=z($e&&$e[Vr],oe-Y,Ne+(Vr<<oe))}while(!0)}}}function gn(l,f,v,x,E,M,z){var q=Object.create(Ot);return q.size=f-l,q._origin=l,q._capacity=f,q._level=v,q._root=x,q._tail=E,q.__ownerID=M,q.__hash=z,q.__altered=!1,q}var Hn;function vn(){return Hn||(Hn=gn(0,0,Y))}function rr(l,f,v){if(f=ge(l,f),f!==f)return l;if(f>=l.size||f<0)return l.withMutations(function(z){f<0?oi(z,f).set(0,v):oi(z,0,f+1).set(f,v)});f+=l._origin;var x=l._tail,E=l._root,M=Ie(_e);return f>=Hr(l._capacity)?x=Fn(x,l.__ownerID,0,f,v,M):E=Fn(E,l.__ownerID,l._level,f,v,M),M.value?l.__ownerID?(l._root=E,l._tail=x,l.__hash=void 0,l.__altered=!0,l):gn(l._origin,l._capacity,l._level,E,x):l}function Fn(l,f,v,x,E,M){var z=x>>>v&J,q=l&&z<l.array.length;if(!q&&E===void 0)return l;var te;if(v>0){var re=l&&l.array[z],oe=Fn(re,f,v-Y,x,E,M);return oe===re?l:(te=An(l,f),te.array[z]=oe,te)}return q&&l.array[z]===E?l:(ve(M),te=An(l,f),E===void 0&&z===te.array.length-1?te.array.pop():te.array[z]=E,te)}function An(l,f){return f&&l&&f===l.ownerID?l:new nn(l?l.array.slice():[],f)}function zr(l,f){if(f>=Hr(l._capacity))return l._tail;if(f<1<<l._level+Y){for(var v=l._root,x=l._level;v&&x>0;)v=v.array[f>>>x&J],x-=Y;return v}}function oi(l,f,v){f!==void 0&&(f=f|0),v!==void 0&&(v=v|0);var x=l.__ownerID||new xe,E=l._origin,M=l._capacity,z=E+f,q=v===void 0?M:v<0?M+v:E+v;if(z===E&&q===M)return l;if(z>=q)return l.clear();for(var te=l._level,re=l._root,oe=0;z+oe<0;)re=new nn(re&&re.array.length?[void 0,re]:[],x),te+=Y,oe+=1<<te;oe&&(z+=oe,E+=oe,q+=oe,M+=oe);for(var Ne=Hr(M),ke=Hr(q);ke>=1<<te+Y;)re=new nn(re&&re.array.length?[re]:[],x),te+=Y;var $e=l._tail,lt=ke<Ne?zr(l,q-1):ke>Ne?new nn([],x):$e;if($e&&ke>Ne&&z<M&&$e.array.length){re=An(re,x);for(var Ht=re,Sr=te;Sr>Y;Sr-=Y){var Vr=Ne>>>Sr&J;Ht=Ht.array[Vr]=An(Ht.array[Vr],x)}Ht.array[Ne>>>Y&J]=$e}if(q<M&&(lt=lt&<.removeAfter(x,0,q)),z>=ke)z-=ke,q-=ke,te=Y,re=null,lt=lt&<.removeBefore(x,0,z);else if(z>E||ke<Ne){for(oe=0;re;){var Ao=z>>>te&J;if(Ao!==ke>>>te&J)break;Ao&&(oe+=(1<<te)*Ao),te-=Y,re=re.array[Ao]}re&&z>E&&(re=re.removeBefore(x,te,z-oe)),re&&ke<Ne&&(re=re.removeAfter(x,te,ke-oe)),oe&&(z-=oe,q-=oe)}return l.__ownerID?(l.size=q-z,l._origin=z,l._capacity=q,l._level=te,l._root=re,l._tail=lt,l.__hash=void 0,l.__altered=!0,l):gn(z,q,te,re,lt)}function so(l,f,v){for(var x=[],E=0,M=0;M<v.length;M++){var z=v[M],q=g(z);q.size>E&&(E=q.size),b(z)||(q=q.map(function(te){return tn(te)})),x.push(q)}return E>l.size&&(l=l.setSize(E)),p(l,f,x)}function Hr(l){return l<W?0:l-1>>>Y<<Y}a(Xt,at);function Xt(l){return l==null?yt():ir(l)?l:yt().withMutations(function(f){var v=c(l);mn(v.size),v.forEach(function(x,E){return f.set(E,x)})})}Xt.of=function(){return this(arguments)},Xt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Xt.prototype.get=function(l,f){var v=this._map.get(l);return v!==void 0?this._list.get(v)[1]:f},Xt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):yt()},Xt.prototype.set=function(l,f){return _r(this,l,f)},Xt.prototype.remove=function(l){return _r(this,l,le)},Xt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Xt.prototype.__iterate=function(l,f){var v=this;return this._list.__iterate(function(x){return x&&l(x[1],x[0],v)},f)},Xt.prototype.__iterator=function(l,f){return this._list.fromEntrySeq().__iterator(l,f)},Xt.prototype.__ensureOwner=function(l){if(l===this.__ownerID)return this;var f=this._map.__ensureOwner(l),v=this._list.__ensureOwner(l);return l?ai(f,v,l,this.__hash):(this.__ownerID=l,this._map=f,this._list=v,this)};function ir(l){return Cr(l)&&L(l)}Xt.isOrderedMap=ir,Xt.prototype[j]=!0,Xt.prototype[G]=Xt.prototype.remove;function ai(l,f,v,x){var E=Object.create(Xt.prototype);return E.size=l?l.size:0,E._map=l,E._list=f,E.__ownerID=v,E.__hash=x,E}var zi;function yt(){return zi||(zi=ai(Wt(),vn()))}function _r(l,f,v){var x=l._map,E=l._list,M=x.get(f),z=M!==void 0,q,te;if(v===le){if(!z)return l;E.size>=W&&E.size>=x.size*2?(te=E.filter(function(re,oe){return re!==void 0&&M!==oe}),q=te.toKeyedSeq().map(function(re){return re[0]}).flip().toMap(),l.__ownerID&&(q.__ownerID=te.__ownerID=l.__ownerID)):(q=x.remove(f),te=M===E.size-1?E.pop():E.set(M,void 0))}else if(z){if(v===E.get(M)[1])return l;q=x,te=E.set(M,[f,v])}else q=x.set(f,E.size),te=E.set(E.size,[f,v]);return l.__ownerID?(l.size=q.size,l._map=q,l._list=te,l.__hash=void 0,l):ai(q,te)}a(rn,st);function rn(l,f){this._iter=l,this._useKeys=f,this.size=l.size}rn.prototype.get=function(l,f){return this._iter.get(l,f)},rn.prototype.has=function(l){return this._iter.has(l)},rn.prototype.valueSeq=function(){return this._iter.valueSeq()},rn.prototype.reverse=function(){var l=this,f=ui(this,!0);return this._useKeys||(f.valueSeq=function(){return l._iter.toSeq().reverse()}),f},rn.prototype.map=function(l,f){var v=this,x=co(this,l,f);return this._useKeys||(x.valueSeq=function(){return v._iter.toSeq().map(l,f)}),x},rn.prototype.__iterate=function(l,f){var v=this,x;return this._iter.__iterate(this._useKeys?function(E,M){return l(E,M,v)}:(x=f?Ur(this):0,function(E){return l(E,f?--x:x++,v)}),f)},rn.prototype.__iterator=function(l,f){if(this._useKeys)return this._iter.__iterator(l,f);var v=this._iter.__iterator(ae,f),x=f?Ur(this):0;return new qe(function(){var E=v.next();return E.done?E:Te(l,f?--x:x++,E.value,E)})},rn.prototype[j]=!0,a(kn,ut);function kn(l){this._iter=l,this.size=l.size}kn.prototype.includes=function(l){return this._iter.includes(l)},kn.prototype.__iterate=function(l,f){var v=this,x=0;return this._iter.__iterate(function(E){return l(E,x++,v)},f)},kn.prototype.__iterator=function(l,f){var v=this._iter.__iterator(ae,f),x=0;return new qe(function(){var E=v.next();return E.done?E:Te(l,x++,E.value,E)})},a(yn,Pt);function yn(l){this._iter=l,this.size=l.size}yn.prototype.has=function(l){return this._iter.includes(l)},yn.prototype.__iterate=function(l,f){var v=this;return this._iter.__iterate(function(x){return l(x,x,v)},f)},yn.prototype.__iterator=function(l,f){var v=this._iter.__iterator(ae,f);return new qe(function(){var x=v.next();return x.done?x:Te(l,x.value,x.value,x)})},a(Ar,st);function Ar(l){this._iter=l,this.size=l.size}Ar.prototype.entrySeq=function(){return this._iter.toSeq()},Ar.prototype.__iterate=function(l,f){var v=this;return this._iter.__iterate(function(x){if(x){si(x);var E=b(x);return l(E?x.get(1):x[1],E?x.get(0):x[0],v)}},f)},Ar.prototype.__iterator=function(l,f){var v=this._iter.__iterator(ae,f);return new qe(function(){for(;;){var x=v.next();if(x.done)return x;var E=x.value;if(E){si(E);var M=b(E);return Te(l,M?E.get(0):E[0],M?E.get(1):E[1],x)}}})},kn.prototype.cacheResult=rn.prototype.cacheResult=yn.prototype.cacheResult=Ar.prototype.cacheResult=Ko;function li(l){var f=Zn(l);return f._iter=l,f.size=l.size,f.flip=function(){return l},f.reverse=function(){var v=l.reverse.apply(this);return v.flip=function(){return l.reverse()},v},f.has=function(v){return l.includes(v)},f.includes=function(v){return l.has(v)},f.cacheResult=Ko,f.__iterateUncached=function(v,x){var E=this;return l.__iterate(function(M,z){return v(z,M,E)!==!1},x)},f.__iteratorUncached=function(v,x){if(v===Me){var E=l.__iterator(v,x);return new qe(function(){var M=E.next();if(!M.done){var z=M.value[0];M.value[0]=M.value[1],M.value[1]=z}return M})}return l.__iterator(v===ae?fe:ae,x)},f}function co(l,f,v){var x=Zn(l);return x.size=l.size,x.has=function(E){return l.has(E)},x.get=function(E,M){var z=l.get(E,le);return z===le?M:f.call(v,z,E,l)},x.__iterateUncached=function(E,M){var z=this;return l.__iterate(function(q,te,re){return E(f.call(v,q,te,re),te,z)!==!1},M)},x.__iteratorUncached=function(E,M){var z=l.__iterator(Me,M);return new qe(function(){var q=z.next();if(q.done)return q;var te=q.value,re=te[0];return Te(E,re,f.call(v,te[1],re,l),q)})},x}function ui(l,f){var v=Zn(l);return v._iter=l,v.size=l.size,v.reverse=function(){return l},l.flip&&(v.flip=function(){var x=li(l);return x.reverse=function(){return l.flip()},x}),v.get=function(x,E){return l.get(f?x:-1-x,E)},v.has=function(x){return l.has(f?x:-1-x)},v.includes=function(x){return l.includes(x)},v.cacheResult=Ko,v.__iterate=function(x,E){var M=this;return l.__iterate(function(z,q){return x(z,q,M)},!E)},v.__iterator=function(x,E){return l.__iterator(x,!E)},v}function Hi(l,f,v,x){var E=Zn(l);return x&&(E.has=function(M){var z=l.get(M,le);return z!==le&&!!f.call(v,z,M,l)},E.get=function(M,z){var q=l.get(M,le);return q!==le&&f.call(v,q,M,l)?q:z}),E.__iterateUncached=function(M,z){var q=this,te=0;return l.__iterate(function(re,oe,Ne){if(f.call(v,re,oe,Ne))return te++,M(re,x?oe:te-1,q)},z),te},E.__iteratorUncached=function(M,z){var q=l.__iterator(Me,z),te=0;return new qe(function(){for(;;){var re=q.next();if(re.done)return re;var oe=re.value,Ne=oe[0],ke=oe[1];if(f.call(v,ke,Ne,l))return Te(M,x?Ne:te++,ke,re)}})},E}function ma(l,f,v){var x=at().asMutable();return l.__iterate(function(E,M){x.update(f.call(v,E,M,l),0,function(z){return z+1})}),x.asImmutable()}function qr(l,f,v){var x=w(l),E=(L(l)?Xt():at()).asMutable();l.__iterate(function(z,q){E.update(f.call(v,z,q,l),function(te){return te=te||[],te.push(x?[q,z]:z),te})});var M=Vi(l);return E.map(function(z){return ft(l,M(z))})}function Ai(l,f,v,x){var E=l.size;if(f!==void 0&&(f=f|0),v!==void 0&&(v=v|0),je(f,v,E))return l;var M=Ce(f,E),z=He(v,E);if(M!==M||z!==z)return Ai(l.toSeq().cacheResult(),f,v,x);var q=z-M,te;q===q&&(te=q<0?0:q);var re=Zn(l);return re.size=te===0?te:l.size&&te||void 0,!x&&Kt(l)&&te>=0&&(re.get=function(oe,Ne){return oe=ge(this,oe),oe>=0&&oe<te?l.get(oe+M,Ne):Ne}),re.__iterateUncached=function(oe,Ne){var ke=this;if(te===0)return 0;if(Ne)return this.cacheResult().__iterate(oe,Ne);var $e=0,lt=!0,Ht=0;return l.__iterate(function(Sr,Vr){if(!(lt&&(lt=$e++<M)))return Ht++,oe(Sr,x?Vr:Ht-1,ke)!==!1&&Ht!==te}),Ht},re.__iteratorUncached=function(oe,Ne){if(te!==0&&Ne)return this.cacheResult().__iterator(oe,Ne);var ke=te!==0&&l.__iterator(oe,Ne),$e=0,lt=0;return new qe(function(){for(;$e++<M;)ke.next();if(++lt>te)return dt();var Ht=ke.next();return x||oe===ae?Ht:oe===fe?Te(oe,lt-1,void 0,Ht):Te(oe,lt-1,Ht.value[1],Ht)})},re}function Po(l,f,v){var x=Zn(l);return x.__iterateUncached=function(E,M){var z=this;if(M)return this.cacheResult().__iterate(E,M);var q=0;return l.__iterate(function(te,re,oe){return f.call(v,te,re,oe)&&++q&&E(te,re,z)}),q},x.__iteratorUncached=function(E,M){var z=this;if(M)return this.cacheResult().__iterator(E,M);var q=l.__iterator(Me,M),te=!0;return new qe(function(){if(!te)return dt();var re=q.next();if(re.done)return re;var oe=re.value,Ne=oe[0],ke=oe[1];return f.call(v,ke,Ne,z)?E===Me?re:Te(E,Ne,ke,re):(te=!1,dt())})},x}function ga(l,f,v,x){var E=Zn(l);return E.__iterateUncached=function(M,z){var q=this;if(z)return this.cacheResult().__iterate(M,z);var te=!0,re=0;return l.__iterate(function(oe,Ne,ke){if(!(te&&(te=f.call(v,oe,Ne,ke))))return re++,M(oe,x?Ne:re-1,q)}),re},E.__iteratorUncached=function(M,z){var q=this;if(z)return this.cacheResult().__iterator(M,z);var te=l.__iterator(Me,z),re=!0,oe=0;return new qe(function(){var Ne,ke,$e;do{if(Ne=te.next(),Ne.done)return x||M===ae?Ne:M===fe?Te(M,oe++,void 0,Ne):Te(M,oe++,Ne.value[1],Ne);var lt=Ne.value;ke=lt[0],$e=lt[1],re&&(re=f.call(v,$e,ke,q))}while(re);return M===Me?Ne:Te(M,ke,$e,Ne)})},E}function Ei(l,f){var v=w(l),x=[l].concat(f).map(function(z){return b(z)?v&&(z=c(z)):z=v?Ye(z):ht(Array.isArray(z)?z:[z]),z}).filter(function(z){return z.size!==0});if(x.length===0)return l;if(x.length===1){var E=x[0];if(E===l||v&&w(E)||D(l)&&D(E))return E}var M=new Bt(x);return v?M=M.toKeyedSeq():D(l)||(M=M.toSetSeq()),M=M.flatten(!0),M.size=x.reduce(function(z,q){if(z!==void 0){var te=q.size;if(te!==void 0)return z+te}},0),M}function qi(l,f,v){var x=Zn(l);return x.__iterateUncached=function(E,M){var z=0,q=!1;function te(re,oe){var Ne=this;re.__iterate(function(ke,$e){return(!f||oe<f)&&b(ke)?te(ke,oe+1):E(ke,v?$e:z++,Ne)===!1&&(q=!0),!q},M)}return te(l,0),z},x.__iteratorUncached=function(E,M){var z=l.__iterator(E,M),q=[],te=0;return new qe(function(){for(;z;){var re=z.next();if(re.done!==!1){z=q.pop();continue}var oe=re.value;if(E===Me&&(oe=oe[1]),(!f||q.length<f)&&b(oe))q.push(z),z=oe.__iterator(E,M);else return v?re:Te(E,te++,oe,re)}return dt()})},x}function fo(l,f,v){var x=Vi(l);return l.toSeq().map(function(E,M){return x(f.call(v,E,M,l))}).flatten(!0)}function Nn(l,f){var v=Zn(l);return v.size=l.size&&l.size*2-1,v.__iterateUncached=function(x,E){var M=this,z=0;return l.__iterate(function(q,te){return(!z||x(f,z++,M)!==!1)&&x(q,z++,M)!==!1},E),z},v.__iteratorUncached=function(x,E){var M=l.__iterator(ae,E),z=0,q;return new qe(function(){return(!q||z%2)&&(q=M.next(),q.done)?q:z%2?Te(x,z++,f):Te(x,z++,q.value,q)})},v}function or(l,f,v){f||(f=Ro);var x=w(l),E=0,M=l.toSeq().map(function(z,q){return[q,z,E++,v?v(z,q,l):z]}).toArray();return M.sort(function(z,q){return f(z[3],q[3])||z[2]-q[2]}).forEach(x?function(z,q){M[q].length=2}:function(z,q){M[q]=z[1]}),x?st(M):D(l)?ut(M):Pt(M)}function wr(l,f,v){if(f||(f=Ro),v){var x=l.toSeq().map(function(E,M){return[E,v(E,M,l)]}).reduce(function(E,M){return Ui(f,E[1],M[1])?M:E});return x&&x[0]}else return l.reduce(function(E,M){return Ui(f,E,M)?M:E})}function Ui(l,f,v){var x=l(v,f);return x===0&&v!==f&&(v==null||v!==v)||x>0}function po(l,f,v){var x=Zn(l);return x.size=new Bt(v).map(function(E){return E.size}).min(),x.__iterate=function(E,M){for(var z=this.__iterator(ae,M),q,te=0;!(q=z.next()).done&&E(q.value,te++,this)!==!1;);return te},x.__iteratorUncached=function(E,M){var z=v.map(function(re){return re=u(re),Ft(M?re.reverse():re)}),q=0,te=!1;return new qe(function(){var re;return te||(re=z.map(function(oe){return oe.next()}),te=re.some(function(oe){return oe.done})),te?dt():Te(E,q++,f.apply(null,re.map(function(oe){return oe.value})))})},x}function ft(l,f){return Kt(l)?f:l.constructor(f)}function si(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function Ur(l){return mn(l.size),he(l)}function Vi(l){return w(l)?c:D(l)?g:y}function Zn(l){return Object.create((w(l)?st:D(l)?ut:Pt).prototype)}function Ko(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Xe.prototype.cacheResult.call(this)}function Ro(l,f){return l>f?1:l<f?-1:0}function Pn(l){var f=Ft(l);if(!f){if(!en(l))throw new TypeError("Expected iterable or array-like: "+l);f=Ft(u(l))}return f}a(bn,Qn);function bn(l,f){var v,x=function(M){if(M instanceof x)return M;if(!(this instanceof x))return new x(M);if(!v){v=!0;var z=Object.keys(l);jo(E,z),E.size=z.length,E._name=f,E._keys=z,E._defaultValues=l}this._map=at(M)},E=x.prototype=Object.create(on);return E.constructor=x,x}bn.prototype.toString=function(){return this.__toString(va(this)+" {","}")},bn.prototype.has=function(l){return this._defaultValues.hasOwnProperty(l)},bn.prototype.get=function(l,f){if(!this.has(l))return f;var v=this._defaultValues[l];return this._map?this._map.get(l,v):v},bn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var l=this.constructor;return l._empty||(l._empty=Io(this,Wt()))},bn.prototype.set=function(l,f){if(!this.has(l))throw new Error('Cannot set unknown key "'+l+'" on '+va(this));var v=this._map&&this._map.set(l,f);return this.__ownerID||v===this._map?this:Io(this,v)},bn.prototype.remove=function(l){if(!this.has(l))return this;var f=this._map&&this._map.remove(l);return this.__ownerID||f===this._map?this:Io(this,f)},bn.prototype.wasAltered=function(){return this._map.wasAltered()},bn.prototype.__iterator=function(l,f){var v=this;return c(this._defaultValues).map(function(x,E){return v.get(E)}).__iterator(l,f)},bn.prototype.__iterate=function(l,f){var v=this;return c(this._defaultValues).map(function(x,E){return v.get(E)}).__iterate(l,f)},bn.prototype.__ensureOwner=function(l){if(l===this.__ownerID)return this;var f=this._map&&this._map.__ensureOwner(l);return l?Io(this,f,l):(this.__ownerID=l,this._map=f,this)};var on=bn.prototype;on[G]=on.remove,on.deleteIn=on.removeIn=tt.removeIn,on.merge=tt.merge,on.mergeWith=tt.mergeWith,on.mergeIn=tt.mergeIn,on.mergeDeep=tt.mergeDeep,on.mergeDeepWith=tt.mergeDeepWith,on.mergeDeepIn=tt.mergeDeepIn,on.setIn=tt.setIn,on.update=tt.update,on.updateIn=tt.updateIn,on.withMutations=tt.withMutations,on.asMutable=tt.asMutable,on.asImmutable=tt.asImmutable;function Io(l,f,v){var x=Object.create(Object.getPrototypeOf(l));return x._map=f,x.__ownerID=v,x}function va(l){return l._name||l.constructor.name||"Record"}function jo(l,f){try{f.forEach(Ja.bind(void 0,l))}catch{}}function Ja(l,f){Object.defineProperty(l,f,{get:function(){return this.get(f)},set:function(v){fn(this.__ownerID,"Cannot set on an immutable record."),this.set(f,v)}})}a(Dt,er);function Dt(l){return l==null?Ho():Qi(l)&&!L(l)?l:Ho().withMutations(function(f){var v=y(l);mn(v.size),v.forEach(function(x){return f.add(x)})})}Dt.of=function(){return this(arguments)},Dt.fromKeys=function(l){return this(c(l).keySeq())},Dt.prototype.toString=function(){return this.__toString("Set {","}")},Dt.prototype.has=function(l){return this._map.has(l)},Dt.prototype.add=function(l){return To(this,this._map.set(l,!0))},Dt.prototype.remove=function(l){return To(this,this._map.remove(l))},Dt.prototype.clear=function(){return To(this,this._map.clear())},Dt.prototype.union=function(){var l=i.call(arguments,0);return l=l.filter(function(f){return f.size!==0}),l.length===0?this:this.size===0&&!this.__ownerID&&l.length===1?this.constructor(l[0]):this.withMutations(function(f){for(var v=0;v<l.length;v++)y(l[v]).forEach(function(x){return f.add(x)})})},Dt.prototype.intersect=function(){var l=i.call(arguments,0);if(l.length===0)return this;l=l.map(function(v){return y(v)});var f=this;return this.withMutations(function(v){f.forEach(function(x){l.every(function(E){return E.includes(x)})||v.remove(x)})})},Dt.prototype.subtract=function(){var l=i.call(arguments,0);if(l.length===0)return this;l=l.map(function(v){return y(v)});var f=this;return this.withMutations(function(v){f.forEach(function(x){l.some(function(E){return E.includes(x)})&&v.remove(x)})})},Dt.prototype.merge=function(){return this.union.apply(this,arguments)},Dt.prototype.mergeWith=function(l){var f=i.call(arguments,1);return this.union.apply(this,f)},Dt.prototype.sort=function(l){return h(or(this,l))},Dt.prototype.sortBy=function(l,f){return h(or(this,f,l))},Dt.prototype.wasAltered=function(){return this._map.wasAltered()},Dt.prototype.__iterate=function(l,f){var v=this;return this._map.__iterate(function(x,E){return l(E,E,v)},f)},Dt.prototype.__iterator=function(l,f){return this._map.map(function(v,x){return x}).__iterator(l,f)},Dt.prototype.__ensureOwner=function(l){if(l===this.__ownerID)return this;var f=this._map.__ensureOwner(l);return l?this.__make(f,l):(this.__ownerID=l,this._map=f,this)};function Qi(l){return!!(l&&l[ho])}Dt.isSet=Qi;var ho="@@__IMMUTABLE_SET__@@",Kn=Dt.prototype;Kn[ho]=!0,Kn[G]=Kn.remove,Kn.mergeDeep=Kn.merge,Kn.mergeDeepWith=Kn.mergeWith,Kn.withMutations=tt.withMutations,Kn.asMutable=tt.asMutable,Kn.asImmutable=tt.asImmutable,Kn.__empty=Ho,Kn.__make=mo;function To(l,f){return l.__ownerID?(l.size=f.size,l._map=f,l):f===l._map?l:f.size===0?l.__empty():l.__make(f)}function mo(l,f){var v=Object.create(Kn);return v.size=l?l.size:0,v._map=l,v.__ownerID=f,v}var zo;function Ho(){return zo||(zo=mo(Wt()))}a(h,Dt);function h(l){return l==null?V():_(l)?l:V().withMutations(function(f){var v=y(l);mn(v.size),v.forEach(function(x){return f.add(x)})})}h.of=function(){return this(arguments)},h.fromKeys=function(l){return this(c(l).keySeq())},h.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function _(l){return Qi(l)&&L(l)}h.isOrderedSet=_;var N=h.prototype;N[j]=!0,N.__empty=V,N.__make=C;function C(l,f){var v=Object.create(N);return v.size=l?l.size:0,v._map=l,v.__ownerID=f,v}var Z;function V(){return Z||(Z=C(yt()))}a(ne,Xn);function ne(l){return l==null?_n():pe(l)?l:_n().unshiftAll(l)}ne.of=function(){return this(arguments)},ne.prototype.toString=function(){return this.__toString("Stack [","]")},ne.prototype.get=function(l,f){var v=this._head;for(l=ge(this,l);v&&l--;)v=v.next;return v?v.value:f},ne.prototype.peek=function(){return this._head&&this._head.value},ne.prototype.push=function(){if(arguments.length===0)return this;for(var l=this.size+arguments.length,f=this._head,v=arguments.length-1;v>=0;v--)f={value:arguments[v],next:f};return this.__ownerID?(this.size=l,this._head=f,this.__hash=void 0,this.__altered=!0,this):Ue(l,f)},ne.prototype.pushAll=function(l){if(l=g(l),l.size===0)return this;mn(l.size);var f=this.size,v=this._head;return l.reverse().forEach(function(x){f++,v={value:x,next:v}}),this.__ownerID?(this.size=f,this._head=v,this.__hash=void 0,this.__altered=!0,this):Ue(f,v)},ne.prototype.pop=function(){return this.slice(1)},ne.prototype.unshift=function(){return this.push.apply(this,arguments)},ne.prototype.unshiftAll=function(l){return this.pushAll(l)},ne.prototype.shift=function(){return this.pop.apply(this,arguments)},ne.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):_n()},ne.prototype.slice=function(l,f){if(je(l,f,this.size))return this;var v=Ce(l,this.size),x=He(f,this.size);if(x!==this.size)return Xn.prototype.slice.call(this,l,f);for(var E=this.size-v,M=this._head;v--;)M=M.next;return this.__ownerID?(this.size=E,this._head=M,this.__hash=void 0,this.__altered=!0,this):Ue(E,M)},ne.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?Ue(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},ne.prototype.__iterate=function(l,f){if(f)return this.reverse().__iterate(l);for(var v=0,x=this._head;x&&l(x.value,v++,this)!==!1;)x=x.next;return v},ne.prototype.__iterator=function(l,f){if(f)return this.reverse().__iterator(l);var v=0,x=this._head;return new qe(function(){if(x){var E=x.value;return x=x.next,Te(l,v++,E)}return dt()})};function pe(l){return!!(l&&l[Ae])}ne.isStack=pe;var Ae="@@__IMMUTABLE_STACK__@@",Ze=ne.prototype;Ze[Ae]=!0,Ze.withMutations=tt.withMutations,Ze.asMutable=tt.asMutable,Ze.asImmutable=tt.asImmutable,Ze.wasAltered=tt.wasAltered;function Ue(l,f,v,x){var E=Object.create(Ze);return E.size=l,E._head=f,E.__ownerID=v,E.__hash=x,E.__altered=!1,E}var Mt;function _n(){return Mt||(Mt=Ue(0))}function Zt(l,f){var v=function(x){l.prototype[x]=f[x]};return Object.keys(f).forEach(v),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(f).forEach(v),l}u.Iterator=qe,Zt(u,{toArray:function(){mn(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(f,v){l[v]=f}),l},toIndexedSeq:function(){return new kn(this)},toJS:function(){return this.toSeq().map(function(l){return l&&typeof l.toJS=="function"?l.toJS():l}).__toJS()},toJSON:function(){return this.toSeq().map(function(l){return l&&typeof l.toJSON=="function"?l.toJSON():l}).__toJS()},toKeyedSeq:function(){return new rn(this,!0)},toMap:function(){return at(this.toKeyedSeq())},toObject:function(){mn(this.size);var l={};return this.__iterate(function(f,v){l[v]=f}),l},toOrderedMap:function(){return Xt(this.toKeyedSeq())},toOrderedSet:function(){return h(w(this)?this.valueSeq():this)},toSet:function(){return Dt(w(this)?this.valueSeq():this)},toSetSeq:function(){return new yn(this)},toSeq:function(){return D(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ne(w(this)?this.valueSeq():this)},toList:function(){return Ee(w(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(l,f){return this.size===0?l+f:l+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+f},concat:function(){var l=i.call(arguments,0);return ft(this,Ei(this,l))},includes:function(l){return this.some(function(f){return jt(f,l)})},entries:function(){return this.__iterator(Me)},every:function(l,f){mn(this.size);var v=!0;return this.__iterate(function(x,E,M){if(!l.call(f,x,E,M))return v=!1,!1}),v},filter:function(l,f){return ft(this,Hi(this,l,f,!0))},find:function(l,f,v){var x=this.findEntry(l,f);return x?x[1]:v},findEntry:function(l,f){var v;return this.__iterate(function(x,E,M){if(l.call(f,x,E,M))return v=[E,x],!1}),v},findLastEntry:function(l,f){return this.toSeq().reverse().findEntry(l,f)},forEach:function(l,f){return mn(this.size),this.__iterate(f?l.bind(f):l)},join:function(l){mn(this.size),l=l!==void 0?""+l:",";var f="",v=!0;return this.__iterate(function(x){v?v=!1:f+=l,f+=x!=null?x.toString():""}),f},keys:function(){return this.__iterator(fe)},map:function(l,f){return ft(this,co(this,l,f))},reduce:function(l,f,v){mn(this.size);var x,E;return arguments.length<2?E=!0:x=f,this.__iterate(function(M,z,q){E?(E=!1,x=M):x=l.call(v,x,M,z,q)}),x},reduceRight:function(l,f,v){var x=this.toKeyedSeq().reverse();return x.reduce.apply(x,arguments)},reverse:function(){return ft(this,ui(this,!0))},slice:function(l,f){return ft(this,Ai(this,l,f,!0))},some:function(l,f){return!this.every(Wa(l),f)},sort:function(l){return ft(this,or(this,l))},values:function(){return this.__iterator(ae)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(l,f){return he(l?this.toSeq().filter(l,f):this)},countBy:function(l,f){return ma(this,l,f)},equals:function(l){return _i(this,l)},entrySeq:function(){var l=this;if(l._cache)return new Bt(l._cache);var f=l.toSeq().map(fi).toIndexedSeq();return f.fromEntrySeq=function(){return l.toSeq()},f},filterNot:function(l,f){return this.filter(Wa(l),f)},findLast:function(l,f,v){return this.toKeyedSeq().reverse().find(l,f,v)},first:function(){return this.find(De)},flatMap:function(l,f){return ft(this,fo(this,l,f))},flatten:function(l){return ft(this,qi(this,l,!0))},fromEntrySeq:function(){return new Ar(this)},get:function(l,f){return this.find(function(v,x){return jt(x,l)},void 0,f)},getIn:function(l,f){for(var v=this,x=Pn(l),E;!(E=x.next()).done;){var M=E.value;if(v=v&&v.get?v.get(M,le):le,v===le)return f}return v},groupBy:function(l,f){return qr(this,l,f)},has:function(l){return this.get(l,le)!==le},hasIn:function(l){return this.getIn(l,le)!==le},isSubset:function(l){return l=typeof l.includes=="function"?l:u(l),this.every(function(f){return l.includes(f)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:u(l),l.isSubset(this)},keySeq:function(){return this.toSeq().map(ya).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(l){return wr(this,l)},maxBy:function(l,f){return wr(this,f,l)},min:function(l){return wr(this,l?ps(l):Yl)},minBy:function(l,f){return wr(this,f?ps(f):Yl,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return ft(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,f){return ft(this,ga(this,l,f,!0))},skipUntil:function(l,f){return this.skipWhile(Wa(l),f)},sortBy:function(l,f){return ft(this,or(this,f,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return ft(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,f){return ft(this,Po(this,l,f))},takeUntil:function(l,f){return this.takeWhile(Wa(l),f)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ba(this))}});var xt=u.prototype;xt[T]=!0,xt[Ct]=xt.values,xt.__toJS=xt.toArray,xt.__toStringMapper=hs,xt.inspect=xt.toSource=function(){return this.toString()},xt.chain=xt.flatMap,xt.contains=xt.includes,function(){try{Object.defineProperty(xt,"length",{get:function(){if(!u.noLengthWarning){var l;try{throw new Error}catch(f){l=f.stack}if(l.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+l),this.size}}})}catch{}}(),Zt(c,{flip:function(){return ft(this,li(this))},findKey:function(l,f){var v=this.findEntry(l,f);return v&&v[0]},findLastKey:function(l,f){return this.toSeq().reverse().findKey(l,f)},keyOf:function(l){return this.findKey(function(f){return jt(f,l)})},lastKeyOf:function(l){return this.findLastKey(function(f){return jt(f,l)})},mapEntries:function(l,f){var v=this,x=0;return ft(this,this.toSeq().map(function(E,M){return l.call(f,[M,E],x++,v)}).fromEntrySeq())},mapKeys:function(l,f){var v=this;return ft(this,this.toSeq().flip().map(function(x,E){return l.call(f,x,E,v)}).flip())}});var ci=c.prototype;ci[F]=!0,ci[Ct]=xt.entries,ci.__toJS=xt.toObject,ci.__toStringMapper=function(l,f){return JSON.stringify(f)+": "+hs(l)},Zt(g,{toKeyedSeq:function(){return new rn(this,!1)},filter:function(l,f){return ft(this,Hi(this,l,f,!1))},findIndex:function(l,f){var v=this.findEntry(l,f);return v?v[0]:-1},indexOf:function(l){var f=this.toKeyedSeq().keyOf(l);return f===void 0?-1:f},lastIndexOf:function(l){var f=this.toKeyedSeq().reverse().keyOf(l);return f===void 0?-1:f},reverse:function(){return ft(this,ui(this,!1))},slice:function(l,f){return ft(this,Ai(this,l,f,!1))},splice:function(l,f){var v=arguments.length;if(f=Math.max(f|0,0),v===0||v===2&&!f)return this;l=Ce(l,l<0?this.count():this.size);var x=this.slice(0,l);return ft(this,v===1?x:x.concat(we(arguments,2),this.slice(l+f)))},findLastIndex:function(l,f){var v=this.toKeyedSeq().findLastKey(l,f);return v===void 0?-1:v},first:function(){return this.get(0)},flatten:function(l){return ft(this,qi(this,l,!1))},get:function(l,f){return l=ge(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?f:this.find(function(v,x){return x===l},void 0,f)},has:function(l){return l=ge(this,l),l>=0&&(this.size!==void 0?this.size===1/0||l<this.size:this.indexOf(l)!==-1)},interpose:function(l){return ft(this,Nn(this,l))},interleave:function(){var l=[this].concat(we(arguments)),f=po(this.toSeq(),ut.of,l),v=f.flatten(!0);return f.size&&(v.size=f.size*l.length),ft(this,v)},last:function(){return this.get(-1)},skipWhile:function(l,f){return ft(this,ga(this,l,f,!1))},zip:function(){var l=[this].concat(we(arguments));return ft(this,po(this,ms,l))},zipWith:function(l){var f=we(arguments);return f[0]=this,ft(this,po(this,l,f))}}),g.prototype[R]=!0,g.prototype[j]=!0,Zt(y,{get:function(l,f){return this.has(l)?l:f},includes:function(l){return this.has(l)},keySeq:function(){return this.valueSeq()}}),y.prototype.has=xt.includes,Zt(st,c.prototype),Zt(ut,g.prototype),Zt(Pt,y.prototype),Zt(Qn,c.prototype),Zt(Xn,g.prototype),Zt(er,y.prototype);function ya(l,f){return f}function fi(l,f){return[f,l]}function Wa(l){return function(){return!l.apply(this,arguments)}}function ps(l){return function(){return-l.apply(this,arguments)}}function hs(l){return typeof l=="string"?JSON.stringify(l):l}function ms(){return we(arguments)}function Yl(l,f){return l<f?1:l>f?-1:0}function ba(l){if(l.size===1/0)return 0;var f=L(l),v=w(l),x=f?1:0,E=l.__iterate(v?f?function(M,z){x=31*x+gs(Tt(M),Tt(z))|0}:function(M,z){x=x+gs(Tt(M),Tt(z))|0}:f?function(M){x=31*x+Tt(M)|0}:function(M){x=x+Tt(M)|0});return _a(E,x)}function _a(l,f){return f=En(f,3432918353),f=En(f<<15|f>>>-15,461845907),f=En(f<<13|f>>>-13,5),f=(f+3864292196|0)^l,f=En(f^f>>>16,2246822507),f=En(f^f>>>13,3266489909),f=Mr(f^f>>>16),f}function gs(l,f){return l^f+2654435769+(l<<6)+(l>>2)|0}var Ga={Iterable:u,Seq:Xe,Collection:it,Map:at,OrderedMap:Xt,List:Ee,Stack:ne,Set:Dt,OrderedSet:h,Record:bn,Range:qt,Repeat:Jt,is:jt,fromJS:tn};return Ga})})(S_);var x_=mt,E_=x_.OrderedMap,k_={createFromArray:function(t){return E_(t.map(function(r){return[r.getKey(),r]}))}},Sl=k_;function N_(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var hc=mt,mc=hc.Map,gc=hc.OrderedSet,O_=hc.Record,bp=gc(),_p={style:bp,entity:null},D_=O_(_p),vc=function(t){N_(r,t);function r(){return t.apply(this,arguments)||this}var i=r.prototype;return i.getStyle=function(){return this.get("style")},i.getEntity=function(){return this.get("entity")},i.hasStyle=function(a){return this.getStyle().includes(a)},r.applyStyle=function(a,u){var c=a.set("style",a.getStyle().add(u));return r.create(c)},r.removeStyle=function(a,u){var c=a.set("style",a.getStyle().remove(u));return r.create(c)},r.applyEntity=function(a,u){var c=a.getEntity()===u?a:a.set("entity",u);return r.create(c)},r.create=function(a){if(!a)return yc;var u={style:bp,entity:null},c=mc(u).merge(a),g=bc.get(c);if(g)return g;var y=new r(c);return bc=bc.set(c,y),y},r.fromJS=function(a){var u=a.style,c=a.entity;return new r({style:Array.isArray(u)?gc(u):u,entity:Array.isArray(c)?gc(c):c})},r}(D_),yc=new vc,bc=mc([[mc(_p),yc]]);vc.EMPTY=yc;var $r=vc;function M_(t,r,i,a){if(t.size){var u=0;t.reduce(function(c,g,y){return r(c,g)||(i(c)&&a(u,y),u=y),g}),i(t.last())&&a(u,t.count())}}var xl=M_;function L_(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var C_=$r,wp=xl,El=mt,Sp=El.List,B_=El.Map,F_=El.OrderedSet,P_=El.Record,K_=El.Repeat,R_=F_(),I_={key:"",type:"unstyled",text:"",characterList:Sp(),depth:0,data:B_()},j_=P_(I_),T_=function(t){if(!t)return t;var r=t.characterList,i=t.text;return i&&!r&&(t.characterList=Sp(K_(C_.EMPTY,i.length))),t},z_=function(t){L_(r,t);function r(a){return t.call(this,T_(a))||this}var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(a){var u=this.getCharacterList().get(a);return u?u.getStyle():R_},i.getEntityAt=function(a){var u=this.getCharacterList().get(a);return u?u.getEntity():null},i.findStyleRanges=function(a,u){wp(this.getCharacterList(),H_,a,u)},i.findEntityRanges=function(a,u){wp(this.getCharacterList(),A_,a,u)},r}(j_);function H_(t,r){return t.getStyle()===r.getStyle()}function A_(t,r){return t.getEntity()===r.getEntity()}var ra=z_;function q_(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var U_=$r,xp=xl,kl=mt,_c=kl.List,V_=kl.Map,Q_=kl.OrderedSet,X_=kl.Record,Z_=kl.Repeat,$_=Q_(),Ep={parent:null,characterList:_c(),data:V_(),depth:0,key:"",text:"",type:"unstyled",children:_c(),prevSibling:null,nextSibling:null},Y_=function(t,r){return t.getStyle()===r.getStyle()},J_=function(t,r){return t.getEntity()===r.getEntity()},W_=function(t){if(!t)return t;var r=t.characterList,i=t.text;return i&&!r&&(t.characterList=_c(Z_(U_.EMPTY,i.length))),t},G_=function(t){q_(r,t);function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ep;return t.call(this,W_(a))||this}var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(a){var u=this.getCharacterList().get(a);return u?u.getStyle():$_},i.getEntityAt=function(a){var u=this.getCharacterList().get(a);return u?u.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(a,u){xp(this.getCharacterList(),Y_,a,u)},i.findEntityRanges=function(a,u){xp(this.getCharacterList(),J_,a,u)},r}(X_(Ep)),Yr=G_,kp=$r,e1=mt,t1=e1.Map,n1={add:function(t,r,i){return Np(t,r,i,!0)},remove:function(t,r,i){return Np(t,r,i,!1)}};function Np(t,r,i,a){var u=t.getBlockMap(),c=r.getStartKey(),g=r.getStartOffset(),y=r.getEndKey(),b=r.getEndOffset(),w=u.skipUntil(function(D,K){return K===c}).takeUntil(function(D,K){return K===y}).concat(t1([[y,u.get(y)]])).map(function(D,K){var L,T;c===y?(L=g,T=b):(L=K===c?g:0,T=K===y?b:D.getLength());for(var F=D.getCharacterList(),R;L<T;)R=F.get(L),F=F.set(L,a?kp.applyStyle(R,i):kp.removeStyle(R,i)),L++;return D.set("characterList",F)});return t.merge({blockMap:u.merge(w),selectionBefore:r,selectionAfter:r})}var r1=n1,i1=$r;function o1(t,r,i,a){for(var u=r,c=t.getCharacterList();u<i;)c=c.set(u,i1.applyEntity(c.get(u),a)),u++;return t.set("characterList",c)}var a1=o1,l1=a1,u1=mt;function s1(t,r,i){var a=t.getBlockMap(),u=r.getStartKey(),c=r.getStartOffset(),g=r.getEndKey(),y=r.getEndOffset(),b=a.skipUntil(function(w,D){return D===u}).takeUntil(function(w,D){return D===g}).toOrderedMap().merge(u1.OrderedMap([[g,a.get(g)]])).map(function(w,D){var K=D===u?c:0,L=D===g?y:w.getLength();return l1(w,K,L,i)});return t.merge({blockMap:a.merge(b),selectionBefore:r,selectionAfter:r})}var c1=s1,f1={getRemovalRange:function(t,r,i,a,u){var c=i.split(" ");c=c.map(function(R,j){if(u==="forward"){if(j>0)return" "+R}else if(j<c.length-1)return R+" ";return R});for(var g=a,y,b,w=null,D=null,K=0;K<c.length;K++){if(b=c[K],y=g+b.length,t<y&&g<r)w!==null||(w=g),D=y;else if(w!==null)break;g=y}var L=a+i.length,T=w===a,F=D===L;return(!T&&F||T&&!F)&&(u==="forward"?D!==L&&D++:w!==a&&w--),{start:w,end:D}}},d1=f1;function p1(t,r){for(var i=arguments.length,a=new Array(i>2?i-2:0),u=2;u<i;u++)a[u-2]=arguments[u];if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=0;c=new Error(r.replace(/%s/g,function(){return String(a[g++])})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var wt=p1,h1=wt;function m1(t,r){var i=[];return t.findEntityRanges(function(a){return a.getEntity()===r},function(a,u){i.push({start:a,end:u})}),i.length||h1(!1),i}var g1=m1,v1=d1,y1=g1,b1=wt;function _1(t,r,i,a,u){var c=a.getStartOffset(),g=a.getEndOffset(),y=r.getEntityAt(c),b=i.getEntityAt(g-1);if(!y&&!b)return a;var w=a;if(y&&y===b)w=Nl(t,r,w,u,y,!0,!0);else if(y&&b){var D=Nl(t,r,w,u,y,!1,!0),K=Nl(t,i,w,u,b,!1,!1);w=w.merge({anchorOffset:D.getAnchorOffset(),focusOffset:K.getFocusOffset(),isBackward:!1})}else if(y){var L=Nl(t,r,w,u,y,!1,!0);w=w.merge({anchorOffset:L.getStartOffset(),isBackward:!1})}else if(b){var T=Nl(t,i,w,u,b,!1,!1);w=w.merge({focusOffset:T.getEndOffset(),isBackward:!1})}return w}function Nl(t,r,i,a,u,c,g){var y=i.getStartOffset(),b=i.getEndOffset(),w=t.__get(u),D=w.getMutability(),K=g?y:b;if(D==="MUTABLE")return i;var L=y1(r,u).filter(function(R){return K<=R.end&&K>=R.start});L.length!=1&&b1(!1);var T=L[0];if(D==="IMMUTABLE")return i.merge({anchorOffset:T.start,focusOffset:T.end,isBackward:!1});c||(g?b=T.end:y=T.start);var F=v1.getRemovalRange(y,b,r.getText().slice(T.start,T.end),T.start,a);return i.merge({anchorOffset:F.start,focusOffset:F.end,isBackward:!1})}var w1=_1,Op={},S1=Math.pow(2,24);function x1(){for(var t;t===void 0||Op.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*S1).toString(32);return Op[t]=!0,t}var Li=x1,E1=Yr,Dp=Li,k1=mt,Mp=k1.OrderedMap,N1=function(t){var r={},i;return Mp(t.withMutations(function(a){a.forEach(function(u,c){var g=u.getKey(),y=u.getNextSiblingKey(),b=u.getPrevSiblingKey(),w=u.getChildKeys(),D=u.getParentKey(),K=Dp();if(r[g]=K,y){var L=a.get(y);L?a.setIn([y,"prevSibling"],K):a.setIn([g,"nextSibling"],null)}if(b){var T=a.get(b);T?a.setIn([b,"nextSibling"],K):a.setIn([g,"prevSibling"],null)}if(D&&a.get(D)){var F=a.get(D),R=F.getChildKeys();a.setIn([D,"children"],R.set(R.indexOf(u.getKey()),K))}else a.setIn([g,"parent"],null),i&&(a.setIn([i.getKey(),"nextSibling"],K),a.setIn([g,"prevSibling"],r[i.getKey()])),i=a.get(g);w.forEach(function(j){var G=a.get(j);G?a.setIn([j,"parent"],K):a.setIn([g,"children"],u.getChildKeys().filter(function(Y){return Y!==j}))})})}).toArray().map(function(a){return[r[a.getKey()],a.set("key",r[a.getKey()])]}))},O1=function(t){return Mp(t.toArray().map(function(r){var i=Dp();return[i,r.set("key",i)]}))},D1=function(t){var r=t.first()instanceof E1;return r?N1(t):O1(t)},Lp=D1,M1=$r,L1=xl,C1=wt;function B1(t,r){var i=t.getBlockMap(),a=t.getEntityMap(),u={},c=r.getStartKey(),g=r.getStartOffset(),y=i.get(c),b=Cp(a,y,g);b!==y&&(u[c]=b);var w=r.getEndKey(),D=r.getEndOffset(),K=i.get(w);c===w&&(K=b);var L=Cp(a,K,D);return L!==K&&(u[w]=L),Object.keys(u).length?t.merge({blockMap:i.merge(u),selectionAfter:r}):t.set("selectionAfter",r)}function F1(t,r,i){var a;return L1(t,function(u,c){return u.getEntity()===c.getEntity()},function(u){return u.getEntity()===r},function(u,c){u<=i&&c>=i&&(a={start:u,end:c})}),typeof a!="object"&&C1(!1),a}function Cp(t,r,i){var a=r.getCharacterList(),u=i>0?a.get(i-1):void 0,c=i<a.count()?a.get(i):void 0,g=u?u.getEntity():void 0,y=c?c.getEntity():void 0;if(y&&y===g){var b=t.__get(y);if(b.getMutability()!=="MUTABLE"){for(var w=F1(a,y,i),D=w.start,K=w.end,L;D<K;)L=a.get(D),a=a.set(D,M1.applyEntity(L,null)),D++;return r.set("characterList",a)}}return r}var Bp=B1,P1=Lp,K1=Bp,R1=function(t,r){var i=r.getStartKey(),a=r.getStartOffset(),u=r.getEndKey(),c=r.getEndOffset(),g=K1(t,r),y=g.getBlockMap(),b=y.keySeq(),w=b.indexOf(i),D=b.indexOf(u)+1;return P1(y.slice(w,D).map(function(K,L){var T=K.getText(),F=K.getCharacterList();return i===u?K.merge({text:T.slice(a,c),characterList:F.slice(a,c)}):L===i?K.merge({text:T.slice(a),characterList:F.slice(a)}):L===u?K.merge({text:T.slice(0,c),characterList:F.slice(0,c)}):K}))},yu=R1;function I1(t,r,i){var a=t;if(i===a.count())r.forEach(function(g){a=a.push(g)});else if(i===0)r.reverse().forEach(function(g){a=a.unshift(g)});else{var u=a.slice(0,i),c=a.slice(i);a=u.concat(r,c).toList()}return a}var Fp=I1,j1=Sl,Pp=Yr,T1=mt,z1=Fp,Kp=wt,H1=Lp,A1=T1.List,q1=function(t,r,i,a,u,c){var g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",y=i.get(u),b=y.getText(),w=y.getCharacterList(),D=u,K=c+a.getText().length,L=null;switch(g){case"MERGE_OLD_DATA_TO_NEW_DATA":L=a.getData().merge(y.getData());break;case"REPLACE_WITH_NEW_DATA":L=a.getData();break}var T=y.getType();b&&T==="unstyled"&&(T=a.getType());var F=y.merge({text:b.slice(0,c)+a.getText()+b.slice(c),characterList:z1(w,a.getCharacterList(),c),type:T,data:L});return t.merge({blockMap:i.set(u,F),selectionBefore:r,selectionAfter:r.merge({anchorKey:D,anchorOffset:K,focusKey:D,focusOffset:K,isBackward:!1})})},U1=function(t,r,i){var a=t.getText(),u=t.getCharacterList(),c=a.slice(0,r),g=u.slice(0,r),y=i.first();return t.merge({text:c+y.getText(),characterList:g.concat(y.getCharacterList()),type:c?t.getType():y.getType(),data:y.getData()})},V1=function(t,r,i){var a=t.getText(),u=t.getCharacterList(),c=a.length,g=a.slice(r,c),y=u.slice(r,c),b=i.last();return b.merge({text:b.getText()+g,characterList:b.getCharacterList().concat(y),data:b.getData()})},Q1=function(t,r){var i=t.getKey(),a=t,u=[];for(r.get(i)&&u.push(i);a&&a.getNextSiblingKey();){var c=a.getNextSiblingKey();if(!c)break;u.push(c),a=r.get(c)}return u},X1=function(t,r,i,a){return t.withMutations(function(u){var c=i.getKey(),g=a.getKey(),y=i.getNextSiblingKey(),b=i.getParentKey(),w=Q1(a,t),D=w[w.length-1];if(u.get(g)?(u.setIn([c,"nextSibling"],g),u.setIn([g,"prevSibling"],c)):(u.setIn([c,"nextSibling"],a.getNextSiblingKey()),u.setIn([a.getNextSiblingKey(),"prevSibling"],c)),u.setIn([D,"nextSibling"],y),y&&u.setIn([y,"prevSibling"],D),w.forEach(function(j){return u.setIn([j,"parent"],b)}),b){var K=t.get(b),L=K.getChildKeys(),T=L.indexOf(c),F=T+1,R=L.toArray();R.splice.apply(R,[F,0].concat(w)),u.setIn([b,"children"],A1(R))}})},Z1=function(t,r,i,a,u,c){var g=i.first()instanceof Pp,y=[],b=a.size,w=i.get(u),D=a.first(),K=a.last(),L=K.getLength(),T=K.getKey(),F=g&&(!w.getChildKeys().isEmpty()||!D.getChildKeys().isEmpty());i.forEach(function(j,G){if(G!==u){y.push(j);return}F?y.push(j):y.push(U1(j,c,a)),a.slice(F?0:1,b-1).forEach(function(Y){return y.push(Y)}),y.push(V1(j,c,a))});var R=j1.createFromArray(y);return g&&(R=X1(R,i,w,D)),t.merge({blockMap:R,selectionBefore:r,selectionAfter:r.merge({anchorKey:T,anchorOffset:L,focusKey:T,focusOffset:L,isBackward:!1})})},$1=function(t,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||Kp(!1);var u=t.getBlockMap(),c=H1(i),g=r.getStartKey(),y=r.getStartOffset(),b=u.get(g);return b instanceof Pp&&(b.getChildKeys().isEmpty()||Kp(!1)),c.size===1?q1(t,r,u,c.first(),g,y,a):Z1(t,r,u,c,g,y)},Y1=$1,J1=mt,W1=Fp,G1=wt,ew=J1.Repeat;function tw(t,r,i,a){r.isCollapsed()||G1(!1);var u=null;if(i!=null&&(u=i.length),u==null||u===0)return t;var c=t.getBlockMap(),g=r.getStartKey(),y=r.getStartOffset(),b=c.get(g),w=b.getText(),D=b.merge({text:w.slice(0,y)+i+w.slice(y,b.getLength()),characterList:W1(b.getCharacterList(),ew(a,u).toList(),y)}),K=y+u;return t.merge({blockMap:c.set(g,D),selectionAfter:r.merge({anchorOffset:K,focusOffset:K})})}var nw=tw,rw=mt,iw=rw.Map;function ow(t,r,i){var a=r.getStartKey(),u=r.getEndKey(),c=t.getBlockMap(),g=c.toSeq().skipUntil(function(y,b){return b===a}).takeUntil(function(y,b){return b===u}).concat(iw([[u,c.get(u)]])).map(i);return t.merge({blockMap:c.merge(g),selectionBefore:r,selectionAfter:r})}var Rp=ow,aw=Yr,lw=function(t,r){var i=t instanceof aw;if(!i)return null;var a=t.getNextSiblingKey();if(a)return a;var u=t.getParentKey();if(!u)return null;for(var c=r.get(u);c&&!c.getNextSiblingKey();){var g=c.getParentKey();c=g?r.get(g):null}return c?c.getNextSiblingKey():null},Ip=lw,uw=Yr,wc=Ip,jp=mt;jp.List;var Tp=jp.Map,ur=function(t,r,i){if(t){var a=r.get(t);a&&r.set(t,i(a))}},bu=function(t,r){var i=[];if(!t)return i;for(var a=r.get(t);a&&a.getParentKey();){var u=a.getParentKey();u&&i.push(u),a=u?r.get(u):null}return i},sw=function(t,r){var i=[];if(!t)return i;for(var a=wc(t,r);a&&r.get(a);){var u=r.get(a);i.push(a),a=u.getParentKey()?wc(u,r):null}return i},Ka=function(t,r,i){if(!t)return null;for(var a=i.get(t.getKey()).getNextSiblingKey();a&&!r.get(a);)a=i.get(a).getNextSiblingKey()||null;return a},Ra=function(t,r,i){if(!t)return null;for(var a=i.get(t.getKey()).getPrevSiblingKey();a&&!r.get(a);)a=i.get(a).getPrevSiblingKey()||null;return a},cw=function(t,r,i,a){return t.withMutations(function(u){if(ur(r.getKey(),u,function(w){return w.merge({nextSibling:Ka(w,u,a),prevSibling:Ra(w,u,a)})}),ur(i.getKey(),u,function(w){return w.merge({nextSibling:Ka(w,u,a),prevSibling:Ra(w,u,a)})}),bu(r.getKey(),a).forEach(function(w){return ur(w,u,function(D){return D.merge({children:D.getChildKeys().filter(function(K){return u.get(K)}),nextSibling:Ka(D,u,a),prevSibling:Ra(D,u,a)})})}),ur(r.getNextSiblingKey(),u,function(w){return w.merge({prevSibling:r.getPrevSiblingKey()})}),ur(r.getPrevSiblingKey(),u,function(w){return w.merge({nextSibling:Ka(w,u,a)})}),ur(i.getNextSiblingKey(),u,function(w){return w.merge({prevSibling:Ra(w,u,a)})}),ur(i.getPrevSiblingKey(),u,function(w){return w.merge({nextSibling:i.getNextSiblingKey()})}),bu(i.getKey(),a).forEach(function(w){ur(w,u,function(D){return D.merge({children:D.getChildKeys().filter(function(K){return u.get(K)}),nextSibling:Ka(D,u,a),prevSibling:Ra(D,u,a)})})}),sw(i,a).forEach(function(w){return ur(w,u,function(D){return D.merge({nextSibling:Ka(D,u,a),prevSibling:Ra(D,u,a)})})}),t.get(r.getKey())==null&&t.get(i.getKey())!=null&&i.getParentKey()===r.getKey()&&i.getPrevSiblingKey()==null){var c=r.getPrevSiblingKey();ur(i.getKey(),u,function(w){return w.merge({prevSibling:c})}),ur(c,u,function(w){return w.merge({nextSibling:i.getKey()})});var g=c?t.get(c):null,y=g?g.getParentKey():null;if(r.getChildKeys().forEach(function(w){ur(w,u,function(D){return D.merge({parent:y})})}),y!=null){var b=t.get(y);ur(y,u,function(w){return w.merge({children:b.getChildKeys().concat(r.getChildKeys())})})}ur(r.getChildKeys().find(function(w){var D=t.get(w);return D.getNextSiblingKey()===null}),u,function(w){return w.merge({nextSibling:r.getNextSiblingKey()})})}})},fw=function(t,r){if(r.isCollapsed())return t;var i=t.getBlockMap(),a=r.getStartKey(),u=r.getStartOffset(),c=r.getEndKey(),g=r.getEndOffset(),y=i.get(a),b=i.get(c),w=y instanceof uw,D=[];if(w){var K=b.getChildKeys(),L=bu(c,i);b.getNextSiblingKey()&&(D=D.concat(L)),K.isEmpty()||(D=D.concat(L.concat([c]))),D=D.concat(bu(wc(b,i),i))}var T;y===b?T=dw(y.getCharacterList(),u,g):T=y.getCharacterList().slice(0,u).concat(b.getCharacterList().slice(g));var F=y.merge({text:y.getText().slice(0,u)+b.getText().slice(g),characterList:T}),R=w&&u===0&&g===0&&b.getParentKey()===a&&b.getPrevSiblingKey()==null,j=R?Tp([[a,null]]):i.toSeq().skipUntil(function(Y,W){return W===a}).takeUntil(function(Y,W){return W===c}).filter(function(Y,W){return D.indexOf(W)===-1}).concat(Tp([[c,null]])).map(function(Y,W){return W===a?F:null}),G=i.merge(j).filter(function(Y){return!!Y});return w&&y!==b&&(G=cw(G,y,b,i)),t.merge({blockMap:G,selectionBefore:r,selectionAfter:r.merge({anchorKey:a,anchorOffset:u,focusKey:a,focusOffset:u,isBackward:!1})})},dw=function(t,r,i){if(r===0)for(;r<i;)t=t.shift(),r++;else if(i===t.count())for(;i>r;)t=t.pop(),i--;else{var a=t.slice(0,r),u=t.slice(i);t=a.concat(u).toList()}return t},pw=fw,hw=Yr,mw=Li,zp=mt,Hp=wt,gw=Rp,vw=zp.List,yw=zp.Map,_u=function(t,r,i){if(t){var a=r.get(t);a&&r.set(t,i(a))}},bw=function(t,r,i){return t.withMutations(function(a){var u=r.getKey(),c=i.getKey();_u(r.getParentKey(),a,function(g){var y=g.getChildKeys(),b=y.indexOf(u)+1,w=y.toArray();return w.splice(b,0,c),g.merge({children:vw(w)})}),_u(r.getNextSiblingKey(),a,function(g){return g.merge({prevSibling:c})}),_u(u,a,function(g){return g.merge({nextSibling:c})}),_u(c,a,function(g){return g.merge({prevSibling:u})})})},_w=function(t,r){r.isCollapsed()||Hp(!1);var i=r.getAnchorKey(),a=t.getBlockMap(),u=a.get(i),c=u.getText();if(!c){var g=u.getType();if(g==="unordered-list-item"||g==="ordered-list-item")return gw(t,r,function(j){return j.merge({type:"unstyled",depth:0})})}var y=r.getAnchorOffset(),b=u.getCharacterList(),w=mw(),D=u instanceof hw,K=u.merge({text:c.slice(0,y),characterList:b.slice(0,y)}),L=K.merge({key:w,text:c.slice(y),characterList:b.slice(y),data:yw()}),T=a.toSeq().takeUntil(function(j){return j===u}),F=a.toSeq().skipUntil(function(j){return j===u}).rest(),R=T.concat([[i,K],[w,L]],F).toOrderedMap();return D&&(u.getChildKeys().isEmpty()||Hp(!1),R=bw(R,K,L)),t.merge({blockMap:R,selectionBefore:r,selectionAfter:r.merge({anchorKey:w,anchorOffset:0,focusKey:w,focusOffset:0,isBackward:!1})})},ww=_w,Sw=$r,Ap=r1,xw=c1,Ew=w1,kw=yu,Nw=mt,Ow=Y1,Dw=nw,Mw=wt,Sc=Rp,Ol=Bp,Dl=pw,Lw=ww,Cw=Nw.OrderedSet,wu={replaceText:function(t,r,i,a,u){var c=Ol(t,r),g=Dl(c,r),y=Sw.create({style:a||Cw(),entity:u||null});return Dw(g,g.getSelectionAfter(),i,y)},insertText:function(t,r,i,a,u){return r.isCollapsed()||Mw(!1),wu.replaceText(t,r,i,a,u)},moveText:function(t,r,i){var a=kw(t,r),u=wu.removeRange(t,r,"backward");return wu.replaceWithFragment(u,i,a)},replaceWithFragment:function(t,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",u=Ol(t,r),c=Dl(u,r);return Ow(c,c.getSelectionAfter(),i,a)},removeRange:function(t,r,i){var a,u,c,g;r.getIsBackward()&&(r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:!1})),a=r.getAnchorKey(),u=r.getFocusKey(),c=t.getBlockForKey(a),g=t.getBlockForKey(u);var y=r.getStartOffset(),b=r.getEndOffset(),w=c.getEntityAt(y),D=g.getEntityAt(b-1);if(a===u&&w&&w===D){var K=Ew(t.getEntityMap(),c,g,r,i);return Dl(t,K)}var L=Ol(t,r);return Dl(L,r)},splitBlock:function(t,r){var i=Ol(t,r),a=Dl(i,r);return Lw(a,a.getSelectionAfter())},applyInlineStyle:function(t,r,i){return Ap.add(t,r,i)},removeInlineStyle:function(t,r,i){return Ap.remove(t,r,i)},setBlockType:function(t,r,i){return Sc(t,r,function(a){return a.merge({type:i,depth:0})})},setBlockData:function(t,r,i){return Sc(t,r,function(a){return a.merge({data:i})})},mergeBlockData:function(t,r,i){return Sc(t,r,function(a){return a.merge({data:a.getData().merge(i)})})},applyEntity:function(t,r,i){var a=Ol(t,r);return xw(a,r,i)}},sr=wu;function Bw(t){return Object.keys(t).map(function(r){return t[r]})}var qp=Bw;function Fw(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){Pw(t,u,i[u])})}return t}function Pw(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Kw(t,r){if(t==null)return{};var i={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}var Up=xl,Rw=qp,xc=mt,Ia=xc.List,Iw=xc.Repeat,Vp=xc.Record,Qp=function(){return!0},jw={start:null,end:null},Ec=Vp(jw),Tw={start:null,end:null,decoratorKey:null,leaves:null},kc=Vp(Tw),zw={generate:function(t,r,i){var a=r.getLength();if(!a)return Ia.of(new kc({start:0,end:0,decoratorKey:null,leaves:Ia.of(new Ec({start:0,end:0}))}));var u=[],c=i?i.getDecorations(r,t):Ia(Iw(null,a)),g=r.getCharacterList();return Up(c,Xp,Qp,function(y,b){u.push(new kc({start:y,end:b,decoratorKey:c.get(y),leaves:Hw(g.slice(y,b).toList(),y)}))}),Ia(u)},fromJS:function(t){var r=t.leaves,i=Kw(t,["leaves"]);return new kc(Fw({},i,{leaves:r!=null?Ia(Array.isArray(r)?r:Rw(r)).map(function(a){return Ec(a)}):null}))}};function Hw(t,r){var i=[],a=t.map(function(u){return u.getStyle()}).toList();return Up(a,Xp,Qp,function(u,c){i.push(new Ec({start:u+r,end:c+r}))}),Ia(i)}function Xp(t,r){return t===r}var Aw=zw;function qw(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var Uw=mt,Vw=Uw.Record,Qw=Vw({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),Xw=function(t){qw(r,t);function r(){return t.apply(this,arguments)||this}var i=r.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},r}(Qw),Zp=Xw;function Zw(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,i=t=="x"?r:r&3|8;return i.toString(16)})}var $w=Zw;function Yw(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){Jw(t,u,i[u])})}return t}function Jw(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var Ww=Zp,Gw=mt,eS=wt,Nc=$w,tS=Gw.Map,Ji=tS(),Ml=Nc();function ja(t,r){console.warn("WARNING: "+t+` will be deprecated soon!
|
|
6
|
-
Please use "`+r+'" instead.')}var
|
|
7
|
-
`)},i.getLastCreatedEntityKey=function(){return Bi.__getLastCreatedEntityKey()},i.hasText=function(){var a=this.getBlockMap();return a.size>1||escape(a.first().getText()).replace(/%u200B/g,"").length>0},i.createEntity=function(a,u,c){return Bi.__create(a,u,c),this},i.mergeEntityData=function(a,u){return Bi.__mergeData(a,u),this},i.replaceEntityData=function(a,u){return Bi.__replaceData(a,u),this},i.addEntity=function(a){return Bi.__add(a),this},i.getEntity=function(a){return Bi.__get(a)},i.getAllEntities=function(){return Bi.__getAll()},i.loadWithEntities=function(a){return Bi.__loadWithEntities(a)},r.createFromBlockArray=function(a,u){var c=Array.isArray(a)?a:a.contentBlocks,g=dS.createFromArray(c),y=g.isEmpty()?new Eu:Eu.createEmpty(g.first().getKey());return new r({blockMap:g,entityMap:u||Bi,selectionBefore:y,selectionAfter:y})},r.createFromText=function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,c=a.split(u),g=c.map(function(y){return y=yS(y),new Gp({key:mS(),text:y,type:"unstyled",characterList:Wp(_S(Jp.EMPTY,y.length))})});return r.createFromBlockArray(g)},r.fromJS=function(a){return new r(Yp({},a,{blockMap:SS(a.blockMap).map(r.createContentBlockFromJS),selectionBefore:new Eu(a.selectionBefore),selectionAfter:new Eu(a.selectionAfter)}))},r.createContentBlockFromJS=function(a){var u=a.characterList;return new Gp(Yp({},a,{data:wS(a.data),characterList:u!=null?Wp((Array.isArray(u)?u:gS(u)).map(function(c){return Jp.fromJS(c)})):void 0}))},r}(ES),Oc=kS,ku=wt,NS="NEUTRAL",Nu="LTR",eh="RTL",Ou=null;function Du(t){return t===Nu||t===eh}function th(t){return Du(t)||ku(!1),t===Nu?"ltr":"rtl"}function OS(t,r){return Du(t)||ku(!1),Du(r)||ku(!1),t===r?null:th(t)}function nh(t){Ou=t}function DS(){nh(Nu)}function MS(){return Ou||this.initGlobalDir(),Ou||ku(!1),Ou}var LS={NEUTRAL:NS,LTR:Nu,RTL:eh,isStrong:Du,getHTMLDir:th,getHTMLDirIfDifferent:OS,setGlobalDir:nh,initGlobalDir:DS,getGlobalDir:MS},Mu=LS,Wi=Mu,CS=wt,Cl={L:"A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u01BA\u01BB\u01BC-\u01BF\u01C0-\u01C3\u01C4-\u0293\u0294\u0295-\u02AF\u02B0-\u02B8\u02BB-\u02C1\u02D0-\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377\u037A\u037B-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0482\u048A-\u052F\u0531-\u0556\u0559\u055A-\u055F\u0561-\u0587\u0589\u0903\u0904-\u0939\u093B\u093D\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096F\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09CE\u09D7\u09DC-\u09DD\u09DF-\u09E1\u09E6-\u09EF\u09F0-\u09F1\u09F4-\u09F9\u09FA\u0A03\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0AD0\u0AE0-\u0AE1\u0AE6-\u0AEF\u0AF0\u0B02-\u0B03\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0B5C-\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B70\u0B71\u0B72-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BEF\u0BF0-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C59\u0C60-\u0C61\u0C66-\u0C6F\u0C7F\u0C82-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CBE\u0CBF\u0CC0-\u0CC4\u0CC6\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0CDE\u0CE0-\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF2\u0D02-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D57\u0D60-\u0D61\u0D66-\u0D6F\u0D70-\u0D75\u0D79\u0D7A-\u0D7F\u0D82-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0DF4\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E46\u0E4F\u0E50-\u0E59\u0E5A-\u0E5B\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F01-\u0F03\u0F04-\u0F12\u0F13\u0F14\u0F15-\u0F17\u0F1A-\u0F1F\u0F20-\u0F29\u0F2A-\u0F33\u0F34\u0F36\u0F38\u0F3E-\u0F3F\u0F40-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FCF\u0FD0-\u0FD4\u0FD5-\u0FD8\u0FD9-\u0FDA\u1000-\u102A\u102B-\u102C\u1031\u1038\u103B-\u103C\u103F\u1040-\u1049\u104A-\u104F\u1050-\u1055\u1056-\u1057\u105A-\u105D\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106D\u106E-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108C\u108E\u108F\u1090-\u1099\u109A-\u109C\u109E-\u109F\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FB\u10FC\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u1368\u1369-\u137C\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166D-\u166E\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EB-\u16ED\u16EE-\u16F0\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7-\u17C8\u17D4-\u17D6\u17D7\u17D8-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1946-\u194F\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C0\u19C1-\u19C7\u19C8-\u19C9\u19D0-\u19D9\u19DA\u1A00-\u1A16\u1A19-\u1A1A\u1A1E-\u1A1F\u1A20-\u1A54\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AA6\u1AA7\u1AA8-\u1AAD\u1B04\u1B05-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B45-\u1B4B\u1B50-\u1B59\u1B5A-\u1B60\u1B61-\u1B6A\u1B74-\u1B7C\u1B82\u1B83-\u1BA0\u1BA1\u1BA6-\u1BA7\u1BAA\u1BAE-\u1BAF\u1BB0-\u1BB9\u1BBA-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1BFC-\u1BFF\u1C00-\u1C23\u1C24-\u1C2B\u1C34-\u1C35\u1C3B-\u1C3F\u1C40-\u1C49\u1C4D-\u1C4F\u1C50-\u1C59\u1C5A-\u1C77\u1C78-\u1C7D\u1C7E-\u1C7F\u1CC0-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF2-\u1CF3\u1CF5-\u1CF6\u1D00-\u1D2B\u1D2C-\u1D6A\u1D6B-\u1D77\u1D78\u1D79-\u1D9A\u1D9B-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2134\u2135-\u2138\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C7B\u2C7C-\u2C7D\u2C7E-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005\u3006\u3007\u3021-\u3029\u302E-\u302F\u3031-\u3035\u3038-\u303A\u303B\u303C\u3041-\u3096\u309D-\u309E\u309F\u30A1-\u30FA\u30FC-\u30FE\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u3191\u3192-\u3195\u3196-\u319F\u31A0-\u31BA\u31F0-\u31FF\u3200-\u321C\u3220-\u3229\u322A-\u3247\u3248-\u324F\u3260-\u327B\u327F\u3280-\u3289\u328A-\u32B0\u32C0-\u32CB\u32D0-\u32FE\u3300-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA014\uA015\uA016-\uA48C\uA4D0-\uA4F7\uA4F8-\uA4FD\uA4FE-\uA4FF\uA500-\uA60B\uA60C\uA610-\uA61F\uA620-\uA629\uA62A-\uA62B\uA640-\uA66D\uA66E\uA680-\uA69B\uA69C-\uA69D\uA6A0-\uA6E5\uA6E6-\uA6EF\uA6F2-\uA6F7\uA722-\uA76F\uA770\uA771-\uA787\uA789-\uA78A\uA78B-\uA78E\uA790-\uA7AD\uA7B0-\uA7B1\uA7F7\uA7F8-\uA7F9\uA7FA\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA823-\uA824\uA827\uA830-\uA835\uA836-\uA837\uA840-\uA873\uA880-\uA881\uA882-\uA8B3\uA8B4-\uA8C3\uA8CE-\uA8CF\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8F8-\uA8FA\uA8FB\uA900-\uA909\uA90A-\uA925\uA92E-\uA92F\uA930-\uA946\uA952-\uA953\uA95F\uA960-\uA97C\uA983\uA984-\uA9B2\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uA9C1-\uA9CD\uA9CF\uA9D0-\uA9D9\uA9DE-\uA9DF\uA9E0-\uA9E4\uA9E6\uA9E7-\uA9EF\uA9F0-\uA9F9\uA9FA-\uA9FE\uAA00-\uAA28\uAA2F-\uAA30\uAA33-\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA5F\uAA60-\uAA6F\uAA70\uAA71-\uAA76\uAA77-\uAA79\uAA7A\uAA7B\uAA7D\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAADD\uAADE-\uAADF\uAAE0-\uAAEA\uAAEB\uAAEE-\uAAEF\uAAF0-\uAAF1\uAAF2\uAAF3-\uAAF4\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5B\uAB5C-\uAB5F\uAB64-\uAB65\uABC0-\uABE2\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEB\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uE000-\uF8FF\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFF6F\uFF70\uFF71-\uFF9D\uFF9E-\uFF9F\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",R:"\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05D0-\u05EA\u05EB-\u05EF\u05F0-\u05F2\u05F3-\u05F4\u05F5-\u05FF\u07C0-\u07C9\u07CA-\u07EA\u07F4-\u07F5\u07FA\u07FB-\u07FF\u0800-\u0815\u081A\u0824\u0828\u082E-\u082F\u0830-\u083E\u083F\u0840-\u0858\u085C-\u085D\u085E\u085F-\u089F\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB37\uFB38-\uFB3C\uFB3D\uFB3E\uFB3F\uFB40-\uFB41\uFB42\uFB43-\uFB44\uFB45\uFB46-\uFB4F",AL:"\u0608\u060B\u060D\u061B\u061C\u061D\u061E-\u061F\u0620-\u063F\u0640\u0641-\u064A\u066D\u066E-\u066F\u0671-\u06D3\u06D4\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FD-\u06FE\u06FF\u0700-\u070D\u070E\u070F\u0710\u0712-\u072F\u074B-\u074C\u074D-\u07A5\u07B1\u07B2-\u07BF\u08A0-\u08B2\u08B3-\u08E3\uFB50-\uFBB1\uFBB2-\uFBC1\uFBC2-\uFBD2\uFBD3-\uFD3D\uFD40-\uFD4F\uFD50-\uFD8F\uFD90-\uFD91\uFD92-\uFDC7\uFDC8-\uFDCF\uFDF0-\uFDFB\uFDFC\uFDFE-\uFDFF\uFE70-\uFE74\uFE75\uFE76-\uFEFC\uFEFD-\uFEFE"},BS=new RegExp("["+Cl.L+Cl.R+Cl.AL+"]"),FS=new RegExp("["+Cl.R+Cl.AL+"]");function rh(t){var r=BS.exec(t);return r==null?null:r[0]}function ih(t){var r=rh(t);return r==null?Wi.NEUTRAL:FS.exec(r)?Wi.RTL:Wi.LTR}function oh(t,r){if(r=r||Wi.NEUTRAL,!t.length)return r;var i=ih(t);return i===Wi.NEUTRAL?r:i}function Dc(t,r){return r||(r=Wi.getGlobalDir()),Wi.isStrong(r)||CS(!1),oh(t,r)}function PS(t,r){return Dc(t,r)===Wi.LTR}function KS(t,r){return Dc(t,r)===Wi.RTL}var RS={firstStrongChar:rh,firstStrongCharDir:ih,resolveBlockDir:oh,getDirection:Dc,isDirectionLTR:PS,isDirectionRTL:KS},Mc=RS;function ah(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var IS=Mc,lh=Mu,jS=wt,TS=function(){function t(i){ah(this,"_defaultDir",void 0),ah(this,"_lastDir",void 0),i?lh.isStrong(i)||jS(!1):i=lh.getGlobalDir(),this._defaultDir=i,this.reset()}var r=t.prototype;return r.reset=function(){this._lastDir=this._defaultDir},r.getDirection=function(i){return this._lastDir=IS.getDirection(i,this._lastDir),this._lastDir},t}(),zS=TS,HS=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},cr=HS,AS=zS,uh=mt,qS=cr,US=uh.OrderedMap,Lu,VS={getDirectionMap:function(t,r){Lu?Lu.reset():Lu=new AS;var i=t.getBlockMap(),a=i.valueSeq().map(function(c){return qS(Lu).getDirection(c.getText())}),u=US(i.keySeq().zip(a));return r!=null&&uh.is(r,u)?r:u}},QS=VS;function sh(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){ch(t,u,i[u])})}return t}function ch(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var Cu=Aw,Bl=Oc,Bu=QS,Lc=xu,Fl=mt,fh=Fl.OrderedSet,XS=Fl.Record,ia=Fl.Stack,dh=Fl.OrderedMap,ZS=Fl.List,$S={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:ia(),selection:null,treeMap:null,undoStack:ia()},ph=XS($S),hh=function(){r.createEmpty=function(i){return this.createWithText("",i)},r.createWithText=function(i,a){return r.createWithContent(Bl.createFromText(i),a)},r.createWithContent=function(i,a){if(i.getBlockMap().count()===0)return r.createEmpty(a);var u=i.getBlockMap().first().getKey();return r.create({currentContent:i,undoStack:ia(),redoStack:ia(),decorator:a||null,selection:Lc.createEmpty(u)})},r.create=function(i){var a=i.currentContent,u=i.decorator,c=sh({},i,{treeMap:gh(a,u),directionMap:Bu.getDirectionMap(a)});return new r(new ph(c))},r.fromJS=function(i){return new r(new ph(sh({},i,{directionMap:i.directionMap!=null?dh(i.directionMap):i.directionMap,inlineStyleOverride:i.inlineStyleOverride!=null?fh(i.inlineStyleOverride):i.inlineStyleOverride,nativelyRenderedContent:i.nativelyRenderedContent!=null?Bl.fromJS(i.nativelyRenderedContent):i.nativelyRenderedContent,redoStack:i.redoStack!=null?ia(i.redoStack.map(function(a){return Bl.fromJS(a)})):i.redoStack,selection:i.selection!=null?new Lc(i.selection):i.selection,treeMap:i.treeMap!=null?dh(i.treeMap).map(function(a){return ZS(a).map(function(u){return Cu.fromJS(u)})}):i.treeMap,undoStack:i.undoStack!=null?ia(i.undoStack.map(function(a){return Bl.fromJS(a)})):i.undoStack,currentContent:Bl.fromJS(i.currentContent)})))},r.set=function(i,a){var u=i.getImmutable().withMutations(function(c){var g=c.get("decorator"),y=g;a.decorator===null?y=null:a.decorator&&(y=a.decorator);var b=a.currentContent||i.getCurrentContent();if(y!==g){var w=c.get("treeMap"),D;y&&g?D=JS(b,b.getBlockMap(),w,y,g):D=gh(b,y),c.merge({decorator:y,treeMap:D,nativelyRenderedContent:null});return}var K=i.getCurrentContent();b!==K&&c.set("treeMap",YS(i,b.getBlockMap(),b.getEntityMap(),y)),c.merge(a)});return new r(u)};var t=r.prototype;t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},r.setInlineStyleOverride=function(i,a){return r.set(i,{inlineStyleOverride:a})},t.getCurrentInlineStyle=function(){var i=this.getInlineStyleOverride();if(i!=null)return i;var a=this.getCurrentContent(),u=this.getSelection();return u.isCollapsed()?GS(a,u):ex(a,u)},t.getBlockTree=function(i){return this.getImmutable().getIn(["treeMap",i])},t.isSelectionAtStartOfContent=function(){var i=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(i,0,0)},t.isSelectionAtEndOfContent=function(){var i=this.getCurrentContent(),a=i.getBlockMap(),u=a.last(),c=u.getLength();return this.getSelection().hasEdgeWithin(u.getKey(),c,c)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},r.acceptSelection=function(i,a){return mh(i,a,!1)},r.forceSelection=function(i,a){return a.getHasFocus()||(a=a.set("hasFocus",!0)),mh(i,a,!0)},r.moveSelectionToEnd=function(i){var a=i.getCurrentContent(),u=a.getLastBlock(),c=u.getKey(),g=u.getLength();return r.acceptSelection(i,new Lc({anchorKey:c,anchorOffset:g,focusKey:c,focusOffset:g,isBackward:!1}))},r.moveFocusToEnd=function(i){var a=r.moveSelectionToEnd(i);return r.forceSelection(a,a.getSelection())},r.push=function(i,a,u){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(i.getCurrentContent()===a)return i;var g=Bu.getDirectionMap(a,i.getDirectionMap());if(!i.getAllowUndo())return r.set(i,{currentContent:a,directionMap:g,lastChangeType:u,selection:a.getSelectionAfter(),forceSelection:c,inlineStyleOverride:null});var y=i.getSelection(),b=i.getCurrentContent(),w=i.getUndoStack(),D=a;y!==b.getSelectionAfter()||WS(i,u)?(w=w.push(b),D=D.set("selectionBefore",y)):(u==="insert-characters"||u==="backspace-character"||u==="delete-character")&&(D=D.set("selectionBefore",b.getSelectionBefore()));var K=i.getInlineStyleOverride(),L=["adjust-depth","change-block-type","split-block"];L.indexOf(u)===-1&&(K=null);var T={currentContent:D,directionMap:g,undoStack:w,redoStack:ia(),lastChangeType:u,selection:a.getSelectionAfter(),forceSelection:c,inlineStyleOverride:K};return r.set(i,T)},r.undo=function(i){if(!i.getAllowUndo())return i;var a=i.getUndoStack(),u=a.peek();if(!u)return i;var c=i.getCurrentContent(),g=Bu.getDirectionMap(u,i.getDirectionMap());return r.set(i,{currentContent:u,directionMap:g,undoStack:a.shift(),redoStack:i.getRedoStack().push(c),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:c.getSelectionBefore()})},r.redo=function(i){if(!i.getAllowUndo())return i;var a=i.getRedoStack(),u=a.peek();if(!u)return i;var c=i.getCurrentContent(),g=Bu.getDirectionMap(u,i.getDirectionMap());return r.set(i,{currentContent:u,directionMap:g,undoStack:i.getUndoStack().push(c),redoStack:a.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:u.getSelectionAfter()})};function r(i){ch(this,"_immutable",void 0),this._immutable=i}return t.getImmutable=function(){return this._immutable},r}();function mh(t,r,i){return hh.set(t,{selection:r,forceSelection:i,nativelyRenderedContent:null,inlineStyleOverride:null})}function gh(t,r){return t.getBlockMap().map(function(i){return Cu.generate(t,i,r)}).toOrderedMap()}function YS(t,r,i,a){var u=t.getCurrentContent().set("entityMap",i),c=u.getBlockMap(),g=t.getImmutable().get("treeMap");return g.merge(r.toSeq().filter(function(y,b){return y!==c.get(b)}).map(function(y){return Cu.generate(u,y,a)}))}function JS(t,r,i,a,u){return i.merge(r.toSeq().filter(function(c){return a.getDecorations(c,t)!==u.getDecorations(c,t)}).map(function(c){return Cu.generate(t,c,a)}))}function WS(t,r){var i=t.getLastChangeType();return r!==i||r!=="insert-characters"&&r!=="backspace-character"&&r!=="delete-character"}function GS(t,r){var i=r.getStartKey(),a=r.getStartOffset(),u=t.getBlockForKey(i);return a>0?u.getInlineStyleAt(a-1):u.getLength()?u.getInlineStyleAt(0):vh(t,i)}function ex(t,r){var i=r.getStartKey(),a=r.getStartOffset(),u=t.getBlockForKey(i);return a<u.getLength()?u.getInlineStyleAt(a):a>0?u.getInlineStyleAt(a-1):vh(t,i)}function vh(t,r){var i=t.getBlockMap().reverse().skipUntil(function(a,u){return u===r}).skip(1).skipUntil(function(a,u){return a.getLength()}).first();return i?i.getInlineStyleAt(i.getLength()-1):fh()}var At=hh,tx=Yr,nx=Ip,yh=mt,Fu=wt,rx=yh.OrderedMap,ix=yh.List,oa=function(t,r,i){if(t){var a=r.get(t);a&&r.set(t,i(a))}},ox=function(t,r,i,a,u){if(!u)return t;var c=a==="after",g=r.getKey(),y=i.getKey(),b=r.getParentKey(),w=r.getNextSiblingKey(),D=r.getPrevSiblingKey(),K=i.getParentKey(),L=c?i.getNextSiblingKey():y,T=c?y:i.getPrevSiblingKey();return t.withMutations(function(F){oa(b,F,function(R){var j=R.getChildKeys();return R.merge({children:j.delete(j.indexOf(g))})}),oa(D,F,function(R){return R.merge({nextSibling:w})}),oa(w,F,function(R){return R.merge({prevSibling:D})}),oa(L,F,function(R){return R.merge({prevSibling:g})}),oa(T,F,function(R){return R.merge({nextSibling:g})}),oa(K,F,function(R){var j=R.getChildKeys(),G=j.indexOf(y),Y=c?G+1:G!==0?G-1:0,W=j.toArray();return W.splice(Y,0,g),R.merge({children:ix(W)})}),oa(g,F,function(R){return R.merge({nextSibling:L,prevSibling:T,parent:K})})})},ax=function(t,r,i,a){a==="replace"&&Fu(!1);var u=i.getKey(),c=r.getKey();c===u&&Fu(!1);var g=t.getBlockMap(),y=r instanceof tx,b=[r],w=g.delete(c);y&&(b=[],w=g.withMutations(function(j){var G=r.getNextSiblingKey(),Y=nx(r,j);j.toSeq().skipUntil(function(W){return W.getKey()===c}).takeWhile(function(W){var J=W.getKey(),le=J===c,Se=G&&J!==G,_e=!G&&W.getParentKey()&&(!Y||J!==Y);return!!(le||Se||_e)}).forEach(function(W){b.push(W),j.delete(W.getKey())})}));var D=w.toSeq().takeUntil(function(j){return j===i}),K=w.toSeq().skipUntil(function(j){return j===i}).skip(1),L=b.map(function(j){return[j.getKey(),j]}),T=rx();if(a==="before"){var F=t.getBlockBefore(u);!F||F.getKey()!==r.getKey()||Fu(!1),T=D.concat([].concat(L,[[u,i]]),K).toOrderedMap()}else if(a==="after"){var R=t.getBlockAfter(u);!R||R.getKey()!==c||Fu(!1),T=D.concat([[u,i]].concat(L),K).toOrderedMap()}return t.merge({blockMap:ox(T,r,i,a,y),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})},lx=ax;function bh(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){ux(t,u,i[u])})}return t}function ux(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var sx=Sl,cx=$r,fx=ra,dx=Yr,Ta=sr,_h=At,wh=Li,px=Eo,Sh=mt,Pu=lx,xh=px("draft_tree_data_support"),Eh=xh?dx:fx,hx=Sh.List,mx=Sh.Repeat,gx={insertAtomicBlock:function(t,r,i){var a=t.getCurrentContent(),u=t.getSelection(),c=Ta.removeRange(a,u,"backward"),g=c.getSelectionAfter(),y=Ta.splitBlock(c,g),b=y.getSelectionAfter(),w=Ta.setBlockType(y,b,"atomic"),D=cx.create({entity:r}),K={key:wh(),type:"atomic",text:i,characterList:hx(mx(D,i.length))},L={key:wh(),type:"unstyled"};xh&&(K=bh({},K,{nextSibling:L.key}),L=bh({},L,{prevSibling:K.key}));var T=[new Eh(K),new Eh(L)],F=sx.createFromArray(T),R=Ta.replaceWithFragment(w,b,F),j=R.merge({selectionBefore:u,selectionAfter:R.getSelectionAfter().set("hasFocus",!0)});return _h.push(t,j,"insert-fragment")},moveAtomicBlock:function(t,r,i,a){var u=t.getCurrentContent(),c=t.getSelection(),g;if(a==="before"||a==="after"){var y=u.getBlockForKey(a==="before"?i.getStartKey():i.getEndKey());g=Pu(u,r,y,a)}else{var b=Ta.removeRange(u,i,"backward"),w=b.getSelectionAfter(),D=b.getBlockForKey(w.getFocusKey());if(w.getStartOffset()===0)g=Pu(b,r,D,"before");else if(w.getEndOffset()===D.getLength())g=Pu(b,r,D,"after");else{var K=Ta.splitBlock(b,w),L=K.getSelectionAfter(),T=K.getBlockForKey(L.getFocusKey());g=Pu(K,r,T,"before")}}var F=g.merge({selectionBefore:c,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return _h.push(t,F,"move-block")}},vx=gx;function yx(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var bx=mt,_x=bx.List,Cc=".",wx=function(){function t(i){yx(this,"_decorators",void 0),this._decorators=i.slice()}var r=t.prototype;return r.getDecorations=function(i,a){var u=Array(i.getText().length).fill(null);return this._decorators.forEach(function(c,g){var y=0,b=c.strategy,w=function(D,K){Sx(u,D,K)&&(xx(u,D,K,g+Cc+y),y++)};b(i,w,a)}),_x(u)},r.getComponentForKey=function(i){var a=parseInt(i.split(Cc)[0],10);return this._decorators[a].component},r.getPropsForKey=function(i){var a=parseInt(i.split(Cc)[0],10);return this._decorators[a].props},t}();function Sx(t,r,i){for(var a=r;a<i;a++)if(t[a]!=null)return!1;return!0}function xx(t,r,i,a){for(var u=r;u<i;u++)t[u]=a}var Ex=wx;function kx(t){return typeof t=="object"?Object.keys(t).filter(function(r){return t[r]}).map(kh).join(" "):Array.prototype.map.call(arguments,kh).join(" ")}function kh(t){return t.replace(/\//g,"-")}var aa=kx,Bc=P,Fc=aa,Nx=mt,Ox=Nx.Map,Dx=Bc.createElement("ul",{className:Fc("public/DraftStyleDefault/ul")}),Mx=Bc.createElement("ol",{className:Fc("public/DraftStyleDefault/ol")}),Lx=Bc.createElement("pre",{className:Fc("public/DraftStyleDefault/pre")}),Cx=Ox({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Dx},"ordered-list-item":{element:"li",wrapper:Mx},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Lx},unstyled:{element:"div",aliasedElements:["p"]}}),Pc=Cx,Nh={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
|
|
5
|
+
*/(function(t){(function(){var r={}.hasOwnProperty;function o(){for(var i=[],l=0;l<arguments.length;l++){var c=arguments[l];if(c){var g=typeof c;if(g==="string"||g==="number")i.push(c);else if(Array.isArray(c)){if(c.length){var v=o.apply(null,c);v&&i.push(v)}}else if(g==="object"){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){i.push(c.toString());continue}for(var b in c)r.call(c,b)&&c[b]&&i.push(b)}}}return i.join(" ")}t.exports?(o.default=o,t.exports=o):window.classNames=o})()})(B_);const it=Sc;function Mn(t){return D.forwardRef(t)}var Cp="/home/travis/build/20minutes/hela/src/components/atoms/Button/Button.tsx";const Ni=Mn(({as:t="button",variant:r="primary",children:o,iconProps:i,...l},c)=>D.createElement(mt,{...l,as:t,ref:c,alignItems:"center",gap:"xxs",className:it("c-btn",{[`c-btn--${r}`]:r},l?.className),__self:void 0,__source:{fileName:Cp,lineNumber:22,columnNumber:5}},i&&D.createElement(er,{...i,__self:void 0,__source:{fileName:Cp,lineNumber:30,columnNumber:21}}),o));Ni.displayName="Button";var _u="/home/travis/build/20minutes/hela/src/components/atoms/Divider/Divider.tsx";const R_=Mn(({text:t,color:r="black",thickness:o="thin",...i},l)=>{const c=D.createElement(Su,{bg:r,align:"center",className:it("c-divider__line",{[`c-divider__line--${o}`]:o!=="thin"}),__self:void 0,__source:{fileName:_u,lineNumber:15,columnNumber:7}});return D.createElement(mt,{...i,ref:l,className:it("c-divider",{"c-divider--has-text":!!t},i?.className),__self:void 0,__source:{fileName:_u,lineNumber:25,columnNumber:7}},t?D.createElement(D.Fragment,null,c,D.createElement(Su,{px:"xxs-2",className:"c-divider__text",__self:void 0,__source:{fileName:_u,lineNumber:37,columnNumber:13}},D.createElement(Mt,{size:"xxs",color:r,textTransform:"uppercase",__self:void 0,__source:{fileName:_u,lineNumber:38,columnNumber:15}},t)),c):c)});var T_="/home/travis/build/20minutes/hela/src/components/atoms/Embed/Embed.tsx";const j_=({html:t})=>D.createElement("div",{dangerouslySetInnerHTML:{__html:t},__self:void 0,__source:{fileName:T_,lineNumber:8,columnNumber:3}});var xc="/home/travis/build/20minutes/hela/src/components/atoms/Icon/Icon.tsx";const er=Mn(({name:t,size:r=28,withBorder:o=!1,isRounded:i=!1,...l},c)=>{const g=Array.isArray(r)?r?.[0]:r,v=Array.isArray(r)?r?.[1]:r;return D.createElement(Ht,{...l,ref:c,className:it("c-icon",o&&"c-icon--withBorder",i&&"c-icon--isRounded",l?.className),__self:void 0,__source:{fileName:xc,lineNumber:100,columnNumber:7}},D.createElement("svg",{width:g,height:v,__self:void 0,__source:{fileName:xc,lineNumber:110,columnNumber:9}},D.createElement("use",{xlinkHref:`#${t}`,__self:void 0,__source:{fileName:xc,lineNumber:111,columnNumber:11}})))});var I_="/home/travis/build/20minutes/hela/src/components/atoms/Img/Img.tsx";const Ec=({src:t="",defaultFormat:r,formats:o,alt:i="",sizes:l,...c})=>{const g=r.split("x"),v=g[0],b=g[1];let w,L=`data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='${v}'%20height='${b}'%3E%3C/svg%3E`;return t&&(L=t.replace(/%format/,r),o!==void 0&&o.length>0&&(w=o.map(R=>`${t.replace(/%format/,R)} ${R.split("x")[0]}w`))),D.createElement(Ht,{...c,as:"img",width:v,height:b,src:L,srcSet:w&&w.join(", "),sizes:l||void 0,alt:i,className:it("c-img",c?.className),__self:void 0,__source:{fileName:I_,lineNumber:36,columnNumber:5}})};var z_="/home/travis/build/20minutes/hela/src/components/atoms/InlineSeparator/InlineSeparator.tsx";const kc=({size:t,...r})=>D.createElement(Mt,{as:"span",size:t||"s",...r,__self:void 0,__source:{fileName:z_,lineNumber:5,columnNumber:3}},"\u2022");var Oi="/home/travis/build/20minutes/hela/src/components/atoms/Input/Input.tsx";Mn(({id:t,className:r,color:o,required:i,label:l,icon:c,positionIcon:g="left",isIconButton:v=!1,iconButtonProps:b,variant:w,msg:L,msgProps:R,...M},z)=>D.createElement("div",{ref:z,className:"c-input",__self:void 0,__source:{fileName:Oi,lineNumber:39,columnNumber:5}},l&&D.createElement("label",{htmlFor:t,className:"c-input__label",__self:void 0,__source:{fileName:Oi,lineNumber:41,columnNumber:9}},l,i&&D.createElement("abbr",{className:"c-input__label__abbr",title:"(ce champ est obligatoire)",__self:void 0,__source:{fileName:Oi,lineNumber:44,columnNumber:13}},"*")),D.createElement("div",{className:"c-input-container",__self:void 0,__source:{fileName:Oi,lineNumber:50,columnNumber:7}},c&&(v?D.createElement(Ni,{className:it("c-input-container__icon",`c-input-container__icon--${g}`),iconProps:{name:c,size:18},variant:"ghost",color:o||"black",...b,__self:void 0,__source:{fileName:Oi,lineNumber:53,columnNumber:13}}):D.createElement(er,{className:it("c-input-container__icon",`c-input-container__icon--${g}`),name:c,size:18,__self:void 0,__source:{fileName:Oi,lineNumber:67,columnNumber:13}})),D.createElement("input",{id:t,className:it("c-input-container__input",{[`c-input-container__input--has-icon--${g}`]:c,[`c-input-container__input--${w}`]:w},r),required:i,...M,__self:void 0,__source:{fileName:Oi,lineNumber:76,columnNumber:9}})),L&&D.createElement(Mt,{dangerouslySetInnerHTML:{__html:L},role:"alert",...R,__self:void 0,__source:{fileName:Oi,lineNumber:90,columnNumber:15}})));var Nc="/home/travis/build/20minutes/hela/src/components/atoms/Label/Label.tsx";const Mp=({children:t,bg:r,color:o,hasDot:i=!1,isUppercase:l=!0,size:c,className:g,...v})=>D.createElement(mt,{inline:!0,p:r?"xxs-2":void 0,bg:r,color:o,className:it("c-label",g),alignItems:"center",...v,__self:void 0,__source:{fileName:Nc,lineNumber:24,columnNumber:3}},i&&D.createElement(kc,{mr:"xxs-2",size:c||"xxs",__self:void 0,__source:{fileName:Nc,lineNumber:33,columnNumber:16}}),D.createElement(Mt,{as:"span",size:c||"xxs",weight:"bold",textTransform:l?"uppercase":void 0,__self:void 0,__source:{fileName:Nc,lineNumber:34,columnNumber:5}},t)),K_=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Fp=t=>{if(t.propValue!==void 0){if(typeof t.propValue!="boolean"){const r=K_(typeof t.propValue=="number"?t.propValue.toString():t.propValue);return t.className?`${t.className}-${r}@${t.defaultModifier}`:`${r}@${t.defaultModifier}`}if(!t.className)throw new Error('It is necessary to define the argument "className" !');return`${t.className}@${t.defaultModifier}`}},Qt=t=>{if(t.propValue&&["boolean","string","number"].includes(typeof t.propValue)||!t.propValue){const r=Fp({className:t.className,defaultModifier:t.defaultModifier||"xs",propValue:t.propValue});return r?[r]:[]}return Object.entries(t.propValue).reduce((r,[o,i])=>{const l=Fp({className:t.className,defaultModifier:o,propValue:i});return l&&r.push(l),r},[])},wu=t=>typeof t.props=="object"?Object.keys(t.props).reduce((r,o)=>(t.systemPropNames.includes(o)||(r[o]=t.props[o]),r),{}):{},A_=t=>it(...Qt({className:"bg",defaultModifier:"light",propValue:t.bg}),...Qt({className:"color",defaultModifier:"light",propValue:t.color})),H_=t=>it(Object.entries(t).filter(([r])=>Object.keys(Lp).includes(r)).reduce((r,[o,i])=>(r.push(...Qt({className:o,propValue:i})),r),[])),V_=t=>it(Object.entries(t).filter(([r])=>Object.keys(Op).includes(r)).reduce((r,[o,i])=>(r.push(...Qt({className:o,propValue:i})),r),[])),q_=({textAlign:t,weight:r,textTransform:o,textDecoration:i,italic:l,fontFamily:c})=>it(Qt({className:"text",propValue:t}),Qt({className:"font-weight",propValue:r}),{[`text-transform-${o}`]:!!o,[`text-decoration-${i}`]:!!i,"text-italic":!!l,[`font-${c}`]:!!c}),U_=t=>it(H_(t),A_(t),V_(t)),Q_=t=>it(...Qt({propValue:t.align,className:"self"})),Dp=t=>it(...Qt({propValue:t.alignItems,className:"items"}),...Qt({propValue:t.alignContent,className:"content"}),...Qt({propValue:t.justifyContent,className:"justify"}),...Qt({propValue:t.gap,className:"gap"}),...Qt({propValue:t.gapX,className:"gap-x"}),...Qt({propValue:t.gapY,className:"gap-y"})),X_=({inline:t=!1,direction:r,wrap:o,...i})=>it(...Qt({propValue:t,className:t?"inline-flex":"flex"}),...Qt({propValue:r,className:"direction"}),...Qt({propValue:o}),Dp(i)),Z_=({basis:t,shrink:r,grow:o,...i})=>it(...Qt({propValue:t,className:"basis"}),...Qt({propValue:r,className:"shrink"}),...Qt({propValue:o,className:"grow"}),Q_(i));var $_="/home/travis/build/20minutes/hela/src/components/atoms/Layout/Box/Box.tsx";const Ht=Mn(({as:t="div",children:r,...o},i)=>D.createElement(t,{...wu({props:o,systemPropNames:Object.keys(F_)}),ref:i,className:it(U_(o),o?.className),__self:void 0,__source:{fileName:$_,lineNumber:12,columnNumber:3}},r));Ht.displayName="Box";const Y_=({colsNumber:t,gap:r,gapX:o,gapY:i,children:l,...c})=>D.createElement(Ht,{...c,className:it("grid",...Qt({className:"grid-cols-number",propValue:t}),...Qt({className:"grid-gap",propValue:r}),...Qt({className:"grid-gap-row",propValue:o}),...Qt({className:"grid-gap-col",propValue:i}),it(Dp(c),c?.className)),children:l});var J_="/home/travis/build/20minutes/hela/src/components/atoms/Layout/Flex/Flex.tsx";const mt=Mn(({as:t="div",children:r,...o},i)=>D.createElement(Ht,{...wu({props:o,systemPropNames:Object.keys(L_)}),as:t,ref:i,className:it(X_(o),o?.className),__self:void 0,__source:{fileName:J_,lineNumber:13,columnNumber:3}},r));var W_="/home/travis/build/20minutes/hela/src/components/atoms/Layout/Flex/FlexItem/FlexItem.tsx";const Su=Mn(({as:t="div",children:r,...o},i)=>D.createElement(Ht,{...wu({props:o,systemPropNames:Object.keys(O_)}),as:t,ref:i,className:it(Z_(o),o?.className),__self:void 0,__source:{fileName:W_,lineNumber:13,columnNumber:5}},r));var G_="/home/travis/build/20minutes/hela/src/components/atoms/Link/Link.tsx";const Pp=Mn(({as:t="a",children:r,color:o,variant:i,...l},c)=>{if(i&&o)throw new Error("You can't use color and variant props together");return D.createElement(Ht,{...l,as:t,ref:c,color:i?void 0:o||"ultramarine",className:it("c-link",{[`c-btn c-btn--${i}`]:i&&!o},l?.className),__self:void 0,__source:{fileName:G_,lineNumber:18,columnNumber:7}},r)});var ew=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],tw="Tab",nw="Escape";function Do(t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=t,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}Do.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=El('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(r){r.addEventListener("click",this._show)}.bind(this));const t=this.$el;return this._closers=El("[data-a11y-dialog-hide]",this.$el).filter(function(r){return r.closest('[aria-modal="true"], [data-a11y-dialog]')===t}).concat(El('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(r){r.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},Do.prototype.show=function(t){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,Bp(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",t),this)},Do.prototype.hide=function(t){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",t),this):this},Do.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(t){t.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(t){t.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},Do.prototype.on=function(t,r){return typeof this._listeners[t]>"u"&&(this._listeners[t]=[]),this._listeners[t].push(r),this},Do.prototype.off=function(t,r){var o=(this._listeners[t]||[]).indexOf(r);return o>-1&&this._listeners[t].splice(o,1),this},Do.prototype._fire=function(t,r){var o=this._listeners[t]||[],i=new CustomEvent(t,{detail:r});this.$el.dispatchEvent(i),o.forEach(function(l){l(this.$el,r)}.bind(this))},Do.prototype._bindKeypress=function(t){const r=document.activeElement;r&&r.closest('[aria-modal="true"]')!==this.$el||(this.shown&&t.key===nw&&this.$el.getAttribute("role")!=="alertdialog"&&(t.preventDefault(),this.hide(t)),this.shown&&t.key===tw&&iw(this.$el,t))},Do.prototype._maintainFocus=function(t){this.shown&&!t.target.closest('[aria-modal="true"]')&&!t.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&Bp(this.$el)};function rw(t){return Array.prototype.slice.call(t)}function El(t,r){return rw((r||document).querySelectorAll(t))}function Bp(t){var r=t.querySelector("[autofocus]")||t;r.focus()}function ow(t){return El(ew.join(","),t).filter(function(r){return!!(r.offsetWidth||r.offsetHeight||r.getClientRects().length)})}function iw(t,r){var o=ow(t),i=o.indexOf(document.activeElement);r.shiftKey&&i===0?(o[o.length-1].focus(),r.preventDefault()):!r.shiftKey&&i===o.length-1&&(o[0].focus(),r.preventDefault())}function Oc(){El("[data-a11y-dialog]").forEach(function(t){new Do(t)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Oc):window.requestAnimationFrame?window.requestAnimationFrame(Oc):window.setTimeout(Oc,16));var aw="/home/travis/build/20minutes/hela/src/components/atoms/Pipe/Pipe.tsx";function Rp(){return D.createElement("div",{className:"c-pipe",__self:this,__source:{fileName:aw,lineNumber:4,columnNumber:10}})}var xu="/home/travis/build/20minutes/hela/src/components/atoms/ReadAlso/ReadAlso.tsx";const lw=({title:t,link:r,label:o,isTargetBlank:i,isNofollow:l,isSponsored:c})=>D.createElement("div",{className:"c-read-also",__self:void 0,__source:{fileName:xu,lineNumber:21,columnNumber:3}},D.createElement(Mp,{color:"grey-600",__self:void 0,__source:{fileName:xu,lineNumber:22,columnNumber:5}},o),D.createElement(Rp,{__self:void 0,__source:{fileName:xu,lineNumber:23,columnNumber:5}}),D.createElement(Pp,{href:r,className:"c-read-also__link",target:i?"_blank":void 0,rel:l&&"isNofollow"||c&&"isSponsored"||void 0,__self:void 0,__source:{fileName:xu,lineNumber:24,columnNumber:5}},t)),uw=()=>{const t=document.documentElement.scrollTop;let r=document.documentElement.scrollHeight-document.documentElement.clientHeight;const o=document.querySelector(".js-limit-scroll-progress-bar");o&&(r=o.scrollHeight-document.documentElement.clientHeight+(window.pageYOffset+o.getBoundingClientRect().top));const i=Math.round(t/r*100),l=document.querySelector(".c-progress__bar");l&&(l.style.width=`${i}%`,i>=100&&(l.style.width="100%"))},sw=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",uw)};var Tp="/home/travis/build/20minutes/hela/src/components/atoms/ScrollProgressBar/ScrollProgressBar.tsx";Mn(({variant:t,progressColor:r="ultramarine"},o)=>(wc(()=>{sw()},[]),D.createElement(Ht,{ref:o,bg:"grey-100",className:it("c-progress",{[`c-progress--${t}`]:t}),__self:void 0,__source:{fileName:Tp,lineNumber:21,columnNumber:7}},D.createElement(Ht,{className:"c-progress__bar",bg:r,style:{width:"0%"},__self:void 0,__source:{fileName:Tp,lineNumber:26,columnNumber:9}}))));const cw=({navigatedList:t,nextBtn:r,prevBtn:o})=>{t&&(t.scrollLeft>0&&(t.scrollLeft+t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible"),r.classList.remove("o-nav-button--visible"),o.classList.add("o-nav-button--visible")),t.clientWidth<t.scrollWidth?r.classList.add("o-nav-button--visible"):(o.classList.remove("o-nav-button--visible"),r.classList.remove("o-nav-button--visible")),t.scrollLeft+t.clientWidth===t.scrollWidth&&r.classList.remove("o-nav-button--visible"))},fw=({navigatedList:t,nextBtn:r,prevBtn:o,sliderVariant:i})=>{if(t)if(t.scrollWidth-t.clientWidth>t.clientWidth){let l=t.scrollLeft;switch(i){case"partners":l+=t.clientWidth+32;break;case"rubrics":l+=t.clientWidth-36;break;default:l+=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:l,behavior:"smooth"}),o.classList.add("o-nav-button--visible"),l+t.clientWidth>=t.scrollWidth&&r.classList.remove("o-nav-button--visible")}else{const l=t.scrollWidth-t.clientWidth;t.scrollTo({left:l,behavior:"smooth"}),r.classList.remove("o-nav-button--visible"),o.classList.add("o-nav-button--visible")}},dw=({navigatedList:t,nextBtn:r,prevBtn:o,sliderVariant:i})=>{if(t)if(t.clientWidth<t.scrollLeft){let l=t.scrollLeft;switch(i){case"partners":l-=t.clientWidth+32;break;case"rubrics":l-=t.clientWidth-36;break;default:l-=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:l,behavior:"smooth"}),r.classList.add("o-nav-button--visible"),l===0&&o.classList.remove("o-nav-button--visible")}else t.scrollTo({left:0,behavior:"smooth"}),o.classList.remove("o-nav-button--visible"),t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible")},pw=({navigatedList:t,nextBtn:r,prevBtn:o})=>{cw({navigatedList:t,nextBtn:r,prevBtn:o})},hw=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:o}=r.dataset;if(r){const i=r.querySelector(".js-navigation-container__list"),l=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");i&&i.clientWidth<i.scrollWidth&&l?.classList.add("o-nav-button--visible"),l?.addEventListener("click",fw.bind(!1,{navigatedList:i,nextBtn:l,prevBtn:c,sliderVariant:o})),c?.addEventListener("click",dw.bind(!1,{navigatedList:i,nextBtn:l,prevBtn:c,sliderVariant:o}))}}},mw=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:o}=r.dataset;if(r){const i=r.querySelector(".js-navigation-container__list"),l=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",pw.bind(!1,{navigatedList:i,nextBtn:l,prevBtn:c,sliderVariant:o}))}}};var ja="/home/travis/build/20minutes/hela/src/components/atoms/Slider/Slider.tsx";const gw=t=>{switch(t){case"primary":return{light:"white",dark:"grey-700"};case"secondary":return{light:"grey-100",dark:"grey-700"};default:return}};Mn(({layout:t,children:r,itemsGap:o,buttonsBackground:i,sliderVariant:l="default",...c},g)=>(wc(()=>{t===Un.DESKTOP&&(hw(),mw())},[]),D.createElement(Ht,{...c,ref:g,className:it("c-slider js-navigation-container",c?.className),"data-slider-variant":l,__self:void 0,__source:{fileName:ja,lineNumber:40,columnNumber:7}},D.createElement(Ht,{className:"c-slider__viewport js-navigation-container__list",__self:void 0,__source:{fileName:ja,lineNumber:46,columnNumber:9}},D.createElement(mt,{className:"c-slider__list",alignItems:"center",gap:o,__self:void 0,__source:{fileName:ja,lineNumber:47,columnNumber:11}},r)),t===Un.DESKTOP&&D.createElement(Ht,{className:"c-slider__buttons-container",__self:void 0,__source:{fileName:ja,lineNumber:52,columnNumber:11}},Array.from(["previous","next"],v=>D.createElement(Ht,{key:v,bg:i&&gw(i),pr:i&&v==="previous"?"m":void 0,pl:i&&v==="next"?"m":void 0,className:it(`c-slider__button-container c-slider__button-container--${v} o-nav-button o-nav-button--${v}-button`,{"c-slider__button-container--has-background":i},{[`c-slider__button-container--${l}`]:l}),__self:void 0,__source:{fileName:ja,lineNumber:54,columnNumber:15}},D.createElement(Ni,{variant:"round",iconProps:{name:"chevron",size:12},__self:void 0,__source:{fileName:ja,lineNumber:67,columnNumber:17}})))))));var Eu="/home/travis/build/20minutes/hela/src/components/atoms/Switch/Switch.tsx";const vw=Mn(({id:t,className:r,label:o,isChecked:i=!1},l)=>D.createElement("div",{className:"switch",__self:void 0,__source:{fileName:Eu,lineNumber:14,columnNumber:5}},D.createElement("label",{htmlFor:t,className:"switch-label",__self:void 0,__source:{fileName:Eu,lineNumber:15,columnNumber:7}},o),D.createElement("button",{type:"button",ref:l,id:t,className:it("switch-button",r),role:"switch","aria-checked":i,__self:void 0,__source:{fileName:Eu,lineNumber:18,columnNumber:7}},D.createElement("span",{"aria-hidden":i,__self:void 0,__source:{fileName:Eu,lineNumber:26,columnNumber:9}},i?"on":"off"))));vw.displayName="Switch";var yw="/home/travis/build/20minutes/hela/src/components/atoms/Tag/Tag.tsx";Mn(({as:t="a",id:r,link:o,variant:i="primary",children:l,...c},g)=>D.createElement(Ht,{...c,as:t,ref:g,href:o,className:it("c-tags",`c-tags--${i}`,c?.className),"data-id":r,__self:void 0,__source:{fileName:yw,lineNumber:15,columnNumber:5}},l));var bw="/home/travis/build/20minutes/hela/src/components/atoms/Typography/Typography.tsx";const jp=Mn(({as:t="p",children:r,...o},i)=>D.createElement(Ht,{...wu({props:o,systemPropNames:Object.keys(D_)}),as:t,ref:i,className:it(q_(o),o?.className),__self:void 0,__source:{fileName:bw,lineNumber:14,columnNumber:5}},r));var _w="/home/travis/build/20minutes/hela/src/components/atoms/Typography/Heading/Heading.tsx";const Ia=Mn(({as:t="h1",size:r,children:o,...i},l)=>D.createElement(jp,{...i,as:t,ref:l,className:it(Qt({className:"heading",propValue:r}),i?.className),__self:void 0,__source:{fileName:_w,lineNumber:15,columnNumber:5}},o));var ww="/home/travis/build/20minutes/hela/src/components/atoms/Typography/Text/Text.tsx";const Mt=Mn(({as:t="p",size:r,children:o,...i},l)=>D.createElement(jp,{...i,as:t,ref:l,className:it(Qt({className:"text",propValue:r}),i?.className),__self:void 0,__source:{fileName:ww,lineNumber:14,columnNumber:3}},o));var gt={},Sw={get exports(){return gt},set exports(t){gt=t}};(function(t,r){(function(o,i){t.exports=i()})(Ta,function(){var o=Array.prototype.slice;function i(u,f){f&&(u.prototype=Object.create(f.prototype)),u.prototype.constructor=u}function l(u){return b(u)?u:Xe(u)}i(c,l);function c(u){return w(u)?u:st(u)}i(g,l);function g(u){return L(u)?u:ut(u)}i(v,l);function v(u){return b(u)&&!R(u)?u:Bt(u)}function b(u){return!!(u&&u[z])}function w(u){return!!(u&&u[B])}function L(u){return!!(u&&u[T])}function R(u){return w(u)||L(u)}function M(u){return!!(u&&u[I])}l.isIterable=b,l.isKeyed=w,l.isIndexed=L,l.isAssociative=R,l.isOrdered=M,l.Keyed=c,l.Indexed=g,l.Set=v;var z="@@__IMMUTABLE_ITERABLE__@@",B="@@__IMMUTABLE_KEYED__@@",T="@@__IMMUTABLE_INDEXED__@@",I="@@__IMMUTABLE_ORDERED__@@",G="delete",Y=5,W=1<<Y,J=W-1,le={},Se={value:!1},_e={value:!1};function je(u){return u.value=!1,u}function ve(u){u&&(u.value=!0)}function xe(){}function we(u,f){f=f||0;for(var y=Math.max(0,u.length-f),x=new Array(y),E=0;E<y;E++)x[E]=u[E+f];return x}function he(u){return u.size===void 0&&(u.size=u.__iterate(Le)),u.size}function ge(u,f){if(typeof f!="number"){var y=f>>>0;if(""+y!==f||y===4294967295)return NaN;f=y}return f<0?he(u)+f:f}function Le(){return!0}function Ie(u,f,y){return(u===0||y!==void 0&&u<=-y)&&(f===void 0||y!==void 0&&f>=y)}function Fe(u,f){return ue(u,f,0)}function Ae(u,f){return ue(u,f,f)}function ue(u,f,y){return u===void 0?y:u<0?Math.max(0,f+u):f===void 0?u:Math.min(f,u)}var fe=0,ae=1,Ce=2,Je=typeof Symbol=="function"&&Symbol.iterator,Et="@@iterator",Ft=Je||Et;function Ve(u){this.next=u}Ve.prototype.toString=function(){return"[Iterator]"},Ve.KEYS=fe,Ve.VALUES=ae,Ve.ENTRIES=Ce,Ve.prototype.inspect=Ve.prototype.toSource=function(){return this.toString()},Ve.prototype[Ft]=function(){return this};function ze(u,f,y,x){var E=u===0?f:u===1?y:[f,y];return x?x.value=E:x={value:E,done:!1},x}function dt(){return{value:void 0,done:!0}}function Tt(u){return!!kt(u)}function jt(u){return u&&typeof u.next=="function"}function Pt(u){var f=kt(u);return f&&f.call(u)}function kt(u){var f=u&&(Je&&u[Je]||u[Et]);if(typeof f=="function")return f}function en(u){return u&&typeof u.length=="number"}i(Xe,l);function Xe(u){return u==null?nt():b(u)?u.toSeq():Ge(u)}Xe.of=function(){return Xe(arguments)},Xe.prototype.toSeq=function(){return this},Xe.prototype.toString=function(){return this.__toString("Seq {","}")},Xe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Xe.prototype.__iterate=function(u,f){return ct(this,u,f,!0)},Xe.prototype.__iterator=function(u,f){return En(this,u,f,!0)},i(st,Xe);function st(u){return u==null?nt().toKeyedSeq():b(u)?w(u)?u.toSeq():u.fromEntrySeq():Ye(u)}st.prototype.toKeyedSeq=function(){return this},i(ut,Xe);function ut(u){return u==null?nt():b(u)?w(u)?u.entrySeq():u.toIndexedSeq():ht(u)}ut.of=function(){return ut(arguments)},ut.prototype.toIndexedSeq=function(){return this},ut.prototype.toString=function(){return this.__toString("Seq [","]")},ut.prototype.__iterate=function(u,f){return ct(this,u,f,!1)},ut.prototype.__iterator=function(u,f){return En(this,u,f,!1)},i(Bt,Xe);function Bt(u){return(u==null?nt():b(u)?w(u)?u.entrySeq():u:ht(u)).toSetSeq()}Bt.of=function(){return Bt(arguments)},Bt.prototype.toSetSeq=function(){return this},Xe.isSeq=Rt,Xe.Keyed=st,Xe.Set=Bt,Xe.Indexed=ut;var mn="@@__IMMUTABLE_SEQ__@@";Xe.prototype[mn]=!0,i(Dt,ut);function Dt(u){this._array=u,this.size=u.length}Dt.prototype.get=function(u,f){return this.has(u)?this._array[ge(this,u)]:f},Dt.prototype.__iterate=function(u,f){for(var y=this._array,x=y.length-1,E=0;E<=x;E++)if(u(y[f?x-E:E],E,this)===!1)return E+1;return E},Dt.prototype.__iterator=function(u,f){var y=this._array,x=y.length-1,E=0;return new Ve(function(){return E>x?dt():ze(u,E,y[f?x-E++:E++])})},i(Nt,st);function Nt(u){var f=Object.keys(u);this._object=u,this._keys=f,this.size=f.length}Nt.prototype.get=function(u,f){return f!==void 0&&!this.has(u)?f:this._object[u]},Nt.prototype.has=function(u){return this._object.hasOwnProperty(u)},Nt.prototype.__iterate=function(u,f){for(var y=this._object,x=this._keys,E=x.length-1,C=0;C<=E;C++){var K=x[f?E-C:C];if(u(y[K],K,this)===!1)return C+1}return C},Nt.prototype.__iterator=function(u,f){var y=this._object,x=this._keys,E=x.length-1,C=0;return new Ve(function(){var K=x[f?E-C:C];return C++>E?dt():ze(u,K,y[K])})},Nt.prototype[I]=!0,i(rt,ut);function rt(u){this._iterable=u,this.size=u.length||u.size}rt.prototype.__iterateUncached=function(u,f){if(f)return this.cacheResult().__iterate(u,f);var y=this._iterable,x=Pt(y),E=0;if(jt(x))for(var C;!(C=x.next()).done&&u(C.value,E++,this)!==!1;);return E},rt.prototype.__iteratorUncached=function(u,f){if(f)return this.cacheResult().__iterator(u,f);var y=this._iterable,x=Pt(y);if(!jt(x))return new Ve(dt);var E=0;return new Ve(function(){var C=x.next();return C.done?C:ze(u,E++,C.value)})},i(pt,ut);function pt(u){this._iterator=u,this._iteratorCache=[]}pt.prototype.__iterateUncached=function(u,f){if(f)return this.cacheResult().__iterate(u,f);for(var y=this._iterator,x=this._iteratorCache,E=0;E<x.length;)if(u(x[E],E++,this)===!1)return E;for(var C;!(C=y.next()).done;){var K=C.value;if(x[E]=K,u(K,E++,this)===!1)break}return E},pt.prototype.__iteratorUncached=function(u,f){if(f)return this.cacheResult().__iterator(u,f);var y=this._iterator,x=this._iteratorCache,E=0;return new Ve(function(){if(E>=x.length){var C=y.next();if(C.done)return C;x[E]=C.value}return ze(u,E,x[E++])})};function Rt(u){return!!(u&&u[mn])}var Pe;function nt(){return Pe||(Pe=new Dt([]))}function Ye(u){var f=Array.isArray(u)?new Dt(u).fromEntrySeq():jt(u)?new pt(u).fromEntrySeq():Tt(u)?new rt(u).fromEntrySeq():typeof u=="object"?new Nt(u):void 0;if(!f)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+u);return f}function ht(u){var f=xn(u);if(!f)throw new TypeError("Expected Array or iterable object of values: "+u);return f}function Ge(u){var f=xn(u)||typeof u=="object"&&new Nt(u);if(!f)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+u);return f}function xn(u){return en(u)?new Dt(u):jt(u)?new pt(u):Tt(u)?new rt(u):void 0}function ct(u,f,y,x){var E=u._cache;if(E){for(var C=E.length-1,K=0;K<=C;K++){var V=E[y?C-K:K];if(f(V[1],x?V[0]:K,u)===!1)return K+1}return K}return u.__iterateUncached(f,y)}function En(u,f,y,x){var E=u._cache;if(E){var C=E.length-1,K=0;return new Ve(function(){var V=E[y?C-K:K];return K++>C?dt():ze(f,x?V[0]:K-1,V[1])})}return u.__iteratorUncached(f,y)}function tn(u,f){return f?hr(f,u,"",{"":u}):Qn(u)}function hr(u,f,y,x){return Array.isArray(f)?u.call(x,y,ut(f).map(function(E,C){return hr(u,E,C,f)})):ai(f)?u.call(x,y,st(f).map(function(E,C){return hr(u,E,C,f)})):f}function Qn(u){return Array.isArray(u)?ut(u).map(Qn).toList():ai(u)?st(u).map(Qn).toMap():u}function ai(u){return u&&(u.constructor===Object||u.constructor===void 0)}function It(u,f){if(u===f||u!==u&&f!==f)return!0;if(!u||!f)return!1;if(typeof u.valueOf=="function"&&typeof f.valueOf=="function"){if(u=u.valueOf(),f=f.valueOf(),u===f||u!==u&&f!==f)return!0;if(!u||!f)return!1}return!!(typeof u.equals=="function"&&typeof f.equals=="function"&&u.equals(f))}function So(u,f){if(u===f)return!0;if(!b(f)||u.size!==void 0&&f.size!==void 0&&u.size!==f.size||u.__hash!==void 0&&f.__hash!==void 0&&u.__hash!==f.__hash||w(u)!==w(f)||L(u)!==L(f)||M(u)!==M(f))return!1;if(u.size===0&&f.size===0)return!0;var y=!R(u);if(M(u)){var x=u.entries();return f.every(function(te,re){var ie=x.next().value;return ie&&It(ie[1],te)&&(y||It(ie[0],re))})&&x.next().done}var E=!1;if(u.size===void 0)if(f.size===void 0)typeof u.cacheResult=="function"&&u.cacheResult();else{E=!0;var C=u;u=f,f=C}var K=!0,V=f.__iterate(function(te,re){if(y?!u.has(te):E?!It(te,u.get(re,le)):!It(u.get(re,le),te))return K=!1,!1});return K&&u.size===V}i(Jt,ut);function Jt(u,f){if(!(this instanceof Jt))return new Jt(u,f);if(this._value=u,this.size=f===void 0?1/0:Math.max(0,f),this.size===0){if(xo)return xo;xo=this}}Jt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Jt.prototype.get=function(u,f){return this.has(u)?this._value:f},Jt.prototype.includes=function(u){return It(this._value,u)},Jt.prototype.slice=function(u,f){var y=this.size;return Ie(u,f,y)?this:new Jt(this._value,Ae(f,y)-Fe(u,y))},Jt.prototype.reverse=function(){return this},Jt.prototype.indexOf=function(u){return It(this._value,u)?0:-1},Jt.prototype.lastIndexOf=function(u){return It(this._value,u)?this.size:-1},Jt.prototype.__iterate=function(u,f){for(var y=0;y<this.size;y++)if(u(this._value,y,this)===!1)return y+1;return y},Jt.prototype.__iterator=function(u,f){var y=this,x=0;return new Ve(function(){return x<y.size?ze(u,x++,y._value):dt()})},Jt.prototype.equals=function(u){return u instanceof Jt?It(this._value,u._value):So(u)};var xo;function fn(u,f){if(!u)throw new Error(f)}i(qt,ut);function qt(u,f,y){if(!(this instanceof qt))return new qt(u,f,y);if(fn(y!==0,"Cannot step a Range by 0"),u=u||0,f===void 0&&(f=1/0),y=y===void 0?1:Math.abs(y),f<u&&(y=-y),this._start=u,this._end=f,this._step=y,this.size=Math.max(0,Math.ceil((f-u)/y-1)+1),this.size===0){if(Kn)return Kn;Kn=this}}qt.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},qt.prototype.get=function(u,f){return this.has(u)?this._start+ge(this,u)*this._step:f},qt.prototype.includes=function(u){var f=(u-this._start)/this._step;return f>=0&&f<this.size&&f===Math.floor(f)},qt.prototype.slice=function(u,f){return Ie(u,f,this.size)?this:(u=Fe(u,this.size),f=Ae(f,this.size),f<=u?new qt(0,0):new qt(this.get(u,this._end),this.get(f,this._end),this._step))},qt.prototype.indexOf=function(u){var f=u-this._start;if(f%this._step===0){var y=f/this._step;if(y>=0&&y<this.size)return y}return-1},qt.prototype.lastIndexOf=function(u){return this.indexOf(u)},qt.prototype.__iterate=function(u,f){for(var y=this.size-1,x=this._step,E=f?this._start+y*x:this._start,C=0;C<=y;C++){if(u(E,C,this)===!1)return C+1;E+=f?-x:x}return C},qt.prototype.__iterator=function(u,f){var y=this.size-1,x=this._step,E=f?this._start+y*x:this._start,C=0;return new Ve(function(){var K=E;return E+=f?-x:x,C>y?dt():ze(u,C++,K)})},qt.prototype.equals=function(u){return u instanceof qt?this._start===u._start&&this._end===u._end&&this._step===u._step:So(this,u)};var Kn;i(ot,l);function ot(){throw TypeError("Abstract")}i(Xn,ot);function Xn(){}i(Zn,ot);function Zn(){}i(tr,ot);function tr(){}ot.Keyed=Xn,ot.Indexed=Zn,ot.Set=tr;var kn=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(u,f){u=u|0,f=f|0;var y=u&65535,x=f&65535;return y*x+((u>>>16)*x+y*(f>>>16)<<16>>>0)|0};function Cr(u){return u>>>1&1073741824|u&3221225471}function zt(u){if(u===!1||u===null||u===void 0||typeof u.valueOf=="function"&&(u=u.valueOf(),u===!1||u===null||u===void 0))return 0;if(u===!0)return 1;var f=typeof u;if(f==="number"){var y=u|0;for(y!==u&&(y^=u*4294967295);u>4294967295;)u/=4294967295,y^=u;return Cr(y)}if(f==="string")return u.length>Ko?li(u):nr(u);if(typeof u.hashCode=="function")return u.hashCode();if(f==="object")return Eo(u);if(typeof u.toString=="function")return nr(u.toString());throw new Error("Value type "+f+" cannot be hashed.")}function li(u){var f=vr[u];return f===void 0&&(f=nr(u),rr===si&&(rr=0,vr={}),rr++,vr[u]=f),f}function nr(u){for(var f=0,y=0;y<u.length;y++)f=31*f+u.charCodeAt(y)|0;return Cr(f)}function Eo(u){var f;if(to&&(f=no.get(u),f!==void 0)||(f=u[gr],f!==void 0)||!ui&&(f=u.propertyIsEnumerable&&u.propertyIsEnumerable[gr],f!==void 0||(f=eo(u),f!==void 0)))return f;if(f=++mr,mr&1073741824&&(mr=0),to)no.set(u,f);else{if(Mr!==void 0&&Mr(u)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(ui)Object.defineProperty(u,gr,{enumerable:!1,configurable:!1,writable:!1,value:f});else if(u.propertyIsEnumerable!==void 0&&u.propertyIsEnumerable===u.constructor.prototype.propertyIsEnumerable)u.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},u.propertyIsEnumerable[gr]=f;else if(u.nodeType!==void 0)u[gr]=f;else throw new Error("Unable to set a non-enumerable property on object.")}return f}var Mr=Object.isExtensible,ui=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function eo(u){if(u&&u.nodeType>0)switch(u.nodeType){case 1:return u.uniqueID;case 9:return u.documentElement&&u.documentElement.uniqueID}}var to=typeof WeakMap=="function",no;to&&(no=new WeakMap);var mr=0,gr="__immutablehash__";typeof Symbol=="function"&&(gr=Symbol(gr));var Ko=16,si=255,rr=0,vr={};function gn(u){fn(u!==1/0,"Cannot perform this action with an infinite size.")}i(at,Xn);function at(u){return u==null?Wt():Fr(u)&&!M(u)?u:Wt().withMutations(function(f){var y=c(u);gn(y.size),y.forEach(function(x,E){return f.set(E,x)})})}at.prototype.toString=function(){return this.__toString("Map {","}")},at.prototype.get=function(u,f){return this._root?this._root.get(0,void 0,u,f):f},at.prototype.set=function(u,f){return Dn(this,u,f)},at.prototype.setIn=function(u,f){return this.updateIn(u,le,function(){return f})},at.prototype.remove=function(u){return Dn(this,u,le)},at.prototype.deleteIn=function(u){return this.updateIn(u,function(){return le})},at.prototype.update=function(u,f,y){return arguments.length===1?u(this):this.updateIn([u],f,y)},at.prototype.updateIn=function(u,f,y){y||(y=f,f=void 0);var x=S(this,Bn(u),f,y);return x===le?void 0:x},at.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Wt()},at.prototype.merge=function(){return br(this,void 0,arguments)},at.prototype.mergeWith=function(u){var f=o.call(arguments,1);return br(this,u,f)},at.prototype.mergeIn=function(u){var f=o.call(arguments,1);return this.updateIn(u,Wt(),function(y){return typeof y.merge=="function"?y.merge.apply(y,f):f[f.length-1]})},at.prototype.mergeDeep=function(){return br(this,Ir,arguments)},at.prototype.mergeDeepWith=function(u){var f=o.call(arguments,1);return br(this,zr(u),f)},at.prototype.mergeDeepIn=function(u){var f=o.call(arguments,1);return this.updateIn(u,Wt(),function(y){return typeof y.mergeDeep=="function"?y.mergeDeep.apply(y,f):f[f.length-1]})},at.prototype.sort=function(u){return Xt(ar(this,u))},at.prototype.sortBy=function(u,f){return Xt(ar(this,f,u))},at.prototype.withMutations=function(u){var f=this.asMutable();return u(f),f.wasAltered()?f.__ensureOwner(this.__ownerID):this},at.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new xe)},at.prototype.asImmutable=function(){return this.__ensureOwner()},at.prototype.wasAltered=function(){return this.__altered},at.prototype.__iterator=function(u,f){return new oo(this,u,f)},at.prototype.__iterate=function(u,f){var y=this,x=0;return this._root&&this._root.iterate(function(E){return x++,u(E[1],E[0],y)},f),x},at.prototype.__ensureOwner=function(u){return u===this.__ownerID?this:u?Ao(this.size,this._root,u,this.__hash):(this.__ownerID=u,this.__altered=!1,this)};function Fr(u){return!!(u&&u[Dr])}at.isMap=Fr;var Dr="@@__IMMUTABLE_MAP__@@",tt=at.prototype;tt[Dr]=!0,tt[G]=tt.remove,tt.removeIn=tt.deleteIn;function Pr(u,f){this.ownerID=u,this.entries=f}Pr.prototype.get=function(u,f,y,x){for(var E=this.entries,C=0,K=E.length;C<K;C++)if(It(y,E[C][0]))return E[C][1];return x},Pr.prototype.update=function(u,f,y,x,E,C,K){for(var V=E===le,te=this.entries,re=0,ie=te.length;re<ie&&!It(x,te[re][0]);re++);var Ne=re<ie;if(Ne?te[re][1]===E:V)return this;if(ve(K),(V||!Ne)&&ve(C),!(V&&te.length===1)){if(!Ne&&!V&&te.length>=oe)return ci(u,te,x,E);var ke=u&&u===this.ownerID,$e=ke?te:we(te);return Ne?V?re===ie-1?$e.pop():$e[re]=$e.pop():$e[re]=[x,E]:$e.push([x,E]),ke?(this.entries=$e,this):new Pr(u,$e)}};function Br(u,f,y){this.ownerID=u,this.bitmap=f,this.nodes=y}Br.prototype.get=function(u,f,y,x){f===void 0&&(f=zt(y));var E=1<<((u===0?f:f>>>u)&J),C=this.bitmap;return C&E?this.nodes[O(C&E-1)].get(u+Y,f,y,x):x},Br.prototype.update=function(u,f,y,x,E,C,K){y===void 0&&(y=zt(x));var V=(f===0?y:y>>>f)&J,te=1<<V,re=this.bitmap,ie=(re&te)!==0;if(!ie&&E===le)return this;var Ne=O(re&te-1),ke=this.nodes,$e=ie?ke[Ne]:void 0,lt=Tr($e,u,f+Y,y,x,E,C,K);if(lt===$e)return this;if(!ie&<&&ke.length>=me)return jr(u,ke,re,V,lt);if(ie&&!lt&&ke.length===2&&un(ke[Ne^1]))return ke[Ne^1];if(ie&<&&ke.length===1&&un(lt))return lt;var At=u&&u===this.ownerID,xr=ie?lt?re:re^te:re|te,Ur=ie?lt?P(ke,Ne,lt,At):q(ke,Ne,At):X(ke,Ne,lt,At);return At?(this.bitmap=xr,this.nodes=Ur,this):new Br(u,xr,Ur)};function ro(u,f,y){this.ownerID=u,this.count=f,this.nodes=y}ro.prototype.get=function(u,f,y,x){f===void 0&&(f=zt(y));var E=(u===0?f:f>>>u)&J,C=this.nodes[E];return C?C.get(u+Y,f,y,x):x},ro.prototype.update=function(u,f,y,x,E,C,K){y===void 0&&(y=zt(x));var V=(f===0?y:y>>>f)&J,te=E===le,re=this.nodes,ie=re[V];if(te&&!ie)return this;var Ne=Tr(ie,u,f+Y,y,x,E,C,K);if(Ne===ie)return this;var ke=this.count;if(!ie)ke++;else if(!Ne&&(ke--,ke<be))return fi(u,re,ke,V);var $e=u&&u===this.ownerID,lt=P(re,V,Ne,$e);return $e?(this.count=ke,this.nodes=lt,this):new ro(u,ke,lt)};function vt(u,f,y){this.ownerID=u,this.keyHash=f,this.entries=y}vt.prototype.get=function(u,f,y,x){for(var E=this.entries,C=0,K=E.length;C<K;C++)if(It(y,E[C][0]))return E[C][1];return x},vt.prototype.update=function(u,f,y,x,E,C,K){y===void 0&&(y=zt(x));var V=E===le;if(y!==this.keyHash)return V?this:(ve(K),ve(C),ko(this,u,f,y,[x,E]));for(var te=this.entries,re=0,ie=te.length;re<ie&&!It(x,te[re][0]);re++);var Ne=re<ie;if(Ne?te[re][1]===E:V)return this;if(ve(K),(V||!Ne)&&ve(C),V&&ie===2)return new Kt(u,this.keyHash,te[re^1]);var ke=u&&u===this.ownerID,$e=ke?te:we(te);return Ne?V?re===ie-1?$e.pop():$e[re]=$e.pop():$e[re]=[x,E]:$e.push([x,E]),ke?(this.entries=$e,this):new vt(u,this.keyHash,$e)};function Kt(u,f,y){this.ownerID=u,this.keyHash=f,this.entry=y}Kt.prototype.get=function(u,f,y,x){return It(y,this.entry[0])?this.entry[1]:x},Kt.prototype.update=function(u,f,y,x,E,C,K){var V=E===le,te=It(x,this.entry[0]);if(te?E===this.entry[1]:V)return this;if(ve(K),V){ve(C);return}return te?u&&u===this.ownerID?(this.entry[1]=E,this):new Kt(u,this.keyHash,[x,E]):(ve(C),ko(this,u,f,zt(x),[x,E]))},Pr.prototype.iterate=vt.prototype.iterate=function(u,f){for(var y=this.entries,x=0,E=y.length-1;x<=E;x++)if(u(y[f?E-x:x])===!1)return!1},Br.prototype.iterate=ro.prototype.iterate=function(u,f){for(var y=this.nodes,x=0,E=y.length-1;x<=E;x++){var C=y[f?E-x:x];if(C&&C.iterate(u,f)===!1)return!1}},Kt.prototype.iterate=function(u,f){return u(this.entry)},i(oo,Ve);function oo(u,f,y){this._type=f,this._reverse=y,this._stack=u._root&&Rr(u._root)}oo.prototype.next=function(){for(var u=this._type,f=this._stack;f;){var y=f.node,x=f.index++,E;if(y.entry){if(x===0)return io(u,y.entry)}else if(y.entries){if(E=y.entries.length-1,x<=E)return io(u,y.entries[this._reverse?E-x:x])}else if(E=y.nodes.length-1,x<=E){var C=y.nodes[this._reverse?E-x:x];if(C){if(C.entry)return io(u,C.entry);f=this._stack=Rr(C,f)}continue}f=this._stack=this._stack.__prev}return dt()};function io(u,f){return ze(u,f[0],f[1])}function Rr(u,f){return{node:u,index:0,__prev:f}}function Ao(u,f,y,x){var E=Object.create(tt);return E.size=u,E._root=f,E.__ownerID=y,E.__hash=x,E.__altered=!1,E}var yr;function Wt(){return yr||(yr=Ao(0))}function Dn(u,f,y){var x,E;if(u._root){var C=je(Se),K=je(_e);if(x=Tr(u._root,u.__ownerID,0,void 0,f,y,C,K),!K.value)return u;E=u.size+(C.value?y===le?-1:1:0)}else{if(y===le)return u;E=1,x=new Pr(u.__ownerID,[[f,y]])}return u.__ownerID?(u.size=E,u._root=x,u.__hash=void 0,u.__altered=!0,u):x?Ao(E,x):Wt()}function Tr(u,f,y,x,E,C,K,V){return u?u.update(f,y,x,E,C,K,V):C===le?u:(ve(V),ve(K),new Kt(f,x,[E,C]))}function un(u){return u.constructor===Kt||u.constructor===vt}function ko(u,f,y,x,E){if(u.keyHash===x)return new vt(f,x,[u.entry,E]);var C=(y===0?u.keyHash:u.keyHash>>>y)&J,K=(y===0?x:x>>>y)&J,V,te=C===K?[ko(u,f,y+Y,x,E)]:(V=new Kt(f,x,E),C<K?[u,V]:[V,u]);return new Br(f,1<<C|1<<K,te)}function ci(u,f,y,x){u||(u=new xe);for(var E=new Kt(u,zt(y),[y,x]),C=0;C<f.length;C++){var K=f[C];E=E.update(u,0,void 0,K[0],K[1])}return E}function fi(u,f,y,x){for(var E=0,C=0,K=new Array(y),V=0,te=1,re=f.length;V<re;V++,te<<=1){var ie=f[V];ie!==void 0&&V!==x&&(E|=te,K[C++]=ie)}return new Br(u,E,K)}function jr(u,f,y,x,E){for(var C=0,K=new Array(W),V=0;y!==0;V++,y>>>=1)K[V]=y&1?f[C++]:void 0;return K[x]=E,new ro(u,C+1,K)}function br(u,f,y){for(var x=[],E=0;E<y.length;E++){var C=y[E],K=c(C);b(C)||(K=K.map(function(V){return tn(V)})),x.push(K)}return p(u,f,x)}function Ir(u,f,y){return u&&u.mergeDeep&&b(f)?u.mergeDeep(f):It(u,f)?u:f}function zr(u){return function(f,y,x){if(f&&f.mergeDeepWith&&b(y))return f.mergeDeepWith(u,y);var E=u(f,y,x);return It(f,E)?f:E}}function p(u,f,y){return y=y.filter(function(x){return x.size!==0}),y.length===0?u:u.size===0&&!u.__ownerID&&y.length===1?u.constructor(y[0]):u.withMutations(function(x){for(var E=f?function(K,V){x.update(V,le,function(te){return te===le?K:f(te,K,V)})}:function(K,V){x.set(V,K)},C=0;C<y.length;C++)y[C].forEach(E)})}function S(u,f,y,x){var E=u===le,C=f.next();if(C.done){var K=E?y:u,V=x(K);return V===K?u:V}fn(E||u&&u.set,"invalid keyPath");var te=C.value,re=E?le:u.get(te,le),ie=S(re,f,y,x);return ie===re?u:ie===le?u.remove(te):(E?Wt():u).set(te,ie)}function O(u){return u=u-(u>>1&1431655765),u=(u&858993459)+(u>>2&858993459),u=u+(u>>4)&252645135,u=u+(u>>8),u=u+(u>>16),u&127}function P(u,f,y,x){var E=x?u:we(u);return E[f]=y,E}function X(u,f,y,x){var E=u.length+1;if(x&&f+1===E)return u[f]=y,u;for(var C=new Array(E),K=0,V=0;V<E;V++)V===f?(C[V]=y,K=-1):C[V]=u[V+K];return C}function q(u,f,y){var x=u.length-1;if(y&&f===x)return u.pop(),u;for(var E=new Array(x),C=0,K=0;K<x;K++)K===f&&(C=1),E[K]=u[K+C];return E}var oe=W/4,me=W/2,be=W/4;i(Ee,Zn);function Ee(u){var f=yn();if(u==null)return f;if(We(u))return u;var y=g(u),x=y.size;return x===0?f:(gn(x),x>0&&x<W?vn(0,x,Y,null,new nn(y.toArray())):f.withMutations(function(E){E.setSize(x),y.forEach(function(C,K){return E.set(K,C)})}))}Ee.of=function(){return this(arguments)},Ee.prototype.toString=function(){return this.__toString("List [","]")},Ee.prototype.get=function(u,f){if(u=ge(this,u),u>=0&&u<this.size){u+=this._origin;var y=Kr(this,u);return y&&y.array[u&J]}return f},Ee.prototype.set=function(u,f){return or(this,u,f)},Ee.prototype.remove=function(u){return this.has(u)?u===0?this.shift():u===this.size-1?this.pop():this.splice(u,1):this},Ee.prototype.insert=function(u,f){return this.splice(u,0,f)},Ee.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):yn()},Ee.prototype.push=function(){var u=arguments,f=this.size;return this.withMutations(function(y){ao(y,0,f+u.length);for(var x=0;x<u.length;x++)y.set(f+x,u[x])})},Ee.prototype.pop=function(){return ao(this,0,-1)},Ee.prototype.unshift=function(){var u=arguments;return this.withMutations(function(f){ao(f,-u.length);for(var y=0;y<u.length;y++)f.set(y,u[y])})},Ee.prototype.shift=function(){return ao(this,1)},Ee.prototype.merge=function(){return di(this,void 0,arguments)},Ee.prototype.mergeWith=function(u){var f=o.call(arguments,1);return di(this,u,f)},Ee.prototype.mergeDeep=function(){return di(this,Ir,arguments)},Ee.prototype.mergeDeepWith=function(u){var f=o.call(arguments,1);return di(this,zr(u),f)},Ee.prototype.setSize=function(u){return ao(this,0,u)},Ee.prototype.slice=function(u,f){var y=this.size;return Ie(u,f,y)?this:ao(this,Fe(u,y),Ae(f,y))},Ee.prototype.__iterator=function(u,f){var y=0,x=_r(this,f);return new Ve(function(){var E=x();return E===sn?dt():ze(u,y++,E)})},Ee.prototype.__iterate=function(u,f){for(var y=0,x=_r(this,f),E;(E=x())!==sn&&u(E,y++,this)!==!1;);return y},Ee.prototype.__ensureOwner=function(u){return u===this.__ownerID?this:u?vn(this._origin,this._capacity,this._level,this._root,this._tail,u,this.__hash):(this.__ownerID=u,this)};function We(u){return!!(u&&u[St])}Ee.isList=We;var St="@@__IMMUTABLE_LIST__@@",Ot=Ee.prototype;Ot[St]=!0,Ot[G]=Ot.remove,Ot.setIn=tt.setIn,Ot.deleteIn=Ot.removeIn=tt.removeIn,Ot.update=tt.update,Ot.updateIn=tt.updateIn,Ot.mergeIn=tt.mergeIn,Ot.mergeDeepIn=tt.mergeDeepIn,Ot.withMutations=tt.withMutations,Ot.asMutable=tt.asMutable,Ot.asImmutable=tt.asImmutable,Ot.wasAltered=tt.wasAltered;function nn(u,f){this.array=u,this.ownerID=f}nn.prototype.removeBefore=function(u,f,y){if(y===f?1<<f:this.array.length===0)return this;var x=y>>>f&J;if(x>=this.array.length)return new nn([],u);var E=x===0,C;if(f>0){var K=this.array[x];if(C=K&&K.removeBefore(u,f-Y,y),C===K&&E)return this}if(E&&!C)return this;var V=Hn(this,u);if(!E)for(var te=0;te<x;te++)V.array[te]=void 0;return C&&(V.array[x]=C),V},nn.prototype.removeAfter=function(u,f,y){if(y===(f?1<<f:0)||this.array.length===0)return this;var x=y-1>>>f&J;if(x>=this.array.length)return this;var E;if(f>0){var C=this.array[x];if(E=C&&C.removeAfter(u,f-Y,y),E===C&&x===this.array.length-1)return this}var K=Hn(this,u);return K.array.splice(x+1),E&&(K.array[x]=E),K};var sn={};function _r(u,f){var y=u._origin,x=u._capacity,E=Ar(x),C=u._tail;return K(u._root,u._level,0);function K(re,ie,Ne){return ie===0?V(re,Ne):te(re,ie,Ne)}function V(re,ie){var Ne=ie===E?C&&C.array:re&&re.array,ke=ie>y?0:y-ie,$e=x-ie;return $e>W&&($e=W),function(){if(ke===$e)return sn;var lt=f?--$e:ke++;return Ne&&Ne[lt]}}function te(re,ie,Ne){var ke,$e=re&&re.array,lt=Ne>y?0:y-Ne>>ie,At=(x-Ne>>ie)+1;return At>W&&(At=W),function(){do{if(ke){var xr=ke();if(xr!==sn)return xr;ke=null}if(lt===At)return sn;var Ur=f?--At:lt++;ke=K($e&&$e[Ur],ie-Y,Ne+(Ur<<ie))}while(!0)}}}function vn(u,f,y,x,E,C,K){var V=Object.create(Ot);return V.size=f-u,V._origin=u,V._capacity=f,V._level=y,V._root=x,V._tail=E,V.__ownerID=C,V.__hash=K,V.__altered=!1,V}var An;function yn(){return An||(An=vn(0,0,Y))}function or(u,f,y){if(f=ge(u,f),f!==f)return u;if(f>=u.size||f<0)return u.withMutations(function(K){f<0?ao(K,f).set(0,y):ao(K,0,f+1).set(f,y)});f+=u._origin;var x=u._tail,E=u._root,C=je(_e);return f>=Ar(u._capacity)?x=Pn(x,u.__ownerID,0,f,y,C):E=Pn(E,u.__ownerID,u._level,f,y,C),C.value?u.__ownerID?(u._root=E,u._tail=x,u.__hash=void 0,u.__altered=!0,u):vn(u._origin,u._capacity,u._level,E,x):u}function Pn(u,f,y,x,E,C){var K=x>>>y&J,V=u&&K<u.array.length;if(!V&&E===void 0)return u;var te;if(y>0){var re=u&&u.array[K],ie=Pn(re,f,y-Y,x,E,C);return ie===re?u:(te=Hn(u,f),te.array[K]=ie,te)}return V&&u.array[K]===E?u:(ve(C),te=Hn(u,f),E===void 0&&K===te.array.length-1?te.array.pop():te.array[K]=E,te)}function Hn(u,f){return f&&u&&f===u.ownerID?u:new nn(u?u.array.slice():[],f)}function Kr(u,f){if(f>=Ar(u._capacity))return u._tail;if(f<1<<u._level+Y){for(var y=u._root,x=u._level;y&&x>0;)y=y.array[f>>>x&J],x-=Y;return y}}function ao(u,f,y){f!==void 0&&(f=f|0),y!==void 0&&(y=y|0);var x=u.__ownerID||new xe,E=u._origin,C=u._capacity,K=E+f,V=y===void 0?C:y<0?C+y:E+y;if(K===E&&V===C)return u;if(K>=V)return u.clear();for(var te=u._level,re=u._root,ie=0;K+ie<0;)re=new nn(re&&re.array.length?[void 0,re]:[],x),te+=Y,ie+=1<<te;ie&&(K+=ie,E+=ie,V+=ie,C+=ie);for(var Ne=Ar(C),ke=Ar(V);ke>=1<<te+Y;)re=new nn(re&&re.array.length?[re]:[],x),te+=Y;var $e=u._tail,lt=ke<Ne?Kr(u,V-1):ke>Ne?new nn([],x):$e;if($e&&ke>Ne&&K<C&&$e.array.length){re=Hn(re,x);for(var At=re,xr=te;xr>Y;xr-=Y){var Ur=Ne>>>xr&J;At=At.array[Ur]=Hn(At.array[Ur],x)}At.array[Ne>>>Y&J]=$e}if(V<C&&(lt=lt&<.removeAfter(x,0,V)),K>=ke)K-=ke,V-=ke,te=Y,re=null,lt=lt&<.removeBefore(x,0,K);else if(K>E||ke<Ne){for(ie=0;re;){var qi=K>>>te&J;if(qi!==ke>>>te&J)break;qi&&(ie+=(1<<te)*qi),te-=Y,re=re.array[qi]}re&&K>E&&(re=re.removeBefore(x,te,K-ie)),re&&ke<Ne&&(re=re.removeAfter(x,te,ke-ie)),ie&&(K-=ie,V-=ie)}return u.__ownerID?(u.size=V-K,u._origin=K,u._capacity=V,u._level=te,u._root=re,u._tail=lt,u.__hash=void 0,u.__altered=!0,u):vn(K,V,te,re,lt)}function di(u,f,y){for(var x=[],E=0,C=0;C<y.length;C++){var K=y[C],V=g(K);V.size>E&&(E=V.size),b(K)||(V=V.map(function(te){return tn(te)})),x.push(V)}return E>u.size&&(u=u.setSize(E)),p(u,f,x)}function Ar(u){return u<W?0:u-1>>>Y<<Y}i(Xt,at);function Xt(u){return u==null?yt():ir(u)?u:yt().withMutations(function(f){var y=c(u);gn(y.size),y.forEach(function(x,E){return f.set(E,x)})})}Xt.of=function(){return this(arguments)},Xt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Xt.prototype.get=function(u,f){var y=this._map.get(u);return y!==void 0?this._list.get(y)[1]:f},Xt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):yt()},Xt.prototype.set=function(u,f){return wr(this,u,f)},Xt.prototype.remove=function(u){return wr(this,u,le)},Xt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Xt.prototype.__iterate=function(u,f){var y=this;return this._list.__iterate(function(x){return x&&u(x[1],x[0],y)},f)},Xt.prototype.__iterator=function(u,f){return this._list.fromEntrySeq().__iterator(u,f)},Xt.prototype.__ensureOwner=function(u){if(u===this.__ownerID)return this;var f=this._map.__ensureOwner(u),y=this._list.__ensureOwner(u);return u?lo(f,y,u,this.__hash):(this.__ownerID=u,this._map=f,this._list=y,this)};function ir(u){return Fr(u)&&M(u)}Xt.isOrderedMap=ir,Xt.prototype[I]=!0,Xt.prototype[G]=Xt.prototype.remove;function lo(u,f,y,x){var E=Object.create(Xt.prototype);return E.size=u?u.size:0,E._map=u,E._list=f,E.__ownerID=y,E.__hash=x,E}var Ho;function yt(){return Ho||(Ho=lo(Wt(),yn()))}function wr(u,f,y){var x=u._map,E=u._list,C=x.get(f),K=C!==void 0,V,te;if(y===le){if(!K)return u;E.size>=W&&E.size>=x.size*2?(te=E.filter(function(re,ie){return re!==void 0&&C!==ie}),V=te.toKeyedSeq().map(function(re){return re[0]}).flip().toMap(),u.__ownerID&&(V.__ownerID=te.__ownerID=u.__ownerID)):(V=x.remove(f),te=C===E.size-1?E.pop():E.set(C,void 0))}else if(K){if(y===E.get(C)[1])return u;V=x,te=E.set(C,[f,y])}else V=x.set(f,E.size),te=E.set(E.size,[f,y]);return u.__ownerID?(u.size=V.size,u._map=V,u._list=te,u.__hash=void 0,u):lo(V,te)}i(rn,st);function rn(u,f){this._iter=u,this._useKeys=f,this.size=u.size}rn.prototype.get=function(u,f){return this._iter.get(u,f)},rn.prototype.has=function(u){return this._iter.has(u)},rn.prototype.valueSeq=function(){return this._iter.valueSeq()},rn.prototype.reverse=function(){var u=this,f=so(this,!0);return this._useKeys||(f.valueSeq=function(){return u._iter.toSeq().reverse()}),f},rn.prototype.map=function(u,f){var y=this,x=pi(this,u,f);return this._useKeys||(x.valueSeq=function(){return y._iter.toSeq().map(u,f)}),x},rn.prototype.__iterate=function(u,f){var y=this,x;return this._iter.__iterate(this._useKeys?function(E,C){return u(E,C,y)}:(x=f?qr(this):0,function(E){return u(E,f?--x:x++,y)}),f)},rn.prototype.__iterator=function(u,f){if(this._useKeys)return this._iter.__iterator(u,f);var y=this._iter.__iterator(ae,f),x=f?qr(this):0;return new Ve(function(){var E=y.next();return E.done?E:ze(u,f?--x:x++,E.value,E)})},rn.prototype[I]=!0,i(Nn,ut);function Nn(u){this._iter=u,this.size=u.size}Nn.prototype.includes=function(u){return this._iter.includes(u)},Nn.prototype.__iterate=function(u,f){var y=this,x=0;return this._iter.__iterate(function(E){return u(E,x++,y)},f)},Nn.prototype.__iterator=function(u,f){var y=this._iter.__iterator(ae,f),x=0;return new Ve(function(){var E=y.next();return E.done?E:ze(u,x++,E.value,E)})},i(bn,Bt);function bn(u){this._iter=u,this.size=u.size}bn.prototype.has=function(u){return this._iter.includes(u)},bn.prototype.__iterate=function(u,f){var y=this;return this._iter.__iterate(function(x){return u(x,x,y)},f)},bn.prototype.__iterator=function(u,f){var y=this._iter.__iterator(ae,f);return new Ve(function(){var x=y.next();return x.done?x:ze(u,x.value,x.value,x)})},i(Hr,st);function Hr(u){this._iter=u,this.size=u.size}Hr.prototype.entrySeq=function(){return this._iter.toSeq()},Hr.prototype.__iterate=function(u,f){var y=this;return this._iter.__iterate(function(x){if(x){co(x);var E=b(x);return u(E?x.get(1):x[1],E?x.get(0):x[0],y)}},f)},Hr.prototype.__iterator=function(u,f){var y=this._iter.__iterator(ae,f);return new Ve(function(){for(;;){var x=y.next();if(x.done)return x;var E=x.value;if(E){co(E);var C=b(E);return ze(u,C?E.get(0):E[0],C?E.get(1):E[1],x)}}})},Nn.prototype.cacheResult=rn.prototype.cacheResult=bn.prototype.cacheResult=Hr.prototype.cacheResult=ji;function uo(u){var f=$n(u);return f._iter=u,f.size=u.size,f.flip=function(){return u},f.reverse=function(){var y=u.reverse.apply(this);return y.flip=function(){return u.reverse()},y},f.has=function(y){return u.includes(y)},f.includes=function(y){return u.has(y)},f.cacheResult=ji,f.__iterateUncached=function(y,x){var E=this;return u.__iterate(function(C,K){return y(K,C,E)!==!1},x)},f.__iteratorUncached=function(y,x){if(y===Ce){var E=u.__iterator(y,x);return new Ve(function(){var C=E.next();if(!C.done){var K=C.value[0];C.value[0]=C.value[1],C.value[1]=K}return C})}return u.__iterator(y===ae?fe:ae,x)},f}function pi(u,f,y){var x=$n(u);return x.size=u.size,x.has=function(E){return u.has(E)},x.get=function(E,C){var K=u.get(E,le);return K===le?C:f.call(y,K,E,u)},x.__iterateUncached=function(E,C){var K=this;return u.__iterate(function(V,te,re){return E(f.call(y,V,te,re),te,K)!==!1},C)},x.__iteratorUncached=function(E,C){var K=u.__iterator(Ce,C);return new Ve(function(){var V=K.next();if(V.done)return V;var te=V.value,re=te[0];return ze(E,re,f.call(y,te[1],re,u),V)})},x}function so(u,f){var y=$n(u);return y._iter=u,y.size=u.size,y.reverse=function(){return u},u.flip&&(y.flip=function(){var x=uo(u);return x.reverse=function(){return u.flip()},x}),y.get=function(x,E){return u.get(f?x:-1-x,E)},y.has=function(x){return u.has(f?x:-1-x)},y.includes=function(x){return u.includes(x)},y.cacheResult=ji,y.__iterate=function(x,E){var C=this;return u.__iterate(function(K,V){return x(K,V,C)},!E)},y.__iterator=function(x,E){return u.__iterator(x,!E)},y}function Vo(u,f,y,x){var E=$n(u);return x&&(E.has=function(C){var K=u.get(C,le);return K!==le&&!!f.call(y,K,C,u)},E.get=function(C,K){var V=u.get(C,le);return V!==le&&f.call(y,V,C,u)?V:K}),E.__iterateUncached=function(C,K){var V=this,te=0;return u.__iterate(function(re,ie,Ne){if(f.call(y,re,ie,Ne))return te++,C(re,x?ie:te-1,V)},K),te},E.__iteratorUncached=function(C,K){var V=u.__iterator(Ce,K),te=0;return new Ve(function(){for(;;){var re=V.next();if(re.done)return re;var ie=re.value,Ne=ie[0],ke=ie[1];if(f.call(y,ke,Ne,u))return ze(C,x?Ne:te++,ke,re)}})},E}function va(u,f,y){var x=at().asMutable();return u.__iterate(function(E,C){x.update(f.call(y,E,C,u),0,function(K){return K+1})}),x.asImmutable()}function Vr(u,f,y){var x=w(u),E=(M(u)?Xt():at()).asMutable();u.__iterate(function(K,V){E.update(f.call(y,K,V,u),function(te){return te=te||[],te.push(x?[V,K]:K),te})});var C=Xo(u);return E.map(function(K){return ft(u,C(K))})}function qo(u,f,y,x){var E=u.size;if(f!==void 0&&(f=f|0),y!==void 0&&(y=y|0),Ie(f,y,E))return u;var C=Fe(f,E),K=Ae(y,E);if(C!==C||K!==K)return qo(u.toSeq().cacheResult(),f,y,x);var V=K-C,te;V===V&&(te=V<0?0:V);var re=$n(u);return re.size=te===0?te:u.size&&te||void 0,!x&&Rt(u)&&te>=0&&(re.get=function(ie,Ne){return ie=ge(this,ie),ie>=0&&ie<te?u.get(ie+C,Ne):Ne}),re.__iterateUncached=function(ie,Ne){var ke=this;if(te===0)return 0;if(Ne)return this.cacheResult().__iterate(ie,Ne);var $e=0,lt=!0,At=0;return u.__iterate(function(xr,Ur){if(!(lt&&(lt=$e++<C)))return At++,ie(xr,x?Ur:At-1,ke)!==!1&&At!==te}),At},re.__iteratorUncached=function(ie,Ne){if(te!==0&&Ne)return this.cacheResult().__iterator(ie,Ne);var ke=te!==0&&u.__iterator(ie,Ne),$e=0,lt=0;return new Ve(function(){for(;$e++<C;)ke.next();if(++lt>te)return dt();var At=ke.next();return x||ie===ae?At:ie===fe?ze(ie,lt-1,void 0,At):ze(ie,lt-1,At.value[1],At)})},re}function Ti(u,f,y){var x=$n(u);return x.__iterateUncached=function(E,C){var K=this;if(C)return this.cacheResult().__iterate(E,C);var V=0;return u.__iterate(function(te,re,ie){return f.call(y,te,re,ie)&&++V&&E(te,re,K)}),V},x.__iteratorUncached=function(E,C){var K=this;if(C)return this.cacheResult().__iterator(E,C);var V=u.__iterator(Ce,C),te=!0;return new Ve(function(){if(!te)return dt();var re=V.next();if(re.done)return re;var ie=re.value,Ne=ie[0],ke=ie[1];return f.call(y,ke,Ne,K)?E===Ce?re:ze(E,Ne,ke,re):(te=!1,dt())})},x}function ya(u,f,y,x){var E=$n(u);return E.__iterateUncached=function(C,K){var V=this;if(K)return this.cacheResult().__iterate(C,K);var te=!0,re=0;return u.__iterate(function(ie,Ne,ke){if(!(te&&(te=f.call(y,ie,Ne,ke))))return re++,C(ie,x?Ne:re-1,V)}),re},E.__iteratorUncached=function(C,K){var V=this;if(K)return this.cacheResult().__iterator(C,K);var te=u.__iterator(Ce,K),re=!0,ie=0;return new Ve(function(){var Ne,ke,$e;do{if(Ne=te.next(),Ne.done)return x||C===ae?Ne:C===fe?ze(C,ie++,void 0,Ne):ze(C,ie++,Ne.value[1],Ne);var lt=Ne.value;ke=lt[0],$e=lt[1],re&&(re=f.call(y,$e,ke,V))}while(re);return C===Ce?Ne:ze(C,ke,$e,Ne)})},E}function No(u,f){var y=w(u),x=[u].concat(f).map(function(K){return b(K)?y&&(K=c(K)):K=y?Ye(K):ht(Array.isArray(K)?K:[K]),K}).filter(function(K){return K.size!==0});if(x.length===0)return u;if(x.length===1){var E=x[0];if(E===u||y&&w(E)||L(u)&&L(E))return E}var C=new Dt(x);return y?C=C.toKeyedSeq():L(u)||(C=C.toSetSeq()),C=C.flatten(!0),C.size=x.reduce(function(K,V){if(K!==void 0){var te=V.size;if(te!==void 0)return K+te}},0),C}function Uo(u,f,y){var x=$n(u);return x.__iterateUncached=function(E,C){var K=0,V=!1;function te(re,ie){var Ne=this;re.__iterate(function(ke,$e){return(!f||ie<f)&&b(ke)?te(ke,ie+1):E(ke,y?$e:K++,Ne)===!1&&(V=!0),!V},C)}return te(u,0),K},x.__iteratorUncached=function(E,C){var K=u.__iterator(E,C),V=[],te=0;return new Ve(function(){for(;K;){var re=K.next();if(re.done!==!1){K=V.pop();continue}var ie=re.value;if(E===Ce&&(ie=ie[1]),(!f||V.length<f)&&b(ie))V.push(K),K=ie.__iterator(E,C);else return y?re:ze(E,te++,ie,re)}return dt()})},x}function hi(u,f,y){var x=Xo(u);return u.toSeq().map(function(E,C){return x(f.call(y,E,C,u))}).flatten(!0)}function On(u,f){var y=$n(u);return y.size=u.size&&u.size*2-1,y.__iterateUncached=function(x,E){var C=this,K=0;return u.__iterate(function(V,te){return(!K||x(f,K++,C)!==!1)&&x(V,K++,C)!==!1},E),K},y.__iteratorUncached=function(x,E){var C=u.__iterator(ae,E),K=0,V;return new Ve(function(){return(!V||K%2)&&(V=C.next(),V.done)?V:K%2?ze(x,K++,f):ze(x,K++,V.value,V)})},y}function ar(u,f,y){f||(f=Ii);var x=w(u),E=0,C=u.toSeq().map(function(K,V){return[V,K,E++,y?y(K,V,u):K]}).toArray();return C.sort(function(K,V){return f(K[3],V[3])||K[2]-V[2]}).forEach(x?function(K,V){C[V].length=2}:function(K,V){C[V]=K[1]}),x?st(C):L(u)?ut(C):Bt(C)}function Sr(u,f,y){if(f||(f=Ii),y){var x=u.toSeq().map(function(E,C){return[E,y(E,C,u)]}).reduce(function(E,C){return Qo(f,E[1],C[1])?C:E});return x&&x[0]}else return u.reduce(function(E,C){return Qo(f,E,C)?C:E})}function Qo(u,f,y){var x=u(y,f);return x===0&&y!==f&&(y==null||y!==y)||x>0}function mi(u,f,y){var x=$n(u);return x.size=new Dt(y).map(function(E){return E.size}).min(),x.__iterate=function(E,C){for(var K=this.__iterator(ae,C),V,te=0;!(V=K.next()).done&&E(V.value,te++,this)!==!1;);return te},x.__iteratorUncached=function(E,C){var K=y.map(function(re){return re=l(re),Pt(C?re.reverse():re)}),V=0,te=!1;return new Ve(function(){var re;return te||(re=K.map(function(ie){return ie.next()}),te=re.some(function(ie){return ie.done})),te?dt():ze(E,V++,f.apply(null,re.map(function(ie){return ie.value})))})},x}function ft(u,f){return Rt(u)?f:u.constructor(f)}function co(u){if(u!==Object(u))throw new TypeError("Expected [K, V] tuple: "+u)}function qr(u){return gn(u.size),he(u)}function Xo(u){return w(u)?c:L(u)?g:v}function $n(u){return Object.create((w(u)?st:L(u)?ut:Bt).prototype)}function ji(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Xe.prototype.cacheResult.call(this)}function Ii(u,f){return u>f?1:u<f?-1:0}function Bn(u){var f=Pt(u);if(!f){if(!en(u))throw new TypeError("Expected iterable or array-like: "+u);f=Pt(l(u))}return f}i(_n,Xn);function _n(u,f){var y,x=function(C){if(C instanceof x)return C;if(!(this instanceof x))return new x(C);if(!y){y=!0;var K=Object.keys(u);Ki(E,K),E.size=K.length,E._name=f,E._keys=K,E._defaultValues=u}this._map=at(C)},E=x.prototype=Object.create(on);return E.constructor=x,x}_n.prototype.toString=function(){return this.__toString(ba(this)+" {","}")},_n.prototype.has=function(u){return this._defaultValues.hasOwnProperty(u)},_n.prototype.get=function(u,f){if(!this.has(u))return f;var y=this._defaultValues[u];return this._map?this._map.get(u,y):y},_n.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var u=this.constructor;return u._empty||(u._empty=zi(this,Wt()))},_n.prototype.set=function(u,f){if(!this.has(u))throw new Error('Cannot set unknown key "'+u+'" on '+ba(this));var y=this._map&&this._map.set(u,f);return this.__ownerID||y===this._map?this:zi(this,y)},_n.prototype.remove=function(u){if(!this.has(u))return this;var f=this._map&&this._map.remove(u);return this.__ownerID||f===this._map?this:zi(this,f)},_n.prototype.wasAltered=function(){return this._map.wasAltered()},_n.prototype.__iterator=function(u,f){var y=this;return c(this._defaultValues).map(function(x,E){return y.get(E)}).__iterator(u,f)},_n.prototype.__iterate=function(u,f){var y=this;return c(this._defaultValues).map(function(x,E){return y.get(E)}).__iterate(u,f)},_n.prototype.__ensureOwner=function(u){if(u===this.__ownerID)return this;var f=this._map&&this._map.__ensureOwner(u);return u?zi(this,f,u):(this.__ownerID=u,this._map=f,this)};var on=_n.prototype;on[G]=on.remove,on.deleteIn=on.removeIn=tt.removeIn,on.merge=tt.merge,on.mergeWith=tt.mergeWith,on.mergeIn=tt.mergeIn,on.mergeDeep=tt.mergeDeep,on.mergeDeepWith=tt.mergeDeepWith,on.mergeDeepIn=tt.mergeDeepIn,on.setIn=tt.setIn,on.update=tt.update,on.updateIn=tt.updateIn,on.withMutations=tt.withMutations,on.asMutable=tt.asMutable,on.asImmutable=tt.asImmutable;function zi(u,f,y){var x=Object.create(Object.getPrototypeOf(u));return x._map=f,x.__ownerID=y,x}function ba(u){return u._name||u.constructor.name||"Record"}function Ki(u,f){try{f.forEach(Ga.bind(void 0,u))}catch{}}function Ga(u,f){Object.defineProperty(u,f,{get:function(){return this.get(f)},set:function(y){fn(this.__ownerID,"Cannot set on an immutable record."),this.set(f,y)}})}i(Lt,tr);function Lt(u){return u==null?Vi():Zo(u)&&!M(u)?u:Vi().withMutations(function(f){var y=v(u);gn(y.size),y.forEach(function(x){return f.add(x)})})}Lt.of=function(){return this(arguments)},Lt.fromKeys=function(u){return this(c(u).keySeq())},Lt.prototype.toString=function(){return this.__toString("Set {","}")},Lt.prototype.has=function(u){return this._map.has(u)},Lt.prototype.add=function(u){return Ai(this,this._map.set(u,!0))},Lt.prototype.remove=function(u){return Ai(this,this._map.remove(u))},Lt.prototype.clear=function(){return Ai(this,this._map.clear())},Lt.prototype.union=function(){var u=o.call(arguments,0);return u=u.filter(function(f){return f.size!==0}),u.length===0?this:this.size===0&&!this.__ownerID&&u.length===1?this.constructor(u[0]):this.withMutations(function(f){for(var y=0;y<u.length;y++)v(u[y]).forEach(function(x){return f.add(x)})})},Lt.prototype.intersect=function(){var u=o.call(arguments,0);if(u.length===0)return this;u=u.map(function(y){return v(y)});var f=this;return this.withMutations(function(y){f.forEach(function(x){u.every(function(E){return E.includes(x)})||y.remove(x)})})},Lt.prototype.subtract=function(){var u=o.call(arguments,0);if(u.length===0)return this;u=u.map(function(y){return v(y)});var f=this;return this.withMutations(function(y){f.forEach(function(x){u.some(function(E){return E.includes(x)})&&y.remove(x)})})},Lt.prototype.merge=function(){return this.union.apply(this,arguments)},Lt.prototype.mergeWith=function(u){var f=o.call(arguments,1);return this.union.apply(this,f)},Lt.prototype.sort=function(u){return h(ar(this,u))},Lt.prototype.sortBy=function(u,f){return h(ar(this,f,u))},Lt.prototype.wasAltered=function(){return this._map.wasAltered()},Lt.prototype.__iterate=function(u,f){var y=this;return this._map.__iterate(function(x,E){return u(E,E,y)},f)},Lt.prototype.__iterator=function(u,f){return this._map.map(function(y,x){return x}).__iterator(u,f)},Lt.prototype.__ensureOwner=function(u){if(u===this.__ownerID)return this;var f=this._map.__ensureOwner(u);return u?this.__make(f,u):(this.__ownerID=u,this._map=f,this)};function Zo(u){return!!(u&&u[gi])}Lt.isSet=Zo;var gi="@@__IMMUTABLE_SET__@@",Rn=Lt.prototype;Rn[gi]=!0,Rn[G]=Rn.remove,Rn.mergeDeep=Rn.merge,Rn.mergeDeepWith=Rn.mergeWith,Rn.withMutations=tt.withMutations,Rn.asMutable=tt.asMutable,Rn.asImmutable=tt.asImmutable,Rn.__empty=Vi,Rn.__make=vi;function Ai(u,f){return u.__ownerID?(u.size=f.size,u._map=f,u):f===u._map?u:f.size===0?u.__empty():u.__make(f)}function vi(u,f){var y=Object.create(Rn);return y.size=u?u.size:0,y._map=u,y.__ownerID=f,y}var Hi;function Vi(){return Hi||(Hi=vi(Wt()))}i(h,Lt);function h(u){return u==null?U():_(u)?u:U().withMutations(function(f){var y=v(u);gn(y.size),y.forEach(function(x){return f.add(x)})})}h.of=function(){return this(arguments)},h.fromKeys=function(u){return this(c(u).keySeq())},h.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function _(u){return Zo(u)&&M(u)}h.isOrderedSet=_;var N=h.prototype;N[I]=!0,N.__empty=U,N.__make=F;function F(u,f){var y=Object.create(N);return y.size=u?u.size:0,y._map=u,y.__ownerID=f,y}var Z;function U(){return Z||(Z=F(yt()))}i(ne,Zn);function ne(u){return u==null?wn():pe(u)?u:wn().unshiftAll(u)}ne.of=function(){return this(arguments)},ne.prototype.toString=function(){return this.__toString("Stack [","]")},ne.prototype.get=function(u,f){var y=this._head;for(u=ge(this,u);y&&u--;)y=y.next;return y?y.value:f},ne.prototype.peek=function(){return this._head&&this._head.value},ne.prototype.push=function(){if(arguments.length===0)return this;for(var u=this.size+arguments.length,f=this._head,y=arguments.length-1;y>=0;y--)f={value:arguments[y],next:f};return this.__ownerID?(this.size=u,this._head=f,this.__hash=void 0,this.__altered=!0,this):qe(u,f)},ne.prototype.pushAll=function(u){if(u=g(u),u.size===0)return this;gn(u.size);var f=this.size,y=this._head;return u.reverse().forEach(function(x){f++,y={value:x,next:y}}),this.__ownerID?(this.size=f,this._head=y,this.__hash=void 0,this.__altered=!0,this):qe(f,y)},ne.prototype.pop=function(){return this.slice(1)},ne.prototype.unshift=function(){return this.push.apply(this,arguments)},ne.prototype.unshiftAll=function(u){return this.pushAll(u)},ne.prototype.shift=function(){return this.pop.apply(this,arguments)},ne.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wn()},ne.prototype.slice=function(u,f){if(Ie(u,f,this.size))return this;var y=Fe(u,this.size),x=Ae(f,this.size);if(x!==this.size)return Zn.prototype.slice.call(this,u,f);for(var E=this.size-y,C=this._head;y--;)C=C.next;return this.__ownerID?(this.size=E,this._head=C,this.__hash=void 0,this.__altered=!0,this):qe(E,C)},ne.prototype.__ensureOwner=function(u){return u===this.__ownerID?this:u?qe(this.size,this._head,u,this.__hash):(this.__ownerID=u,this.__altered=!1,this)},ne.prototype.__iterate=function(u,f){if(f)return this.reverse().__iterate(u);for(var y=0,x=this._head;x&&u(x.value,y++,this)!==!1;)x=x.next;return y},ne.prototype.__iterator=function(u,f){if(f)return this.reverse().__iterator(u);var y=0,x=this._head;return new Ve(function(){if(x){var E=x.value;return x=x.next,ze(u,y++,E)}return dt()})};function pe(u){return!!(u&&u[He])}ne.isStack=pe;var He="@@__IMMUTABLE_STACK__@@",Ze=ne.prototype;Ze[He]=!0,Ze.withMutations=tt.withMutations,Ze.asMutable=tt.asMutable,Ze.asImmutable=tt.asImmutable,Ze.wasAltered=tt.wasAltered;function qe(u,f,y,x){var E=Object.create(Ze);return E.size=u,E._head=f,E.__ownerID=y,E.__hash=x,E.__altered=!1,E}var Ct;function wn(){return Ct||(Ct=qe(0))}function Zt(u,f){var y=function(x){u.prototype[x]=f[x]};return Object.keys(f).forEach(y),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(f).forEach(y),u}l.Iterator=Ve,Zt(l,{toArray:function(){gn(this.size);var u=new Array(this.size||0);return this.valueSeq().__iterate(function(f,y){u[y]=f}),u},toIndexedSeq:function(){return new Nn(this)},toJS:function(){return this.toSeq().map(function(u){return u&&typeof u.toJS=="function"?u.toJS():u}).__toJS()},toJSON:function(){return this.toSeq().map(function(u){return u&&typeof u.toJSON=="function"?u.toJSON():u}).__toJS()},toKeyedSeq:function(){return new rn(this,!0)},toMap:function(){return at(this.toKeyedSeq())},toObject:function(){gn(this.size);var u={};return this.__iterate(function(f,y){u[y]=f}),u},toOrderedMap:function(){return Xt(this.toKeyedSeq())},toOrderedSet:function(){return h(w(this)?this.valueSeq():this)},toSet:function(){return Lt(w(this)?this.valueSeq():this)},toSetSeq:function(){return new bn(this)},toSeq:function(){return L(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ne(w(this)?this.valueSeq():this)},toList:function(){return Ee(w(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(u,f){return this.size===0?u+f:u+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+f},concat:function(){var u=o.call(arguments,0);return ft(this,No(this,u))},includes:function(u){return this.some(function(f){return It(f,u)})},entries:function(){return this.__iterator(Ce)},every:function(u,f){gn(this.size);var y=!0;return this.__iterate(function(x,E,C){if(!u.call(f,x,E,C))return y=!1,!1}),y},filter:function(u,f){return ft(this,Vo(this,u,f,!0))},find:function(u,f,y){var x=this.findEntry(u,f);return x?x[1]:y},findEntry:function(u,f){var y;return this.__iterate(function(x,E,C){if(u.call(f,x,E,C))return y=[E,x],!1}),y},findLastEntry:function(u,f){return this.toSeq().reverse().findEntry(u,f)},forEach:function(u,f){return gn(this.size),this.__iterate(f?u.bind(f):u)},join:function(u){gn(this.size),u=u!==void 0?""+u:",";var f="",y=!0;return this.__iterate(function(x){y?y=!1:f+=u,f+=x!=null?x.toString():""}),f},keys:function(){return this.__iterator(fe)},map:function(u,f){return ft(this,pi(this,u,f))},reduce:function(u,f,y){gn(this.size);var x,E;return arguments.length<2?E=!0:x=f,this.__iterate(function(C,K,V){E?(E=!1,x=C):x=u.call(y,x,C,K,V)}),x},reduceRight:function(u,f,y){var x=this.toKeyedSeq().reverse();return x.reduce.apply(x,arguments)},reverse:function(){return ft(this,so(this,!0))},slice:function(u,f){return ft(this,qo(this,u,f,!0))},some:function(u,f){return!this.every(el(u),f)},sort:function(u){return ft(this,ar(this,u))},values:function(){return this.__iterator(ae)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(u,f){return he(u?this.toSeq().filter(u,f):this)},countBy:function(u,f){return va(this,u,f)},equals:function(u){return So(this,u)},entrySeq:function(){var u=this;if(u._cache)return new Dt(u._cache);var f=u.toSeq().map(po).toIndexedSeq();return f.fromEntrySeq=function(){return u.toSeq()},f},filterNot:function(u,f){return this.filter(el(u),f)},findLast:function(u,f,y){return this.toKeyedSeq().reverse().find(u,f,y)},first:function(){return this.find(Le)},flatMap:function(u,f){return ft(this,hi(this,u,f))},flatten:function(u){return ft(this,Uo(this,u,!0))},fromEntrySeq:function(){return new Hr(this)},get:function(u,f){return this.find(function(y,x){return It(x,u)},void 0,f)},getIn:function(u,f){for(var y=this,x=Bn(u),E;!(E=x.next()).done;){var C=E.value;if(y=y&&y.get?y.get(C,le):le,y===le)return f}return y},groupBy:function(u,f){return Vr(this,u,f)},has:function(u){return this.get(u,le)!==le},hasIn:function(u){return this.getIn(u,le)!==le},isSubset:function(u){return u=typeof u.includes=="function"?u:l(u),this.every(function(f){return u.includes(f)})},isSuperset:function(u){return u=typeof u.isSubset=="function"?u:l(u),u.isSubset(this)},keySeq:function(){return this.toSeq().map(_a).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(u){return Sr(this,u)},maxBy:function(u,f){return Sr(this,f,u)},min:function(u){return Sr(this,u?Ss(u):Wl)},minBy:function(u,f){return Sr(this,f?Ss(f):Wl,u)},rest:function(){return this.slice(1)},skip:function(u){return this.slice(Math.max(0,u))},skipLast:function(u){return ft(this,this.toSeq().reverse().skip(u).reverse())},skipWhile:function(u,f){return ft(this,ya(this,u,f,!0))},skipUntil:function(u,f){return this.skipWhile(el(u),f)},sortBy:function(u,f){return ft(this,ar(this,f,u))},take:function(u){return this.slice(0,Math.max(0,u))},takeLast:function(u){return ft(this,this.toSeq().reverse().take(u).reverse())},takeWhile:function(u,f){return ft(this,Ti(this,u,f))},takeUntil:function(u,f){return this.takeWhile(el(u),f)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=wa(this))}});var xt=l.prototype;xt[z]=!0,xt[Ft]=xt.values,xt.__toJS=xt.toArray,xt.__toStringMapper=xs,xt.inspect=xt.toSource=function(){return this.toString()},xt.chain=xt.flatMap,xt.contains=xt.includes,function(){try{Object.defineProperty(xt,"length",{get:function(){if(!l.noLengthWarning){var u;try{throw new Error}catch(f){u=f.stack}if(u.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+u),this.size}}})}catch{}}(),Zt(c,{flip:function(){return ft(this,uo(this))},findKey:function(u,f){var y=this.findEntry(u,f);return y&&y[0]},findLastKey:function(u,f){return this.toSeq().reverse().findKey(u,f)},keyOf:function(u){return this.findKey(function(f){return It(f,u)})},lastKeyOf:function(u){return this.findLastKey(function(f){return It(f,u)})},mapEntries:function(u,f){var y=this,x=0;return ft(this,this.toSeq().map(function(E,C){return u.call(f,[C,E],x++,y)}).fromEntrySeq())},mapKeys:function(u,f){var y=this;return ft(this,this.toSeq().flip().map(function(x,E){return u.call(f,x,E,y)}).flip())}});var fo=c.prototype;fo[B]=!0,fo[Ft]=xt.entries,fo.__toJS=xt.toObject,fo.__toStringMapper=function(u,f){return JSON.stringify(f)+": "+xs(u)},Zt(g,{toKeyedSeq:function(){return new rn(this,!1)},filter:function(u,f){return ft(this,Vo(this,u,f,!1))},findIndex:function(u,f){var y=this.findEntry(u,f);return y?y[0]:-1},indexOf:function(u){var f=this.toKeyedSeq().keyOf(u);return f===void 0?-1:f},lastIndexOf:function(u){var f=this.toKeyedSeq().reverse().keyOf(u);return f===void 0?-1:f},reverse:function(){return ft(this,so(this,!1))},slice:function(u,f){return ft(this,qo(this,u,f,!1))},splice:function(u,f){var y=arguments.length;if(f=Math.max(f|0,0),y===0||y===2&&!f)return this;u=Fe(u,u<0?this.count():this.size);var x=this.slice(0,u);return ft(this,y===1?x:x.concat(we(arguments,2),this.slice(u+f)))},findLastIndex:function(u,f){var y=this.toKeyedSeq().findLastKey(u,f);return y===void 0?-1:y},first:function(){return this.get(0)},flatten:function(u){return ft(this,Uo(this,u,!1))},get:function(u,f){return u=ge(this,u),u<0||this.size===1/0||this.size!==void 0&&u>this.size?f:this.find(function(y,x){return x===u},void 0,f)},has:function(u){return u=ge(this,u),u>=0&&(this.size!==void 0?this.size===1/0||u<this.size:this.indexOf(u)!==-1)},interpose:function(u){return ft(this,On(this,u))},interleave:function(){var u=[this].concat(we(arguments)),f=mi(this.toSeq(),ut.of,u),y=f.flatten(!0);return f.size&&(y.size=f.size*u.length),ft(this,y)},last:function(){return this.get(-1)},skipWhile:function(u,f){return ft(this,ya(this,u,f,!1))},zip:function(){var u=[this].concat(we(arguments));return ft(this,mi(this,Es,u))},zipWith:function(u){var f=we(arguments);return f[0]=this,ft(this,mi(this,u,f))}}),g.prototype[T]=!0,g.prototype[I]=!0,Zt(v,{get:function(u,f){return this.has(u)?u:f},includes:function(u){return this.has(u)},keySeq:function(){return this.valueSeq()}}),v.prototype.has=xt.includes,Zt(st,c.prototype),Zt(ut,g.prototype),Zt(Bt,v.prototype),Zt(Xn,c.prototype),Zt(Zn,g.prototype),Zt(tr,v.prototype);function _a(u,f){return f}function po(u,f){return[f,u]}function el(u){return function(){return!u.apply(this,arguments)}}function Ss(u){return function(){return-u.apply(this,arguments)}}function xs(u){return typeof u=="string"?JSON.stringify(u):u}function Es(){return we(arguments)}function Wl(u,f){return u<f?1:u>f?-1:0}function wa(u){if(u.size===1/0)return 0;var f=M(u),y=w(u),x=f?1:0,E=u.__iterate(y?f?function(C,K){x=31*x+ks(zt(C),zt(K))|0}:function(C,K){x=x+ks(zt(C),zt(K))|0}:f?function(C){x=31*x+zt(C)|0}:function(C){x=x+zt(C)|0});return Sa(E,x)}function Sa(u,f){return f=kn(f,3432918353),f=kn(f<<15|f>>>-15,461845907),f=kn(f<<13|f>>>-13,5),f=(f+3864292196|0)^u,f=kn(f^f>>>16,2246822507),f=kn(f^f>>>13,3266489909),f=Cr(f^f>>>16),f}function ks(u,f){return u^f+2654435769+(u<<6)+(u>>2)|0}var tl={Iterable:l,Seq:Xe,Collection:ot,Map:at,OrderedMap:Xt,List:Ee,Stack:ne,Set:Lt,OrderedSet:h,Record:_n,Range:qt,Repeat:Jt,is:It,fromJS:tn};return tl})})(Sw);var xw=gt,Ew=xw.OrderedMap,kw={createFromArray:function(t){return Ew(t.map(function(r){return[r.getKey(),r]}))}},kl=kw;function Nw(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var Lc=gt,Cc=Lc.Map,Mc=Lc.OrderedSet,Ow=Lc.Record,Ip=Mc(),zp={style:Ip,entity:null},Lw=Ow(zp),Fc=function(t){Nw(r,t);function r(){return t.apply(this,arguments)||this}var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(i){return this.getStyle().includes(i)},r.applyStyle=function(i,l){var c=i.set("style",i.getStyle().add(l));return r.create(c)},r.removeStyle=function(i,l){var c=i.set("style",i.getStyle().remove(l));return r.create(c)},r.applyEntity=function(i,l){var c=i.getEntity()===l?i:i.set("entity",l);return r.create(c)},r.create=function(i){if(!i)return Dc;var l={style:Ip,entity:null},c=Cc(l).merge(i),g=Pc.get(c);if(g)return g;var v=new r(c);return Pc=Pc.set(c,v),v},r.fromJS=function(i){var l=i.style,c=i.entity;return new r({style:Array.isArray(l)?Mc(l):l,entity:Array.isArray(c)?Mc(c):c})},r}(Lw),Dc=new Fc,Pc=Cc([[Cc(zp),Dc]]);Fc.EMPTY=Dc;var $r=Fc;function Cw(t,r,o,i){if(t.size){var l=0;t.reduce(function(c,g,v){return r(c,g)||(o(c)&&i(l,v),l=v),g}),o(t.last())&&i(l,t.count())}}var Nl=Cw;function Mw(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var Fw=$r,Kp=Nl,Ol=gt,Ap=Ol.List,Dw=Ol.Map,Pw=Ol.OrderedSet,Bw=Ol.Record,Rw=Ol.Repeat,Tw=Pw(),jw={key:"",type:"unstyled",text:"",characterList:Ap(),depth:0,data:Dw()},Iw=Bw(jw),zw=function(t){if(!t)return t;var r=t.characterList,o=t.text;return o&&!r&&(t.characterList=Ap(Rw(Fw.EMPTY,o.length))),t},Kw=function(t){Mw(r,t);function r(i){return t.call(this,zw(i))||this}var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(i){var l=this.getCharacterList().get(i);return l?l.getStyle():Tw},o.getEntityAt=function(i){var l=this.getCharacterList().get(i);return l?l.getEntity():null},o.findStyleRanges=function(i,l){Kp(this.getCharacterList(),Aw,i,l)},o.findEntityRanges=function(i,l){Kp(this.getCharacterList(),Hw,i,l)},r}(Iw);function Aw(t,r){return t.getStyle()===r.getStyle()}function Hw(t,r){return t.getEntity()===r.getEntity()}var ia=Kw;function Vw(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var qw=$r,Hp=Nl,Ll=gt,Bc=Ll.List,Uw=Ll.Map,Qw=Ll.OrderedSet,Xw=Ll.Record,Zw=Ll.Repeat,$w=Qw(),Vp={parent:null,characterList:Bc(),data:Uw(),depth:0,key:"",text:"",type:"unstyled",children:Bc(),prevSibling:null,nextSibling:null},Yw=function(t,r){return t.getStyle()===r.getStyle()},Jw=function(t,r){return t.getEntity()===r.getEntity()},Ww=function(t){if(!t)return t;var r=t.characterList,o=t.text;return o&&!r&&(t.characterList=Bc(Zw(qw.EMPTY,o.length))),t},Gw=function(t){Vw(r,t);function r(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vp;return t.call(this,Ww(i))||this}var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(i){var l=this.getCharacterList().get(i);return l?l.getStyle():$w},o.getEntityAt=function(i){var l=this.getCharacterList().get(i);return l?l.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(i,l){Hp(this.getCharacterList(),Yw,i,l)},o.findEntityRanges=function(i,l){Hp(this.getCharacterList(),Jw,i,l)},r}(Xw(Vp)),Yr=Gw,qp=$r,e1=gt,t1=e1.Map,n1={add:function(t,r,o){return Up(t,r,o,!0)},remove:function(t,r,o){return Up(t,r,o,!1)}};function Up(t,r,o,i){var l=t.getBlockMap(),c=r.getStartKey(),g=r.getStartOffset(),v=r.getEndKey(),b=r.getEndOffset(),w=l.skipUntil(function(L,R){return R===c}).takeUntil(function(L,R){return R===v}).concat(t1([[v,l.get(v)]])).map(function(L,R){var M,z;c===v?(M=g,z=b):(M=R===c?g:0,z=R===v?b:L.getLength());for(var B=L.getCharacterList(),T;M<z;)T=B.get(M),B=B.set(M,i?qp.applyStyle(T,o):qp.removeStyle(T,o)),M++;return L.set("characterList",B)});return t.merge({blockMap:l.merge(w),selectionBefore:r,selectionAfter:r})}var r1=n1,o1=$r;function i1(t,r,o,i){for(var l=r,c=t.getCharacterList();l<o;)c=c.set(l,o1.applyEntity(c.get(l),i)),l++;return t.set("characterList",c)}var a1=i1,l1=a1,u1=gt;function s1(t,r,o){var i=t.getBlockMap(),l=r.getStartKey(),c=r.getStartOffset(),g=r.getEndKey(),v=r.getEndOffset(),b=i.skipUntil(function(w,L){return L===l}).takeUntil(function(w,L){return L===g}).toOrderedMap().merge(u1.OrderedMap([[g,i.get(g)]])).map(function(w,L){var R=L===l?c:0,M=L===g?v:w.getLength();return l1(w,R,M,o)});return t.merge({blockMap:i.merge(b),selectionBefore:r,selectionAfter:r})}var c1=s1,f1={getRemovalRange:function(t,r,o,i,l){var c=o.split(" ");c=c.map(function(T,I){if(l==="forward"){if(I>0)return" "+T}else if(I<c.length-1)return T+" ";return T});for(var g=i,v,b,w=null,L=null,R=0;R<c.length;R++){if(b=c[R],v=g+b.length,t<v&&g<r)w!==null||(w=g),L=v;else if(w!==null)break;g=v}var M=i+o.length,z=w===i,B=L===M;return(!z&&B||z&&!B)&&(l==="forward"?L!==M&&L++:w!==i&&w--),{start:w,end:L}}},d1=f1;function p1(t,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),l=2;l<o;l++)i[l-2]=arguments[l];if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=0;c=new Error(r.replace(/%s/g,function(){return String(i[g++])})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var wt=p1,h1=wt;function m1(t,r){var o=[];return t.findEntityRanges(function(i){return i.getEntity()===r},function(i,l){o.push({start:i,end:l})}),o.length||h1(!1),o}var g1=m1,v1=d1,y1=g1,b1=wt;function _1(t,r,o,i,l){var c=i.getStartOffset(),g=i.getEndOffset(),v=r.getEntityAt(c),b=o.getEntityAt(g-1);if(!v&&!b)return i;var w=i;if(v&&v===b)w=Cl(t,r,w,l,v,!0,!0);else if(v&&b){var L=Cl(t,r,w,l,v,!1,!0),R=Cl(t,o,w,l,b,!1,!1);w=w.merge({anchorOffset:L.getAnchorOffset(),focusOffset:R.getFocusOffset(),isBackward:!1})}else if(v){var M=Cl(t,r,w,l,v,!1,!0);w=w.merge({anchorOffset:M.getStartOffset(),isBackward:!1})}else if(b){var z=Cl(t,o,w,l,b,!1,!1);w=w.merge({focusOffset:z.getEndOffset(),isBackward:!1})}return w}function Cl(t,r,o,i,l,c,g){var v=o.getStartOffset(),b=o.getEndOffset(),w=t.__get(l),L=w.getMutability(),R=g?v:b;if(L==="MUTABLE")return o;var M=y1(r,l).filter(function(T){return R<=T.end&&R>=T.start});M.length!=1&&b1(!1);var z=M[0];if(L==="IMMUTABLE")return o.merge({anchorOffset:z.start,focusOffset:z.end,isBackward:!1});c||(g?b=z.end:v=z.start);var B=v1.getRemovalRange(v,b,r.getText().slice(z.start,z.end),z.start,i);return o.merge({anchorOffset:B.start,focusOffset:B.end,isBackward:!1})}var w1=_1,Qp={},S1=Math.pow(2,24);function x1(){for(var t;t===void 0||Qp.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*S1).toString(32);return Qp[t]=!0,t}var Po=x1,E1=Yr,Xp=Po,k1=gt,Zp=k1.OrderedMap,N1=function(t){var r={},o;return Zp(t.withMutations(function(i){i.forEach(function(l,c){var g=l.getKey(),v=l.getNextSiblingKey(),b=l.getPrevSiblingKey(),w=l.getChildKeys(),L=l.getParentKey(),R=Xp();if(r[g]=R,v){var M=i.get(v);M?i.setIn([v,"prevSibling"],R):i.setIn([g,"nextSibling"],null)}if(b){var z=i.get(b);z?i.setIn([b,"nextSibling"],R):i.setIn([g,"prevSibling"],null)}if(L&&i.get(L)){var B=i.get(L),T=B.getChildKeys();i.setIn([L,"children"],T.set(T.indexOf(l.getKey()),R))}else i.setIn([g,"parent"],null),o&&(i.setIn([o.getKey(),"nextSibling"],R),i.setIn([g,"prevSibling"],r[o.getKey()])),o=i.get(g);w.forEach(function(I){var G=i.get(I);G?i.setIn([I,"parent"],R):i.setIn([g,"children"],l.getChildKeys().filter(function(Y){return Y!==I}))})})}).toArray().map(function(i){return[r[i.getKey()],i.set("key",r[i.getKey()])]}))},O1=function(t){return Zp(t.toArray().map(function(r){var o=Xp();return[o,r.set("key",o)]}))},L1=function(t){var r=t.first()instanceof E1;return r?N1(t):O1(t)},$p=L1,C1=$r,M1=Nl,F1=wt;function D1(t,r){var o=t.getBlockMap(),i=t.getEntityMap(),l={},c=r.getStartKey(),g=r.getStartOffset(),v=o.get(c),b=Yp(i,v,g);b!==v&&(l[c]=b);var w=r.getEndKey(),L=r.getEndOffset(),R=o.get(w);c===w&&(R=b);var M=Yp(i,R,L);return M!==R&&(l[w]=M),Object.keys(l).length?t.merge({blockMap:o.merge(l),selectionAfter:r}):t.set("selectionAfter",r)}function P1(t,r,o){var i;return M1(t,function(l,c){return l.getEntity()===c.getEntity()},function(l){return l.getEntity()===r},function(l,c){l<=o&&c>=o&&(i={start:l,end:c})}),typeof i!="object"&&F1(!1),i}function Yp(t,r,o){var i=r.getCharacterList(),l=o>0?i.get(o-1):void 0,c=o<i.count()?i.get(o):void 0,g=l?l.getEntity():void 0,v=c?c.getEntity():void 0;if(v&&v===g){var b=t.__get(v);if(b.getMutability()!=="MUTABLE"){for(var w=P1(i,v,o),L=w.start,R=w.end,M;L<R;)M=i.get(L),i=i.set(L,C1.applyEntity(M,null)),L++;return r.set("characterList",i)}}return r}var Jp=D1,B1=$p,R1=Jp,T1=function(t,r){var o=r.getStartKey(),i=r.getStartOffset(),l=r.getEndKey(),c=r.getEndOffset(),g=R1(t,r),v=g.getBlockMap(),b=v.keySeq(),w=b.indexOf(o),L=b.indexOf(l)+1;return B1(v.slice(w,L).map(function(R,M){var z=R.getText(),B=R.getCharacterList();return o===l?R.merge({text:z.slice(i,c),characterList:B.slice(i,c)}):M===o?R.merge({text:z.slice(i),characterList:B.slice(i)}):M===l?R.merge({text:z.slice(0,c),characterList:B.slice(0,c)}):R}))},ku=T1;function j1(t,r,o){var i=t;if(o===i.count())r.forEach(function(g){i=i.push(g)});else if(o===0)r.reverse().forEach(function(g){i=i.unshift(g)});else{var l=i.slice(0,o),c=i.slice(o);i=l.concat(r,c).toList()}return i}var Wp=j1,I1=kl,Gp=Yr,z1=gt,K1=Wp,eh=wt,A1=$p,H1=z1.List,V1=function(t,r,o,i,l,c){var g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",v=o.get(l),b=v.getText(),w=v.getCharacterList(),L=l,R=c+i.getText().length,M=null;switch(g){case"MERGE_OLD_DATA_TO_NEW_DATA":M=i.getData().merge(v.getData());break;case"REPLACE_WITH_NEW_DATA":M=i.getData();break}var z=v.getType();b&&z==="unstyled"&&(z=i.getType());var B=v.merge({text:b.slice(0,c)+i.getText()+b.slice(c),characterList:K1(w,i.getCharacterList(),c),type:z,data:M});return t.merge({blockMap:o.set(l,B),selectionBefore:r,selectionAfter:r.merge({anchorKey:L,anchorOffset:R,focusKey:L,focusOffset:R,isBackward:!1})})},q1=function(t,r,o){var i=t.getText(),l=t.getCharacterList(),c=i.slice(0,r),g=l.slice(0,r),v=o.first();return t.merge({text:c+v.getText(),characterList:g.concat(v.getCharacterList()),type:c?t.getType():v.getType(),data:v.getData()})},U1=function(t,r,o){var i=t.getText(),l=t.getCharacterList(),c=i.length,g=i.slice(r,c),v=l.slice(r,c),b=o.last();return b.merge({text:b.getText()+g,characterList:b.getCharacterList().concat(v),data:b.getData()})},Q1=function(t,r){var o=t.getKey(),i=t,l=[];for(r.get(o)&&l.push(o);i&&i.getNextSiblingKey();){var c=i.getNextSiblingKey();if(!c)break;l.push(c),i=r.get(c)}return l},X1=function(t,r,o,i){return t.withMutations(function(l){var c=o.getKey(),g=i.getKey(),v=o.getNextSiblingKey(),b=o.getParentKey(),w=Q1(i,t),L=w[w.length-1];if(l.get(g)?(l.setIn([c,"nextSibling"],g),l.setIn([g,"prevSibling"],c)):(l.setIn([c,"nextSibling"],i.getNextSiblingKey()),l.setIn([i.getNextSiblingKey(),"prevSibling"],c)),l.setIn([L,"nextSibling"],v),v&&l.setIn([v,"prevSibling"],L),w.forEach(function(I){return l.setIn([I,"parent"],b)}),b){var R=t.get(b),M=R.getChildKeys(),z=M.indexOf(c),B=z+1,T=M.toArray();T.splice.apply(T,[B,0].concat(w)),l.setIn([b,"children"],H1(T))}})},Z1=function(t,r,o,i,l,c){var g=o.first()instanceof Gp,v=[],b=i.size,w=o.get(l),L=i.first(),R=i.last(),M=R.getLength(),z=R.getKey(),B=g&&(!w.getChildKeys().isEmpty()||!L.getChildKeys().isEmpty());o.forEach(function(I,G){if(G!==l){v.push(I);return}B?v.push(I):v.push(q1(I,c,i)),i.slice(B?0:1,b-1).forEach(function(Y){return v.push(Y)}),v.push(U1(I,c,i))});var T=I1.createFromArray(v);return g&&(T=X1(T,o,w,L)),t.merge({blockMap:T,selectionBefore:r,selectionAfter:r.merge({anchorKey:z,anchorOffset:M,focusKey:z,focusOffset:M,isBackward:!1})})},$1=function(t,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||eh(!1);var l=t.getBlockMap(),c=A1(o),g=r.getStartKey(),v=r.getStartOffset(),b=l.get(g);return b instanceof Gp&&(b.getChildKeys().isEmpty()||eh(!1)),c.size===1?V1(t,r,l,c.first(),g,v,i):Z1(t,r,l,c,g,v)},Y1=$1,J1=gt,W1=Wp,G1=wt,eS=J1.Repeat;function tS(t,r,o,i){r.isCollapsed()||G1(!1);var l=null;if(o!=null&&(l=o.length),l==null||l===0)return t;var c=t.getBlockMap(),g=r.getStartKey(),v=r.getStartOffset(),b=c.get(g),w=b.getText(),L=b.merge({text:w.slice(0,v)+o+w.slice(v,b.getLength()),characterList:W1(b.getCharacterList(),eS(i,l).toList(),v)}),R=v+l;return t.merge({blockMap:c.set(g,L),selectionAfter:r.merge({anchorOffset:R,focusOffset:R})})}var nS=tS,rS=gt,oS=rS.Map;function iS(t,r,o){var i=r.getStartKey(),l=r.getEndKey(),c=t.getBlockMap(),g=c.toSeq().skipUntil(function(v,b){return b===i}).takeUntil(function(v,b){return b===l}).concat(oS([[l,c.get(l)]])).map(o);return t.merge({blockMap:c.merge(g),selectionBefore:r,selectionAfter:r})}var th=iS,aS=Yr,lS=function(t,r){var o=t instanceof aS;if(!o)return null;var i=t.getNextSiblingKey();if(i)return i;var l=t.getParentKey();if(!l)return null;for(var c=r.get(l);c&&!c.getNextSiblingKey();){var g=c.getParentKey();c=g?r.get(g):null}return c?c.getNextSiblingKey():null},nh=lS,uS=Yr,Rc=nh,rh=gt;rh.List;var oh=rh.Map,sr=function(t,r,o){if(t){var i=r.get(t);i&&r.set(t,o(i))}},Nu=function(t,r){var o=[];if(!t)return o;for(var i=r.get(t);i&&i.getParentKey();){var l=i.getParentKey();l&&o.push(l),i=l?r.get(l):null}return o},sS=function(t,r){var o=[];if(!t)return o;for(var i=Rc(t,r);i&&r.get(i);){var l=r.get(i);o.push(i),i=l.getParentKey()?Rc(l,r):null}return o},za=function(t,r,o){if(!t)return null;for(var i=o.get(t.getKey()).getNextSiblingKey();i&&!r.get(i);)i=o.get(i).getNextSiblingKey()||null;return i},Ka=function(t,r,o){if(!t)return null;for(var i=o.get(t.getKey()).getPrevSiblingKey();i&&!r.get(i);)i=o.get(i).getPrevSiblingKey()||null;return i},cS=function(t,r,o,i){return t.withMutations(function(l){if(sr(r.getKey(),l,function(w){return w.merge({nextSibling:za(w,l,i),prevSibling:Ka(w,l,i)})}),sr(o.getKey(),l,function(w){return w.merge({nextSibling:za(w,l,i),prevSibling:Ka(w,l,i)})}),Nu(r.getKey(),i).forEach(function(w){return sr(w,l,function(L){return L.merge({children:L.getChildKeys().filter(function(R){return l.get(R)}),nextSibling:za(L,l,i),prevSibling:Ka(L,l,i)})})}),sr(r.getNextSiblingKey(),l,function(w){return w.merge({prevSibling:r.getPrevSiblingKey()})}),sr(r.getPrevSiblingKey(),l,function(w){return w.merge({nextSibling:za(w,l,i)})}),sr(o.getNextSiblingKey(),l,function(w){return w.merge({prevSibling:Ka(w,l,i)})}),sr(o.getPrevSiblingKey(),l,function(w){return w.merge({nextSibling:o.getNextSiblingKey()})}),Nu(o.getKey(),i).forEach(function(w){sr(w,l,function(L){return L.merge({children:L.getChildKeys().filter(function(R){return l.get(R)}),nextSibling:za(L,l,i),prevSibling:Ka(L,l,i)})})}),sS(o,i).forEach(function(w){return sr(w,l,function(L){return L.merge({nextSibling:za(L,l,i),prevSibling:Ka(L,l,i)})})}),t.get(r.getKey())==null&&t.get(o.getKey())!=null&&o.getParentKey()===r.getKey()&&o.getPrevSiblingKey()==null){var c=r.getPrevSiblingKey();sr(o.getKey(),l,function(w){return w.merge({prevSibling:c})}),sr(c,l,function(w){return w.merge({nextSibling:o.getKey()})});var g=c?t.get(c):null,v=g?g.getParentKey():null;if(r.getChildKeys().forEach(function(w){sr(w,l,function(L){return L.merge({parent:v})})}),v!=null){var b=t.get(v);sr(v,l,function(w){return w.merge({children:b.getChildKeys().concat(r.getChildKeys())})})}sr(r.getChildKeys().find(function(w){var L=t.get(w);return L.getNextSiblingKey()===null}),l,function(w){return w.merge({nextSibling:r.getNextSiblingKey()})})}})},fS=function(t,r){if(r.isCollapsed())return t;var o=t.getBlockMap(),i=r.getStartKey(),l=r.getStartOffset(),c=r.getEndKey(),g=r.getEndOffset(),v=o.get(i),b=o.get(c),w=v instanceof uS,L=[];if(w){var R=b.getChildKeys(),M=Nu(c,o);b.getNextSiblingKey()&&(L=L.concat(M)),R.isEmpty()||(L=L.concat(M.concat([c]))),L=L.concat(Nu(Rc(b,o),o))}var z;v===b?z=dS(v.getCharacterList(),l,g):z=v.getCharacterList().slice(0,l).concat(b.getCharacterList().slice(g));var B=v.merge({text:v.getText().slice(0,l)+b.getText().slice(g),characterList:z}),T=w&&l===0&&g===0&&b.getParentKey()===i&&b.getPrevSiblingKey()==null,I=T?oh([[i,null]]):o.toSeq().skipUntil(function(Y,W){return W===i}).takeUntil(function(Y,W){return W===c}).filter(function(Y,W){return L.indexOf(W)===-1}).concat(oh([[c,null]])).map(function(Y,W){return W===i?B:null}),G=o.merge(I).filter(function(Y){return!!Y});return w&&v!==b&&(G=cS(G,v,b,o)),t.merge({blockMap:G,selectionBefore:r,selectionAfter:r.merge({anchorKey:i,anchorOffset:l,focusKey:i,focusOffset:l,isBackward:!1})})},dS=function(t,r,o){if(r===0)for(;r<o;)t=t.shift(),r++;else if(o===t.count())for(;o>r;)t=t.pop(),o--;else{var i=t.slice(0,r),l=t.slice(o);t=i.concat(l).toList()}return t},pS=fS,hS=Yr,mS=Po,ih=gt,ah=wt,gS=th,vS=ih.List,yS=ih.Map,Ou=function(t,r,o){if(t){var i=r.get(t);i&&r.set(t,o(i))}},bS=function(t,r,o){return t.withMutations(function(i){var l=r.getKey(),c=o.getKey();Ou(r.getParentKey(),i,function(g){var v=g.getChildKeys(),b=v.indexOf(l)+1,w=v.toArray();return w.splice(b,0,c),g.merge({children:vS(w)})}),Ou(r.getNextSiblingKey(),i,function(g){return g.merge({prevSibling:c})}),Ou(l,i,function(g){return g.merge({nextSibling:c})}),Ou(c,i,function(g){return g.merge({prevSibling:l})})})},_S=function(t,r){r.isCollapsed()||ah(!1);var o=r.getAnchorKey(),i=t.getBlockMap(),l=i.get(o),c=l.getText();if(!c){var g=l.getType();if(g==="unordered-list-item"||g==="ordered-list-item")return gS(t,r,function(I){return I.merge({type:"unstyled",depth:0})})}var v=r.getAnchorOffset(),b=l.getCharacterList(),w=mS(),L=l instanceof hS,R=l.merge({text:c.slice(0,v),characterList:b.slice(0,v)}),M=R.merge({key:w,text:c.slice(v),characterList:b.slice(v),data:yS()}),z=i.toSeq().takeUntil(function(I){return I===l}),B=i.toSeq().skipUntil(function(I){return I===l}).rest(),T=z.concat([[o,R],[w,M]],B).toOrderedMap();return L&&(l.getChildKeys().isEmpty()||ah(!1),T=bS(T,R,M)),t.merge({blockMap:T,selectionBefore:r,selectionAfter:r.merge({anchorKey:w,anchorOffset:0,focusKey:w,focusOffset:0,isBackward:!1})})},wS=_S,SS=$r,lh=r1,xS=c1,ES=w1,kS=ku,NS=gt,OS=Y1,LS=nS,CS=wt,Tc=th,Ml=Jp,Fl=pS,MS=wS,FS=NS.OrderedSet,Lu={replaceText:function(t,r,o,i,l){var c=Ml(t,r),g=Fl(c,r),v=SS.create({style:i||FS(),entity:l||null});return LS(g,g.getSelectionAfter(),o,v)},insertText:function(t,r,o,i,l){return r.isCollapsed()||CS(!1),Lu.replaceText(t,r,o,i,l)},moveText:function(t,r,o){var i=kS(t,r),l=Lu.removeRange(t,r,"backward");return Lu.replaceWithFragment(l,o,i)},replaceWithFragment:function(t,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",l=Ml(t,r),c=Fl(l,r);return OS(c,c.getSelectionAfter(),o,i)},removeRange:function(t,r,o){var i,l,c,g;r.getIsBackward()&&(r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:!1})),i=r.getAnchorKey(),l=r.getFocusKey(),c=t.getBlockForKey(i),g=t.getBlockForKey(l);var v=r.getStartOffset(),b=r.getEndOffset(),w=c.getEntityAt(v),L=g.getEntityAt(b-1);if(i===l&&w&&w===L){var R=ES(t.getEntityMap(),c,g,r,o);return Fl(t,R)}var M=Ml(t,r);return Fl(M,r)},splitBlock:function(t,r){var o=Ml(t,r),i=Fl(o,r);return MS(i,i.getSelectionAfter())},applyInlineStyle:function(t,r,o){return lh.add(t,r,o)},removeInlineStyle:function(t,r,o){return lh.remove(t,r,o)},setBlockType:function(t,r,o){return Tc(t,r,function(i){return i.merge({type:o,depth:0})})},setBlockData:function(t,r,o){return Tc(t,r,function(i){return i.merge({data:o})})},mergeBlockData:function(t,r,o){return Tc(t,r,function(i){return i.merge({data:i.getData().merge(o)})})},applyEntity:function(t,r,o){var i=Ml(t,r);return xS(i,r,o)}},cr=Lu;function DS(t){return Object.keys(t).map(function(r){return t[r]})}var uh=DS;function PS(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){BS(t,l,o[l])})}return t}function BS(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function RS(t,r){if(t==null)return{};var o={},i=Object.keys(t),l,c;for(c=0;c<i.length;c++)l=i[c],!(r.indexOf(l)>=0)&&(o[l]=t[l]);return o}var sh=Nl,TS=uh,jc=gt,Aa=jc.List,jS=jc.Repeat,ch=jc.Record,fh=function(){return!0},IS={start:null,end:null},Ic=ch(IS),zS={start:null,end:null,decoratorKey:null,leaves:null},zc=ch(zS),KS={generate:function(t,r,o){var i=r.getLength();if(!i)return Aa.of(new zc({start:0,end:0,decoratorKey:null,leaves:Aa.of(new Ic({start:0,end:0}))}));var l=[],c=o?o.getDecorations(r,t):Aa(jS(null,i)),g=r.getCharacterList();return sh(c,dh,fh,function(v,b){l.push(new zc({start:v,end:b,decoratorKey:c.get(v),leaves:AS(g.slice(v,b).toList(),v)}))}),Aa(l)},fromJS:function(t){var r=t.leaves,o=RS(t,["leaves"]);return new zc(PS({},o,{leaves:r!=null?Aa(Array.isArray(r)?r:TS(r)).map(function(i){return Ic(i)}):null}))}};function AS(t,r){var o=[],i=t.map(function(l){return l.getStyle()}).toList();return sh(i,dh,fh,function(l,c){o.push(new Ic({start:l+r,end:c+r}))}),Aa(o)}function dh(t,r){return t===r}var HS=KS;function VS(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var qS=gt,US=qS.Record,QS=US({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),XS=function(t){VS(r,t);function r(){return t.apply(this,arguments)||this}var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}(QS),ph=XS;function ZS(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,o=t=="x"?r:r&3|8;return o.toString(16)})}var $S=ZS;function YS(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){JS(t,l,o[l])})}return t}function JS(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var WS=ph,GS=gt,ex=wt,Kc=$S,tx=GS.Map,Go=tx(),Dl=Kc();function Ha(t,r){console.warn("WARNING: "+t+` will be deprecated soon!
|
|
6
|
+
Please use "`+r+'" instead.')}var Bo={getLastCreatedEntityKey:function(){return Ha("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Bo.__getLastCreatedEntityKey()},create:function(t,r,o){return Ha("DraftEntity.create","contentState.createEntity"),Bo.__create(t,r,o)},add:function(t){return Ha("DraftEntity.add","contentState.addEntity"),Bo.__add(t)},get:function(t){return Ha("DraftEntity.get","contentState.getEntity"),Bo.__get(t)},__getAll:function(){return Go},__loadWithEntities:function(t){Go=t,Dl=Kc()},mergeData:function(t,r){return Ha("DraftEntity.mergeData","contentState.mergeEntityData"),Bo.__mergeData(t,r)},replaceData:function(t,r){return Ha("DraftEntity.replaceData","contentState.replaceEntityData"),Bo.__replaceData(t,r)},__getLastCreatedEntityKey:function(){return Dl},__create:function(t,r,o){return Bo.__add(new WS({type:t,mutability:r,data:o||{}}))},__add:function(t){return Dl=Kc(),Go=Go.set(Dl,t),Dl},__get:function(t){var r=Go.get(t);return r||ex(!1),r},__mergeData:function(t,r){var o=Bo.__get(t),i=YS({},o.getData(),r),l=o.set("data",i);return Go=Go.set(t,l),l},__replaceData:function(t,r){var o=Bo.__get(t),i=o.set("data",r);return Go=Go.set(t,i),i}},Cu=Bo;function nx(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var rx=gt,ox=rx.Record,ix={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},ax=ox(ix),lx=function(t){nx(r,t);function r(){return t.apply(this,arguments)||this}var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(i,l,c){var g=this.getAnchorKey(),v=this.getFocusKey();if(g===v&&g===i){var b=this.getStartOffset(),w=this.getEndOffset();return l<=b&&b<=c||l<=w&&w<=c}if(i!==g&&i!==v)return!1;var L=i===g?this.getAnchorOffset():this.getFocusOffset();return l<=L&&c>=L},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(i){return new r({anchorKey:i,anchorOffset:0,focusKey:i,focusOffset:0,isBackward:!1,hasFocus:!1})},r}(ax),Mu=lx,Li=function(t){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[t]:!1},ux=new RegExp("\r","g");function sx(t){return t.replace(ux,"")}var hh=sx;function mh(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){cx(t,l,o[l])})}return t}function cx(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function fx(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var dx=kl,gh=$r,px=ia,hx=Yr,Ro=Cu,Fu=Mu,mx=Po,gx=uh,vx=Li,Pl=gt,yx=hh,vh=Pl.List,bx=Pl.Record,_x=Pl.Repeat,wx=Pl.Map,Sx=Pl.OrderedMap,xx={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},Ex=bx(xx),yh=vx("draft_tree_data_support")?hx:px,kx=function(t){fx(r,t);function r(){return t.apply(this,arguments)||this}var o=r.prototype;return o.getEntityMap=function(){return Ro},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(i){var l=this.getBlockMap().get(i);return l},o.getKeyBefore=function(i){return this.getBlockMap().reverse().keySeq().skipUntil(function(l){return l===i}).skip(1).first()},o.getKeyAfter=function(i){return this.getBlockMap().keySeq().skipUntil(function(l){return l===i}).skip(1).first()},o.getBlockAfter=function(i){return this.getBlockMap().skipUntil(function(l,c){return c===i}).skip(1).first()},o.getBlockBefore=function(i){return this.getBlockMap().reverse().skipUntil(function(l,c){return c===i}).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(i){return this.getBlockMap().map(function(l){return l?l.getText():""}).join(i||`
|
|
7
|
+
`)},o.getLastCreatedEntityKey=function(){return Ro.__getLastCreatedEntityKey()},o.hasText=function(){var i=this.getBlockMap();return i.size>1||escape(i.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(i,l,c){return Ro.__create(i,l,c),this},o.mergeEntityData=function(i,l){return Ro.__mergeData(i,l),this},o.replaceEntityData=function(i,l){return Ro.__replaceData(i,l),this},o.addEntity=function(i){return Ro.__add(i),this},o.getEntity=function(i){return Ro.__get(i)},o.getAllEntities=function(){return Ro.__getAll()},o.loadWithEntities=function(i){return Ro.__loadWithEntities(i)},r.createFromBlockArray=function(i,l){var c=Array.isArray(i)?i:i.contentBlocks,g=dx.createFromArray(c),v=g.isEmpty()?new Fu:Fu.createEmpty(g.first().getKey());return new r({blockMap:g,entityMap:l||Ro,selectionBefore:v,selectionAfter:v})},r.createFromText=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,c=i.split(l),g=c.map(function(v){return v=yx(v),new yh({key:mx(),text:v,type:"unstyled",characterList:vh(_x(gh.EMPTY,v.length))})});return r.createFromBlockArray(g)},r.fromJS=function(i){return new r(mh({},i,{blockMap:Sx(i.blockMap).map(r.createContentBlockFromJS),selectionBefore:new Fu(i.selectionBefore),selectionAfter:new Fu(i.selectionAfter)}))},r.createContentBlockFromJS=function(i){var l=i.characterList;return new yh(mh({},i,{data:wx(i.data),characterList:l!=null?vh((Array.isArray(l)?l:gx(l)).map(function(c){return gh.fromJS(c)})):void 0}))},r}(Ex),Ac=kx,Du=wt,Nx="NEUTRAL",Pu="LTR",bh="RTL",Bu=null;function Ru(t){return t===Pu||t===bh}function _h(t){return Ru(t)||Du(!1),t===Pu?"ltr":"rtl"}function Ox(t,r){return Ru(t)||Du(!1),Ru(r)||Du(!1),t===r?null:_h(t)}function wh(t){Bu=t}function Lx(){wh(Pu)}function Cx(){return Bu||this.initGlobalDir(),Bu||Du(!1),Bu}var Mx={NEUTRAL:Nx,LTR:Pu,RTL:bh,isStrong:Ru,getHTMLDir:_h,getHTMLDirIfDifferent:Ox,setGlobalDir:wh,initGlobalDir:Lx,getGlobalDir:Cx},Tu=Mx,ei=Tu,Fx=wt,Bl={L:"A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u01BA\u01BB\u01BC-\u01BF\u01C0-\u01C3\u01C4-\u0293\u0294\u0295-\u02AF\u02B0-\u02B8\u02BB-\u02C1\u02D0-\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377\u037A\u037B-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0482\u048A-\u052F\u0531-\u0556\u0559\u055A-\u055F\u0561-\u0587\u0589\u0903\u0904-\u0939\u093B\u093D\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096F\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09CE\u09D7\u09DC-\u09DD\u09DF-\u09E1\u09E6-\u09EF\u09F0-\u09F1\u09F4-\u09F9\u09FA\u0A03\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0AD0\u0AE0-\u0AE1\u0AE6-\u0AEF\u0AF0\u0B02-\u0B03\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0B5C-\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B70\u0B71\u0B72-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BEF\u0BF0-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C59\u0C60-\u0C61\u0C66-\u0C6F\u0C7F\u0C82-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CBE\u0CBF\u0CC0-\u0CC4\u0CC6\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0CDE\u0CE0-\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF2\u0D02-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D57\u0D60-\u0D61\u0D66-\u0D6F\u0D70-\u0D75\u0D79\u0D7A-\u0D7F\u0D82-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0DF4\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E46\u0E4F\u0E50-\u0E59\u0E5A-\u0E5B\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F01-\u0F03\u0F04-\u0F12\u0F13\u0F14\u0F15-\u0F17\u0F1A-\u0F1F\u0F20-\u0F29\u0F2A-\u0F33\u0F34\u0F36\u0F38\u0F3E-\u0F3F\u0F40-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FCF\u0FD0-\u0FD4\u0FD5-\u0FD8\u0FD9-\u0FDA\u1000-\u102A\u102B-\u102C\u1031\u1038\u103B-\u103C\u103F\u1040-\u1049\u104A-\u104F\u1050-\u1055\u1056-\u1057\u105A-\u105D\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106D\u106E-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108C\u108E\u108F\u1090-\u1099\u109A-\u109C\u109E-\u109F\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FB\u10FC\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u1368\u1369-\u137C\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166D-\u166E\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EB-\u16ED\u16EE-\u16F0\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7-\u17C8\u17D4-\u17D6\u17D7\u17D8-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1946-\u194F\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C0\u19C1-\u19C7\u19C8-\u19C9\u19D0-\u19D9\u19DA\u1A00-\u1A16\u1A19-\u1A1A\u1A1E-\u1A1F\u1A20-\u1A54\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AA6\u1AA7\u1AA8-\u1AAD\u1B04\u1B05-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B45-\u1B4B\u1B50-\u1B59\u1B5A-\u1B60\u1B61-\u1B6A\u1B74-\u1B7C\u1B82\u1B83-\u1BA0\u1BA1\u1BA6-\u1BA7\u1BAA\u1BAE-\u1BAF\u1BB0-\u1BB9\u1BBA-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1BFC-\u1BFF\u1C00-\u1C23\u1C24-\u1C2B\u1C34-\u1C35\u1C3B-\u1C3F\u1C40-\u1C49\u1C4D-\u1C4F\u1C50-\u1C59\u1C5A-\u1C77\u1C78-\u1C7D\u1C7E-\u1C7F\u1CC0-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF2-\u1CF3\u1CF5-\u1CF6\u1D00-\u1D2B\u1D2C-\u1D6A\u1D6B-\u1D77\u1D78\u1D79-\u1D9A\u1D9B-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2134\u2135-\u2138\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C7B\u2C7C-\u2C7D\u2C7E-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005\u3006\u3007\u3021-\u3029\u302E-\u302F\u3031-\u3035\u3038-\u303A\u303B\u303C\u3041-\u3096\u309D-\u309E\u309F\u30A1-\u30FA\u30FC-\u30FE\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u3191\u3192-\u3195\u3196-\u319F\u31A0-\u31BA\u31F0-\u31FF\u3200-\u321C\u3220-\u3229\u322A-\u3247\u3248-\u324F\u3260-\u327B\u327F\u3280-\u3289\u328A-\u32B0\u32C0-\u32CB\u32D0-\u32FE\u3300-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA014\uA015\uA016-\uA48C\uA4D0-\uA4F7\uA4F8-\uA4FD\uA4FE-\uA4FF\uA500-\uA60B\uA60C\uA610-\uA61F\uA620-\uA629\uA62A-\uA62B\uA640-\uA66D\uA66E\uA680-\uA69B\uA69C-\uA69D\uA6A0-\uA6E5\uA6E6-\uA6EF\uA6F2-\uA6F7\uA722-\uA76F\uA770\uA771-\uA787\uA789-\uA78A\uA78B-\uA78E\uA790-\uA7AD\uA7B0-\uA7B1\uA7F7\uA7F8-\uA7F9\uA7FA\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA823-\uA824\uA827\uA830-\uA835\uA836-\uA837\uA840-\uA873\uA880-\uA881\uA882-\uA8B3\uA8B4-\uA8C3\uA8CE-\uA8CF\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8F8-\uA8FA\uA8FB\uA900-\uA909\uA90A-\uA925\uA92E-\uA92F\uA930-\uA946\uA952-\uA953\uA95F\uA960-\uA97C\uA983\uA984-\uA9B2\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uA9C1-\uA9CD\uA9CF\uA9D0-\uA9D9\uA9DE-\uA9DF\uA9E0-\uA9E4\uA9E6\uA9E7-\uA9EF\uA9F0-\uA9F9\uA9FA-\uA9FE\uAA00-\uAA28\uAA2F-\uAA30\uAA33-\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA5F\uAA60-\uAA6F\uAA70\uAA71-\uAA76\uAA77-\uAA79\uAA7A\uAA7B\uAA7D\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAADD\uAADE-\uAADF\uAAE0-\uAAEA\uAAEB\uAAEE-\uAAEF\uAAF0-\uAAF1\uAAF2\uAAF3-\uAAF4\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5B\uAB5C-\uAB5F\uAB64-\uAB65\uABC0-\uABE2\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEB\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uE000-\uF8FF\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFF6F\uFF70\uFF71-\uFF9D\uFF9E-\uFF9F\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",R:"\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05D0-\u05EA\u05EB-\u05EF\u05F0-\u05F2\u05F3-\u05F4\u05F5-\u05FF\u07C0-\u07C9\u07CA-\u07EA\u07F4-\u07F5\u07FA\u07FB-\u07FF\u0800-\u0815\u081A\u0824\u0828\u082E-\u082F\u0830-\u083E\u083F\u0840-\u0858\u085C-\u085D\u085E\u085F-\u089F\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB37\uFB38-\uFB3C\uFB3D\uFB3E\uFB3F\uFB40-\uFB41\uFB42\uFB43-\uFB44\uFB45\uFB46-\uFB4F",AL:"\u0608\u060B\u060D\u061B\u061C\u061D\u061E-\u061F\u0620-\u063F\u0640\u0641-\u064A\u066D\u066E-\u066F\u0671-\u06D3\u06D4\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FD-\u06FE\u06FF\u0700-\u070D\u070E\u070F\u0710\u0712-\u072F\u074B-\u074C\u074D-\u07A5\u07B1\u07B2-\u07BF\u08A0-\u08B2\u08B3-\u08E3\uFB50-\uFBB1\uFBB2-\uFBC1\uFBC2-\uFBD2\uFBD3-\uFD3D\uFD40-\uFD4F\uFD50-\uFD8F\uFD90-\uFD91\uFD92-\uFDC7\uFDC8-\uFDCF\uFDF0-\uFDFB\uFDFC\uFDFE-\uFDFF\uFE70-\uFE74\uFE75\uFE76-\uFEFC\uFEFD-\uFEFE"},Dx=new RegExp("["+Bl.L+Bl.R+Bl.AL+"]"),Px=new RegExp("["+Bl.R+Bl.AL+"]");function Sh(t){var r=Dx.exec(t);return r==null?null:r[0]}function xh(t){var r=Sh(t);return r==null?ei.NEUTRAL:Px.exec(r)?ei.RTL:ei.LTR}function Eh(t,r){if(r=r||ei.NEUTRAL,!t.length)return r;var o=xh(t);return o===ei.NEUTRAL?r:o}function Hc(t,r){return r||(r=ei.getGlobalDir()),ei.isStrong(r)||Fx(!1),Eh(t,r)}function Bx(t,r){return Hc(t,r)===ei.LTR}function Rx(t,r){return Hc(t,r)===ei.RTL}var Tx={firstStrongChar:Sh,firstStrongCharDir:xh,resolveBlockDir:Eh,getDirection:Hc,isDirectionLTR:Bx,isDirectionRTL:Rx},Vc=Tx;function kh(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var jx=Vc,Nh=Tu,Ix=wt,zx=function(){function t(o){kh(this,"_defaultDir",void 0),kh(this,"_lastDir",void 0),o?Nh.isStrong(o)||Ix(!1):o=Nh.getGlobalDir(),this._defaultDir=o,this.reset()}var r=t.prototype;return r.reset=function(){this._lastDir=this._defaultDir},r.getDirection=function(o){return this._lastDir=jx.getDirection(o,this._lastDir),this._lastDir},t}(),Kx=zx,Ax=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},fr=Ax,Hx=Kx,Oh=gt,Vx=fr,qx=Oh.OrderedMap,ju,Ux={getDirectionMap:function(t,r){ju?ju.reset():ju=new Hx;var o=t.getBlockMap(),i=o.valueSeq().map(function(c){return Vx(ju).getDirection(c.getText())}),l=qx(o.keySeq().zip(i));return r!=null&&Oh.is(r,l)?r:l}},Qx=Ux;function Lh(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){Ch(t,l,o[l])})}return t}function Ch(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var Iu=HS,Rl=Ac,zu=Qx,qc=Mu,Tl=gt,Mh=Tl.OrderedSet,Xx=Tl.Record,aa=Tl.Stack,Fh=Tl.OrderedMap,Zx=Tl.List,$x={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:aa(),selection:null,treeMap:null,undoStack:aa()},Dh=Xx($x),Ph=function(){r.createEmpty=function(o){return this.createWithText("",o)},r.createWithText=function(o,i){return r.createWithContent(Rl.createFromText(o),i)},r.createWithContent=function(o,i){if(o.getBlockMap().count()===0)return r.createEmpty(i);var l=o.getBlockMap().first().getKey();return r.create({currentContent:o,undoStack:aa(),redoStack:aa(),decorator:i||null,selection:qc.createEmpty(l)})},r.create=function(o){var i=o.currentContent,l=o.decorator,c=Lh({},o,{treeMap:Rh(i,l),directionMap:zu.getDirectionMap(i)});return new r(new Dh(c))},r.fromJS=function(o){return new r(new Dh(Lh({},o,{directionMap:o.directionMap!=null?Fh(o.directionMap):o.directionMap,inlineStyleOverride:o.inlineStyleOverride!=null?Mh(o.inlineStyleOverride):o.inlineStyleOverride,nativelyRenderedContent:o.nativelyRenderedContent!=null?Rl.fromJS(o.nativelyRenderedContent):o.nativelyRenderedContent,redoStack:o.redoStack!=null?aa(o.redoStack.map(function(i){return Rl.fromJS(i)})):o.redoStack,selection:o.selection!=null?new qc(o.selection):o.selection,treeMap:o.treeMap!=null?Fh(o.treeMap).map(function(i){return Zx(i).map(function(l){return Iu.fromJS(l)})}):o.treeMap,undoStack:o.undoStack!=null?aa(o.undoStack.map(function(i){return Rl.fromJS(i)})):o.undoStack,currentContent:Rl.fromJS(o.currentContent)})))},r.set=function(o,i){var l=o.getImmutable().withMutations(function(c){var g=c.get("decorator"),v=g;i.decorator===null?v=null:i.decorator&&(v=i.decorator);var b=i.currentContent||o.getCurrentContent();if(v!==g){var w=c.get("treeMap"),L;v&&g?L=Jx(b,b.getBlockMap(),w,v,g):L=Rh(b,v),c.merge({decorator:v,treeMap:L,nativelyRenderedContent:null});return}var R=o.getCurrentContent();b!==R&&c.set("treeMap",Yx(o,b.getBlockMap(),b.getEntityMap(),v)),c.merge(i)});return new r(l)};var t=r.prototype;t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},r.setInlineStyleOverride=function(o,i){return r.set(o,{inlineStyleOverride:i})},t.getCurrentInlineStyle=function(){var o=this.getInlineStyleOverride();if(o!=null)return o;var i=this.getCurrentContent(),l=this.getSelection();return l.isCollapsed()?Gx(i,l):eE(i,l)},t.getBlockTree=function(o){return this.getImmutable().getIn(["treeMap",o])},t.isSelectionAtStartOfContent=function(){var o=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(o,0,0)},t.isSelectionAtEndOfContent=function(){var o=this.getCurrentContent(),i=o.getBlockMap(),l=i.last(),c=l.getLength();return this.getSelection().hasEdgeWithin(l.getKey(),c,c)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},r.acceptSelection=function(o,i){return Bh(o,i,!1)},r.forceSelection=function(o,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),Bh(o,i,!0)},r.moveSelectionToEnd=function(o){var i=o.getCurrentContent(),l=i.getLastBlock(),c=l.getKey(),g=l.getLength();return r.acceptSelection(o,new qc({anchorKey:c,anchorOffset:g,focusKey:c,focusOffset:g,isBackward:!1}))},r.moveFocusToEnd=function(o){var i=r.moveSelectionToEnd(o);return r.forceSelection(i,i.getSelection())},r.push=function(o,i,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(o.getCurrentContent()===i)return o;var g=zu.getDirectionMap(i,o.getDirectionMap());if(!o.getAllowUndo())return r.set(o,{currentContent:i,directionMap:g,lastChangeType:l,selection:i.getSelectionAfter(),forceSelection:c,inlineStyleOverride:null});var v=o.getSelection(),b=o.getCurrentContent(),w=o.getUndoStack(),L=i;v!==b.getSelectionAfter()||Wx(o,l)?(w=w.push(b),L=L.set("selectionBefore",v)):(l==="insert-characters"||l==="backspace-character"||l==="delete-character")&&(L=L.set("selectionBefore",b.getSelectionBefore()));var R=o.getInlineStyleOverride(),M=["adjust-depth","change-block-type","split-block"];M.indexOf(l)===-1&&(R=null);var z={currentContent:L,directionMap:g,undoStack:w,redoStack:aa(),lastChangeType:l,selection:i.getSelectionAfter(),forceSelection:c,inlineStyleOverride:R};return r.set(o,z)},r.undo=function(o){if(!o.getAllowUndo())return o;var i=o.getUndoStack(),l=i.peek();if(!l)return o;var c=o.getCurrentContent(),g=zu.getDirectionMap(l,o.getDirectionMap());return r.set(o,{currentContent:l,directionMap:g,undoStack:i.shift(),redoStack:o.getRedoStack().push(c),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:c.getSelectionBefore()})},r.redo=function(o){if(!o.getAllowUndo())return o;var i=o.getRedoStack(),l=i.peek();if(!l)return o;var c=o.getCurrentContent(),g=zu.getDirectionMap(l,o.getDirectionMap());return r.set(o,{currentContent:l,directionMap:g,undoStack:o.getUndoStack().push(c),redoStack:i.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:l.getSelectionAfter()})};function r(o){Ch(this,"_immutable",void 0),this._immutable=o}return t.getImmutable=function(){return this._immutable},r}();function Bh(t,r,o){return Ph.set(t,{selection:r,forceSelection:o,nativelyRenderedContent:null,inlineStyleOverride:null})}function Rh(t,r){return t.getBlockMap().map(function(o){return Iu.generate(t,o,r)}).toOrderedMap()}function Yx(t,r,o,i){var l=t.getCurrentContent().set("entityMap",o),c=l.getBlockMap(),g=t.getImmutable().get("treeMap");return g.merge(r.toSeq().filter(function(v,b){return v!==c.get(b)}).map(function(v){return Iu.generate(l,v,i)}))}function Jx(t,r,o,i,l){return o.merge(r.toSeq().filter(function(c){return i.getDecorations(c,t)!==l.getDecorations(c,t)}).map(function(c){return Iu.generate(t,c,i)}))}function Wx(t,r){var o=t.getLastChangeType();return r!==o||r!=="insert-characters"&&r!=="backspace-character"&&r!=="delete-character"}function Gx(t,r){var o=r.getStartKey(),i=r.getStartOffset(),l=t.getBlockForKey(o);return i>0?l.getInlineStyleAt(i-1):l.getLength()?l.getInlineStyleAt(0):Th(t,o)}function eE(t,r){var o=r.getStartKey(),i=r.getStartOffset(),l=t.getBlockForKey(o);return i<l.getLength()?l.getInlineStyleAt(i):i>0?l.getInlineStyleAt(i-1):Th(t,o)}function Th(t,r){var o=t.getBlockMap().reverse().skipUntil(function(i,l){return l===r}).skip(1).skipUntil(function(i,l){return i.getLength()}).first();return o?o.getInlineStyleAt(o.getLength()-1):Mh()}var Vt=Ph,tE=Yr,nE=nh,jh=gt,Ku=wt,rE=jh.OrderedMap,oE=jh.List,la=function(t,r,o){if(t){var i=r.get(t);i&&r.set(t,o(i))}},iE=function(t,r,o,i,l){if(!l)return t;var c=i==="after",g=r.getKey(),v=o.getKey(),b=r.getParentKey(),w=r.getNextSiblingKey(),L=r.getPrevSiblingKey(),R=o.getParentKey(),M=c?o.getNextSiblingKey():v,z=c?v:o.getPrevSiblingKey();return t.withMutations(function(B){la(b,B,function(T){var I=T.getChildKeys();return T.merge({children:I.delete(I.indexOf(g))})}),la(L,B,function(T){return T.merge({nextSibling:w})}),la(w,B,function(T){return T.merge({prevSibling:L})}),la(M,B,function(T){return T.merge({prevSibling:g})}),la(z,B,function(T){return T.merge({nextSibling:g})}),la(R,B,function(T){var I=T.getChildKeys(),G=I.indexOf(v),Y=c?G+1:G!==0?G-1:0,W=I.toArray();return W.splice(Y,0,g),T.merge({children:oE(W)})}),la(g,B,function(T){return T.merge({nextSibling:M,prevSibling:z,parent:R})})})},aE=function(t,r,o,i){i==="replace"&&Ku(!1);var l=o.getKey(),c=r.getKey();c===l&&Ku(!1);var g=t.getBlockMap(),v=r instanceof tE,b=[r],w=g.delete(c);v&&(b=[],w=g.withMutations(function(I){var G=r.getNextSiblingKey(),Y=nE(r,I);I.toSeq().skipUntil(function(W){return W.getKey()===c}).takeWhile(function(W){var J=W.getKey(),le=J===c,Se=G&&J!==G,_e=!G&&W.getParentKey()&&(!Y||J!==Y);return!!(le||Se||_e)}).forEach(function(W){b.push(W),I.delete(W.getKey())})}));var L=w.toSeq().takeUntil(function(I){return I===o}),R=w.toSeq().skipUntil(function(I){return I===o}).skip(1),M=b.map(function(I){return[I.getKey(),I]}),z=rE();if(i==="before"){var B=t.getBlockBefore(l);!B||B.getKey()!==r.getKey()||Ku(!1),z=L.concat([].concat(M,[[l,o]]),R).toOrderedMap()}else if(i==="after"){var T=t.getBlockAfter(l);!T||T.getKey()!==c||Ku(!1),z=L.concat([[l,o]].concat(M),R).toOrderedMap()}return t.merge({blockMap:iE(z,r,o,i,v),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})},lE=aE;function Ih(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){uE(t,l,o[l])})}return t}function uE(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var sE=kl,cE=$r,fE=ia,dE=Yr,Va=cr,zh=Vt,Kh=Po,pE=Li,Ah=gt,Au=lE,Hh=pE("draft_tree_data_support"),Vh=Hh?dE:fE,hE=Ah.List,mE=Ah.Repeat,gE={insertAtomicBlock:function(t,r,o){var i=t.getCurrentContent(),l=t.getSelection(),c=Va.removeRange(i,l,"backward"),g=c.getSelectionAfter(),v=Va.splitBlock(c,g),b=v.getSelectionAfter(),w=Va.setBlockType(v,b,"atomic"),L=cE.create({entity:r}),R={key:Kh(),type:"atomic",text:o,characterList:hE(mE(L,o.length))},M={key:Kh(),type:"unstyled"};Hh&&(R=Ih({},R,{nextSibling:M.key}),M=Ih({},M,{prevSibling:R.key}));var z=[new Vh(R),new Vh(M)],B=sE.createFromArray(z),T=Va.replaceWithFragment(w,b,B),I=T.merge({selectionBefore:l,selectionAfter:T.getSelectionAfter().set("hasFocus",!0)});return zh.push(t,I,"insert-fragment")},moveAtomicBlock:function(t,r,o,i){var l=t.getCurrentContent(),c=t.getSelection(),g;if(i==="before"||i==="after"){var v=l.getBlockForKey(i==="before"?o.getStartKey():o.getEndKey());g=Au(l,r,v,i)}else{var b=Va.removeRange(l,o,"backward"),w=b.getSelectionAfter(),L=b.getBlockForKey(w.getFocusKey());if(w.getStartOffset()===0)g=Au(b,r,L,"before");else if(w.getEndOffset()===L.getLength())g=Au(b,r,L,"after");else{var R=Va.splitBlock(b,w),M=R.getSelectionAfter(),z=R.getBlockForKey(M.getFocusKey());g=Au(R,r,z,"before")}}var B=g.merge({selectionBefore:c,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return zh.push(t,B,"move-block")}},vE=gE;function yE(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var bE=gt,_E=bE.List,Uc=".",wE=function(){function t(o){yE(this,"_decorators",void 0),this._decorators=o.slice()}var r=t.prototype;return r.getDecorations=function(o,i){var l=Array(o.getText().length).fill(null);return this._decorators.forEach(function(c,g){var v=0,b=c.strategy,w=function(L,R){SE(l,L,R)&&(xE(l,L,R,g+Uc+v),v++)};b(o,w,i)}),_E(l)},r.getComponentForKey=function(o){var i=parseInt(o.split(Uc)[0],10);return this._decorators[i].component},r.getPropsForKey=function(o){var i=parseInt(o.split(Uc)[0],10);return this._decorators[i].props},t}();function SE(t,r,o){for(var i=r;i<o;i++)if(t[i]!=null)return!1;return!0}function xE(t,r,o,i){for(var l=r;l<o;l++)t[l]=i}var EE=wE;function kE(t){return typeof t=="object"?Object.keys(t).filter(function(r){return t[r]}).map(qh).join(" "):Array.prototype.map.call(arguments,qh).join(" ")}function qh(t){return t.replace(/\//g,"-")}var ua=kE,Qc=D,Xc=ua,NE=gt,OE=NE.Map,LE=Qc.createElement("ul",{className:Xc("public/DraftStyleDefault/ul")}),CE=Qc.createElement("ol",{className:Xc("public/DraftStyleDefault/ol")}),ME=Qc.createElement("pre",{className:Xc("public/DraftStyleDefault/pre")}),FE=OE({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:LE},"ordered-list-item":{element:"li",wrapper:CE},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:ME},unstyled:{element:"div",aliasedElements:["p"]}}),Zc=FE,Uh={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
|
|
8
8
|
object-assign
|
|
9
9
|
(c) Sindre Sorhus
|
|
10
10
|
@license MIT
|
|
11
|
-
*/var Oh=Object.getOwnPropertySymbols,Bx=Object.prototype.hasOwnProperty,Fx=Object.prototype.propertyIsEnumerable;function Px(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Kx(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var r={},i=0;i<10;i++)r["_"+String.fromCharCode(i)]=i;var a=Object.getOwnPropertyNames(r).map(function(c){return r[c]});if(a.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var la=Kx()?Object.assign:function(t,r){for(var i,a=Px(t),u,c=1;c<arguments.length;c++){i=Object(arguments[c]);for(var g in i)Bx.call(i,g)&&(a[g]=i[g]);if(Oh){u=Oh(i);for(var y=0;y<u.length;y++)Fx.call(i,u[y])&&(a[u[y]]=i[u[y]])}}return a},Ku={},Rx={get exports(){return Ku},set exports(t){Ku=t}};(function(t,r){(function(i,a){var u="0.7.33",c="",g="?",y="function",b="undefined",w="object",D="string",K="major",L="model",T="name",F="type",R="vendor",j="version",G="architecture",Y="console",W="mobile",J="tablet",le="smarttv",Se="wearable",_e="embedded",Ie=350,ve="Amazon",xe="Apple",we="ASUS",he="BlackBerry",ge="Browser",De="Chrome",je="Edge",Ce="Firefox",He="Google",ue="Huawei",fe="LG",ae="Microsoft",Me="Motorola",Je="Opera",Et="Samsung",Ct="Sharp",qe="Sony",Te="Xiaomi",dt="Zebra",Rt="Facebook",It=function(Fe,nt){var Ye={};for(var ht in Fe)nt[ht]&&nt[ht].length%2===0?Ye[ht]=nt[ht].concat(Fe[ht]):Ye[ht]=Fe[ht];return Ye},Ft=function(Fe){for(var nt={},Ye=0;Ye<Fe.length;Ye++)nt[Fe[Ye].toUpperCase()]=Fe[Ye];return nt},kt=function(Fe,nt){return typeof Fe===D?en(nt).indexOf(en(Fe))!==-1:!1},en=function(Fe){return Fe.toLowerCase()},Xe=function(Fe){return typeof Fe===D?Fe.replace(/[^\d\.]/g,c).split(".")[0]:a},st=function(Fe,nt){if(typeof Fe===D)return Fe=Fe.replace(/^\s\s*/,c),typeof nt===b?Fe:Fe.substring(0,Ie)},ut=function(Fe,nt){for(var Ye=0,ht,Ge,Sn,ct,xn,tn;Ye<nt.length&&!xn;){var pr=nt[Ye],Vn=nt[Ye+1];for(ht=Ge=0;ht<pr.length&&!xn;)if(xn=pr[ht++].exec(Fe),xn)for(Sn=0;Sn<Vn.length;Sn++)tn=xn[++Ge],ct=Vn[Sn],typeof ct===w&&ct.length>0?ct.length===2?typeof ct[1]==y?this[ct[0]]=ct[1].call(this,tn):this[ct[0]]=ct[1]:ct.length===3?typeof ct[1]===y&&!(ct[1].exec&&ct[1].test)?this[ct[0]]=tn?ct[1].call(this,tn,ct[2]):a:this[ct[0]]=tn?tn.replace(ct[1],ct[2]):a:ct.length===4&&(this[ct[0]]=tn?ct[3].call(this,tn.replace(ct[1],ct[2])):a):this[ct]=tn||a;Ye+=2}},Pt=function(Fe,nt){for(var Ye in nt)if(typeof nt[Ye]===w&&nt[Ye].length>0){for(var ht=0;ht<nt[Ye].length;ht++)if(kt(nt[Ye][ht],Fe))return Ye===g?a:Ye}else if(kt(nt[Ye],Fe))return Ye===g?a:Ye;return Fe},hn={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Bt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Nt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[j,[T,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[j,[T,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[T,j],[/opios[\/ ]+([\w\.]+)/i],[j,[T,Je+" Mini"]],[/\bopr\/([\w\.]+)/i],[j,[T,Je]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[T,j],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[j,[T,"UC"+ge]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[j,[T,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[j,[T,"WeChat"]],[/konqueror\/([\w\.]+)/i],[j,[T,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[j,[T,"IE"]],[/yabrowser\/([\w\.]+)/i],[j,[T,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[T,/(.+)/,"$1 Secure "+ge],j],[/\bfocus\/([\w\.]+)/i],[j,[T,Ce+" Focus"]],[/\bopt\/([\w\.]+)/i],[j,[T,Je+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[j,[T,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[j,[T,"Dolphin"]],[/coast\/([\w\.]+)/i],[j,[T,Je+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[j,[T,"MIUI "+ge]],[/fxios\/([-\w\.]+)/i],[j,[T,Ce]],[/\bqihu|(qi?ho?o?|360)browser/i],[[T,"360 "+ge]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[T,/(.+)/,"$1 "+ge],j],[/(comodo_dragon)\/([\w\.]+)/i],[[T,/_/g," "],j],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[T,j],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[T],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[T,Rt],j],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[T,j],[/\bgsa\/([\w\.]+) .*safari\//i],[j,[T,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[j,[T,De+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[T,De+" WebView"],j],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[j,[T,"Android "+ge]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[T,j],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[j,[T,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[j,T],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[T,[j,Pt,hn]],[/(webkit|khtml)\/([\w\.]+)/i],[T,j],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[T,"Netscape"],j],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[j,[T,Ce+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[T,j],[/(cobalt)\/([\w\.]+)/i],[T,[j,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[G,"amd64"]],[/(ia32(?=;))/i],[[G,en]],[/((?:i[346]|x)86)[;\)]/i],[[G,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[G,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[G,"armhf"]],[/windows (ce|mobile); ppc;/i],[[G,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[G,/ower/,c,en]],[/(sun4\w)[;\)]/i],[[G,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[G,en]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[L,[R,Et],[F,J]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[L,[R,Et],[F,W]],[/\((ip(?:hone|od)[\w ]*);/i],[L,[R,xe],[F,W]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[L,[R,xe],[F,J]],[/(macintosh);/i],[L,[R,xe]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[L,[R,ue],[F,J]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[L,[R,ue],[F,W]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[L,/_/g," "],[R,Te],[F,W]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[L,/_/g," "],[R,Te],[F,J]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[L,[R,"OPPO"],[F,W]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[L,[R,"Vivo"],[F,W]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[L,[R,"Realme"],[F,W]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[L,[R,Me],[F,W]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[L,[R,Me],[F,J]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[L,[R,fe],[F,J]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[L,[R,fe],[F,W]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[L,[R,"Lenovo"],[F,J]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[L,/_/g," "],[R,"Nokia"],[F,W]],[/(pixel c)\b/i],[L,[R,He],[F,J]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[L,[R,He],[F,W]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[L,[R,qe],[F,W]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[L,"Xperia Tablet"],[R,qe],[F,J]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[L,[R,"OnePlus"],[F,W]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[L,[R,ve],[F,J]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[L,/(.+)/g,"Fire Phone $1"],[R,ve],[F,W]],[/(playbook);[-\w\),; ]+(rim)/i],[L,R,[F,J]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[L,[R,he],[F,W]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[L,[R,we],[F,J]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[L,[R,we],[F,W]],[/(nexus 9)/i],[L,[R,"HTC"],[F,J]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[R,[L,/_/g," "],[F,W]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[L,[R,"Acer"],[F,J]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[L,[R,"Meizu"],[F,W]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[L,[R,Ct],[F,W]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[R,L,[F,W]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[R,L,[F,J]],[/(surface duo)/i],[L,[R,ae],[F,J]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[L,[R,"Fairphone"],[F,W]],[/(u304aa)/i],[L,[R,"AT&T"],[F,W]],[/\bsie-(\w*)/i],[L,[R,"Siemens"],[F,W]],[/\b(rct\w+) b/i],[L,[R,"RCA"],[F,J]],[/\b(venue[\d ]{2,7}) b/i],[L,[R,"Dell"],[F,J]],[/\b(q(?:mv|ta)\w+) b/i],[L,[R,"Verizon"],[F,J]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[L,[R,"Barnes & Noble"],[F,J]],[/\b(tm\d{3}\w+) b/i],[L,[R,"NuVision"],[F,J]],[/\b(k88) b/i],[L,[R,"ZTE"],[F,J]],[/\b(nx\d{3}j) b/i],[L,[R,"ZTE"],[F,W]],[/\b(gen\d{3}) b.+49h/i],[L,[R,"Swiss"],[F,W]],[/\b(zur\d{3}) b/i],[L,[R,"Swiss"],[F,J]],[/\b((zeki)?tb.*\b) b/i],[L,[R,"Zeki"],[F,J]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[R,"Dragon Touch"],L,[F,J]],[/\b(ns-?\w{0,9}) b/i],[L,[R,"Insignia"],[F,J]],[/\b((nxa|next)-?\w{0,9}) b/i],[L,[R,"NextBook"],[F,J]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[R,"Voice"],L,[F,W]],[/\b(lvtel\-)?(v1[12]) b/i],[[R,"LvTel"],L,[F,W]],[/\b(ph-1) /i],[L,[R,"Essential"],[F,W]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[L,[R,"Envizen"],[F,J]],[/\b(trio[-\w\. ]+) b/i],[L,[R,"MachSpeed"],[F,J]],[/\btu_(1491) b/i],[L,[R,"Rotor"],[F,J]],[/(shield[\w ]+) b/i],[L,[R,"Nvidia"],[F,J]],[/(sprint) (\w+)/i],[R,L,[F,W]],[/(kin\.[onetw]{3})/i],[[L,/\./g," "],[R,ae],[F,W]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[L,[R,dt],[F,J]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[L,[R,dt],[F,W]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[R,L,[F,Y]],[/droid.+; (shield) bui/i],[L,[R,"Nvidia"],[F,Y]],[/(playstation [345portablevi]+)/i],[L,[R,qe],[F,Y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[L,[R,ae],[F,Y]],[/smart-tv.+(samsung)/i],[R,[F,le]],[/hbbtv.+maple;(\d+)/i],[[L,/^/,"SmartTV"],[R,Et],[F,le]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[R,fe],[F,le]],[/(apple) ?tv/i],[R,[L,xe+" TV"],[F,le]],[/crkey/i],[[L,De+"cast"],[R,He],[F,le]],[/droid.+aft(\w)( bui|\))/i],[L,[R,ve],[F,le]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[L,[R,Ct],[F,le]],[/(bravia[\w ]+)( bui|\))/i],[L,[R,qe],[F,le]],[/(mitv-\w{5}) bui/i],[L,[R,Te],[F,le]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[R,st],[L,st],[F,le]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[F,le]],[/((pebble))app/i],[R,L,[F,Se]],[/droid.+; (glass) \d/i],[L,[R,He],[F,Se]],[/droid.+; (wt63?0{2,3})\)/i],[L,[R,dt],[F,Se]],[/(quest( 2)?)/i],[L,[R,Rt],[F,Se]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[R,[F,_e]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[L,[F,W]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[L,[F,J]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[F,J]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[F,W]],[/(android[-\w\. ]{0,9});.+buil/i],[L,[R,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[j,[T,je+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[j,[T,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[T,j],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[j,T]],os:[[/microsoft (windows) (vista|xp)/i],[T,j],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[T,[j,Pt,Bt]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[T,"Windows"],[j,Pt,Bt]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[j,/_/g,"."],[T,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[T,"Mac OS"],[j,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[j,T],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[T,j],[/\(bb(10);/i],[j,[T,he]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[j,[T,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[j,[T,Ce+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[j,[T,"webOS"]],[/crkey\/([\d\.]+)/i],[j,[T,De+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[T,"Chromium OS"],j],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[T,j],[/(sunos) ?([\w\.\d]*)/i],[[T,"Solaris"],j],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[T,j]]},rt=function(Fe,nt){if(typeof Fe===w&&(nt=Fe,Fe=a),!(this instanceof rt))return new rt(Fe,nt).getResult();var Ye=Fe||(typeof i!==b&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:c),ht=nt?It(Nt,nt):Nt;return this.getBrowser=function(){var Ge={};return Ge[T]=a,Ge[j]=a,ut.call(Ge,Ye,ht.browser),Ge.major=Xe(Ge.version),Ge},this.getCPU=function(){var Ge={};return Ge[G]=a,ut.call(Ge,Ye,ht.cpu),Ge},this.getDevice=function(){var Ge={};return Ge[R]=a,Ge[L]=a,Ge[F]=a,ut.call(Ge,Ye,ht.device),Ge},this.getEngine=function(){var Ge={};return Ge[T]=a,Ge[j]=a,ut.call(Ge,Ye,ht.engine),Ge},this.getOS=function(){var Ge={};return Ge[T]=a,Ge[j]=a,ut.call(Ge,Ye,ht.os),Ge},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ye},this.setUA=function(Ge){return Ye=typeof Ge===D&&Ge.length>Ie?st(Ge,Ie):Ge,this},this.setUA(Ye),this};rt.VERSION=u,rt.BROWSER=Ft([T,j,K]),rt.CPU=Ft([G]),rt.DEVICE=Ft([L,R,F,Y,W,le,J,Se,_e]),rt.ENGINE=rt.OS=Ft([T,j]),t.exports&&(r=t.exports=rt),r.UAParser=rt;var pt=typeof i!==b&&(i.jQuery||i.Zepto);if(pt&&!pt.ua){var Kt=new rt;pt.ua=Kt.getResult(),pt.ua.get=function(){return Kt.getUA()},pt.ua.set=function(Fe){Kt.setUA(Fe);var nt=Kt.getResult();for(var Ye in nt)pt.ua[Ye]=nt[Ye]}}})(typeof window=="object"?window:Pa)})(Rx,Ku);var Ix=Ku,Jr="Unknown",jx={"Mac OS":"Mac OS X"};function Tx(t){return jx[t]||t}function zx(t){if(!t)return{major:"",minor:""};var r=t.split(".");return{major:r[0],minor:r[1]}}var Hx=new Ix,Wr=Hx.getResult(),Ax=zx(Wr.browser.version),qx={browserArchitecture:Wr.cpu.architecture||Jr,browserFullVersion:Wr.browser.version||Jr,browserMinorVersion:Ax.minor||Jr,browserName:Wr.browser.name||Jr,browserVersion:Wr.browser.major||Jr,deviceName:Wr.device.model||Jr,engineName:Wr.engine.name||Jr,engineVersion:Wr.engine.version||Jr,platformArchitecture:Wr.cpu.architecture||Jr,platformName:Tx(Wr.os.name)||Jr,platformVersion:Wr.os.version||Jr,platformFullVersion:Wr.os.version||Jr},Ux=qx,Ru=wt,Dh=/\./,Vx=/\|\|/,Qx=/\s+\-\s+/,Xx=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,Mh=/^(\d*)(.*)/;function Zx(t,r){var i=t.split(Vx);return i.length>1?i.some(function(a){return Rh.contains(a,r)}):(t=i[0].trim(),$x(t,r))}function $x(t,r){var i=t.split(Qx);if(i.length>0&&i.length<=2||Ru(!1),i.length===1)return Kc(i[0],r);var a=i[0],u=i[1];return Fh(a)&&Fh(u)||Ru(!1),Kc(">="+a,r)&&Kc("<="+u,r)}function Kc(t,r){if(t=t.trim(),t==="")return!0;var i=r.split(Dh),a=Bh(t),u=a.modifier,c=a.rangeComponents;switch(u){case"<":return Lh(i,c);case"<=":return Yx(i,c);case">=":return Ch(i,c);case">":return Wx(i,c);case"~":case"~>":return Gx(i,c);default:return Jx(i,c)}}function Lh(t,r){return Pl(t,r)===-1}function Yx(t,r){var i=Pl(t,r);return i===-1||i===0}function Jx(t,r){return Pl(t,r)===0}function Ch(t,r){var i=Pl(t,r);return i===1||i===0}function Wx(t,r){return Pl(t,r)===1}function Gx(t,r){var i=r.slice(),a=r.slice();a.length>1&&a.pop();var u=a.length-1,c=parseInt(a[u],10);return Rc(c)&&(a[u]=c+1+""),Ch(t,i)&&Lh(t,a)}function Bh(t){var r=t.split(Dh),i=r[0].match(Xx);return i||Ru(!1),{modifier:i[1],rangeComponents:[i[2]].concat(r.slice(1))}}function Rc(t){return!isNaN(t)&&isFinite(t)}function Fh(t){return!Bh(t).modifier}function Ph(t,r){for(var i=t.length;i<r;i++)t[i]="0"}function eE(t,r){t=t.slice(),r=r.slice(),Ph(t,r.length);for(var i=0;i<r.length;i++){var a=r[i].match(/^[x*]$/i);if(a&&(r[i]=t[i]="0",a[0]==="*"&&i===r.length-1))for(var u=i;u<t.length;u++)t[u]="0"}return Ph(r,t.length),[t,r]}function tE(t,r){var i=t.match(Mh)[1],a=r.match(Mh)[1],u=parseInt(i,10),c=parseInt(a,10);return Rc(u)&&Rc(c)&&u!==c?Kh(u,c):Kh(t,r)}function Kh(t,r){return typeof t!=typeof r&&Ru(!1),t>r?1:t<r?-1:0}function Pl(t,r){for(var i=eE(t,r),a=i[0],u=i[1],c=0;c<u.length;c++){var g=tE(a[c],u[c]);if(g)return g}return 0}var Rh={contains:function(t,r){return Zx(t.trim(),r.trim())}},nE=Rh,rE=Object.prototype.hasOwnProperty;function iE(t,r,i){if(!t)return null;var a={};for(var u in t)rE.call(t,u)&&(a[u]=r.call(i,t[u],u,t));return a}var oE=iE;function aE(t){var r={};return function(i){return r.hasOwnProperty(i)||(r[i]=t.call(this,i)),r[i]}}var lE=aE,Fi=Ux,uE=nE,sE=oE,cE=lE;function za(t,r,i,a){if(t===i)return!0;if(!i.startsWith(t))return!1;var u=i.slice(t.length);return r?(u=a?a(u):u,uE.contains(u,r)):!1}function fE(t){return Fi.platformName==="Windows"?t.replace(/^\s*NT/,""):t}var dE={isBrowser:function(t){return za(Fi.browserName,Fi.browserFullVersion,t)},isBrowserArchitecture:function(t){return za(Fi.browserArchitecture,null,t)},isDevice:function(t){return za(Fi.deviceName,null,t)},isEngine:function(t){return za(Fi.engineName,Fi.engineVersion,t)},isPlatform:function(t){return za(Fi.platformName,Fi.platformFullVersion,t,fE)},isPlatformArchitecture:function(t){return za(Fi.platformArchitecture,null,t)}},fr=sE(dE,cE);function pE(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Iu=pE;function hE(t){return!t||!t.ownerDocument?!1:t.nodeType===Node.ELEMENT_NODE}var ua=hE,mE=ua;function Ih(t){if(mE(t)){var r=t,i=r.getAttribute("data-offset-key");if(i)return i;for(var a=0;a<r.childNodes.length;a++){var u=Ih(r.childNodes[a]);if(u)return u}}return null}var jh=Ih,gE=Iu,vE=jh;function yE(t){for(var r=t;r&&r!==gE(t).documentElement;){var i=vE(r);if(i!=null)return i;r=r.parentNode}return null}var ju=yE;function bE(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}var Th=bE;function Tu(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var _E=fr,wE=ju,SE=Th,xE=mt,EE=wt,kE=cr,zh=xE.Map,NE={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Hh=_E.isBrowser("IE <= 11"),OE=function(){function t(i){var a=this;Tu(this,"observer",void 0),Tu(this,"container",void 0),Tu(this,"mutations",void 0),Tu(this,"onCharData",void 0),this.container=i,this.mutations=zh();var u=SE(i);u.MutationObserver&&!Hh?this.observer=new u.MutationObserver(function(c){return a.registerMutations(c)}):this.onCharData=function(c){c.target instanceof Node||EE(!1),a.registerMutation({type:"characterData",target:c.target})}}var r=t.prototype;return r.start=function(){this.observer?this.observer.observe(this.container,NE):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},r.stopAndFlushMutations=function(){var i=this.observer;i?(this.registerMutations(i.takeRecords()),i.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var a=this.mutations;return this.mutations=zh(),a},r.registerMutations=function(i){for(var a=0;a<i.length;a++)this.registerMutation(i[a])},r.getMutationTextContent=function(i){var a=i.type,u=i.target,c=i.removedNodes;if(a==="characterData"){if(u.textContent!=="")return Hh?u.textContent.replace(`
|
|
12
|
-
`,""):
|
|
13
|
-
`?0:r.length}var
|
|
14
|
-
`:t.tagName==="BR"}var
|
|
15
|
-
`):
|
|
16
|
-
`):
|
|
11
|
+
*/var Qh=Object.getOwnPropertySymbols,DE=Object.prototype.hasOwnProperty,PE=Object.prototype.propertyIsEnumerable;function BE(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function RE(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;var i=Object.getOwnPropertyNames(r).map(function(c){return r[c]});if(i.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var sa=RE()?Object.assign:function(t,r){for(var o,i=BE(t),l,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var g in o)DE.call(o,g)&&(i[g]=o[g]);if(Qh){l=Qh(o);for(var v=0;v<l.length;v++)PE.call(o,l[v])&&(i[l[v]]=o[l[v]])}}return i},Hu={},TE={get exports(){return Hu},set exports(t){Hu=t}};(function(t,r){(function(o,i){var l="0.7.33",c="",g="?",v="function",b="undefined",w="object",L="string",R="major",M="model",z="name",B="type",T="vendor",I="version",G="architecture",Y="console",W="mobile",J="tablet",le="smarttv",Se="wearable",_e="embedded",je=350,ve="Amazon",xe="Apple",we="ASUS",he="BlackBerry",ge="Browser",Le="Chrome",Ie="Edge",Fe="Firefox",Ae="Google",ue="Huawei",fe="LG",ae="Microsoft",Ce="Motorola",Je="Opera",Et="Samsung",Ft="Sharp",Ve="Sony",ze="Xiaomi",dt="Zebra",Tt="Facebook",jt=function(Pe,nt){var Ye={};for(var ht in Pe)nt[ht]&&nt[ht].length%2===0?Ye[ht]=nt[ht].concat(Pe[ht]):Ye[ht]=Pe[ht];return Ye},Pt=function(Pe){for(var nt={},Ye=0;Ye<Pe.length;Ye++)nt[Pe[Ye].toUpperCase()]=Pe[Ye];return nt},kt=function(Pe,nt){return typeof Pe===L?en(nt).indexOf(en(Pe))!==-1:!1},en=function(Pe){return Pe.toLowerCase()},Xe=function(Pe){return typeof Pe===L?Pe.replace(/[^\d\.]/g,c).split(".")[0]:i},st=function(Pe,nt){if(typeof Pe===L)return Pe=Pe.replace(/^\s\s*/,c),typeof nt===b?Pe:Pe.substring(0,je)},ut=function(Pe,nt){for(var Ye=0,ht,Ge,xn,ct,En,tn;Ye<nt.length&&!En;){var hr=nt[Ye],Qn=nt[Ye+1];for(ht=Ge=0;ht<hr.length&&!En;)if(En=hr[ht++].exec(Pe),En)for(xn=0;xn<Qn.length;xn++)tn=En[++Ge],ct=Qn[xn],typeof ct===w&&ct.length>0?ct.length===2?typeof ct[1]==v?this[ct[0]]=ct[1].call(this,tn):this[ct[0]]=ct[1]:ct.length===3?typeof ct[1]===v&&!(ct[1].exec&&ct[1].test)?this[ct[0]]=tn?ct[1].call(this,tn,ct[2]):i:this[ct[0]]=tn?tn.replace(ct[1],ct[2]):i:ct.length===4&&(this[ct[0]]=tn?ct[3].call(this,tn.replace(ct[1],ct[2])):i):this[ct]=tn||i;Ye+=2}},Bt=function(Pe,nt){for(var Ye in nt)if(typeof nt[Ye]===w&&nt[Ye].length>0){for(var ht=0;ht<nt[Ye].length;ht++)if(kt(nt[Ye][ht],Pe))return Ye===g?i:Ye}else if(kt(nt[Ye],Pe))return Ye===g?i:Ye;return Pe},mn={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Dt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Nt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[I,[z,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[I,[z,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[z,I],[/opios[\/ ]+([\w\.]+)/i],[I,[z,Je+" Mini"]],[/\bopr\/([\w\.]+)/i],[I,[z,Je]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[z,I],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[I,[z,"UC"+ge]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[I,[z,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[I,[z,"WeChat"]],[/konqueror\/([\w\.]+)/i],[I,[z,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[I,[z,"IE"]],[/yabrowser\/([\w\.]+)/i],[I,[z,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[z,/(.+)/,"$1 Secure "+ge],I],[/\bfocus\/([\w\.]+)/i],[I,[z,Fe+" Focus"]],[/\bopt\/([\w\.]+)/i],[I,[z,Je+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[I,[z,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[I,[z,"Dolphin"]],[/coast\/([\w\.]+)/i],[I,[z,Je+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[I,[z,"MIUI "+ge]],[/fxios\/([-\w\.]+)/i],[I,[z,Fe]],[/\bqihu|(qi?ho?o?|360)browser/i],[[z,"360 "+ge]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[z,/(.+)/,"$1 "+ge],I],[/(comodo_dragon)\/([\w\.]+)/i],[[z,/_/g," "],I],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[z,I],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[z],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[z,Tt],I],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[z,I],[/\bgsa\/([\w\.]+) .*safari\//i],[I,[z,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[I,[z,Le+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[z,Le+" WebView"],I],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[I,[z,"Android "+ge]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[z,I],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[I,[z,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[I,z],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[z,[I,Bt,mn]],[/(webkit|khtml)\/([\w\.]+)/i],[z,I],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[z,"Netscape"],I],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[I,[z,Fe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[z,I],[/(cobalt)\/([\w\.]+)/i],[z,[I,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[G,"amd64"]],[/(ia32(?=;))/i],[[G,en]],[/((?:i[346]|x)86)[;\)]/i],[[G,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[G,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[G,"armhf"]],[/windows (ce|mobile); ppc;/i],[[G,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[G,/ower/,c,en]],[/(sun4\w)[;\)]/i],[[G,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[G,en]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[M,[T,Et],[B,J]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[M,[T,Et],[B,W]],[/\((ip(?:hone|od)[\w ]*);/i],[M,[T,xe],[B,W]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[M,[T,xe],[B,J]],[/(macintosh);/i],[M,[T,xe]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[M,[T,ue],[B,J]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[M,[T,ue],[B,W]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[M,/_/g," "],[T,ze],[B,W]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[M,/_/g," "],[T,ze],[B,J]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[M,[T,"OPPO"],[B,W]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[M,[T,"Vivo"],[B,W]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[M,[T,"Realme"],[B,W]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[M,[T,Ce],[B,W]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[M,[T,Ce],[B,J]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[M,[T,fe],[B,J]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[M,[T,fe],[B,W]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[M,[T,"Lenovo"],[B,J]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[M,/_/g," "],[T,"Nokia"],[B,W]],[/(pixel c)\b/i],[M,[T,Ae],[B,J]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[M,[T,Ae],[B,W]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[M,[T,Ve],[B,W]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[M,"Xperia Tablet"],[T,Ve],[B,J]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[M,[T,"OnePlus"],[B,W]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[M,[T,ve],[B,J]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[M,/(.+)/g,"Fire Phone $1"],[T,ve],[B,W]],[/(playbook);[-\w\),; ]+(rim)/i],[M,T,[B,J]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[M,[T,he],[B,W]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[M,[T,we],[B,J]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[M,[T,we],[B,W]],[/(nexus 9)/i],[M,[T,"HTC"],[B,J]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[T,[M,/_/g," "],[B,W]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[M,[T,"Acer"],[B,J]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[M,[T,"Meizu"],[B,W]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[M,[T,Ft],[B,W]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[T,M,[B,W]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[T,M,[B,J]],[/(surface duo)/i],[M,[T,ae],[B,J]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[M,[T,"Fairphone"],[B,W]],[/(u304aa)/i],[M,[T,"AT&T"],[B,W]],[/\bsie-(\w*)/i],[M,[T,"Siemens"],[B,W]],[/\b(rct\w+) b/i],[M,[T,"RCA"],[B,J]],[/\b(venue[\d ]{2,7}) b/i],[M,[T,"Dell"],[B,J]],[/\b(q(?:mv|ta)\w+) b/i],[M,[T,"Verizon"],[B,J]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[M,[T,"Barnes & Noble"],[B,J]],[/\b(tm\d{3}\w+) b/i],[M,[T,"NuVision"],[B,J]],[/\b(k88) b/i],[M,[T,"ZTE"],[B,J]],[/\b(nx\d{3}j) b/i],[M,[T,"ZTE"],[B,W]],[/\b(gen\d{3}) b.+49h/i],[M,[T,"Swiss"],[B,W]],[/\b(zur\d{3}) b/i],[M,[T,"Swiss"],[B,J]],[/\b((zeki)?tb.*\b) b/i],[M,[T,"Zeki"],[B,J]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[T,"Dragon Touch"],M,[B,J]],[/\b(ns-?\w{0,9}) b/i],[M,[T,"Insignia"],[B,J]],[/\b((nxa|next)-?\w{0,9}) b/i],[M,[T,"NextBook"],[B,J]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[T,"Voice"],M,[B,W]],[/\b(lvtel\-)?(v1[12]) b/i],[[T,"LvTel"],M,[B,W]],[/\b(ph-1) /i],[M,[T,"Essential"],[B,W]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[M,[T,"Envizen"],[B,J]],[/\b(trio[-\w\. ]+) b/i],[M,[T,"MachSpeed"],[B,J]],[/\btu_(1491) b/i],[M,[T,"Rotor"],[B,J]],[/(shield[\w ]+) b/i],[M,[T,"Nvidia"],[B,J]],[/(sprint) (\w+)/i],[T,M,[B,W]],[/(kin\.[onetw]{3})/i],[[M,/\./g," "],[T,ae],[B,W]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[M,[T,dt],[B,J]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[M,[T,dt],[B,W]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[T,M,[B,Y]],[/droid.+; (shield) bui/i],[M,[T,"Nvidia"],[B,Y]],[/(playstation [345portablevi]+)/i],[M,[T,Ve],[B,Y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[M,[T,ae],[B,Y]],[/smart-tv.+(samsung)/i],[T,[B,le]],[/hbbtv.+maple;(\d+)/i],[[M,/^/,"SmartTV"],[T,Et],[B,le]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[T,fe],[B,le]],[/(apple) ?tv/i],[T,[M,xe+" TV"],[B,le]],[/crkey/i],[[M,Le+"cast"],[T,Ae],[B,le]],[/droid.+aft(\w)( bui|\))/i],[M,[T,ve],[B,le]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[M,[T,Ft],[B,le]],[/(bravia[\w ]+)( bui|\))/i],[M,[T,Ve],[B,le]],[/(mitv-\w{5}) bui/i],[M,[T,ze],[B,le]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[T,st],[M,st],[B,le]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[B,le]],[/((pebble))app/i],[T,M,[B,Se]],[/droid.+; (glass) \d/i],[M,[T,Ae],[B,Se]],[/droid.+; (wt63?0{2,3})\)/i],[M,[T,dt],[B,Se]],[/(quest( 2)?)/i],[M,[T,Tt],[B,Se]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[T,[B,_e]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[M,[B,W]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[M,[B,J]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[B,J]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[B,W]],[/(android[-\w\. ]{0,9});.+buil/i],[M,[T,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[I,[z,Ie+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[I,[z,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[z,I],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[I,z]],os:[[/microsoft (windows) (vista|xp)/i],[z,I],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[z,[I,Bt,Dt]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[z,"Windows"],[I,Bt,Dt]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[I,/_/g,"."],[z,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[z,"Mac OS"],[I,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[I,z],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[z,I],[/\(bb(10);/i],[I,[z,he]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[I,[z,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[I,[z,Fe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[I,[z,"webOS"]],[/crkey\/([\d\.]+)/i],[I,[z,Le+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[z,"Chromium OS"],I],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[z,I],[/(sunos) ?([\w\.\d]*)/i],[[z,"Solaris"],I],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[z,I]]},rt=function(Pe,nt){if(typeof Pe===w&&(nt=Pe,Pe=i),!(this instanceof rt))return new rt(Pe,nt).getResult();var Ye=Pe||(typeof o!==b&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:c),ht=nt?jt(Nt,nt):Nt;return this.getBrowser=function(){var Ge={};return Ge[z]=i,Ge[I]=i,ut.call(Ge,Ye,ht.browser),Ge.major=Xe(Ge.version),Ge},this.getCPU=function(){var Ge={};return Ge[G]=i,ut.call(Ge,Ye,ht.cpu),Ge},this.getDevice=function(){var Ge={};return Ge[T]=i,Ge[M]=i,Ge[B]=i,ut.call(Ge,Ye,ht.device),Ge},this.getEngine=function(){var Ge={};return Ge[z]=i,Ge[I]=i,ut.call(Ge,Ye,ht.engine),Ge},this.getOS=function(){var Ge={};return Ge[z]=i,Ge[I]=i,ut.call(Ge,Ye,ht.os),Ge},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ye},this.setUA=function(Ge){return Ye=typeof Ge===L&&Ge.length>je?st(Ge,je):Ge,this},this.setUA(Ye),this};rt.VERSION=l,rt.BROWSER=Pt([z,I,R]),rt.CPU=Pt([G]),rt.DEVICE=Pt([M,T,B,Y,W,le,J,Se,_e]),rt.ENGINE=rt.OS=Pt([z,I]),t.exports&&(r=t.exports=rt),r.UAParser=rt;var pt=typeof o!==b&&(o.jQuery||o.Zepto);if(pt&&!pt.ua){var Rt=new rt;pt.ua=Rt.getResult(),pt.ua.get=function(){return Rt.getUA()},pt.ua.set=function(Pe){Rt.setUA(Pe);var nt=Rt.getResult();for(var Ye in nt)pt.ua[Ye]=nt[Ye]}}})(typeof window=="object"?window:Ta)})(TE,Hu);var jE=Hu,Jr="Unknown",IE={"Mac OS":"Mac OS X"};function zE(t){return IE[t]||t}function KE(t){if(!t)return{major:"",minor:""};var r=t.split(".");return{major:r[0],minor:r[1]}}var AE=new jE,Wr=AE.getResult(),HE=KE(Wr.browser.version),VE={browserArchitecture:Wr.cpu.architecture||Jr,browserFullVersion:Wr.browser.version||Jr,browserMinorVersion:HE.minor||Jr,browserName:Wr.browser.name||Jr,browserVersion:Wr.browser.major||Jr,deviceName:Wr.device.model||Jr,engineName:Wr.engine.name||Jr,engineVersion:Wr.engine.version||Jr,platformArchitecture:Wr.cpu.architecture||Jr,platformName:zE(Wr.os.name)||Jr,platformVersion:Wr.os.version||Jr,platformFullVersion:Wr.os.version||Jr},qE=VE,Vu=wt,Xh=/\./,UE=/\|\|/,QE=/\s+\-\s+/,XE=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,Zh=/^(\d*)(.*)/;function ZE(t,r){var o=t.split(UE);return o.length>1?o.some(function(i){return tm.contains(i,r)}):(t=o[0].trim(),$E(t,r))}function $E(t,r){var o=t.split(QE);if(o.length>0&&o.length<=2||Vu(!1),o.length===1)return $c(o[0],r);var i=o[0],l=o[1];return Wh(i)&&Wh(l)||Vu(!1),$c(">="+i,r)&&$c("<="+l,r)}function $c(t,r){if(t=t.trim(),t==="")return!0;var o=r.split(Xh),i=Jh(t),l=i.modifier,c=i.rangeComponents;switch(l){case"<":return $h(o,c);case"<=":return YE(o,c);case">=":return Yh(o,c);case">":return WE(o,c);case"~":case"~>":return GE(o,c);default:return JE(o,c)}}function $h(t,r){return jl(t,r)===-1}function YE(t,r){var o=jl(t,r);return o===-1||o===0}function JE(t,r){return jl(t,r)===0}function Yh(t,r){var o=jl(t,r);return o===1||o===0}function WE(t,r){return jl(t,r)===1}function GE(t,r){var o=r.slice(),i=r.slice();i.length>1&&i.pop();var l=i.length-1,c=parseInt(i[l],10);return Yc(c)&&(i[l]=c+1+""),Yh(t,o)&&$h(t,i)}function Jh(t){var r=t.split(Xh),o=r[0].match(XE);return o||Vu(!1),{modifier:o[1],rangeComponents:[o[2]].concat(r.slice(1))}}function Yc(t){return!isNaN(t)&&isFinite(t)}function Wh(t){return!Jh(t).modifier}function Gh(t,r){for(var o=t.length;o<r;o++)t[o]="0"}function ek(t,r){t=t.slice(),r=r.slice(),Gh(t,r.length);for(var o=0;o<r.length;o++){var i=r[o].match(/^[x*]$/i);if(i&&(r[o]=t[o]="0",i[0]==="*"&&o===r.length-1))for(var l=o;l<t.length;l++)t[l]="0"}return Gh(r,t.length),[t,r]}function tk(t,r){var o=t.match(Zh)[1],i=r.match(Zh)[1],l=parseInt(o,10),c=parseInt(i,10);return Yc(l)&&Yc(c)&&l!==c?em(l,c):em(t,r)}function em(t,r){return typeof t!=typeof r&&Vu(!1),t>r?1:t<r?-1:0}function jl(t,r){for(var o=ek(t,r),i=o[0],l=o[1],c=0;c<l.length;c++){var g=tk(i[c],l[c]);if(g)return g}return 0}var tm={contains:function(t,r){return ZE(t.trim(),r.trim())}},nk=tm,rk=Object.prototype.hasOwnProperty;function ok(t,r,o){if(!t)return null;var i={};for(var l in t)rk.call(t,l)&&(i[l]=r.call(o,t[l],l,t));return i}var ik=ok;function ak(t){var r={};return function(o){return r.hasOwnProperty(o)||(r[o]=t.call(this,o)),r[o]}}var lk=ak,To=qE,uk=nk,sk=ik,ck=lk;function qa(t,r,o,i){if(t===o)return!0;if(!o.startsWith(t))return!1;var l=o.slice(t.length);return r?(l=i?i(l):l,uk.contains(l,r)):!1}function fk(t){return To.platformName==="Windows"?t.replace(/^\s*NT/,""):t}var dk={isBrowser:function(t){return qa(To.browserName,To.browserFullVersion,t)},isBrowserArchitecture:function(t){return qa(To.browserArchitecture,null,t)},isDevice:function(t){return qa(To.deviceName,null,t)},isEngine:function(t){return qa(To.engineName,To.engineVersion,t)},isPlatform:function(t){return qa(To.platformName,To.platformFullVersion,t,fk)},isPlatformArchitecture:function(t){return qa(To.platformArchitecture,null,t)}},dr=sk(dk,ck);function pk(t){return!t||!t.ownerDocument?document:t.ownerDocument}var qu=pk;function hk(t){return!t||!t.ownerDocument?!1:t.nodeType===Node.ELEMENT_NODE}var ca=hk,mk=ca;function nm(t){if(mk(t)){var r=t,o=r.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<r.childNodes.length;i++){var l=nm(r.childNodes[i]);if(l)return l}}return null}var rm=nm,gk=qu,vk=rm;function yk(t){for(var r=t;r&&r!==gk(t).documentElement;){var o=vk(r);if(o!=null)return o;r=r.parentNode}return null}var Uu=yk;function bk(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}var om=bk;function Qu(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var _k=dr,wk=Uu,Sk=om,xk=gt,Ek=wt,kk=fr,im=xk.Map,Nk={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},am=_k.isBrowser("IE <= 11"),Ok=function(){function t(o){var i=this;Qu(this,"observer",void 0),Qu(this,"container",void 0),Qu(this,"mutations",void 0),Qu(this,"onCharData",void 0),this.container=o,this.mutations=im();var l=Sk(o);l.MutationObserver&&!am?this.observer=new l.MutationObserver(function(c){return i.registerMutations(c)}):this.onCharData=function(c){c.target instanceof Node||Ek(!1),i.registerMutation({type:"characterData",target:c.target})}}var r=t.prototype;return r.start=function(){this.observer?this.observer.observe(this.container,Nk):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},r.stopAndFlushMutations=function(){var o=this.observer;o?(this.registerMutations(o.takeRecords()),o.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var i=this.mutations;return this.mutations=im(),i},r.registerMutations=function(o){for(var i=0;i<o.length;i++)this.registerMutation(o[i])},r.getMutationTextContent=function(o){var i=o.type,l=o.target,c=o.removedNodes;if(i==="characterData"){if(l.textContent!=="")return am?l.textContent.replace(`
|
|
12
|
+
`,""):l.textContent}else if(i==="childList"){if(c&&c.length)return"";if(l.textContent!=="")return l.textContent}return null},r.registerMutation=function(o){var i=this.getMutationTextContent(o);if(i!=null){var l=kk(wk(o.target));this.mutations=this.mutations.set(l,i)}},t}(),Lk=Ok,Xu="-",Ck={encode:function(t,r,o){return t+Xu+r+Xu+o},decode:function(t){var r=t.split(Xu).reverse(),o=r[0],i=r[1],l=r.slice(2);return{blockKey:l.reverse().join(Xu),decoratorKey:parseInt(i,10),leafKey:parseInt(o,10)}}},ti=Ck,Zu={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},lm={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function Mk(t){return!t||!t.ownerDocument?!1:t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement}var Il=Mk,um=wt,Fk=Il;function Dk(t){var r=t.editorContainer;r||um(!1),Fk(r.firstChild)||um(!1);var o=r.firstChild;return o}var sm=Dk,cm=ti,Pk=fr;function Bk(t,r,o,i,l){var c=Pk(t.getSelection());if(!r||!i)return c;var g=cm.decode(r),v=g.blockKey,b=t.getBlockTree(v),w=b&&b.getIn([g.decoratorKey,"leaves",g.leafKey]),L=cm.decode(i),R=L.blockKey,M=t.getBlockTree(R),z=M&&M.getIn([L.decoratorKey,"leaves",L.leafKey]);if(!w||!z)return c;var B=w.get("start"),T=z.get("start"),I=w?B+o:null,G=z?T+l:null,Y=c.getAnchorKey()===v&&c.getAnchorOffset()===I&&c.getFocusKey()===R&&c.getFocusOffset()===G;if(Y)return c;var W=!1;if(v===R){var J=w.get("end"),le=z.get("end");T===B&&le===J?W=l<o:W=T<B}else{var Se=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(_e){return _e===v||_e===R}).first();W=Se===R}return c.merge({anchorKey:v,anchorOffset:I,focusKey:R,focusOffset:G,isBackward:W})}var fm=Bk,zl=Uu,Kl=rm,dm=fm,Jc=wt,Wc=ca,fa=fr;function Rk(t,r,o,i,l,c){var g=o.nodeType===Node.TEXT_NODE,v=l.nodeType===Node.TEXT_NODE;if(g&&v)return{selectionState:dm(t,fa(zl(o)),i,fa(zl(l)),c),needsRecovery:!1};var b=null,w=null,L=!0;return g?(b={key:fa(zl(o)),offset:i},w=$u(r,l,c)):v?(w={key:fa(zl(l)),offset:c},b=$u(r,o,i)):(b=$u(r,o,i),w=$u(r,l,c),o===l&&i===c&&(L=!!o.firstChild&&o.firstChild.nodeName!=="BR")),{selectionState:dm(t,b.key,b.offset,w.key,w.offset),needsRecovery:L}}function Tk(t){for(;t.firstChild&&(Wc(t.firstChild)&&t.firstChild.getAttribute("data-blocks")==="true"||Kl(t.firstChild));)t=t.firstChild;return t}function jk(t){for(;t.lastChild&&(Wc(t.lastChild)&&t.lastChild.getAttribute("data-blocks")==="true"||Kl(t.lastChild));)t=t.lastChild;return t}function $u(t,r,o){var i=r,l=zl(i);if(l!=null||t&&(t===i||t.firstChild===i)||Jc(!1),t===i){i=i.firstChild,Wc(i)||Jc(!1);var c=i;i=c,i.getAttribute("data-contents")!=="true"&&Jc(!1),o>0&&(o=i.childNodes.length)}if(o===0){var g=null;if(l!=null)g=l;else{var v=Tk(i);g=fa(Kl(v))}return{key:g,offset:0}}var b=i.childNodes[o-1],w=null,L=null;if(!Kl(b))w=fa(l),L=pm(b);else{var R=jk(b);w=fa(Kl(R)),L=pm(R)}return{key:w,offset:L}}function pm(t){var r=t.textContent;return r===`
|
|
13
|
+
`?0:r.length}var hm=Rk,Ik=hm;function zk(t,r){var o=r.ownerDocument.defaultView.getSelection(),i=o.anchorNode,l=o.anchorOffset,c=o.focusNode,g=o.focusOffset,v=o.rangeCount;return v===0||i==null||c==null?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:Ik(t,r,i,l,c,g)}var mm=zk,Kk=lm,gm=Vt,Ak=sm,Hk=mm;function Vk(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var r=t.props.editorState,o=r.getSelection();Kk.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(o.toJS())})}return}var i=t.props.editorState,l=Hk(i,Ak(t)),c=l.selectionState;c!==i.getSelection()&&(l.needsRecovery?i=gm.forceSelection(i,c):i=gm.acceptSelection(i,c),t.update(i))}var vm=Vk;function qk(t){return t!=null&&t!=""}var ym={notEmptyKey:qk},Uk=ym,Qk=Uk.notEmptyKey;function Xk(t,r){var o;if(r.isCollapsed()){var i=r.getAnchorKey(),l=r.getAnchorOffset();return l>0?(o=t.getBlockForKey(i).getEntityAt(l-1),o!==t.getBlockForKey(i).getEntityAt(l)?null:bm(t.getEntityMap(),o)):null}var c=r.getStartKey(),g=r.getStartOffset(),v=t.getBlockForKey(c);return o=g===v.getLength()?null:v.getEntityAt(g),bm(t.getEntityMap(),o)}function bm(t,r){if(Qk(r)){var o=t.__get(r);return o.getMutability()==="MUTABLE"?r:null}return null}var Gc=Xk,Zk=Lk,$k=cr,Yk=ti,Al=Vt,ef=Zu,Jk=dr,Wk=vm,_m=sm,Gk=mm,eN=Gc,tN=fr,nN=Jk.isBrowser("IE"),rN=20,tf=!1,Yu=!1,Hl=null;function oN(t){Hl||(Hl=new Zk(_m(t)),Hl.start())}var nf={onCompositionStart:function(t){Yu=!0,oN(t)},onCompositionEnd:function(t){tf=!1,Yu=!1,setTimeout(function(){tf||nf.resolveComposition(t)},rN)},onSelect:Wk,onKeyDown:function(t,r){if(!Yu){nf.resolveComposition(t),t._onKeyDown(r);return}(r.which===ef.RIGHT||r.which===ef.LEFT)&&r.preventDefault()},onKeyPress:function(t,r){r.which===ef.RETURN&&r.preventDefault()},resolveComposition:function(t){if(!Yu){var r=tN(Hl).stopAndFlushMutations();Hl=null,tf=!0;var o=Al.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!r.size){t.update(o);return}var i=o.getCurrentContent();r.forEach(function(v,b){var w=Yk.decode(b),L=w.blockKey,R=w.decoratorKey,M=w.leafKey,z=o.getBlockTree(L).getIn([R,"leaves",M]),B=z.start,T=z.end,I=o.getSelection().merge({anchorKey:L,focusKey:L,anchorOffset:B,focusOffset:T,isBackward:!1}),G=eN(i,I),Y=i.getBlockForKey(L).getInlineStyleAt(B);i=$k.replaceText(i,I,v,Y,G),o=Al.set(o,{currentContent:i})});var l=Gk(o,_m(t)),c=l.selectionState;t.restoreEditorDOM();var g=nN?Al.forceSelection(o,c):Al.acceptSelection(o,c);t.update(Al.push(g,i,"insert-characters"))}}},iN=nf,rf,wm;function aN(){if(wm)return rf;wm=1;var t=sa;function r(){return r=t||function(b){for(var w=1;w<arguments.length;w++){var L=arguments[w];for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&(b[R]=L[R])}return b},r.apply(this,arguments)}function o(b,w){b.prototype=Object.create(w.prototype),b.prototype.constructor=b,b.__proto__=w}var i=ti,l=D,c=Vc,g=Tu,v=function(b){o(w,b);function w(){return b.apply(this,arguments)||this}var L=w.prototype;return L.render=function(){var R=this.props,M=R.block,z=R.children,B=R.contentState,T=R.decorator,I=R.decoratorKey,G=R.direction,Y=R.leafSet,W=R.text,J=M.getKey(),le=Y.get("leaves"),Se=T.getComponentForKey(I),_e=T.getPropsForKey(I),je=i.encode(J,parseInt(I,10),0),ve=W.slice(le.first().get("start"),le.last().get("end")),xe=g.getHTMLDirIfDifferent(c.getDirection(ve),G);return l.createElement(Se,r({},_e,{contentState:B,decoratedText:ve,dir:xe,key:je,entityKey:M.getEntityAt(Y.get("start")),offsetKey:je}),z)},w}(l.Component);return rf=v,rf}function Sm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lN(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function xm(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var Ua=D,uN=dr,sN=wt,cN=ca,of=uN.isBrowser("IE <= 11");function fN(t){return of?t.textContent===`
|
|
14
|
+
`:t.tagName==="BR"}var dN=function(t){return of?Ua.createElement("span",{key:"A","data-text":"true",ref:t},`
|
|
15
|
+
`):Ua.createElement("br",{key:"A","data-text":"true",ref:t})},pN=function(t){return of?Ua.createElement("span",{key:"B","data-text":"true",ref:t},`
|
|
16
|
+
`):Ua.createElement("br",{key:"B","data-text":"true",ref:t})},hN=function(t){lN(r,t);function r(i){var l;return l=t.call(this,i)||this,xm(Sm(l),"_forceFlag",void 0),xm(Sm(l),"_node",void 0),l._forceFlag=!1,l}var o=r.prototype;return o.shouldComponentUpdate=function(i){var l=this._node,c=i.children==="";cN(l)||sN(!1);var g=l;return c?!fN(g):g.textContent!==i.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var i=this;return this.props.children===""?this._forceFlag?dN(function(l){return i._node=l}):pN(function(l){return i._node=l}):Ua.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(l){return i._node=l}},this.props.children)},r}(Ua.Component),mN=hN,gN=ca;function vN(t){return!t||!t.ownerDocument?!1:gN(t)&&t.nodeName==="BR"}var Em=vN;function yN(t){var r=t?t.ownerDocument||t:document,o=r.defaultView||window;return!!(t&&(typeof o.Node=="function"?t instanceof o.Node:typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string"))}var bN=yN,_N=bN;function wN(t){return _N(t)&&t.nodeType==3}var SN=wN,km=SN;function Nm(t,r){return!t||!r?!1:t===r?!0:km(t)?!1:km(r)?Nm(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1}var af=Nm;function xN(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Om=xN,lf=lm,EN=dr,Lm=af,kN=Om,uf=qu,NN=wt,Cm=ca,ON=EN.isBrowser("IE");function LN(t,r){if(!t)return"[empty]";var o=Mm(t,r);if(o.nodeType===Node.TEXT_NODE)return o.textContent;Cm(o)||NN(!1);var i=o;return i.outerHTML}function Mm(t,r){var o=r!==void 0?r(t):[];if(t.nodeType===Node.TEXT_NODE){var i=t.textContent.length;return uf(t).createTextNode("[text "+i+(o.length?" | "+o.join(", "):"")+"]")}var l=t.cloneNode();l.nodeType===1&&o.length&&l.setAttribute("data-labels",o.join(", "));for(var c=t.childNodes,g=0;g<c.length;g++)l.appendChild(Mm(c[g],r));return l}function sf(t,r){for(var o=t,i=o;o;){if(Cm(o)&&i.hasAttribute("contenteditable"))return LN(o,r);o=o.parentNode,i=o}return"Could not find contentEditable parent of node"}function Fm(t){return t.nodeValue===null?t.childNodes.length:t.nodeValue.length}function CN(t,r,o,i,l){var c=uf(r);if(Lm(c.documentElement,r)){var g=c.defaultView.getSelection(),v=t.getAnchorKey(),b=t.getAnchorOffset(),w=t.getFocusKey(),L=t.getFocusOffset(),R=t.getIsBackward();if(!g.extend&&R){var M=v,z=b;v=w,b=L,w=M,L=z,R=!1}var B=v===o&&i<=b&&l>=b,T=w===o&&i<=L&&l>=L;if(B&&T){g.removeAllRanges(),Wu(g,r,b-i,t),Ju(g,r,L-i,t);return}if(!R)B&&(g.removeAllRanges(),Wu(g,r,b-i,t)),T&&Ju(g,r,L-i,t);else if(T&&(g.removeAllRanges(),Wu(g,r,L-i,t)),B){var I=g.focusNode,G=g.focusOffset;g.removeAllRanges(),Wu(g,r,b-i,t),Ju(g,I,G,t)}}}function Ju(t,r,o,i){var l=kN(),c=t.extend;if(c&&r!=null&&Lm(l,r)){o>Fm(r)&&lf.logSelectionStateFailure({anonymizedDom:sf(r),extraParams:JSON.stringify({offset:o}),selectionState:JSON.stringify(i.toJS())});var g=r===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(r,o)}catch(b){throw lf.logSelectionStateFailure({anonymizedDom:sf(r,function(w){var L=[];return w===l&&L.push("active element"),w===t.anchorNode&&L.push("selection anchor node"),w===t.focusNode&&L.push("selection focus node"),L}),extraParams:JSON.stringify({activeElementName:l?l.nodeName:null,nodeIsFocus:r===t.focusNode,nodeWasFocus:g,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:b?""+b:null,offset:o},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),b}}else if(r&&t.rangeCount>0){var v=t.getRangeAt(0);v.setEnd(r,o),t.addRange(v.cloneRange())}}function Wu(t,r,o,i){var l=uf(r).createRange();if(o>Fm(r)&&lf.logSelectionStateFailure({anonymizedDom:sf(r),extraParams:JSON.stringify({offset:o}),selectionState:JSON.stringify(i.toJS())}),l.setStart(r,o),ON)try{t.addRange(l)}catch{}else t.addRange(l)}var MN={setDraftEditorSelection:CN,addFocusToSelection:Ju},Dm=sa;function FN(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DN(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function PN(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var BN=mN,cf=D,Gu=wt,RN=Em,TN=MN.setDraftEditorSelection,jN=function(t){DN(r,t);function r(){for(var i,l=arguments.length,c=new Array(l),g=0;g<l;g++)c[g]=arguments[g];return i=t.call.apply(t,[this].concat(c))||this,PN(FN(i),"leaf",void 0),i}var o=r.prototype;return o._setSelection=function(){var i=this.props.selection;if(!(i==null||!i.getHasFocus())){var l=this.props,c=l.block,g=l.start,v=l.text,b=c.getKey(),w=g+v.length;if(i.hasEdgeWithin(b,g,w)){var L=this.leaf;L||Gu(!1);var R=L.firstChild;R||Gu(!1);var M;R.nodeType===Node.TEXT_NODE?M=R:RN(R)?M=L:(M=R.firstChild,M||Gu(!1)),TN(i,M,b,g,w)}}},o.shouldComponentUpdate=function(i){var l=this.leaf;l||Gu(!1);var c=l.textContent!==i.text||i.styleSet!==this.props.styleSet||i.forceSelection;return c},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var i=this,l=this.props.block,c=this.props.text;c.endsWith(`
|
|
17
17
|
`)&&this.props.isLast&&(c+=`
|
|
18
|
-
`);var g=this.props,y=g.customStyleMap,b=g.customStyleFn,w=g.offsetKey,D=g.styleSet,K=D.reduce(function(T,F){var R={},j=y[F];return j!==void 0&&T.textDecoration!==j.textDecoration&&(R.textDecoration=[T.textDecoration,j.textDecoration].join(" ").trim()),pm(T,j,R)},{});if(b){var L=b(D,u);K=pm(K,L)}return $c.createElement("span",{"data-offset-key":w,ref:function(T){return a.leaf=T},style:K},$c.createElement(Pk,null,c))},r}($c.Component),hm=Ik,Yc,mm;function jk(){if(mm)return Yc;mm=1;function t(b,w){b.prototype=Object.create(w.prototype),b.prototype.constructor=b,b.__proto__=w}var r=ak(),i=hm,a=Gi,u=mt,c=P,g=aa;u.List;var y=function(b){t(w,b);function w(){return b.apply(this,arguments)||this}var D=w.prototype;return D.render=function(){var K=this.props,L=K.block,T=K.contentState,F=K.customStyleFn,R=K.customStyleMap,j=K.decorator,G=K.direction,Y=K.forceSelection,W=K.hasSelection,J=K.selection,le=K.tree,Se=L.getKey(),_e=L.getText(),Ie=le.size-1,ve=this.props.children||le.map(function(xe,we){var he=xe.get("decoratorKey"),ge=xe.get("leaves"),De=ge.size-1,je=ge.map(function(Ce,He){var ue=a.encode(Se,we,He),fe=Ce.get("start"),ae=Ce.get("end");return c.createElement(i,{key:ue,offsetKey:ue,block:L,start:fe,selection:W?J:null,forceSelection:Y,text:_e.slice(fe,ae),styleSet:L.getInlineStyleAt(fe),customStyleMap:R,customStyleFn:F,isLast:he===Ie&&He===De})}).toArray();return!he||!j?je:c.createElement(r,{block:L,children:je,contentState:T,decorator:j,decoratorKey:he,direction:G,leafSet:xe,text:_e,key:we})}).toArray();return c.createElement("div",{"data-offset-key":a.encode(Se,0,0),className:g({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":G==="LTR","public/DraftStyleDefault/rtl":G==="RTL"})},ve)},w}(c.Component);return Yc=y,Yc}function Xu(t,r){return!!r&&(t===r.documentElement||t===r.body)}var Tk={getTop:function(t){var r=t.ownerDocument;return Xu(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var i=t.ownerDocument;Xu(t,i)?i.body.scrollTop=i.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return Xu(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var i=t.ownerDocument;Xu(t,i)?i.body.scrollLeft=i.documentElement.scrollLeft=r:t.scrollLeft=r}},Jc=Tk,zk=/-(.)/g;function Hk(t){return t.replace(zk,function(r,i){return i.toUpperCase()})}var Ak=Hk,qk=/([A-Z])/g;function Uk(t){return t.replace(qk,"-$1").toLowerCase()}var Vk=Uk,gm=Ak,vm=Vk;function Zu(t){return t==null?t:String(t)}function Qk(t,r){var i;if(window.getComputedStyle&&(i=window.getComputedStyle(t,null),i))return Zu(i.getPropertyValue(vm(r)));if(document.defaultView&&document.defaultView.getComputedStyle){if(i=document.defaultView.getComputedStyle(t,null),i)return Zu(i.getPropertyValue(vm(r)));if(r==="display")return"none"}return t.currentStyle?Zu(r==="float"?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[gm(r)]):Zu(t.style&&t.style[gm(r)])}var Xk=Qk,Zk=Xk;function Wc(t,r){var i=ym.get(t,r);return i==="auto"||i==="scroll"}var ym={get:Zk,getScrollParent:function(t){if(!t)return null;for(var r=t.ownerDocument;t&&t!==r.body;){if(Wc(t,"overflow")||Wc(t,"overflowY")||Wc(t,"overflowX"))return t;t=t.parentNode}return r.defaultView||r.parentWindow}},$u=ym,$k=Vc;function Yk(t){var r=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!$k(r,t))return{left:0,right:0,top:0,bottom:0};var i=t.getBoundingClientRect();return{left:Math.round(i.left)-r.clientLeft,right:Math.round(i.right)-r.clientLeft,top:Math.round(i.top)-r.clientTop,bottom:Math.round(i.bottom)-r.clientTop}}var Jk=Yk,Wk=Jk;function Gk(t){var r=Wk(t);return{x:r.left,y:r.top,width:r.right-r.left,height:r.bottom-r.top}}var bm=Gk,eN=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function tN(t){return t=t||document,t.scrollingElement?t.scrollingElement:!eN&&t.compatMode==="CSS1Compat"?t.documentElement:t.body}var nN=tN;function rN(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}var iN=rN,oN=nN,aN=iN;function lN(t){var r=oN(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=r);var i=aN(t),a=t===r?t.ownerDocument.documentElement:t,u=t.scrollWidth-a.clientWidth,c=t.scrollHeight-a.clientHeight;return i.x=Math.max(0,Math.min(i.x,u)),i.y=Math.max(0,Math.min(i.y,c)),i}var Yu=lN;function _m(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function wm(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function Sm(){return{width:window.innerWidth||_m(),height:window.innerHeight||wm()}}Sm.withoutScrollbars=function(){return{width:_m(),height:wm()}};var xm=Sm,Gc,Em;function uN(){if(Em)return Gc;Em=1;var t=la;function r(){return r=t||function(ve){for(var xe=1;xe<arguments.length;xe++){var we=arguments[xe];for(var he in we)Object.prototype.hasOwnProperty.call(we,he)&&(ve[he]=we[he])}return ve},r.apply(this,arguments)}function i(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}function a(ve,xe){ve.prototype=Object.create(xe.prototype),ve.prototype.constructor=ve,ve.__proto__=xe}function u(ve){for(var xe=1;xe<arguments.length;xe++){var we=arguments[xe]!=null?arguments[xe]:{},he=Object.keys(we);typeof Object.getOwnPropertySymbols=="function"&&(he=he.concat(Object.getOwnPropertySymbols(we).filter(function(ge){return Object.getOwnPropertyDescriptor(we,ge).enumerable}))),he.forEach(function(ge){c(ve,ge,we[ge])})}return ve}function c(ve,xe,we){return xe in ve?Object.defineProperty(ve,xe,{value:we,enumerable:!0,configurable:!0,writable:!0}):ve[xe]=we,ve}var g=jk(),y=Gi,b=P,w=Jc,D=$u,K=bm,L=Yu,T=xm,F=mt,R=wt,j=Kl,G=10;F.List;var Y=function(ve,xe){return ve.getAnchorKey()===xe||ve.getFocusKey()===xe},W=function(ve,xe){var we=ve.getNextSiblingKey();return we?xe.getBlockForKey(we).getType()===ve.getType():!1},J=function(ve,xe,we){var he=[],ge=!0,De=!1,je=void 0;try{for(var Ce=we.reverse()[Symbol.iterator](),He;!(ge=(He=Ce.next()).done);ge=!0){var ue=He.value;if(ue.type!==xe)break;he.push(ue)}}catch(Me){De=!0,je=Me}finally{try{!ge&&Ce.return!=null&&Ce.return()}finally{if(De)throw je}}we.splice(we.indexOf(he[0]),he.length+1);var fe=he.reverse(),ae=fe[0].key;return we.push(b.cloneElement(ve,{key:"".concat(ae,"-wrap"),"data-offset-key":y.encode(ae,0,0)},fe)),we},le=function(ve,xe){var we=xe.get(ve.getType())||xe.get("unstyled"),he=we.wrapper,ge=we.element||xe.get("unstyled").element;return{Element:ge,wrapperTemplate:he}},Se=function(ve,xe){var we=xe(ve);if(!we)return{};var he=we.component,ge=we.props,De=we.editable;return{CustomComponent:he,customProps:ge,customEditable:De}},_e=function(ve,xe,we,he,ge,De){var je={"data-block":!0,"data-editor":xe,"data-offset-key":we,key:ve.getKey(),ref:De},Ce=he(ve);return Ce&&(je.className=Ce),ge.customEditable!==void 0&&(je=u({},je,{contentEditable:ge.customEditable,suppressContentEditableWarning:!0})),je},Ie=function(ve){a(xe,ve);function xe(){for(var he,ge=arguments.length,De=new Array(ge),je=0;je<ge;je++)De[je]=arguments[je];return he=ve.call.apply(ve,[this].concat(De))||this,c(i(he),"wrapperRef",b.createRef()),he}var we=xe.prototype;return we.shouldComponentUpdate=function(he){var ge=this.props,De=ge.block,je=ge.direction,Ce=ge.tree,He=!De.getChildKeys().isEmpty(),ue=De!==he.block||Ce!==he.tree||je!==he.direction||Y(he.selection,he.block.getKey())&&he.forceSelection;return He||ue},we.componentDidMount=function(){var he=this.props.selection,ge=he.getEndKey();if(!(!he.getHasFocus()||ge!==this.props.block.getKey())){var De=this.wrapperRef.current;if(De){var je=D.getScrollParent(De),Ce=L(je),He;if(je===window){var ue=K(De),fe=ue.y+ue.height,ae=T().height;He=fe-ae,He>0&&window.scrollTo(Ce.x,Ce.y+He+G)}else{j(De)||R(!1);var Me=De,Je=Me.offsetHeight+Me.offsetTop,Et=je.offsetHeight+Ce.y;He=Je-Et,He>0&&w.setTop(je,w.getTop(je)+He+G)}}}},we.render=function(){var he=this,ge=this.props,De=ge.block,je=ge.blockRenderMap,Ce=ge.blockRendererFn,He=ge.blockStyleFn,ue=ge.contentState,fe=ge.decorator,ae=ge.editorKey,Me=ge.editorState,Je=ge.customStyleFn,Et=ge.customStyleMap,Ct=ge.direction,qe=ge.forceSelection,Te=ge.selection,dt=ge.tree,Rt=null;De.children.size&&(Rt=De.children.reduce(function(hn,Bt){var Nt=y.encode(Bt,0,0),rt=ue.getBlockForKey(Bt),pt=Se(rt,Ce),Kt=pt.CustomComponent||xe,Fe=le(rt,je),nt=Fe.Element,Ye=Fe.wrapperTemplate,ht=_e(rt,ae,Nt,He,pt,null),Ge=u({},he.props,{tree:Me.getBlockTree(Bt),blockProps:pt.customProps,offsetKey:Nt,block:rt});return hn.push(b.createElement(nt,ht,b.createElement(Kt,Ge))),!Ye||W(rt,ue)||J(Ye,nt,hn),hn},[]));var It=De.getKey(),Ft=y.encode(It,0,0),kt=Se(De,Ce),en=kt.CustomComponent,Xe=en!=null?b.createElement(en,r({},this.props,{tree:Me.getBlockTree(It),blockProps:kt.customProps,offsetKey:Ft,block:De})):b.createElement(g,{block:De,children:Rt,contentState:ue,customStyleFn:Je,customStyleMap:Et,decorator:fe,direction:Ct,forceSelection:qe,hasSelection:Y(Te,It),selection:Te,tree:dt});if(De.getParentKey())return Xe;var st=le(De,je),ut=st.Element,Pt=_e(De,ae,Ft,He,kt,this.wrapperRef);return b.createElement(ut,Pt,Xe)},xe}(b.Component);return Gc=Ie,Gc}var ef,km;function sN(){if(km)return ef;km=1;var t=la;function r(){return r=t||function(b){for(var w=1;w<arguments.length;w++){var D=arguments[w];for(var K in D)Object.prototype.hasOwnProperty.call(D,K)&&(b[K]=D[K])}return b},r.apply(this,arguments)}function i(b,w){b.prototype=Object.create(w.prototype),b.prototype.constructor=b,b.__proto__=w}var a=uN(),u=Gi,c=P,g=cr,y=function(b){i(w,b);function w(){return b.apply(this,arguments)||this}var D=w.prototype;return D.shouldComponentUpdate=function(K){var L=this.props.editorState,T=K.editorState,F=L.getDirectionMap(),R=T.getDirectionMap();if(F!==R)return!0;var j=L.getSelection().getHasFocus(),G=T.getSelection().getHasFocus();if(j!==G)return!0;var Y=T.getNativelyRenderedContent(),W=L.isInCompositionMode(),J=T.isInCompositionMode();if(L===T||Y!==null&&T.getCurrentContent()===Y||W&&J)return!1;var le=L.getCurrentContent(),Se=T.getCurrentContent(),_e=L.getDecorator(),Ie=T.getDecorator();return W!==J||le!==Se||_e!==Ie||T.mustForceSelection()},D.render=function(){for(var K=this.props,L=K.blockRenderMap,T=K.blockRendererFn,F=K.blockStyleFn,R=K.customStyleMap,j=K.customStyleFn,G=K.editorState,Y=K.editorKey,W=K.textDirectionality,J=G.getCurrentContent(),le=G.getSelection(),Se=G.mustForceSelection(),_e=G.getDecorator(),Ie=g(G.getDirectionMap()),ve=J.getBlocksAsArray(),xe=ve[0],we=[],he=xe;he;){var ge=he.getKey(),De={blockRenderMap:L,blockRendererFn:T,blockStyleFn:F,contentState:J,customStyleFn:j,customStyleMap:R,decorator:_e,editorKey:Y,editorState:G,forceSelection:Se,selection:le,block:he,direction:W||Ie.get(ge),tree:G.getBlockTree(ge)},je=L.get(he.getType())||L.get("unstyled"),Ce=je.wrapper;we.push({block:c.createElement(a,r({key:ge},De)),wrapperTemplate:Ce,key:ge,offsetKey:u.encode(ge,0,0)});var He=he.getNextSiblingKey();he=He?J.getBlockForKey(He):null}for(var ue=[],fe=0;fe<we.length;){var ae=we[fe];if(ae.wrapperTemplate){var Me=[];do Me.push(we[fe].block),fe++;while(fe<we.length&&we[fe].wrapperTemplate===ae.wrapperTemplate);var Je=c.cloneElement(ae.wrapperTemplate,{key:ae.key+"-wrap","data-offset-key":ae.offsetKey},Me);ue.push(Je)}else ue.push(ae.block),fe++}return c.createElement("div",{"data-contents":"true"},ue)},w}(c.Component);return ef=y,ef}var cN=la;function tf(){return tf=cN||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},tf.apply(this,arguments)}function fN(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dN(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function pN(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var hN=hm,Nm=Gi,Ju=P,Om=Jc,mN=$u,gN=Mc,vN=Mu,yN=aa,bN=bm,_N=Yu,wN=xm,SN=wt,xN=Kl,EN=cr,Dm=10,Mm=function(t,r){return t.getAnchorKey()===r||t.getFocusKey()===r},kN=function(t){dN(r,t);function r(){for(var a,u=arguments.length,c=new Array(u),g=0;g<u;g++)c[g]=arguments[g];return a=t.call.apply(t,[this].concat(c))||this,pN(fN(a),"_node",void 0),a}var i=r.prototype;return i.shouldComponentUpdate=function(a){return this.props.block!==a.block||this.props.tree!==a.tree||this.props.direction!==a.direction||Mm(a.selection,a.block.getKey())&&a.forceSelection},i.componentDidMount=function(){if(!this.props.preventScroll){var a=this.props.selection,u=a.getEndKey();if(!(!a.getHasFocus()||u!==this.props.block.getKey())){var c=this._node;if(c!=null){var g=mN.getScrollParent(c),y=_N(g),b;if(g===window){var w=bN(c),D=w.y+w.height,K=wN().height;b=D-K,b>0&&window.scrollTo(y.x,y.y+b+Dm)}else{xN(c)||SN(!1);var L=c.offsetHeight+c.offsetTop,T=g.offsetTop+g.offsetHeight,F=T+y.y;b=L-F,b>0&&Om.setTop(g,Om.getTop(g)+b+Dm)}}}}},i._renderChildren=function(){var a=this,u=this.props.block,c=u.getKey(),g=u.getText(),y=this.props.tree.size-1,b=Mm(this.props.selection,c);return this.props.tree.map(function(w,D){var K=w.get("leaves");if(K.size===0)return null;var L=K.size-1,T=K.map(function(ve,xe){var we=Nm.encode(c,D,xe),he=ve.get("start"),ge=ve.get("end");return Ju.createElement(hN,{key:we,offsetKey:we,block:u,start:he,selection:b?a.props.selection:null,forceSelection:a.props.forceSelection,text:g.slice(he,ge),styleSet:u.getInlineStyleAt(he),customStyleMap:a.props.customStyleMap,customStyleFn:a.props.customStyleFn,isLast:D===y&&xe===L})}).toArray(),F=w.get("decoratorKey");if(F==null||!a.props.decorator)return T;var R=EN(a.props.decorator),j=R.getComponentForKey(F);if(!j)return T;var G=R.getPropsForKey(F),Y=Nm.encode(c,D,0),W=K.first().get("start"),J=K.last().get("end"),le=g.slice(W,J),Se=u.getEntityAt(w.get("start")),_e=vN.getHTMLDirIfDifferent(gN.getDirection(le),a.props.direction),Ie={contentState:a.props.contentState,decoratedText:le,dir:_e,start:W,end:J,blockKey:c,entityKey:Se,offsetKey:Y};return Ju.createElement(j,tf({},G,Ie,{key:Y}),T)}).toArray()},i.render=function(){var a=this,u=this.props,c=u.direction,g=u.offsetKey,y=yN({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":c==="LTR","public/DraftStyleDefault/rtl":c==="RTL"});return Ju.createElement("div",{"data-offset-key":g,className:y,ref:function(b){return a._node=b}},this._renderChildren())},r}(Ju.Component),Lm=kN,nf,Cm;function NN(){if(Cm)return nf;Cm=1;function t(r){var i=r||"",a=arguments.length;if(a>1)for(var u=1;u<a;u++){var c=arguments[u];c&&(i=(i?i+" ":"")+c)}return i}return nf=t,nf}var rf,Bm;function ON(){if(Bm)return rf;Bm=1;var t=la;function r(){return r=t||function(T){for(var F=1;F<arguments.length;F++){var R=arguments[F];for(var j in R)Object.prototype.hasOwnProperty.call(R,j)&&(T[j]=R[j])}return T},r.apply(this,arguments)}function i(T){for(var F=1;F<arguments.length;F++){var R=arguments[F]!=null?arguments[F]:{},j=Object.keys(R);typeof Object.getOwnPropertySymbols=="function"&&(j=j.concat(Object.getOwnPropertySymbols(R).filter(function(G){return Object.getOwnPropertyDescriptor(R,G).enumerable}))),j.forEach(function(G){a(T,G,R[G])})}return T}function a(T,F,R){return F in T?Object.defineProperty(T,F,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[F]=R,T}function u(T,F){T.prototype=Object.create(F.prototype),T.prototype.constructor=T,T.__proto__=F}var c=Lm,g=Gi,y=P,b=aa,w=NN(),D=cr,K=function(T,F,R,j){return b({"public/DraftStyleDefault/unorderedListItem":T==="unordered-list-item","public/DraftStyleDefault/orderedListItem":T==="ordered-list-item","public/DraftStyleDefault/reset":R,"public/DraftStyleDefault/depth0":F===0,"public/DraftStyleDefault/depth1":F===1,"public/DraftStyleDefault/depth2":F===2,"public/DraftStyleDefault/depth3":F===3,"public/DraftStyleDefault/depth4":F>=4,"public/DraftStyleDefault/listLTR":j==="LTR","public/DraftStyleDefault/listRTL":j==="RTL"})},L=function(T){u(F,T);function F(){return T.apply(this,arguments)||this}var R=F.prototype;return R.shouldComponentUpdate=function(j){var G=this.props.editorState,Y=j.editorState,W=G.getDirectionMap(),J=Y.getDirectionMap();if(W!==J)return!0;var le=G.getSelection().getHasFocus(),Se=Y.getSelection().getHasFocus();if(le!==Se)return!0;var _e=Y.getNativelyRenderedContent(),Ie=G.isInCompositionMode(),ve=Y.isInCompositionMode();if(G===Y||_e!==null&&Y.getCurrentContent()===_e||Ie&&ve)return!1;var xe=G.getCurrentContent(),we=Y.getCurrentContent(),he=G.getDecorator(),ge=Y.getDecorator();return Ie!==ve||xe!==we||he!==ge||Y.mustForceSelection()},R.render=function(){for(var j=this.props,G=j.blockRenderMap,Y=j.blockRendererFn,W=j.blockStyleFn,J=j.customStyleMap,le=j.customStyleFn,Se=j.editorState,_e=j.editorKey,Ie=j.preventScroll,ve=j.textDirectionality,xe=Se.getCurrentContent(),we=Se.getSelection(),he=Se.mustForceSelection(),ge=Se.getDecorator(),De=D(Se.getDirectionMap()),je=xe.getBlocksAsArray(),Ce=[],He=null,ue=null,fe=0;fe<je.length;fe++){var ae=je[fe],Me=ae.getKey(),Je=ae.getType(),Et=Y(ae),Ct=void 0,qe=void 0,Te=void 0;Et&&(Ct=Et.component,qe=Et.props,Te=Et.editable);var dt=ve||De.get(Me),Rt=g.encode(Me,0,0),It={contentState:xe,block:ae,blockProps:qe,blockStyleFn:W,customStyleMap:J,customStyleFn:le,decorator:ge,direction:dt,forceSelection:he,offsetKey:Rt,preventScroll:Ie,selection:we,tree:Se.getBlockTree(Me)},Ft=G.get(Je)||G.get("unstyled"),kt=Ft.wrapper,en=Ft.element||G.get("unstyled").element,Xe=ae.getDepth(),st="";if(W&&(st=W(ae)),en==="li"){var ut=ue!==kt||He===null||Xe>He;st=w(st,K(Je,Xe,ut,dt))}var Pt=Ct||c,hn={className:st,"data-block":!0,"data-editor":_e,"data-offset-key":Rt,key:Me};Te!==void 0&&(hn=i({},hn,{contentEditable:Te,suppressContentEditableWarning:!0}));var Bt=y.createElement(en,hn,y.createElement(Pt,r({},It,{key:Me})));Ce.push({block:Bt,wrapperTemplate:kt,key:Me,offsetKey:Rt}),kt?He=ae.getDepth():He=null,ue=kt}for(var Nt=[],rt=0;rt<Ce.length;){var pt=Ce[rt];if(pt.wrapperTemplate){var Kt=[];do Kt.push(Ce[rt].block),rt++;while(rt<Ce.length&&Ce[rt].wrapperTemplate===pt.wrapperTemplate);var Fe=y.cloneElement(pt.wrapperTemplate,{key:pt.key+"-wrap","data-offset-key":pt.offsetKey},Kt);Nt.push(Fe)}else Nt.push(pt.block),rt++}return y.createElement("div",{"data-contents":"true"},Nt)},F}(y.Component);return rf=L,rf}var DN=Eo,MN=DN("draft_tree_data_support"),LN=MN?sN():ON(),Fm={isImage:function(t){return Pm(t)[0]==="image"},isJpeg:function(t){var r=Pm(t);return Fm.isImage(t)&&(r[1]==="jpeg"||r[1]==="pjpeg")}};function Pm(t){return t.split("/")}var CN=Fm,Wu=wt;function BN(t){var r=t.length;if(!Array.isArray(t)&&(typeof t=="object"||typeof t=="function")||Wu(!1),typeof r!="number"&&Wu(!1),r===0||r-1 in t||Wu(!1),typeof t.callee=="function"&&Wu(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch{}for(var i=Array(r),a=0;a<r;a++)i[a]=t[a];return i}function FN(t){return!!t&&(typeof t=="object"||typeof t=="function")&&"length"in t&&!("setInterval"in t)&&typeof t.nodeType!="number"&&(Array.isArray(t)||"callee"in t||"item"in t)}function PN(t){return FN(t)?Array.isArray(t)?t.slice():BN(t):[t]}var KN=PN;function Gu(t){return function(){return t}}var ca=function(){};ca.thatReturns=Gu,ca.thatReturnsFalse=Gu(!1),ca.thatReturnsTrue=Gu(!0),ca.thatReturnsNull=Gu(null),ca.thatReturnsThis=function(){return this},ca.thatReturnsArgument=function(t){return t};var RN=ca,IN=CN,jN=KN,TN=RN,zN=new RegExp(`\r
|
|
19
|
-
`,"g"),
|
|
20
|
-
`,
|
|
21
|
-
`);return i[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},r.isImage=function(){var i=this.types.some(function(g){return g.indexOf("application/x-moz-file")!=-1});if(i)return!0;for(var a=this.getFiles(),u=0;u<a.length;u++){var c=a[u].type;if(!IN.isImage(c))return!1}return!0},r.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},r.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(qN).filter(TN.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},r.hasFiles=function(){return this.getFiles().length>0},t}(),Km=UN,VN=wt,Rm=/\.textClipping$/,QN={"text/plain":!0,"text/html":!0,"text/rtf":!0},XN=5e3;function ZN(t,r){var i=0,a=[];t.forEach(function(u){$N(u,function(c){i++,c&&a.push(c.slice(0,XN)),i==t.length&&r(a.join("\r"))})})}function $N(t,r){if(!Pa.FileReader||t.type&&!(t.type in QN)){r("");return}if(t.type===""){var i="";Rm.test(t.name)&&(i=t.name.replace(Rm,"")),r(i);return}var a=new FileReader;a.onload=function(){var u=a.result;typeof u!="string"&&VN(!1),r(u)},a.onerror=function(){r("")},a.readAsText(t)}var Im=ZN;function YN(t){return t==="handled"||t===!0}var es=YN,JN=Km,jm=sr,Tm=At,WN=ju,GN=Iu,eO=Im,tO=Qh,nO=Th,zm=es,of=cr;function rO(t,r){var i=null,a=null,u=GN(t.currentTarget);if(typeof u.caretRangeFromPoint=="function"){var c=u.caretRangeFromPoint(t.x,t.y);i=c.startContainer,a=c.startOffset}else if(t.rangeParent)i=t.rangeParent,a=t.rangeOffset;else return null;i=of(i),a=of(a);var g=of(WN(i));return tO(r,g,a,g,a)}var iO={onDragEnd:function(t){t.exitCurrentMode(),Hm(t)},onDrop:function(t,r){var i=new JN(r.nativeEvent.dataTransfer),a=t._latestEditorState,u=rO(r.nativeEvent,a);if(r.preventDefault(),t._dragCount=0,t.exitCurrentMode(),u!=null){var c=i.getFiles();if(c.length>0){if(t.props.handleDroppedFiles&&zm(t.props.handleDroppedFiles(u,c)))return;eO(c,function(y){y&&t.update(Am(a,u,y))});return}var g=t._internalDrag?"internal":"external";t.props.handleDrop&&zm(t.props.handleDrop(u,i,g))||(t._internalDrag?t.update(oO(a,u)):t.update(Am(a,u,i.getText()))),Hm(t)}}};function Hm(t){t._internalDrag=!1;var r=t.editorContainer;if(r){var i=new MouseEvent("mouseup",{view:nO(r),bubbles:!0,cancelable:!0});r.dispatchEvent(i)}}function oO(t,r){var i=jm.moveText(t.getCurrentContent(),t.getSelection(),r);return Tm.push(t,i,"insert-fragment")}function Am(t,r,i){var a=jm.insertText(t.getCurrentContent(),r,i,t.getCurrentInlineStyle());return Tm.push(t,a,"insert-fragment")}var aO=iO;function lO(t){var r=t.getSelection(),i=r.getAnchorKey(),a=t.getBlockTree(i),u=r.getStartOffset(),c=!1;return a.some(function(g){return u===g.get("start")?(c=!0,!0):u<g.get("end")?g.get("leaves").some(function(y){var b=y.get("start");return u===b?(c=!0,!0):!1}):!1}),c}var uO=lO;(function(t,r){if(t.setImmediate)return;var i=1,a={},u=!1,c=t.document,g;function y(Y){typeof Y!="function"&&(Y=new Function(""+Y));for(var W=new Array(arguments.length-1),J=0;J<W.length;J++)W[J]=arguments[J+1];var le={callback:Y,args:W};return a[i]=le,g(i),i++}function b(Y){delete a[Y]}function w(Y){var W=Y.callback,J=Y.args;switch(J.length){case 0:W();break;case 1:W(J[0]);break;case 2:W(J[0],J[1]);break;case 3:W(J[0],J[1],J[2]);break;default:W.apply(r,J);break}}function D(Y){if(u)setTimeout(D,0,Y);else{var W=a[Y];if(W){u=!0;try{w(W)}finally{b(Y),u=!1}}}}function K(){g=function(Y){process.nextTick(function(){D(Y)})}}function L(){if(t.postMessage&&!t.importScripts){var Y=!0,W=t.onmessage;return t.onmessage=function(){Y=!1},t.postMessage("","*"),t.onmessage=W,Y}}function T(){var Y="setImmediate$"+Math.random()+"$",W=function(J){J.source===t&&typeof J.data=="string"&&J.data.indexOf(Y)===0&&D(+J.data.slice(Y.length))};t.addEventListener?t.addEventListener("message",W,!1):t.attachEvent("onmessage",W),g=function(J){t.postMessage(Y+J,"*")}}function F(){var Y=new MessageChannel;Y.port1.onmessage=function(W){var J=W.data;D(J)},g=function(W){Y.port2.postMessage(W)}}function R(){var Y=c.documentElement;g=function(W){var J=c.createElement("script");J.onreadystatechange=function(){D(W),J.onreadystatechange=null,Y.removeChild(J),J=null},Y.appendChild(J)}}function j(){g=function(Y){setTimeout(D,0,Y)}}var G=Object.getPrototypeOf&&Object.getPrototypeOf(t);G=G&&G.setTimeout?G:t,{}.toString.call(t.process)==="[object process]"?K():L()?T():t.MessageChannel?F():c&&"onreadystatechange"in c.createElement("script")?R():j(),G.setImmediate=y,G.clearImmediate=b})(typeof self>"u"?Pa:self);var sO=Pa.setImmediate,cO=sr,af=At,fO=fr,qm=Tc,dO=es,pO=uO,Um=cr,hO=sO,mO="'",gO="/",vO=fO.isBrowser("Firefox");function yO(t){return vO&&(t==mO||t==gO)}function Vm(t,r,i,a,u){var c=cO.replaceText(t.getCurrentContent(),t.getSelection(),r,i,a);return af.push(t,c,"insert-characters",u)}function bO(t,r){t._pendingStateFromBeforeInput!==void 0&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var i=t._latestEditorState,a=r.data;if(a){if(t.props.handleBeforeInput&&dO(t.props.handleBeforeInput(a,i,r.timeStamp))){r.preventDefault();return}var u=i.getSelection(),c=u.getStartOffset(),g=u.getAnchorKey();if(!u.isCollapsed()){r.preventDefault(),t.update(Vm(i,a,i.getCurrentInlineStyle(),qm(i.getCurrentContent(),i.getSelection()),!0));return}var y=Vm(i,a,i.getCurrentInlineStyle(),qm(i.getCurrentContent(),i.getSelection()),!1),b=!1;if(b||(b=pO(t._latestCommittedEditorState)),!b){var w=i.getBlockTree(g),D=y.getBlockTree(g);b=w.size!==D.size||w.zip(D).some(function(K){var L=K[0],T=K[1],F=L.get("start"),R=F+(F>=c?a.length:0),j=L.get("end"),G=j+(j>=c?a.length:0),Y=T.get("start"),W=T.get("end"),J=T.get("decoratorKey");return L.get("decoratorKey")!==J||L.get("leaves").size!==T.get("leaves").size||R!==Y||G!==W||J!=null&&W-Y!==j-F})}if(b||(b=yO(a)),b||(b=Um(y.getDirectionMap()).get(g)!==Um(i.getDirectionMap()).get(g)),b){r.preventDefault(),y=af.set(y,{forceSelection:!0}),t.update(y);return}y=af.set(y,{nativelyRenderedContent:y.getCurrentContent()}),t._pendingStateFromBeforeInput=y,hO(function(){t._pendingStateFromBeforeInput!==void 0&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}var _O=bO,wO=At,Qm=Vc,SO=um;function xO(t,r){var i=r.currentTarget.ownerDocument;if(!t.props.preserveSelectionOnBlur&&SO(i)===i.body){var a=i.defaultView.getSelection(),u=t.editor;a.rangeCount===1&&Qm(u,a.anchorNode)&&Qm(u,a.focusNode)&&a.removeAllRanges()}var c=t._latestEditorState,g=c.getSelection();if(g.getHasFocus()){var y=g.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(r),t.update(wO.acceptSelection(c,y))}}var EO=xO,kO=At;function NO(t,r){t.setMode("composite"),t.update(kO.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(r)}var OO=NO,DO=yu;function MO(t){var r=t.getSelection();return r.isCollapsed()?null:DO(t.getCurrentContent(),r)}var Xm=MO,LO=Xm;function CO(t,r){var i=t._latestEditorState,a=i.getSelection();if(a.isCollapsed()){r.preventDefault();return}t.setClipboard(LO(t._latestEditorState))}var BO=CO;function FO(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var r=t;if(!r.ownerDocument.defaultView)return r instanceof Node;if(r instanceof r.ownerDocument.defaultView.Node)return!0}return!1}var PO=FO,KO=sr,RO=At,IO=$u,jO=Xm,TO=Yu,zO=PO;function HO(t,r){var i=t._latestEditorState,a=i.getSelection(),u=r.target,c;if(a.isCollapsed()){r.preventDefault();return}if(zO(u)){var g=u;c=TO(IO.getScrollParent(g))}var y=jO(i);t.setClipboard(y),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM(c),t.exitCurrentMode(),t.update(AO(i))},0)}function AO(t){var r=KO.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return RO.push(t,r,"remove-range")}var qO=HO;function UO(t,r){t.setMode("drag"),r.preventDefault()}var VO=UO;function QO(t){t._internalDrag=!0,t.setMode("drag")}var XO=QO,Zm=At,ZO=fr;function $O(t,r){var i=t._latestEditorState,a=i.getSelection();if(!a.getHasFocus()){var u=a.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(r),ZO.isBrowser("Chrome < 60.0.3081.0")?t.update(Zm.forceSelection(i,u)):t.update(Zm.acceptSelection(i,u))}}var YO=$O,JO=wt,$m=55296,WO=56319,GO=56320,Ym=57343,eD=/[\uD800-\uDFFF]/;function Jm(t){return $m<=t&&t<=Ym}function tD(t,r){if(0<=r&&r<t.length||JO(!1),r+1===t.length)return!1;var i=t.charCodeAt(r),a=t.charCodeAt(r+1);return $m<=i&&i<=WO&&GO<=a&&a<=Ym}function lf(t){return eD.test(t)}function Aa(t,r){return 1+Jm(t.charCodeAt(r))}function nD(t){if(!lf(t))return t.length;for(var r=0,i=0;i<t.length;i+=Aa(t,i))r++;return r}function Wm(t,r,i){if(r=r||0,i=i===void 0?1/0:i||0,!lf(t))return t.substr(r,i);var a=t.length;if(a<=0||r>a||i<=0)return"";var u=0;if(r>0){for(;r>0&&u<a;r--)u+=Aa(t,u);if(u>=a)return""}else if(r<0){for(u=a;r<0&&0<u;r++)u-=Aa(t,u-1);u<0&&(u=0)}var c=a;if(i<a)for(c=u;i>0&&c<a;i--)c+=Aa(t,c);return t.substring(u,c)}function rD(t,r,i){r=r||0,i=i===void 0?1/0:i||0,r<0&&(r=0),i<0&&(i=0);var a=Math.abs(i-r);return r=r<i?r:i,Wm(t,r,a)}function iD(t){for(var r=[],i=0;i<t.length;i+=Aa(t,i))r.push(t.codePointAt(i));return r}var oD={getCodePoints:iD,getUTF16Length:Aa,hasSurrogateUnit:lf,isCodeUnitInSurrogateRange:Jm,isSurrogatePair:tD,strlen:nD,substring:rD,substr:Wm},fa=oD;function aD(t,r){var i=t.getSelection(),a=t.getCurrentContent(),u=i.getStartKey(),c=i.getStartOffset(),g=u,y=0;if(r>c){var b=a.getKeyBefore(u);if(b==null)g=u;else{g=b;var w=a.getBlockForKey(b);y=w.getText().length}}else y=c-r;return i.merge({focusKey:g,focusOffset:y,isBackward:!0})}var uf=aD,lD=sr,uD=Eo,Gm=uD("draft_tree_data_support");function sD(t,r,i){var a=t.getSelection(),u=t.getCurrentContent(),c=a,g=a.getAnchorKey(),y=a.getFocusKey(),b=u.getBlockForKey(g);if(Gm&&i==="forward"&&g!==y)return u;if(a.isCollapsed()){if(i==="forward"){if(t.isSelectionAtEndOfContent())return u;if(Gm){var w=a.getAnchorOffset()===u.getBlockForKey(g).getLength();if(w){var D=u.getBlockForKey(b.nextSibling);if(!D||D.getLength()===0)return u}}}else if(t.isSelectionAtStartOfContent())return u;if(c=r(t),c===a)return u}return lD.removeRange(u,c,i)}var zl=sD,cD=At,fD=fa,dD=uf,pD=zl;function hD(t){var r=pD(t,function(a){var u=a.getSelection(),c=a.getCurrentContent(),g=u.getAnchorKey(),y=u.getAnchorOffset(),b=c.getBlockForKey(g).getText()[y-1];return dD(a,b?fD.getUTF16Length(b,0):1)},"backward");if(r===t.getCurrentContent())return t;var i=t.getSelection();return cD.push(t,r.set("selectionBefore",i),i.isCollapsed()?"backspace-character":"remove-range")}var eg=hD,mD=sr,gD=Gi,vD=At,yD=fr,bD=Gh,_D=bD.notEmptyKey,wD=ju,SD=eg,xD=cr,ED=yD.isEngine("Gecko"),kD=`
|
|
18
|
+
`);var g=this.props,v=g.customStyleMap,b=g.customStyleFn,w=g.offsetKey,L=g.styleSet,R=L.reduce(function(z,B){var T={},I=v[B];return I!==void 0&&z.textDecoration!==I.textDecoration&&(T.textDecoration=[z.textDecoration,I.textDecoration].join(" ").trim()),Dm(z,I,T)},{});if(b){var M=b(L,l);R=Dm(R,M)}return cf.createElement("span",{"data-offset-key":w,ref:function(z){return i.leaf=z},style:R},cf.createElement(BN,null,c))},r}(cf.Component),Pm=jN,ff,Bm;function IN(){if(Bm)return ff;Bm=1;function t(b,w){b.prototype=Object.create(w.prototype),b.prototype.constructor=b,b.__proto__=w}var r=aN(),o=Pm,i=ti,l=gt,c=D,g=ua;l.List;var v=function(b){t(w,b);function w(){return b.apply(this,arguments)||this}var L=w.prototype;return L.render=function(){var R=this.props,M=R.block,z=R.contentState,B=R.customStyleFn,T=R.customStyleMap,I=R.decorator,G=R.direction,Y=R.forceSelection,W=R.hasSelection,J=R.selection,le=R.tree,Se=M.getKey(),_e=M.getText(),je=le.size-1,ve=this.props.children||le.map(function(xe,we){var he=xe.get("decoratorKey"),ge=xe.get("leaves"),Le=ge.size-1,Ie=ge.map(function(Fe,Ae){var ue=i.encode(Se,we,Ae),fe=Fe.get("start"),ae=Fe.get("end");return c.createElement(o,{key:ue,offsetKey:ue,block:M,start:fe,selection:W?J:null,forceSelection:Y,text:_e.slice(fe,ae),styleSet:M.getInlineStyleAt(fe),customStyleMap:T,customStyleFn:B,isLast:he===je&&Ae===Le})}).toArray();return!he||!I?Ie:c.createElement(r,{block:M,children:Ie,contentState:z,decorator:I,decoratorKey:he,direction:G,leafSet:xe,text:_e,key:we})}).toArray();return c.createElement("div",{"data-offset-key":i.encode(Se,0,0),className:g({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":G==="LTR","public/DraftStyleDefault/rtl":G==="RTL"})},ve)},w}(c.Component);return ff=v,ff}function es(t,r){return!!r&&(t===r.documentElement||t===r.body)}var zN={getTop:function(t){var r=t.ownerDocument;return es(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var o=t.ownerDocument;es(t,o)?o.body.scrollTop=o.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return es(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var o=t.ownerDocument;es(t,o)?o.body.scrollLeft=o.documentElement.scrollLeft=r:t.scrollLeft=r}},df=zN,KN=/-(.)/g;function AN(t){return t.replace(KN,function(r,o){return o.toUpperCase()})}var HN=AN,VN=/([A-Z])/g;function qN(t){return t.replace(VN,"-$1").toLowerCase()}var UN=qN,Rm=HN,Tm=UN;function ts(t){return t==null?t:String(t)}function QN(t,r){var o;if(window.getComputedStyle&&(o=window.getComputedStyle(t,null),o))return ts(o.getPropertyValue(Tm(r)));if(document.defaultView&&document.defaultView.getComputedStyle){if(o=document.defaultView.getComputedStyle(t,null),o)return ts(o.getPropertyValue(Tm(r)));if(r==="display")return"none"}return t.currentStyle?ts(r==="float"?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[Rm(r)]):ts(t.style&&t.style[Rm(r)])}var XN=QN,ZN=XN;function pf(t,r){var o=jm.get(t,r);return o==="auto"||o==="scroll"}var jm={get:ZN,getScrollParent:function(t){if(!t)return null;for(var r=t.ownerDocument;t&&t!==r.body;){if(pf(t,"overflow")||pf(t,"overflowY")||pf(t,"overflowX"))return t;t=t.parentNode}return r.defaultView||r.parentWindow}},ns=jm,$N=af;function YN(t){var r=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!$N(r,t))return{left:0,right:0,top:0,bottom:0};var o=t.getBoundingClientRect();return{left:Math.round(o.left)-r.clientLeft,right:Math.round(o.right)-r.clientLeft,top:Math.round(o.top)-r.clientTop,bottom:Math.round(o.bottom)-r.clientTop}}var JN=YN,WN=JN;function GN(t){var r=WN(t);return{x:r.left,y:r.top,width:r.right-r.left,height:r.bottom-r.top}}var Im=GN,eO=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function tO(t){return t=t||document,t.scrollingElement?t.scrollingElement:!eO&&t.compatMode==="CSS1Compat"?t.documentElement:t.body}var nO=tO;function rO(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}var oO=rO,iO=nO,aO=oO;function lO(t){var r=iO(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=r);var o=aO(t),i=t===r?t.ownerDocument.documentElement:t,l=t.scrollWidth-i.clientWidth,c=t.scrollHeight-i.clientHeight;return o.x=Math.max(0,Math.min(o.x,l)),o.y=Math.max(0,Math.min(o.y,c)),o}var rs=lO;function zm(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function Km(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function Am(){return{width:window.innerWidth||zm(),height:window.innerHeight||Km()}}Am.withoutScrollbars=function(){return{width:zm(),height:Km()}};var Hm=Am,hf,Vm;function uO(){if(Vm)return hf;Vm=1;var t=sa;function r(){return r=t||function(ve){for(var xe=1;xe<arguments.length;xe++){var we=arguments[xe];for(var he in we)Object.prototype.hasOwnProperty.call(we,he)&&(ve[he]=we[he])}return ve},r.apply(this,arguments)}function o(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}function i(ve,xe){ve.prototype=Object.create(xe.prototype),ve.prototype.constructor=ve,ve.__proto__=xe}function l(ve){for(var xe=1;xe<arguments.length;xe++){var we=arguments[xe]!=null?arguments[xe]:{},he=Object.keys(we);typeof Object.getOwnPropertySymbols=="function"&&(he=he.concat(Object.getOwnPropertySymbols(we).filter(function(ge){return Object.getOwnPropertyDescriptor(we,ge).enumerable}))),he.forEach(function(ge){c(ve,ge,we[ge])})}return ve}function c(ve,xe,we){return xe in ve?Object.defineProperty(ve,xe,{value:we,enumerable:!0,configurable:!0,writable:!0}):ve[xe]=we,ve}var g=IN(),v=ti,b=D,w=df,L=ns,R=Im,M=rs,z=Hm,B=gt,T=wt,I=Il,G=10;B.List;var Y=function(ve,xe){return ve.getAnchorKey()===xe||ve.getFocusKey()===xe},W=function(ve,xe){var we=ve.getNextSiblingKey();return we?xe.getBlockForKey(we).getType()===ve.getType():!1},J=function(ve,xe,we){var he=[],ge=!0,Le=!1,Ie=void 0;try{for(var Fe=we.reverse()[Symbol.iterator](),Ae;!(ge=(Ae=Fe.next()).done);ge=!0){var ue=Ae.value;if(ue.type!==xe)break;he.push(ue)}}catch(Ce){Le=!0,Ie=Ce}finally{try{!ge&&Fe.return!=null&&Fe.return()}finally{if(Le)throw Ie}}we.splice(we.indexOf(he[0]),he.length+1);var fe=he.reverse(),ae=fe[0].key;return we.push(b.cloneElement(ve,{key:"".concat(ae,"-wrap"),"data-offset-key":v.encode(ae,0,0)},fe)),we},le=function(ve,xe){var we=xe.get(ve.getType())||xe.get("unstyled"),he=we.wrapper,ge=we.element||xe.get("unstyled").element;return{Element:ge,wrapperTemplate:he}},Se=function(ve,xe){var we=xe(ve);if(!we)return{};var he=we.component,ge=we.props,Le=we.editable;return{CustomComponent:he,customProps:ge,customEditable:Le}},_e=function(ve,xe,we,he,ge,Le){var Ie={"data-block":!0,"data-editor":xe,"data-offset-key":we,key:ve.getKey(),ref:Le},Fe=he(ve);return Fe&&(Ie.className=Fe),ge.customEditable!==void 0&&(Ie=l({},Ie,{contentEditable:ge.customEditable,suppressContentEditableWarning:!0})),Ie},je=function(ve){i(xe,ve);function xe(){for(var he,ge=arguments.length,Le=new Array(ge),Ie=0;Ie<ge;Ie++)Le[Ie]=arguments[Ie];return he=ve.call.apply(ve,[this].concat(Le))||this,c(o(he),"wrapperRef",b.createRef()),he}var we=xe.prototype;return we.shouldComponentUpdate=function(he){var ge=this.props,Le=ge.block,Ie=ge.direction,Fe=ge.tree,Ae=!Le.getChildKeys().isEmpty(),ue=Le!==he.block||Fe!==he.tree||Ie!==he.direction||Y(he.selection,he.block.getKey())&&he.forceSelection;return Ae||ue},we.componentDidMount=function(){var he=this.props.selection,ge=he.getEndKey();if(!(!he.getHasFocus()||ge!==this.props.block.getKey())){var Le=this.wrapperRef.current;if(Le){var Ie=L.getScrollParent(Le),Fe=M(Ie),Ae;if(Ie===window){var ue=R(Le),fe=ue.y+ue.height,ae=z().height;Ae=fe-ae,Ae>0&&window.scrollTo(Fe.x,Fe.y+Ae+G)}else{I(Le)||T(!1);var Ce=Le,Je=Ce.offsetHeight+Ce.offsetTop,Et=Ie.offsetHeight+Fe.y;Ae=Je-Et,Ae>0&&w.setTop(Ie,w.getTop(Ie)+Ae+G)}}}},we.render=function(){var he=this,ge=this.props,Le=ge.block,Ie=ge.blockRenderMap,Fe=ge.blockRendererFn,Ae=ge.blockStyleFn,ue=ge.contentState,fe=ge.decorator,ae=ge.editorKey,Ce=ge.editorState,Je=ge.customStyleFn,Et=ge.customStyleMap,Ft=ge.direction,Ve=ge.forceSelection,ze=ge.selection,dt=ge.tree,Tt=null;Le.children.size&&(Tt=Le.children.reduce(function(mn,Dt){var Nt=v.encode(Dt,0,0),rt=ue.getBlockForKey(Dt),pt=Se(rt,Fe),Rt=pt.CustomComponent||xe,Pe=le(rt,Ie),nt=Pe.Element,Ye=Pe.wrapperTemplate,ht=_e(rt,ae,Nt,Ae,pt,null),Ge=l({},he.props,{tree:Ce.getBlockTree(Dt),blockProps:pt.customProps,offsetKey:Nt,block:rt});return mn.push(b.createElement(nt,ht,b.createElement(Rt,Ge))),!Ye||W(rt,ue)||J(Ye,nt,mn),mn},[]));var jt=Le.getKey(),Pt=v.encode(jt,0,0),kt=Se(Le,Fe),en=kt.CustomComponent,Xe=en!=null?b.createElement(en,r({},this.props,{tree:Ce.getBlockTree(jt),blockProps:kt.customProps,offsetKey:Pt,block:Le})):b.createElement(g,{block:Le,children:Tt,contentState:ue,customStyleFn:Je,customStyleMap:Et,decorator:fe,direction:Ft,forceSelection:Ve,hasSelection:Y(ze,jt),selection:ze,tree:dt});if(Le.getParentKey())return Xe;var st=le(Le,Ie),ut=st.Element,Bt=_e(Le,ae,Pt,Ae,kt,this.wrapperRef);return b.createElement(ut,Bt,Xe)},xe}(b.Component);return hf=je,hf}var mf,qm;function sO(){if(qm)return mf;qm=1;var t=sa;function r(){return r=t||function(b){for(var w=1;w<arguments.length;w++){var L=arguments[w];for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&(b[R]=L[R])}return b},r.apply(this,arguments)}function o(b,w){b.prototype=Object.create(w.prototype),b.prototype.constructor=b,b.__proto__=w}var i=uO(),l=ti,c=D,g=fr,v=function(b){o(w,b);function w(){return b.apply(this,arguments)||this}var L=w.prototype;return L.shouldComponentUpdate=function(R){var M=this.props.editorState,z=R.editorState,B=M.getDirectionMap(),T=z.getDirectionMap();if(B!==T)return!0;var I=M.getSelection().getHasFocus(),G=z.getSelection().getHasFocus();if(I!==G)return!0;var Y=z.getNativelyRenderedContent(),W=M.isInCompositionMode(),J=z.isInCompositionMode();if(M===z||Y!==null&&z.getCurrentContent()===Y||W&&J)return!1;var le=M.getCurrentContent(),Se=z.getCurrentContent(),_e=M.getDecorator(),je=z.getDecorator();return W!==J||le!==Se||_e!==je||z.mustForceSelection()},L.render=function(){for(var R=this.props,M=R.blockRenderMap,z=R.blockRendererFn,B=R.blockStyleFn,T=R.customStyleMap,I=R.customStyleFn,G=R.editorState,Y=R.editorKey,W=R.textDirectionality,J=G.getCurrentContent(),le=G.getSelection(),Se=G.mustForceSelection(),_e=G.getDecorator(),je=g(G.getDirectionMap()),ve=J.getBlocksAsArray(),xe=ve[0],we=[],he=xe;he;){var ge=he.getKey(),Le={blockRenderMap:M,blockRendererFn:z,blockStyleFn:B,contentState:J,customStyleFn:I,customStyleMap:T,decorator:_e,editorKey:Y,editorState:G,forceSelection:Se,selection:le,block:he,direction:W||je.get(ge),tree:G.getBlockTree(ge)},Ie=M.get(he.getType())||M.get("unstyled"),Fe=Ie.wrapper;we.push({block:c.createElement(i,r({key:ge},Le)),wrapperTemplate:Fe,key:ge,offsetKey:l.encode(ge,0,0)});var Ae=he.getNextSiblingKey();he=Ae?J.getBlockForKey(Ae):null}for(var ue=[],fe=0;fe<we.length;){var ae=we[fe];if(ae.wrapperTemplate){var Ce=[];do Ce.push(we[fe].block),fe++;while(fe<we.length&&we[fe].wrapperTemplate===ae.wrapperTemplate);var Je=c.cloneElement(ae.wrapperTemplate,{key:ae.key+"-wrap","data-offset-key":ae.offsetKey},Ce);ue.push(Je)}else ue.push(ae.block),fe++}return c.createElement("div",{"data-contents":"true"},ue)},w}(c.Component);return mf=v,mf}var cO=sa;function gf(){return gf=cO||function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},gf.apply(this,arguments)}function fO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dO(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function pO(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var hO=Pm,Um=ti,os=D,Qm=df,mO=ns,gO=Vc,vO=Tu,yO=ua,bO=Im,_O=rs,wO=Hm,SO=wt,xO=Il,EO=fr,Xm=10,Zm=function(t,r){return t.getAnchorKey()===r||t.getFocusKey()===r},kO=function(t){dO(r,t);function r(){for(var i,l=arguments.length,c=new Array(l),g=0;g<l;g++)c[g]=arguments[g];return i=t.call.apply(t,[this].concat(c))||this,pO(fO(i),"_node",void 0),i}var o=r.prototype;return o.shouldComponentUpdate=function(i){return this.props.block!==i.block||this.props.tree!==i.tree||this.props.direction!==i.direction||Zm(i.selection,i.block.getKey())&&i.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var i=this.props.selection,l=i.getEndKey();if(!(!i.getHasFocus()||l!==this.props.block.getKey())){var c=this._node;if(c!=null){var g=mO.getScrollParent(c),v=_O(g),b;if(g===window){var w=bO(c),L=w.y+w.height,R=wO().height;b=L-R,b>0&&window.scrollTo(v.x,v.y+b+Xm)}else{xO(c)||SO(!1);var M=c.offsetHeight+c.offsetTop,z=g.offsetTop+g.offsetHeight,B=z+v.y;b=M-B,b>0&&Qm.setTop(g,Qm.getTop(g)+b+Xm)}}}}},o._renderChildren=function(){var i=this,l=this.props.block,c=l.getKey(),g=l.getText(),v=this.props.tree.size-1,b=Zm(this.props.selection,c);return this.props.tree.map(function(w,L){var R=w.get("leaves");if(R.size===0)return null;var M=R.size-1,z=R.map(function(ve,xe){var we=Um.encode(c,L,xe),he=ve.get("start"),ge=ve.get("end");return os.createElement(hO,{key:we,offsetKey:we,block:l,start:he,selection:b?i.props.selection:null,forceSelection:i.props.forceSelection,text:g.slice(he,ge),styleSet:l.getInlineStyleAt(he),customStyleMap:i.props.customStyleMap,customStyleFn:i.props.customStyleFn,isLast:L===v&&xe===M})}).toArray(),B=w.get("decoratorKey");if(B==null||!i.props.decorator)return z;var T=EO(i.props.decorator),I=T.getComponentForKey(B);if(!I)return z;var G=T.getPropsForKey(B),Y=Um.encode(c,L,0),W=R.first().get("start"),J=R.last().get("end"),le=g.slice(W,J),Se=l.getEntityAt(w.get("start")),_e=vO.getHTMLDirIfDifferent(gO.getDirection(le),i.props.direction),je={contentState:i.props.contentState,decoratedText:le,dir:_e,start:W,end:J,blockKey:c,entityKey:Se,offsetKey:Y};return os.createElement(I,gf({},G,je,{key:Y}),z)}).toArray()},o.render=function(){var i=this,l=this.props,c=l.direction,g=l.offsetKey,v=yO({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":c==="LTR","public/DraftStyleDefault/rtl":c==="RTL"});return os.createElement("div",{"data-offset-key":g,className:v,ref:function(b){return i._node=b}},this._renderChildren())},r}(os.Component),$m=kO,vf,Ym;function NO(){if(Ym)return vf;Ym=1;function t(r){var o=r||"",i=arguments.length;if(i>1)for(var l=1;l<i;l++){var c=arguments[l];c&&(o=(o?o+" ":"")+c)}return o}return vf=t,vf}var yf,Jm;function OO(){if(Jm)return yf;Jm=1;var t=sa;function r(){return r=t||function(z){for(var B=1;B<arguments.length;B++){var T=arguments[B];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(z[I]=T[I])}return z},r.apply(this,arguments)}function o(z){for(var B=1;B<arguments.length;B++){var T=arguments[B]!=null?arguments[B]:{},I=Object.keys(T);typeof Object.getOwnPropertySymbols=="function"&&(I=I.concat(Object.getOwnPropertySymbols(T).filter(function(G){return Object.getOwnPropertyDescriptor(T,G).enumerable}))),I.forEach(function(G){i(z,G,T[G])})}return z}function i(z,B,T){return B in z?Object.defineProperty(z,B,{value:T,enumerable:!0,configurable:!0,writable:!0}):z[B]=T,z}function l(z,B){z.prototype=Object.create(B.prototype),z.prototype.constructor=z,z.__proto__=B}var c=$m,g=ti,v=D,b=ua,w=NO(),L=fr,R=function(z,B,T,I){return b({"public/DraftStyleDefault/unorderedListItem":z==="unordered-list-item","public/DraftStyleDefault/orderedListItem":z==="ordered-list-item","public/DraftStyleDefault/reset":T,"public/DraftStyleDefault/depth0":B===0,"public/DraftStyleDefault/depth1":B===1,"public/DraftStyleDefault/depth2":B===2,"public/DraftStyleDefault/depth3":B===3,"public/DraftStyleDefault/depth4":B>=4,"public/DraftStyleDefault/listLTR":I==="LTR","public/DraftStyleDefault/listRTL":I==="RTL"})},M=function(z){l(B,z);function B(){return z.apply(this,arguments)||this}var T=B.prototype;return T.shouldComponentUpdate=function(I){var G=this.props.editorState,Y=I.editorState,W=G.getDirectionMap(),J=Y.getDirectionMap();if(W!==J)return!0;var le=G.getSelection().getHasFocus(),Se=Y.getSelection().getHasFocus();if(le!==Se)return!0;var _e=Y.getNativelyRenderedContent(),je=G.isInCompositionMode(),ve=Y.isInCompositionMode();if(G===Y||_e!==null&&Y.getCurrentContent()===_e||je&&ve)return!1;var xe=G.getCurrentContent(),we=Y.getCurrentContent(),he=G.getDecorator(),ge=Y.getDecorator();return je!==ve||xe!==we||he!==ge||Y.mustForceSelection()},T.render=function(){for(var I=this.props,G=I.blockRenderMap,Y=I.blockRendererFn,W=I.blockStyleFn,J=I.customStyleMap,le=I.customStyleFn,Se=I.editorState,_e=I.editorKey,je=I.preventScroll,ve=I.textDirectionality,xe=Se.getCurrentContent(),we=Se.getSelection(),he=Se.mustForceSelection(),ge=Se.getDecorator(),Le=L(Se.getDirectionMap()),Ie=xe.getBlocksAsArray(),Fe=[],Ae=null,ue=null,fe=0;fe<Ie.length;fe++){var ae=Ie[fe],Ce=ae.getKey(),Je=ae.getType(),Et=Y(ae),Ft=void 0,Ve=void 0,ze=void 0;Et&&(Ft=Et.component,Ve=Et.props,ze=Et.editable);var dt=ve||Le.get(Ce),Tt=g.encode(Ce,0,0),jt={contentState:xe,block:ae,blockProps:Ve,blockStyleFn:W,customStyleMap:J,customStyleFn:le,decorator:ge,direction:dt,forceSelection:he,offsetKey:Tt,preventScroll:je,selection:we,tree:Se.getBlockTree(Ce)},Pt=G.get(Je)||G.get("unstyled"),kt=Pt.wrapper,en=Pt.element||G.get("unstyled").element,Xe=ae.getDepth(),st="";if(W&&(st=W(ae)),en==="li"){var ut=ue!==kt||Ae===null||Xe>Ae;st=w(st,R(Je,Xe,ut,dt))}var Bt=Ft||c,mn={className:st,"data-block":!0,"data-editor":_e,"data-offset-key":Tt,key:Ce};ze!==void 0&&(mn=o({},mn,{contentEditable:ze,suppressContentEditableWarning:!0}));var Dt=v.createElement(en,mn,v.createElement(Bt,r({},jt,{key:Ce})));Fe.push({block:Dt,wrapperTemplate:kt,key:Ce,offsetKey:Tt}),kt?Ae=ae.getDepth():Ae=null,ue=kt}for(var Nt=[],rt=0;rt<Fe.length;){var pt=Fe[rt];if(pt.wrapperTemplate){var Rt=[];do Rt.push(Fe[rt].block),rt++;while(rt<Fe.length&&Fe[rt].wrapperTemplate===pt.wrapperTemplate);var Pe=v.cloneElement(pt.wrapperTemplate,{key:pt.key+"-wrap","data-offset-key":pt.offsetKey},Rt);Nt.push(Pe)}else Nt.push(pt.block),rt++}return v.createElement("div",{"data-contents":"true"},Nt)},B}(v.Component);return yf=M,yf}var LO=Li,CO=LO("draft_tree_data_support"),MO=CO?sO():OO(),Wm={isImage:function(t){return Gm(t)[0]==="image"},isJpeg:function(t){var r=Gm(t);return Wm.isImage(t)&&(r[1]==="jpeg"||r[1]==="pjpeg")}};function Gm(t){return t.split("/")}var FO=Wm,is=wt;function DO(t){var r=t.length;if(!Array.isArray(t)&&(typeof t=="object"||typeof t=="function")||is(!1),typeof r!="number"&&is(!1),r===0||r-1 in t||is(!1),typeof t.callee=="function"&&is(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch{}for(var o=Array(r),i=0;i<r;i++)o[i]=t[i];return o}function PO(t){return!!t&&(typeof t=="object"||typeof t=="function")&&"length"in t&&!("setInterval"in t)&&typeof t.nodeType!="number"&&(Array.isArray(t)||"callee"in t||"item"in t)}function BO(t){return PO(t)?Array.isArray(t)?t.slice():DO(t):[t]}var RO=BO;function as(t){return function(){return t}}var da=function(){};da.thatReturns=as,da.thatReturnsFalse=as(!1),da.thatReturnsTrue=as(!0),da.thatReturnsNull=as(null),da.thatReturnsThis=function(){return this},da.thatReturnsArgument=function(t){return t};var TO=da,jO=FO,IO=RO,zO=TO,KO=new RegExp(`\r
|
|
19
|
+
`,"g"),AO=`
|
|
20
|
+
`,HO={"text/rtf":1,"text/html":1};function VO(t){if(t.kind=="file")return t.getAsFile()}var qO=function(){function t(o){this.data=o,this.types=o.types?IO(o.types):[]}var r=t.prototype;return r.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(o){return HO[o]})},r.getText=function(){var o;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(o=this.data.getData("text/plain")):o=this.data.getData("Text")),o?o.replace(KO,AO):null},r.getHTML=function(){if(this.data.getData)if(this.types.length){if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}else return this.data.getData("Text")},r.isLink=function(){return this.types.some(function(o){return o.indexOf("Url")!=-1||o.indexOf("text/uri-list")!=-1||o.indexOf("text/x-moz-url")})},r.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var o=this.data.getData("text/x-moz-url").split(`
|
|
21
|
+
`);return o[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},r.isImage=function(){var o=this.types.some(function(g){return g.indexOf("application/x-moz-file")!=-1});if(o)return!0;for(var i=this.getFiles(),l=0;l<i.length;l++){var c=i[l].type;if(!jO.isImage(c))return!1}return!0},r.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},r.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(VO).filter(zO.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},r.hasFiles=function(){return this.getFiles().length>0},t}(),eg=qO,UO=wt,tg=/\.textClipping$/,QO={"text/plain":!0,"text/html":!0,"text/rtf":!0},XO=5e3;function ZO(t,r){var o=0,i=[];t.forEach(function(l){$O(l,function(c){o++,c&&i.push(c.slice(0,XO)),o==t.length&&r(i.join("\r"))})})}function $O(t,r){if(!Ta.FileReader||t.type&&!(t.type in QO)){r("");return}if(t.type===""){var o="";tg.test(t.name)&&(o=t.name.replace(tg,"")),r(o);return}var i=new FileReader;i.onload=function(){var l=i.result;typeof l!="string"&&UO(!1),r(l)},i.onerror=function(){r("")},i.readAsText(t)}var ng=ZO;function YO(t){return t==="handled"||t===!0}var ls=YO,JO=eg,rg=cr,og=Vt,WO=Uu,GO=qu,e2=ng,t2=fm,n2=om,ig=ls,bf=fr;function r2(t,r){var o=null,i=null,l=GO(t.currentTarget);if(typeof l.caretRangeFromPoint=="function"){var c=l.caretRangeFromPoint(t.x,t.y);o=c.startContainer,i=c.startOffset}else if(t.rangeParent)o=t.rangeParent,i=t.rangeOffset;else return null;o=bf(o),i=bf(i);var g=bf(WO(o));return t2(r,g,i,g,i)}var o2={onDragEnd:function(t){t.exitCurrentMode(),ag(t)},onDrop:function(t,r){var o=new JO(r.nativeEvent.dataTransfer),i=t._latestEditorState,l=r2(r.nativeEvent,i);if(r.preventDefault(),t._dragCount=0,t.exitCurrentMode(),l!=null){var c=o.getFiles();if(c.length>0){if(t.props.handleDroppedFiles&&ig(t.props.handleDroppedFiles(l,c)))return;e2(c,function(v){v&&t.update(lg(i,l,v))});return}var g=t._internalDrag?"internal":"external";t.props.handleDrop&&ig(t.props.handleDrop(l,o,g))||(t._internalDrag?t.update(i2(i,l)):t.update(lg(i,l,o.getText()))),ag(t)}}};function ag(t){t._internalDrag=!1;var r=t.editorContainer;if(r){var o=new MouseEvent("mouseup",{view:n2(r),bubbles:!0,cancelable:!0});r.dispatchEvent(o)}}function i2(t,r){var o=rg.moveText(t.getCurrentContent(),t.getSelection(),r);return og.push(t,o,"insert-fragment")}function lg(t,r,o){var i=rg.insertText(t.getCurrentContent(),r,o,t.getCurrentInlineStyle());return og.push(t,i,"insert-fragment")}var a2=o2;function l2(t){var r=t.getSelection(),o=r.getAnchorKey(),i=t.getBlockTree(o),l=r.getStartOffset(),c=!1;return i.some(function(g){return l===g.get("start")?(c=!0,!0):l<g.get("end")?g.get("leaves").some(function(v){var b=v.get("start");return l===b?(c=!0,!0):!1}):!1}),c}var u2=l2;(function(t,r){if(t.setImmediate)return;var o=1,i={},l=!1,c=t.document,g;function v(Y){typeof Y!="function"&&(Y=new Function(""+Y));for(var W=new Array(arguments.length-1),J=0;J<W.length;J++)W[J]=arguments[J+1];var le={callback:Y,args:W};return i[o]=le,g(o),o++}function b(Y){delete i[Y]}function w(Y){var W=Y.callback,J=Y.args;switch(J.length){case 0:W();break;case 1:W(J[0]);break;case 2:W(J[0],J[1]);break;case 3:W(J[0],J[1],J[2]);break;default:W.apply(r,J);break}}function L(Y){if(l)setTimeout(L,0,Y);else{var W=i[Y];if(W){l=!0;try{w(W)}finally{b(Y),l=!1}}}}function R(){g=function(Y){process.nextTick(function(){L(Y)})}}function M(){if(t.postMessage&&!t.importScripts){var Y=!0,W=t.onmessage;return t.onmessage=function(){Y=!1},t.postMessage("","*"),t.onmessage=W,Y}}function z(){var Y="setImmediate$"+Math.random()+"$",W=function(J){J.source===t&&typeof J.data=="string"&&J.data.indexOf(Y)===0&&L(+J.data.slice(Y.length))};t.addEventListener?t.addEventListener("message",W,!1):t.attachEvent("onmessage",W),g=function(J){t.postMessage(Y+J,"*")}}function B(){var Y=new MessageChannel;Y.port1.onmessage=function(W){var J=W.data;L(J)},g=function(W){Y.port2.postMessage(W)}}function T(){var Y=c.documentElement;g=function(W){var J=c.createElement("script");J.onreadystatechange=function(){L(W),J.onreadystatechange=null,Y.removeChild(J),J=null},Y.appendChild(J)}}function I(){g=function(Y){setTimeout(L,0,Y)}}var G=Object.getPrototypeOf&&Object.getPrototypeOf(t);G=G&&G.setTimeout?G:t,{}.toString.call(t.process)==="[object process]"?R():M()?z():t.MessageChannel?B():c&&"onreadystatechange"in c.createElement("script")?T():I(),G.setImmediate=v,G.clearImmediate=b})(typeof self>"u"?Ta:self);var s2=Ta.setImmediate,c2=cr,_f=Vt,f2=dr,ug=Gc,d2=ls,p2=u2,sg=fr,h2=s2,m2="'",g2="/",v2=f2.isBrowser("Firefox");function y2(t){return v2&&(t==m2||t==g2)}function cg(t,r,o,i,l){var c=c2.replaceText(t.getCurrentContent(),t.getSelection(),r,o,i);return _f.push(t,c,"insert-characters",l)}function b2(t,r){t._pendingStateFromBeforeInput!==void 0&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var o=t._latestEditorState,i=r.data;if(i){if(t.props.handleBeforeInput&&d2(t.props.handleBeforeInput(i,o,r.timeStamp))){r.preventDefault();return}var l=o.getSelection(),c=l.getStartOffset(),g=l.getAnchorKey();if(!l.isCollapsed()){r.preventDefault(),t.update(cg(o,i,o.getCurrentInlineStyle(),ug(o.getCurrentContent(),o.getSelection()),!0));return}var v=cg(o,i,o.getCurrentInlineStyle(),ug(o.getCurrentContent(),o.getSelection()),!1),b=!1;if(b||(b=p2(t._latestCommittedEditorState)),!b){var w=o.getBlockTree(g),L=v.getBlockTree(g);b=w.size!==L.size||w.zip(L).some(function(R){var M=R[0],z=R[1],B=M.get("start"),T=B+(B>=c?i.length:0),I=M.get("end"),G=I+(I>=c?i.length:0),Y=z.get("start"),W=z.get("end"),J=z.get("decoratorKey");return M.get("decoratorKey")!==J||M.get("leaves").size!==z.get("leaves").size||T!==Y||G!==W||J!=null&&W-Y!==I-B})}if(b||(b=y2(i)),b||(b=sg(v.getDirectionMap()).get(g)!==sg(o.getDirectionMap()).get(g)),b){r.preventDefault(),v=_f.set(v,{forceSelection:!0}),t.update(v);return}v=_f.set(v,{nativelyRenderedContent:v.getCurrentContent()}),t._pendingStateFromBeforeInput=v,h2(function(){t._pendingStateFromBeforeInput!==void 0&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}var _2=b2,w2=Vt,fg=af,S2=Om;function x2(t,r){var o=r.currentTarget.ownerDocument;if(!t.props.preserveSelectionOnBlur&&S2(o)===o.body){var i=o.defaultView.getSelection(),l=t.editor;i.rangeCount===1&&fg(l,i.anchorNode)&&fg(l,i.focusNode)&&i.removeAllRanges()}var c=t._latestEditorState,g=c.getSelection();if(g.getHasFocus()){var v=g.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(r),t.update(w2.acceptSelection(c,v))}}var E2=x2,k2=Vt;function N2(t,r){t.setMode("composite"),t.update(k2.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(r)}var O2=N2,L2=ku;function C2(t){var r=t.getSelection();return r.isCollapsed()?null:L2(t.getCurrentContent(),r)}var dg=C2,M2=dg;function F2(t,r){var o=t._latestEditorState,i=o.getSelection();if(i.isCollapsed()){r.preventDefault();return}t.setClipboard(M2(t._latestEditorState))}var D2=F2;function P2(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var r=t;if(!r.ownerDocument.defaultView)return r instanceof Node;if(r instanceof r.ownerDocument.defaultView.Node)return!0}return!1}var B2=P2,R2=cr,T2=Vt,j2=ns,I2=dg,z2=rs,K2=B2;function A2(t,r){var o=t._latestEditorState,i=o.getSelection(),l=r.target,c;if(i.isCollapsed()){r.preventDefault();return}if(K2(l)){var g=l;c=z2(j2.getScrollParent(g))}var v=I2(o);t.setClipboard(v),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM(c),t.exitCurrentMode(),t.update(H2(o))},0)}function H2(t){var r=R2.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return T2.push(t,r,"remove-range")}var V2=A2;function q2(t,r){t.setMode("drag"),r.preventDefault()}var U2=q2;function Q2(t){t._internalDrag=!0,t.setMode("drag")}var X2=Q2,pg=Vt,Z2=dr;function $2(t,r){var o=t._latestEditorState,i=o.getSelection();if(!i.getHasFocus()){var l=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(r),Z2.isBrowser("Chrome < 60.0.3081.0")?t.update(pg.forceSelection(o,l)):t.update(pg.acceptSelection(o,l))}}var Y2=$2,J2=wt,hg=55296,W2=56319,G2=56320,mg=57343,eL=/[\uD800-\uDFFF]/;function gg(t){return hg<=t&&t<=mg}function tL(t,r){if(0<=r&&r<t.length||J2(!1),r+1===t.length)return!1;var o=t.charCodeAt(r),i=t.charCodeAt(r+1);return hg<=o&&o<=W2&&G2<=i&&i<=mg}function wf(t){return eL.test(t)}function Qa(t,r){return 1+gg(t.charCodeAt(r))}function nL(t){if(!wf(t))return t.length;for(var r=0,o=0;o<t.length;o+=Qa(t,o))r++;return r}function vg(t,r,o){if(r=r||0,o=o===void 0?1/0:o||0,!wf(t))return t.substr(r,o);var i=t.length;if(i<=0||r>i||o<=0)return"";var l=0;if(r>0){for(;r>0&&l<i;r--)l+=Qa(t,l);if(l>=i)return""}else if(r<0){for(l=i;r<0&&0<l;r++)l-=Qa(t,l-1);l<0&&(l=0)}var c=i;if(o<i)for(c=l;o>0&&c<i;o--)c+=Qa(t,c);return t.substring(l,c)}function rL(t,r,o){r=r||0,o=o===void 0?1/0:o||0,r<0&&(r=0),o<0&&(o=0);var i=Math.abs(o-r);return r=r<o?r:o,vg(t,r,i)}function oL(t){for(var r=[],o=0;o<t.length;o+=Qa(t,o))r.push(t.codePointAt(o));return r}var iL={getCodePoints:oL,getUTF16Length:Qa,hasSurrogateUnit:wf,isCodeUnitInSurrogateRange:gg,isSurrogatePair:tL,strlen:nL,substring:rL,substr:vg},pa=iL;function aL(t,r){var o=t.getSelection(),i=t.getCurrentContent(),l=o.getStartKey(),c=o.getStartOffset(),g=l,v=0;if(r>c){var b=i.getKeyBefore(l);if(b==null)g=l;else{g=b;var w=i.getBlockForKey(b);v=w.getText().length}}else v=c-r;return o.merge({focusKey:g,focusOffset:v,isBackward:!0})}var Sf=aL,lL=cr,uL=Li,yg=uL("draft_tree_data_support");function sL(t,r,o){var i=t.getSelection(),l=t.getCurrentContent(),c=i,g=i.getAnchorKey(),v=i.getFocusKey(),b=l.getBlockForKey(g);if(yg&&o==="forward"&&g!==v)return l;if(i.isCollapsed()){if(o==="forward"){if(t.isSelectionAtEndOfContent())return l;if(yg){var w=i.getAnchorOffset()===l.getBlockForKey(g).getLength();if(w){var L=l.getBlockForKey(b.nextSibling);if(!L||L.getLength()===0)return l}}}else if(t.isSelectionAtStartOfContent())return l;if(c=r(t),c===i)return l}return lL.removeRange(l,c,o)}var Vl=sL,cL=Vt,fL=pa,dL=Sf,pL=Vl;function hL(t){var r=pL(t,function(i){var l=i.getSelection(),c=i.getCurrentContent(),g=l.getAnchorKey(),v=l.getAnchorOffset(),b=c.getBlockForKey(g).getText()[v-1];return dL(i,b?fL.getUTF16Length(b,0):1)},"backward");if(r===t.getCurrentContent())return t;var o=t.getSelection();return cL.push(t,r.set("selectionBefore",o),o.isCollapsed()?"backspace-character":"remove-range")}var bg=hL,mL=cr,gL=ti,vL=Vt,yL=dr,bL=ym,_L=bL.notEmptyKey,wL=Uu,SL=bg,xL=fr,EL=yL.isEngine("Gecko"),kL=`
|
|
22
22
|
|
|
23
|
-
`;function ND(t,r){switch(t){case"deleteContentBackward":return SD(r)}return r}function OD(t,r){t._pendingStateFromBeforeInput!==void 0&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var i=t.editor,a=i.ownerDocument.defaultView.getSelection(),u=a.anchorNode,c=a.isCollapsed,g=u?.nodeType!==Node.TEXT_NODE&&u?.nodeType!==Node.ELEMENT_NODE;if(!(u==null||g)){if(u.nodeType===Node.TEXT_NODE&&(u.previousSibling!==null||u.nextSibling!==null)){var y=u.parentNode;if(y==null)return;u.nodeValue=y.textContent;for(var b=y.firstChild;b!=null;b=b.nextSibling)b!==u&&y.removeChild(b)}var w=u.textContent,D=t._latestEditorState,K=xD(wD(u)),L=gD.decode(K),T=L.blockKey,F=L.decoratorKey,R=L.leafKey,j=D.getBlockTree(T).getIn([F,"leaves",R]),G=j.start,Y=j.end,W=D.getCurrentContent(),J=W.getBlockForKey(T),le=J.getText().slice(G,Y);if(w.endsWith(kD)&&(w=w.slice(0,-1)),w===le){var Se=r.nativeEvent.inputType;if(Se){var _e=ND(Se,D);if(_e!==D){t.restoreEditorDOM(),t.update(_e);return}}return}var Ie=D.getSelection(),ve=Ie.merge({anchorOffset:G,focusOffset:Y,isBackward:!1}),xe=J.getEntityAt(G),we=_D(xe)?W.getEntity(xe):null,he=we!=null?we.getMutability():null,ge=he==="MUTABLE",De=ge?"spellcheck-change":"apply-entity",je=mD.replaceText(W,ve,w,J.getInlineStyleAt(G),ge?J.getEntityAt(G):null),Ce,He,ue,fe;if(ED)Ce=a.anchorOffset,He=a.focusOffset,ue=G+Math.min(Ce,He),fe=ue+Math.abs(Ce-He),Ce=ue,He=fe;else{var ae=w.length-le.length;ue=Ie.getStartOffset(),fe=Ie.getEndOffset(),Ce=c?fe+ae:ue,He=fe+ae}var Me=je.merge({selectionBefore:W.getSelectionAfter(),selectionAfter:Ie.merge({anchorOffset:Ce,focusOffset:He})});t.update(vD.push(D,Me,De))}}var DD=OD,MD=Hu;function LD(t){return t.which===MD.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}var CD=LD,BD=fr,FD=CD,sf=BD.isPlatform("Mac OS X"),tg={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return sf&&t.altKey},usesMacOSHeuristics:function(){return sf},hasCommandModifier:function(t){return sf?!!t.metaKey&&!t.altKey:tg.isCtrlKeyCommand(t)},isSoftNewlineEvent:FD},cf=tg,ng=sr,rg=At,PD=yu,KD=cr,ff=null,RD={cut:function(t){var r=t.getCurrentContent(),i=t.getSelection(),a=null;if(i.isCollapsed()){var u=i.getAnchorKey(),c=r.getBlockForKey(u).getLength();if(c===i.getAnchorOffset()){var g=r.getKeyAfter(u);if(g==null)return t;a=i.set("focusKey",g).set("focusOffset",0)}else a=i.set("focusOffset",c)}else a=i;a=KD(a),ff=PD(r,a);var y=ng.removeRange(r,a,"forward");return y===r?t:rg.push(t,y,"remove-range")},paste:function(t){if(!ff)return t;var r=ng.replaceWithFragment(t.getCurrentContent(),t.getSelection(),ff);return rg.push(t,r,"insert-fragment")}},ID=RD,jD=fr,TD=wt,zD=jD.isBrowser("Chrome");function HD(t){for(var r=t.cloneRange(),i=[],a=t.endContainer;a!=null;a=a.parentNode){var u=a===t.commonAncestorContainer;u?r.setStart(t.startContainer,t.startOffset):r.setStart(r.endContainer,0);var c=Array.from(r.getClientRects());if(i.push(c),u){var g;return i.reverse(),(g=[]).concat.apply(g,i)}r.setEndBefore(a)}TD(!1)}var AD=zD?HD:function(t){return Array.from(t.getClientRects())},ig=AD,qD=fa,UD=Iu,og=ig,df=wt;function VD(t){var r=getComputedStyle(t),i=UD(t),a=i.createElement("div");a.style.fontFamily=r.fontFamily,a.style.fontSize=r.fontSize,a.style.fontStyle=r.fontStyle,a.style.fontWeight=r.fontWeight,a.style.lineHeight=r.lineHeight,a.style.position="absolute",a.textContent="M";var u=i.body;u||df(!1),u.appendChild(a);var c=a.getBoundingClientRect();return u.removeChild(a),c.height}function ag(t,r){for(var i=1/0,a=1/0,u=-1/0,c=-1/0,g=0;g<t.length;g++){var y=t[g];y.width===0||y.width===1||(i=Math.min(i,y.top),a=Math.min(a,y.bottom),u=Math.max(u,y.top),c=Math.max(c,y.bottom))}return u<=a&&u-i<r&&c-a<r}function QD(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}function XD(t){t.collapsed||df(!1),t=t.cloneRange();var r=t.startContainer;r.nodeType!==1&&(r=r.parentNode);var i=VD(r),a=t.endContainer,u=t.endOffset;for(t.setStart(t.startContainer,0);ag(og(t),i)&&(a=t.startContainer,u=t.startOffset,a.parentNode||df(!1),t.setStartBefore(a),!(a.nodeType===1&&getComputedStyle(a).display!=="inline")););var c=a,g=u-1;do{for(var y=c.nodeValue,b=g;b>=0;b--)if(!(y!=null&&b>0&&qD.isSurrogatePair(y,b-1)))if(t.setStart(c,b),ag(og(t),i))a=c,u=b;else break;if(b===-1||c.childNodes.length===0)break;c=c.childNodes[b],g=QD(c)}while(!0);return t.setStart(a,u),t}var ZD=XD,$D=At,YD=ZD,JD=$h,WD=uf,GD=zl;function eM(t,r){var i=GD(t,function(a){var u=a.getSelection();if(u.isCollapsed()&&u.getAnchorOffset()===0)return WD(a,1);var c=r.currentTarget.ownerDocument,g=c.defaultView.getSelection(),y=g.getRangeAt(0);return y=YD(y),JD(a,null,y.endContainer,y.endOffset,y.startContainer,y.startOffset).selectionState},"backward");return i===t.getCurrentContent()?t:$D.push(t,i,"remove-range")}var tM=eM,nM=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;\u30FB\u3001\u3002\u3008-\u3011\u3014-\u301F\uFF1A-\uFF1F\uFF01-\uFF0F\uFF3B-\uFF40\uFF5B-\uFF65\u2E2E\u061F\u066A-\u066C\u061B\u060C\u060D\uFD3E\uFD3F\u1801\u0964\u104A\u104B\u2010-\u2027\u2030-\u205E\xA1-\xB1\xB4-\xB8\xBA\xBB\xBF]`,rM={getPunctuation:function(){return nM}},iM=rM,oM=iM.getPunctuation(),lg="['\u2018\u2019]",qa="\\s|(?![_])"+oM,aM="^(?:"+qa+")*(?:"+lg+"|(?!"+qa+").)*(?:(?!"+qa+").)",lM=new RegExp(aM),uM="(?:(?!"+qa+").)(?:"+lg+"|(?!"+qa+").)*(?:"+qa+")*$",sM=new RegExp(uM);function ug(t,r){var i=r?sM.exec(t):lM.exec(t);return i?i[0]:t}var cM={getBackward:function(t){return ug(t,!0)},getForward:function(t){return ug(t,!1)}},sg=cM,fM=sg,dM=At,cg=uf,pM=zl;function hM(t){var r=pM(t,function(i){var a=i.getSelection(),u=a.getStartOffset();if(u===0)return cg(i,1);var c=a.getStartKey(),g=i.getCurrentContent(),y=g.getBlockForKey(c).getText().slice(0,u),b=fM.getBackward(y);return cg(i,b.length||1)},"backward");return r===t.getCurrentContent()?t:dM.push(t,r,"remove-range")}var mM=hM;function gM(t,r){var i=t.getSelection(),a=i.getStartKey(),u=i.getStartOffset(),c=t.getCurrentContent(),g=a,y,b=c.getBlockForKey(a);return r>b.getText().length-u?(g=c.getKeyAfter(a),y=0):y=u+r,i.merge({focusKey:g,focusOffset:y})}var fg=gM,vM=sg,yM=At,bM=fg,_M=zl;function wM(t){var r=_M(t,function(i){var a=i.getSelection(),u=a.getStartOffset(),c=a.getStartKey(),g=i.getCurrentContent(),y=g.getBlockForKey(c).getText().slice(u),b=vM.getForward(y);return bM(i,b.length||1)},"forward");return r===t.getCurrentContent()?t:yM.push(t,r,"remove-range")}var SM=wM,xM=sr,EM=At;function kM(t){var r=xM.splitBlock(t.getCurrentContent(),t.getSelection());return EM.push(t,r,"split-block")}var NM=kM,OM=At;function DM(t){var r=t.getSelection(),i=r.getEndKey(),a=t.getCurrentContent(),u=a.getBlockForKey(i).getLength();return OM.set(t,{selection:r.merge({anchorKey:i,anchorOffset:u,focusKey:i,focusOffset:u,isBackward:!1}),forceSelection:!0})}var MM=DM,LM=At;function CM(t){var r=t.getSelection(),i=r.getStartKey();return LM.set(t,{selection:r.merge({anchorKey:i,anchorOffset:0,focusKey:i,focusOffset:0,isBackward:!1}),forceSelection:!0})}var BM=CM,FM=At,PM=fa,KM=fg,RM=zl;function IM(t){var r=RM(t,function(a){var u=a.getSelection(),c=a.getCurrentContent(),g=u.getAnchorKey(),y=u.getAnchorOffset(),b=c.getBlockForKey(g).getText()[y];return KM(a,b?PM.getUTF16Length(b,0):1)},"forward");if(r===t.getCurrentContent())return t;var i=t.getSelection();return FM.push(t,r.set("selectionBefore",i),i.isCollapsed()?"delete-character":"remove-range")}var jM=IM,dg=sr,pg=At,TM=yu;function zM(t){var r=t.getSelection();if(!r.isCollapsed())return t;var i=r.getAnchorOffset();if(i===0)return t;var a=r.getAnchorKey(),u=t.getCurrentContent(),c=u.getBlockForKey(a),g=c.getLength();if(g<=1)return t;var y,b;i===g?(y=r.set("anchorOffset",i-1),b=r):(y=r.set("focusOffset",i+1),b=y.set("anchorOffset",i+1));var w=TM(u,y),D=dg.removeRange(u,y,"backward"),K=D.getSelectionAfter(),L=K.getAnchorOffset()-1,T=K.merge({anchorOffset:L,focusOffset:L}),F=dg.replaceWithFragment(D,T,w),R=pg.push(t,F,"insert-fragment");return pg.acceptSelection(R,b)}var HM=zM,pf=At;function AM(t,r,i){var a=pf.undo(r);if(r.getLastChangeType()==="spellcheck-change"){var u=a.getCurrentContent();i(pf.set(a,{nativelyRenderedContent:u}));return}if(t.preventDefault(),!r.getNativelyRenderedContent()){i(a);return}i(pf.set(r,{nativelyRenderedContent:null})),setTimeout(function(){i(a)},0)}var qM=AM,UM=sr,hg=At,VM=cf,eo=Hu,mg=ID,QM=fr,gg=es,XM=tM,ZM=mM,$M=SM,YM=NM,JM=MM,WM=BM,GM=eg,eL=jM,tL=HM,nL=qM,vg=VM.isOptionKeyCommand,yg=QM.isBrowser("Chrome");function rL(t,r,i){switch(t){case"redo":return hg.redo(r);case"delete":return eL(r);case"delete-word":return $M(r);case"backspace":return GM(r);case"backspace-word":return ZM(r);case"backspace-to-start-of-line":return XM(r,i);case"split-block":return YM(r);case"transpose-characters":return tL(r);case"move-selection-to-start-of-block":return WM(r);case"move-selection-to-end-of-block":return JM(r);case"secondary-cut":return mg.cut(r);case"secondary-paste":return mg.paste(r);default:return r}}function iL(t,r){var i=r.which,a=t._latestEditorState;function u(b){var w=t.props[b];return w?(w(r),!0):!1}switch(i){case eo.RETURN:if(r.preventDefault(),t.props.handleReturn&&gg(t.props.handleReturn(r,a)))return;break;case eo.ESC:if(r.preventDefault(),u("onEscape"))return;break;case eo.TAB:if(u("onTab"))return;break;case eo.UP:if(u("onUpArrow"))return;break;case eo.RIGHT:if(u("onRightArrow"))return;break;case eo.DOWN:if(u("onDownArrow"))return;break;case eo.LEFT:if(u("onLeftArrow"))return;break;case eo.SPACE:yg&&vg(r)&&r.preventDefault()}var c=t.props.keyBindingFn(r);if(c==null||c===""){if(i===eo.SPACE&&yg&&vg(r)){var g=UM.replaceText(a.getCurrentContent(),a.getSelection(),"\xA0");t.update(hg.push(a,g,"insert-characters"))}return}if(c==="undo"){nL(r,a,t.update);return}if(r.preventDefault(),!(t.props.handleKeyCommand&&gg(t.props.handleKeyCommand(c,a,r.timeStamp)))){var y=rL(c,a,r);y!==a&&t.update(y)}}var oL=iL;function aL(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var lL=function(){function t(i){aL(this,"_uri",void 0),this._uri=i}var r=t.prototype;return r.toString=function(){return this._uri},t}(),uL=lL,sL=fr,cL=wt,fL=sL.isBrowser("IE <= 9");function dL(t){var r,i=null;return!fL&&document.implementation&&document.implementation.createHTMLDocument&&(r=document.implementation.createHTMLDocument("foo"),r.documentElement||cL(!1),r.documentElement.innerHTML=t,i=r.getElementsByTagName("body")[0]),i}var bg=dL,pL=ua;function hL(t){return!t||!t.ownerDocument?!1:pL(t)&&t.nodeName==="A"}var mL=hL,gL=ua;function vL(t){return!t||!t.ownerDocument?!1:gL(t)&&t.nodeName==="IMG"}var yL=vL,da;function hf(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){Tn(t,u,i[u])})}return t}function Tn(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var bL=$r,_L=ra,wL=Yr,SL=Pc,_g=Su,wg=uL,Hl=aa,Sg=Li,xL=bg,xg=Eo,mf=mt,ko=mf.List,Eg=mf.Map,EL=mf.OrderedSet,kg=mL,kL=om,gf=Kl,Ng=yL,Og=xg("draft_tree_data_support"),NL=" ",Dg=" ",OL=new RegExp("\r","g"),DL=new RegExp(`
|
|
24
|
-
`,"g"),
|
|
25
|
-
`,"g"),
|
|
26
|
-
`,
|
|
27
|
-
`,c=c.push(c.last()));var b=this._extractTextFromBlockConfigs(
|
|
28
|
-
`,t.getCurrentInlineStyle(),null),
|
|
23
|
+
`;function NL(t,r){switch(t){case"deleteContentBackward":return SL(r)}return r}function OL(t,r){t._pendingStateFromBeforeInput!==void 0&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var o=t.editor,i=o.ownerDocument.defaultView.getSelection(),l=i.anchorNode,c=i.isCollapsed,g=l?.nodeType!==Node.TEXT_NODE&&l?.nodeType!==Node.ELEMENT_NODE;if(!(l==null||g)){if(l.nodeType===Node.TEXT_NODE&&(l.previousSibling!==null||l.nextSibling!==null)){var v=l.parentNode;if(v==null)return;l.nodeValue=v.textContent;for(var b=v.firstChild;b!=null;b=b.nextSibling)b!==l&&v.removeChild(b)}var w=l.textContent,L=t._latestEditorState,R=xL(wL(l)),M=gL.decode(R),z=M.blockKey,B=M.decoratorKey,T=M.leafKey,I=L.getBlockTree(z).getIn([B,"leaves",T]),G=I.start,Y=I.end,W=L.getCurrentContent(),J=W.getBlockForKey(z),le=J.getText().slice(G,Y);if(w.endsWith(kL)&&(w=w.slice(0,-1)),w===le){var Se=r.nativeEvent.inputType;if(Se){var _e=NL(Se,L);if(_e!==L){t.restoreEditorDOM(),t.update(_e);return}}return}var je=L.getSelection(),ve=je.merge({anchorOffset:G,focusOffset:Y,isBackward:!1}),xe=J.getEntityAt(G),we=_L(xe)?W.getEntity(xe):null,he=we!=null?we.getMutability():null,ge=he==="MUTABLE",Le=ge?"spellcheck-change":"apply-entity",Ie=mL.replaceText(W,ve,w,J.getInlineStyleAt(G),ge?J.getEntityAt(G):null),Fe,Ae,ue,fe;if(EL)Fe=i.anchorOffset,Ae=i.focusOffset,ue=G+Math.min(Fe,Ae),fe=ue+Math.abs(Fe-Ae),Fe=ue,Ae=fe;else{var ae=w.length-le.length;ue=je.getStartOffset(),fe=je.getEndOffset(),Fe=c?fe+ae:ue,Ae=fe+ae}var Ce=Ie.merge({selectionBefore:W.getSelectionAfter(),selectionAfter:je.merge({anchorOffset:Fe,focusOffset:Ae})});t.update(vL.push(L,Ce,Le))}}var LL=OL,CL=Zu;function ML(t){return t.which===CL.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}var FL=ML,DL=dr,PL=FL,xf=DL.isPlatform("Mac OS X"),_g={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return xf&&t.altKey},usesMacOSHeuristics:function(){return xf},hasCommandModifier:function(t){return xf?!!t.metaKey&&!t.altKey:_g.isCtrlKeyCommand(t)},isSoftNewlineEvent:PL},Ef=_g,wg=cr,Sg=Vt,BL=ku,RL=fr,kf=null,TL={cut:function(t){var r=t.getCurrentContent(),o=t.getSelection(),i=null;if(o.isCollapsed()){var l=o.getAnchorKey(),c=r.getBlockForKey(l).getLength();if(c===o.getAnchorOffset()){var g=r.getKeyAfter(l);if(g==null)return t;i=o.set("focusKey",g).set("focusOffset",0)}else i=o.set("focusOffset",c)}else i=o;i=RL(i),kf=BL(r,i);var v=wg.removeRange(r,i,"forward");return v===r?t:Sg.push(t,v,"remove-range")},paste:function(t){if(!kf)return t;var r=wg.replaceWithFragment(t.getCurrentContent(),t.getSelection(),kf);return Sg.push(t,r,"insert-fragment")}},jL=TL,IL=dr,zL=wt,KL=IL.isBrowser("Chrome");function AL(t){for(var r=t.cloneRange(),o=[],i=t.endContainer;i!=null;i=i.parentNode){var l=i===t.commonAncestorContainer;l?r.setStart(t.startContainer,t.startOffset):r.setStart(r.endContainer,0);var c=Array.from(r.getClientRects());if(o.push(c),l){var g;return o.reverse(),(g=[]).concat.apply(g,o)}r.setEndBefore(i)}zL(!1)}var HL=KL?AL:function(t){return Array.from(t.getClientRects())},xg=HL,VL=pa,qL=qu,Eg=xg,Nf=wt;function UL(t){var r=getComputedStyle(t),o=qL(t),i=o.createElement("div");i.style.fontFamily=r.fontFamily,i.style.fontSize=r.fontSize,i.style.fontStyle=r.fontStyle,i.style.fontWeight=r.fontWeight,i.style.lineHeight=r.lineHeight,i.style.position="absolute",i.textContent="M";var l=o.body;l||Nf(!1),l.appendChild(i);var c=i.getBoundingClientRect();return l.removeChild(i),c.height}function kg(t,r){for(var o=1/0,i=1/0,l=-1/0,c=-1/0,g=0;g<t.length;g++){var v=t[g];v.width===0||v.width===1||(o=Math.min(o,v.top),i=Math.min(i,v.bottom),l=Math.max(l,v.top),c=Math.max(c,v.bottom))}return l<=i&&l-o<r&&c-i<r}function QL(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}function XL(t){t.collapsed||Nf(!1),t=t.cloneRange();var r=t.startContainer;r.nodeType!==1&&(r=r.parentNode);var o=UL(r),i=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);kg(Eg(t),o)&&(i=t.startContainer,l=t.startOffset,i.parentNode||Nf(!1),t.setStartBefore(i),!(i.nodeType===1&&getComputedStyle(i).display!=="inline")););var c=i,g=l-1;do{for(var v=c.nodeValue,b=g;b>=0;b--)if(!(v!=null&&b>0&&VL.isSurrogatePair(v,b-1)))if(t.setStart(c,b),kg(Eg(t),o))i=c,l=b;else break;if(b===-1||c.childNodes.length===0)break;c=c.childNodes[b],g=QL(c)}while(!0);return t.setStart(i,l),t}var ZL=XL,$L=Vt,YL=ZL,JL=hm,WL=Sf,GL=Vl;function eC(t,r){var o=GL(t,function(i){var l=i.getSelection();if(l.isCollapsed()&&l.getAnchorOffset()===0)return WL(i,1);var c=r.currentTarget.ownerDocument,g=c.defaultView.getSelection(),v=g.getRangeAt(0);return v=YL(v),JL(i,null,v.endContainer,v.endOffset,v.startContainer,v.startOffset).selectionState},"backward");return o===t.getCurrentContent()?t:$L.push(t,o,"remove-range")}var tC=eC,nC=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;\u30FB\u3001\u3002\u3008-\u3011\u3014-\u301F\uFF1A-\uFF1F\uFF01-\uFF0F\uFF3B-\uFF40\uFF5B-\uFF65\u2E2E\u061F\u066A-\u066C\u061B\u060C\u060D\uFD3E\uFD3F\u1801\u0964\u104A\u104B\u2010-\u2027\u2030-\u205E\xA1-\xB1\xB4-\xB8\xBA\xBB\xBF]`,rC={getPunctuation:function(){return nC}},oC=rC,iC=oC.getPunctuation(),Ng="['\u2018\u2019]",Xa="\\s|(?![_])"+iC,aC="^(?:"+Xa+")*(?:"+Ng+"|(?!"+Xa+").)*(?:(?!"+Xa+").)",lC=new RegExp(aC),uC="(?:(?!"+Xa+").)(?:"+Ng+"|(?!"+Xa+").)*(?:"+Xa+")*$",sC=new RegExp(uC);function Og(t,r){var o=r?sC.exec(t):lC.exec(t);return o?o[0]:t}var cC={getBackward:function(t){return Og(t,!0)},getForward:function(t){return Og(t,!1)}},Lg=cC,fC=Lg,dC=Vt,Cg=Sf,pC=Vl;function hC(t){var r=pC(t,function(o){var i=o.getSelection(),l=i.getStartOffset();if(l===0)return Cg(o,1);var c=i.getStartKey(),g=o.getCurrentContent(),v=g.getBlockForKey(c).getText().slice(0,l),b=fC.getBackward(v);return Cg(o,b.length||1)},"backward");return r===t.getCurrentContent()?t:dC.push(t,r,"remove-range")}var mC=hC;function gC(t,r){var o=t.getSelection(),i=o.getStartKey(),l=o.getStartOffset(),c=t.getCurrentContent(),g=i,v,b=c.getBlockForKey(i);return r>b.getText().length-l?(g=c.getKeyAfter(i),v=0):v=l+r,o.merge({focusKey:g,focusOffset:v})}var Mg=gC,vC=Lg,yC=Vt,bC=Mg,_C=Vl;function wC(t){var r=_C(t,function(o){var i=o.getSelection(),l=i.getStartOffset(),c=i.getStartKey(),g=o.getCurrentContent(),v=g.getBlockForKey(c).getText().slice(l),b=vC.getForward(v);return bC(o,b.length||1)},"forward");return r===t.getCurrentContent()?t:yC.push(t,r,"remove-range")}var SC=wC,xC=cr,EC=Vt;function kC(t){var r=xC.splitBlock(t.getCurrentContent(),t.getSelection());return EC.push(t,r,"split-block")}var NC=kC,OC=Vt;function LC(t){var r=t.getSelection(),o=r.getEndKey(),i=t.getCurrentContent(),l=i.getBlockForKey(o).getLength();return OC.set(t,{selection:r.merge({anchorKey:o,anchorOffset:l,focusKey:o,focusOffset:l,isBackward:!1}),forceSelection:!0})}var CC=LC,MC=Vt;function FC(t){var r=t.getSelection(),o=r.getStartKey();return MC.set(t,{selection:r.merge({anchorKey:o,anchorOffset:0,focusKey:o,focusOffset:0,isBackward:!1}),forceSelection:!0})}var DC=FC,PC=Vt,BC=pa,RC=Mg,TC=Vl;function jC(t){var r=TC(t,function(i){var l=i.getSelection(),c=i.getCurrentContent(),g=l.getAnchorKey(),v=l.getAnchorOffset(),b=c.getBlockForKey(g).getText()[v];return RC(i,b?BC.getUTF16Length(b,0):1)},"forward");if(r===t.getCurrentContent())return t;var o=t.getSelection();return PC.push(t,r.set("selectionBefore",o),o.isCollapsed()?"delete-character":"remove-range")}var IC=jC,Fg=cr,Dg=Vt,zC=ku;function KC(t){var r=t.getSelection();if(!r.isCollapsed())return t;var o=r.getAnchorOffset();if(o===0)return t;var i=r.getAnchorKey(),l=t.getCurrentContent(),c=l.getBlockForKey(i),g=c.getLength();if(g<=1)return t;var v,b;o===g?(v=r.set("anchorOffset",o-1),b=r):(v=r.set("focusOffset",o+1),b=v.set("anchorOffset",o+1));var w=zC(l,v),L=Fg.removeRange(l,v,"backward"),R=L.getSelectionAfter(),M=R.getAnchorOffset()-1,z=R.merge({anchorOffset:M,focusOffset:M}),B=Fg.replaceWithFragment(L,z,w),T=Dg.push(t,B,"insert-fragment");return Dg.acceptSelection(T,b)}var AC=KC,Of=Vt;function HC(t,r,o){var i=Of.undo(r);if(r.getLastChangeType()==="spellcheck-change"){var l=i.getCurrentContent();o(Of.set(i,{nativelyRenderedContent:l}));return}if(t.preventDefault(),!r.getNativelyRenderedContent()){o(i);return}o(Of.set(r,{nativelyRenderedContent:null})),setTimeout(function(){o(i)},0)}var VC=HC,qC=cr,Pg=Vt,UC=Ef,ni=Zu,Bg=jL,QC=dr,Rg=ls,XC=tC,ZC=mC,$C=SC,YC=NC,JC=CC,WC=DC,GC=bg,eM=IC,tM=AC,nM=VC,Tg=UC.isOptionKeyCommand,jg=QC.isBrowser("Chrome");function rM(t,r,o){switch(t){case"redo":return Pg.redo(r);case"delete":return eM(r);case"delete-word":return $C(r);case"backspace":return GC(r);case"backspace-word":return ZC(r);case"backspace-to-start-of-line":return XC(r,o);case"split-block":return YC(r);case"transpose-characters":return tM(r);case"move-selection-to-start-of-block":return WC(r);case"move-selection-to-end-of-block":return JC(r);case"secondary-cut":return Bg.cut(r);case"secondary-paste":return Bg.paste(r);default:return r}}function oM(t,r){var o=r.which,i=t._latestEditorState;function l(b){var w=t.props[b];return w?(w(r),!0):!1}switch(o){case ni.RETURN:if(r.preventDefault(),t.props.handleReturn&&Rg(t.props.handleReturn(r,i)))return;break;case ni.ESC:if(r.preventDefault(),l("onEscape"))return;break;case ni.TAB:if(l("onTab"))return;break;case ni.UP:if(l("onUpArrow"))return;break;case ni.RIGHT:if(l("onRightArrow"))return;break;case ni.DOWN:if(l("onDownArrow"))return;break;case ni.LEFT:if(l("onLeftArrow"))return;break;case ni.SPACE:jg&&Tg(r)&&r.preventDefault()}var c=t.props.keyBindingFn(r);if(c==null||c===""){if(o===ni.SPACE&&jg&&Tg(r)){var g=qC.replaceText(i.getCurrentContent(),i.getSelection(),"\xA0");t.update(Pg.push(i,g,"insert-characters"))}return}if(c==="undo"){nM(r,i,t.update);return}if(r.preventDefault(),!(t.props.handleKeyCommand&&Rg(t.props.handleKeyCommand(c,i,r.timeStamp)))){var v=rM(c,i,r);v!==i&&t.update(v)}}var iM=oM;function aM(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var lM=function(){function t(o){aM(this,"_uri",void 0),this._uri=o}var r=t.prototype;return r.toString=function(){return this._uri},t}(),uM=lM,sM=dr,cM=wt,fM=sM.isBrowser("IE <= 9");function dM(t){var r,o=null;return!fM&&document.implementation&&document.implementation.createHTMLDocument&&(r=document.implementation.createHTMLDocument("foo"),r.documentElement||cM(!1),r.documentElement.innerHTML=t,o=r.getElementsByTagName("body")[0]),o}var Ig=dM,pM=ca;function hM(t){return!t||!t.ownerDocument?!1:pM(t)&&t.nodeName==="A"}var mM=hM,gM=ca;function vM(t){return!t||!t.ownerDocument?!1:gM(t)&&t.nodeName==="IMG"}var yM=vM,ha;function Lf(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){zn(t,l,o[l])})}return t}function zn(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var bM=$r,_M=ia,wM=Yr,SM=Zc,zg=Cu,Kg=uM,ql=ua,Ag=Po,xM=Ig,Hg=Li,Cf=gt,Ci=Cf.List,Vg=Cf.Map,EM=Cf.OrderedSet,qg=mM,kM=Em,Mf=Il,Ug=yM,Qg=Hg("draft_tree_data_support"),NM=" ",Xg=" ",OM=new RegExp("\r","g"),LM=new RegExp(`
|
|
24
|
+
`,"g"),CM=new RegExp(`^
|
|
25
|
+
`,"g"),MM=new RegExp(NM,"g"),FM=new RegExp(" ?","g"),DM=new RegExp("​?","g"),PM=["bold","bolder","500","600","700","800","900"],BM=["light","lighter","normal","100","200","300","400"],RM=["className","href","rel","target","title"],TM=["alt","className","height","src","width"],Zg=(ha={},zn(ha,ql("public/DraftStyleDefault/depth0"),0),zn(ha,ql("public/DraftStyleDefault/depth1"),1),zn(ha,ql("public/DraftStyleDefault/depth2"),2),zn(ha,ql("public/DraftStyleDefault/depth3"),3),zn(ha,ql("public/DraftStyleDefault/depth4"),4),ha),$g=Vg({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),jM=function(t){var r={};return t.mapKeys(function(o,i){var l=[i.element];i.aliasedElements!==void 0&&l.push.apply(l,i.aliasedElements),l.forEach(function(c){r[c]===void 0?r[c]=o:typeof r[c]=="string"?r[c]=[r[c],o]:r[c].push(o)})}),Vg(r)},IM=function(t){if(Mf(t)){var r=t;if(r.style.fontFamily.includes("monospace"))return"CODE"}return null},zM=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(Zg).some(function(o){t.classList.contains(o)&&(r=Zg[o])}),r},KM=function(t){if(!qg(t))return!1;var r=t;if(!r.href||r.protocol!=="http:"&&r.protocol!=="https:"&&r.protocol!=="mailto:"&&r.protocol!=="tel:")return!1;try{var o=new Kg(r.href);return!0}catch{return!1}},AM=function(t){if(!Ug(t))return!1;var r=t;return!!(r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value)},HM=function(t,r){if(!Mf(t))return r;var o=t,i=o.style.fontWeight,l=o.style.fontStyle,c=o.style.textDecoration;return r.withMutations(function(g){PM.indexOf(i)>=0?g.add("BOLD"):BM.indexOf(i)>=0&&g.remove("BOLD"),l==="italic"?g.add("ITALIC"):l==="normal"&&g.remove("ITALIC"),c==="underline"&&g.add("UNDERLINE"),c==="line-through"&&g.add("STRIKETHROUGH"),c==="none"&&(g.remove("UNDERLINE"),g.remove("STRIKETHROUGH"))})},Ff=function(t){return t==="ul"||t==="ol"},VM=function(){function t(o,i){zn(this,"characterList",Ci()),zn(this,"currentBlockType","unstyled"),zn(this,"currentDepth",0),zn(this,"currentEntity",null),zn(this,"currentText",""),zn(this,"wrapper",null),zn(this,"blockConfigs",[]),zn(this,"contentBlocks",[]),zn(this,"entityMap",zg),zn(this,"blockTypeMap",void 0),zn(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=o,this.disambiguate=i}var r=t.prototype;return r.clear=function(){this.characterList=Ci(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=zg,this.wrapper=null,this.contentBlocks=[]},r.addDOMNode=function(o){var i;return this.contentBlocks=[],this.currentDepth=0,(i=this.blockConfigs).push.apply(i,this._toBlockConfigs([o],EM())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},r.getContentBlocks=function(){return this.contentBlocks.length===0&&(Qg?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},r._makeBlockConfig=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.key||Ag(),l=Lf({key:i,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Ci(),prevSibling:null,nextSibling:null,childConfigs:[]},o);return this.characterList=Ci(),this.currentBlockType="unstyled",this.currentText="",l},r._toBlockConfigs=function(o,i){for(var l=[],c=0;c<o.length;c++){var g=o[c],v=g.nodeName.toLowerCase();if(v==="body"||Ff(v)){this._trimCurrentText(),this.currentText!==""&&l.push(this._makeBlockConfig());var b=this.currentDepth,w=this.wrapper;Ff(v)&&(this.wrapper=v,Ff(w)&&this.currentDepth++),l.push.apply(l,this._toBlockConfigs(Array.from(g.childNodes),i)),this.currentDepth=b,this.wrapper=w;continue}var L=this.blockTypeMap.get(v);if(L!==void 0){this._trimCurrentText(),this.currentText!==""&&l.push(this._makeBlockConfig());var R=this.currentDepth,M=this.wrapper;if(this.wrapper=v==="pre"?"pre":this.wrapper,typeof L!="string"&&(L=this.disambiguate(v,this.wrapper)||L[0]||"unstyled"),!Qg&&Mf(g)&&(L==="unordered-list-item"||L==="ordered-list-item")){var z=g;this.currentDepth=zM(z,this.currentDepth)}var B=Ag(),T=this._toBlockConfigs(Array.from(g.childNodes),i);this._trimCurrentText(),l.push(this._makeBlockConfig({key:B,childConfigs:T,type:L})),this.currentDepth=R,this.wrapper=M;continue}if(v==="#text"){this._addTextNode(g,i);continue}if(v==="br"){this._addBreakNode(g,i);continue}if(AM(g)){this._addImgNode(g,i);continue}if(KM(g)){this._addAnchorNode(g,l,i);continue}var I=i;$g.has(v)&&(I=I.add($g.get(v))),I=HM(g,I);var G=IM(g);G!=null&&(I=I.add(G)),l.push.apply(l,this._toBlockConfigs(Array.from(g.childNodes),I))}return l},r._appendText=function(o,i){var l;this.currentText+=o;var c=bM.create({style:i,entity:this.currentEntity});this.characterList=(l=this.characterList).push.apply(l,Array(o.length).fill(c))},r._trimCurrentText=function(){var o=this.currentText.length,i=o-this.currentText.trimLeft().length,l=this.currentText.trimRight().length,c=this.characterList.findEntry(function(g){return g.getEntity()!==null});i=c!==void 0?Math.min(i,c[0]):i,c=this.characterList.reverse().findEntry(function(g){return g.getEntity()!==null}),l=c!==void 0?Math.max(l,o-c[0]):l,i>l?(this.currentText="",this.characterList=Ci()):(this.currentText=this.currentText.slice(i,l),this.characterList=this.characterList.slice(i,l))},r._addTextNode=function(o,i){var l=o.textContent,c=l.trim();c===""&&this.wrapper!=="pre"&&(l=" "),this.wrapper!=="pre"&&(l=l.replace(CM,""),l=l.replace(LM,Xg)),this._appendText(l,i)},r._addBreakNode=function(o,i){kM(o)&&this._appendText(`
|
|
26
|
+
`,i)},r._addImgNode=function(o,i){if(Ug(o)){var l=o,c={};TM.forEach(function(g){var v=l.getAttribute(g);v&&(c[g]=v)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",c),Hg("draftjs_fix_paste_for_img")?l.getAttribute("role")!=="presentation"&&this._appendText("\u{1F4F7}",i):this._appendText("\u{1F4F7}",i),this.currentEntity=null}},r._addAnchorNode=function(o,i,l){if(qg(o)){var c=o,g={};RM.forEach(function(v){var b=c.getAttribute(v);b&&(g[v]=b)}),g.url=new Kg(c.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",g||{}),i.push.apply(i,this._toBlockConfigs(Array.from(o.childNodes),l)),this.currentEntity=null}},r._toContentBlocks=function(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,l=o.length-1,c=0;c<=l;c++){var g=o[c];g.parent=i,g.prevSibling=c>0?o[c-1].key:null,g.nextSibling=c<l?o[c+1].key:null,g.children=Ci(g.childConfigs.map(function(v){return v.key})),this.contentBlocks.push(new wM(Lf({},g))),this._toContentBlocks(g.childConfigs,g.key)}},r._hoistContainersInBlockConfigs=function(o){var i=this,l=Ci(o).flatMap(function(c){return c.type!=="unstyled"||c.text!==""?[c]:i._hoistContainersInBlockConfigs(c.childConfigs)});return l},r._toFlatContentBlocks=function(o){var i=this,l=this._hoistContainersInBlockConfigs(o);l.forEach(function(c){var g=i._extractTextFromBlockConfigs(c.childConfigs),v=g.text,b=g.characterList;i.contentBlocks.push(new _M(Lf({},c,{text:c.text+v,characterList:c.characterList.concat(b)})))})},r._extractTextFromBlockConfigs=function(o){for(var i=o.length-1,l="",c=Ci(),g=0;g<=i;g++){var v=o[g];l+=v.text,c=c.concat(v.characterList),l!==""&&v.type!=="unstyled"&&(l+=`
|
|
27
|
+
`,c=c.push(c.last()));var b=this._extractTextFromBlockConfigs(v.childConfigs);l+=b.text,c=c.concat(b.characterList)}return{text:l,characterList:c}},t}(),qM=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xM,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:SM;t=t.trim().replace(OM,"").replace(MM,Xg).replace(FM,"").replace(DM,"");var i=r(t);if(!i)return null;var l=jM(o),c=function(g,v){return g==="li"?v==="ol"?"ordered-list-item":"unordered-list-item":null};return new VM(l,c).addDOMNode(i).getContentBlocks()},Yg=qM;function UM(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){QM(t,l,o[l])})}return t}function QM(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var XM=ia,ZM=Yr,$M=Yg,YM=Po,JM=Ig,WM=Li,Jg=gt,GM=hh,eF=Jg.List,tF=Jg.Repeat,Wg=WM("draft_tree_data_support"),nF=Wg?ZM:XM,rF={processHTML:function(t,r){return $M(t,JM,r)},processText:function(t,r,o){return t.reduce(function(i,l,c){l=GM(l);var g=YM(),v={key:g,type:o,text:l,characterList:eF(tF(r,l.length))};if(Wg&&c!==0){var b=c-1,w=i[b]=i[b].merge({nextSibling:g});v=UM({},v,{prevSibling:w.getKey()})}return i.push(new nF(v)),i},[])}},oF=rF;function iF(t,r,o,i){var l=r.getStartKey(),c=r.getEndKey(),g=t.getBlockMap(),v=g.toSeq().skipUntil(function(b,w){return w===l}).takeUntil(function(b,w){return w===c}).concat([[c,g.get(c)]]).map(function(b){var w=b.getDepth()+o;return w=Math.max(0,Math.min(w,i)),b.set("depth",w)});return g=g.merge(v),t.merge({blockMap:g,selectionBefore:r,selectionAfter:r})}var aF=iF,ma=cr,jo=Vt,lF=aF,uF=fr,Io={currentBlockContainsLink:function(t){var r=t.getSelection(),o=t.getCurrentContent(),i=o.getEntityMap();return o.getBlockForKey(r.getAnchorKey()).getCharacterList().slice(r.getStartOffset(),r.getEndOffset()).some(function(l){var c=l.getEntity();return!!c&&i.__get(c).getType()==="LINK"})},getCurrentBlockType:function(t){var r=t.getSelection();return t.getCurrentContent().getBlockForKey(r.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,r,o){switch(r){case"bold":return Io.toggleInlineStyle(t,"BOLD");case"italic":return Io.toggleInlineStyle(t,"ITALIC");case"underline":return Io.toggleInlineStyle(t,"UNDERLINE");case"code":return Io.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return Io.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return Io.onDelete(t);default:return null}},insertSoftNewline:function(t){var r=ma.insertText(t.getCurrentContent(),t.getSelection(),`
|
|
28
|
+
`,t.getCurrentInlineStyle(),null),o=jo.push(t,r,"insert-characters");return jo.forceSelection(o,r.getSelectionAfter())},onBackspace:function(t){var r=t.getSelection();if(!r.isCollapsed()||r.getAnchorOffset()||r.getFocusOffset())return null;var o=t.getCurrentContent(),i=r.getStartKey(),l=o.getBlockBefore(i);if(l&&l.getType()==="atomic"){var c=o.getBlockMap().delete(l.getKey()),g=o.merge({blockMap:c,selectionAfter:r});if(g!==o)return jo.push(t,g,"remove-range")}var v=Io.tryToRemoveBlockStyle(t);return v?jo.push(t,v,"change-block-type"):null},onDelete:function(t){var r=t.getSelection();if(!r.isCollapsed())return null;var o=t.getCurrentContent(),i=r.getStartKey(),l=o.getBlockForKey(i),c=l.getLength();if(r.getStartOffset()<c)return null;var g=o.getBlockAfter(i);if(!g||g.getType()!=="atomic")return null;var v=r.merge({focusKey:g.getKey(),focusOffset:g.getLength()}),b=ma.removeRange(o,v,"forward");return b!==o?jo.push(t,b,"remove-range"):null},onTab:function(t,r,o){var i=r.getSelection(),l=i.getAnchorKey();if(l!==i.getFocusKey())return r;var c=r.getCurrentContent(),g=c.getBlockForKey(l),v=g.getType();if(v!=="unordered-list-item"&&v!=="ordered-list-item")return r;t.preventDefault();var b=g.getDepth();if(!t.shiftKey&&b===o)return r;var w=lF(c,i,t.shiftKey?-1:1,o);return jo.push(r,w,"adjust-depth")},toggleBlockType:function(t,r){var o=t.getSelection(),i=o.getStartKey(),l=o.getEndKey(),c=t.getCurrentContent(),g=o;if(i!==l&&o.getEndOffset()===0){var v=uF(c.getBlockBefore(l));l=v.getKey(),g=g.merge({anchorKey:i,anchorOffset:o.getStartOffset(),focusKey:l,focusOffset:v.getLength(),isBackward:!1})}var b=c.getBlockMap().skipWhile(function(L,R){return R!==i}).reverse().skipWhile(function(L,R){return R!==l}).some(function(L){return L.getType()==="atomic"});if(b)return t;var w=c.getBlockForKey(i).getType()===r?"unstyled":r;return jo.push(t,ma.setBlockType(c,g,w),"change-block-type")},toggleCode:function(t){var r=t.getSelection(),o=r.getAnchorKey(),i=r.getFocusKey();return r.isCollapsed()||o!==i?Io.toggleBlockType(t,"code-block"):Io.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,r){var o=t.getSelection(),i=t.getCurrentInlineStyle();if(o.isCollapsed())return jo.setInlineStyleOverride(t,i.has(r)?i.remove(r):i.add(r));var l=t.getCurrentContent(),c;return i.has(r)?c=ma.removeInlineStyle(l,o,r):c=ma.applyInlineStyle(l,o,r),jo.push(t,c,"change-inline-style")},toggleLink:function(t,r,o){var i=ma.applyEntity(t.getCurrentContent(),r,o);return jo.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var r=t.getSelection(),o=r.getAnchorOffset();if(r.isCollapsed()&&o===0){var i=r.getAnchorKey(),l=t.getCurrentContent(),c=l.getBlockForKey(i),g=c.getType(),v=l.getBlockBefore(i);if(g==="code-block"&&v&&v.getType()==="code-block"&&v.getLength()!==0)return null;if(g!=="unstyled")return ma.setBlockType(l,r,"unstyled")}return null}},Gg=Io,sF=/\r\n?|\n/g;function cF(t){return t.split(sF)}var fF=cF,Df=kl,ev=$r,dF=eg,tv=cr,Pf=oF,nv=Vt,rv=Gg,ov=Gc,pF=ng,iv=ls,av=fF;function hF(t,r){r.preventDefault();var o=new dF(r.clipboardData);if(!o.isRichText()){var i=o.getFiles(),l=o.getText();if(i.length>0){if(t.props.handlePastedFiles&&iv(t.props.handlePastedFiles(i)))return;pF(i,function(Se){if(Se=Se||l,!!Se){var _e=t._latestEditorState,je=av(Se),ve=ev.create({style:_e.getCurrentInlineStyle(),entity:ov(_e.getCurrentContent(),_e.getSelection())}),xe=rv.getCurrentBlockType(_e),we=Pf.processText(je,ve,xe),he=Df.createFromArray(we),ge=tv.replaceWithFragment(_e.getCurrentContent(),_e.getSelection(),he);t.update(nv.push(_e,ge,"insert-fragment"))}});return}}var c=[],g=o.getText(),v=o.getHTML(),b=t._latestEditorState;if(t.props.formatPastedText){var w=t.props.formatPastedText(g,v),L=w.text,R=w.html;g=L,v=R}if(!(t.props.handlePastedText&&iv(t.props.handlePastedText(g,v,b)))){if(g&&(c=av(g)),!t.props.stripPastedStyles){var M=t.getClipboard();if(!t.props.formatPastedText&&o.isRichText()&&M){var z;if(((z=v)===null||z===void 0?void 0:z.indexOf(t.getEditorKey()))!==-1||c.length===1&&M.size===1&&M.first().getText()===g){t.update(us(t._latestEditorState,M));return}}else if(M&&o.types.includes("com.apple.webarchive")&&!o.types.includes("text/html")&&mF(c,M)){t.update(us(t._latestEditorState,M));return}if(v){var B=Pf.processHTML(v,t.props.blockRenderMap);if(B){var T=B.contentBlocks,I=B.entityMap;if(T){var G=Df.createFromArray(T);t.update(us(t._latestEditorState,G,I));return}}}t.setClipboard(null)}if(c.length){var Y=ev.create({style:b.getCurrentInlineStyle(),entity:ov(b.getCurrentContent(),b.getSelection())}),W=rv.getCurrentBlockType(b),J=Pf.processText(c,Y,W),le=Df.createFromArray(J);t.update(us(t._latestEditorState,le))}}}function us(t,r,o){var i=tv.replaceWithFragment(t.getCurrentContent(),t.getSelection(),r);return nv.push(t,i.set("entityMap",o),"insert-fragment")}function mF(t,r){return t.length===r.size&&r.valueSeq().every(function(o,i){return o.getText()===t[i]})}var gF=hF,lv=dr,vF=_2,yF=E2,bF=O2,_F=D2,wF=V2,SF=U2,xF=X2,EF=Y2,kF=LL,NF=iM,OF=gF,uv=vm,LF=lv.isBrowser("Chrome"),CF=lv.isBrowser("Firefox"),sv=LF||CF?uv:function(t){},MF={onBeforeInput:vF,onBlur:yF,onCompositionStart:bF,onCopy:_F,onCut:wF,onDragOver:SF,onDragStart:xF,onFocus:EF,onInput:kF,onKeyDown:NF,onPaste:OF,onSelect:uv,onMouseUp:sv,onKeyUp:sv},FF=MF,Bf={},DF={get exports(){return Bf},set exports(t){Bf=t}},pr={},Rf={},PF={get exports(){return Rf},set exports(t){Rf=t}},cv={};/**
|
|
29
29
|
* @license React
|
|
30
30
|
* scheduler.production.min.js
|
|
31
31
|
*
|
|
@@ -33,7 +33,7 @@ object-assign
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var
|
|
36
|
+
*/var fv;function BF(){return fv||(fv=1,function(t){function r(ue,fe){var ae=ue.length;ue.push(fe);e:for(;0<ae;){var Ce=ae-1>>>1,Je=ue[Ce];if(0<l(Je,fe))ue[Ce]=fe,ue[ae]=Je,ae=Ce;else break e}}function o(ue){return ue.length===0?null:ue[0]}function i(ue){if(ue.length===0)return null;var fe=ue[0],ae=ue.pop();if(ae!==fe){ue[0]=ae;e:for(var Ce=0,Je=ue.length,Et=Je>>>1;Ce<Et;){var Ft=2*(Ce+1)-1,Ve=ue[Ft],ze=Ft+1,dt=ue[ze];if(0>l(Ve,ae))ze<Je&&0>l(dt,Ve)?(ue[Ce]=dt,ue[ze]=ae,Ce=ze):(ue[Ce]=Ve,ue[Ft]=ae,Ce=Ft);else if(ze<Je&&0>l(dt,ae))ue[Ce]=dt,ue[ze]=ae,Ce=ze;else break e}}return fe}function l(ue,fe){var ae=ue.sortIndex-fe.sortIndex;return ae!==0?ae:ue.id-fe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var g=Date,v=g.now();t.unstable_now=function(){return g.now()-v}}var b=[],w=[],L=1,R=null,M=3,z=!1,B=!1,T=!1,I=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function W(ue){for(var fe=o(w);fe!==null;){if(fe.callback===null)i(w);else if(fe.startTime<=ue)i(w),fe.sortIndex=fe.expirationTime,r(b,fe);else break;fe=o(w)}}function J(ue){if(T=!1,W(ue),!B)if(o(b)!==null)B=!0,Fe(le);else{var fe=o(w);fe!==null&&Ae(J,fe.startTime-ue)}}function le(ue,fe){B=!1,T&&(T=!1,G(je),je=-1),z=!0;var ae=M;try{for(W(fe),R=o(b);R!==null&&(!(R.expirationTime>fe)||ue&&!we());){var Ce=R.callback;if(typeof Ce=="function"){R.callback=null,M=R.priorityLevel;var Je=Ce(R.expirationTime<=fe);fe=t.unstable_now(),typeof Je=="function"?R.callback=Je:R===o(b)&&i(b),W(fe)}else i(b);R=o(b)}if(R!==null)var Et=!0;else{var Ft=o(w);Ft!==null&&Ae(J,Ft.startTime-fe),Et=!1}return Et}finally{R=null,M=ae,z=!1}}var Se=!1,_e=null,je=-1,ve=5,xe=-1;function we(){return!(t.unstable_now()-xe<ve)}function he(){if(_e!==null){var ue=t.unstable_now();xe=ue;var fe=!0;try{fe=_e(!0,ue)}finally{fe?ge():(Se=!1,_e=null)}}else Se=!1}var ge;if(typeof Y=="function")ge=function(){Y(he)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,Ie=Le.port2;Le.port1.onmessage=he,ge=function(){Ie.postMessage(null)}}else ge=function(){I(he,0)};function Fe(ue){_e=ue,Se||(Se=!0,ge())}function Ae(ue,fe){je=I(function(){ue(t.unstable_now())},fe)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ue){ue.callback=null},t.unstable_continueExecution=function(){B||z||(B=!0,Fe(le))},t.unstable_forceFrameRate=function(ue){0>ue||125<ue?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ve=0<ue?Math.floor(1e3/ue):5},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return o(b)},t.unstable_next=function(ue){switch(M){case 1:case 2:case 3:var fe=3;break;default:fe=M}var ae=M;M=fe;try{return ue()}finally{M=ae}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(ue,fe){switch(ue){case 1:case 2:case 3:case 4:case 5:break;default:ue=3}var ae=M;M=ue;try{return fe()}finally{M=ae}},t.unstable_scheduleCallback=function(ue,fe,ae){var Ce=t.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ce+ae:Ce):ae=Ce,ue){case 1:var Je=-1;break;case 2:Je=250;break;case 5:Je=1073741823;break;case 4:Je=1e4;break;default:Je=5e3}return Je=ae+Je,ue={id:L++,callback:fe,priorityLevel:ue,startTime:ae,expirationTime:Je,sortIndex:-1},ae>Ce?(ue.sortIndex=ae,r(w,ue),o(b)===null&&ue===o(w)&&(T?(G(je),je=-1):T=!0,Ae(J,ae-Ce))):(ue.sortIndex=Je,r(b,ue),B||z||(B=!0,Fe(le))),ue},t.unstable_shouldYield=we,t.unstable_wrapCallback=function(ue){var fe=M;return function(){var ae=M;M=fe;try{return ue.apply(this,arguments)}finally{M=ae}}}}(cv)),cv}var dv;function RF(){return dv||(dv=1,function(t){t.exports=BF()}(PF)),Rf}/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-dom.production.min.js
|
|
39
39
|
*
|
|
@@ -41,14 +41,14 @@ object-assign
|
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var
|
|
45
|
-
`+
|
|
44
|
+
*/var pv;function TF(){if(pv)return pr;pv=1;var t=D,r=RF();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function c(e,n){g(e,n),g(e+"Capture",n)}function g(e,n){for(l[e]=n,e=0;e<n.length;e++)i.add(n[e])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),b=Object.prototype.hasOwnProperty,w=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L={},R={};function M(e){return b.call(R,e)?!0:b.call(L,e)?!1:w.test(e)?R[e]=!0:(L[e]=!0,!1)}function z(e,n,a,s){if(a!==null&&a.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return s?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B(e,n,a,s){if(n===null||typeof n>"u"||z(e,n,a,s))return!0;if(s)return!1;if(a!==null)switch(a.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function T(e,n,a,s,d,m,k){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=s,this.attributeNamespace=d,this.mustUseProperty=a,this.propertyName=e,this.type=n,this.sanitizeURL=m,this.removeEmptyString=k}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];I[n]=new T(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new T(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){I[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var G=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(G,Y);I[n]=new T(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(G,Y);I[n]=new T(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(G,Y);I[n]=new T(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function W(e,n,a,s){var d=I.hasOwnProperty(n)?I[n]:null;(d!==null?d.type!==0:s||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(B(n,a,d,s)&&(a=null),s||d===null?M(n)&&(a===null?e.removeAttribute(n):e.setAttribute(n,""+a)):d.mustUseProperty?e[d.propertyName]=a===null?d.type===3?!1:"":a:(n=d.attributeName,s=d.attributeNamespace,a===null?e.removeAttribute(n):(d=d.type,a=d===3||d===4&&a===!0?"":""+a,s?e.setAttributeNS(s,n,a):e.setAttribute(n,a))))}var J=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,le=Symbol.for("react.element"),Se=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),we=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),Fe=Symbol.for("react.lazy"),Ae=Symbol.for("react.offscreen"),ue=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Object.assign,Ce;function Je(e){if(Ce===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Ce=n&&n[1]||""}return`
|
|
45
|
+
`+Ce+e}var Et=!1;function Ft(e,n){if(!e||Et)return"";Et=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(ee){var s=ee}Reflect.construct(e,[],n)}else{try{n.call()}catch(ee){s=ee}e.call(n.prototype)}else{try{throw Error()}catch(ee){s=ee}e()}}catch(ee){if(ee&&s&&typeof ee.stack=="string"){for(var d=ee.stack.split(`
|
|
46
46
|
`),m=s.stack.split(`
|
|
47
|
-
`),k=d.length-1,
|
|
48
|
-
`+d[k].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=k&&0<=I);break}}}finally{Et=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Je(e):""}function qe(e){switch(e.tag){case 5:return Je(e.type);case 16:return Je("Lazy");case 13:return Je("Suspense");case 19:return Je("SuspenseList");case 0:case 2:case 15:return e=Ct(e.type,!1),e;case 11:return e=Ct(e.type.render,!1),e;case 1:return e=Ct(e.type,!0),e;default:return""}}function Te(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _e:return"Fragment";case Se:return"Portal";case ve:return"Profiler";case Ie:return"StrictMode";case ge:return"Suspense";case De:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case we:return(e.displayName||"Context")+".Consumer";case xe:return(e._context.displayName||"Context")+".Provider";case he:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case je:return n=e.displayName||null,n!==null?n:Te(e.type)||"Memo";case Ce:n=e._payload,e=e._init;try{return Te(e(n))}catch{}}return null}function dt(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Te(n);case 8:return n===Ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Rt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function It(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ft(e){var n=It(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,m=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(k){s=""+k,m.call(this,k)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(k){s=""+k},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function kt(e){e._valueTracker||(e._valueTracker=Ft(e))}function en(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return e&&(s=It(e)?e.checked?"true":"false":e.value),e=s,e!==o?(n.setValue(e),!0):!1}function Xe(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function st(e,n){var o=n.checked;return ae({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function ut(e,n){var o=n.defaultValue==null?"":n.defaultValue,s=n.checked!=null?n.checked:n.defaultChecked;o=Rt(n.value!=null?n.value:o),e._wrapperState={initialChecked:s,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Pt(e,n){n=n.checked,n!=null&&W(e,"checked",n,!1)}function hn(e,n){Pt(e,n);var o=Rt(n.value),s=n.type;if(o!=null)s==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Nt(e,n.type,o):n.hasOwnProperty("defaultValue")&&Nt(e,n.type,Rt(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Bt(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var s=n.type;if(!(s!=="submit"&&s!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Nt(e,n,o){(n!=="number"||Xe(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var rt=Array.isArray;function pt(e,n,o,s){if(e=e.options,n){n={};for(var d=0;d<o.length;d++)n["$"+o[d]]=!0;for(o=0;o<e.length;o++)d=n.hasOwnProperty("$"+e[o].value),e[o].selected!==d&&(e[o].selected=d),d&&s&&(e[o].defaultSelected=!0)}else{for(o=""+Rt(o),n=null,d=0;d<e.length;d++){if(e[d].value===o){e[d].selected=!0,s&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function Kt(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return ae({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fe(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(rt(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:Rt(o)}}function nt(e,n){var o=Rt(n.value),s=Rt(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),s!=null&&(e.defaultValue=""+s)}function Ye(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function ht(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?ht(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Sn,ct=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,s,d){MSApp.execUnsafeLocalFunction(function(){return e(n,o,s,d)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Sn=Sn||document.createElement("div"),Sn.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Sn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function xn(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var tn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pr=["Webkit","ms","Moz","O"];Object.keys(tn).forEach(function(e){pr.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),tn[n]=tn[e]})});function Vn(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||tn.hasOwnProperty(e)&&tn[e]?(""+n).trim():n+"px"}function ro(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var s=o.indexOf("--")===0,d=Vn(o,n[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,d):e[o]=d}}var jt=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _i(e,n){if(n){if(jt[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Jt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wi=null;function fn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qt=null,zn=null,it=null;function Qn(e){if(e=nu(e)){if(typeof qt!="function")throw Error(i(280));var n=e.stateNode;n&&(n=xs(n),qt(e.stateNode,e.type,n))}}function Xn(e){zn?it?it.push(e):it=[e]:zn=e}function er(){if(zn){var e=zn,n=it;if(it=zn=null,Qn(e),n)for(e=0;e<n.length;e++)Qn(n[e])}}function En(e,n){return e(n)}function Mr(){}var Tt=!1;function io(e,n,o){if(Tt)return e(n,o);Tt=!0;try{return En(e,n,o)}finally{Tt=!1,(zn!==null||it!==null)&&(Mr(),er())}}function tr(e,n){var o=e.stateNode;if(o===null)return null;var s=xs(o);if(s===null)return null;o=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Si=!1;if(y)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){Si=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{Si=!1}function oo(e,n,o,s,d,m,k,I,H){var ee=Array.prototype.slice.call(arguments,3);try{n.apply(o,ee)}catch(ce){this.onError(ce)}}var Gr=!1,ei=null,ti=!1,hr=null,mr={onError:function(e){Gr=!0,ei=e}};function ji(e,n,o,s,d,m,k,I,H){Gr=!1,ei=null,oo.apply(mr,arguments)}function ao(e,n,o,s,d,m,k,I,H){if(ji.apply(this,arguments),Gr){if(Gr){var ee=ei;Gr=!1,ei=null}else throw Error(i(198));ti||(ti=!0,hr=ee)}}function nr(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function gr(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function mn(e){if(nr(e)!==e)throw Error(i(188))}function at(e){var n=e.alternate;if(!n){if(n=nr(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,s=n;;){var d=o.return;if(d===null)break;var m=d.alternate;if(m===null){if(s=d.return,s!==null){o=s;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===o)return mn(d),e;if(m===s)return mn(d),n;m=m.sibling}throw Error(i(188))}if(o.return!==s.return)o=d,s=m;else{for(var k=!1,I=d.child;I;){if(I===o){k=!0,o=d,s=m;break}if(I===s){k=!0,s=d,o=m;break}I=I.sibling}if(!k){for(I=m.child;I;){if(I===o){k=!0,o=m,s=d;break}if(I===s){k=!0,s=m,o=d;break}I=I.sibling}if(!k)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function Cr(e){return e=at(e),e!==null?Br(e):null}function Br(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Br(e);if(n!==null)return n;e=e.sibling}return null}var tt=r.unstable_scheduleCallback,Fr=r.unstable_cancelCallback,Pr=r.unstable_shouldYield,ni=r.unstable_requestPaint,vt=r.unstable_now,zt=r.unstable_getCurrentPriorityLevel,ri=r.unstable_ImmediatePriority,ii=r.unstable_UserBlockingPriority,Kr=r.unstable_NormalPriority,Ti=r.unstable_LowPriority,vr=r.unstable_IdlePriority,Wt=null,Bn=null;function Rr(e){if(Bn&&typeof Bn.onCommitFiberRoot=="function")try{Bn.onCommitFiberRoot(Wt,e,void 0,(e.current.flags&128)===128)}catch{}}var un=Math.clz32?Math.clz32:uo,xi=Math.log,lo=Math.LN2;function uo(e){return e>>>=0,e===0?32:31-(xi(e)/lo|0)|0}var Ir=64,yr=4194304;function jr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Tr(e,n){var o=e.pendingLanes;if(o===0)return 0;var s=0,d=e.suspendedLanes,m=e.pingedLanes,k=o&268435455;if(k!==0){var I=k&~d;I!==0?s=jr(I):(m&=k,m!==0&&(s=jr(m)))}else k=o&~d,k!==0?s=jr(k):m!==0&&(s=jr(m));if(s===0)return 0;if(n!==0&&n!==s&&!(n&d)&&(d=s&-s,m=n&-n,d>=m||d===16&&(m&4194240)!==0))return n;if(s&4&&(s|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=s;0<n;)o=31-un(n),d=1<<o,s|=e[o],n&=~d;return s}function p(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function S(e,n){for(var o=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,m=e.pendingLanes;0<m;){var k=31-un(m),I=1<<k,H=d[k];H===-1?(!(I&o)||I&s)&&(d[k]=p(I,n)):H<=n&&(e.expiredLanes|=I),m&=~I}}function O(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B(){var e=Ir;return Ir<<=1,!(Ir&4194240)&&(Ir=64),e}function X(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function U(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-un(n),e[n]=o}function ie(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<o;){var d=31-un(o),m=1<<d;n[d]=0,s[d]=-1,e[d]=-1,o&=~m}}function me(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var s=31-un(o),d=1<<s;d&n|e[s]&n&&(e[s]|=n),o&=~d}}var be=0;function Ee(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var We,St,Ot,nn,sn,br=!1,gn=[],Hn=null,vn=null,rr=null,Fn=new Map,An=new Map,zr=[],oi="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function so(e,n){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":Fn.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":An.delete(n.pointerId)}}function Hr(e,n,o,s,d,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:o,eventSystemFlags:s,nativeEvent:m,targetContainers:[d]},n!==null&&(n=nu(n),n!==null&&St(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function Xt(e,n,o,s,d){switch(n){case"focusin":return Hn=Hr(Hn,e,n,o,s,d),!0;case"dragenter":return vn=Hr(vn,e,n,o,s,d),!0;case"mouseover":return rr=Hr(rr,e,n,o,s,d),!0;case"pointerover":var m=d.pointerId;return Fn.set(m,Hr(Fn.get(m)||null,e,n,o,s,d)),!0;case"gotpointercapture":return m=d.pointerId,An.set(m,Hr(An.get(m)||null,e,n,o,s,d)),!0}return!1}function ir(e){var n=wa(e.target);if(n!==null){var o=nr(n);if(o!==null){if(n=o.tag,n===13){if(n=gr(o),n!==null){e.blockedOn=n,sn(e.priority,function(){Ot(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ai(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Hi(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);wi=s,o.target.dispatchEvent(s),wi=null}else return n=nu(o),n!==null&&St(n),e.blockedOn=o,!1;n.shift()}return!0}function zi(e,n,o){ai(e)&&o.delete(n)}function yt(){br=!1,Hn!==null&&ai(Hn)&&(Hn=null),vn!==null&&ai(vn)&&(vn=null),rr!==null&&ai(rr)&&(rr=null),Fn.forEach(zi),An.forEach(zi)}function _r(e,n){e.blockedOn===n&&(e.blockedOn=null,br||(br=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,yt)))}function rn(e){function n(d){return _r(d,e)}if(0<gn.length){_r(gn[0],e);for(var o=1;o<gn.length;o++){var s=gn[o];s.blockedOn===e&&(s.blockedOn=null)}}for(Hn!==null&&_r(Hn,e),vn!==null&&_r(vn,e),rr!==null&&_r(rr,e),Fn.forEach(n),An.forEach(n),o=0;o<zr.length;o++)s=zr[o],s.blockedOn===e&&(s.blockedOn=null);for(;0<zr.length&&(o=zr[0],o.blockedOn===null);)ir(o),o.blockedOn===null&&zr.shift()}var kn=J.ReactCurrentBatchConfig,yn=!0;function Ar(e,n,o,s){var d=be,m=kn.transition;kn.transition=null;try{be=1,co(e,n,o,s)}finally{be=d,kn.transition=m}}function li(e,n,o,s){var d=be,m=kn.transition;kn.transition=null;try{be=4,co(e,n,o,s)}finally{be=d,kn.transition=m}}function co(e,n,o,s){if(yn){var d=Hi(e,n,o,s);if(d===null)Jf(e,n,s,ui,o),so(e,s);else if(Xt(d,e,n,o,s))s.stopPropagation();else if(so(e,s),n&4&&-1<oi.indexOf(e)){for(;d!==null;){var m=nu(d);if(m!==null&&We(m),m=Hi(e,n,o,s),m===null&&Jf(e,n,s,ui,o),m===d)break;d=m}d!==null&&s.stopPropagation()}else Jf(e,n,s,null,o)}}var ui=null;function Hi(e,n,o,s){if(ui=null,e=fn(s),e=wa(e),e!==null)if(n=nr(e),n===null)e=null;else if(o=n.tag,o===13){if(e=gr(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return ui=e,null}function ma(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(zt()){case ri:return 1;case ii:return 4;case Kr:case Ti:return 16;case vr:return 536870912;default:return 16}default:return 16}}var qr=null,Ai=null,Po=null;function ga(){if(Po)return Po;var e,n=Ai,o=n.length,s,d="value"in qr?qr.value:qr.textContent,m=d.length;for(e=0;e<o&&n[e]===d[e];e++);var k=o-e;for(s=1;s<=k&&n[o-s]===d[m-s];s++);return Po=d.slice(e,1<s?1-s:void 0)}function Ei(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function qi(){return!0}function fo(){return!1}function Nn(e){function n(o,s,d,m,k){this._reactName=o,this._targetInst=d,this.type=s,this.nativeEvent=m,this.target=k,this.currentTarget=null;for(var I in e)e.hasOwnProperty(I)&&(o=e[I],this[I]=o?o(m):m[I]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?qi:fo,this.isPropagationStopped=fo,this}return ae(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=qi)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),n}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=Nn(or),Ui=ae({},or,{view:0,detail:0}),po=Nn(Ui),ft,si,Ur,Vi=ae({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ur&&(Ur&&e.type==="mousemove"?(ft=e.screenX-Ur.screenX,si=e.screenY-Ur.screenY):si=ft=0,Ur=e),ft)},movementY:function(e){return"movementY"in e?e.movementY:si}}),Zn=Nn(Vi),Ko=ae({},Vi,{dataTransfer:0}),Ro=Nn(Ko),Pn=ae({},Ui,{relatedTarget:0}),bn=Nn(Pn),on=ae({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),Io=Nn(on),va=ae({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jo=Nn(va),Ja=ae({},or,{data:0}),Dt=Nn(Ja),Qi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ho={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function To(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Kn[e])?!!n[e]:!1}function mo(){return To}var zo=ae({},Ui,{key:function(e){if(e.key){var n=Qi[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ho[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mo,charCode:function(e){return e.type==="keypress"?Ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ho=Nn(zo),h=ae({},Vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_=Nn(h),N=ae({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mo}),C=Nn(N),Z=ae({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),V=Nn(Z),ne=ae({},Vi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),pe=Nn(ne),Ae=[9,13,27,32],Ze=y&&"CompositionEvent"in window,Ue=null;y&&"documentMode"in document&&(Ue=document.documentMode);var Mt=y&&"TextEvent"in window&&!Ue,_n=y&&(!Ze||Ue&&8<Ue&&11>=Ue),Zt=String.fromCharCode(32),xt=!1;function ci(e,n){switch(e){case"keyup":return Ae.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ya(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fi=!1;function Wa(e,n){switch(e){case"compositionend":return ya(n);case"keypress":return n.which!==32?null:(xt=!0,Zt);case"textInput":return e=n.data,e===Zt&&xt?null:e;default:return null}}function ps(e,n){if(fi)return e==="compositionend"||!Ze&&ci(e,n)?(e=ga(),Po=Ai=qr=null,fi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return _n&&n.locale!=="ko"?null:n.data;default:return null}}var hs={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ms(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!hs[e.type]:n==="textarea"}function Yl(e,n,o,s){Xn(s),n=_s(n,"onChange"),0<n.length&&(o=new wr("onChange","change",null,o,s),e.push({event:o,listeners:n}))}var ba=null,_a=null;function gs(e){xy(e,0)}function Ga(e){var n=il(e);if(en(n))return e}function l(e,n){if(e==="change")return n}var f=!1;if(y){var v;if(y){var x="oninput"in document;if(!x){var E=document.createElement("div");E.setAttribute("oninput","return;"),x=typeof E.oninput=="function"}v=x}else v=!1;f=v&&(!document.documentMode||9<document.documentMode)}function M(){ba&&(ba.detachEvent("onpropertychange",z),_a=ba=null)}function z(e){if(e.propertyName==="value"&&Ga(_a)){var n=[];Yl(n,_a,e,fn(e)),io(gs,n)}}function q(e,n,o){e==="focusin"?(M(),ba=n,_a=o,ba.attachEvent("onpropertychange",z)):e==="focusout"&&M()}function te(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ga(_a)}function re(e,n){if(e==="click")return Ga(n)}function oe(e,n){if(e==="input"||e==="change")return Ga(n)}function Ne(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var ke=typeof Object.is=="function"?Object.is:Ne;function $e(e,n){if(ke(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var d=o[s];if(!b.call(n,d)||!ke(e[d],n[d]))return!1}return!0}function lt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ht(e,n){var o=lt(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=n&&s>=n)return{node:o,offset:n-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=lt(o)}}function Sr(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Sr(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Vr(){for(var e=window,n=Xe();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Xe(e.document)}return n}function Ao(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function u2(e){var n=Vr(),o=e.focusedElem,s=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Sr(o.ownerDocument.documentElement,o)){if(s!==null&&Ao(o)){if(n=s.start,e=s.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=o.textContent.length,m=Math.min(s.start,d);s=s.end===void 0?m:Math.min(s.end,d),!e.extend&&m>s&&(d=s,s=m,m=d),d=Ht(o,m);var k=Ht(o,s);d&&k&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==k.node||e.focusOffset!==k.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),m>s?(e.addRange(n),e.extend(k.node,k.offset)):(n.setEnd(k.node,k.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var s2=y&&"documentMode"in document&&11>=document.documentMode,el=null,Vf=null,Jl=null,Qf=!1;function hy(e,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qf||el==null||el!==Xe(s)||(s=el,"selectionStart"in s&&Ao(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Jl&&$e(Jl,s)||(Jl=s,s=_s(Vf,"onSelect"),0<s.length&&(n=new wr("onSelect","select",null,n,o),e.push({event:n,listeners:s}),n.target=el)))}function vs(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var tl={animationend:vs("Animation","AnimationEnd"),animationiteration:vs("Animation","AnimationIteration"),animationstart:vs("Animation","AnimationStart"),transitionend:vs("Transition","TransitionEnd")},Xf={},my={};y&&(my=document.createElement("div").style,"AnimationEvent"in window||(delete tl.animationend.animation,delete tl.animationiteration.animation,delete tl.animationstart.animation),"TransitionEvent"in window||delete tl.transitionend.transition);function ys(e){if(Xf[e])return Xf[e];if(!tl[e])return e;var n=tl[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in my)return Xf[e]=n[o];return e}var gy=ys("animationend"),vy=ys("animationiteration"),yy=ys("animationstart"),by=ys("transitionend"),_y=new Map,wy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function qo(e,n){_y.set(e,n),c(n,[e])}for(var Zf=0;Zf<wy.length;Zf++){var $f=wy[Zf],c2=$f.toLowerCase(),f2=$f[0].toUpperCase()+$f.slice(1);qo(c2,"on"+f2)}qo(gy,"onAnimationEnd"),qo(vy,"onAnimationIteration"),qo(yy,"onAnimationStart"),qo("dblclick","onDoubleClick"),qo("focusin","onFocus"),qo("focusout","onBlur"),qo(by,"onTransitionEnd"),g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),d2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wl));function Sy(e,n,o){var s=e.type||"unknown-event";e.currentTarget=o,ao(s,n,void 0,e),e.currentTarget=null}function xy(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],d=s.event;s=s.listeners;e:{var m=void 0;if(n)for(var k=s.length-1;0<=k;k--){var I=s[k],H=I.instance,ee=I.currentTarget;if(I=I.listener,H!==m&&d.isPropagationStopped())break e;Sy(d,I,ee),m=H}else for(k=0;k<s.length;k++){if(I=s[k],H=I.instance,ee=I.currentTarget,I=I.listener,H!==m&&d.isPropagationStopped())break e;Sy(d,I,ee),m=H}}}if(ti)throw e=hr,ti=!1,hr=null,e}function $t(e,n){var o=n[rd];o===void 0&&(o=n[rd]=new Set);var s=e+"__bubble";o.has(s)||(Ey(n,e,2,!1),o.add(s))}function Yf(e,n,o){var s=0;n&&(s|=4),Ey(o,e,s,n)}var bs="_reactListening"+Math.random().toString(36).slice(2);function Gl(e){if(!e[bs]){e[bs]=!0,a.forEach(function(o){o!=="selectionchange"&&(d2.has(o)||Yf(o,!1,e),Yf(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[bs]||(n[bs]=!0,Yf("selectionchange",!1,n))}}function Ey(e,n,o,s){switch(ma(n)){case 1:var d=Ar;break;case 4:d=li;break;default:d=co}o=d.bind(null,n,o,e),d=void 0,!Si||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),s?d!==void 0?e.addEventListener(n,o,{capture:!0,passive:d}):e.addEventListener(n,o,!0):d!==void 0?e.addEventListener(n,o,{passive:d}):e.addEventListener(n,o,!1)}function Jf(e,n,o,s,d){var m=s;if(!(n&1)&&!(n&2)&&s!==null)e:for(;;){if(s===null)return;var k=s.tag;if(k===3||k===4){var I=s.stateNode.containerInfo;if(I===d||I.nodeType===8&&I.parentNode===d)break;if(k===4)for(k=s.return;k!==null;){var H=k.tag;if((H===3||H===4)&&(H=k.stateNode.containerInfo,H===d||H.nodeType===8&&H.parentNode===d))return;k=k.return}for(;I!==null;){if(k=wa(I),k===null)return;if(H=k.tag,H===5||H===6){s=m=k;continue e}I=I.parentNode}}s=s.return}io(function(){var ee=m,ce=fn(o),de=[];e:{var se=_y.get(e);if(se!==void 0){var Oe=wr,Be=e;switch(e){case"keypress":if(Ei(o)===0)break e;case"keydown":case"keyup":Oe=Ho;break;case"focusin":Be="focus",Oe=bn;break;case"focusout":Be="blur",Oe=bn;break;case"beforeblur":case"afterblur":Oe=bn;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Oe=Zn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=Ro;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=C;break;case gy:case vy:case yy:Oe=Io;break;case by:Oe=V;break;case"scroll":Oe=po;break;case"wheel":Oe=pe;break;case"copy":case"cut":case"paste":Oe=jo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=_}var Pe=(n&4)!==0,dn=!Pe&&e==="scroll",Q=Pe?se!==null?se+"Capture":null:se;Pe=[];for(var A=ee,$;A!==null;){$=A;var ye=$.stateNode;if($.tag===5&&ye!==null&&($=ye,Q!==null&&(ye=tr(A,Q),ye!=null&&Pe.push(eu(A,ye,$)))),dn)break;A=A.return}0<Pe.length&&(se=new Oe(se,Be,null,o,ce),de.push({event:se,listeners:Pe}))}}if(!(n&7)){e:{if(se=e==="mouseover"||e==="pointerover",Oe=e==="mouseout"||e==="pointerout",se&&o!==wi&&(Be=o.relatedTarget||o.fromElement)&&(wa(Be)||Be[go]))break e;if((Oe||se)&&(se=ce.window===ce?ce:(se=ce.ownerDocument)?se.defaultView||se.parentWindow:window,Oe?(Be=o.relatedTarget||o.toElement,Oe=ee,Be=Be?wa(Be):null,Be!==null&&(dn=nr(Be),Be!==dn||Be.tag!==5&&Be.tag!==6)&&(Be=null)):(Oe=null,Be=ee),Oe!==Be)){if(Pe=Zn,ye="onMouseLeave",Q="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(Pe=_,ye="onPointerLeave",Q="onPointerEnter",A="pointer"),dn=Oe==null?se:il(Oe),$=Be==null?se:il(Be),se=new Pe(ye,A+"leave",Oe,o,ce),se.target=dn,se.relatedTarget=$,ye=null,wa(ce)===ee&&(Pe=new Pe(Q,A+"enter",Be,o,ce),Pe.target=$,Pe.relatedTarget=dn,ye=Pe),dn=ye,Oe&&Be)t:{for(Pe=Oe,Q=Be,A=0,$=Pe;$;$=nl($))A++;for($=0,ye=Q;ye;ye=nl(ye))$++;for(;0<A-$;)Pe=nl(Pe),A--;for(;0<$-A;)Q=nl(Q),$--;for(;A--;){if(Pe===Q||Q!==null&&Pe===Q.alternate)break t;Pe=nl(Pe),Q=nl(Q)}Pe=null}else Pe=null;Oe!==null&&ky(de,se,Oe,Pe,!1),Be!==null&&dn!==null&&ky(de,dn,Be,Pe,!0)}}e:{if(se=ee?il(ee):window,Oe=se.nodeName&&se.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&se.type==="file")var Ke=l;else if(ms(se))if(f)Ke=oe;else{Ke=te;var Ve=q}else(Oe=se.nodeName)&&Oe.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(Ke=re);if(Ke&&(Ke=Ke(e,ee))){Yl(de,Ke,o,ce);break e}Ve&&Ve(e,se,ee),e==="focusout"&&(Ve=se._wrapperState)&&Ve.controlled&&se.type==="number"&&Nt(se,"number",se.value)}switch(Ve=ee?il(ee):window,e){case"focusin":(ms(Ve)||Ve.contentEditable==="true")&&(el=Ve,Vf=ee,Jl=null);break;case"focusout":Jl=Vf=el=null;break;case"mousedown":Qf=!0;break;case"contextmenu":case"mouseup":case"dragend":Qf=!1,hy(de,o,ce);break;case"selectionchange":if(s2)break;case"keydown":case"keyup":hy(de,o,ce)}var Qe;if(Ze)e:{switch(e){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else fi?ci(e,o)&&(et="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(et="onCompositionStart");et&&(_n&&o.locale!=="ko"&&(fi||et!=="onCompositionStart"?et==="onCompositionEnd"&&fi&&(Qe=ga()):(qr=ce,Ai="value"in qr?qr.value:qr.textContent,fi=!0)),Ve=_s(ee,et),0<Ve.length&&(et=new Dt(et,e,null,o,ce),de.push({event:et,listeners:Ve}),Qe?et.data=Qe:(Qe=ya(o),Qe!==null&&(et.data=Qe)))),(Qe=Mt?Wa(e,o):ps(e,o))&&(ee=_s(ee,"onBeforeInput"),0<ee.length&&(ce=new Dt("onBeforeInput","beforeinput",null,o,ce),de.push({event:ce,listeners:ee}),ce.data=Qe))}xy(de,n)})}function eu(e,n,o){return{instance:e,listener:n,currentTarget:o}}function _s(e,n){for(var o=n+"Capture",s=[];e!==null;){var d=e,m=d.stateNode;d.tag===5&&m!==null&&(d=m,m=tr(e,o),m!=null&&s.unshift(eu(e,m,d)),m=tr(e,n),m!=null&&s.push(eu(e,m,d))),e=e.return}return s}function nl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ky(e,n,o,s,d){for(var m=n._reactName,k=[];o!==null&&o!==s;){var I=o,H=I.alternate,ee=I.stateNode;if(H!==null&&H===s)break;I.tag===5&&ee!==null&&(I=ee,d?(H=tr(o,m),H!=null&&k.unshift(eu(o,H,I))):d||(H=tr(o,m),H!=null&&k.push(eu(o,H,I)))),o=o.return}k.length!==0&&e.push({event:n,listeners:k})}var p2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function Ny(e){return(typeof e=="string"?e:""+e).replace(p2,`
|
|
49
|
-
`).replace(h2,"")}function ws(e,n,o){if(n=Ny(n),Ny(e)!==n&&o)throw Error(i(425))}function Ss(){}var Wf=null,Gf=null;function ed(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var td=typeof setTimeout=="function"?setTimeout:void 0,m2=typeof clearTimeout=="function"?clearTimeout:void 0,Oy=typeof Promise=="function"?Promise:void 0,g2=typeof queueMicrotask=="function"?queueMicrotask:typeof Oy<"u"?function(e){return Oy.resolve(null).then(e).catch(v2)}:td;function v2(e){setTimeout(function(){throw e})}function nd(e,n){var o=n,s=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(s===0){e.removeChild(d),rn(n);return}s--}else o!=="$"&&o!=="$?"&&o!=="$!"||s++;o=d}while(o);rn(n)}function Uo(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Dy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var rl=Math.random().toString(36).slice(2),Xi="__reactFiber$"+rl,tu="__reactProps$"+rl,go="__reactContainer$"+rl,rd="__reactEvents$"+rl,y2="__reactListeners$"+rl,b2="__reactHandles$"+rl;function wa(e){var n=e[Xi];if(n)return n;for(var o=e.parentNode;o;){if(n=o[go]||o[Xi]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Dy(e);e!==null;){if(o=e[Xi])return o;e=Dy(e)}return n}e=o,o=e.parentNode}return null}function nu(e){return e=e[Xi]||e[go],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function il(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function xs(e){return e[tu]||null}var id=[],ol=-1;function Vo(e){return{current:e}}function Yt(e){0>ol||(e.current=id[ol],id[ol]=null,ol--)}function Ut(e,n){ol++,id[ol]=e.current,e.current=n}var Qo={},$n=Vo(Qo),xr=Vo(!1),Sa=Qo;function al(e,n){var o=e.type.contextTypes;if(!o)return Qo;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===n)return s.__reactInternalMemoizedMaskedChildContext;var d={},m;for(m in o)d[m]=n[m];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function Er(e){return e=e.childContextTypes,e!=null}function Es(){Yt(xr),Yt($n)}function My(e,n,o){if($n.current!==Qo)throw Error(i(168));Ut($n,n),Ut(xr,o)}function Ly(e,n,o){var s=e.stateNode;if(n=n.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var d in s)if(!(d in n))throw Error(i(108,dt(e)||"Unknown",d));return ae({},o,s)}function ks(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qo,Sa=$n.current,Ut($n,e),Ut(xr,xr.current),!0}function Cy(e,n,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=Ly(e,n,Sa),s.__reactInternalMemoizedMergedChildContext=e,Yt(xr),Yt($n),Ut($n,e)):Yt(xr),Ut(xr,o)}var vo=null,Ns=!1,od=!1;function By(e){vo===null?vo=[e]:vo.push(e)}function _2(e){Ns=!0,By(e)}function Xo(){if(!od&&vo!==null){od=!0;var e=0,n=be;try{var o=vo;for(be=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}vo=null,Ns=!1}catch(d){throw vo!==null&&(vo=vo.slice(e+1)),tt(ri,Xo),d}finally{be=n,od=!1}}return null}var ll=[],ul=0,Os=null,Ds=0,di=[],pi=0,xa=null,yo=1,bo="";function Ea(e,n){ll[ul++]=Ds,ll[ul++]=Os,Os=e,Ds=n}function Fy(e,n,o){di[pi++]=yo,di[pi++]=bo,di[pi++]=xa,xa=e;var s=yo;e=bo;var d=32-un(s)-1;s&=~(1<<d),o+=1;var m=32-un(n)+d;if(30<m){var k=d-d%5;m=(s&(1<<k)-1).toString(32),s>>=k,d-=k,yo=1<<32-un(n)+d|o<<d|s,bo=m+e}else yo=1<<m|o<<d|s,bo=e}function ad(e){e.return!==null&&(Ea(e,1),Fy(e,1,0))}function ld(e){for(;e===Os;)Os=ll[--ul],ll[ul]=null,Ds=ll[--ul],ll[ul]=null;for(;e===xa;)xa=di[--pi],di[pi]=null,bo=di[--pi],di[pi]=null,yo=di[--pi],di[pi]=null}var Qr=null,Xr=null,Gt=!1,ki=null;function Py(e,n){var o=vi(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Ky(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Qr=e,Xr=Uo(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Qr=e,Xr=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=xa!==null?{id:yo,overflow:bo}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=vi(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,Qr=e,Xr=null,!0):!1;default:return!1}}function ud(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sd(e){if(Gt){var n=Xr;if(n){var o=n;if(!Ky(e,n)){if(ud(e))throw Error(i(418));n=Uo(o.nextSibling);var s=Qr;n&&Ky(e,n)?Py(s,o):(e.flags=e.flags&-4097|2,Gt=!1,Qr=e)}}else{if(ud(e))throw Error(i(418));e.flags=e.flags&-4097|2,Gt=!1,Qr=e}}}function Ry(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qr=e}function Ms(e){if(e!==Qr)return!1;if(!Gt)return Ry(e),Gt=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!ed(e.type,e.memoizedProps)),n&&(n=Xr)){if(ud(e))throw Iy(),Error(i(418));for(;n;)Py(e,n),n=Uo(n.nextSibling)}if(Ry(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Xr=Uo(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Xr=null}}else Xr=Qr?Uo(e.stateNode.nextSibling):null;return!0}function Iy(){for(var e=Xr;e;)e=Uo(e.nextSibling)}function sl(){Xr=Qr=null,Gt=!1}function cd(e){ki===null?ki=[e]:ki.push(e)}var w2=J.ReactCurrentBatchConfig;function Ni(e,n){if(e&&e.defaultProps){n=ae({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}var Ls=Vo(null),Cs=null,cl=null,fd=null;function dd(){fd=cl=Cs=null}function pd(e){var n=Ls.current;Yt(Ls),e._currentValue=n}function hd(e,n,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===o)break;e=e.return}}function fl(e,n){Cs=e,fd=cl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(kr=!0),e.firstContext=null)}function hi(e){var n=e._currentValue;if(fd!==e)if(e={context:e,memoizedValue:n,next:null},cl===null){if(Cs===null)throw Error(i(308));cl=e,Cs.dependencies={lanes:0,firstContext:e}}else cl=cl.next=e;return n}var ka=null;function md(e){ka===null?ka=[e]:ka.push(e)}function jy(e,n,o,s){var d=n.interleaved;return d===null?(o.next=o,md(n)):(o.next=d.next,d.next=o),n.interleaved=o,_o(e,s)}function _o(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Zo=!1;function gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ty(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wo(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function $o(e,n,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,bt&2){var d=s.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),s.pending=n,_o(e,o)}return d=s.interleaved,d===null?(n.next=n,md(s)):(n.next=d.next,d.next=n),s.interleaved=n,_o(e,o)}function Bs(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,me(e,o)}}function zy(e,n){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var d=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var k={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};m===null?d=m=k:m=m.next=k,o=o.next}while(o!==null);m===null?d=m=n:m=m.next=n}else d=m=n;o={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function Fs(e,n,o,s){var d=e.updateQueue;Zo=!1;var m=d.firstBaseUpdate,k=d.lastBaseUpdate,I=d.shared.pending;if(I!==null){d.shared.pending=null;var H=I,ee=H.next;H.next=null,k===null?m=ee:k.next=ee,k=H;var ce=e.alternate;ce!==null&&(ce=ce.updateQueue,I=ce.lastBaseUpdate,I!==k&&(I===null?ce.firstBaseUpdate=ee:I.next=ee,ce.lastBaseUpdate=H))}if(m!==null){var de=d.baseState;k=0,ce=ee=H=null,I=m;do{var se=I.lane,Oe=I.eventTime;if((s&se)===se){ce!==null&&(ce=ce.next={eventTime:Oe,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var Be=e,Pe=I;switch(se=n,Oe=o,Pe.tag){case 1:if(Be=Pe.payload,typeof Be=="function"){de=Be.call(Oe,de,se);break e}de=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Pe.payload,se=typeof Be=="function"?Be.call(Oe,de,se):Be,se==null)break e;de=ae({},de,se);break e;case 2:Zo=!0}}I.callback!==null&&I.lane!==0&&(e.flags|=64,se=d.effects,se===null?d.effects=[I]:se.push(I))}else Oe={eventTime:Oe,lane:se,tag:I.tag,payload:I.payload,callback:I.callback,next:null},ce===null?(ee=ce=Oe,H=de):ce=ce.next=Oe,k|=se;if(I=I.next,I===null){if(I=d.shared.pending,I===null)break;se=I,I=se.next,se.next=null,d.lastBaseUpdate=se,d.shared.pending=null}}while(1);if(ce===null&&(H=de),d.baseState=H,d.firstBaseUpdate=ee,d.lastBaseUpdate=ce,n=d.shared.interleaved,n!==null){d=n;do k|=d.lane,d=d.next;while(d!==n)}else m===null&&(d.shared.lanes=0);Da|=k,e.lanes=k,e.memoizedState=de}}function Hy(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var s=e[n],d=s.callback;if(d!==null){if(s.callback=null,s=o,typeof d!="function")throw Error(i(191,d));d.call(s)}}}var Ay=new t.Component().refs;function vd(e,n,o,s){n=e.memoizedState,o=o(s,n),o=o==null?n:ae({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Ps={isMounted:function(e){return(e=e._reactInternals)?nr(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var s=lr(),d=Go(e),m=wo(s,d);m.payload=n,o!=null&&(m.callback=o),n=$o(e,m,d),n!==null&&(Mi(n,e,d,s),Bs(n,e,d))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var s=lr(),d=Go(e),m=wo(s,d);m.tag=1,m.payload=n,o!=null&&(m.callback=o),n=$o(e,m,d),n!==null&&(Mi(n,e,d,s),Bs(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=lr(),s=Go(e),d=wo(o,s);d.tag=2,n!=null&&(d.callback=n),n=$o(e,d,s),n!==null&&(Mi(n,e,s,o),Bs(n,e,s))}};function qy(e,n,o,s,d,m,k){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,m,k):n.prototype&&n.prototype.isPureReactComponent?!$e(o,s)||!$e(d,m):!0}function Uy(e,n,o){var s=!1,d=Qo,m=n.contextType;return typeof m=="object"&&m!==null?m=hi(m):(d=Er(n)?Sa:$n.current,s=n.contextTypes,m=(s=s!=null)?al(e,d):Qo),n=new n(o,m),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ps,e.stateNode=n,n._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=m),n}function Vy(e,n,o,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,s),n.state!==e&&Ps.enqueueReplaceState(n,n.state,null)}function yd(e,n,o,s){var d=e.stateNode;d.props=o,d.state=e.memoizedState,d.refs=Ay,gd(e);var m=n.contextType;typeof m=="object"&&m!==null?d.context=hi(m):(m=Er(n)?Sa:$n.current,d.context=al(e,m)),d.state=e.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(vd(e,n,m,o),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&Ps.enqueueReplaceState(d,d.state,null),Fs(e,o,d,s),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function ru(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var s=o.stateNode}if(!s)throw Error(i(147,e));var d=s,m=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===m?n.ref:(n=function(k){var I=d.refs;I===Ay&&(I=d.refs={}),k===null?delete I[m]:I[m]=k},n._stringRef=m,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function Ks(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Qy(e){var n=e._init;return n(e._payload)}function Xy(e){function n(Q,A){if(e){var $=Q.deletions;$===null?(Q.deletions=[A],Q.flags|=16):$.push(A)}}function o(Q,A){if(!e)return null;for(;A!==null;)n(Q,A),A=A.sibling;return null}function s(Q,A){for(Q=new Map;A!==null;)A.key!==null?Q.set(A.key,A):Q.set(A.index,A),A=A.sibling;return Q}function d(Q,A){return Q=ta(Q,A),Q.index=0,Q.sibling=null,Q}function m(Q,A,$){return Q.index=$,e?($=Q.alternate,$!==null?($=$.index,$<A?(Q.flags|=2,A):$):(Q.flags|=2,A)):(Q.flags|=1048576,A)}function k(Q){return e&&Q.alternate===null&&(Q.flags|=2),Q}function I(Q,A,$,ye){return A===null||A.tag!==6?(A=ep($,Q.mode,ye),A.return=Q,A):(A=d(A,$),A.return=Q,A)}function H(Q,A,$,ye){var Ke=$.type;return Ke===_e?ce(Q,A,$.props.children,ye,$.key):A!==null&&(A.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===Ce&&Qy(Ke)===A.type)?(ye=d(A,$.props),ye.ref=ru(Q,A,$),ye.return=Q,ye):(ye=ec($.type,$.key,$.props,null,Q.mode,ye),ye.ref=ru(Q,A,$),ye.return=Q,ye)}function ee(Q,A,$,ye){return A===null||A.tag!==4||A.stateNode.containerInfo!==$.containerInfo||A.stateNode.implementation!==$.implementation?(A=tp($,Q.mode,ye),A.return=Q,A):(A=d(A,$.children||[]),A.return=Q,A)}function ce(Q,A,$,ye,Ke){return A===null||A.tag!==7?(A=Ba($,Q.mode,ye,Ke),A.return=Q,A):(A=d(A,$),A.return=Q,A)}function de(Q,A,$){if(typeof A=="string"&&A!==""||typeof A=="number")return A=ep(""+A,Q.mode,$),A.return=Q,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case le:return $=ec(A.type,A.key,A.props,null,Q.mode,$),$.ref=ru(Q,null,A),$.return=Q,$;case Se:return A=tp(A,Q.mode,$),A.return=Q,A;case Ce:var ye=A._init;return de(Q,ye(A._payload),$)}if(rt(A)||fe(A))return A=Ba(A,Q.mode,$,null),A.return=Q,A;Ks(Q,A)}return null}function se(Q,A,$,ye){var Ke=A!==null?A.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return Ke!==null?null:I(Q,A,""+$,ye);if(typeof $=="object"&&$!==null){switch($.$$typeof){case le:return $.key===Ke?H(Q,A,$,ye):null;case Se:return $.key===Ke?ee(Q,A,$,ye):null;case Ce:return Ke=$._init,se(Q,A,Ke($._payload),ye)}if(rt($)||fe($))return Ke!==null?null:ce(Q,A,$,ye,null);Ks(Q,$)}return null}function Oe(Q,A,$,ye,Ke){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return Q=Q.get($)||null,I(A,Q,""+ye,Ke);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case le:return Q=Q.get(ye.key===null?$:ye.key)||null,H(A,Q,ye,Ke);case Se:return Q=Q.get(ye.key===null?$:ye.key)||null,ee(A,Q,ye,Ke);case Ce:var Ve=ye._init;return Oe(Q,A,$,Ve(ye._payload),Ke)}if(rt(ye)||fe(ye))return Q=Q.get($)||null,ce(A,Q,ye,Ke,null);Ks(A,ye)}return null}function Be(Q,A,$,ye){for(var Ke=null,Ve=null,Qe=A,et=A=0,jn=null;Qe!==null&&et<$.length;et++){Qe.index>et?(jn=Qe,Qe=null):jn=Qe.sibling;var _t=se(Q,Qe,$[et],ye);if(_t===null){Qe===null&&(Qe=jn);break}e&&Qe&&_t.alternate===null&&n(Q,Qe),A=m(_t,A,et),Ve===null?Ke=_t:Ve.sibling=_t,Ve=_t,Qe=jn}if(et===$.length)return o(Q,Qe),Gt&&Ea(Q,et),Ke;if(Qe===null){for(;et<$.length;et++)Qe=de(Q,$[et],ye),Qe!==null&&(A=m(Qe,A,et),Ve===null?Ke=Qe:Ve.sibling=Qe,Ve=Qe);return Gt&&Ea(Q,et),Ke}for(Qe=s(Q,Qe);et<$.length;et++)jn=Oe(Qe,Q,et,$[et],ye),jn!==null&&(e&&jn.alternate!==null&&Qe.delete(jn.key===null?et:jn.key),A=m(jn,A,et),Ve===null?Ke=jn:Ve.sibling=jn,Ve=jn);return e&&Qe.forEach(function(na){return n(Q,na)}),Gt&&Ea(Q,et),Ke}function Pe(Q,A,$,ye){var Ke=fe($);if(typeof Ke!="function")throw Error(i(150));if($=Ke.call($),$==null)throw Error(i(151));for(var Ve=Ke=null,Qe=A,et=A=0,jn=null,_t=$.next();Qe!==null&&!_t.done;et++,_t=$.next()){Qe.index>et?(jn=Qe,Qe=null):jn=Qe.sibling;var na=se(Q,Qe,_t.value,ye);if(na===null){Qe===null&&(Qe=jn);break}e&&Qe&&na.alternate===null&&n(Q,Qe),A=m(na,A,et),Ve===null?Ke=na:Ve.sibling=na,Ve=na,Qe=jn}if(_t.done)return o(Q,Qe),Gt&&Ea(Q,et),Ke;if(Qe===null){for(;!_t.done;et++,_t=$.next())_t=de(Q,_t.value,ye),_t!==null&&(A=m(_t,A,et),Ve===null?Ke=_t:Ve.sibling=_t,Ve=_t);return Gt&&Ea(Q,et),Ke}for(Qe=s(Q,Qe);!_t.done;et++,_t=$.next())_t=Oe(Qe,Q,et,_t.value,ye),_t!==null&&(e&&_t.alternate!==null&&Qe.delete(_t.key===null?et:_t.key),A=m(_t,A,et),Ve===null?Ke=_t:Ve.sibling=_t,Ve=_t);return e&&Qe.forEach(function(e4){return n(Q,e4)}),Gt&&Ea(Q,et),Ke}function dn(Q,A,$,ye){if(typeof $=="object"&&$!==null&&$.type===_e&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case le:e:{for(var Ke=$.key,Ve=A;Ve!==null;){if(Ve.key===Ke){if(Ke=$.type,Ke===_e){if(Ve.tag===7){o(Q,Ve.sibling),A=d(Ve,$.props.children),A.return=Q,Q=A;break e}}else if(Ve.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===Ce&&Qy(Ke)===Ve.type){o(Q,Ve.sibling),A=d(Ve,$.props),A.ref=ru(Q,Ve,$),A.return=Q,Q=A;break e}o(Q,Ve);break}else n(Q,Ve);Ve=Ve.sibling}$.type===_e?(A=Ba($.props.children,Q.mode,ye,$.key),A.return=Q,Q=A):(ye=ec($.type,$.key,$.props,null,Q.mode,ye),ye.ref=ru(Q,A,$),ye.return=Q,Q=ye)}return k(Q);case Se:e:{for(Ve=$.key;A!==null;){if(A.key===Ve)if(A.tag===4&&A.stateNode.containerInfo===$.containerInfo&&A.stateNode.implementation===$.implementation){o(Q,A.sibling),A=d(A,$.children||[]),A.return=Q,Q=A;break e}else{o(Q,A);break}else n(Q,A);A=A.sibling}A=tp($,Q.mode,ye),A.return=Q,Q=A}return k(Q);case Ce:return Ve=$._init,dn(Q,A,Ve($._payload),ye)}if(rt($))return Be(Q,A,$,ye);if(fe($))return Pe(Q,A,$,ye);Ks(Q,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,A!==null&&A.tag===6?(o(Q,A.sibling),A=d(A,$),A.return=Q,Q=A):(o(Q,A),A=ep($,Q.mode,ye),A.return=Q,Q=A),k(Q)):o(Q,A)}return dn}var dl=Xy(!0),Zy=Xy(!1),iu={},Zi=Vo(iu),ou=Vo(iu),au=Vo(iu);function Na(e){if(e===iu)throw Error(i(174));return e}function bd(e,n){switch(Ut(au,n),Ut(ou,e),Ut(Zi,iu),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ge(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ge(n,e)}Yt(Zi),Ut(Zi,n)}function pl(){Yt(Zi),Yt(ou),Yt(au)}function $y(e){Na(au.current);var n=Na(Zi.current),o=Ge(n,e.type);n!==o&&(Ut(ou,e),Ut(Zi,o))}function _d(e){ou.current===e&&(Yt(Zi),Yt(ou))}var an=Vo(0);function Rs(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var wd=[];function Sd(){for(var e=0;e<wd.length;e++)wd[e]._workInProgressVersionPrimary=null;wd.length=0}var Is=J.ReactCurrentDispatcher,xd=J.ReactCurrentBatchConfig,Oa=0,ln=null,On=null,Rn=null,js=!1,lu=!1,uu=0,S2=0;function Yn(){throw Error(i(321))}function Ed(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!ke(e[o],n[o]))return!1;return!0}function kd(e,n,o,s,d,m){if(Oa=m,ln=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Is.current=e===null||e.memoizedState===null?N2:O2,e=o(s,d),lu){m=0;do{if(lu=!1,uu=0,25<=m)throw Error(i(301));m+=1,Rn=On=null,n.updateQueue=null,Is.current=D2,e=o(s,d)}while(lu)}if(Is.current=Hs,n=On!==null&&On.next!==null,Oa=0,Rn=On=ln=null,js=!1,n)throw Error(i(300));return e}function Nd(){var e=uu!==0;return uu=0,e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rn===null?ln.memoizedState=Rn=e:Rn=Rn.next=e,Rn}function mi(){if(On===null){var e=ln.alternate;e=e!==null?e.memoizedState:null}else e=On.next;var n=Rn===null?ln.memoizedState:Rn.next;if(n!==null)Rn=n,On=e;else{if(e===null)throw Error(i(310));On=e,e={memoizedState:On.memoizedState,baseState:On.baseState,baseQueue:On.baseQueue,queue:On.queue,next:null},Rn===null?ln.memoizedState=Rn=e:Rn=Rn.next=e}return Rn}function su(e,n){return typeof n=="function"?n(e):n}function Od(e){var n=mi(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=On,d=s.baseQueue,m=o.pending;if(m!==null){if(d!==null){var k=d.next;d.next=m.next,m.next=k}s.baseQueue=d=m,o.pending=null}if(d!==null){m=d.next,s=s.baseState;var I=k=null,H=null,ee=m;do{var ce=ee.lane;if((Oa&ce)===ce)H!==null&&(H=H.next={lane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),s=ee.hasEagerState?ee.eagerState:e(s,ee.action);else{var de={lane:ce,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null};H===null?(I=H=de,k=s):H=H.next=de,ln.lanes|=ce,Da|=ce}ee=ee.next}while(ee!==null&&ee!==m);H===null?k=s:H.next=I,ke(s,n.memoizedState)||(kr=!0),n.memoizedState=s,n.baseState=k,n.baseQueue=H,o.lastRenderedState=s}if(e=o.interleaved,e!==null){d=e;do m=d.lane,ln.lanes|=m,Da|=m,d=d.next;while(d!==e)}else d===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Dd(e){var n=mi(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=o.dispatch,d=o.pending,m=n.memoizedState;if(d!==null){o.pending=null;var k=d=d.next;do m=e(m,k.action),k=k.next;while(k!==d);ke(m,n.memoizedState)||(kr=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),o.lastRenderedState=m}return[m,s]}function Yy(){}function Jy(e,n){var o=ln,s=mi(),d=n(),m=!ke(s.memoizedState,d);if(m&&(s.memoizedState=d,kr=!0),s=s.queue,Md(eb.bind(null,o,s,e),[e]),s.getSnapshot!==n||m||Rn!==null&&Rn.memoizedState.tag&1){if(o.flags|=2048,cu(9,Gy.bind(null,o,s,d,n),void 0,null),In===null)throw Error(i(349));Oa&30||Wy(o,n,d)}return d}function Wy(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=ln.updateQueue,n===null?(n={lastEffect:null,stores:null},ln.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Gy(e,n,o,s){n.value=o,n.getSnapshot=s,tb(n)&&nb(e)}function eb(e,n,o){return o(function(){tb(n)&&nb(e)})}function tb(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!ke(e,o)}catch{return!0}}function nb(e){var n=_o(e,1);n!==null&&Mi(n,e,1,-1)}function rb(e){var n=$i();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:e},n.queue=e,e=e.dispatch=k2.bind(null,ln,e),[n.memoizedState,e]}function cu(e,n,o,s){return e={tag:e,create:n,destroy:o,deps:s,next:null},n=ln.updateQueue,n===null?(n={lastEffect:null,stores:null},ln.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,n.lastEffect=e)),e}function ib(){return mi().memoizedState}function Ts(e,n,o,s){var d=$i();ln.flags|=e,d.memoizedState=cu(1|n,o,void 0,s===void 0?null:s)}function zs(e,n,o,s){var d=mi();s=s===void 0?null:s;var m=void 0;if(On!==null){var k=On.memoizedState;if(m=k.destroy,s!==null&&Ed(s,k.deps)){d.memoizedState=cu(n,o,m,s);return}}ln.flags|=e,d.memoizedState=cu(1|n,o,m,s)}function ob(e,n){return Ts(8390656,8,e,n)}function Md(e,n){return zs(2048,8,e,n)}function ab(e,n){return zs(4,2,e,n)}function lb(e,n){return zs(4,4,e,n)}function ub(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function sb(e,n,o){return o=o!=null?o.concat([e]):null,zs(4,4,ub.bind(null,n,e),o)}function Ld(){}function cb(e,n){var o=mi();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Ed(n,s[1])?s[0]:(o.memoizedState=[e,n],e)}function fb(e,n){var o=mi();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Ed(n,s[1])?s[0]:(e=e(),o.memoizedState=[e,n],e)}function db(e,n,o){return Oa&21?(ke(o,n)||(o=B(),ln.lanes|=o,Da|=o,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,kr=!0),e.memoizedState=o)}function x2(e,n){var o=be;be=o!==0&&4>o?o:4,e(!0);var s=xd.transition;xd.transition={};try{e(!1),n()}finally{be=o,xd.transition=s}}function pb(){return mi().memoizedState}function E2(e,n,o){var s=Go(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},hb(e))mb(n,o);else if(o=jy(e,n,o,s),o!==null){var d=lr();Mi(o,e,s,d),gb(o,n,s)}}function k2(e,n,o){var s=Go(e),d={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(hb(e))mb(n,d);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var k=n.lastRenderedState,I=m(k,o);if(d.hasEagerState=!0,d.eagerState=I,ke(I,k)){var H=n.interleaved;H===null?(d.next=d,md(n)):(d.next=H.next,H.next=d),n.interleaved=d;return}}catch{}finally{}o=jy(e,n,d,s),o!==null&&(d=lr(),Mi(o,e,s,d),gb(o,n,s))}}function hb(e){var n=e.alternate;return e===ln||n!==null&&n===ln}function mb(e,n){lu=js=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function gb(e,n,o){if(o&4194240){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,me(e,o)}}var Hs={readContext:hi,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useInsertionEffect:Yn,useLayoutEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useMutableSource:Yn,useSyncExternalStore:Yn,useId:Yn,unstable_isNewReconciler:!1},N2={readContext:hi,useCallback:function(e,n){return $i().memoizedState=[e,n===void 0?null:n],e},useContext:hi,useEffect:ob,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ts(4194308,4,ub.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ts(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ts(4,2,e,n)},useMemo:function(e,n){var o=$i();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var s=$i();return n=o!==void 0?o(n):n,s.memoizedState=s.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=E2.bind(null,ln,e),[s.memoizedState,e]},useRef:function(e){var n=$i();return e={current:e},n.memoizedState=e},useState:rb,useDebugValue:Ld,useDeferredValue:function(e){return $i().memoizedState=e},useTransition:function(){var e=rb(!1),n=e[0];return e=x2.bind(null,e[1]),$i().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var s=ln,d=$i();if(Gt){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),In===null)throw Error(i(349));Oa&30||Wy(s,n,o)}d.memoizedState=o;var m={value:o,getSnapshot:n};return d.queue=m,ob(eb.bind(null,s,m,e),[e]),s.flags|=2048,cu(9,Gy.bind(null,s,m,o,n),void 0,null),o},useId:function(){var e=$i(),n=In.identifierPrefix;if(Gt){var o=bo,s=yo;o=(s&~(1<<32-un(s)-1)).toString(32)+o,n=":"+n+"R"+o,o=uu++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=S2++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},O2={readContext:hi,useCallback:cb,useContext:hi,useEffect:Md,useImperativeHandle:sb,useInsertionEffect:ab,useLayoutEffect:lb,useMemo:fb,useReducer:Od,useRef:ib,useState:function(){return Od(su)},useDebugValue:Ld,useDeferredValue:function(e){var n=mi();return db(n,On.memoizedState,e)},useTransition:function(){var e=Od(su)[0],n=mi().memoizedState;return[e,n]},useMutableSource:Yy,useSyncExternalStore:Jy,useId:pb,unstable_isNewReconciler:!1},D2={readContext:hi,useCallback:cb,useContext:hi,useEffect:Md,useImperativeHandle:sb,useInsertionEffect:ab,useLayoutEffect:lb,useMemo:fb,useReducer:Dd,useRef:ib,useState:function(){return Dd(su)},useDebugValue:Ld,useDeferredValue:function(e){var n=mi();return On===null?n.memoizedState=e:db(n,On.memoizedState,e)},useTransition:function(){var e=Dd(su)[0],n=mi().memoizedState;return[e,n]},useMutableSource:Yy,useSyncExternalStore:Jy,useId:pb,unstable_isNewReconciler:!1};function hl(e,n){try{var o="",s=n;do o+=qe(s),s=s.return;while(s);var d=o}catch(m){d=`
|
|
47
|
+
`),k=d.length-1,j=m.length-1;1<=k&&0<=j&&d[k]!==m[j];)j--;for(;1<=k&&0<=j;k--,j--)if(d[k]!==m[j]){if(k!==1||j!==1)do if(k--,j--,0>j||d[k]!==m[j]){var A=`
|
|
48
|
+
`+d[k].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=k&&0<=j);break}}}finally{Et=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Je(e):""}function Ve(e){switch(e.tag){case 5:return Je(e.type);case 16:return Je("Lazy");case 13:return Je("Suspense");case 19:return Je("SuspenseList");case 0:case 2:case 15:return e=Ft(e.type,!1),e;case 11:return e=Ft(e.type.render,!1),e;case 1:return e=Ft(e.type,!0),e;default:return""}}function ze(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _e:return"Fragment";case Se:return"Portal";case ve:return"Profiler";case je:return"StrictMode";case ge:return"Suspense";case Le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case we:return(e.displayName||"Context")+".Consumer";case xe:return(e._context.displayName||"Context")+".Provider";case he:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ie:return n=e.displayName||null,n!==null?n:ze(e.type)||"Memo";case Fe:n=e._payload,e=e._init;try{return ze(e(n))}catch{}}return null}function dt(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ze(n);case 8:return n===je?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Tt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jt(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Pt(e){var n=jt(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,m=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(k){s=""+k,m.call(this,k)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(k){s=""+k},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function kt(e){e._valueTracker||(e._valueTracker=Pt(e))}function en(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return e&&(s=jt(e)?e.checked?"true":"false":e.value),e=s,e!==a?(n.setValue(e),!0):!1}function Xe(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function st(e,n){var a=n.checked;return ae({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function ut(e,n){var a=n.defaultValue==null?"":n.defaultValue,s=n.checked!=null?n.checked:n.defaultChecked;a=Tt(n.value!=null?n.value:a),e._wrapperState={initialChecked:s,initialValue:a,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Bt(e,n){n=n.checked,n!=null&&W(e,"checked",n,!1)}function mn(e,n){Bt(e,n);var a=Tt(n.value),s=n.type;if(a!=null)s==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Nt(e,n.type,a):n.hasOwnProperty("defaultValue")&&Nt(e,n.type,Tt(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Dt(e,n,a){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var s=n.type;if(!(s!=="submit"&&s!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,a||n===e.value||(e.value=n),e.defaultValue=n}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function Nt(e,n,a){(n!=="number"||Xe(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var rt=Array.isArray;function pt(e,n,a,s){if(e=e.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=n.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Tt(a),n=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,s&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function Rt(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return ae({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,n){var a=n.value;if(a==null){if(a=n.children,n=n.defaultValue,a!=null){if(n!=null)throw Error(o(92));if(rt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),a=n}e._wrapperState={initialValue:Tt(a)}}function nt(e,n){var a=Tt(n.value),s=Tt(n.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),n.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),s!=null&&(e.defaultValue=""+s)}function Ye(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function ht(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?ht(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xn,ct=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,a,s,d){MSApp.execUnsafeLocalFunction(function(){return e(n,a,s,d)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(xn=xn||document.createElement("div"),xn.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=xn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function En(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var tn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hr=["Webkit","ms","Moz","O"];Object.keys(tn).forEach(function(e){hr.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),tn[n]=tn[e]})});function Qn(e,n,a){return n==null||typeof n=="boolean"||n===""?"":a||typeof n!="number"||n===0||tn.hasOwnProperty(e)&&tn[e]?(""+n).trim():n+"px"}function ai(e,n){e=e.style;for(var a in n)if(n.hasOwnProperty(a)){var s=a.indexOf("--")===0,d=Qn(a,n[a],s);a==="float"&&(a="cssFloat"),s?e.setProperty(a,d):e[a]=d}}var It=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function So(e,n){if(n){if(It[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function Jt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xo=null;function fn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qt=null,Kn=null,ot=null;function Xn(e){if(e=ou(e)){if(typeof qt!="function")throw Error(o(280));var n=e.stateNode;n&&(n=Ds(n),qt(e.stateNode,e.type,n))}}function Zn(e){Kn?ot?ot.push(e):ot=[e]:Kn=e}function tr(){if(Kn){var e=Kn,n=ot;if(ot=Kn=null,Xn(e),n)for(e=0;e<n.length;e++)Xn(n[e])}}function kn(e,n){return e(n)}function Cr(){}var zt=!1;function li(e,n,a){if(zt)return e(n,a);zt=!0;try{return kn(e,n,a)}finally{zt=!1,(Kn!==null||ot!==null)&&(Cr(),tr())}}function nr(e,n){var a=e.stateNode;if(a===null)return null;var s=Ds(a);if(s===null)return null;a=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,n,typeof a));return a}var Eo=!1;if(v)try{var Mr={};Object.defineProperty(Mr,"passive",{get:function(){Eo=!0}}),window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{Eo=!1}function ui(e,n,a,s,d,m,k,j,A){var ee=Array.prototype.slice.call(arguments,3);try{n.apply(a,ee)}catch(ce){this.onError(ce)}}var eo=!1,to=null,no=!1,mr=null,gr={onError:function(e){eo=!0,to=e}};function Ko(e,n,a,s,d,m,k,j,A){eo=!1,to=null,ui.apply(gr,arguments)}function si(e,n,a,s,d,m,k,j,A){if(Ko.apply(this,arguments),eo){if(eo){var ee=to;eo=!1,to=null}else throw Error(o(198));no||(no=!0,mr=ee)}}function rr(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function vr(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function gn(e){if(rr(e)!==e)throw Error(o(188))}function at(e){var n=e.alternate;if(!n){if(n=rr(e),n===null)throw Error(o(188));return n!==e?null:e}for(var a=e,s=n;;){var d=a.return;if(d===null)break;var m=d.alternate;if(m===null){if(s=d.return,s!==null){a=s;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===a)return gn(d),e;if(m===s)return gn(d),n;m=m.sibling}throw Error(o(188))}if(a.return!==s.return)a=d,s=m;else{for(var k=!1,j=d.child;j;){if(j===a){k=!0,a=d,s=m;break}if(j===s){k=!0,s=d,a=m;break}j=j.sibling}if(!k){for(j=m.child;j;){if(j===a){k=!0,a=m,s=d;break}if(j===s){k=!0,s=m,a=d;break}j=j.sibling}if(!k)throw Error(o(189))}}if(a.alternate!==s)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:n}function Fr(e){return e=at(e),e!==null?Dr(e):null}function Dr(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Dr(e);if(n!==null)return n;e=e.sibling}return null}var tt=r.unstable_scheduleCallback,Pr=r.unstable_cancelCallback,Br=r.unstable_shouldYield,ro=r.unstable_requestPaint,vt=r.unstable_now,Kt=r.unstable_getCurrentPriorityLevel,oo=r.unstable_ImmediatePriority,io=r.unstable_UserBlockingPriority,Rr=r.unstable_NormalPriority,Ao=r.unstable_LowPriority,yr=r.unstable_IdlePriority,Wt=null,Dn=null;function Tr(e){if(Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(Wt,e,void 0,(e.current.flags&128)===128)}catch{}}var un=Math.clz32?Math.clz32:fi,ko=Math.log,ci=Math.LN2;function fi(e){return e>>>=0,e===0?32:31-(ko(e)/ci|0)|0}var jr=64,br=4194304;function Ir(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zr(e,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,d=e.suspendedLanes,m=e.pingedLanes,k=a&268435455;if(k!==0){var j=k&~d;j!==0?s=Ir(j):(m&=k,m!==0&&(s=Ir(m)))}else k=a&~d,k!==0?s=Ir(k):m!==0&&(s=Ir(m));if(s===0)return 0;if(n!==0&&n!==s&&!(n&d)&&(d=s&-s,m=n&-n,d>=m||d===16&&(m&4194240)!==0))return n;if(s&4&&(s|=a&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=s;0<n;)a=31-un(n),d=1<<a,s|=e[a],n&=~d;return s}function p(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function S(e,n){for(var a=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,m=e.pendingLanes;0<m;){var k=31-un(m),j=1<<k,A=d[k];A===-1?(!(j&a)||j&s)&&(d[k]=p(j,n)):A<=n&&(e.expiredLanes|=j),m&=~j}}function O(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function P(){var e=jr;return jr<<=1,!(jr&4194240)&&(jr=64),e}function X(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function q(e,n,a){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-un(n),e[n]=a}function oe(e,n){var a=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<a;){var d=31-un(a),m=1<<d;n[d]=0,s[d]=-1,e[d]=-1,a&=~m}}function me(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var s=31-un(a),d=1<<s;d&n|e[s]&n&&(e[s]|=n),a&=~d}}var be=0;function Ee(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var We,St,Ot,nn,sn,_r=!1,vn=[],An=null,yn=null,or=null,Pn=new Map,Hn=new Map,Kr=[],ao="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function di(e,n){switch(e){case"focusin":case"focusout":An=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":or=null;break;case"pointerover":case"pointerout":Pn.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(n.pointerId)}}function Ar(e,n,a,s,d,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:m,targetContainers:[d]},n!==null&&(n=ou(n),n!==null&&St(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function Xt(e,n,a,s,d){switch(n){case"focusin":return An=Ar(An,e,n,a,s,d),!0;case"dragenter":return yn=Ar(yn,e,n,a,s,d),!0;case"mouseover":return or=Ar(or,e,n,a,s,d),!0;case"pointerover":var m=d.pointerId;return Pn.set(m,Ar(Pn.get(m)||null,e,n,a,s,d)),!0;case"gotpointercapture":return m=d.pointerId,Hn.set(m,Ar(Hn.get(m)||null,e,n,a,s,d)),!0}return!1}function ir(e){var n=xa(e.target);if(n!==null){var a=rr(n);if(a!==null){if(n=a.tag,n===13){if(n=vr(a),n!==null){e.blockedOn=n,sn(e.priority,function(){Ot(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Vo(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);xo=s,a.target.dispatchEvent(s),xo=null}else return n=ou(a),n!==null&&St(n),e.blockedOn=a,!1;n.shift()}return!0}function Ho(e,n,a){lo(e)&&a.delete(n)}function yt(){_r=!1,An!==null&&lo(An)&&(An=null),yn!==null&&lo(yn)&&(yn=null),or!==null&&lo(or)&&(or=null),Pn.forEach(Ho),Hn.forEach(Ho)}function wr(e,n){e.blockedOn===n&&(e.blockedOn=null,_r||(_r=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,yt)))}function rn(e){function n(d){return wr(d,e)}if(0<vn.length){wr(vn[0],e);for(var a=1;a<vn.length;a++){var s=vn[a];s.blockedOn===e&&(s.blockedOn=null)}}for(An!==null&&wr(An,e),yn!==null&&wr(yn,e),or!==null&&wr(or,e),Pn.forEach(n),Hn.forEach(n),a=0;a<Kr.length;a++)s=Kr[a],s.blockedOn===e&&(s.blockedOn=null);for(;0<Kr.length&&(a=Kr[0],a.blockedOn===null);)ir(a),a.blockedOn===null&&Kr.shift()}var Nn=J.ReactCurrentBatchConfig,bn=!0;function Hr(e,n,a,s){var d=be,m=Nn.transition;Nn.transition=null;try{be=1,pi(e,n,a,s)}finally{be=d,Nn.transition=m}}function uo(e,n,a,s){var d=be,m=Nn.transition;Nn.transition=null;try{be=4,pi(e,n,a,s)}finally{be=d,Nn.transition=m}}function pi(e,n,a,s){if(bn){var d=Vo(e,n,a,s);if(d===null)ld(e,n,s,so,a),di(e,s);else if(Xt(d,e,n,a,s))s.stopPropagation();else if(di(e,s),n&4&&-1<ao.indexOf(e)){for(;d!==null;){var m=ou(d);if(m!==null&&We(m),m=Vo(e,n,a,s),m===null&&ld(e,n,s,so,a),m===d)break;d=m}d!==null&&s.stopPropagation()}else ld(e,n,s,null,a)}}var so=null;function Vo(e,n,a,s){if(so=null,e=fn(s),e=xa(e),e!==null)if(n=rr(e),n===null)e=null;else if(a=n.tag,a===13){if(e=vr(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return so=e,null}function va(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Kt()){case oo:return 1;case io:return 4;case Rr:case Ao:return 16;case yr:return 536870912;default:return 16}default:return 16}}var Vr=null,qo=null,Ti=null;function ya(){if(Ti)return Ti;var e,n=qo,a=n.length,s,d="value"in Vr?Vr.value:Vr.textContent,m=d.length;for(e=0;e<a&&n[e]===d[e];e++);var k=a-e;for(s=1;s<=k&&n[a-s]===d[m-s];s++);return Ti=d.slice(e,1<s?1-s:void 0)}function No(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Uo(){return!0}function hi(){return!1}function On(e){function n(a,s,d,m,k){this._reactName=a,this._targetInst=d,this.type=s,this.nativeEvent=m,this.target=k,this.currentTarget=null;for(var j in e)e.hasOwnProperty(j)&&(a=e[j],this[j]=a?a(m):m[j]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Uo:hi,this.isPropagationStopped=hi,this}return ae(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Uo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Uo)},persist:function(){},isPersistent:Uo}),n}var ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sr=On(ar),Qo=ae({},ar,{view:0,detail:0}),mi=On(Qo),ft,co,qr,Xo=ae({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qr&&(qr&&e.type==="mousemove"?(ft=e.screenX-qr.screenX,co=e.screenY-qr.screenY):co=ft=0,qr=e),ft)},movementY:function(e){return"movementY"in e?e.movementY:co}}),$n=On(Xo),ji=ae({},Xo,{dataTransfer:0}),Ii=On(ji),Bn=ae({},Qo,{relatedTarget:0}),_n=On(Bn),on=ae({},ar,{animationName:0,elapsedTime:0,pseudoElement:0}),zi=On(on),ba=ae({},ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ki=On(ba),Ga=ae({},ar,{data:0}),Lt=On(Ga),Zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Rn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ai(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Rn[e])?!!n[e]:!1}function vi(){return Ai}var Hi=ae({},Qo,{key:function(e){if(e.key){var n=Zo[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=No(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gi[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vi,charCode:function(e){return e.type==="keypress"?No(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?No(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vi=On(Hi),h=ae({},Xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_=On(h),N=ae({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vi}),F=On(N),Z=ae({},ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),U=On(Z),ne=ae({},Xo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),pe=On(ne),He=[9,13,27,32],Ze=v&&"CompositionEvent"in window,qe=null;v&&"documentMode"in document&&(qe=document.documentMode);var Ct=v&&"TextEvent"in window&&!qe,wn=v&&(!Ze||qe&&8<qe&&11>=qe),Zt=String.fromCharCode(32),xt=!1;function fo(e,n){switch(e){case"keyup":return He.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _a(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function el(e,n){switch(e){case"compositionend":return _a(n);case"keypress":return n.which!==32?null:(xt=!0,Zt);case"textInput":return e=n.data,e===Zt&&xt?null:e;default:return null}}function Ss(e,n){if(po)return e==="compositionend"||!Ze&&fo(e,n)?(e=ya(),Ti=qo=Vr=null,po=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return wn&&n.locale!=="ko"?null:n.data;default:return null}}var xs={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Es(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!xs[e.type]:n==="textarea"}function Wl(e,n,a,s){Zn(s),n=Cs(n,"onChange"),0<n.length&&(a=new Sr("onChange","change",null,a,s),e.push({event:a,listeners:n}))}var wa=null,Sa=null;function ks(e){Ty(e,0)}function tl(e){var n=al(e);if(en(n))return e}function u(e,n){if(e==="change")return n}var f=!1;if(v){var y;if(v){var x="oninput"in document;if(!x){var E=document.createElement("div");E.setAttribute("oninput","return;"),x=typeof E.oninput=="function"}y=x}else y=!1;f=y&&(!document.documentMode||9<document.documentMode)}function C(){wa&&(wa.detachEvent("onpropertychange",K),Sa=wa=null)}function K(e){if(e.propertyName==="value"&&tl(Sa)){var n=[];Wl(n,Sa,e,fn(e)),li(ks,n)}}function V(e,n,a){e==="focusin"?(C(),wa=n,Sa=a,wa.attachEvent("onpropertychange",K)):e==="focusout"&&C()}function te(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tl(Sa)}function re(e,n){if(e==="click")return tl(n)}function ie(e,n){if(e==="input"||e==="change")return tl(n)}function Ne(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var ke=typeof Object.is=="function"?Object.is:Ne;function $e(e,n){if(ke(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var d=a[s];if(!b.call(n,d)||!ke(e[d],n[d]))return!1}return!0}function lt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function At(e,n){var a=lt(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=n&&s>=n)return{node:a,offset:n-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=lt(a)}}function xr(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?xr(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ur(){for(var e=window,n=Xe();n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=Xe(e.document)}return n}function qi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function FB(e){var n=Ur(),a=e.focusedElem,s=e.selectionRange;if(n!==a&&a&&a.ownerDocument&&xr(a.ownerDocument.documentElement,a)){if(s!==null&&qi(a)){if(n=s.start,e=s.end,e===void 0&&(e=n),"selectionStart"in a)a.selectionStart=n,a.selectionEnd=Math.min(e,a.value.length);else if(e=(n=a.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=a.textContent.length,m=Math.min(s.start,d);s=s.end===void 0?m:Math.min(s.end,d),!e.extend&&m>s&&(d=s,s=m,m=d),d=At(a,m);var k=At(a,s);d&&k&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==k.node||e.focusOffset!==k.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),m>s?(e.addRange(n),e.extend(k.node,k.offset)):(n.setEnd(k.node,k.offset),e.addRange(n)))}}for(n=[],e=a;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<n.length;a++)e=n[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var DB=v&&"documentMode"in document&&11>=document.documentMode,nl=null,td=null,Gl=null,nd=!1;function Oy(e,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nd||nl==null||nl!==Xe(s)||(s=nl,"selectionStart"in s&&qi(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Gl&&$e(Gl,s)||(Gl=s,s=Cs(td,"onSelect"),0<s.length&&(n=new Sr("onSelect","select",null,n,a),e.push({event:n,listeners:s}),n.target=nl)))}function Ns(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var rl={animationend:Ns("Animation","AnimationEnd"),animationiteration:Ns("Animation","AnimationIteration"),animationstart:Ns("Animation","AnimationStart"),transitionend:Ns("Transition","TransitionEnd")},rd={},Ly={};v&&(Ly=document.createElement("div").style,"AnimationEvent"in window||(delete rl.animationend.animation,delete rl.animationiteration.animation,delete rl.animationstart.animation),"TransitionEvent"in window||delete rl.transitionend.transition);function Os(e){if(rd[e])return rd[e];if(!rl[e])return e;var n=rl[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Ly)return rd[e]=n[a];return e}var Cy=Os("animationend"),My=Os("animationiteration"),Fy=Os("animationstart"),Dy=Os("transitionend"),Py=new Map,By="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ui(e,n){Py.set(e,n),c(n,[e])}for(var od=0;od<By.length;od++){var id=By[od],PB=id.toLowerCase(),BB=id[0].toUpperCase()+id.slice(1);Ui(PB,"on"+BB)}Ui(Cy,"onAnimationEnd"),Ui(My,"onAnimationIteration"),Ui(Fy,"onAnimationStart"),Ui("dblclick","onDoubleClick"),Ui("focusin","onFocus"),Ui("focusout","onBlur"),Ui(Dy,"onTransitionEnd"),g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RB=new Set("cancel close invalid load scroll toggle".split(" ").concat(eu));function Ry(e,n,a){var s=e.type||"unknown-event";e.currentTarget=a,si(s,n,void 0,e),e.currentTarget=null}function Ty(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],d=s.event;s=s.listeners;e:{var m=void 0;if(n)for(var k=s.length-1;0<=k;k--){var j=s[k],A=j.instance,ee=j.currentTarget;if(j=j.listener,A!==m&&d.isPropagationStopped())break e;Ry(d,j,ee),m=A}else for(k=0;k<s.length;k++){if(j=s[k],A=j.instance,ee=j.currentTarget,j=j.listener,A!==m&&d.isPropagationStopped())break e;Ry(d,j,ee),m=A}}}if(no)throw e=mr,no=!1,mr=null,e}function $t(e,n){var a=n[pd];a===void 0&&(a=n[pd]=new Set);var s=e+"__bubble";a.has(s)||(jy(n,e,2,!1),a.add(s))}function ad(e,n,a){var s=0;n&&(s|=4),jy(a,e,s,n)}var Ls="_reactListening"+Math.random().toString(36).slice(2);function tu(e){if(!e[Ls]){e[Ls]=!0,i.forEach(function(a){a!=="selectionchange"&&(RB.has(a)||ad(a,!1,e),ad(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ls]||(n[Ls]=!0,ad("selectionchange",!1,n))}}function jy(e,n,a,s){switch(va(n)){case 1:var d=Hr;break;case 4:d=uo;break;default:d=pi}a=d.bind(null,n,a,e),d=void 0,!Eo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),s?d!==void 0?e.addEventListener(n,a,{capture:!0,passive:d}):e.addEventListener(n,a,!0):d!==void 0?e.addEventListener(n,a,{passive:d}):e.addEventListener(n,a,!1)}function ld(e,n,a,s,d){var m=s;if(!(n&1)&&!(n&2)&&s!==null)e:for(;;){if(s===null)return;var k=s.tag;if(k===3||k===4){var j=s.stateNode.containerInfo;if(j===d||j.nodeType===8&&j.parentNode===d)break;if(k===4)for(k=s.return;k!==null;){var A=k.tag;if((A===3||A===4)&&(A=k.stateNode.containerInfo,A===d||A.nodeType===8&&A.parentNode===d))return;k=k.return}for(;j!==null;){if(k=xa(j),k===null)return;if(A=k.tag,A===5||A===6){s=m=k;continue e}j=j.parentNode}}s=s.return}li(function(){var ee=m,ce=fn(a),de=[];e:{var se=Py.get(e);if(se!==void 0){var Oe=Sr,De=e;switch(e){case"keypress":if(No(a)===0)break e;case"keydown":case"keyup":Oe=Vi;break;case"focusin":De="focus",Oe=_n;break;case"focusout":De="blur",Oe=_n;break;case"beforeblur":case"afterblur":Oe=_n;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Oe=$n;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=Ii;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=F;break;case Cy:case My:case Fy:Oe=zi;break;case Dy:Oe=U;break;case"scroll":Oe=mi;break;case"wheel":Oe=pe;break;case"copy":case"cut":case"paste":Oe=Ki;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=_}var Be=(n&4)!==0,dn=!Be&&e==="scroll",Q=Be?se!==null?se+"Capture":null:se;Be=[];for(var H=ee,$;H!==null;){$=H;var ye=$.stateNode;if($.tag===5&&ye!==null&&($=ye,Q!==null&&(ye=nr(H,Q),ye!=null&&Be.push(nu(H,ye,$)))),dn)break;H=H.return}0<Be.length&&(se=new Oe(se,De,null,a,ce),de.push({event:se,listeners:Be}))}}if(!(n&7)){e:{if(se=e==="mouseover"||e==="pointerover",Oe=e==="mouseout"||e==="pointerout",se&&a!==xo&&(De=a.relatedTarget||a.fromElement)&&(xa(De)||De[yi]))break e;if((Oe||se)&&(se=ce.window===ce?ce:(se=ce.ownerDocument)?se.defaultView||se.parentWindow:window,Oe?(De=a.relatedTarget||a.toElement,Oe=ee,De=De?xa(De):null,De!==null&&(dn=rr(De),De!==dn||De.tag!==5&&De.tag!==6)&&(De=null)):(Oe=null,De=ee),Oe!==De)){if(Be=$n,ye="onMouseLeave",Q="onMouseEnter",H="mouse",(e==="pointerout"||e==="pointerover")&&(Be=_,ye="onPointerLeave",Q="onPointerEnter",H="pointer"),dn=Oe==null?se:al(Oe),$=De==null?se:al(De),se=new Be(ye,H+"leave",Oe,a,ce),se.target=dn,se.relatedTarget=$,ye=null,xa(ce)===ee&&(Be=new Be(Q,H+"enter",De,a,ce),Be.target=$,Be.relatedTarget=dn,ye=Be),dn=ye,Oe&&De)t:{for(Be=Oe,Q=De,H=0,$=Be;$;$=ol($))H++;for($=0,ye=Q;ye;ye=ol(ye))$++;for(;0<H-$;)Be=ol(Be),H--;for(;0<$-H;)Q=ol(Q),$--;for(;H--;){if(Be===Q||Q!==null&&Be===Q.alternate)break t;Be=ol(Be),Q=ol(Q)}Be=null}else Be=null;Oe!==null&&Iy(de,se,Oe,Be,!1),De!==null&&dn!==null&&Iy(de,dn,De,Be,!0)}}e:{if(se=ee?al(ee):window,Oe=se.nodeName&&se.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&se.type==="file")var Re=u;else if(Es(se))if(f)Re=ie;else{Re=te;var Ue=V}else(Oe=se.nodeName)&&Oe.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(Re=re);if(Re&&(Re=Re(e,ee))){Wl(de,Re,a,ce);break e}Ue&&Ue(e,se,ee),e==="focusout"&&(Ue=se._wrapperState)&&Ue.controlled&&se.type==="number"&&Nt(se,"number",se.value)}switch(Ue=ee?al(ee):window,e){case"focusin":(Es(Ue)||Ue.contentEditable==="true")&&(nl=Ue,td=ee,Gl=null);break;case"focusout":Gl=td=nl=null;break;case"mousedown":nd=!0;break;case"contextmenu":case"mouseup":case"dragend":nd=!1,Oy(de,a,ce);break;case"selectionchange":if(DB)break;case"keydown":case"keyup":Oy(de,a,ce)}var Qe;if(Ze)e:{switch(e){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else po?fo(e,a)&&(et="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(et="onCompositionStart");et&&(wn&&a.locale!=="ko"&&(po||et!=="onCompositionStart"?et==="onCompositionEnd"&&po&&(Qe=ya()):(Vr=ce,qo="value"in Vr?Vr.value:Vr.textContent,po=!0)),Ue=Cs(ee,et),0<Ue.length&&(et=new Lt(et,e,null,a,ce),de.push({event:et,listeners:Ue}),Qe?et.data=Qe:(Qe=_a(a),Qe!==null&&(et.data=Qe)))),(Qe=Ct?el(e,a):Ss(e,a))&&(ee=Cs(ee,"onBeforeInput"),0<ee.length&&(ce=new Lt("onBeforeInput","beforeinput",null,a,ce),de.push({event:ce,listeners:ee}),ce.data=Qe))}Ty(de,n)})}function nu(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Cs(e,n){for(var a=n+"Capture",s=[];e!==null;){var d=e,m=d.stateNode;d.tag===5&&m!==null&&(d=m,m=nr(e,a),m!=null&&s.unshift(nu(e,m,d)),m=nr(e,n),m!=null&&s.push(nu(e,m,d))),e=e.return}return s}function ol(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Iy(e,n,a,s,d){for(var m=n._reactName,k=[];a!==null&&a!==s;){var j=a,A=j.alternate,ee=j.stateNode;if(A!==null&&A===s)break;j.tag===5&&ee!==null&&(j=ee,d?(A=nr(a,m),A!=null&&k.unshift(nu(a,A,j))):d||(A=nr(a,m),A!=null&&k.push(nu(a,A,j)))),a=a.return}k.length!==0&&e.push({event:n,listeners:k})}var TB=/\r\n?/g,jB=/\u0000|\uFFFD/g;function zy(e){return(typeof e=="string"?e:""+e).replace(TB,`
|
|
49
|
+
`).replace(jB,"")}function Ms(e,n,a){if(n=zy(n),zy(e)!==n&&a)throw Error(o(425))}function Fs(){}var ud=null,sd=null;function cd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var fd=typeof setTimeout=="function"?setTimeout:void 0,IB=typeof clearTimeout=="function"?clearTimeout:void 0,Ky=typeof Promise=="function"?Promise:void 0,zB=typeof queueMicrotask=="function"?queueMicrotask:typeof Ky<"u"?function(e){return Ky.resolve(null).then(e).catch(KB)}:fd;function KB(e){setTimeout(function(){throw e})}function dd(e,n){var a=n,s=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(s===0){e.removeChild(d),rn(n);return}s--}else a!=="$"&&a!=="$?"&&a!=="$!"||s++;a=d}while(a);rn(n)}function Qi(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Ay(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}var il=Math.random().toString(36).slice(2),$o="__reactFiber$"+il,ru="__reactProps$"+il,yi="__reactContainer$"+il,pd="__reactEvents$"+il,AB="__reactListeners$"+il,HB="__reactHandles$"+il;function xa(e){var n=e[$o];if(n)return n;for(var a=e.parentNode;a;){if(n=a[yi]||a[$o]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=Ay(e);e!==null;){if(a=e[$o])return a;e=Ay(e)}return n}e=a,a=e.parentNode}return null}function ou(e){return e=e[$o]||e[yi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function al(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ds(e){return e[ru]||null}var hd=[],ll=-1;function Xi(e){return{current:e}}function Yt(e){0>ll||(e.current=hd[ll],hd[ll]=null,ll--)}function Ut(e,n){ll++,hd[ll]=e.current,e.current=n}var Zi={},Yn=Xi(Zi),Er=Xi(!1),Ea=Zi;function ul(e,n){var a=e.type.contextTypes;if(!a)return Zi;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===n)return s.__reactInternalMemoizedMaskedChildContext;var d={},m;for(m in a)d[m]=n[m];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function kr(e){return e=e.childContextTypes,e!=null}function Ps(){Yt(Er),Yt(Yn)}function Hy(e,n,a){if(Yn.current!==Zi)throw Error(o(168));Ut(Yn,n),Ut(Er,a)}function Vy(e,n,a){var s=e.stateNode;if(n=n.childContextTypes,typeof s.getChildContext!="function")return a;s=s.getChildContext();for(var d in s)if(!(d in n))throw Error(o(108,dt(e)||"Unknown",d));return ae({},a,s)}function Bs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zi,Ea=Yn.current,Ut(Yn,e),Ut(Er,Er.current),!0}function qy(e,n,a){var s=e.stateNode;if(!s)throw Error(o(169));a?(e=Vy(e,n,Ea),s.__reactInternalMemoizedMergedChildContext=e,Yt(Er),Yt(Yn),Ut(Yn,e)):Yt(Er),Ut(Er,a)}var bi=null,Rs=!1,md=!1;function Uy(e){bi===null?bi=[e]:bi.push(e)}function VB(e){Rs=!0,Uy(e)}function $i(){if(!md&&bi!==null){md=!0;var e=0,n=be;try{var a=bi;for(be=1;e<a.length;e++){var s=a[e];do s=s(!0);while(s!==null)}bi=null,Rs=!1}catch(d){throw bi!==null&&(bi=bi.slice(e+1)),tt(oo,$i),d}finally{be=n,md=!1}}return null}var sl=[],cl=0,Ts=null,js=0,ho=[],mo=0,ka=null,_i=1,wi="";function Na(e,n){sl[cl++]=js,sl[cl++]=Ts,Ts=e,js=n}function Qy(e,n,a){ho[mo++]=_i,ho[mo++]=wi,ho[mo++]=ka,ka=e;var s=_i;e=wi;var d=32-un(s)-1;s&=~(1<<d),a+=1;var m=32-un(n)+d;if(30<m){var k=d-d%5;m=(s&(1<<k)-1).toString(32),s>>=k,d-=k,_i=1<<32-un(n)+d|a<<d|s,wi=m+e}else _i=1<<m|a<<d|s,wi=e}function gd(e){e.return!==null&&(Na(e,1),Qy(e,1,0))}function vd(e){for(;e===Ts;)Ts=sl[--cl],sl[cl]=null,js=sl[--cl],sl[cl]=null;for(;e===ka;)ka=ho[--mo],ho[mo]=null,wi=ho[--mo],ho[mo]=null,_i=ho[--mo],ho[mo]=null}var Qr=null,Xr=null,Gt=!1,Oo=null;function Xy(e,n){var a=bo(5,null,null,0);a.elementType="DELETED",a.stateNode=n,a.return=e,n=e.deletions,n===null?(e.deletions=[a],e.flags|=16):n.push(a)}function Zy(e,n){switch(e.tag){case 5:var a=e.type;return n=n.nodeType!==1||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Qr=e,Xr=Qi(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Qr=e,Xr=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(a=ka!==null?{id:_i,overflow:wi}:null,e.memoizedState={dehydrated:n,treeContext:a,retryLane:1073741824},a=bo(18,null,null,0),a.stateNode=n,a.return=e,e.child=a,Qr=e,Xr=null,!0):!1;default:return!1}}function yd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bd(e){if(Gt){var n=Xr;if(n){var a=n;if(!Zy(e,n)){if(yd(e))throw Error(o(418));n=Qi(a.nextSibling);var s=Qr;n&&Zy(e,n)?Xy(s,a):(e.flags=e.flags&-4097|2,Gt=!1,Qr=e)}}else{if(yd(e))throw Error(o(418));e.flags=e.flags&-4097|2,Gt=!1,Qr=e}}}function $y(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qr=e}function Is(e){if(e!==Qr)return!1;if(!Gt)return $y(e),Gt=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!cd(e.type,e.memoizedProps)),n&&(n=Xr)){if(yd(e))throw Yy(),Error(o(418));for(;n;)Xy(e,n),n=Qi(n.nextSibling)}if($y(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(n===0){Xr=Qi(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++}e=e.nextSibling}Xr=null}}else Xr=Qr?Qi(e.stateNode.nextSibling):null;return!0}function Yy(){for(var e=Xr;e;)e=Qi(e.nextSibling)}function fl(){Xr=Qr=null,Gt=!1}function _d(e){Oo===null?Oo=[e]:Oo.push(e)}var qB=J.ReactCurrentBatchConfig;function Lo(e,n){if(e&&e.defaultProps){n=ae({},n),e=e.defaultProps;for(var a in e)n[a]===void 0&&(n[a]=e[a]);return n}return n}var zs=Xi(null),Ks=null,dl=null,wd=null;function Sd(){wd=dl=Ks=null}function xd(e){var n=zs.current;Yt(zs),e._currentValue=n}function Ed(e,n,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===a)break;e=e.return}}function pl(e,n){Ks=e,wd=dl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(Nr=!0),e.firstContext=null)}function go(e){var n=e._currentValue;if(wd!==e)if(e={context:e,memoizedValue:n,next:null},dl===null){if(Ks===null)throw Error(o(308));dl=e,Ks.dependencies={lanes:0,firstContext:e}}else dl=dl.next=e;return n}var Oa=null;function kd(e){Oa===null?Oa=[e]:Oa.push(e)}function Jy(e,n,a,s){var d=n.interleaved;return d===null?(a.next=a,kd(n)):(a.next=d.next,d.next=a),n.interleaved=a,Si(e,s)}function Si(e,n){e.lanes|=n;var a=e.alternate;for(a!==null&&(a.lanes|=n),a=e,e=e.return;e!==null;)e.childLanes|=n,a=e.alternate,a!==null&&(a.childLanes|=n),a=e,e=e.return;return a.tag===3?a.stateNode:null}var Yi=!1;function Nd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wy(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xi(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Ji(e,n,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,bt&2){var d=s.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),s.pending=n,Si(e,a)}return d=s.interleaved,d===null?(n.next=n,kd(s)):(n.next=d.next,d.next=n),s.interleaved=n,Si(e,a)}function As(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194240)!==0)){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,me(e,a)}}function Gy(e,n){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var d=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var k={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?d=m=k:m=m.next=k,a=a.next}while(a!==null);m===null?d=m=n:m=m.next=n}else d=m=n;a={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:s.shared,effects:s.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}function Hs(e,n,a,s){var d=e.updateQueue;Yi=!1;var m=d.firstBaseUpdate,k=d.lastBaseUpdate,j=d.shared.pending;if(j!==null){d.shared.pending=null;var A=j,ee=A.next;A.next=null,k===null?m=ee:k.next=ee,k=A;var ce=e.alternate;ce!==null&&(ce=ce.updateQueue,j=ce.lastBaseUpdate,j!==k&&(j===null?ce.firstBaseUpdate=ee:j.next=ee,ce.lastBaseUpdate=A))}if(m!==null){var de=d.baseState;k=0,ce=ee=A=null,j=m;do{var se=j.lane,Oe=j.eventTime;if((s&se)===se){ce!==null&&(ce=ce.next={eventTime:Oe,lane:0,tag:j.tag,payload:j.payload,callback:j.callback,next:null});e:{var De=e,Be=j;switch(se=n,Oe=a,Be.tag){case 1:if(De=Be.payload,typeof De=="function"){de=De.call(Oe,de,se);break e}de=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Be.payload,se=typeof De=="function"?De.call(Oe,de,se):De,se==null)break e;de=ae({},de,se);break e;case 2:Yi=!0}}j.callback!==null&&j.lane!==0&&(e.flags|=64,se=d.effects,se===null?d.effects=[j]:se.push(j))}else Oe={eventTime:Oe,lane:se,tag:j.tag,payload:j.payload,callback:j.callback,next:null},ce===null?(ee=ce=Oe,A=de):ce=ce.next=Oe,k|=se;if(j=j.next,j===null){if(j=d.shared.pending,j===null)break;se=j,j=se.next,se.next=null,d.lastBaseUpdate=se,d.shared.pending=null}}while(1);if(ce===null&&(A=de),d.baseState=A,d.firstBaseUpdate=ee,d.lastBaseUpdate=ce,n=d.shared.interleaved,n!==null){d=n;do k|=d.lane,d=d.next;while(d!==n)}else m===null&&(d.shared.lanes=0);Ma|=k,e.lanes=k,e.memoizedState=de}}function eb(e,n,a){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var s=e[n],d=s.callback;if(d!==null){if(s.callback=null,s=a,typeof d!="function")throw Error(o(191,d));d.call(s)}}}var tb=new t.Component().refs;function Od(e,n,a,s){n=e.memoizedState,a=a(s,n),a=a==null?n:ae({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Vs={isMounted:function(e){return(e=e._reactInternals)?rr(e)===e:!1},enqueueSetState:function(e,n,a){e=e._reactInternals;var s=ur(),d=ta(e),m=xi(s,d);m.payload=n,a!=null&&(m.callback=a),n=Ji(e,m,d),n!==null&&(Fo(n,e,d,s),As(n,e,d))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var s=ur(),d=ta(e),m=xi(s,d);m.tag=1,m.payload=n,a!=null&&(m.callback=a),n=Ji(e,m,d),n!==null&&(Fo(n,e,d,s),As(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=ur(),s=ta(e),d=xi(a,s);d.tag=2,n!=null&&(d.callback=n),n=Ji(e,d,s),n!==null&&(Fo(n,e,s,a),As(n,e,s))}};function nb(e,n,a,s,d,m,k){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,m,k):n.prototype&&n.prototype.isPureReactComponent?!$e(a,s)||!$e(d,m):!0}function rb(e,n,a){var s=!1,d=Zi,m=n.contextType;return typeof m=="object"&&m!==null?m=go(m):(d=kr(n)?Ea:Yn.current,s=n.contextTypes,m=(s=s!=null)?ul(e,d):Zi),n=new n(a,m),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Vs,e.stateNode=n,n._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=m),n}function ob(e,n,a,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,s),n.state!==e&&Vs.enqueueReplaceState(n,n.state,null)}function Ld(e,n,a,s){var d=e.stateNode;d.props=a,d.state=e.memoizedState,d.refs=tb,Nd(e);var m=n.contextType;typeof m=="object"&&m!==null?d.context=go(m):(m=kr(n)?Ea:Yn.current,d.context=ul(e,m)),d.state=e.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Od(e,n,m,a),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&Vs.enqueueReplaceState(d,d.state,null),Hs(e,a,d,s),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function iu(e,n,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(o(309));var s=a.stateNode}if(!s)throw Error(o(147,e));var d=s,m=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===m?n.ref:(n=function(k){var j=d.refs;j===tb&&(j=d.refs={}),k===null?delete j[m]:j[m]=k},n._stringRef=m,n)}if(typeof e!="string")throw Error(o(284));if(!a._owner)throw Error(o(290,e))}return e}function qs(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function ib(e){var n=e._init;return n(e._payload)}function ab(e){function n(Q,H){if(e){var $=Q.deletions;$===null?(Q.deletions=[H],Q.flags|=16):$.push(H)}}function a(Q,H){if(!e)return null;for(;H!==null;)n(Q,H),H=H.sibling;return null}function s(Q,H){for(Q=new Map;H!==null;)H.key!==null?Q.set(H.key,H):Q.set(H.index,H),H=H.sibling;return Q}function d(Q,H){return Q=ra(Q,H),Q.index=0,Q.sibling=null,Q}function m(Q,H,$){return Q.index=$,e?($=Q.alternate,$!==null?($=$.index,$<H?(Q.flags|=2,H):$):(Q.flags|=2,H)):(Q.flags|=1048576,H)}function k(Q){return e&&Q.alternate===null&&(Q.flags|=2),Q}function j(Q,H,$,ye){return H===null||H.tag!==6?(H=cp($,Q.mode,ye),H.return=Q,H):(H=d(H,$),H.return=Q,H)}function A(Q,H,$,ye){var Re=$.type;return Re===_e?ce(Q,H,$.props.children,ye,$.key):H!==null&&(H.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===Fe&&ib(Re)===H.type)?(ye=d(H,$.props),ye.ref=iu(Q,H,$),ye.return=Q,ye):(ye=sc($.type,$.key,$.props,null,Q.mode,ye),ye.ref=iu(Q,H,$),ye.return=Q,ye)}function ee(Q,H,$,ye){return H===null||H.tag!==4||H.stateNode.containerInfo!==$.containerInfo||H.stateNode.implementation!==$.implementation?(H=fp($,Q.mode,ye),H.return=Q,H):(H=d(H,$.children||[]),H.return=Q,H)}function ce(Q,H,$,ye,Re){return H===null||H.tag!==7?(H=Ba($,Q.mode,ye,Re),H.return=Q,H):(H=d(H,$),H.return=Q,H)}function de(Q,H,$){if(typeof H=="string"&&H!==""||typeof H=="number")return H=cp(""+H,Q.mode,$),H.return=Q,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case le:return $=sc(H.type,H.key,H.props,null,Q.mode,$),$.ref=iu(Q,null,H),$.return=Q,$;case Se:return H=fp(H,Q.mode,$),H.return=Q,H;case Fe:var ye=H._init;return de(Q,ye(H._payload),$)}if(rt(H)||fe(H))return H=Ba(H,Q.mode,$,null),H.return=Q,H;qs(Q,H)}return null}function se(Q,H,$,ye){var Re=H!==null?H.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return Re!==null?null:j(Q,H,""+$,ye);if(typeof $=="object"&&$!==null){switch($.$$typeof){case le:return $.key===Re?A(Q,H,$,ye):null;case Se:return $.key===Re?ee(Q,H,$,ye):null;case Fe:return Re=$._init,se(Q,H,Re($._payload),ye)}if(rt($)||fe($))return Re!==null?null:ce(Q,H,$,ye,null);qs(Q,$)}return null}function Oe(Q,H,$,ye,Re){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return Q=Q.get($)||null,j(H,Q,""+ye,Re);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case le:return Q=Q.get(ye.key===null?$:ye.key)||null,A(H,Q,ye,Re);case Se:return Q=Q.get(ye.key===null?$:ye.key)||null,ee(H,Q,ye,Re);case Fe:var Ue=ye._init;return Oe(Q,H,$,Ue(ye._payload),Re)}if(rt(ye)||fe(ye))return Q=Q.get($)||null,ce(H,Q,ye,Re,null);qs(H,ye)}return null}function De(Q,H,$,ye){for(var Re=null,Ue=null,Qe=H,et=H=0,In=null;Qe!==null&&et<$.length;et++){Qe.index>et?(In=Qe,Qe=null):In=Qe.sibling;var _t=se(Q,Qe,$[et],ye);if(_t===null){Qe===null&&(Qe=In);break}e&&Qe&&_t.alternate===null&&n(Q,Qe),H=m(_t,H,et),Ue===null?Re=_t:Ue.sibling=_t,Ue=_t,Qe=In}if(et===$.length)return a(Q,Qe),Gt&&Na(Q,et),Re;if(Qe===null){for(;et<$.length;et++)Qe=de(Q,$[et],ye),Qe!==null&&(H=m(Qe,H,et),Ue===null?Re=Qe:Ue.sibling=Qe,Ue=Qe);return Gt&&Na(Q,et),Re}for(Qe=s(Q,Qe);et<$.length;et++)In=Oe(Qe,Q,et,$[et],ye),In!==null&&(e&&In.alternate!==null&&Qe.delete(In.key===null?et:In.key),H=m(In,H,et),Ue===null?Re=In:Ue.sibling=In,Ue=In);return e&&Qe.forEach(function(oa){return n(Q,oa)}),Gt&&Na(Q,et),Re}function Be(Q,H,$,ye){var Re=fe($);if(typeof Re!="function")throw Error(o(150));if($=Re.call($),$==null)throw Error(o(151));for(var Ue=Re=null,Qe=H,et=H=0,In=null,_t=$.next();Qe!==null&&!_t.done;et++,_t=$.next()){Qe.index>et?(In=Qe,Qe=null):In=Qe.sibling;var oa=se(Q,Qe,_t.value,ye);if(oa===null){Qe===null&&(Qe=In);break}e&&Qe&&oa.alternate===null&&n(Q,Qe),H=m(oa,H,et),Ue===null?Re=oa:Ue.sibling=oa,Ue=oa,Qe=In}if(_t.done)return a(Q,Qe),Gt&&Na(Q,et),Re;if(Qe===null){for(;!_t.done;et++,_t=$.next())_t=de(Q,_t.value,ye),_t!==null&&(H=m(_t,H,et),Ue===null?Re=_t:Ue.sibling=_t,Ue=_t);return Gt&&Na(Q,et),Re}for(Qe=s(Q,Qe);!_t.done;et++,_t=$.next())_t=Oe(Qe,Q,et,_t.value,ye),_t!==null&&(e&&_t.alternate!==null&&Qe.delete(_t.key===null?et:_t.key),H=m(_t,H,et),Ue===null?Re=_t:Ue.sibling=_t,Ue=_t);return e&&Qe.forEach(function(xR){return n(Q,xR)}),Gt&&Na(Q,et),Re}function dn(Q,H,$,ye){if(typeof $=="object"&&$!==null&&$.type===_e&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case le:e:{for(var Re=$.key,Ue=H;Ue!==null;){if(Ue.key===Re){if(Re=$.type,Re===_e){if(Ue.tag===7){a(Q,Ue.sibling),H=d(Ue,$.props.children),H.return=Q,Q=H;break e}}else if(Ue.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===Fe&&ib(Re)===Ue.type){a(Q,Ue.sibling),H=d(Ue,$.props),H.ref=iu(Q,Ue,$),H.return=Q,Q=H;break e}a(Q,Ue);break}else n(Q,Ue);Ue=Ue.sibling}$.type===_e?(H=Ba($.props.children,Q.mode,ye,$.key),H.return=Q,Q=H):(ye=sc($.type,$.key,$.props,null,Q.mode,ye),ye.ref=iu(Q,H,$),ye.return=Q,Q=ye)}return k(Q);case Se:e:{for(Ue=$.key;H!==null;){if(H.key===Ue)if(H.tag===4&&H.stateNode.containerInfo===$.containerInfo&&H.stateNode.implementation===$.implementation){a(Q,H.sibling),H=d(H,$.children||[]),H.return=Q,Q=H;break e}else{a(Q,H);break}else n(Q,H);H=H.sibling}H=fp($,Q.mode,ye),H.return=Q,Q=H}return k(Q);case Fe:return Ue=$._init,dn(Q,H,Ue($._payload),ye)}if(rt($))return De(Q,H,$,ye);if(fe($))return Be(Q,H,$,ye);qs(Q,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,H!==null&&H.tag===6?(a(Q,H.sibling),H=d(H,$),H.return=Q,Q=H):(a(Q,H),H=cp($,Q.mode,ye),H.return=Q,Q=H),k(Q)):a(Q,H)}return dn}var hl=ab(!0),lb=ab(!1),au={},Yo=Xi(au),lu=Xi(au),uu=Xi(au);function La(e){if(e===au)throw Error(o(174));return e}function Cd(e,n){switch(Ut(uu,n),Ut(lu,e),Ut(Yo,au),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ge(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ge(n,e)}Yt(Yo),Ut(Yo,n)}function ml(){Yt(Yo),Yt(lu),Yt(uu)}function ub(e){La(uu.current);var n=La(Yo.current),a=Ge(n,e.type);n!==a&&(Ut(lu,e),Ut(Yo,a))}function Md(e){lu.current===e&&(Yt(Yo),Yt(lu))}var an=Xi(0);function Us(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Fd=[];function Dd(){for(var e=0;e<Fd.length;e++)Fd[e]._workInProgressVersionPrimary=null;Fd.length=0}var Qs=J.ReactCurrentDispatcher,Pd=J.ReactCurrentBatchConfig,Ca=0,ln=null,Ln=null,Tn=null,Xs=!1,su=!1,cu=0,UB=0;function Jn(){throw Error(o(321))}function Bd(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!ke(e[a],n[a]))return!1;return!0}function Rd(e,n,a,s,d,m){if(Ca=m,ln=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Qs.current=e===null||e.memoizedState===null?$B:YB,e=a(s,d),su){m=0;do{if(su=!1,cu=0,25<=m)throw Error(o(301));m+=1,Tn=Ln=null,n.updateQueue=null,Qs.current=JB,e=a(s,d)}while(su)}if(Qs.current=Ys,n=Ln!==null&&Ln.next!==null,Ca=0,Tn=Ln=ln=null,Xs=!1,n)throw Error(o(300));return e}function Td(){var e=cu!==0;return cu=0,e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tn===null?ln.memoizedState=Tn=e:Tn=Tn.next=e,Tn}function vo(){if(Ln===null){var e=ln.alternate;e=e!==null?e.memoizedState:null}else e=Ln.next;var n=Tn===null?ln.memoizedState:Tn.next;if(n!==null)Tn=n,Ln=e;else{if(e===null)throw Error(o(310));Ln=e,e={memoizedState:Ln.memoizedState,baseState:Ln.baseState,baseQueue:Ln.baseQueue,queue:Ln.queue,next:null},Tn===null?ln.memoizedState=Tn=e:Tn=Tn.next=e}return Tn}function fu(e,n){return typeof n=="function"?n(e):n}function jd(e){var n=vo(),a=n.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var s=Ln,d=s.baseQueue,m=a.pending;if(m!==null){if(d!==null){var k=d.next;d.next=m.next,m.next=k}s.baseQueue=d=m,a.pending=null}if(d!==null){m=d.next,s=s.baseState;var j=k=null,A=null,ee=m;do{var ce=ee.lane;if((Ca&ce)===ce)A!==null&&(A=A.next={lane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),s=ee.hasEagerState?ee.eagerState:e(s,ee.action);else{var de={lane:ce,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null};A===null?(j=A=de,k=s):A=A.next=de,ln.lanes|=ce,Ma|=ce}ee=ee.next}while(ee!==null&&ee!==m);A===null?k=s:A.next=j,ke(s,n.memoizedState)||(Nr=!0),n.memoizedState=s,n.baseState=k,n.baseQueue=A,a.lastRenderedState=s}if(e=a.interleaved,e!==null){d=e;do m=d.lane,ln.lanes|=m,Ma|=m,d=d.next;while(d!==e)}else d===null&&(a.lanes=0);return[n.memoizedState,a.dispatch]}function Id(e){var n=vo(),a=n.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var s=a.dispatch,d=a.pending,m=n.memoizedState;if(d!==null){a.pending=null;var k=d=d.next;do m=e(m,k.action),k=k.next;while(k!==d);ke(m,n.memoizedState)||(Nr=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),a.lastRenderedState=m}return[m,s]}function sb(){}function cb(e,n){var a=ln,s=vo(),d=n(),m=!ke(s.memoizedState,d);if(m&&(s.memoizedState=d,Nr=!0),s=s.queue,zd(pb.bind(null,a,s,e),[e]),s.getSnapshot!==n||m||Tn!==null&&Tn.memoizedState.tag&1){if(a.flags|=2048,du(9,db.bind(null,a,s,d,n),void 0,null),jn===null)throw Error(o(349));Ca&30||fb(a,n,d)}return d}function fb(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=ln.updateQueue,n===null?(n={lastEffect:null,stores:null},ln.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function db(e,n,a,s){n.value=a,n.getSnapshot=s,hb(n)&&mb(e)}function pb(e,n,a){return a(function(){hb(n)&&mb(e)})}function hb(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!ke(e,a)}catch{return!0}}function mb(e){var n=Si(e,1);n!==null&&Fo(n,e,1,-1)}function gb(e){var n=Jo();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fu,lastRenderedState:e},n.queue=e,e=e.dispatch=ZB.bind(null,ln,e),[n.memoizedState,e]}function du(e,n,a,s){return e={tag:e,create:n,destroy:a,deps:s,next:null},n=ln.updateQueue,n===null?(n={lastEffect:null,stores:null},ln.updateQueue=n,n.lastEffect=e.next=e):(a=n.lastEffect,a===null?n.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,n.lastEffect=e)),e}function vb(){return vo().memoizedState}function Zs(e,n,a,s){var d=Jo();ln.flags|=e,d.memoizedState=du(1|n,a,void 0,s===void 0?null:s)}function $s(e,n,a,s){var d=vo();s=s===void 0?null:s;var m=void 0;if(Ln!==null){var k=Ln.memoizedState;if(m=k.destroy,s!==null&&Bd(s,k.deps)){d.memoizedState=du(n,a,m,s);return}}ln.flags|=e,d.memoizedState=du(1|n,a,m,s)}function yb(e,n){return Zs(8390656,8,e,n)}function zd(e,n){return $s(2048,8,e,n)}function bb(e,n){return $s(4,2,e,n)}function _b(e,n){return $s(4,4,e,n)}function wb(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Sb(e,n,a){return a=a!=null?a.concat([e]):null,$s(4,4,wb.bind(null,n,e),a)}function Kd(){}function xb(e,n){var a=vo();n=n===void 0?null:n;var s=a.memoizedState;return s!==null&&n!==null&&Bd(n,s[1])?s[0]:(a.memoizedState=[e,n],e)}function Eb(e,n){var a=vo();n=n===void 0?null:n;var s=a.memoizedState;return s!==null&&n!==null&&Bd(n,s[1])?s[0]:(e=e(),a.memoizedState=[e,n],e)}function kb(e,n,a){return Ca&21?(ke(a,n)||(a=P(),ln.lanes|=a,Ma|=a,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,Nr=!0),e.memoizedState=a)}function QB(e,n){var a=be;be=a!==0&&4>a?a:4,e(!0);var s=Pd.transition;Pd.transition={};try{e(!1),n()}finally{be=a,Pd.transition=s}}function Nb(){return vo().memoizedState}function XB(e,n,a){var s=ta(e);if(a={lane:s,action:a,hasEagerState:!1,eagerState:null,next:null},Ob(e))Lb(n,a);else if(a=Jy(e,n,a,s),a!==null){var d=ur();Fo(a,e,s,d),Cb(a,n,s)}}function ZB(e,n,a){var s=ta(e),d={lane:s,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ob(e))Lb(n,d);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var k=n.lastRenderedState,j=m(k,a);if(d.hasEagerState=!0,d.eagerState=j,ke(j,k)){var A=n.interleaved;A===null?(d.next=d,kd(n)):(d.next=A.next,A.next=d),n.interleaved=d;return}}catch{}finally{}a=Jy(e,n,d,s),a!==null&&(d=ur(),Fo(a,e,s,d),Cb(a,n,s))}}function Ob(e){var n=e.alternate;return e===ln||n!==null&&n===ln}function Lb(e,n){su=Xs=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function Cb(e,n,a){if(a&4194240){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,me(e,a)}}var Ys={readContext:go,useCallback:Jn,useContext:Jn,useEffect:Jn,useImperativeHandle:Jn,useInsertionEffect:Jn,useLayoutEffect:Jn,useMemo:Jn,useReducer:Jn,useRef:Jn,useState:Jn,useDebugValue:Jn,useDeferredValue:Jn,useTransition:Jn,useMutableSource:Jn,useSyncExternalStore:Jn,useId:Jn,unstable_isNewReconciler:!1},$B={readContext:go,useCallback:function(e,n){return Jo().memoizedState=[e,n===void 0?null:n],e},useContext:go,useEffect:yb,useImperativeHandle:function(e,n,a){return a=a!=null?a.concat([e]):null,Zs(4194308,4,wb.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Zs(4194308,4,e,n)},useInsertionEffect:function(e,n){return Zs(4,2,e,n)},useMemo:function(e,n){var a=Jo();return n=n===void 0?null:n,e=e(),a.memoizedState=[e,n],e},useReducer:function(e,n,a){var s=Jo();return n=a!==void 0?a(n):n,s.memoizedState=s.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=XB.bind(null,ln,e),[s.memoizedState,e]},useRef:function(e){var n=Jo();return e={current:e},n.memoizedState=e},useState:gb,useDebugValue:Kd,useDeferredValue:function(e){return Jo().memoizedState=e},useTransition:function(){var e=gb(!1),n=e[0];return e=QB.bind(null,e[1]),Jo().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,a){var s=ln,d=Jo();if(Gt){if(a===void 0)throw Error(o(407));a=a()}else{if(a=n(),jn===null)throw Error(o(349));Ca&30||fb(s,n,a)}d.memoizedState=a;var m={value:a,getSnapshot:n};return d.queue=m,yb(pb.bind(null,s,m,e),[e]),s.flags|=2048,du(9,db.bind(null,s,m,a,n),void 0,null),a},useId:function(){var e=Jo(),n=jn.identifierPrefix;if(Gt){var a=wi,s=_i;a=(s&~(1<<32-un(s)-1)).toString(32)+a,n=":"+n+"R"+a,a=cu++,0<a&&(n+="H"+a.toString(32)),n+=":"}else a=UB++,n=":"+n+"r"+a.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},YB={readContext:go,useCallback:xb,useContext:go,useEffect:zd,useImperativeHandle:Sb,useInsertionEffect:bb,useLayoutEffect:_b,useMemo:Eb,useReducer:jd,useRef:vb,useState:function(){return jd(fu)},useDebugValue:Kd,useDeferredValue:function(e){var n=vo();return kb(n,Ln.memoizedState,e)},useTransition:function(){var e=jd(fu)[0],n=vo().memoizedState;return[e,n]},useMutableSource:sb,useSyncExternalStore:cb,useId:Nb,unstable_isNewReconciler:!1},JB={readContext:go,useCallback:xb,useContext:go,useEffect:zd,useImperativeHandle:Sb,useInsertionEffect:bb,useLayoutEffect:_b,useMemo:Eb,useReducer:Id,useRef:vb,useState:function(){return Id(fu)},useDebugValue:Kd,useDeferredValue:function(e){var n=vo();return Ln===null?n.memoizedState=e:kb(n,Ln.memoizedState,e)},useTransition:function(){var e=Id(fu)[0],n=vo().memoizedState;return[e,n]},useMutableSource:sb,useSyncExternalStore:cb,useId:Nb,unstable_isNewReconciler:!1};function gl(e,n){try{var a="",s=n;do a+=Ve(s),s=s.return;while(s);var d=a}catch(m){d=`
|
|
50
50
|
Error generating stack: `+m.message+`
|
|
51
|
-
`+m.stack}return{value:e,source:n,stack:d,digest:null}}function Cd(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Bd(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var M2=typeof WeakMap=="function"?WeakMap:Map;function vb(e,n,o){o=wo(-1,o),o.tag=3,o.payload={element:null};var s=n.value;return o.callback=function(){Zs||(Zs=!0,Qd=s),Bd(e,n)},o}function yb(e,n,o){o=wo(-1,o),o.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var d=n.value;o.payload=function(){return s(d)},o.callback=function(){Bd(e,n)}}var m=e.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(o.callback=function(){Bd(e,n),typeof s!="function"&&(Jo===null?Jo=new Set([this]):Jo.add(this));var k=n.stack;this.componentDidCatch(n.value,{componentStack:k!==null?k:""})}),o}function bb(e,n,o){var s=e.pingCache;if(s===null){s=e.pingCache=new M2;var d=new Set;s.set(n,d)}else d=s.get(n),d===void 0&&(d=new Set,s.set(n,d));d.has(o)||(d.add(o),e=q2.bind(null,e,n,o),n.then(e,e))}function _b(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function wb(e,n,o,s,d){return e.mode&1?(e.flags|=65536,e.lanes=d,e):(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=wo(-1,1),n.tag=2,$o(o,n,1))),o.lanes|=1),e)}var L2=J.ReactCurrentOwner,kr=!1;function ar(e,n,o,s){n.child=e===null?Zy(n,null,o,s):dl(n,e.child,o,s)}function Sb(e,n,o,s,d){o=o.render;var m=n.ref;return fl(n,d),s=kd(e,n,o,s,m,d),o=Nd(),e!==null&&!kr?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,So(e,n,d)):(Gt&&o&&ad(n),n.flags|=1,ar(e,n,s,d),n.child)}function xb(e,n,o,s,d){if(e===null){var m=o.type;return typeof m=="function"&&!Gd(m)&&m.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=m,Eb(e,n,m,s,d)):(e=ec(o.type,null,s,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!(e.lanes&d)){var k=m.memoizedProps;if(o=o.compare,o=o!==null?o:$e,o(k,s)&&e.ref===n.ref)return So(e,n,d)}return n.flags|=1,e=ta(m,s),e.ref=n.ref,e.return=n,n.child=e}function Eb(e,n,o,s,d){if(e!==null){var m=e.memoizedProps;if($e(m,s)&&e.ref===n.ref)if(kr=!1,n.pendingProps=s=m,(e.lanes&d)!==0)e.flags&131072&&(kr=!0);else return n.lanes=e.lanes,So(e,n,d)}return Fd(e,n,o,s,d)}function kb(e,n,o){var s=n.pendingProps,d=s.children,m=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(gl,Zr),Zr|=o;else{if(!(o&1073741824))return e=m!==null?m.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ut(gl,Zr),Zr|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=m!==null?m.baseLanes:o,Ut(gl,Zr),Zr|=s}else m!==null?(s=m.baseLanes|o,n.memoizedState=null):s=o,Ut(gl,Zr),Zr|=s;return ar(e,n,d,o),n.child}function Nb(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Fd(e,n,o,s,d){var m=Er(o)?Sa:$n.current;return m=al(n,m),fl(n,d),o=kd(e,n,o,s,m,d),s=Nd(),e!==null&&!kr?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,So(e,n,d)):(Gt&&s&&ad(n),n.flags|=1,ar(e,n,o,d),n.child)}function Ob(e,n,o,s,d){if(Er(o)){var m=!0;ks(n)}else m=!1;if(fl(n,d),n.stateNode===null)qs(e,n),Uy(n,o,s),yd(n,o,s,d),s=!0;else if(e===null){var k=n.stateNode,I=n.memoizedProps;k.props=I;var H=k.context,ee=o.contextType;typeof ee=="object"&&ee!==null?ee=hi(ee):(ee=Er(o)?Sa:$n.current,ee=al(n,ee));var ce=o.getDerivedStateFromProps,de=typeof ce=="function"||typeof k.getSnapshotBeforeUpdate=="function";de||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(I!==s||H!==ee)&&Vy(n,k,s,ee),Zo=!1;var se=n.memoizedState;k.state=se,Fs(n,s,k,d),H=n.memoizedState,I!==s||se!==H||xr.current||Zo?(typeof ce=="function"&&(vd(n,o,ce,s),H=n.memoizedState),(I=Zo||qy(n,o,I,s,se,H,ee))?(de||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(n.flags|=4194308)):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=H),k.props=s,k.state=H,k.context=ee,s=I):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{k=n.stateNode,Ty(e,n),I=n.memoizedProps,ee=n.type===n.elementType?I:Ni(n.type,I),k.props=ee,de=n.pendingProps,se=k.context,H=o.contextType,typeof H=="object"&&H!==null?H=hi(H):(H=Er(o)?Sa:$n.current,H=al(n,H));var Oe=o.getDerivedStateFromProps;(ce=typeof Oe=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(I!==de||se!==H)&&Vy(n,k,s,H),Zo=!1,se=n.memoizedState,k.state=se,Fs(n,s,k,d);var Be=n.memoizedState;I!==de||se!==Be||xr.current||Zo?(typeof Oe=="function"&&(vd(n,o,Oe,s),Be=n.memoizedState),(ee=Zo||qy(n,o,ee,s,se,Be,H)||!1)?(ce||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(s,Be,H),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(s,Be,H)),typeof k.componentDidUpdate=="function"&&(n.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof k.componentDidUpdate!="function"||I===e.memoizedProps&&se===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||I===e.memoizedProps&&se===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Be),k.props=s,k.state=Be,k.context=H,s=ee):(typeof k.componentDidUpdate!="function"||I===e.memoizedProps&&se===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||I===e.memoizedProps&&se===e.memoizedState||(n.flags|=1024),s=!1)}return Pd(e,n,o,s,m,d)}function Pd(e,n,o,s,d,m){Nb(e,n);var k=(n.flags&128)!==0;if(!s&&!k)return d&&Cy(n,o,!1),So(e,n,m);s=n.stateNode,L2.current=n;var I=k&&typeof o.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,e!==null&&k?(n.child=dl(n,e.child,null,m),n.child=dl(n,null,I,m)):ar(e,n,I,m),n.memoizedState=s.state,d&&Cy(n,o,!0),n.child}function Db(e){var n=e.stateNode;n.pendingContext?My(e,n.pendingContext,n.pendingContext!==n.context):n.context&&My(e,n.context,!1),bd(e,n.containerInfo)}function Mb(e,n,o,s,d){return sl(),cd(d),n.flags|=256,ar(e,n,o,s),n.child}var Kd={dehydrated:null,treeContext:null,retryLane:0};function Rd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lb(e,n,o){var s=n.pendingProps,d=an.current,m=!1,k=(n.flags&128)!==0,I;if((I=k)||(I=e!==null&&e.memoizedState===null?!1:(d&2)!==0),I?(m=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Ut(an,d&1),e===null)return sd(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(k=s.children,e=s.fallback,m?(s=n.mode,m=n.child,k={mode:"hidden",children:k},!(s&1)&&m!==null?(m.childLanes=0,m.pendingProps=k):m=tc(k,s,0,null),e=Ba(e,s,o,null),m.return=n,e.return=n,m.sibling=e,n.child=m,n.child.memoizedState=Rd(o),n.memoizedState=Kd,e):Id(n,k));if(d=e.memoizedState,d!==null&&(I=d.dehydrated,I!==null))return C2(e,n,k,s,I,d,o);if(m){m=s.fallback,k=n.mode,d=e.child,I=d.sibling;var H={mode:"hidden",children:s.children};return!(k&1)&&n.child!==d?(s=n.child,s.childLanes=0,s.pendingProps=H,n.deletions=null):(s=ta(d,H),s.subtreeFlags=d.subtreeFlags&14680064),I!==null?m=ta(I,m):(m=Ba(m,k,o,null),m.flags|=2),m.return=n,s.return=n,s.sibling=m,n.child=s,s=m,m=n.child,k=e.child.memoizedState,k=k===null?Rd(o):{baseLanes:k.baseLanes|o,cachePool:null,transitions:k.transitions},m.memoizedState=k,m.childLanes=e.childLanes&~o,n.memoizedState=Kd,s}return m=e.child,e=m.sibling,s=ta(m,{mode:"visible",children:s.children}),!(n.mode&1)&&(s.lanes=o),s.return=n,s.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=s,n.memoizedState=null,s}function Id(e,n){return n=tc({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function As(e,n,o,s){return s!==null&&cd(s),dl(n,e.child,null,o),e=Id(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function C2(e,n,o,s,d,m,k){if(o)return n.flags&256?(n.flags&=-257,s=Cd(Error(i(422))),As(e,n,k,s)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(m=s.fallback,d=n.mode,s=tc({mode:"visible",children:s.children},d,0,null),m=Ba(m,d,k,null),m.flags|=2,s.return=n,m.return=n,s.sibling=m,n.child=s,n.mode&1&&dl(n,e.child,null,k),n.child.memoizedState=Rd(k),n.memoizedState=Kd,m);if(!(n.mode&1))return As(e,n,k,null);if(d.data==="$!"){if(s=d.nextSibling&&d.nextSibling.dataset,s)var I=s.dgst;return s=I,m=Error(i(419)),s=Cd(m,s,void 0),As(e,n,k,s)}if(I=(k&e.childLanes)!==0,kr||I){if(s=In,s!==null){switch(k&-k){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=d&(s.suspendedLanes|k)?0:d,d!==0&&d!==m.retryLane&&(m.retryLane=d,_o(e,d),Mi(s,e,d,-1))}return Wd(),s=Cd(Error(i(421))),As(e,n,k,s)}return d.data==="$?"?(n.flags|=128,n.child=e.child,n=U2.bind(null,e),d._reactRetry=n,null):(e=m.treeContext,Xr=Uo(d.nextSibling),Qr=n,Gt=!0,ki=null,e!==null&&(di[pi++]=yo,di[pi++]=bo,di[pi++]=xa,yo=e.id,bo=e.overflow,xa=n),n=Id(n,s.children),n.flags|=4096,n)}function Cb(e,n,o){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),hd(e.return,n,o)}function jd(e,n,o,s,d){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:d}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=o,m.tailMode=d)}function Bb(e,n,o){var s=n.pendingProps,d=s.revealOrder,m=s.tail;if(ar(e,n,s.children,o),s=an.current,s&2)s=s&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cb(e,o,n);else if(e.tag===19)Cb(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Ut(an,s),!(n.mode&1))n.memoizedState=null;else switch(d){case"forwards":for(o=n.child,d=null;o!==null;)e=o.alternate,e!==null&&Rs(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=n.child,n.child=null):(d=o.sibling,o.sibling=null),jd(n,!1,d,o,m);break;case"backwards":for(o=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Rs(e)===null){n.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}jd(n,!0,o,null,m);break;case"together":jd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function qs(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function So(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),Da|=n.lanes,!(o&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=ta(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=ta(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function B2(e,n,o){switch(n.tag){case 3:Db(n),sl();break;case 5:$y(n);break;case 1:Er(n.type)&&ks(n);break;case 4:bd(n,n.stateNode.containerInfo);break;case 10:var s=n.type._context,d=n.memoizedProps.value;Ut(Ls,s._currentValue),s._currentValue=d;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Ut(an,an.current&1),n.flags|=128,null):o&n.child.childLanes?Lb(e,n,o):(Ut(an,an.current&1),e=So(e,n,o),e!==null?e.sibling:null);Ut(an,an.current&1);break;case 19:if(s=(o&n.childLanes)!==0,e.flags&128){if(s)return Bb(e,n,o);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Ut(an,an.current),s)break;return null;case 22:case 23:return n.lanes=0,kb(e,n,o)}return So(e,n,o)}var Fb,Td,Pb,Kb;Fb=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Td=function(){},Pb=function(e,n,o,s){var d=e.memoizedProps;if(d!==s){e=n.stateNode,Na(Zi.current);var m=null;switch(o){case"input":d=st(e,d),s=st(e,s),m=[];break;case"select":d=ae({},d,{value:void 0}),s=ae({},s,{value:void 0}),m=[];break;case"textarea":d=Kt(e,d),s=Kt(e,s),m=[];break;default:typeof d.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ss)}_i(o,s);var k;o=null;for(ee in d)if(!s.hasOwnProperty(ee)&&d.hasOwnProperty(ee)&&d[ee]!=null)if(ee==="style"){var I=d[ee];for(k in I)I.hasOwnProperty(k)&&(o||(o={}),o[k]="")}else ee!=="dangerouslySetInnerHTML"&&ee!=="children"&&ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&ee!=="autoFocus"&&(u.hasOwnProperty(ee)?m||(m=[]):(m=m||[]).push(ee,null));for(ee in s){var H=s[ee];if(I=d?.[ee],s.hasOwnProperty(ee)&&H!==I&&(H!=null||I!=null))if(ee==="style")if(I){for(k in I)!I.hasOwnProperty(k)||H&&H.hasOwnProperty(k)||(o||(o={}),o[k]="");for(k in H)H.hasOwnProperty(k)&&I[k]!==H[k]&&(o||(o={}),o[k]=H[k])}else o||(m||(m=[]),m.push(ee,o)),o=H;else ee==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,I=I?I.__html:void 0,H!=null&&I!==H&&(m=m||[]).push(ee,H)):ee==="children"?typeof H!="string"&&typeof H!="number"||(m=m||[]).push(ee,""+H):ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&(u.hasOwnProperty(ee)?(H!=null&&ee==="onScroll"&&$t("scroll",e),m||I===H||(m=[])):(m=m||[]).push(ee,H))}o&&(m=m||[]).push("style",o);var ee=m;(n.updateQueue=ee)&&(n.flags|=4)}},Kb=function(e,n,o,s){o!==s&&(n.flags|=4)};function fu(e,n){if(!Gt)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Jn(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(n)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,s|=d.subtreeFlags&14680064,s|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=o,n}function F2(e,n,o){var s=n.pendingProps;switch(ld(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jn(n),null;case 1:return Er(n.type)&&Es(),Jn(n),null;case 3:return s=n.stateNode,pl(),Yt(xr),Yt($n),Sd(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ms(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,ki!==null&&($d(ki),ki=null))),Td(e,n),Jn(n),null;case 5:_d(n);var d=Na(au.current);if(o=n.type,e!==null&&n.stateNode!=null)Pb(e,n,o,s,d),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(n.stateNode===null)throw Error(i(166));return Jn(n),null}if(e=Na(Zi.current),Ms(n)){s=n.stateNode,o=n.type;var m=n.memoizedProps;switch(s[Xi]=n,s[tu]=m,e=(n.mode&1)!==0,o){case"dialog":$t("cancel",s),$t("close",s);break;case"iframe":case"object":case"embed":$t("load",s);break;case"video":case"audio":for(d=0;d<Wl.length;d++)$t(Wl[d],s);break;case"source":$t("error",s);break;case"img":case"image":case"link":$t("error",s),$t("load",s);break;case"details":$t("toggle",s);break;case"input":ut(s,m),$t("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!m.multiple},$t("invalid",s);break;case"textarea":Fe(s,m),$t("invalid",s)}_i(o,m),d=null;for(var k in m)if(m.hasOwnProperty(k)){var I=m[k];k==="children"?typeof I=="string"?s.textContent!==I&&(m.suppressHydrationWarning!==!0&&ws(s.textContent,I,e),d=["children",I]):typeof I=="number"&&s.textContent!==""+I&&(m.suppressHydrationWarning!==!0&&ws(s.textContent,I,e),d=["children",""+I]):u.hasOwnProperty(k)&&I!=null&&k==="onScroll"&&$t("scroll",s)}switch(o){case"input":kt(s),Bt(s,m,!0);break;case"textarea":kt(s),Ye(s);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(s.onclick=Ss)}s=d,n.updateQueue=s,s!==null&&(n.flags|=4)}else{k=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ht(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=k.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=k.createElement(o,{is:s.is}):(e=k.createElement(o),o==="select"&&(k=e,s.multiple?k.multiple=!0:s.size&&(k.size=s.size))):e=k.createElementNS(e,o),e[Xi]=n,e[tu]=s,Fb(e,n,!1,!1),n.stateNode=e;e:{switch(k=Jt(o,s),o){case"dialog":$t("cancel",e),$t("close",e),d=s;break;case"iframe":case"object":case"embed":$t("load",e),d=s;break;case"video":case"audio":for(d=0;d<Wl.length;d++)$t(Wl[d],e);d=s;break;case"source":$t("error",e),d=s;break;case"img":case"image":case"link":$t("error",e),$t("load",e),d=s;break;case"details":$t("toggle",e),d=s;break;case"input":ut(e,s),d=st(e,s),$t("invalid",e);break;case"option":d=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},d=ae({},s,{value:void 0}),$t("invalid",e);break;case"textarea":Fe(e,s),d=Kt(e,s),$t("invalid",e);break;default:d=s}_i(o,d),I=d;for(m in I)if(I.hasOwnProperty(m)){var H=I[m];m==="style"?ro(e,H):m==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&ct(e,H)):m==="children"?typeof H=="string"?(o!=="textarea"||H!=="")&&xn(e,H):typeof H=="number"&&xn(e,""+H):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(u.hasOwnProperty(m)?H!=null&&m==="onScroll"&&$t("scroll",e):H!=null&&W(e,m,H,k))}switch(o){case"input":kt(e),Bt(e,s,!1);break;case"textarea":kt(e),Ye(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Rt(s.value));break;case"select":e.multiple=!!s.multiple,m=s.value,m!=null?pt(e,!!s.multiple,m,!1):s.defaultValue!=null&&pt(e,!!s.multiple,s.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=Ss)}switch(o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Jn(n),null;case 6:if(e&&n.stateNode!=null)Kb(e,n,e.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(i(166));if(o=Na(au.current),Na(Zi.current),Ms(n)){if(s=n.stateNode,o=n.memoizedProps,s[Xi]=n,(m=s.nodeValue!==o)&&(e=Qr,e!==null))switch(e.tag){case 3:ws(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ws(s.nodeValue,o,(e.mode&1)!==0)}m&&(n.flags|=4)}else s=(o.nodeType===9?o:o.ownerDocument).createTextNode(s),s[Xi]=n,n.stateNode=s}return Jn(n),null;case 13:if(Yt(an),s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Gt&&Xr!==null&&n.mode&1&&!(n.flags&128))Iy(),sl(),n.flags|=98560,m=!1;else if(m=Ms(n),s!==null&&s.dehydrated!==null){if(e===null){if(!m)throw Error(i(318));if(m=n.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[Xi]=n}else sl(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;Jn(n),m=!1}else ki!==null&&($d(ki),ki=null),m=!0;if(!m)return n.flags&65536?n:null}return n.flags&128?(n.lanes=o,n):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(n.child.flags|=8192,n.mode&1&&(e===null||an.current&1?Dn===0&&(Dn=3):Wd())),n.updateQueue!==null&&(n.flags|=4),Jn(n),null);case 4:return pl(),Td(e,n),e===null&&Gl(n.stateNode.containerInfo),Jn(n),null;case 10:return pd(n.type._context),Jn(n),null;case 17:return Er(n.type)&&Es(),Jn(n),null;case 19:if(Yt(an),m=n.memoizedState,m===null)return Jn(n),null;if(s=(n.flags&128)!==0,k=m.rendering,k===null)if(s)fu(m,!1);else{if(Dn!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(k=Rs(e),k!==null){for(n.flags|=128,fu(m,!1),s=k.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),n.subtreeFlags=0,s=o,o=n.child;o!==null;)m=o,e=s,m.flags&=14680066,k=m.alternate,k===null?(m.childLanes=0,m.lanes=e,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=k.childLanes,m.lanes=k.lanes,m.child=k.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=k.memoizedProps,m.memoizedState=k.memoizedState,m.updateQueue=k.updateQueue,m.type=k.type,e=k.dependencies,m.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ut(an,an.current&1|2),n.child}e=e.sibling}m.tail!==null&&vt()>vl&&(n.flags|=128,s=!0,fu(m,!1),n.lanes=4194304)}else{if(!s)if(e=Rs(k),e!==null){if(n.flags|=128,s=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),fu(m,!0),m.tail===null&&m.tailMode==="hidden"&&!k.alternate&&!Gt)return Jn(n),null}else 2*vt()-m.renderingStartTime>vl&&o!==1073741824&&(n.flags|=128,s=!0,fu(m,!1),n.lanes=4194304);m.isBackwards?(k.sibling=n.child,n.child=k):(o=m.last,o!==null?o.sibling=k:n.child=k,m.last=k)}return m.tail!==null?(n=m.tail,m.rendering=n,m.tail=n.sibling,m.renderingStartTime=vt(),n.sibling=null,o=an.current,Ut(an,s?o&1|2:o&1),n):(Jn(n),null);case 22:case 23:return Jd(),s=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(n.flags|=8192),s&&n.mode&1?Zr&1073741824&&(Jn(n),n.subtreeFlags&6&&(n.flags|=8192)):Jn(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function P2(e,n){switch(ld(n),n.tag){case 1:return Er(n.type)&&Es(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return pl(),Yt(xr),Yt($n),Sd(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return _d(n),null;case 13:if(Yt(an),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));sl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Yt(an),null;case 4:return pl(),null;case 10:return pd(n.type._context),null;case 22:case 23:return Jd(),null;case 24:return null;default:return null}}var Us=!1,Wn=!1,K2=typeof WeakSet=="function"?WeakSet:Set,Le=null;function ml(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){cn(e,n,s)}else o.current=null}function Rb(e,n,o){try{o()}catch(s){cn(e,n,s)}}var Ib=!1;function R2(e,n){if(Wf=yn,e=Vr(),Ao(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var d=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var k=0,I=-1,H=-1,ee=0,ce=0,de=e,se=null;t:for(;;){for(var Oe;de!==o||d!==0&&de.nodeType!==3||(I=k+d),de!==m||s!==0&&de.nodeType!==3||(H=k+s),de.nodeType===3&&(k+=de.nodeValue.length),(Oe=de.firstChild)!==null;)se=de,de=Oe;for(;;){if(de===e)break t;if(se===o&&++ee===d&&(I=k),se===m&&++ce===s&&(H=k),(Oe=de.nextSibling)!==null)break;de=se,se=de.parentNode}de=Oe}o=I===-1||H===-1?null:{start:I,end:H}}else o=null}o=o||{start:0,end:0}}else o=null;for(Gf={focusedElem:e,selectionRange:o},yn=!1,Le=n;Le!==null;)if(n=Le,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Le=e;else for(;Le!==null;){n=Le;try{var Be=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var Pe=Be.memoizedProps,dn=Be.memoizedState,Q=n.stateNode,A=Q.getSnapshotBeforeUpdate(n.elementType===n.type?Pe:Ni(n.type,Pe),dn);Q.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var $=n.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ye){cn(n,n.return,ye)}if(e=n.sibling,e!==null){e.return=n.return,Le=e;break}Le=n.return}return Be=Ib,Ib=!1,Be}function du(e,n,o){var s=n.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var d=s=s.next;do{if((d.tag&e)===e){var m=d.destroy;d.destroy=void 0,m!==void 0&&Rb(n,o,m)}d=d.next}while(d!==s)}}function Vs(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==n)}}function zd(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function jb(e){var n=e.alternate;n!==null&&(e.alternate=null,jb(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Xi],delete n[tu],delete n[rd],delete n[y2],delete n[b2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tb(e){return e.tag===5||e.tag===3||e.tag===4}function zb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hd(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=Ss));else if(s!==4&&(e=e.child,e!==null))for(Hd(e,n,o),e=e.sibling;e!==null;)Hd(e,n,o),e=e.sibling}function Ad(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Ad(e,n,o),e=e.sibling;e!==null;)Ad(e,n,o),e=e.sibling}var qn=null,Oi=!1;function Yo(e,n,o){for(o=o.child;o!==null;)Hb(e,n,o),o=o.sibling}function Hb(e,n,o){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(Wt,o)}catch{}switch(o.tag){case 5:Wn||ml(o,n);case 6:var s=qn,d=Oi;qn=null,Yo(e,n,o),qn=s,Oi=d,qn!==null&&(Oi?(e=qn,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):qn.removeChild(o.stateNode));break;case 18:qn!==null&&(Oi?(e=qn,o=o.stateNode,e.nodeType===8?nd(e.parentNode,o):e.nodeType===1&&nd(e,o),rn(e)):nd(qn,o.stateNode));break;case 4:s=qn,d=Oi,qn=o.stateNode.containerInfo,Oi=!0,Yo(e,n,o),qn=s,Oi=d;break;case 0:case 11:case 14:case 15:if(!Wn&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){d=s=s.next;do{var m=d,k=m.destroy;m=m.tag,k!==void 0&&(m&2||m&4)&&Rb(o,n,k),d=d.next}while(d!==s)}Yo(e,n,o);break;case 1:if(!Wn&&(ml(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(I){cn(o,n,I)}Yo(e,n,o);break;case 21:Yo(e,n,o);break;case 22:o.mode&1?(Wn=(s=Wn)||o.memoizedState!==null,Yo(e,n,o),Wn=s):Yo(e,n,o);break;default:Yo(e,n,o)}}function Ab(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new K2),n.forEach(function(s){var d=V2.bind(null,e,s);o.has(s)||(o.add(s),s.then(d,d))})}}function Di(e,n){var o=n.deletions;if(o!==null)for(var s=0;s<o.length;s++){var d=o[s];try{var m=e,k=n,I=k;e:for(;I!==null;){switch(I.tag){case 5:qn=I.stateNode,Oi=!1;break e;case 3:qn=I.stateNode.containerInfo,Oi=!0;break e;case 4:qn=I.stateNode.containerInfo,Oi=!0;break e}I=I.return}if(qn===null)throw Error(i(160));Hb(m,k,d),qn=null,Oi=!1;var H=d.alternate;H!==null&&(H.return=null),d.return=null}catch(ee){cn(d,n,ee)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)qb(n,e),n=n.sibling}function qb(e,n){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Di(n,e),Yi(e),s&4){try{du(3,e,e.return),Vs(3,e)}catch(Pe){cn(e,e.return,Pe)}try{du(5,e,e.return)}catch(Pe){cn(e,e.return,Pe)}}break;case 1:Di(n,e),Yi(e),s&512&&o!==null&&ml(o,o.return);break;case 5:if(Di(n,e),Yi(e),s&512&&o!==null&&ml(o,o.return),e.flags&32){var d=e.stateNode;try{xn(d,"")}catch(Pe){cn(e,e.return,Pe)}}if(s&4&&(d=e.stateNode,d!=null)){var m=e.memoizedProps,k=o!==null?o.memoizedProps:m,I=e.type,H=e.updateQueue;if(e.updateQueue=null,H!==null)try{I==="input"&&m.type==="radio"&&m.name!=null&&Pt(d,m),Jt(I,k);var ee=Jt(I,m);for(k=0;k<H.length;k+=2){var ce=H[k],de=H[k+1];ce==="style"?ro(d,de):ce==="dangerouslySetInnerHTML"?ct(d,de):ce==="children"?xn(d,de):W(d,ce,de,ee)}switch(I){case"input":hn(d,m);break;case"textarea":nt(d,m);break;case"select":var se=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!m.multiple;var Oe=m.value;Oe!=null?pt(d,!!m.multiple,Oe,!1):se!==!!m.multiple&&(m.defaultValue!=null?pt(d,!!m.multiple,m.defaultValue,!0):pt(d,!!m.multiple,m.multiple?[]:"",!1))}d[tu]=m}catch(Pe){cn(e,e.return,Pe)}}break;case 6:if(Di(n,e),Yi(e),s&4){if(e.stateNode===null)throw Error(i(162));d=e.stateNode,m=e.memoizedProps;try{d.nodeValue=m}catch(Pe){cn(e,e.return,Pe)}}break;case 3:if(Di(n,e),Yi(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{rn(n.containerInfo)}catch(Pe){cn(e,e.return,Pe)}break;case 4:Di(n,e),Yi(e);break;case 13:Di(n,e),Yi(e),d=e.child,d.flags&8192&&(m=d.memoizedState!==null,d.stateNode.isHidden=m,!m||d.alternate!==null&&d.alternate.memoizedState!==null||(Vd=vt())),s&4&&Ab(e);break;case 22:if(ce=o!==null&&o.memoizedState!==null,e.mode&1?(Wn=(ee=Wn)||ce,Di(n,e),Wn=ee):Di(n,e),Yi(e),s&8192){if(ee=e.memoizedState!==null,(e.stateNode.isHidden=ee)&&!ce&&e.mode&1)for(Le=e,ce=e.child;ce!==null;){for(de=Le=ce;Le!==null;){switch(se=Le,Oe=se.child,se.tag){case 0:case 11:case 14:case 15:du(4,se,se.return);break;case 1:ml(se,se.return);var Be=se.stateNode;if(typeof Be.componentWillUnmount=="function"){s=se,o=se.return;try{n=s,Be.props=n.memoizedProps,Be.state=n.memoizedState,Be.componentWillUnmount()}catch(Pe){cn(s,o,Pe)}}break;case 5:ml(se,se.return);break;case 22:if(se.memoizedState!==null){Qb(de);continue}}Oe!==null?(Oe.return=se,Le=Oe):Qb(de)}ce=ce.sibling}e:for(ce=null,de=e;;){if(de.tag===5){if(ce===null){ce=de;try{d=de.stateNode,ee?(m=d.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(I=de.stateNode,H=de.memoizedProps.style,k=H!=null&&H.hasOwnProperty("display")?H.display:null,I.style.display=Vn("display",k))}catch(Pe){cn(e,e.return,Pe)}}}else if(de.tag===6){if(ce===null)try{de.stateNode.nodeValue=ee?"":de.memoizedProps}catch(Pe){cn(e,e.return,Pe)}}else if((de.tag!==22&&de.tag!==23||de.memoizedState===null||de===e)&&de.child!==null){de.child.return=de,de=de.child;continue}if(de===e)break e;for(;de.sibling===null;){if(de.return===null||de.return===e)break e;ce===de&&(ce=null),de=de.return}ce===de&&(ce=null),de.sibling.return=de.return,de=de.sibling}}break;case 19:Di(n,e),Yi(e),s&4&&Ab(e);break;case 21:break;default:Di(n,e),Yi(e)}}function Yi(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Tb(o)){var s=o;break e}o=o.return}throw Error(i(160))}switch(s.tag){case 5:var d=s.stateNode;s.flags&32&&(xn(d,""),s.flags&=-33);var m=zb(e);Ad(e,m,d);break;case 3:case 4:var k=s.stateNode.containerInfo,I=zb(e);Hd(e,I,k);break;default:throw Error(i(161))}}catch(H){cn(e,e.return,H)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function I2(e,n,o){Le=e,Ub(e)}function Ub(e,n,o){for(var s=(e.mode&1)!==0;Le!==null;){var d=Le,m=d.child;if(d.tag===22&&s){var k=d.memoizedState!==null||Us;if(!k){var I=d.alternate,H=I!==null&&I.memoizedState!==null||Wn;I=Us;var ee=Wn;if(Us=k,(Wn=H)&&!ee)for(Le=d;Le!==null;)k=Le,H=k.child,k.tag===22&&k.memoizedState!==null?Xb(d):H!==null?(H.return=k,Le=H):Xb(d);for(;m!==null;)Le=m,Ub(m),m=m.sibling;Le=d,Us=I,Wn=ee}Vb(e)}else d.subtreeFlags&8772&&m!==null?(m.return=d,Le=m):Vb(e)}}function Vb(e){for(;Le!==null;){var n=Le;if(n.flags&8772){var o=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:Wn||Vs(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!Wn)if(o===null)s.componentDidMount();else{var d=n.elementType===n.type?o.memoizedProps:Ni(n.type,o.memoizedProps);s.componentDidUpdate(d,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var m=n.updateQueue;m!==null&&Hy(n,m,s);break;case 3:var k=n.updateQueue;if(k!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Hy(n,k,o)}break;case 5:var I=n.stateNode;if(o===null&&n.flags&4){o=I;var H=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&o.focus();break;case"img":H.src&&(o.src=H.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var ee=n.alternate;if(ee!==null){var ce=ee.memoizedState;if(ce!==null){var de=ce.dehydrated;de!==null&&rn(de)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Wn||n.flags&512&&zd(n)}catch(se){cn(n,n.return,se)}}if(n===e){Le=null;break}if(o=n.sibling,o!==null){o.return=n.return,Le=o;break}Le=n.return}}function Qb(e){for(;Le!==null;){var n=Le;if(n===e){Le=null;break}var o=n.sibling;if(o!==null){o.return=n.return,Le=o;break}Le=n.return}}function Xb(e){for(;Le!==null;){var n=Le;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Vs(4,n)}catch(H){cn(n,o,H)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var d=n.return;try{s.componentDidMount()}catch(H){cn(n,d,H)}}var m=n.return;try{zd(n)}catch(H){cn(n,m,H)}break;case 5:var k=n.return;try{zd(n)}catch(H){cn(n,k,H)}}}catch(H){cn(n,n.return,H)}if(n===e){Le=null;break}var I=n.sibling;if(I!==null){I.return=n.return,Le=I;break}Le=n.return}}var j2=Math.ceil,Qs=J.ReactCurrentDispatcher,qd=J.ReactCurrentOwner,gi=J.ReactCurrentBatchConfig,bt=0,In=null,wn=null,Un=0,Zr=0,gl=Vo(0),Dn=0,pu=null,Da=0,Xs=0,Ud=0,hu=null,Nr=null,Vd=0,vl=1/0,xo=null,Zs=!1,Qd=null,Jo=null,$s=!1,Wo=null,Ys=0,mu=0,Xd=null,Js=-1,Ws=0;function lr(){return bt&6?vt():Js!==-1?Js:Js=vt()}function Go(e){return e.mode&1?bt&2&&Un!==0?Un&-Un:w2.transition!==null?(Ws===0&&(Ws=B()),Ws):(e=be,e!==0||(e=window.event,e=e===void 0?16:ma(e.type)),e):1}function Mi(e,n,o,s){if(50<mu)throw mu=0,Xd=null,Error(i(185));U(e,o,s),(!(bt&2)||e!==In)&&(e===In&&(!(bt&2)&&(Xs|=o),Dn===4&&ea(e,Un)),Or(e,s),o===1&&bt===0&&!(n.mode&1)&&(vl=vt()+500,Ns&&Xo()))}function Or(e,n){var o=e.callbackNode;S(e,n);var s=Tr(e,e===In?Un:0);if(s===0)o!==null&&Fr(o),e.callbackNode=null,e.callbackPriority=0;else if(n=s&-s,e.callbackPriority!==n){if(o!=null&&Fr(o),n===1)e.tag===0?_2($b.bind(null,e)):By($b.bind(null,e)),g2(function(){!(bt&6)&&Xo()}),o=null;else{switch(Ee(s)){case 1:o=ri;break;case 4:o=ii;break;case 16:o=Kr;break;case 536870912:o=vr;break;default:o=Kr}o=r0(o,Zb.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Zb(e,n){if(Js=-1,Ws=0,bt&6)throw Error(i(327));var o=e.callbackNode;if(yl()&&e.callbackNode!==o)return null;var s=Tr(e,e===In?Un:0);if(s===0)return null;if(s&30||s&e.expiredLanes||n)n=Gs(e,s);else{n=s;var d=bt;bt|=2;var m=Jb();(In!==e||Un!==n)&&(xo=null,vl=vt()+500,La(e,n));do try{H2();break}catch(I){Yb(e,I)}while(1);dd(),Qs.current=m,bt=d,wn!==null?n=0:(In=null,Un=0,n=Dn)}if(n!==0){if(n===2&&(d=O(e),d!==0&&(s=d,n=Zd(e,d))),n===1)throw o=pu,La(e,0),ea(e,s),Or(e,vt()),o;if(n===6)ea(e,s);else{if(d=e.current.alternate,!(s&30)&&!T2(d)&&(n=Gs(e,s),n===2&&(m=O(e),m!==0&&(s=m,n=Zd(e,m))),n===1))throw o=pu,La(e,0),ea(e,s),Or(e,vt()),o;switch(e.finishedWork=d,e.finishedLanes=s,n){case 0:case 1:throw Error(i(345));case 2:Ca(e,Nr,xo);break;case 3:if(ea(e,s),(s&130023424)===s&&(n=Vd+500-vt(),10<n)){if(Tr(e,0)!==0)break;if(d=e.suspendedLanes,(d&s)!==s){lr(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=td(Ca.bind(null,e,Nr,xo),n);break}Ca(e,Nr,xo);break;case 4:if(ea(e,s),(s&4194240)===s)break;for(n=e.eventTimes,d=-1;0<s;){var k=31-un(s);m=1<<k,k=n[k],k>d&&(d=k),s&=~m}if(s=d,s=vt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*j2(s/1960))-s,10<s){e.timeoutHandle=td(Ca.bind(null,e,Nr,xo),s);break}Ca(e,Nr,xo);break;case 5:Ca(e,Nr,xo);break;default:throw Error(i(329))}}}return Or(e,vt()),e.callbackNode===o?Zb.bind(null,e):null}function Zd(e,n){var o=hu;return e.current.memoizedState.isDehydrated&&(La(e,n).flags|=256),e=Gs(e,n),e!==2&&(n=Nr,Nr=o,n!==null&&$d(n)),e}function $d(e){Nr===null?Nr=e:Nr.push.apply(Nr,e)}function T2(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var s=0;s<o.length;s++){var d=o[s],m=d.getSnapshot;d=d.value;try{if(!ke(m(),d))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ea(e,n){for(n&=~Ud,n&=~Xs,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-un(n),s=1<<o;e[o]=-1,n&=~s}}function $b(e){if(bt&6)throw Error(i(327));yl();var n=Tr(e,0);if(!(n&1))return Or(e,vt()),null;var o=Gs(e,n);if(e.tag!==0&&o===2){var s=O(e);s!==0&&(n=s,o=Zd(e,s))}if(o===1)throw o=pu,La(e,0),ea(e,n),Or(e,vt()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,Ca(e,Nr,xo),Or(e,vt()),null}function Yd(e,n){var o=bt;bt|=1;try{return e(n)}finally{bt=o,bt===0&&(vl=vt()+500,Ns&&Xo())}}function Ma(e){Wo!==null&&Wo.tag===0&&!(bt&6)&&yl();var n=bt;bt|=1;var o=gi.transition,s=be;try{if(gi.transition=null,be=1,e)return e()}finally{be=s,gi.transition=o,bt=n,!(bt&6)&&Xo()}}function Jd(){Zr=gl.current,Yt(gl)}function La(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,m2(o)),wn!==null)for(o=wn.return;o!==null;){var s=o;switch(ld(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Es();break;case 3:pl(),Yt(xr),Yt($n),Sd();break;case 5:_d(s);break;case 4:pl();break;case 13:Yt(an);break;case 19:Yt(an);break;case 10:pd(s.type._context);break;case 22:case 23:Jd()}o=o.return}if(In=e,wn=e=ta(e.current,null),Un=Zr=n,Dn=0,pu=null,Ud=Xs=Da=0,Nr=hu=null,ka!==null){for(n=0;n<ka.length;n++)if(o=ka[n],s=o.interleaved,s!==null){o.interleaved=null;var d=s.next,m=o.pending;if(m!==null){var k=m.next;m.next=d,s.next=k}o.pending=s}ka=null}return e}function Yb(e,n){do{var o=wn;try{if(dd(),Is.current=Hs,js){for(var s=ln.memoizedState;s!==null;){var d=s.queue;d!==null&&(d.pending=null),s=s.next}js=!1}if(Oa=0,Rn=On=ln=null,lu=!1,uu=0,qd.current=null,o===null||o.return===null){Dn=1,pu=n,wn=null;break}e:{var m=e,k=o.return,I=o,H=n;if(n=Un,I.flags|=32768,H!==null&&typeof H=="object"&&typeof H.then=="function"){var ee=H,ce=I,de=ce.tag;if(!(ce.mode&1)&&(de===0||de===11||de===15)){var se=ce.alternate;se?(ce.updateQueue=se.updateQueue,ce.memoizedState=se.memoizedState,ce.lanes=se.lanes):(ce.updateQueue=null,ce.memoizedState=null)}var Oe=_b(k);if(Oe!==null){Oe.flags&=-257,wb(Oe,k,I,m,n),Oe.mode&1&&bb(m,ee,n),n=Oe,H=ee;var Be=n.updateQueue;if(Be===null){var Pe=new Set;Pe.add(H),n.updateQueue=Pe}else Be.add(H);break e}else{if(!(n&1)){bb(m,ee,n),Wd();break e}H=Error(i(426))}}else if(Gt&&I.mode&1){var dn=_b(k);if(dn!==null){!(dn.flags&65536)&&(dn.flags|=256),wb(dn,k,I,m,n),cd(hl(H,I));break e}}m=H=hl(H,I),Dn!==4&&(Dn=2),hu===null?hu=[m]:hu.push(m),m=k;do{switch(m.tag){case 3:m.flags|=65536,n&=-n,m.lanes|=n;var Q=vb(m,H,n);zy(m,Q);break e;case 1:I=H;var A=m.type,$=m.stateNode;if(!(m.flags&128)&&(typeof A.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Jo===null||!Jo.has($)))){m.flags|=65536,n&=-n,m.lanes|=n;var ye=yb(m,I,n);zy(m,ye);break e}}m=m.return}while(m!==null)}Gb(o)}catch(Ke){n=Ke,wn===o&&o!==null&&(wn=o=o.return);continue}break}while(1)}function Jb(){var e=Qs.current;return Qs.current=Hs,e===null?Hs:e}function Wd(){(Dn===0||Dn===3||Dn===2)&&(Dn=4),In===null||!(Da&268435455)&&!(Xs&268435455)||ea(In,Un)}function Gs(e,n){var o=bt;bt|=2;var s=Jb();(In!==e||Un!==n)&&(xo=null,La(e,n));do try{z2();break}catch(d){Yb(e,d)}while(1);if(dd(),bt=o,Qs.current=s,wn!==null)throw Error(i(261));return In=null,Un=0,Dn}function z2(){for(;wn!==null;)Wb(wn)}function H2(){for(;wn!==null&&!Pr();)Wb(wn)}function Wb(e){var n=n0(e.alternate,e,Zr);e.memoizedProps=e.pendingProps,n===null?Gb(e):wn=n,qd.current=null}function Gb(e){var n=e;do{var o=n.alternate;if(e=n.return,n.flags&32768){if(o=P2(o,n),o!==null){o.flags&=32767,wn=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Dn=6,wn=null;return}}else if(o=F2(o,n,Zr),o!==null){wn=o;return}if(n=n.sibling,n!==null){wn=n;return}wn=n=e}while(n!==null);Dn===0&&(Dn=5)}function Ca(e,n,o){var s=be,d=gi.transition;try{gi.transition=null,be=1,A2(e,n,o,s)}finally{gi.transition=d,be=s}return null}function A2(e,n,o,s){do yl();while(Wo!==null);if(bt&6)throw Error(i(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var m=o.lanes|o.childLanes;if(ie(e,m),e===In&&(wn=In=null,Un=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||$s||($s=!0,r0(Kr,function(){return yl(),null})),m=(o.flags&15990)!==0,o.subtreeFlags&15990||m){m=gi.transition,gi.transition=null;var k=be;be=1;var I=bt;bt|=4,qd.current=null,R2(e,o),qb(o,e),u2(Gf),yn=!!Wf,Gf=Wf=null,e.current=o,I2(o),ni(),bt=I,be=k,gi.transition=m}else e.current=o;if($s&&($s=!1,Wo=e,Ys=d),m=e.pendingLanes,m===0&&(Jo=null),Rr(o.stateNode),Or(e,vt()),n!==null)for(s=e.onRecoverableError,o=0;o<n.length;o++)d=n[o],s(d.value,{componentStack:d.stack,digest:d.digest});if(Zs)throw Zs=!1,e=Qd,Qd=null,e;return Ys&1&&e.tag!==0&&yl(),m=e.pendingLanes,m&1?e===Xd?mu++:(mu=0,Xd=e):mu=0,Xo(),null}function yl(){if(Wo!==null){var e=Ee(Ys),n=gi.transition,o=be;try{if(gi.transition=null,be=16>e?16:e,Wo===null)var s=!1;else{if(e=Wo,Wo=null,Ys=0,bt&6)throw Error(i(331));var d=bt;for(bt|=4,Le=e.current;Le!==null;){var m=Le,k=m.child;if(Le.flags&16){var I=m.deletions;if(I!==null){for(var H=0;H<I.length;H++){var ee=I[H];for(Le=ee;Le!==null;){var ce=Le;switch(ce.tag){case 0:case 11:case 15:du(8,ce,m)}var de=ce.child;if(de!==null)de.return=ce,Le=de;else for(;Le!==null;){ce=Le;var se=ce.sibling,Oe=ce.return;if(jb(ce),ce===ee){Le=null;break}if(se!==null){se.return=Oe,Le=se;break}Le=Oe}}}var Be=m.alternate;if(Be!==null){var Pe=Be.child;if(Pe!==null){Be.child=null;do{var dn=Pe.sibling;Pe.sibling=null,Pe=dn}while(Pe!==null)}}Le=m}}if(m.subtreeFlags&2064&&k!==null)k.return=m,Le=k;else e:for(;Le!==null;){if(m=Le,m.flags&2048)switch(m.tag){case 0:case 11:case 15:du(9,m,m.return)}var Q=m.sibling;if(Q!==null){Q.return=m.return,Le=Q;break e}Le=m.return}}var A=e.current;for(Le=A;Le!==null;){k=Le;var $=k.child;if(k.subtreeFlags&2064&&$!==null)$.return=k,Le=$;else e:for(k=A;Le!==null;){if(I=Le,I.flags&2048)try{switch(I.tag){case 0:case 11:case 15:Vs(9,I)}}catch(Ke){cn(I,I.return,Ke)}if(I===k){Le=null;break e}var ye=I.sibling;if(ye!==null){ye.return=I.return,Le=ye;break e}Le=I.return}}if(bt=d,Xo(),Bn&&typeof Bn.onPostCommitFiberRoot=="function")try{Bn.onPostCommitFiberRoot(Wt,e)}catch{}s=!0}return s}finally{be=o,gi.transition=n}}return!1}function e0(e,n,o){n=hl(o,n),n=vb(e,n,1),e=$o(e,n,1),n=lr(),e!==null&&(U(e,1,n),Or(e,n))}function cn(e,n,o){if(e.tag===3)e0(e,e,o);else for(;n!==null;){if(n.tag===3){e0(n,e,o);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Jo===null||!Jo.has(s))){e=hl(o,e),e=yb(n,e,1),n=$o(n,e,1),e=lr(),n!==null&&(U(n,1,e),Or(n,e));break}}n=n.return}}function q2(e,n,o){var s=e.pingCache;s!==null&&s.delete(n),n=lr(),e.pingedLanes|=e.suspendedLanes&o,In===e&&(Un&o)===o&&(Dn===4||Dn===3&&(Un&130023424)===Un&&500>vt()-Vd?La(e,0):Ud|=o),Or(e,n)}function t0(e,n){n===0&&(e.mode&1?(n=yr,yr<<=1,!(yr&130023424)&&(yr=4194304)):n=1);var o=lr();e=_o(e,n),e!==null&&(U(e,n,o),Or(e,o))}function U2(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),t0(e,o)}function V2(e,n){var o=0;switch(e.tag){case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(n),t0(e,o)}var n0;n0=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||xr.current)kr=!0;else{if(!(e.lanes&o)&&!(n.flags&128))return kr=!1,B2(e,n,o);kr=!!(e.flags&131072)}else kr=!1,Gt&&n.flags&1048576&&Fy(n,Ds,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;qs(e,n),e=n.pendingProps;var d=al(n,$n.current);fl(n,o),d=kd(null,n,s,e,d,o);var m=Nd();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Er(s)?(m=!0,ks(n)):m=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,gd(n),d.updater=Ps,n.stateNode=d,d._reactInternals=n,yd(n,s,e,o),n=Pd(null,n,s,!0,m,o)):(n.tag=0,Gt&&m&&ad(n),ar(null,n,d,o),n=n.child),n;case 16:s=n.elementType;e:{switch(qs(e,n),e=n.pendingProps,d=s._init,s=d(s._payload),n.type=s,d=n.tag=X2(s),e=Ni(s,e),d){case 0:n=Fd(null,n,s,e,o);break e;case 1:n=Ob(null,n,s,e,o);break e;case 11:n=Sb(null,n,s,e,o);break e;case 14:n=xb(null,n,s,Ni(s.type,e),o);break e}throw Error(i(306,s,""))}return n;case 0:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Ni(s,d),Fd(e,n,s,d,o);case 1:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Ni(s,d),Ob(e,n,s,d,o);case 3:e:{if(Db(n),e===null)throw Error(i(387));s=n.pendingProps,m=n.memoizedState,d=m.element,Ty(e,n),Fs(n,s,null,o);var k=n.memoizedState;if(s=k.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){d=hl(Error(i(423)),n),n=Mb(e,n,s,o,d);break e}else if(s!==d){d=hl(Error(i(424)),n),n=Mb(e,n,s,o,d);break e}else for(Xr=Uo(n.stateNode.containerInfo.firstChild),Qr=n,Gt=!0,ki=null,o=Zy(n,null,s,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(sl(),s===d){n=So(e,n,o);break e}ar(e,n,s,o)}n=n.child}return n;case 5:return $y(n),e===null&&sd(n),s=n.type,d=n.pendingProps,m=e!==null?e.memoizedProps:null,k=d.children,ed(s,d)?k=null:m!==null&&ed(s,m)&&(n.flags|=32),Nb(e,n),ar(e,n,k,o),n.child;case 6:return e===null&&sd(n),null;case 13:return Lb(e,n,o);case 4:return bd(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=dl(n,null,s,o):ar(e,n,s,o),n.child;case 11:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Ni(s,d),Sb(e,n,s,d,o);case 7:return ar(e,n,n.pendingProps,o),n.child;case 8:return ar(e,n,n.pendingProps.children,o),n.child;case 12:return ar(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(s=n.type._context,d=n.pendingProps,m=n.memoizedProps,k=d.value,Ut(Ls,s._currentValue),s._currentValue=k,m!==null)if(ke(m.value,k)){if(m.children===d.children&&!xr.current){n=So(e,n,o);break e}}else for(m=n.child,m!==null&&(m.return=n);m!==null;){var I=m.dependencies;if(I!==null){k=m.child;for(var H=I.firstContext;H!==null;){if(H.context===s){if(m.tag===1){H=wo(-1,o&-o),H.tag=2;var ee=m.updateQueue;if(ee!==null){ee=ee.shared;var ce=ee.pending;ce===null?H.next=H:(H.next=ce.next,ce.next=H),ee.pending=H}}m.lanes|=o,H=m.alternate,H!==null&&(H.lanes|=o),hd(m.return,o,n),I.lanes|=o;break}H=H.next}}else if(m.tag===10)k=m.type===n.type?null:m.child;else if(m.tag===18){if(k=m.return,k===null)throw Error(i(341));k.lanes|=o,I=k.alternate,I!==null&&(I.lanes|=o),hd(k,o,n),k=m.sibling}else k=m.child;if(k!==null)k.return=m;else for(k=m;k!==null;){if(k===n){k=null;break}if(m=k.sibling,m!==null){m.return=k.return,k=m;break}k=k.return}m=k}ar(e,n,d.children,o),n=n.child}return n;case 9:return d=n.type,s=n.pendingProps.children,fl(n,o),d=hi(d),s=s(d),n.flags|=1,ar(e,n,s,o),n.child;case 14:return s=n.type,d=Ni(s,n.pendingProps),d=Ni(s.type,d),xb(e,n,s,d,o);case 15:return Eb(e,n,n.type,n.pendingProps,o);case 17:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Ni(s,d),qs(e,n),n.tag=1,Er(s)?(e=!0,ks(n)):e=!1,fl(n,o),Uy(n,s,d),yd(n,s,d,o),Pd(null,n,s,!0,e,o);case 19:return Bb(e,n,o);case 22:return kb(e,n,o)}throw Error(i(156,n.tag))};function r0(e,n){return tt(e,n)}function Q2(e,n,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vi(e,n,o,s){return new Q2(e,n,o,s)}function Gd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X2(e){if(typeof e=="function")return Gd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===he)return 11;if(e===je)return 14}return 2}function ta(e,n){var o=e.alternate;return o===null?(o=vi(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ec(e,n,o,s,d,m){var k=2;if(s=e,typeof e=="function")Gd(e)&&(k=1);else if(typeof e=="string")k=5;else e:switch(e){case _e:return Ba(o.children,d,m,n);case Ie:k=8,d|=8;break;case ve:return e=vi(12,o,n,d|2),e.elementType=ve,e.lanes=m,e;case ge:return e=vi(13,o,n,d),e.elementType=ge,e.lanes=m,e;case De:return e=vi(19,o,n,d),e.elementType=De,e.lanes=m,e;case He:return tc(o,d,m,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xe:k=10;break e;case we:k=9;break e;case he:k=11;break e;case je:k=14;break e;case Ce:k=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=vi(k,o,n,d),n.elementType=e,n.type=s,n.lanes=m,n}function Ba(e,n,o,s){return e=vi(7,e,s,n),e.lanes=o,e}function tc(e,n,o,s){return e=vi(22,e,s,n),e.elementType=He,e.lanes=o,e.stateNode={isHidden:!1},e}function ep(e,n,o){return e=vi(6,e,null,n),e.lanes=o,e}function tp(e,n,o){return n=vi(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Z2(e,n,o,s,d){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=X(0),this.expirationTimes=X(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=X(0),this.identifierPrefix=s,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function np(e,n,o,s,d,m,k,I,H){return e=new Z2(e,n,o,I,H),n===1?(n=1,m===!0&&(n|=8)):n=0,m=vi(3,null,null,n),e.current=m,m.stateNode=e,m.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},gd(m),e}function $2(e,n,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Se,key:s==null?null:""+s,children:e,containerInfo:n,implementation:o}}function i0(e){if(!e)return Qo;e=e._reactInternals;e:{if(nr(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Er(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(Er(o))return Ly(e,o,n)}return n}function o0(e,n,o,s,d,m,k,I,H){return e=np(o,s,!0,e,d,m,k,I,H),e.context=i0(null),o=e.current,s=lr(),d=Go(o),m=wo(s,d),m.callback=n??null,$o(o,m,d),e.current.lanes=d,U(e,d,s),Or(e,s),e}function nc(e,n,o,s){var d=n.current,m=lr(),k=Go(d);return o=i0(o),n.context===null?n.context=o:n.pendingContext=o,n=wo(m,k),n.payload={element:e},s=s===void 0?null:s,s!==null&&(n.callback=s),e=$o(d,n,k),e!==null&&(Mi(e,d,k,m),Bs(e,d,k)),k}function rc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function a0(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function rp(e,n){a0(e,n),(e=e.alternate)&&a0(e,n)}function Y2(){return null}var l0=typeof reportError=="function"?reportError:function(e){console.error(e)};function ip(e){this._internalRoot=e}ic.prototype.render=ip.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));nc(e,n,null,null)},ic.prototype.unmount=ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Ma(function(){nc(null,e,null,null)}),n[go]=null}};function ic(e){this._internalRoot=e}ic.prototype.unstable_scheduleHydration=function(e){if(e){var n=nn();e={blockedOn:null,target:e,priority:n};for(var o=0;o<zr.length&&n!==0&&n<zr[o].priority;o++);zr.splice(o,0,e),o===0&&ir(e)}};function op(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function u0(){}function J2(e,n,o,s,d){if(d){if(typeof s=="function"){var m=s;s=function(){var ee=rc(k);m.call(ee)}}var k=o0(n,s,e,0,null,!1,!1,"",u0);return e._reactRootContainer=k,e[go]=k.current,Gl(e.nodeType===8?e.parentNode:e),Ma(),k}for(;d=e.lastChild;)e.removeChild(d);if(typeof s=="function"){var I=s;s=function(){var ee=rc(H);I.call(ee)}}var H=np(e,0,!1,null,null,!1,!1,"",u0);return e._reactRootContainer=H,e[go]=H.current,Gl(e.nodeType===8?e.parentNode:e),Ma(function(){nc(n,H,o,s)}),H}function ac(e,n,o,s,d){var m=o._reactRootContainer;if(m){var k=m;if(typeof d=="function"){var I=d;d=function(){var H=rc(k);I.call(H)}}nc(n,k,e,d)}else k=J2(o,n,e,d,s);return rc(k)}We=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=jr(n.pendingLanes);o!==0&&(me(n,o|1),Or(n,vt()),!(bt&6)&&(vl=vt()+500,Xo()))}break;case 13:Ma(function(){var s=_o(e,1);if(s!==null){var d=lr();Mi(s,e,1,d)}}),rp(e,1)}},St=function(e){if(e.tag===13){var n=_o(e,134217728);if(n!==null){var o=lr();Mi(n,e,134217728,o)}rp(e,134217728)}},Ot=function(e){if(e.tag===13){var n=Go(e),o=_o(e,n);if(o!==null){var s=lr();Mi(o,e,n,s)}rp(e,n)}},nn=function(){return be},sn=function(e,n){var o=be;try{return be=e,n()}finally{be=o}},qt=function(e,n,o){switch(n){case"input":if(hn(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var s=o[n];if(s!==e&&s.form===e.form){var d=xs(s);if(!d)throw Error(i(90));en(s),hn(s,d)}}}break;case"textarea":nt(e,o);break;case"select":n=o.value,n!=null&&pt(e,!!o.multiple,n,!1)}},En=Yd,Mr=Ma;var W2={usingClientEntryPoint:!1,Events:[nu,il,xs,Xn,er,Yd]},gu={findFiberByHostInstance:wa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},G2={bundleType:gu.bundleType,version:gu.version,rendererPackageName:gu.rendererPackageName,rendererConfig:gu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cr(e),e===null?null:e.stateNode},findFiberByHostInstance:gu.findFiberByHostInstance||Y2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{Wt=lc.inject(G2),Bn=lc}catch{}}return dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W2,dr.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!op(n))throw Error(i(200));return $2(e,n,null,o)},dr.createRoot=function(e,n){if(!op(e))throw Error(i(299));var o=!1,s="",d=l0;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=np(e,1,!1,null,null,o,!1,s,d),e[go]=n.current,Gl(e.nodeType===8?e.parentNode:e),new ip(n)},dr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=Cr(n),e=e===null?null:e.stateNode,e},dr.flushSync=function(e){return Ma(e)},dr.hydrate=function(e,n,o){if(!oc(n))throw Error(i(200));return ac(null,e,n,!0,o)},dr.hydrateRoot=function(e,n,o){if(!op(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,d=!1,m="",k=l0;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(k=o.onRecoverableError)),n=o0(n,null,e,1,o??null,d,!1,m,k),e[go]=n.current,Gl(e),s)for(e=0;e<s.length;e++)o=s[e],d=o._getVersion,d=d(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,d]:n.mutableSourceEagerHydrationData.push(o,d);return new ic(n)},dr.render=function(e,n,o){if(!oc(n))throw Error(i(200));return ac(null,e,n,!1,o)},dr.unmountComponentAtNode=function(e){if(!oc(e))throw Error(i(40));return e._reactRootContainer?(Ma(function(){ac(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0):!1},dr.unstable_batchedUpdates=Yd,dr.unstable_renderSubtreeIntoContainer=function(e,n,o,s){if(!oc(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return ac(e,n,o,!1,s)},dr.version="18.2.0-next-9e3b772b8-20220608",dr}(function(t){function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}r(),t.exports=RC()})(BC);var IC=_f,jC=IC.unstable_flushControlled,TC=jC;function zC(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var Sf=P,$g=aa,HC=function(t){zC(r,t);function r(){return t.apply(this,arguments)||this}var i=r.prototype;return i.shouldComponentUpdate=function(a){return this.props.text!==a.text||this.props.editorState.getSelection().getHasFocus()!==a.editorState.getSelection().getHasFocus()},i.render=function(){var a=this.props.editorState.getSelection().getHasFocus(),u=$g({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":a}),c={whiteSpace:"pre-wrap"};return Sf.createElement("div",{className:u},Sf.createElement("div",{className:$g("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:c},this.props.text))},r}(Sf.Component),AC=HC,Yg=cf,Al=Hu,Jg=fr,No=Jg.isPlatform("Mac OS X"),Wg=No&&Jg.isBrowser("Firefox < 29"),Oo=Yg.hasCommandModifier,to=Yg.isCtrlKeyCommand;function Gg(t){return No&&t.altKey||to(t)}function qC(t){return Oo(t)?t.shiftKey?"redo":"undo":null}function UC(t){return!No&&t.shiftKey?null:Gg(t)?"delete-word":"delete"}function VC(t){return Oo(t)&&No?"backspace-to-start-of-line":Gg(t)?"backspace-word":"backspace"}function QC(t){switch(t.keyCode){case 66:return Oo(t)?"bold":null;case 68:return to(t)?"delete":null;case 72:return to(t)?"backspace":null;case 73:return Oo(t)?"italic":null;case 74:return Oo(t)?"code":null;case 75:return No&&to(t)?"secondary-cut":null;case 77:return to(t)?"split-block":null;case 79:return to(t)?"split-block":null;case 84:return No&&to(t)?"transpose-characters":null;case 85:return Oo(t)?"underline":null;case 87:return No&&to(t)?"backspace-word":null;case 89:return to(t)?No?"secondary-paste":"redo":null;case 90:return qC(t)||null;case Al.RETURN:return"split-block";case Al.DELETE:return UC(t);case Al.BACKSPACE:return VC(t);case Al.LEFT:return Wg&&Oo(t)?"move-selection-to-start-of-block":null;case Al.RIGHT:return Wg&&Oo(t)?"move-selection-to-end-of-block":null;default:return null}}var ev=QC,XC=la;function xf(){return xf=XC||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},xf.apply(this,arguments)}function Ef(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){Re(t,u,i[u])})}return t}function ze(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Re(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function tv(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var ZC=Pc,$C=Nh,YC=ok,JC=LN,WC=aO,GC=CC,nv=TC,eB=AC,tB=At,Do=P,nB=Jc,rB=$u,iB=fr,kf=aa,oB=Li,aB=ev,lB=Yu,uB=Eo,rv=wt,iv=Kl,sB=cr,ov=iB.isBrowser("IE"),cB=!ov,av={edit:GC,composite:YC,drag:WC,cut:null,render:null},lv=!1,fB=function(t){tv(r,t);function r(){return t.apply(this,arguments)||this}var i=r.prototype;return i.render=function(){return null},i.componentDidMount=function(){this._update()},i.componentDidUpdate=function(){this._update()},i._update=function(){var a=this.props.editor;a._latestEditorState=this.props.editorState,a._blockSelectEvents=!0},r}(Do.Component),uv=function(t){tv(r,t);function r(a){var u;return u=t.call(this,a)||this,Re(ze(u),"_blockSelectEvents",void 0),Re(ze(u),"_clipboard",void 0),Re(ze(u),"_handler",void 0),Re(ze(u),"_dragCount",void 0),Re(ze(u),"_internalDrag",void 0),Re(ze(u),"_editorKey",void 0),Re(ze(u),"_placeholderAccessibilityID",void 0),Re(ze(u),"_latestEditorState",void 0),Re(ze(u),"_latestCommittedEditorState",void 0),Re(ze(u),"_pendingStateFromBeforeInput",void 0),Re(ze(u),"_onBeforeInput",void 0),Re(ze(u),"_onBlur",void 0),Re(ze(u),"_onCharacterData",void 0),Re(ze(u),"_onCompositionEnd",void 0),Re(ze(u),"_onCompositionStart",void 0),Re(ze(u),"_onCopy",void 0),Re(ze(u),"_onCut",void 0),Re(ze(u),"_onDragEnd",void 0),Re(ze(u),"_onDragOver",void 0),Re(ze(u),"_onDragStart",void 0),Re(ze(u),"_onDrop",void 0),Re(ze(u),"_onInput",void 0),Re(ze(u),"_onFocus",void 0),Re(ze(u),"_onKeyDown",void 0),Re(ze(u),"_onKeyPress",void 0),Re(ze(u),"_onKeyUp",void 0),Re(ze(u),"_onMouseDown",void 0),Re(ze(u),"_onMouseUp",void 0),Re(ze(u),"_onPaste",void 0),Re(ze(u),"_onSelect",void 0),Re(ze(u),"editor",void 0),Re(ze(u),"editorContainer",void 0),Re(ze(u),"focus",void 0),Re(ze(u),"blur",void 0),Re(ze(u),"setMode",void 0),Re(ze(u),"exitCurrentMode",void 0),Re(ze(u),"restoreEditorDOM",void 0),Re(ze(u),"setClipboard",void 0),Re(ze(u),"getClipboard",void 0),Re(ze(u),"getEditorKey",void 0),Re(ze(u),"update",void 0),Re(ze(u),"onDragEnter",void 0),Re(ze(u),"onDragLeave",void 0),Re(ze(u),"_handleEditorContainerRef",function(c){u.editorContainer=c,u.editor=c!==null?c.firstChild:null}),Re(ze(u),"focus",function(c){var g=u.props.editorState,y=g.getSelection().getHasFocus(),b=u.editor;if(b){var w=rB.getScrollParent(b),D=c||lB(w),K=D.x,L=D.y;iv(b)||rv(!1),b.focus(),w===window?window.scrollTo(K,L):nB.setTop(w,L),y||u.update(tB.forceSelection(g,g.getSelection()))}}),Re(ze(u),"blur",function(){var c=u.editor;c&&(iv(c)||rv(!1),c.blur())}),Re(ze(u),"setMode",function(c){var g=u.props,y=g.onPaste,b=g.onCut,w=g.onCopy,D=Ef({},av.edit);y&&(D.onPaste=y),b&&(D.onCut=b),w&&(D.onCopy=w);var K=Ef({},av,{edit:D});u._handler=K[c]}),Re(ze(u),"exitCurrentMode",function(){u.setMode("edit")}),Re(ze(u),"restoreEditorDOM",function(c){u.setState({contentsKey:u.state.contentsKey+1},function(){u.focus(c)})}),Re(ze(u),"setClipboard",function(c){u._clipboard=c}),Re(ze(u),"getClipboard",function(){return u._clipboard}),Re(ze(u),"update",function(c){u._latestEditorState=c,u.props.onChange(c)}),Re(ze(u),"onDragEnter",function(){u._dragCount++}),Re(ze(u),"onDragLeave",function(){u._dragCount--,u._dragCount===0&&u.exitCurrentMode()}),u._blockSelectEvents=!1,u._clipboard=null,u._handler=null,u._dragCount=0,u._editorKey=a.editorKey||oB(),u._placeholderAccessibilityID="placeholder-"+u._editorKey,u._latestEditorState=a.editorState,u._latestCommittedEditorState=a.editorState,u._onBeforeInput=u._buildHandler("onBeforeInput"),u._onBlur=u._buildHandler("onBlur"),u._onCharacterData=u._buildHandler("onCharacterData"),u._onCompositionEnd=u._buildHandler("onCompositionEnd"),u._onCompositionStart=u._buildHandler("onCompositionStart"),u._onCopy=u._buildHandler("onCopy"),u._onCut=u._buildHandler("onCut"),u._onDragEnd=u._buildHandler("onDragEnd"),u._onDragOver=u._buildHandler("onDragOver"),u._onDragStart=u._buildHandler("onDragStart"),u._onDrop=u._buildHandler("onDrop"),u._onInput=u._buildHandler("onInput"),u._onFocus=u._buildHandler("onFocus"),u._onKeyDown=u._buildHandler("onKeyDown"),u._onKeyPress=u._buildHandler("onKeyPress"),u._onKeyUp=u._buildHandler("onKeyUp"),u._onMouseDown=u._buildHandler("onMouseDown"),u._onMouseUp=u._buildHandler("onMouseUp"),u._onPaste=u._buildHandler("onPaste"),u._onSelect=u._buildHandler("onSelect"),u.getEditorKey=function(){return u._editorKey},u.state={contentsKey:0},u}var i=r.prototype;return i._buildHandler=function(a){var u=this;return function(c){if(!u.props.readOnly){var g=u._handler&&u._handler[a];g&&(nv?nv(function(){return g(u,c)}):g(u,c))}}},i._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},i._renderPlaceholder=function(){if(this._showPlaceholder()){var a={text:sB(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Do.createElement(eB,a)}return null},i._renderARIADescribedBy=function(){var a=this.props.ariaDescribedBy||"",u=this._showPlaceholder()?this._placeholderAccessibilityID:"";return a.replace("{{editor_id_placeholder}}",u)||void 0},i.render=function(){var a=this.props,u=a.blockRenderMap,c=a.blockRendererFn,g=a.blockStyleFn,y=a.customStyleFn,b=a.customStyleMap,w=a.editorState,D=a.preventScroll,K=a.readOnly,L=a.textAlignment,T=a.textDirectionality,F=kf({"DraftEditor/root":!0,"DraftEditor/alignLeft":L==="left","DraftEditor/alignRight":L==="right","DraftEditor/alignCenter":L==="center"}),R={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},j=this.props.role||"textbox",G=j==="combobox"?!!this.props.ariaExpanded:null,Y={blockRenderMap:u,blockRendererFn:c,blockStyleFn:g,customStyleMap:Ef({},$C,b),customStyleFn:y,editorKey:this._editorKey,editorState:w,preventScroll:D,textDirectionality:T};return Do.createElement("div",{className:F},this._renderPlaceholder(),Do.createElement("div",{className:kf("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Do.createElement("div",{"aria-activedescendant":K?null:this.props.ariaActiveDescendantID,"aria-autocomplete":K?null:this.props.ariaAutoComplete,"aria-controls":K?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":K?null:G,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":K?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:kf({notranslate:!K,"public/DraftEditor/content":!0}),contentEditable:!K,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:K?null:j,spellCheck:cB&&this.props.spellCheck,style:R,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Do.createElement(fB,{editor:this,editorState:w}),Do.createElement(JC,xf({},Y,{key:"contents"+this.state.contentsKey})))))},i.componentDidMount=function(){this._blockSelectEvents=!1,!lv&&uB("draft_ods_enabled")&&(lv=!0),this.setMode("edit"),ov&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Pa.execCommand("AutoUrlDetect",!1,!1))},i.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},r}(Do.Component);Re(uv,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:ZC,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:aB,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var dB=uv,pB={},hB={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},sv=hB,mB=sv,gB=fa,cv=gB.strlen;function vB(t,r){var i=[];return t.findEntityRanges(function(a){return!!a.getEntity()},function(a,u){var c=t.getText(),g=t.getEntityAt(a);i.push({offset:cv(c.slice(0,a)),length:cv(c.slice(a,u)),key:Number(r[mB.stringify(g)])})}),i}var yB=vB,fv=fa,bB=xl,_B=function(t,r){return t===r},wB=function(t){return!!t},SB=[];function xB(t,r,i){var a=[],u=r.map(function(c){return c.has(i)}).toList();return bB(u,_B,wB,function(c,g){var y=t.getText();a.push({offset:fv.strlen(y.slice(0,c)),length:fv.strlen(y.slice(c,g)),style:i})}),a}function EB(t){var r=t.getCharacterList().map(function(a){return a.getStyle()}).toList(),i=r.flatten().toSet().map(function(a){return xB(t,r,a)});return Array.prototype.concat.apply(SB,i.toJS())}var kB=EB;function NB(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){OB(t,u,i[u])})}return t}function OB(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var DB=ra,MB=Yr,dv=sv,LB=yB,CB=kB,BB=wt,pv=function(t,r){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:CB(t),entityRanges:LB(t,r),data:t.getData().toObject()}},FB=function(t,r,i,a){if(t instanceof DB){i.push(pv(t,r));return}t instanceof MB||BB(!1);var u=t.getParentKey(),c=a[t.getKey()]=NB({},pv(t,r),{children:[]});if(u){a[u].children.push(c);return}i.push(c)},PB=function(t,r){var i=r.entityMap,a=[],u={},c={},g=0;return t.getBlockMap().forEach(function(y){y.findEntityRanges(function(b){return b.getEntity()!==null},function(b){var w=y.getEntityAt(b),D=dv.stringify(w);c[D]||(c[D]=w,i[D]="".concat(g),g++)}),FB(y,i,a,u)}),{blocks:a,entityMap:i}},KB=function(t,r){var i=r.blocks,a=r.entityMap,u={};return Object.keys(a).forEach(function(c,g){var y=t.getEntity(dv.unstringify(c));u[g]={type:y.getType(),mutability:y.getMutability(),data:y.getData()}}),{blocks:i,entityMap:u}},RB=function(t){var r={entityMap:{},blocks:[]};return r=PB(t,r),r=KB(t,r),r},IB=RB;function ql(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){jB(t,u,i[u])})}return t}function jB(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var TB=Li,hv=wt,zB=function(t,r){for(var i=[].concat(t).reverse();i.length;){var a=i.pop();r(a);var u=a.children;Array.isArray(u)||hv(!1),i=i.concat([].concat(u.reverse()))}},mv=function(t){if(!(t&&t.type))return!1;var r=t.type;return r==="unordered-list-item"||r==="ordered-list-item"},HB=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(r){return r.type===t.type?ql({},r,{depth:(t.depth||0)+1}):r}))},AB={fromRawTreeStateToRawState:function(t){var r=t.blocks,i=[];return Array.isArray(r)||hv(!1),!Array.isArray(r)||!r.length?t:(zB(r,function(a){var u=ql({},a);mv(a)&&(u.depth=u.depth||0,HB(a),a.children!=null&&a.children.length>0)||(delete u.children,i.push(u))}),t.blocks=i,ql({},t,{blocks:i}))},fromRawStateToRawTreeState:function(t){var r=[],i=[];return t.blocks.forEach(function(a){var u=mv(a),c=a.depth||0,g=ql({},a,{children:[]});if(!u){r.push(g);return}var y=i[0];if(y==null&&c===0)r.push(g);else if(y==null||y.depth<c-1){var b={key:TB(),text:"",depth:c-1,type:a.type,children:[],entityRanges:[],inlineStyleRanges:[]};i.unshift(b),c===1?r.push(b):y?.children.push(b),b.children.push(g)}else if(y.depth===c-1)y.children.push(g);else{for(;y!=null&&y.depth>=c;)i.shift(),y=i[0];c>0?y.children.push(g):r.push(g)}}),ql({},t,{blocks:r})}},qB=AB,UB=$r,VB=mt,QB=VB.List;function XB(t,r){var i=t.map(function(a,u){var c=r[u];return UB.create({style:a,entity:c})});return QB(i)}var ZB=XB,$B=fa,gv=$B.substr;function YB(t,r){var i=Array(t.length).fill(null);return r&&r.forEach(function(a){for(var u=gv(t,0,a.offset).length,c=u+gv(t,a.offset,a.length).length,g=u;g<c;g++)i[g]=a.key}),i}var JB=YB,WB=fa,GB=mt,eF=GB.OrderedSet,vv=WB.substr,tF=eF();function nF(t,r){var i=Array(t.length).fill(tF);return r&&r.forEach(function(a){for(var u=vv(t,0,a.offset).length,c=u+vv(t,a.offset,a.length).length;u<c;)i[u]=i[u].add(a.style),u++}),i}var rF=nF;function Ul(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},a=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable}))),a.forEach(function(u){iF(t,u,i[u])})}return t}function iF(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}var oF=ra,yv=Yr,aF=Oc,lF=Su,bv=qB,_v=xu,uF=ZB,sF=JB,cF=rF,wv=Li,fF=Eo,Nf=mt,Of=wt,Sv=fF("draft_tree_data_support"),xv=Nf.List,dF=Nf.Map,Ev=Nf.OrderedMap,Df=function(t,r){var i=t.key,a=t.type,u=t.data,c=t.text,g=t.depth,y={text:c,depth:g||0,type:a||"unstyled",key:i||wv(),data:dF(u),characterList:pF(t,r)};return y},pF=function(t,r){var i=t.text,a=t.entityRanges,u=t.inlineStyleRanges,c=a||[],g=u||[];return uF(cF(i,g),sF(i,c.filter(function(y){return r.hasOwnProperty(y.key)}).map(function(y){return Ul({},y,{key:r[y.key]})})))},Mf=function(t){return Ul({},t,{key:t.key||wv()})},kv=function(t,r,i){var a=r.map(function(u){return Ul({},u,{parentRef:i})});return t.concat(a.reverse())},hF=function(t,r){return t.map(Mf).reduce(function(i,a,u){Array.isArray(a.children)||Of(!1);var c=a.children.map(Mf),g=new yv(Ul({},Df(a,r),{prevSibling:u===0?null:t[u-1].key,nextSibling:u===t.length-1?null:t[u+1].key,children:xv(c.map(function(R){return R.key}))}));i=i.set(g.getKey(),g);for(var y=kv([],c,g);y.length>0;){var b=y.pop(),w=b.parentRef,D=w.getChildKeys(),K=D.indexOf(b.key),L=Array.isArray(b.children);if(!L){L||Of(!1);break}var T=b.children.map(Mf),F=new yv(Ul({},Df(b,r),{parent:w.getKey(),children:xv(T.map(function(R){return R.key})),prevSibling:K===0?null:D.get(K-1),nextSibling:K===D.size-1?null:D.get(K+1)}));i=i.set(F.getKey(),F),y=kv(y,T,F)}return i},Ev())},mF=function(t,r){return Ev(t.map(function(i){var a=new oF(Df(i,r));return[a.getKey(),a]}))},gF=function(t,r){var i=t.blocks.find(function(c){return Array.isArray(c.children)&&c.children.length>0}),a=Sv&&!i?bv.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!Sv)return mF(i?bv.fromRawTreeStateToRawState(t).blocks:a,r);var u=hF(a,r);return u},vF=function(t){var r=t.entityMap,i={};return Object.keys(r).forEach(function(a){var u=r[a],c=u.type,g=u.mutability,y=u.data;i[a]=lF.__create(c,g,y||{})}),i},yF=function(t){Array.isArray(t.blocks)||Of(!1);var r=vF(t),i=gF(t,r),a=i.isEmpty()?new _v:_v.createEmpty(i.first().getKey());return new aF({blockMap:i,entityMap:r,selectionBefore:a,selectionAfter:a})},bF=yF,_F=ig;function wF(t){var r=_F(t),i=0,a=0,u=0,c=0;if(r.length){if(r.length>1&&r[0].width===0){var g=r[1];i=g.top,a=g.right,u=g.bottom,c=g.left}else{var y=r[0];i=y.top,a=y.right,u=y.bottom,c=y.left}for(var b=1;b<r.length;b++){var w=r[b];w.height!==0&&w.width!==0&&(i=Math.min(i,w.top),a=Math.max(a,w.right),u=Math.max(u,w.bottom),c=Math.min(c,w.left))}}return{top:i,right:a,bottom:u,left:c,width:a-c,height:u-i}}var SF=wF,xF=SF;function EF(t){var r=t.getSelection();if(!r.rangeCount)return null;var i=r.getRangeAt(0),a=xF(i),u=a.top,c=a.right,g=a.bottom,y=a.left;return u===0&&c===0&&g===0&&y===0?null:a}var kF=EF,NF=vx,OF=Sl,DF=$r,MF=Ex,LF=ra,CF=Oc,BF=Pc,FF=Nh,PF=dB,KF=Lm,RF=Su,IF=sr,jF=Zp,TF=At,zF=cf,HF=pB,AF=Pg,qF=xu,UF=IB,VF=bF,QF=Li,XF=ev,ZF=kF,$F=Cg,YF={Editor:PF,EditorBlock:KF,EditorState:TF,CompositeDecorator:MF,Entity:RF,EntityInstance:jF,BlockMapBuilder:OF,CharacterMetadata:DF,ContentBlock:LF,ContentState:CF,RawDraftContentState:HF,SelectionState:qF,AtomicBlockUtils:NF,KeyBindingUtil:zF,Modifier:IF,RichUtils:AF,DefaultDraftBlockRenderMap:BF,DefaultDraftInlineStyle:FF,convertFromHTML:$F,convertFromRaw:VF,convertToRaw:UF,genKey:QF,getDefaultKeyBinding:XF,getVisibleSelectionRect:ZF},Nv=YF,JF=function(t,r,i,a,u,c,g,y){if(!t){var b;if(r===void 0)b=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var w=[i,a,u,c,g,y],D=0;b=new Error(r.replace(/%s/g,function(){return w[D++]})),b.name="Invariant Violation"}throw b.framesToPop=1,b}},bi=JF,Mn={},ha={};/**
|
|
51
|
+
`+m.stack}return{value:e,source:n,stack:d,digest:null}}function Ad(e,n,a){return{value:e,source:null,stack:a??null,digest:n??null}}function Hd(e,n){try{console.error(n.value)}catch(a){setTimeout(function(){throw a})}}var WB=typeof WeakMap=="function"?WeakMap:Map;function Mb(e,n,a){a=xi(-1,a),a.tag=3,a.payload={element:null};var s=n.value;return a.callback=function(){rc||(rc=!0,np=s),Hd(e,n)},a}function Fb(e,n,a){a=xi(-1,a),a.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var d=n.value;a.payload=function(){return s(d)},a.callback=function(){Hd(e,n)}}var m=e.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){Hd(e,n),typeof s!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var k=n.stack;this.componentDidCatch(n.value,{componentStack:k!==null?k:""})}),a}function Db(e,n,a){var s=e.pingCache;if(s===null){s=e.pingCache=new WB;var d=new Set;s.set(n,d)}else d=s.get(n),d===void 0&&(d=new Set,s.set(n,d));d.has(a)||(d.add(a),e=dR.bind(null,e,n,a),n.then(e,e))}function Pb(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Bb(e,n,a,s,d){return e.mode&1?(e.flags|=65536,e.lanes=d,e):(e===n?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(n=xi(-1,1),n.tag=2,Ji(a,n,1))),a.lanes|=1),e)}var GB=J.ReactCurrentOwner,Nr=!1;function lr(e,n,a,s){n.child=e===null?lb(n,null,a,s):hl(n,e.child,a,s)}function Rb(e,n,a,s,d){a=a.render;var m=n.ref;return pl(n,d),s=Rd(e,n,a,s,m,d),a=Td(),e!==null&&!Nr?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Ei(e,n,d)):(Gt&&a&&gd(n),n.flags|=1,lr(e,n,s,d),n.child)}function Tb(e,n,a,s,d){if(e===null){var m=a.type;return typeof m=="function"&&!sp(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(n.tag=15,n.type=m,jb(e,n,m,s,d)):(e=sc(a.type,null,s,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!(e.lanes&d)){var k=m.memoizedProps;if(a=a.compare,a=a!==null?a:$e,a(k,s)&&e.ref===n.ref)return Ei(e,n,d)}return n.flags|=1,e=ra(m,s),e.ref=n.ref,e.return=n,n.child=e}function jb(e,n,a,s,d){if(e!==null){var m=e.memoizedProps;if($e(m,s)&&e.ref===n.ref)if(Nr=!1,n.pendingProps=s=m,(e.lanes&d)!==0)e.flags&131072&&(Nr=!0);else return n.lanes=e.lanes,Ei(e,n,d)}return Vd(e,n,a,s,d)}function Ib(e,n,a){var s=n.pendingProps,d=s.children,m=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(yl,Zr),Zr|=a;else{if(!(a&1073741824))return e=m!==null?m.baseLanes|a:a,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ut(yl,Zr),Zr|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=m!==null?m.baseLanes:a,Ut(yl,Zr),Zr|=s}else m!==null?(s=m.baseLanes|a,n.memoizedState=null):s=a,Ut(yl,Zr),Zr|=s;return lr(e,n,d,a),n.child}function zb(e,n){var a=n.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(n.flags|=512,n.flags|=2097152)}function Vd(e,n,a,s,d){var m=kr(a)?Ea:Yn.current;return m=ul(n,m),pl(n,d),a=Rd(e,n,a,s,m,d),s=Td(),e!==null&&!Nr?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Ei(e,n,d)):(Gt&&s&&gd(n),n.flags|=1,lr(e,n,a,d),n.child)}function Kb(e,n,a,s,d){if(kr(a)){var m=!0;Bs(n)}else m=!1;if(pl(n,d),n.stateNode===null)Ws(e,n),rb(n,a,s),Ld(n,a,s,d),s=!0;else if(e===null){var k=n.stateNode,j=n.memoizedProps;k.props=j;var A=k.context,ee=a.contextType;typeof ee=="object"&&ee!==null?ee=go(ee):(ee=kr(a)?Ea:Yn.current,ee=ul(n,ee));var ce=a.getDerivedStateFromProps,de=typeof ce=="function"||typeof k.getSnapshotBeforeUpdate=="function";de||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(j!==s||A!==ee)&&ob(n,k,s,ee),Yi=!1;var se=n.memoizedState;k.state=se,Hs(n,s,k,d),A=n.memoizedState,j!==s||se!==A||Er.current||Yi?(typeof ce=="function"&&(Od(n,a,ce,s),A=n.memoizedState),(j=Yi||nb(n,a,j,s,se,A,ee))?(de||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(n.flags|=4194308)):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=A),k.props=s,k.state=A,k.context=ee,s=j):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{k=n.stateNode,Wy(e,n),j=n.memoizedProps,ee=n.type===n.elementType?j:Lo(n.type,j),k.props=ee,de=n.pendingProps,se=k.context,A=a.contextType,typeof A=="object"&&A!==null?A=go(A):(A=kr(a)?Ea:Yn.current,A=ul(n,A));var Oe=a.getDerivedStateFromProps;(ce=typeof Oe=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(j!==de||se!==A)&&ob(n,k,s,A),Yi=!1,se=n.memoizedState,k.state=se,Hs(n,s,k,d);var De=n.memoizedState;j!==de||se!==De||Er.current||Yi?(typeof Oe=="function"&&(Od(n,a,Oe,s),De=n.memoizedState),(ee=Yi||nb(n,a,ee,s,se,De,A)||!1)?(ce||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(s,De,A),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(s,De,A)),typeof k.componentDidUpdate=="function"&&(n.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof k.componentDidUpdate!="function"||j===e.memoizedProps&&se===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||j===e.memoizedProps&&se===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=De),k.props=s,k.state=De,k.context=A,s=ee):(typeof k.componentDidUpdate!="function"||j===e.memoizedProps&&se===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||j===e.memoizedProps&&se===e.memoizedState||(n.flags|=1024),s=!1)}return qd(e,n,a,s,m,d)}function qd(e,n,a,s,d,m){zb(e,n);var k=(n.flags&128)!==0;if(!s&&!k)return d&&qy(n,a,!1),Ei(e,n,m);s=n.stateNode,GB.current=n;var j=k&&typeof a.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,e!==null&&k?(n.child=hl(n,e.child,null,m),n.child=hl(n,null,j,m)):lr(e,n,j,m),n.memoizedState=s.state,d&&qy(n,a,!0),n.child}function Ab(e){var n=e.stateNode;n.pendingContext?Hy(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Hy(e,n.context,!1),Cd(e,n.containerInfo)}function Hb(e,n,a,s,d){return fl(),_d(d),n.flags|=256,lr(e,n,a,s),n.child}var Ud={dehydrated:null,treeContext:null,retryLane:0};function Qd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vb(e,n,a){var s=n.pendingProps,d=an.current,m=!1,k=(n.flags&128)!==0,j;if((j=k)||(j=e!==null&&e.memoizedState===null?!1:(d&2)!==0),j?(m=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Ut(an,d&1),e===null)return bd(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(k=s.children,e=s.fallback,m?(s=n.mode,m=n.child,k={mode:"hidden",children:k},!(s&1)&&m!==null?(m.childLanes=0,m.pendingProps=k):m=cc(k,s,0,null),e=Ba(e,s,a,null),m.return=n,e.return=n,m.sibling=e,n.child=m,n.child.memoizedState=Qd(a),n.memoizedState=Ud,e):Xd(n,k));if(d=e.memoizedState,d!==null&&(j=d.dehydrated,j!==null))return eR(e,n,k,s,j,d,a);if(m){m=s.fallback,k=n.mode,d=e.child,j=d.sibling;var A={mode:"hidden",children:s.children};return!(k&1)&&n.child!==d?(s=n.child,s.childLanes=0,s.pendingProps=A,n.deletions=null):(s=ra(d,A),s.subtreeFlags=d.subtreeFlags&14680064),j!==null?m=ra(j,m):(m=Ba(m,k,a,null),m.flags|=2),m.return=n,s.return=n,s.sibling=m,n.child=s,s=m,m=n.child,k=e.child.memoizedState,k=k===null?Qd(a):{baseLanes:k.baseLanes|a,cachePool:null,transitions:k.transitions},m.memoizedState=k,m.childLanes=e.childLanes&~a,n.memoizedState=Ud,s}return m=e.child,e=m.sibling,s=ra(m,{mode:"visible",children:s.children}),!(n.mode&1)&&(s.lanes=a),s.return=n,s.sibling=null,e!==null&&(a=n.deletions,a===null?(n.deletions=[e],n.flags|=16):a.push(e)),n.child=s,n.memoizedState=null,s}function Xd(e,n){return n=cc({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Js(e,n,a,s){return s!==null&&_d(s),hl(n,e.child,null,a),e=Xd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function eR(e,n,a,s,d,m,k){if(a)return n.flags&256?(n.flags&=-257,s=Ad(Error(o(422))),Js(e,n,k,s)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(m=s.fallback,d=n.mode,s=cc({mode:"visible",children:s.children},d,0,null),m=Ba(m,d,k,null),m.flags|=2,s.return=n,m.return=n,s.sibling=m,n.child=s,n.mode&1&&hl(n,e.child,null,k),n.child.memoizedState=Qd(k),n.memoizedState=Ud,m);if(!(n.mode&1))return Js(e,n,k,null);if(d.data==="$!"){if(s=d.nextSibling&&d.nextSibling.dataset,s)var j=s.dgst;return s=j,m=Error(o(419)),s=Ad(m,s,void 0),Js(e,n,k,s)}if(j=(k&e.childLanes)!==0,Nr||j){if(s=jn,s!==null){switch(k&-k){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=d&(s.suspendedLanes|k)?0:d,d!==0&&d!==m.retryLane&&(m.retryLane=d,Si(e,d),Fo(s,e,d,-1))}return up(),s=Ad(Error(o(421))),Js(e,n,k,s)}return d.data==="$?"?(n.flags|=128,n.child=e.child,n=pR.bind(null,e),d._reactRetry=n,null):(e=m.treeContext,Xr=Qi(d.nextSibling),Qr=n,Gt=!0,Oo=null,e!==null&&(ho[mo++]=_i,ho[mo++]=wi,ho[mo++]=ka,_i=e.id,wi=e.overflow,ka=n),n=Xd(n,s.children),n.flags|=4096,n)}function qb(e,n,a){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Ed(e.return,n,a)}function Zd(e,n,a,s,d){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:d}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=d)}function Ub(e,n,a){var s=n.pendingProps,d=s.revealOrder,m=s.tail;if(lr(e,n,s.children,a),s=an.current,s&2)s=s&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qb(e,a,n);else if(e.tag===19)qb(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Ut(an,s),!(n.mode&1))n.memoizedState=null;else switch(d){case"forwards":for(a=n.child,d=null;a!==null;)e=a.alternate,e!==null&&Us(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),Zd(n,!1,d,a,m);break;case"backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Us(e)===null){n.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}Zd(n,!0,a,null,m);break;case"together":Zd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ws(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ei(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Ma|=n.lanes,!(a&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,a=ra(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ra(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function tR(e,n,a){switch(n.tag){case 3:Ab(n),fl();break;case 5:ub(n);break;case 1:kr(n.type)&&Bs(n);break;case 4:Cd(n,n.stateNode.containerInfo);break;case 10:var s=n.type._context,d=n.memoizedProps.value;Ut(zs,s._currentValue),s._currentValue=d;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Ut(an,an.current&1),n.flags|=128,null):a&n.child.childLanes?Vb(e,n,a):(Ut(an,an.current&1),e=Ei(e,n,a),e!==null?e.sibling:null);Ut(an,an.current&1);break;case 19:if(s=(a&n.childLanes)!==0,e.flags&128){if(s)return Ub(e,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Ut(an,an.current),s)break;return null;case 22:case 23:return n.lanes=0,Ib(e,n,a)}return Ei(e,n,a)}var Qb,$d,Xb,Zb;Qb=function(e,n){for(var a=n.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},$d=function(){},Xb=function(e,n,a,s){var d=e.memoizedProps;if(d!==s){e=n.stateNode,La(Yo.current);var m=null;switch(a){case"input":d=st(e,d),s=st(e,s),m=[];break;case"select":d=ae({},d,{value:void 0}),s=ae({},s,{value:void 0}),m=[];break;case"textarea":d=Rt(e,d),s=Rt(e,s),m=[];break;default:typeof d.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Fs)}So(a,s);var k;a=null;for(ee in d)if(!s.hasOwnProperty(ee)&&d.hasOwnProperty(ee)&&d[ee]!=null)if(ee==="style"){var j=d[ee];for(k in j)j.hasOwnProperty(k)&&(a||(a={}),a[k]="")}else ee!=="dangerouslySetInnerHTML"&&ee!=="children"&&ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&ee!=="autoFocus"&&(l.hasOwnProperty(ee)?m||(m=[]):(m=m||[]).push(ee,null));for(ee in s){var A=s[ee];if(j=d?.[ee],s.hasOwnProperty(ee)&&A!==j&&(A!=null||j!=null))if(ee==="style")if(j){for(k in j)!j.hasOwnProperty(k)||A&&A.hasOwnProperty(k)||(a||(a={}),a[k]="");for(k in A)A.hasOwnProperty(k)&&j[k]!==A[k]&&(a||(a={}),a[k]=A[k])}else a||(m||(m=[]),m.push(ee,a)),a=A;else ee==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,j=j?j.__html:void 0,A!=null&&j!==A&&(m=m||[]).push(ee,A)):ee==="children"?typeof A!="string"&&typeof A!="number"||(m=m||[]).push(ee,""+A):ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&(l.hasOwnProperty(ee)?(A!=null&&ee==="onScroll"&&$t("scroll",e),m||j===A||(m=[])):(m=m||[]).push(ee,A))}a&&(m=m||[]).push("style",a);var ee=m;(n.updateQueue=ee)&&(n.flags|=4)}},Zb=function(e,n,a,s){a!==s&&(n.flags|=4)};function pu(e,n){if(!Gt)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Wn(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(n)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,s|=d.subtreeFlags&14680064,s|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=a,n}function nR(e,n,a){var s=n.pendingProps;switch(vd(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wn(n),null;case 1:return kr(n.type)&&Ps(),Wn(n),null;case 3:return s=n.stateNode,ml(),Yt(Er),Yt(Yn),Dd(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Is(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Oo!==null&&(ip(Oo),Oo=null))),$d(e,n),Wn(n),null;case 5:Md(n);var d=La(uu.current);if(a=n.type,e!==null&&n.stateNode!=null)Xb(e,n,a,s,d),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(n.stateNode===null)throw Error(o(166));return Wn(n),null}if(e=La(Yo.current),Is(n)){s=n.stateNode,a=n.type;var m=n.memoizedProps;switch(s[$o]=n,s[ru]=m,e=(n.mode&1)!==0,a){case"dialog":$t("cancel",s),$t("close",s);break;case"iframe":case"object":case"embed":$t("load",s);break;case"video":case"audio":for(d=0;d<eu.length;d++)$t(eu[d],s);break;case"source":$t("error",s);break;case"img":case"image":case"link":$t("error",s),$t("load",s);break;case"details":$t("toggle",s);break;case"input":ut(s,m),$t("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!m.multiple},$t("invalid",s);break;case"textarea":Pe(s,m),$t("invalid",s)}So(a,m),d=null;for(var k in m)if(m.hasOwnProperty(k)){var j=m[k];k==="children"?typeof j=="string"?s.textContent!==j&&(m.suppressHydrationWarning!==!0&&Ms(s.textContent,j,e),d=["children",j]):typeof j=="number"&&s.textContent!==""+j&&(m.suppressHydrationWarning!==!0&&Ms(s.textContent,j,e),d=["children",""+j]):l.hasOwnProperty(k)&&j!=null&&k==="onScroll"&&$t("scroll",s)}switch(a){case"input":kt(s),Dt(s,m,!0);break;case"textarea":kt(s),Ye(s);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(s.onclick=Fs)}s=d,n.updateQueue=s,s!==null&&(n.flags|=4)}else{k=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ht(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=k.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=k.createElement(a,{is:s.is}):(e=k.createElement(a),a==="select"&&(k=e,s.multiple?k.multiple=!0:s.size&&(k.size=s.size))):e=k.createElementNS(e,a),e[$o]=n,e[ru]=s,Qb(e,n,!1,!1),n.stateNode=e;e:{switch(k=Jt(a,s),a){case"dialog":$t("cancel",e),$t("close",e),d=s;break;case"iframe":case"object":case"embed":$t("load",e),d=s;break;case"video":case"audio":for(d=0;d<eu.length;d++)$t(eu[d],e);d=s;break;case"source":$t("error",e),d=s;break;case"img":case"image":case"link":$t("error",e),$t("load",e),d=s;break;case"details":$t("toggle",e),d=s;break;case"input":ut(e,s),d=st(e,s),$t("invalid",e);break;case"option":d=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},d=ae({},s,{value:void 0}),$t("invalid",e);break;case"textarea":Pe(e,s),d=Rt(e,s),$t("invalid",e);break;default:d=s}So(a,d),j=d;for(m in j)if(j.hasOwnProperty(m)){var A=j[m];m==="style"?ai(e,A):m==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&ct(e,A)):m==="children"?typeof A=="string"?(a!=="textarea"||A!=="")&&En(e,A):typeof A=="number"&&En(e,""+A):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(l.hasOwnProperty(m)?A!=null&&m==="onScroll"&&$t("scroll",e):A!=null&&W(e,m,A,k))}switch(a){case"input":kt(e),Dt(e,s,!1);break;case"textarea":kt(e),Ye(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Tt(s.value));break;case"select":e.multiple=!!s.multiple,m=s.value,m!=null?pt(e,!!s.multiple,m,!1):s.defaultValue!=null&&pt(e,!!s.multiple,s.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=Fs)}switch(a){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Wn(n),null;case 6:if(e&&n.stateNode!=null)Zb(e,n,e.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(o(166));if(a=La(uu.current),La(Yo.current),Is(n)){if(s=n.stateNode,a=n.memoizedProps,s[$o]=n,(m=s.nodeValue!==a)&&(e=Qr,e!==null))switch(e.tag){case 3:Ms(s.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ms(s.nodeValue,a,(e.mode&1)!==0)}m&&(n.flags|=4)}else s=(a.nodeType===9?a:a.ownerDocument).createTextNode(s),s[$o]=n,n.stateNode=s}return Wn(n),null;case 13:if(Yt(an),s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Gt&&Xr!==null&&n.mode&1&&!(n.flags&128))Yy(),fl(),n.flags|=98560,m=!1;else if(m=Is(n),s!==null&&s.dehydrated!==null){if(e===null){if(!m)throw Error(o(318));if(m=n.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(o(317));m[$o]=n}else fl(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;Wn(n),m=!1}else Oo!==null&&(ip(Oo),Oo=null),m=!0;if(!m)return n.flags&65536?n:null}return n.flags&128?(n.lanes=a,n):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(n.child.flags|=8192,n.mode&1&&(e===null||an.current&1?Cn===0&&(Cn=3):up())),n.updateQueue!==null&&(n.flags|=4),Wn(n),null);case 4:return ml(),$d(e,n),e===null&&tu(n.stateNode.containerInfo),Wn(n),null;case 10:return xd(n.type._context),Wn(n),null;case 17:return kr(n.type)&&Ps(),Wn(n),null;case 19:if(Yt(an),m=n.memoizedState,m===null)return Wn(n),null;if(s=(n.flags&128)!==0,k=m.rendering,k===null)if(s)pu(m,!1);else{if(Cn!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(k=Us(e),k!==null){for(n.flags|=128,pu(m,!1),s=k.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),n.subtreeFlags=0,s=a,a=n.child;a!==null;)m=a,e=s,m.flags&=14680066,k=m.alternate,k===null?(m.childLanes=0,m.lanes=e,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=k.childLanes,m.lanes=k.lanes,m.child=k.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=k.memoizedProps,m.memoizedState=k.memoizedState,m.updateQueue=k.updateQueue,m.type=k.type,e=k.dependencies,m.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return Ut(an,an.current&1|2),n.child}e=e.sibling}m.tail!==null&&vt()>bl&&(n.flags|=128,s=!0,pu(m,!1),n.lanes=4194304)}else{if(!s)if(e=Us(k),e!==null){if(n.flags|=128,s=!0,a=e.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),pu(m,!0),m.tail===null&&m.tailMode==="hidden"&&!k.alternate&&!Gt)return Wn(n),null}else 2*vt()-m.renderingStartTime>bl&&a!==1073741824&&(n.flags|=128,s=!0,pu(m,!1),n.lanes=4194304);m.isBackwards?(k.sibling=n.child,n.child=k):(a=m.last,a!==null?a.sibling=k:n.child=k,m.last=k)}return m.tail!==null?(n=m.tail,m.rendering=n,m.tail=n.sibling,m.renderingStartTime=vt(),n.sibling=null,a=an.current,Ut(an,s?a&1|2:a&1),n):(Wn(n),null);case 22:case 23:return lp(),s=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(n.flags|=8192),s&&n.mode&1?Zr&1073741824&&(Wn(n),n.subtreeFlags&6&&(n.flags|=8192)):Wn(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function rR(e,n){switch(vd(n),n.tag){case 1:return kr(n.type)&&Ps(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ml(),Yt(Er),Yt(Yn),Dd(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Md(n),null;case 13:if(Yt(an),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));fl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Yt(an),null;case 4:return ml(),null;case 10:return xd(n.type._context),null;case 22:case 23:return lp(),null;case 24:return null;default:return null}}var Gs=!1,Gn=!1,oR=typeof WeakSet=="function"?WeakSet:Set,Me=null;function vl(e,n){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(s){cn(e,n,s)}else a.current=null}function $b(e,n,a){try{a()}catch(s){cn(e,n,s)}}var Yb=!1;function iR(e,n){if(ud=bn,e=Ur(),qi(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var d=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var k=0,j=-1,A=-1,ee=0,ce=0,de=e,se=null;t:for(;;){for(var Oe;de!==a||d!==0&&de.nodeType!==3||(j=k+d),de!==m||s!==0&&de.nodeType!==3||(A=k+s),de.nodeType===3&&(k+=de.nodeValue.length),(Oe=de.firstChild)!==null;)se=de,de=Oe;for(;;){if(de===e)break t;if(se===a&&++ee===d&&(j=k),se===m&&++ce===s&&(A=k),(Oe=de.nextSibling)!==null)break;de=se,se=de.parentNode}de=Oe}a=j===-1||A===-1?null:{start:j,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(sd={focusedElem:e,selectionRange:a},bn=!1,Me=n;Me!==null;)if(n=Me,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Me=e;else for(;Me!==null;){n=Me;try{var De=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(De!==null){var Be=De.memoizedProps,dn=De.memoizedState,Q=n.stateNode,H=Q.getSnapshotBeforeUpdate(n.elementType===n.type?Be:Lo(n.type,Be),dn);Q.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var $=n.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ye){cn(n,n.return,ye)}if(e=n.sibling,e!==null){e.return=n.return,Me=e;break}Me=n.return}return De=Yb,Yb=!1,De}function hu(e,n,a){var s=n.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var d=s=s.next;do{if((d.tag&e)===e){var m=d.destroy;d.destroy=void 0,m!==void 0&&$b(n,a,m)}d=d.next}while(d!==s)}}function ec(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var s=a.create;a.destroy=s()}a=a.next}while(a!==n)}}function Yd(e){var n=e.ref;if(n!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof n=="function"?n(e):n.current=e}}function Jb(e){var n=e.alternate;n!==null&&(e.alternate=null,Jb(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[$o],delete n[ru],delete n[pd],delete n[AB],delete n[HB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wb(e){return e.tag===5||e.tag===3||e.tag===4}function Gb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jd(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?a.nodeType===8?a.parentNode.insertBefore(e,n):a.insertBefore(e,n):(a.nodeType===8?(n=a.parentNode,n.insertBefore(e,a)):(n=a,n.appendChild(e)),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Fs));else if(s!==4&&(e=e.child,e!==null))for(Jd(e,n,a),e=e.sibling;e!==null;)Jd(e,n,a),e=e.sibling}function Wd(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Wd(e,n,a),e=e.sibling;e!==null;)Wd(e,n,a),e=e.sibling}var Vn=null,Co=!1;function Wi(e,n,a){for(a=a.child;a!==null;)e0(e,n,a),a=a.sibling}function e0(e,n,a){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(Wt,a)}catch{}switch(a.tag){case 5:Gn||vl(a,n);case 6:var s=Vn,d=Co;Vn=null,Wi(e,n,a),Vn=s,Co=d,Vn!==null&&(Co?(e=Vn,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Vn.removeChild(a.stateNode));break;case 18:Vn!==null&&(Co?(e=Vn,a=a.stateNode,e.nodeType===8?dd(e.parentNode,a):e.nodeType===1&&dd(e,a),rn(e)):dd(Vn,a.stateNode));break;case 4:s=Vn,d=Co,Vn=a.stateNode.containerInfo,Co=!0,Wi(e,n,a),Vn=s,Co=d;break;case 0:case 11:case 14:case 15:if(!Gn&&(s=a.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){d=s=s.next;do{var m=d,k=m.destroy;m=m.tag,k!==void 0&&(m&2||m&4)&&$b(a,n,k),d=d.next}while(d!==s)}Wi(e,n,a);break;case 1:if(!Gn&&(vl(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=a.memoizedProps,s.state=a.memoizedState,s.componentWillUnmount()}catch(j){cn(a,n,j)}Wi(e,n,a);break;case 21:Wi(e,n,a);break;case 22:a.mode&1?(Gn=(s=Gn)||a.memoizedState!==null,Wi(e,n,a),Gn=s):Wi(e,n,a);break;default:Wi(e,n,a)}}function t0(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new oR),n.forEach(function(s){var d=hR.bind(null,e,s);a.has(s)||(a.add(s),s.then(d,d))})}}function Mo(e,n){var a=n.deletions;if(a!==null)for(var s=0;s<a.length;s++){var d=a[s];try{var m=e,k=n,j=k;e:for(;j!==null;){switch(j.tag){case 5:Vn=j.stateNode,Co=!1;break e;case 3:Vn=j.stateNode.containerInfo,Co=!0;break e;case 4:Vn=j.stateNode.containerInfo,Co=!0;break e}j=j.return}if(Vn===null)throw Error(o(160));e0(m,k,d),Vn=null,Co=!1;var A=d.alternate;A!==null&&(A.return=null),d.return=null}catch(ee){cn(d,n,ee)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)n0(n,e),n=n.sibling}function n0(e,n){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mo(n,e),Wo(e),s&4){try{hu(3,e,e.return),ec(3,e)}catch(Be){cn(e,e.return,Be)}try{hu(5,e,e.return)}catch(Be){cn(e,e.return,Be)}}break;case 1:Mo(n,e),Wo(e),s&512&&a!==null&&vl(a,a.return);break;case 5:if(Mo(n,e),Wo(e),s&512&&a!==null&&vl(a,a.return),e.flags&32){var d=e.stateNode;try{En(d,"")}catch(Be){cn(e,e.return,Be)}}if(s&4&&(d=e.stateNode,d!=null)){var m=e.memoizedProps,k=a!==null?a.memoizedProps:m,j=e.type,A=e.updateQueue;if(e.updateQueue=null,A!==null)try{j==="input"&&m.type==="radio"&&m.name!=null&&Bt(d,m),Jt(j,k);var ee=Jt(j,m);for(k=0;k<A.length;k+=2){var ce=A[k],de=A[k+1];ce==="style"?ai(d,de):ce==="dangerouslySetInnerHTML"?ct(d,de):ce==="children"?En(d,de):W(d,ce,de,ee)}switch(j){case"input":mn(d,m);break;case"textarea":nt(d,m);break;case"select":var se=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!m.multiple;var Oe=m.value;Oe!=null?pt(d,!!m.multiple,Oe,!1):se!==!!m.multiple&&(m.defaultValue!=null?pt(d,!!m.multiple,m.defaultValue,!0):pt(d,!!m.multiple,m.multiple?[]:"",!1))}d[ru]=m}catch(Be){cn(e,e.return,Be)}}break;case 6:if(Mo(n,e),Wo(e),s&4){if(e.stateNode===null)throw Error(o(162));d=e.stateNode,m=e.memoizedProps;try{d.nodeValue=m}catch(Be){cn(e,e.return,Be)}}break;case 3:if(Mo(n,e),Wo(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{rn(n.containerInfo)}catch(Be){cn(e,e.return,Be)}break;case 4:Mo(n,e),Wo(e);break;case 13:Mo(n,e),Wo(e),d=e.child,d.flags&8192&&(m=d.memoizedState!==null,d.stateNode.isHidden=m,!m||d.alternate!==null&&d.alternate.memoizedState!==null||(tp=vt())),s&4&&t0(e);break;case 22:if(ce=a!==null&&a.memoizedState!==null,e.mode&1?(Gn=(ee=Gn)||ce,Mo(n,e),Gn=ee):Mo(n,e),Wo(e),s&8192){if(ee=e.memoizedState!==null,(e.stateNode.isHidden=ee)&&!ce&&e.mode&1)for(Me=e,ce=e.child;ce!==null;){for(de=Me=ce;Me!==null;){switch(se=Me,Oe=se.child,se.tag){case 0:case 11:case 14:case 15:hu(4,se,se.return);break;case 1:vl(se,se.return);var De=se.stateNode;if(typeof De.componentWillUnmount=="function"){s=se,a=se.return;try{n=s,De.props=n.memoizedProps,De.state=n.memoizedState,De.componentWillUnmount()}catch(Be){cn(s,a,Be)}}break;case 5:vl(se,se.return);break;case 22:if(se.memoizedState!==null){i0(de);continue}}Oe!==null?(Oe.return=se,Me=Oe):i0(de)}ce=ce.sibling}e:for(ce=null,de=e;;){if(de.tag===5){if(ce===null){ce=de;try{d=de.stateNode,ee?(m=d.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(j=de.stateNode,A=de.memoizedProps.style,k=A!=null&&A.hasOwnProperty("display")?A.display:null,j.style.display=Qn("display",k))}catch(Be){cn(e,e.return,Be)}}}else if(de.tag===6){if(ce===null)try{de.stateNode.nodeValue=ee?"":de.memoizedProps}catch(Be){cn(e,e.return,Be)}}else if((de.tag!==22&&de.tag!==23||de.memoizedState===null||de===e)&&de.child!==null){de.child.return=de,de=de.child;continue}if(de===e)break e;for(;de.sibling===null;){if(de.return===null||de.return===e)break e;ce===de&&(ce=null),de=de.return}ce===de&&(ce=null),de.sibling.return=de.return,de=de.sibling}}break;case 19:Mo(n,e),Wo(e),s&4&&t0(e);break;case 21:break;default:Mo(n,e),Wo(e)}}function Wo(e){var n=e.flags;if(n&2){try{e:{for(var a=e.return;a!==null;){if(Wb(a)){var s=a;break e}a=a.return}throw Error(o(160))}switch(s.tag){case 5:var d=s.stateNode;s.flags&32&&(En(d,""),s.flags&=-33);var m=Gb(e);Wd(e,m,d);break;case 3:case 4:var k=s.stateNode.containerInfo,j=Gb(e);Jd(e,j,k);break;default:throw Error(o(161))}}catch(A){cn(e,e.return,A)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function aR(e,n,a){Me=e,r0(e)}function r0(e,n,a){for(var s=(e.mode&1)!==0;Me!==null;){var d=Me,m=d.child;if(d.tag===22&&s){var k=d.memoizedState!==null||Gs;if(!k){var j=d.alternate,A=j!==null&&j.memoizedState!==null||Gn;j=Gs;var ee=Gn;if(Gs=k,(Gn=A)&&!ee)for(Me=d;Me!==null;)k=Me,A=k.child,k.tag===22&&k.memoizedState!==null?a0(d):A!==null?(A.return=k,Me=A):a0(d);for(;m!==null;)Me=m,r0(m),m=m.sibling;Me=d,Gs=j,Gn=ee}o0(e)}else d.subtreeFlags&8772&&m!==null?(m.return=d,Me=m):o0(e)}}function o0(e){for(;Me!==null;){var n=Me;if(n.flags&8772){var a=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:Gn||ec(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!Gn)if(a===null)s.componentDidMount();else{var d=n.elementType===n.type?a.memoizedProps:Lo(n.type,a.memoizedProps);s.componentDidUpdate(d,a.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var m=n.updateQueue;m!==null&&eb(n,m,s);break;case 3:var k=n.updateQueue;if(k!==null){if(a=null,n.child!==null)switch(n.child.tag){case 5:a=n.child.stateNode;break;case 1:a=n.child.stateNode}eb(n,k,a)}break;case 5:var j=n.stateNode;if(a===null&&n.flags&4){a=j;var A=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&a.focus();break;case"img":A.src&&(a.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var ee=n.alternate;if(ee!==null){var ce=ee.memoizedState;if(ce!==null){var de=ce.dehydrated;de!==null&&rn(de)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Gn||n.flags&512&&Yd(n)}catch(se){cn(n,n.return,se)}}if(n===e){Me=null;break}if(a=n.sibling,a!==null){a.return=n.return,Me=a;break}Me=n.return}}function i0(e){for(;Me!==null;){var n=Me;if(n===e){Me=null;break}var a=n.sibling;if(a!==null){a.return=n.return,Me=a;break}Me=n.return}}function a0(e){for(;Me!==null;){var n=Me;try{switch(n.tag){case 0:case 11:case 15:var a=n.return;try{ec(4,n)}catch(A){cn(n,a,A)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var d=n.return;try{s.componentDidMount()}catch(A){cn(n,d,A)}}var m=n.return;try{Yd(n)}catch(A){cn(n,m,A)}break;case 5:var k=n.return;try{Yd(n)}catch(A){cn(n,k,A)}}}catch(A){cn(n,n.return,A)}if(n===e){Me=null;break}var j=n.sibling;if(j!==null){j.return=n.return,Me=j;break}Me=n.return}}var lR=Math.ceil,tc=J.ReactCurrentDispatcher,Gd=J.ReactCurrentOwner,yo=J.ReactCurrentBatchConfig,bt=0,jn=null,Sn=null,qn=0,Zr=0,yl=Xi(0),Cn=0,mu=null,Ma=0,nc=0,ep=0,gu=null,Or=null,tp=0,bl=1/0,ki=null,rc=!1,np=null,Gi=null,oc=!1,ea=null,ic=0,vu=0,rp=null,ac=-1,lc=0;function ur(){return bt&6?vt():ac!==-1?ac:ac=vt()}function ta(e){return e.mode&1?bt&2&&qn!==0?qn&-qn:qB.transition!==null?(lc===0&&(lc=P()),lc):(e=be,e!==0||(e=window.event,e=e===void 0?16:va(e.type)),e):1}function Fo(e,n,a,s){if(50<vu)throw vu=0,rp=null,Error(o(185));q(e,a,s),(!(bt&2)||e!==jn)&&(e===jn&&(!(bt&2)&&(nc|=a),Cn===4&&na(e,qn)),Lr(e,s),a===1&&bt===0&&!(n.mode&1)&&(bl=vt()+500,Rs&&$i()))}function Lr(e,n){var a=e.callbackNode;S(e,n);var s=zr(e,e===jn?qn:0);if(s===0)a!==null&&Pr(a),e.callbackNode=null,e.callbackPriority=0;else if(n=s&-s,e.callbackPriority!==n){if(a!=null&&Pr(a),n===1)e.tag===0?VB(u0.bind(null,e)):Uy(u0.bind(null,e)),zB(function(){!(bt&6)&&$i()}),a=null;else{switch(Ee(s)){case 1:a=oo;break;case 4:a=io;break;case 16:a=Rr;break;case 536870912:a=yr;break;default:a=Rr}a=g0(a,l0.bind(null,e))}e.callbackPriority=n,e.callbackNode=a}}function l0(e,n){if(ac=-1,lc=0,bt&6)throw Error(o(327));var a=e.callbackNode;if(_l()&&e.callbackNode!==a)return null;var s=zr(e,e===jn?qn:0);if(s===0)return null;if(s&30||s&e.expiredLanes||n)n=uc(e,s);else{n=s;var d=bt;bt|=2;var m=c0();(jn!==e||qn!==n)&&(ki=null,bl=vt()+500,Da(e,n));do try{cR();break}catch(j){s0(e,j)}while(1);Sd(),tc.current=m,bt=d,Sn!==null?n=0:(jn=null,qn=0,n=Cn)}if(n!==0){if(n===2&&(d=O(e),d!==0&&(s=d,n=op(e,d))),n===1)throw a=mu,Da(e,0),na(e,s),Lr(e,vt()),a;if(n===6)na(e,s);else{if(d=e.current.alternate,!(s&30)&&!uR(d)&&(n=uc(e,s),n===2&&(m=O(e),m!==0&&(s=m,n=op(e,m))),n===1))throw a=mu,Da(e,0),na(e,s),Lr(e,vt()),a;switch(e.finishedWork=d,e.finishedLanes=s,n){case 0:case 1:throw Error(o(345));case 2:Pa(e,Or,ki);break;case 3:if(na(e,s),(s&130023424)===s&&(n=tp+500-vt(),10<n)){if(zr(e,0)!==0)break;if(d=e.suspendedLanes,(d&s)!==s){ur(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=fd(Pa.bind(null,e,Or,ki),n);break}Pa(e,Or,ki);break;case 4:if(na(e,s),(s&4194240)===s)break;for(n=e.eventTimes,d=-1;0<s;){var k=31-un(s);m=1<<k,k=n[k],k>d&&(d=k),s&=~m}if(s=d,s=vt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*lR(s/1960))-s,10<s){e.timeoutHandle=fd(Pa.bind(null,e,Or,ki),s);break}Pa(e,Or,ki);break;case 5:Pa(e,Or,ki);break;default:throw Error(o(329))}}}return Lr(e,vt()),e.callbackNode===a?l0.bind(null,e):null}function op(e,n){var a=gu;return e.current.memoizedState.isDehydrated&&(Da(e,n).flags|=256),e=uc(e,n),e!==2&&(n=Or,Or=a,n!==null&&ip(n)),e}function ip(e){Or===null?Or=e:Or.push.apply(Or,e)}function uR(e){for(var n=e;;){if(n.flags&16384){var a=n.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var s=0;s<a.length;s++){var d=a[s],m=d.getSnapshot;d=d.value;try{if(!ke(m(),d))return!1}catch{return!1}}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function na(e,n){for(n&=~ep,n&=~nc,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var a=31-un(n),s=1<<a;e[a]=-1,n&=~s}}function u0(e){if(bt&6)throw Error(o(327));_l();var n=zr(e,0);if(!(n&1))return Lr(e,vt()),null;var a=uc(e,n);if(e.tag!==0&&a===2){var s=O(e);s!==0&&(n=s,a=op(e,s))}if(a===1)throw a=mu,Da(e,0),na(e,n),Lr(e,vt()),a;if(a===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,Pa(e,Or,ki),Lr(e,vt()),null}function ap(e,n){var a=bt;bt|=1;try{return e(n)}finally{bt=a,bt===0&&(bl=vt()+500,Rs&&$i())}}function Fa(e){ea!==null&&ea.tag===0&&!(bt&6)&&_l();var n=bt;bt|=1;var a=yo.transition,s=be;try{if(yo.transition=null,be=1,e)return e()}finally{be=s,yo.transition=a,bt=n,!(bt&6)&&$i()}}function lp(){Zr=yl.current,Yt(yl)}function Da(e,n){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,IB(a)),Sn!==null)for(a=Sn.return;a!==null;){var s=a;switch(vd(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ps();break;case 3:ml(),Yt(Er),Yt(Yn),Dd();break;case 5:Md(s);break;case 4:ml();break;case 13:Yt(an);break;case 19:Yt(an);break;case 10:xd(s.type._context);break;case 22:case 23:lp()}a=a.return}if(jn=e,Sn=e=ra(e.current,null),qn=Zr=n,Cn=0,mu=null,ep=nc=Ma=0,Or=gu=null,Oa!==null){for(n=0;n<Oa.length;n++)if(a=Oa[n],s=a.interleaved,s!==null){a.interleaved=null;var d=s.next,m=a.pending;if(m!==null){var k=m.next;m.next=d,s.next=k}a.pending=s}Oa=null}return e}function s0(e,n){do{var a=Sn;try{if(Sd(),Qs.current=Ys,Xs){for(var s=ln.memoizedState;s!==null;){var d=s.queue;d!==null&&(d.pending=null),s=s.next}Xs=!1}if(Ca=0,Tn=Ln=ln=null,su=!1,cu=0,Gd.current=null,a===null||a.return===null){Cn=1,mu=n,Sn=null;break}e:{var m=e,k=a.return,j=a,A=n;if(n=qn,j.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var ee=A,ce=j,de=ce.tag;if(!(ce.mode&1)&&(de===0||de===11||de===15)){var se=ce.alternate;se?(ce.updateQueue=se.updateQueue,ce.memoizedState=se.memoizedState,ce.lanes=se.lanes):(ce.updateQueue=null,ce.memoizedState=null)}var Oe=Pb(k);if(Oe!==null){Oe.flags&=-257,Bb(Oe,k,j,m,n),Oe.mode&1&&Db(m,ee,n),n=Oe,A=ee;var De=n.updateQueue;if(De===null){var Be=new Set;Be.add(A),n.updateQueue=Be}else De.add(A);break e}else{if(!(n&1)){Db(m,ee,n),up();break e}A=Error(o(426))}}else if(Gt&&j.mode&1){var dn=Pb(k);if(dn!==null){!(dn.flags&65536)&&(dn.flags|=256),Bb(dn,k,j,m,n),_d(gl(A,j));break e}}m=A=gl(A,j),Cn!==4&&(Cn=2),gu===null?gu=[m]:gu.push(m),m=k;do{switch(m.tag){case 3:m.flags|=65536,n&=-n,m.lanes|=n;var Q=Mb(m,A,n);Gy(m,Q);break e;case 1:j=A;var H=m.type,$=m.stateNode;if(!(m.flags&128)&&(typeof H.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Gi===null||!Gi.has($)))){m.flags|=65536,n&=-n,m.lanes|=n;var ye=Fb(m,j,n);Gy(m,ye);break e}}m=m.return}while(m!==null)}d0(a)}catch(Re){n=Re,Sn===a&&a!==null&&(Sn=a=a.return);continue}break}while(1)}function c0(){var e=tc.current;return tc.current=Ys,e===null?Ys:e}function up(){(Cn===0||Cn===3||Cn===2)&&(Cn=4),jn===null||!(Ma&268435455)&&!(nc&268435455)||na(jn,qn)}function uc(e,n){var a=bt;bt|=2;var s=c0();(jn!==e||qn!==n)&&(ki=null,Da(e,n));do try{sR();break}catch(d){s0(e,d)}while(1);if(Sd(),bt=a,tc.current=s,Sn!==null)throw Error(o(261));return jn=null,qn=0,Cn}function sR(){for(;Sn!==null;)f0(Sn)}function cR(){for(;Sn!==null&&!Br();)f0(Sn)}function f0(e){var n=m0(e.alternate,e,Zr);e.memoizedProps=e.pendingProps,n===null?d0(e):Sn=n,Gd.current=null}function d0(e){var n=e;do{var a=n.alternate;if(e=n.return,n.flags&32768){if(a=rR(a,n),a!==null){a.flags&=32767,Sn=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Cn=6,Sn=null;return}}else if(a=nR(a,n,Zr),a!==null){Sn=a;return}if(n=n.sibling,n!==null){Sn=n;return}Sn=n=e}while(n!==null);Cn===0&&(Cn=5)}function Pa(e,n,a){var s=be,d=yo.transition;try{yo.transition=null,be=1,fR(e,n,a,s)}finally{yo.transition=d,be=s}return null}function fR(e,n,a,s){do _l();while(ea!==null);if(bt&6)throw Error(o(327));a=e.finishedWork;var d=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var m=a.lanes|a.childLanes;if(oe(e,m),e===jn&&(Sn=jn=null,qn=0),!(a.subtreeFlags&2064)&&!(a.flags&2064)||oc||(oc=!0,g0(Rr,function(){return _l(),null})),m=(a.flags&15990)!==0,a.subtreeFlags&15990||m){m=yo.transition,yo.transition=null;var k=be;be=1;var j=bt;bt|=4,Gd.current=null,iR(e,a),n0(a,e),FB(sd),bn=!!ud,sd=ud=null,e.current=a,aR(a),ro(),bt=j,be=k,yo.transition=m}else e.current=a;if(oc&&(oc=!1,ea=e,ic=d),m=e.pendingLanes,m===0&&(Gi=null),Tr(a.stateNode),Lr(e,vt()),n!==null)for(s=e.onRecoverableError,a=0;a<n.length;a++)d=n[a],s(d.value,{componentStack:d.stack,digest:d.digest});if(rc)throw rc=!1,e=np,np=null,e;return ic&1&&e.tag!==0&&_l(),m=e.pendingLanes,m&1?e===rp?vu++:(vu=0,rp=e):vu=0,$i(),null}function _l(){if(ea!==null){var e=Ee(ic),n=yo.transition,a=be;try{if(yo.transition=null,be=16>e?16:e,ea===null)var s=!1;else{if(e=ea,ea=null,ic=0,bt&6)throw Error(o(331));var d=bt;for(bt|=4,Me=e.current;Me!==null;){var m=Me,k=m.child;if(Me.flags&16){var j=m.deletions;if(j!==null){for(var A=0;A<j.length;A++){var ee=j[A];for(Me=ee;Me!==null;){var ce=Me;switch(ce.tag){case 0:case 11:case 15:hu(8,ce,m)}var de=ce.child;if(de!==null)de.return=ce,Me=de;else for(;Me!==null;){ce=Me;var se=ce.sibling,Oe=ce.return;if(Jb(ce),ce===ee){Me=null;break}if(se!==null){se.return=Oe,Me=se;break}Me=Oe}}}var De=m.alternate;if(De!==null){var Be=De.child;if(Be!==null){De.child=null;do{var dn=Be.sibling;Be.sibling=null,Be=dn}while(Be!==null)}}Me=m}}if(m.subtreeFlags&2064&&k!==null)k.return=m,Me=k;else e:for(;Me!==null;){if(m=Me,m.flags&2048)switch(m.tag){case 0:case 11:case 15:hu(9,m,m.return)}var Q=m.sibling;if(Q!==null){Q.return=m.return,Me=Q;break e}Me=m.return}}var H=e.current;for(Me=H;Me!==null;){k=Me;var $=k.child;if(k.subtreeFlags&2064&&$!==null)$.return=k,Me=$;else e:for(k=H;Me!==null;){if(j=Me,j.flags&2048)try{switch(j.tag){case 0:case 11:case 15:ec(9,j)}}catch(Re){cn(j,j.return,Re)}if(j===k){Me=null;break e}var ye=j.sibling;if(ye!==null){ye.return=j.return,Me=ye;break e}Me=j.return}}if(bt=d,$i(),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(Wt,e)}catch{}s=!0}return s}finally{be=a,yo.transition=n}}return!1}function p0(e,n,a){n=gl(a,n),n=Mb(e,n,1),e=Ji(e,n,1),n=ur(),e!==null&&(q(e,1,n),Lr(e,n))}function cn(e,n,a){if(e.tag===3)p0(e,e,a);else for(;n!==null;){if(n.tag===3){p0(n,e,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Gi===null||!Gi.has(s))){e=gl(a,e),e=Fb(n,e,1),n=Ji(n,e,1),e=ur(),n!==null&&(q(n,1,e),Lr(n,e));break}}n=n.return}}function dR(e,n,a){var s=e.pingCache;s!==null&&s.delete(n),n=ur(),e.pingedLanes|=e.suspendedLanes&a,jn===e&&(qn&a)===a&&(Cn===4||Cn===3&&(qn&130023424)===qn&&500>vt()-tp?Da(e,0):ep|=a),Lr(e,n)}function h0(e,n){n===0&&(e.mode&1?(n=br,br<<=1,!(br&130023424)&&(br=4194304)):n=1);var a=ur();e=Si(e,n),e!==null&&(q(e,n,a),Lr(e,a))}function pR(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),h0(e,a)}function hR(e,n){var a=0;switch(e.tag){case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(o(314))}s!==null&&s.delete(n),h0(e,a)}var m0;m0=function(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps||Er.current)Nr=!0;else{if(!(e.lanes&a)&&!(n.flags&128))return Nr=!1,tR(e,n,a);Nr=!!(e.flags&131072)}else Nr=!1,Gt&&n.flags&1048576&&Qy(n,js,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;Ws(e,n),e=n.pendingProps;var d=ul(n,Yn.current);pl(n,a),d=Rd(null,n,s,e,d,a);var m=Td();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,kr(s)?(m=!0,Bs(n)):m=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Nd(n),d.updater=Vs,n.stateNode=d,d._reactInternals=n,Ld(n,s,e,a),n=qd(null,n,s,!0,m,a)):(n.tag=0,Gt&&m&&gd(n),lr(null,n,d,a),n=n.child),n;case 16:s=n.elementType;e:{switch(Ws(e,n),e=n.pendingProps,d=s._init,s=d(s._payload),n.type=s,d=n.tag=gR(s),e=Lo(s,e),d){case 0:n=Vd(null,n,s,e,a);break e;case 1:n=Kb(null,n,s,e,a);break e;case 11:n=Rb(null,n,s,e,a);break e;case 14:n=Tb(null,n,s,Lo(s.type,e),a);break e}throw Error(o(306,s,""))}return n;case 0:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Lo(s,d),Vd(e,n,s,d,a);case 1:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Lo(s,d),Kb(e,n,s,d,a);case 3:e:{if(Ab(n),e===null)throw Error(o(387));s=n.pendingProps,m=n.memoizedState,d=m.element,Wy(e,n),Hs(n,s,null,a);var k=n.memoizedState;if(s=k.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){d=gl(Error(o(423)),n),n=Hb(e,n,s,a,d);break e}else if(s!==d){d=gl(Error(o(424)),n),n=Hb(e,n,s,a,d);break e}else for(Xr=Qi(n.stateNode.containerInfo.firstChild),Qr=n,Gt=!0,Oo=null,a=lb(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(fl(),s===d){n=Ei(e,n,a);break e}lr(e,n,s,a)}n=n.child}return n;case 5:return ub(n),e===null&&bd(n),s=n.type,d=n.pendingProps,m=e!==null?e.memoizedProps:null,k=d.children,cd(s,d)?k=null:m!==null&&cd(s,m)&&(n.flags|=32),zb(e,n),lr(e,n,k,a),n.child;case 6:return e===null&&bd(n),null;case 13:return Vb(e,n,a);case 4:return Cd(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=hl(n,null,s,a):lr(e,n,s,a),n.child;case 11:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Lo(s,d),Rb(e,n,s,d,a);case 7:return lr(e,n,n.pendingProps,a),n.child;case 8:return lr(e,n,n.pendingProps.children,a),n.child;case 12:return lr(e,n,n.pendingProps.children,a),n.child;case 10:e:{if(s=n.type._context,d=n.pendingProps,m=n.memoizedProps,k=d.value,Ut(zs,s._currentValue),s._currentValue=k,m!==null)if(ke(m.value,k)){if(m.children===d.children&&!Er.current){n=Ei(e,n,a);break e}}else for(m=n.child,m!==null&&(m.return=n);m!==null;){var j=m.dependencies;if(j!==null){k=m.child;for(var A=j.firstContext;A!==null;){if(A.context===s){if(m.tag===1){A=xi(-1,a&-a),A.tag=2;var ee=m.updateQueue;if(ee!==null){ee=ee.shared;var ce=ee.pending;ce===null?A.next=A:(A.next=ce.next,ce.next=A),ee.pending=A}}m.lanes|=a,A=m.alternate,A!==null&&(A.lanes|=a),Ed(m.return,a,n),j.lanes|=a;break}A=A.next}}else if(m.tag===10)k=m.type===n.type?null:m.child;else if(m.tag===18){if(k=m.return,k===null)throw Error(o(341));k.lanes|=a,j=k.alternate,j!==null&&(j.lanes|=a),Ed(k,a,n),k=m.sibling}else k=m.child;if(k!==null)k.return=m;else for(k=m;k!==null;){if(k===n){k=null;break}if(m=k.sibling,m!==null){m.return=k.return,k=m;break}k=k.return}m=k}lr(e,n,d.children,a),n=n.child}return n;case 9:return d=n.type,s=n.pendingProps.children,pl(n,a),d=go(d),s=s(d),n.flags|=1,lr(e,n,s,a),n.child;case 14:return s=n.type,d=Lo(s,n.pendingProps),d=Lo(s.type,d),Tb(e,n,s,d,a);case 15:return jb(e,n,n.type,n.pendingProps,a);case 17:return s=n.type,d=n.pendingProps,d=n.elementType===s?d:Lo(s,d),Ws(e,n),n.tag=1,kr(s)?(e=!0,Bs(n)):e=!1,pl(n,a),rb(n,s,d),Ld(n,s,d,a),qd(null,n,s,!0,e,a);case 19:return Ub(e,n,a);case 22:return Ib(e,n,a)}throw Error(o(156,n.tag))};function g0(e,n){return tt(e,n)}function mR(e,n,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bo(e,n,a,s){return new mR(e,n,a,s)}function sp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gR(e){if(typeof e=="function")return sp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===he)return 11;if(e===Ie)return 14}return 2}function ra(e,n){var a=e.alternate;return a===null?(a=bo(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function sc(e,n,a,s,d,m){var k=2;if(s=e,typeof e=="function")sp(e)&&(k=1);else if(typeof e=="string")k=5;else e:switch(e){case _e:return Ba(a.children,d,m,n);case je:k=8,d|=8;break;case ve:return e=bo(12,a,n,d|2),e.elementType=ve,e.lanes=m,e;case ge:return e=bo(13,a,n,d),e.elementType=ge,e.lanes=m,e;case Le:return e=bo(19,a,n,d),e.elementType=Le,e.lanes=m,e;case Ae:return cc(a,d,m,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xe:k=10;break e;case we:k=9;break e;case he:k=11;break e;case Ie:k=14;break e;case Fe:k=16,s=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=bo(k,a,n,d),n.elementType=e,n.type=s,n.lanes=m,n}function Ba(e,n,a,s){return e=bo(7,e,s,n),e.lanes=a,e}function cc(e,n,a,s){return e=bo(22,e,s,n),e.elementType=Ae,e.lanes=a,e.stateNode={isHidden:!1},e}function cp(e,n,a){return e=bo(6,e,null,n),e.lanes=a,e}function fp(e,n,a){return n=bo(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function vR(e,n,a,s,d){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=X(0),this.expirationTimes=X(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=X(0),this.identifierPrefix=s,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function dp(e,n,a,s,d,m,k,j,A){return e=new vR(e,n,a,j,A),n===1?(n=1,m===!0&&(n|=8)):n=0,m=bo(3,null,null,n),e.current=m,m.stateNode=e,m.memoizedState={element:s,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nd(m),e}function yR(e,n,a){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Se,key:s==null?null:""+s,children:e,containerInfo:n,implementation:a}}function v0(e){if(!e)return Zi;e=e._reactInternals;e:{if(rr(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(kr(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var a=e.type;if(kr(a))return Vy(e,a,n)}return n}function y0(e,n,a,s,d,m,k,j,A){return e=dp(a,s,!0,e,d,m,k,j,A),e.context=v0(null),a=e.current,s=ur(),d=ta(a),m=xi(s,d),m.callback=n??null,Ji(a,m,d),e.current.lanes=d,q(e,d,s),Lr(e,s),e}function fc(e,n,a,s){var d=n.current,m=ur(),k=ta(d);return a=v0(a),n.context===null?n.context=a:n.pendingContext=a,n=xi(m,k),n.payload={element:e},s=s===void 0?null:s,s!==null&&(n.callback=s),e=Ji(d,n,k),e!==null&&(Fo(e,d,k,m),As(e,d,k)),k}function dc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function b0(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function pp(e,n){b0(e,n),(e=e.alternate)&&b0(e,n)}function bR(){return null}var _0=typeof reportError=="function"?reportError:function(e){console.error(e)};function hp(e){this._internalRoot=e}pc.prototype.render=hp.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));fc(e,n,null,null)},pc.prototype.unmount=hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Fa(function(){fc(null,e,null,null)}),n[yi]=null}};function pc(e){this._internalRoot=e}pc.prototype.unstable_scheduleHydration=function(e){if(e){var n=nn();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Kr.length&&n!==0&&n<Kr[a].priority;a++);Kr.splice(a,0,e),a===0&&ir(e)}};function mp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function w0(){}function _R(e,n,a,s,d){if(d){if(typeof s=="function"){var m=s;s=function(){var ee=dc(k);m.call(ee)}}var k=y0(n,s,e,0,null,!1,!1,"",w0);return e._reactRootContainer=k,e[yi]=k.current,tu(e.nodeType===8?e.parentNode:e),Fa(),k}for(;d=e.lastChild;)e.removeChild(d);if(typeof s=="function"){var j=s;s=function(){var ee=dc(A);j.call(ee)}}var A=dp(e,0,!1,null,null,!1,!1,"",w0);return e._reactRootContainer=A,e[yi]=A.current,tu(e.nodeType===8?e.parentNode:e),Fa(function(){fc(n,A,a,s)}),A}function mc(e,n,a,s,d){var m=a._reactRootContainer;if(m){var k=m;if(typeof d=="function"){var j=d;d=function(){var A=dc(k);j.call(A)}}fc(n,k,e,d)}else k=_R(a,n,e,d,s);return dc(k)}We=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var a=Ir(n.pendingLanes);a!==0&&(me(n,a|1),Lr(n,vt()),!(bt&6)&&(bl=vt()+500,$i()))}break;case 13:Fa(function(){var s=Si(e,1);if(s!==null){var d=ur();Fo(s,e,1,d)}}),pp(e,1)}},St=function(e){if(e.tag===13){var n=Si(e,134217728);if(n!==null){var a=ur();Fo(n,e,134217728,a)}pp(e,134217728)}},Ot=function(e){if(e.tag===13){var n=ta(e),a=Si(e,n);if(a!==null){var s=ur();Fo(a,e,n,s)}pp(e,n)}},nn=function(){return be},sn=function(e,n){var a=be;try{return be=e,n()}finally{be=a}},qt=function(e,n,a){switch(n){case"input":if(mn(e,a),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==e&&s.form===e.form){var d=Ds(s);if(!d)throw Error(o(90));en(s),mn(s,d)}}}break;case"textarea":nt(e,a);break;case"select":n=a.value,n!=null&&pt(e,!!a.multiple,n,!1)}},kn=ap,Cr=Fa;var wR={usingClientEntryPoint:!1,Events:[ou,al,Ds,Zn,tr,ap]},yu={findFiberByHostInstance:xa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},SR={bundleType:yu.bundleType,version:yu.version,rendererPackageName:yu.rendererPackageName,rendererConfig:yu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fr(e),e===null?null:e.stateNode},findFiberByHostInstance:yu.findFiberByHostInstance||bR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gc.isDisabled&&gc.supportsFiber)try{Wt=gc.inject(SR),Dn=gc}catch{}}return pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wR,pr.createPortal=function(e,n){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mp(n))throw Error(o(200));return yR(e,n,null,a)},pr.createRoot=function(e,n){if(!mp(e))throw Error(o(299));var a=!1,s="",d=_0;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=dp(e,1,!1,null,null,a,!1,s,d),e[yi]=n.current,tu(e.nodeType===8?e.parentNode:e),new hp(n)},pr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Fr(n),e=e===null?null:e.stateNode,e},pr.flushSync=function(e){return Fa(e)},pr.hydrate=function(e,n,a){if(!hc(n))throw Error(o(200));return mc(null,e,n,!0,a)},pr.hydrateRoot=function(e,n,a){if(!mp(e))throw Error(o(405));var s=a!=null&&a.hydratedSources||null,d=!1,m="",k=_0;if(a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),n=y0(n,null,e,1,a??null,d,!1,m,k),e[yi]=n.current,tu(e),s)for(e=0;e<s.length;e++)a=s[e],d=a._getVersion,d=d(a._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[a,d]:n.mutableSourceEagerHydrationData.push(a,d);return new pc(n)},pr.render=function(e,n,a){if(!hc(n))throw Error(o(200));return mc(null,e,n,!1,a)},pr.unmountComponentAtNode=function(e){if(!hc(e))throw Error(o(40));return e._reactRootContainer?(Fa(function(){mc(null,null,e,!1,function(){e._reactRootContainer=null,e[yi]=null})}),!0):!1},pr.unstable_batchedUpdates=ap,pr.unstable_renderSubtreeIntoContainer=function(e,n,a,s){if(!hc(a))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return mc(e,n,a,!1,s)},pr.version="18.2.0-next-9e3b772b8-20220608",pr}(function(t){function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}r(),t.exports=TF()})(DF);var jF=Bf,IF=jF.unstable_flushControlled,zF=IF;function KF(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var Tf=D,hv=ua,AF=function(t){KF(r,t);function r(){return t.apply(this,arguments)||this}var o=r.prototype;return o.shouldComponentUpdate=function(i){return this.props.text!==i.text||this.props.editorState.getSelection().getHasFocus()!==i.editorState.getSelection().getHasFocus()},o.render=function(){var i=this.props.editorState.getSelection().getHasFocus(),l=hv({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":i}),c={whiteSpace:"pre-wrap"};return Tf.createElement("div",{className:l},Tf.createElement("div",{className:hv("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:c},this.props.text))},r}(Tf.Component),HF=AF,mv=Ef,Ul=Zu,gv=dr,Mi=gv.isPlatform("Mac OS X"),vv=Mi&&gv.isBrowser("Firefox < 29"),Fi=mv.hasCommandModifier,ri=mv.isCtrlKeyCommand;function yv(t){return Mi&&t.altKey||ri(t)}function VF(t){return Fi(t)?t.shiftKey?"redo":"undo":null}function qF(t){return!Mi&&t.shiftKey?null:yv(t)?"delete-word":"delete"}function UF(t){return Fi(t)&&Mi?"backspace-to-start-of-line":yv(t)?"backspace-word":"backspace"}function QF(t){switch(t.keyCode){case 66:return Fi(t)?"bold":null;case 68:return ri(t)?"delete":null;case 72:return ri(t)?"backspace":null;case 73:return Fi(t)?"italic":null;case 74:return Fi(t)?"code":null;case 75:return Mi&&ri(t)?"secondary-cut":null;case 77:return ri(t)?"split-block":null;case 79:return ri(t)?"split-block":null;case 84:return Mi&&ri(t)?"transpose-characters":null;case 85:return Fi(t)?"underline":null;case 87:return Mi&&ri(t)?"backspace-word":null;case 89:return ri(t)?Mi?"secondary-paste":"redo":null;case 90:return VF(t)||null;case Ul.RETURN:return"split-block";case Ul.DELETE:return qF(t);case Ul.BACKSPACE:return UF(t);case Ul.LEFT:return vv&&Fi(t)?"move-selection-to-start-of-block":null;case Ul.RIGHT:return vv&&Fi(t)?"move-selection-to-end-of-block":null;default:return null}}var bv=QF,XF=sa;function jf(){return jf=XF||function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},jf.apply(this,arguments)}function If(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){Te(t,l,o[l])})}return t}function Ke(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Te(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function _v(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}var ZF=Zc,$F=Uh,YF=iN,JF=MO,WF=a2,GF=FF,wv=zF,eD=HF,tD=Vt,Di=D,nD=df,rD=ns,oD=dr,zf=ua,iD=Po,aD=bv,lD=rs,uD=Li,Sv=wt,xv=Il,sD=fr,Ev=oD.isBrowser("IE"),cD=!Ev,kv={edit:GF,composite:YF,drag:WF,cut:null,render:null},Nv=!1,fD=function(t){_v(r,t);function r(){return t.apply(this,arguments)||this}var o=r.prototype;return o.render=function(){return null},o.componentDidMount=function(){this._update()},o.componentDidUpdate=function(){this._update()},o._update=function(){var i=this.props.editor;i._latestEditorState=this.props.editorState,i._blockSelectEvents=!0},r}(Di.Component),Ov=function(t){_v(r,t);function r(i){var l;return l=t.call(this,i)||this,Te(Ke(l),"_blockSelectEvents",void 0),Te(Ke(l),"_clipboard",void 0),Te(Ke(l),"_handler",void 0),Te(Ke(l),"_dragCount",void 0),Te(Ke(l),"_internalDrag",void 0),Te(Ke(l),"_editorKey",void 0),Te(Ke(l),"_placeholderAccessibilityID",void 0),Te(Ke(l),"_latestEditorState",void 0),Te(Ke(l),"_latestCommittedEditorState",void 0),Te(Ke(l),"_pendingStateFromBeforeInput",void 0),Te(Ke(l),"_onBeforeInput",void 0),Te(Ke(l),"_onBlur",void 0),Te(Ke(l),"_onCharacterData",void 0),Te(Ke(l),"_onCompositionEnd",void 0),Te(Ke(l),"_onCompositionStart",void 0),Te(Ke(l),"_onCopy",void 0),Te(Ke(l),"_onCut",void 0),Te(Ke(l),"_onDragEnd",void 0),Te(Ke(l),"_onDragOver",void 0),Te(Ke(l),"_onDragStart",void 0),Te(Ke(l),"_onDrop",void 0),Te(Ke(l),"_onInput",void 0),Te(Ke(l),"_onFocus",void 0),Te(Ke(l),"_onKeyDown",void 0),Te(Ke(l),"_onKeyPress",void 0),Te(Ke(l),"_onKeyUp",void 0),Te(Ke(l),"_onMouseDown",void 0),Te(Ke(l),"_onMouseUp",void 0),Te(Ke(l),"_onPaste",void 0),Te(Ke(l),"_onSelect",void 0),Te(Ke(l),"editor",void 0),Te(Ke(l),"editorContainer",void 0),Te(Ke(l),"focus",void 0),Te(Ke(l),"blur",void 0),Te(Ke(l),"setMode",void 0),Te(Ke(l),"exitCurrentMode",void 0),Te(Ke(l),"restoreEditorDOM",void 0),Te(Ke(l),"setClipboard",void 0),Te(Ke(l),"getClipboard",void 0),Te(Ke(l),"getEditorKey",void 0),Te(Ke(l),"update",void 0),Te(Ke(l),"onDragEnter",void 0),Te(Ke(l),"onDragLeave",void 0),Te(Ke(l),"_handleEditorContainerRef",function(c){l.editorContainer=c,l.editor=c!==null?c.firstChild:null}),Te(Ke(l),"focus",function(c){var g=l.props.editorState,v=g.getSelection().getHasFocus(),b=l.editor;if(b){var w=rD.getScrollParent(b),L=c||lD(w),R=L.x,M=L.y;xv(b)||Sv(!1),b.focus(),w===window?window.scrollTo(R,M):nD.setTop(w,M),v||l.update(tD.forceSelection(g,g.getSelection()))}}),Te(Ke(l),"blur",function(){var c=l.editor;c&&(xv(c)||Sv(!1),c.blur())}),Te(Ke(l),"setMode",function(c){var g=l.props,v=g.onPaste,b=g.onCut,w=g.onCopy,L=If({},kv.edit);v&&(L.onPaste=v),b&&(L.onCut=b),w&&(L.onCopy=w);var R=If({},kv,{edit:L});l._handler=R[c]}),Te(Ke(l),"exitCurrentMode",function(){l.setMode("edit")}),Te(Ke(l),"restoreEditorDOM",function(c){l.setState({contentsKey:l.state.contentsKey+1},function(){l.focus(c)})}),Te(Ke(l),"setClipboard",function(c){l._clipboard=c}),Te(Ke(l),"getClipboard",function(){return l._clipboard}),Te(Ke(l),"update",function(c){l._latestEditorState=c,l.props.onChange(c)}),Te(Ke(l),"onDragEnter",function(){l._dragCount++}),Te(Ke(l),"onDragLeave",function(){l._dragCount--,l._dragCount===0&&l.exitCurrentMode()}),l._blockSelectEvents=!1,l._clipboard=null,l._handler=null,l._dragCount=0,l._editorKey=i.editorKey||iD(),l._placeholderAccessibilityID="placeholder-"+l._editorKey,l._latestEditorState=i.editorState,l._latestCommittedEditorState=i.editorState,l._onBeforeInput=l._buildHandler("onBeforeInput"),l._onBlur=l._buildHandler("onBlur"),l._onCharacterData=l._buildHandler("onCharacterData"),l._onCompositionEnd=l._buildHandler("onCompositionEnd"),l._onCompositionStart=l._buildHandler("onCompositionStart"),l._onCopy=l._buildHandler("onCopy"),l._onCut=l._buildHandler("onCut"),l._onDragEnd=l._buildHandler("onDragEnd"),l._onDragOver=l._buildHandler("onDragOver"),l._onDragStart=l._buildHandler("onDragStart"),l._onDrop=l._buildHandler("onDrop"),l._onInput=l._buildHandler("onInput"),l._onFocus=l._buildHandler("onFocus"),l._onKeyDown=l._buildHandler("onKeyDown"),l._onKeyPress=l._buildHandler("onKeyPress"),l._onKeyUp=l._buildHandler("onKeyUp"),l._onMouseDown=l._buildHandler("onMouseDown"),l._onMouseUp=l._buildHandler("onMouseUp"),l._onPaste=l._buildHandler("onPaste"),l._onSelect=l._buildHandler("onSelect"),l.getEditorKey=function(){return l._editorKey},l.state={contentsKey:0},l}var o=r.prototype;return o._buildHandler=function(i){var l=this;return function(c){if(!l.props.readOnly){var g=l._handler&&l._handler[i];g&&(wv?wv(function(){return g(l,c)}):g(l,c))}}},o._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},o._renderPlaceholder=function(){if(this._showPlaceholder()){var i={text:sD(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Di.createElement(eD,i)}return null},o._renderARIADescribedBy=function(){var i=this.props.ariaDescribedBy||"",l=this._showPlaceholder()?this._placeholderAccessibilityID:"";return i.replace("{{editor_id_placeholder}}",l)||void 0},o.render=function(){var i=this.props,l=i.blockRenderMap,c=i.blockRendererFn,g=i.blockStyleFn,v=i.customStyleFn,b=i.customStyleMap,w=i.editorState,L=i.preventScroll,R=i.readOnly,M=i.textAlignment,z=i.textDirectionality,B=zf({"DraftEditor/root":!0,"DraftEditor/alignLeft":M==="left","DraftEditor/alignRight":M==="right","DraftEditor/alignCenter":M==="center"}),T={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},I=this.props.role||"textbox",G=I==="combobox"?!!this.props.ariaExpanded:null,Y={blockRenderMap:l,blockRendererFn:c,blockStyleFn:g,customStyleMap:If({},$F,b),customStyleFn:v,editorKey:this._editorKey,editorState:w,preventScroll:L,textDirectionality:z};return Di.createElement("div",{className:B},this._renderPlaceholder(),Di.createElement("div",{className:zf("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Di.createElement("div",{"aria-activedescendant":R?null:this.props.ariaActiveDescendantID,"aria-autocomplete":R?null:this.props.ariaAutoComplete,"aria-controls":R?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":R?null:G,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":R?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:zf({notranslate:!R,"public/DraftEditor/content":!0}),contentEditable:!R,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:R?null:I,spellCheck:cD&&this.props.spellCheck,style:T,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Di.createElement(fD,{editor:this,editorState:w}),Di.createElement(JF,jf({},Y,{key:"contents"+this.state.contentsKey})))))},o.componentDidMount=function(){this._blockSelectEvents=!1,!Nv&&uD("draft_ods_enabled")&&(Nv=!0),this.setMode("edit"),Ev&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Ta.execCommand("AutoUrlDetect",!1,!1))},o.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},r}(Di.Component);Te(Ov,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:ZF,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:aD,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var dD=Ov,pD={},hD={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},Lv=hD,mD=Lv,gD=pa,Cv=gD.strlen;function vD(t,r){var o=[];return t.findEntityRanges(function(i){return!!i.getEntity()},function(i,l){var c=t.getText(),g=t.getEntityAt(i);o.push({offset:Cv(c.slice(0,i)),length:Cv(c.slice(i,l)),key:Number(r[mD.stringify(g)])})}),o}var yD=vD,Mv=pa,bD=Nl,_D=function(t,r){return t===r},wD=function(t){return!!t},SD=[];function xD(t,r,o){var i=[],l=r.map(function(c){return c.has(o)}).toList();return bD(l,_D,wD,function(c,g){var v=t.getText();i.push({offset:Mv.strlen(v.slice(0,c)),length:Mv.strlen(v.slice(c,g)),style:o})}),i}function ED(t){var r=t.getCharacterList().map(function(i){return i.getStyle()}).toList(),o=r.flatten().toSet().map(function(i){return xD(t,r,i)});return Array.prototype.concat.apply(SD,o.toJS())}var kD=ED;function ND(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){OD(t,l,o[l])})}return t}function OD(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var LD=ia,CD=Yr,Fv=Lv,MD=yD,FD=kD,DD=wt,Dv=function(t,r){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:FD(t),entityRanges:MD(t,r),data:t.getData().toObject()}},PD=function(t,r,o,i){if(t instanceof LD){o.push(Dv(t,r));return}t instanceof CD||DD(!1);var l=t.getParentKey(),c=i[t.getKey()]=ND({},Dv(t,r),{children:[]});if(l){i[l].children.push(c);return}o.push(c)},BD=function(t,r){var o=r.entityMap,i=[],l={},c={},g=0;return t.getBlockMap().forEach(function(v){v.findEntityRanges(function(b){return b.getEntity()!==null},function(b){var w=v.getEntityAt(b),L=Fv.stringify(w);c[L]||(c[L]=w,o[L]="".concat(g),g++)}),PD(v,o,i,l)}),{blocks:i,entityMap:o}},RD=function(t,r){var o=r.blocks,i=r.entityMap,l={};return Object.keys(i).forEach(function(c,g){var v=t.getEntity(Fv.unstringify(c));l[g]={type:v.getType(),mutability:v.getMutability(),data:v.getData()}}),{blocks:o,entityMap:l}},TD=function(t){var r={entityMap:{},blocks:[]};return r=BD(t,r),r=RD(t,r),r},jD=TD;function Ql(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){ID(t,l,o[l])})}return t}function ID(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var zD=Po,Pv=wt,KD=function(t,r){for(var o=[].concat(t).reverse();o.length;){var i=o.pop();r(i);var l=i.children;Array.isArray(l)||Pv(!1),o=o.concat([].concat(l.reverse()))}},Bv=function(t){if(!(t&&t.type))return!1;var r=t.type;return r==="unordered-list-item"||r==="ordered-list-item"},AD=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(r){return r.type===t.type?Ql({},r,{depth:(t.depth||0)+1}):r}))},HD={fromRawTreeStateToRawState:function(t){var r=t.blocks,o=[];return Array.isArray(r)||Pv(!1),!Array.isArray(r)||!r.length?t:(KD(r,function(i){var l=Ql({},i);Bv(i)&&(l.depth=l.depth||0,AD(i),i.children!=null&&i.children.length>0)||(delete l.children,o.push(l))}),t.blocks=o,Ql({},t,{blocks:o}))},fromRawStateToRawTreeState:function(t){var r=[],o=[];return t.blocks.forEach(function(i){var l=Bv(i),c=i.depth||0,g=Ql({},i,{children:[]});if(!l){r.push(g);return}var v=o[0];if(v==null&&c===0)r.push(g);else if(v==null||v.depth<c-1){var b={key:zD(),text:"",depth:c-1,type:i.type,children:[],entityRanges:[],inlineStyleRanges:[]};o.unshift(b),c===1?r.push(b):v?.children.push(b),b.children.push(g)}else if(v.depth===c-1)v.children.push(g);else{for(;v!=null&&v.depth>=c;)o.shift(),v=o[0];c>0?v.children.push(g):r.push(g)}}),Ql({},t,{blocks:r})}},VD=HD,qD=$r,UD=gt,QD=UD.List;function XD(t,r){var o=t.map(function(i,l){var c=r[l];return qD.create({style:i,entity:c})});return QD(o)}var ZD=XD,$D=pa,Rv=$D.substr;function YD(t,r){var o=Array(t.length).fill(null);return r&&r.forEach(function(i){for(var l=Rv(t,0,i.offset).length,c=l+Rv(t,i.offset,i.length).length,g=l;g<c;g++)o[g]=i.key}),o}var JD=YD,WD=pa,GD=gt,e3=GD.OrderedSet,Tv=WD.substr,t3=e3();function n3(t,r){var o=Array(t.length).fill(t3);return r&&r.forEach(function(i){for(var l=Tv(t,0,i.offset).length,c=l+Tv(t,i.offset,i.length).length;l<c;)o[l]=o[l].add(i.style),l++}),o}var r3=n3;function Xl(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},i=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),i.forEach(function(l){o3(t,l,o[l])})}return t}function o3(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var i3=ia,jv=Yr,a3=Ac,l3=Cu,Iv=VD,zv=Mu,u3=ZD,s3=JD,c3=r3,Kv=Po,f3=Li,Kf=gt,Af=wt,Av=f3("draft_tree_data_support"),Hv=Kf.List,d3=Kf.Map,Vv=Kf.OrderedMap,Hf=function(t,r){var o=t.key,i=t.type,l=t.data,c=t.text,g=t.depth,v={text:c,depth:g||0,type:i||"unstyled",key:o||Kv(),data:d3(l),characterList:p3(t,r)};return v},p3=function(t,r){var o=t.text,i=t.entityRanges,l=t.inlineStyleRanges,c=i||[],g=l||[];return u3(c3(o,g),s3(o,c.filter(function(v){return r.hasOwnProperty(v.key)}).map(function(v){return Xl({},v,{key:r[v.key]})})))},Vf=function(t){return Xl({},t,{key:t.key||Kv()})},qv=function(t,r,o){var i=r.map(function(l){return Xl({},l,{parentRef:o})});return t.concat(i.reverse())},h3=function(t,r){return t.map(Vf).reduce(function(o,i,l){Array.isArray(i.children)||Af(!1);var c=i.children.map(Vf),g=new jv(Xl({},Hf(i,r),{prevSibling:l===0?null:t[l-1].key,nextSibling:l===t.length-1?null:t[l+1].key,children:Hv(c.map(function(T){return T.key}))}));o=o.set(g.getKey(),g);for(var v=qv([],c,g);v.length>0;){var b=v.pop(),w=b.parentRef,L=w.getChildKeys(),R=L.indexOf(b.key),M=Array.isArray(b.children);if(!M){M||Af(!1);break}var z=b.children.map(Vf),B=new jv(Xl({},Hf(b,r),{parent:w.getKey(),children:Hv(z.map(function(T){return T.key})),prevSibling:R===0?null:L.get(R-1),nextSibling:R===L.size-1?null:L.get(R+1)}));o=o.set(B.getKey(),B),v=qv(v,z,B)}return o},Vv())},m3=function(t,r){return Vv(t.map(function(o){var i=new i3(Hf(o,r));return[i.getKey(),i]}))},g3=function(t,r){var o=t.blocks.find(function(c){return Array.isArray(c.children)&&c.children.length>0}),i=Av&&!o?Iv.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!Av)return m3(o?Iv.fromRawTreeStateToRawState(t).blocks:i,r);var l=h3(i,r);return l},v3=function(t){var r=t.entityMap,o={};return Object.keys(r).forEach(function(i){var l=r[i],c=l.type,g=l.mutability,v=l.data;o[i]=l3.__create(c,g,v||{})}),o},y3=function(t){Array.isArray(t.blocks)||Af(!1);var r=v3(t),o=g3(t,r),i=o.isEmpty()?new zv:zv.createEmpty(o.first().getKey());return new a3({blockMap:o,entityMap:r,selectionBefore:i,selectionAfter:i})},b3=y3,_3=xg;function w3(t){var r=_3(t),o=0,i=0,l=0,c=0;if(r.length){if(r.length>1&&r[0].width===0){var g=r[1];o=g.top,i=g.right,l=g.bottom,c=g.left}else{var v=r[0];o=v.top,i=v.right,l=v.bottom,c=v.left}for(var b=1;b<r.length;b++){var w=r[b];w.height!==0&&w.width!==0&&(o=Math.min(o,w.top),i=Math.max(i,w.right),l=Math.max(l,w.bottom),c=Math.min(c,w.left))}}return{top:o,right:i,bottom:l,left:c,width:i-c,height:l-o}}var S3=w3,x3=S3;function E3(t){var r=t.getSelection();if(!r.rangeCount)return null;var o=r.getRangeAt(0),i=x3(o),l=i.top,c=i.right,g=i.bottom,v=i.left;return l===0&&c===0&&g===0&&v===0?null:i}var k3=E3,N3=vE,O3=kl,L3=$r,C3=EE,M3=ia,F3=Ac,D3=Zc,P3=Uh,B3=dD,R3=$m,T3=Cu,j3=cr,I3=ph,z3=Vt,K3=Ef,A3=pD,H3=Gg,V3=Mu,q3=jD,U3=b3,Q3=Po,X3=bv,Z3=k3,$3=Yg,Y3={Editor:B3,EditorBlock:R3,EditorState:z3,CompositeDecorator:C3,Entity:T3,EntityInstance:I3,BlockMapBuilder:O3,CharacterMetadata:L3,ContentBlock:M3,ContentState:F3,RawDraftContentState:A3,SelectionState:V3,AtomicBlockUtils:N3,KeyBindingUtil:K3,Modifier:j3,RichUtils:H3,DefaultDraftBlockRenderMap:D3,DefaultDraftInlineStyle:P3,convertFromHTML:$3,convertFromRaw:U3,convertToRaw:q3,genKey:Q3,getDefaultKeyBinding:X3,getVisibleSelectionRect:Z3},Uv=Y3,J3=function(t,r,o,i,l,c,g,v){if(!t){var b;if(r===void 0)b=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var w=[o,i,l,c,g,v],L=0;b=new Error(r.replace(/%s/g,function(){return w[L++]})),b.name="Invariant Violation"}throw b.framesToPop=1,b}},wo=J3,Fn={},ga={};/**
|
|
52
52
|
* @license React
|
|
53
53
|
* react-dom-server-legacy.browser.production.min.js
|
|
54
54
|
*
|
|
@@ -56,13 +56,13 @@ Error generating stack: `+m.message+`
|
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the MIT license found in the
|
|
58
58
|
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var
|
|
59
|
+
*/var Qv;function W3(){if(Qv)return ga;Qv=1;var t=D;function r(p){for(var S="https://reactjs.org/docs/error-decoder.html?invariant="+p,O=1;O<arguments.length;O++)S+="&args[]="+encodeURIComponent(arguments[O]);return"Minified React error #"+p+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,l={},c={};function g(p){return o.call(c,p)?!0:o.call(l,p)?!1:i.test(p)?c[p]=!0:(l[p]=!0,!1)}function v(p,S,O,P,X,q,oe){this.acceptsBooleans=S===2||S===3||S===4,this.attributeName=P,this.attributeNamespace=X,this.mustUseProperty=O,this.propertyName=p,this.type=S,this.sanitizeURL=q,this.removeEmptyString=oe}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){b[p]=new v(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var S=p[0];b[S]=new v(S,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){b[p]=new v(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){b[p]=new v(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){b[p]=new v(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){b[p]=new v(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){b[p]=new v(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){b[p]=new v(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){b[p]=new v(p,5,!1,p.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function L(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var S=p.replace(w,L);b[S]=new v(S,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var S=p.replace(w,L);b[S]=new v(S,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var S=p.replace(w,L);b[S]=new v(S,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){b[p]=new v(p,1,!1,p.toLowerCase(),null,!1,!1)}),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){b[p]=new v(p,1,!1,p.toLowerCase(),null,!0,!0)});var R={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},M=["Webkit","ms","Moz","O"];Object.keys(R).forEach(function(p){M.forEach(function(S){S=S+p.charAt(0).toUpperCase()+p.substring(1),R[S]=R[p]})});var z=/["'&<>]/;function B(p){if(typeof p=="boolean"||typeof p=="number")return""+p;p=""+p;var S=z.exec(p);if(S){var O="",P,X=0;for(P=S.index;P<p.length;P++){switch(p.charCodeAt(P)){case 34:S=""";break;case 38:S="&";break;case 39:S="'";break;case 60:S="<";break;case 62:S=">";break;default:continue}X!==P&&(O+=p.substring(X,P)),X=P+1,O+=S}p=X!==P?O+p.substring(X,P):O}return p}var T=/([A-Z])/g,I=/^ms-/,G=Array.isArray;function Y(p,S){return{insertionMode:p,selectedValue:S}}function W(p,S,O){switch(S){case"select":return Y(1,O.value!=null?O.value:O.defaultValue);case"svg":return Y(2,null);case"math":return Y(3,null);case"foreignObject":return Y(1,null);case"table":return Y(4,null);case"thead":case"tbody":case"tfoot":return Y(5,null);case"colgroup":return Y(7,null);case"tr":return Y(6,null)}return 4<=p.insertionMode||p.insertionMode===0?Y(1,null):p}var J=new Map;function le(p,S,O){if(typeof O!="object")throw Error(r(62));S=!0;for(var P in O)if(o.call(O,P)){var X=O[P];if(X!=null&&typeof X!="boolean"&&X!==""){if(P.indexOf("--")===0){var q=B(P);X=B((""+X).trim())}else{q=P;var oe=J.get(q);oe!==void 0||(oe=B(q.replace(T,"-$1").toLowerCase().replace(I,"-ms-")),J.set(q,oe)),q=oe,X=typeof X=="number"?X===0||o.call(R,P)?""+X:X+"px":B((""+X).trim())}S?(S=!1,p.push(' style="',q,":",X)):p.push(";",q,":",X)}}S||p.push('"')}function Se(p,S,O,P){switch(O){case"style":le(p,S,P);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<O.length)||O[0]!=="o"&&O[0]!=="O"||O[1]!=="n"&&O[1]!=="N"){if(S=b.hasOwnProperty(O)?b[O]:null,S!==null){switch(typeof P){case"function":case"symbol":return;case"boolean":if(!S.acceptsBooleans)return}switch(O=S.attributeName,S.type){case 3:P&&p.push(" ",O,'=""');break;case 4:P===!0?p.push(" ",O,'=""'):P!==!1&&p.push(" ",O,'="',B(P),'"');break;case 5:isNaN(P)||p.push(" ",O,'="',B(P),'"');break;case 6:!isNaN(P)&&1<=P&&p.push(" ",O,'="',B(P),'"');break;default:S.sanitizeURL&&(P=""+P),p.push(" ",O,'="',B(P),'"')}}else if(g(O)){switch(typeof P){case"function":case"symbol":return;case"boolean":if(S=O.toLowerCase().slice(0,5),S!=="data-"&&S!=="aria-")return}p.push(" ",O,'="',B(P),'"')}}}function _e(p,S,O){if(S!=null){if(O!=null)throw Error(r(60));if(typeof S!="object"||!("__html"in S))throw Error(r(61));S=S.__html,S!=null&&p.push(""+S)}}function je(p){var S="";return t.Children.forEach(p,function(O){O!=null&&(S+=O)}),S}function ve(p,S,O,P){p.push(he(O));var X=O=null,q;for(q in S)if(o.call(S,q)){var oe=S[q];if(oe!=null)switch(q){case"children":O=oe;break;case"dangerouslySetInnerHTML":X=oe;break;default:Se(p,P,q,oe)}}return p.push(">"),_e(p,X,O),typeof O=="string"?(p.push(B(O)),null):O}var xe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,we=new Map;function he(p){var S=we.get(p);if(S===void 0){if(!xe.test(p))throw Error(r(65,p));S="<"+p,we.set(p,S)}return S}function ge(p,S,O,P,X){switch(S){case"select":p.push(he("select"));var q=null,oe=null;for(We in O)if(o.call(O,We)){var me=O[We];if(me!=null)switch(We){case"children":q=me;break;case"dangerouslySetInnerHTML":oe=me;break;case"defaultValue":case"value":break;default:Se(p,P,We,me)}}return p.push(">"),_e(p,oe,q),q;case"option":oe=X.selectedValue,p.push(he("option"));var be=me=null,Ee=null,We=null;for(q in O)if(o.call(O,q)){var St=O[q];if(St!=null)switch(q){case"children":me=St;break;case"selected":Ee=St;break;case"dangerouslySetInnerHTML":We=St;break;case"value":be=St;default:Se(p,P,q,St)}}if(oe!=null)if(O=be!==null?""+be:je(me),G(oe)){for(P=0;P<oe.length;P++)if(""+oe[P]===O){p.push(' selected=""');break}}else""+oe===O&&p.push(' selected=""');else Ee&&p.push(' selected=""');return p.push(">"),_e(p,We,me),me;case"textarea":p.push(he("textarea")),We=oe=q=null;for(me in O)if(o.call(O,me)&&(be=O[me],be!=null))switch(me){case"children":We=be;break;case"value":q=be;break;case"defaultValue":oe=be;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Se(p,P,me,be)}if(q===null&&oe!==null&&(q=oe),p.push(">"),We!=null){if(q!=null)throw Error(r(92));if(G(We)&&1<We.length)throw Error(r(93));q=""+We}return typeof q=="string"&&q[0]===`
|
|
60
60
|
`&&p.push(`
|
|
61
|
-
`),
|
|
61
|
+
`),q!==null&&p.push(B(""+q)),null;case"input":p.push(he("input")),be=We=me=q=null;for(oe in O)if(o.call(O,oe)&&(Ee=O[oe],Ee!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":be=Ee;break;case"defaultValue":me=Ee;break;case"checked":We=Ee;break;case"value":q=Ee;break;default:Se(p,P,oe,Ee)}return We!==null?Se(p,P,"checked",We):be!==null&&Se(p,P,"checked",be),q!==null?Se(p,P,"value",q):me!==null&&Se(p,P,"value",me),p.push("/>"),null;case"menuitem":p.push(he("menuitem"));for(var Ot in O)if(o.call(O,Ot)&&(q=O[Ot],q!=null))switch(Ot){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:Se(p,P,Ot,q)}return p.push(">"),null;case"title":p.push(he("title")),q=null;for(St in O)if(o.call(O,St)&&(oe=O[St],oe!=null))switch(St){case"children":q=oe;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:Se(p,P,St,oe)}return p.push(">"),q;case"listing":case"pre":p.push(he(S)),oe=q=null;for(be in O)if(o.call(O,be)&&(me=O[be],me!=null))switch(be){case"children":q=me;break;case"dangerouslySetInnerHTML":oe=me;break;default:Se(p,P,be,me)}if(p.push(">"),oe!=null){if(q!=null)throw Error(r(60));if(typeof oe!="object"||!("__html"in oe))throw Error(r(61));O=oe.__html,O!=null&&(typeof O=="string"&&0<O.length&&O[0]===`
|
|
62
62
|
`?p.push(`
|
|
63
|
-
`,O):p.push(""+O))}return typeof
|
|
63
|
+
`,O):p.push(""+O))}return typeof q=="string"&&q[0]===`
|
|
64
64
|
`&&p.push(`
|
|
65
|
-
`),U;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":p.push(he(S));for(var nn in O)if(i.call(O,nn)&&(U=O[nn],U!=null))switch(nn){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,S));default:Se(p,B,nn,U)}return p.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ve(p,O,S,B);case"html":return X.insertionMode===0&&p.push("<!DOCTYPE html>"),ve(p,O,S,B);default:if(S.indexOf("-")===-1&&typeof O.is!="string")return ve(p,O,S,B);p.push(he(S)),ie=U=null;for(Ee in O)if(i.call(O,Ee)&&(me=O[Ee],me!=null))switch(Ee){case"children":U=me;break;case"dangerouslySetInnerHTML":ie=me;break;case"style":le(p,B,me);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:g(Ee)&&typeof me!="function"&&typeof me!="symbol"&&p.push(" ",Ee,'="',F(me),'"')}return p.push(">"),_e(p,ie,U),U}}function De(p,S,O){if(p.push('<!--$?--><template id="'),O===null)throw Error(r(395));return p.push(O),p.push('"></template>')}function je(p,S,O,B){switch(O.insertionMode){case 0:case 1:return p.push('<div hidden id="'),p.push(S.segmentPrefix),S=B.toString(16),p.push(S),p.push('">');case 2:return p.push('<svg aria-hidden="true" style="display:none" id="'),p.push(S.segmentPrefix),S=B.toString(16),p.push(S),p.push('">');case 3:return p.push('<math aria-hidden="true" style="display:none" id="'),p.push(S.segmentPrefix),S=B.toString(16),p.push(S),p.push('">');case 4:return p.push('<table hidden id="'),p.push(S.segmentPrefix),S=B.toString(16),p.push(S),p.push('">');case 5:return p.push('<table hidden><tbody id="'),p.push(S.segmentPrefix),S=B.toString(16),p.push(S),p.push('">');case 6:return p.push('<table hidden><tr id="'),p.push(S.segmentPrefix),S=B.toString(16),p.push(S),p.push('">');case 7:return p.push('<table hidden><colgroup id="'),p.push(S.segmentPrefix),S=B.toString(16),p.push(S),p.push('">');default:throw Error(r(397))}}function Ce(p,S){switch(S.insertionMode){case 0:case 1:return p.push("</div>");case 2:return p.push("</svg>");case 3:return p.push("</math>");case 4:return p.push("</table>");case 5:return p.push("</tbody></table>");case 6:return p.push("</tr></table>");case 7:return p.push("</colgroup></table>");default:throw Error(r(397))}}var He=/[<\u2028\u2029]/g;function ue(p){return JSON.stringify(p).replace(He,function(S){switch(S){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function fe(p,S){return S=S===void 0?"":S,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:S+"P:",segmentPrefix:S+"S:",boundaryPrefix:S+"B:",idPrefix:S,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:p}}function ae(p,S,O,B){return O.generateStaticMarkup?(p.push(F(S)),!1):(S===""?p=B:(B&&p.push("<!-- -->"),p.push(F(S)),p=!0),p)}var Me=Object.assign,Je=Symbol.for("react.element"),Et=Symbol.for("react.portal"),Ct=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),Te=Symbol.for("react.profiler"),dt=Symbol.for("react.provider"),Rt=Symbol.for("react.context"),It=Symbol.for("react.forward_ref"),Ft=Symbol.for("react.suspense"),kt=Symbol.for("react.suspense_list"),en=Symbol.for("react.memo"),Xe=Symbol.for("react.lazy"),st=Symbol.for("react.scope"),ut=Symbol.for("react.debug_trace_mode"),Pt=Symbol.for("react.legacy_hidden"),hn=Symbol.for("react.default_value"),Bt=Symbol.iterator;function Nt(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case Ct:return"Fragment";case Et:return"Portal";case Te:return"Profiler";case qe:return"StrictMode";case Ft:return"Suspense";case kt:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case Rt:return(p.displayName||"Context")+".Consumer";case dt:return(p._context.displayName||"Context")+".Provider";case It:var S=p.render;return p=p.displayName,p||(p=S.displayName||S.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case en:return S=p.displayName||null,S!==null?S:Nt(p.type)||"Memo";case Xe:S=p._payload,p=p._init;try{return Nt(p(S))}catch{}}return null}var rt={};function pt(p,S){if(p=p.contextTypes,!p)return rt;var O={},B;for(B in p)O[B]=S[B];return O}var Kt=null;function Fe(p,S){if(p!==S){p.context._currentValue2=p.parentValue,p=p.parent;var O=S.parent;if(p===null){if(O!==null)throw Error(r(401))}else{if(O===null)throw Error(r(401));Fe(p,O)}S.context._currentValue2=S.value}}function nt(p){p.context._currentValue2=p.parentValue,p=p.parent,p!==null&&nt(p)}function Ye(p){var S=p.parent;S!==null&&Ye(S),p.context._currentValue2=p.value}function ht(p,S){if(p.context._currentValue2=p.parentValue,p=p.parent,p===null)throw Error(r(402));p.depth===S.depth?Fe(p,S):ht(p,S)}function Ge(p,S){var O=S.parent;if(O===null)throw Error(r(402));p.depth===O.depth?Fe(p,O):Ge(p,O),S.context._currentValue2=S.value}function Sn(p){var S=Kt;S!==p&&(S===null?Ye(p):p===null?nt(S):S.depth===p.depth?Fe(S,p):S.depth>p.depth?ht(S,p):Ge(S,p),Kt=p)}var ct={isMounted:function(){return!1},enqueueSetState:function(p,S){p=p._reactInternals,p.queue!==null&&p.queue.push(S)},enqueueReplaceState:function(p,S){p=p._reactInternals,p.replace=!0,p.queue=[S]},enqueueForceUpdate:function(){}};function xn(p,S,O,B){var X=p.state!==void 0?p.state:null;p.updater=ct,p.props=O,p.state=X;var U={queue:[],replace:!1};p._reactInternals=U;var ie=S.contextType;if(p.context=typeof ie=="object"&&ie!==null?ie._currentValue2:B,ie=S.getDerivedStateFromProps,typeof ie=="function"&&(ie=ie(O,X),X=ie==null?X:Me({},X,ie),p.state=X),typeof S.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function"))if(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&ct.enqueueReplaceState(p,p.state,null),U.queue!==null&&0<U.queue.length)if(S=U.queue,ie=U.replace,U.queue=null,U.replace=!1,ie&&S.length===1)p.state=S[0];else{for(U=ie?S[0]:p.state,X=!0,ie=ie?1:0;ie<S.length;ie++){var me=S[ie];me=typeof me=="function"?me.call(p,U,O,B):me,me!=null&&(X?(X=!1,U=Me({},U,me)):Me(U,me))}p.state=U}else U.queue=null}var tn={id:1,overflow:""};function pr(p,S,O){var B=p.id;p=p.overflow;var X=32-Vn(B)-1;B&=~(1<<X),O+=1;var U=32-Vn(S)+X;if(30<U){var ie=X-X%5;return U=(B&(1<<ie)-1).toString(32),B>>=ie,X-=ie,{id:1<<32-Vn(S)+X|O<<X|B,overflow:U+p}}return{id:1<<U|O<<X|B,overflow:p}}var Vn=Math.clz32?Math.clz32:_i,ro=Math.log,jt=Math.LN2;function _i(p){return p>>>=0,p===0?32:31-(ro(p)/jt|0)|0}function Jt(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var wi=typeof Object.is=="function"?Object.is:Jt,fn=null,qt=null,zn=null,it=null,Qn=!1,Xn=!1,er=0,En=null,Mr=0;function Tt(){if(fn===null)throw Error(r(321));return fn}function io(){if(0<Mr)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function tr(){return it===null?zn===null?(Qn=!1,zn=it=io()):(Qn=!0,it=zn):it.next===null?(Qn=!1,it=it.next=io()):(Qn=!0,it=it.next),it}function Si(){qt=fn=null,Xn=!1,zn=null,Mr=0,it=En=null}function Lr(p,S){return typeof S=="function"?S(p):S}function oo(p,S,O){if(fn=Tt(),it=tr(),Qn){var B=it.queue;if(S=B.dispatch,En!==null&&(O=En.get(B),O!==void 0)){En.delete(B),B=it.memoizedState;do B=p(B,O.action),O=O.next;while(O!==null);return it.memoizedState=B,[B,S]}return[it.memoizedState,S]}return p=p===Lr?typeof S=="function"?S():S:O!==void 0?O(S):S,it.memoizedState=p,p=it.queue={last:null,dispatch:null},p=p.dispatch=ei.bind(null,fn,p),[it.memoizedState,p]}function Gr(p,S){if(fn=Tt(),it=tr(),S=S===void 0?null:S,it!==null){var O=it.memoizedState;if(O!==null&&S!==null){var B=O[1];e:if(B===null)B=!1;else{for(var X=0;X<B.length&&X<S.length;X++)if(!wi(S[X],B[X])){B=!1;break e}B=!0}if(B)return O[0]}}return p=p(),it.memoizedState=[p,S],p}function ei(p,S,O){if(25<=Mr)throw Error(r(301));if(p===fn)if(Xn=!0,p={action:O,next:null},En===null&&(En=new Map),O=En.get(S),O===void 0)En.set(S,p);else{for(S=O;S.next!==null;)S=S.next;S.next=p}}function ti(){throw Error(r(394))}function hr(){}var mr={readContext:function(p){return p._currentValue2},useContext:function(p){return Tt(),p._currentValue2},useMemo:Gr,useReducer:oo,useRef:function(p){fn=Tt(),it=tr();var S=it.memoizedState;return S===null?(p={current:p},it.memoizedState=p):S},useState:function(p){return oo(Lr,p)},useInsertionEffect:hr,useLayoutEffect:function(){},useCallback:function(p,S){return Gr(function(){return p},S)},useImperativeHandle:hr,useEffect:hr,useDebugValue:hr,useDeferredValue:function(p){return Tt(),p},useTransition:function(){return Tt(),[!1,ti]},useId:function(){var p=qt.treeContext,S=p.overflow;p=p.id,p=(p&~(1<<32-Vn(p)-1)).toString(32)+S;var O=ji;if(O===null)throw Error(r(404));return S=er++,p=":"+O.idPrefix+"R"+p,0<S&&(p+="H"+S.toString(32)),p+":"},useMutableSource:function(p,S){return Tt(),S(p._source)},useSyncExternalStore:function(p,S,O){if(O===void 0)throw Error(r(407));return O()}},ji=null,ao=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function nr(p){return console.error(p),null}function gr(){}function mn(p,S,O,B,X,U,ie,me,be){var Ee=[],We=new Set;return S={destination:null,responseState:S,progressiveChunkSize:B===void 0?12800:B,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:We,pingedTasks:Ee,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:X===void 0?nr:X,onAllReady:U===void 0?gr:U,onShellReady:ie===void 0?gr:ie,onShellError:me===void 0?gr:me,onFatalError:be===void 0?gr:be},O=Cr(S,0,null,O,!1,!1),O.parentFlushed=!0,p=at(S,p,null,O,We,rt,null,tn),Ee.push(p),S}function at(p,S,O,B,X,U,ie,me){p.allPendingTasks++,O===null?p.pendingRootTasks++:O.pendingTasks++;var be={node:S,ping:function(){var Ee=p.pingedTasks;Ee.push(be),Ee.length===1&&Bn(p)},blockedBoundary:O,blockedSegment:B,abortSet:X,legacyContext:U,context:ie,treeContext:me};return X.add(be),be}function Cr(p,S,O,B,X,U){return{status:0,id:-1,index:S,parentFlushed:!1,chunks:[],children:[],formatContext:B,boundary:O,lastPushedText:X,textEmbedded:U}}function Br(p,S){if(p=p.onError(S),p!=null&&typeof p!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof p+'" instead');return p}function tt(p,S){var O=p.onShellError;O(S),O=p.onFatalError,O(S),p.destination!==null?(p.status=2,p.destination.destroy(S)):(p.status=1,p.fatalError=S)}function Fr(p,S,O,B,X){for(fn={},qt=S,er=0,p=O(B,X);Xn;)Xn=!1,er=0,Mr+=1,it=null,p=O(B,X);return Si(),p}function Pr(p,S,O,B){var X=O.render(),U=B.childContextTypes;if(U!=null){var ie=S.legacyContext;if(typeof O.getChildContext!="function")B=ie;else{O=O.getChildContext();for(var me in O)if(!(me in U))throw Error(r(108,Nt(B)||"Unknown",me));B=Me({},ie,O)}S.legacyContext=B,zt(p,S,X),S.legacyContext=ie}else zt(p,S,X)}function ni(p,S){if(p&&p.defaultProps){S=Me({},S),p=p.defaultProps;for(var O in p)S[O]===void 0&&(S[O]=p[O]);return S}return S}function vt(p,S,O,B,X){if(typeof O=="function")if(O.prototype&&O.prototype.isReactComponent){X=pt(O,S.legacyContext);var U=O.contextType;U=new O(B,typeof U=="object"&&U!==null?U._currentValue2:X),xn(U,O,B,X),Pr(p,S,U,O)}else{U=pt(O,S.legacyContext),X=Fr(p,S,O,B,U);var ie=er!==0;if(typeof X=="object"&&X!==null&&typeof X.render=="function"&&X.$$typeof===void 0)xn(X,O,B,U),Pr(p,S,X,O);else if(ie){B=S.treeContext,S.treeContext=pr(B,1,0);try{zt(p,S,X)}finally{S.treeContext=B}}else zt(p,S,X)}else if(typeof O=="string"){switch(X=S.blockedSegment,U=ge(X.chunks,O,B,p.responseState,X.formatContext),X.lastPushedText=!1,ie=X.formatContext,X.formatContext=W(ie,O,B),ii(p,S,U),X.formatContext=ie,O){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:X.chunks.push("</",O,">")}X.lastPushedText=!1}else{switch(O){case Pt:case ut:case qe:case Te:case Ct:zt(p,S,B.children);return;case kt:zt(p,S,B.children);return;case st:throw Error(r(343));case Ft:e:{O=S.blockedBoundary,X=S.blockedSegment,U=B.fallback,B=B.children,ie=new Set;var me={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ie,errorDigest:null},be=Cr(p,X.chunks.length,me,X.formatContext,!1,!1);X.children.push(be),X.lastPushedText=!1;var Ee=Cr(p,0,null,X.formatContext,!1,!1);Ee.parentFlushed=!0,S.blockedBoundary=me,S.blockedSegment=Ee;try{if(ii(p,S,B),p.responseState.generateStaticMarkup||Ee.lastPushedText&&Ee.textEmbedded&&Ee.chunks.push("<!-- -->"),Ee.status=1,vr(me,Ee),me.pendingTasks===0)break e}catch(We){Ee.status=4,me.forceClientRender=!0,me.errorDigest=Br(p,We)}finally{S.blockedBoundary=O,S.blockedSegment=X}S=at(p,U,O,be,ie,S.legacyContext,S.context,S.treeContext),p.pingedTasks.push(S)}return}if(typeof O=="object"&&O!==null)switch(O.$$typeof){case It:if(B=Fr(p,S,O.render,B,X),er!==0){O=S.treeContext,S.treeContext=pr(O,1,0);try{zt(p,S,B)}finally{S.treeContext=O}}else zt(p,S,B);return;case en:O=O.type,B=ni(O,B),vt(p,S,O,B,X);return;case dt:if(X=B.children,O=O._context,B=B.value,U=O._currentValue2,O._currentValue2=B,ie=Kt,Kt=B={parent:ie,depth:ie===null?0:ie.depth+1,context:O,parentValue:U,value:B},S.context=B,zt(p,S,X),p=Kt,p===null)throw Error(r(403));B=p.parentValue,p.context._currentValue2=B===hn?p.context._defaultValue:B,p=Kt=p.parent,S.context=p;return;case Rt:B=B.children,B=B(O._currentValue2),zt(p,S,B);return;case Xe:X=O._init,O=X(O._payload),B=ni(O,B),vt(p,S,O,B,void 0);return}throw Error(r(130,O==null?O:typeof O,""))}}function zt(p,S,O){if(S.node=O,typeof O=="object"&&O!==null){switch(O.$$typeof){case Je:vt(p,S,O.type,O.props,O.ref);return;case Et:throw Error(r(257));case Xe:var B=O._init;O=B(O._payload),zt(p,S,O);return}if(G(O)){ri(p,S,O);return}if(O===null||typeof O!="object"?B=null:(B=Bt&&O[Bt]||O["@@iterator"],B=typeof B=="function"?B:null),B&&(B=B.call(O))){if(O=B.next(),!O.done){var X=[];do X.push(O.value),O=B.next();while(!O.done);ri(p,S,X)}return}throw p=Object.prototype.toString.call(O),Error(r(31,p==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":p))}typeof O=="string"?(B=S.blockedSegment,B.lastPushedText=ae(S.blockedSegment.chunks,O,p.responseState,B.lastPushedText)):typeof O=="number"&&(B=S.blockedSegment,B.lastPushedText=ae(S.blockedSegment.chunks,""+O,p.responseState,B.lastPushedText))}function ri(p,S,O){for(var B=O.length,X=0;X<B;X++){var U=S.treeContext;S.treeContext=pr(U,B,X);try{ii(p,S,O[X])}finally{S.treeContext=U}}}function ii(p,S,O){var B=S.blockedSegment.formatContext,X=S.legacyContext,U=S.context;try{return zt(p,S,O)}catch(be){if(Si(),typeof be=="object"&&be!==null&&typeof be.then=="function"){O=be;var ie=S.blockedSegment,me=Cr(p,ie.chunks.length,null,ie.formatContext,ie.lastPushedText,!0);ie.children.push(me),ie.lastPushedText=!1,p=at(p,S.node,S.blockedBoundary,me,S.abortSet,S.legacyContext,S.context,S.treeContext).ping,O.then(p,p),S.blockedSegment.formatContext=B,S.legacyContext=X,S.context=U,Sn(U)}else throw S.blockedSegment.formatContext=B,S.legacyContext=X,S.context=U,Sn(U),be}}function Kr(p){var S=p.blockedBoundary;p=p.blockedSegment,p.status=3,Wt(this,S,p)}function Ti(p,S,O){var B=p.blockedBoundary;p.blockedSegment.status=3,B===null?(S.allPendingTasks--,S.status!==2&&(S.status=2,S.destination!==null&&S.destination.push(null))):(B.pendingTasks--,B.forceClientRender||(B.forceClientRender=!0,p=O===void 0?Error(r(432)):O,B.errorDigest=S.onError(p),B.parentFlushed&&S.clientRenderedBoundaries.push(B)),B.fallbackAbortableTasks.forEach(function(X){return Ti(X,S,O)}),B.fallbackAbortableTasks.clear(),S.allPendingTasks--,S.allPendingTasks===0&&(B=S.onAllReady,B()))}function vr(p,S){if(S.chunks.length===0&&S.children.length===1&&S.children[0].boundary===null){var O=S.children[0];O.id=S.id,O.parentFlushed=!0,O.status===1&&vr(p,O)}else p.completedSegments.push(S)}function Wt(p,S,O){if(S===null){if(O.parentFlushed){if(p.completedRootSegment!==null)throw Error(r(389));p.completedRootSegment=O}p.pendingRootTasks--,p.pendingRootTasks===0&&(p.onShellError=gr,S=p.onShellReady,S())}else S.pendingTasks--,S.forceClientRender||(S.pendingTasks===0?(O.parentFlushed&&O.status===1&&vr(S,O),S.parentFlushed&&p.completedBoundaries.push(S),S.fallbackAbortableTasks.forEach(Kr,p),S.fallbackAbortableTasks.clear()):O.parentFlushed&&O.status===1&&(vr(S,O),S.completedSegments.length===1&&S.parentFlushed&&p.partialBoundaries.push(S)));p.allPendingTasks--,p.allPendingTasks===0&&(p=p.onAllReady,p())}function Bn(p){if(p.status!==2){var S=Kt,O=ao.current;ao.current=mr;var B=ji;ji=p.responseState;try{var X=p.pingedTasks,U;for(U=0;U<X.length;U++){var ie=X[U],me=p,be=ie.blockedSegment;if(be.status===0){Sn(ie.context);try{zt(me,ie,ie.node),me.responseState.generateStaticMarkup||be.lastPushedText&&be.textEmbedded&&be.chunks.push("<!-- -->"),ie.abortSet.delete(ie),be.status=1,Wt(me,ie.blockedBoundary,be)}catch(sn){if(Si(),typeof sn=="object"&&sn!==null&&typeof sn.then=="function"){var Ee=ie.ping;sn.then(Ee,Ee)}else{ie.abortSet.delete(ie),be.status=4;var We=ie.blockedBoundary,St=sn,Ot=Br(me,St);if(We===null?tt(me,St):(We.pendingTasks--,We.forceClientRender||(We.forceClientRender=!0,We.errorDigest=Ot,We.parentFlushed&&me.clientRenderedBoundaries.push(We))),me.allPendingTasks--,me.allPendingTasks===0){var nn=me.onAllReady;nn()}}}finally{}}}X.splice(0,U),p.destination!==null&&Ir(p,p.destination)}catch(sn){Br(p,sn),tt(p,sn)}finally{ji=B,ao.current=O,O===mr&&Sn(S)}}}function Rr(p,S,O){switch(O.parentFlushed=!0,O.status){case 0:var B=O.id=p.nextSegmentId++;return O.lastPushedText=!1,O.textEmbedded=!1,p=p.responseState,S.push('<template id="'),S.push(p.placeholderPrefix),p=B.toString(16),S.push(p),S.push('"></template>');case 1:O.status=2;var X=!0;B=O.chunks;var U=0;O=O.children;for(var ie=0;ie<O.length;ie++){for(X=O[ie];U<X.index;U++)S.push(B[U]);X=un(p,S,X)}for(;U<B.length-1;U++)S.push(B[U]);return U<B.length&&(X=S.push(B[U])),X;default:throw Error(r(390))}}function un(p,S,O){var B=O.boundary;if(B===null)return Rr(p,S,O);if(B.parentFlushed=!0,B.forceClientRender)return p.responseState.generateStaticMarkup||(B=B.errorDigest,S.push("<!--$!-->"),S.push("<template"),B&&(S.push(' data-dgst="'),B=F(B),S.push(B),S.push('"')),S.push("></template>")),Rr(p,S,O),p=p.responseState.generateStaticMarkup?!0:S.push("<!--/$-->"),p;if(0<B.pendingTasks){B.rootSegmentID=p.nextSegmentId++,0<B.completedSegments.length&&p.partialBoundaries.push(B);var X=p.responseState,U=X.nextSuspenseID++;return X=X.boundaryPrefix+U.toString(16),B=B.id=X,De(S,p.responseState,B),Rr(p,S,O),S.push("<!--/$-->")}if(B.byteSize>p.progressiveChunkSize)return B.rootSegmentID=p.nextSegmentId++,p.completedBoundaries.push(B),De(S,p.responseState,B.id),Rr(p,S,O),S.push("<!--/$-->");if(p.responseState.generateStaticMarkup||S.push("<!--$-->"),O=B.completedSegments,O.length!==1)throw Error(r(391));return un(p,S,O[0]),p=p.responseState.generateStaticMarkup?!0:S.push("<!--/$-->"),p}function xi(p,S,O){return je(S,p.responseState,O.formatContext,O.id),un(p,S,O),Ce(S,O.formatContext)}function lo(p,S,O){for(var B=O.completedSegments,X=0;X<B.length;X++)uo(p,S,O,B[X]);if(B.length=0,p=p.responseState,B=O.id,O=O.rootSegmentID,S.push(p.startInlineScript),p.sentCompleteBoundaryFunction?S.push('$RC("'):(p.sentCompleteBoundaryFunction=!0,S.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),B===null)throw Error(r(395));return O=O.toString(16),S.push(B),S.push('","'),S.push(p.segmentPrefix),S.push(O),S.push('")<\/script>')}function uo(p,S,O,B){if(B.status===2)return!0;var X=B.id;if(X===-1){if((B.id=O.rootSegmentID)===-1)throw Error(r(392));return xi(p,S,B)}return xi(p,S,B),p=p.responseState,S.push(p.startInlineScript),p.sentCompleteSegmentFunction?S.push('$RS("'):(p.sentCompleteSegmentFunction=!0,S.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),S.push(p.segmentPrefix),X=X.toString(16),S.push(X),S.push('","'),S.push(p.placeholderPrefix),S.push(X),S.push('")<\/script>')}function Ir(p,S){try{var O=p.completedRootSegment;if(O!==null&&p.pendingRootTasks===0){un(p,S,O),p.completedRootSegment=null;var B=p.responseState.bootstrapChunks;for(O=0;O<B.length-1;O++)S.push(B[O]);O<B.length&&S.push(B[O])}var X=p.clientRenderedBoundaries,U;for(U=0;U<X.length;U++){var ie=X[U];B=S;var me=p.responseState,be=ie.id,Ee=ie.errorDigest,We=ie.errorMessage,St=ie.errorComponentStack;if(B.push(me.startInlineScript),me.sentClientRenderFunction?B.push('$RX("'):(me.sentClientRenderFunction=!0,B.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),be===null)throw Error(r(395));if(B.push(be),B.push('"'),Ee||We||St){B.push(",");var Ot=ue(Ee||"");B.push(Ot)}if(We||St){B.push(",");var nn=ue(We||"");B.push(nn)}if(St){B.push(",");var sn=ue(St);B.push(sn)}if(!B.push(")<\/script>")){p.destination=null,U++,X.splice(0,U);return}}X.splice(0,U);var br=p.completedBoundaries;for(U=0;U<br.length;U++)if(!lo(p,S,br[U])){p.destination=null,U++,br.splice(0,U);return}br.splice(0,U);var gn=p.partialBoundaries;for(U=0;U<gn.length;U++){var Hn=gn[U];e:{X=p,ie=S;var vn=Hn.completedSegments;for(me=0;me<vn.length;me++)if(!uo(X,ie,Hn,vn[me])){me++,vn.splice(0,me);var rr=!1;break e}vn.splice(0,me),rr=!0}if(!rr){p.destination=null,U++,gn.splice(0,U);return}}gn.splice(0,U);var Fn=p.completedBoundaries;for(U=0;U<Fn.length;U++)if(!lo(p,S,Fn[U])){p.destination=null,U++,Fn.splice(0,U);return}Fn.splice(0,U)}finally{p.allPendingTasks===0&&p.pingedTasks.length===0&&p.clientRenderedBoundaries.length===0&&p.completedBoundaries.length===0&&S.push(null)}}function yr(p,S){try{var O=p.abortableTasks;O.forEach(function(B){return Ti(B,p,S)}),O.clear(),p.destination!==null&&Ir(p,p.destination)}catch(B){Br(p,B),tt(p,B)}}function jr(){}function Tr(p,S,O,B){var X=!1,U=null,ie="",me={push:function(Ee){return Ee!==null&&(ie+=Ee),!0},destroy:function(Ee){X=!0,U=Ee}},be=!1;if(p=mn(p,fe(O,S?S.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,jr,void 0,function(){be=!0},void 0,void 0),Bn(p),yr(p,B),p.status===1)p.status=2,me.destroy(p.fatalError);else if(p.status!==2&&p.destination===null){p.destination=me;try{Ir(p,me)}catch(Ee){Br(p,Ee),tt(p,Ee)}}if(X)throw U;if(!be)throw Error(r(426));return ie}return ha.renderToNodeStream=function(){throw Error(r(207))},ha.renderToStaticMarkup=function(p,S){return Tr(p,S,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ha.renderToStaticNodeStream=function(){throw Error(r(208))},ha.renderToString=function(p,S){return Tr(p,S,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ha.version="18.2.0",ha}var ns={};/**
|
|
65
|
+
`),q;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":p.push(he(S));for(var nn in O)if(o.call(O,nn)&&(q=O[nn],q!=null))switch(nn){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,S));default:Se(p,P,nn,q)}return p.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ve(p,O,S,P);case"html":return X.insertionMode===0&&p.push("<!DOCTYPE html>"),ve(p,O,S,P);default:if(S.indexOf("-")===-1&&typeof O.is!="string")return ve(p,O,S,P);p.push(he(S)),oe=q=null;for(Ee in O)if(o.call(O,Ee)&&(me=O[Ee],me!=null))switch(Ee){case"children":q=me;break;case"dangerouslySetInnerHTML":oe=me;break;case"style":le(p,P,me);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:g(Ee)&&typeof me!="function"&&typeof me!="symbol"&&p.push(" ",Ee,'="',B(me),'"')}return p.push(">"),_e(p,oe,q),q}}function Le(p,S,O){if(p.push('<!--$?--><template id="'),O===null)throw Error(r(395));return p.push(O),p.push('"></template>')}function Ie(p,S,O,P){switch(O.insertionMode){case 0:case 1:return p.push('<div hidden id="'),p.push(S.segmentPrefix),S=P.toString(16),p.push(S),p.push('">');case 2:return p.push('<svg aria-hidden="true" style="display:none" id="'),p.push(S.segmentPrefix),S=P.toString(16),p.push(S),p.push('">');case 3:return p.push('<math aria-hidden="true" style="display:none" id="'),p.push(S.segmentPrefix),S=P.toString(16),p.push(S),p.push('">');case 4:return p.push('<table hidden id="'),p.push(S.segmentPrefix),S=P.toString(16),p.push(S),p.push('">');case 5:return p.push('<table hidden><tbody id="'),p.push(S.segmentPrefix),S=P.toString(16),p.push(S),p.push('">');case 6:return p.push('<table hidden><tr id="'),p.push(S.segmentPrefix),S=P.toString(16),p.push(S),p.push('">');case 7:return p.push('<table hidden><colgroup id="'),p.push(S.segmentPrefix),S=P.toString(16),p.push(S),p.push('">');default:throw Error(r(397))}}function Fe(p,S){switch(S.insertionMode){case 0:case 1:return p.push("</div>");case 2:return p.push("</svg>");case 3:return p.push("</math>");case 4:return p.push("</table>");case 5:return p.push("</tbody></table>");case 6:return p.push("</tr></table>");case 7:return p.push("</colgroup></table>");default:throw Error(r(397))}}var Ae=/[<\u2028\u2029]/g;function ue(p){return JSON.stringify(p).replace(Ae,function(S){switch(S){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function fe(p,S){return S=S===void 0?"":S,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:S+"P:",segmentPrefix:S+"S:",boundaryPrefix:S+"B:",idPrefix:S,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:p}}function ae(p,S,O,P){return O.generateStaticMarkup?(p.push(B(S)),!1):(S===""?p=P:(P&&p.push("<!-- -->"),p.push(B(S)),p=!0),p)}var Ce=Object.assign,Je=Symbol.for("react.element"),Et=Symbol.for("react.portal"),Ft=Symbol.for("react.fragment"),Ve=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),dt=Symbol.for("react.provider"),Tt=Symbol.for("react.context"),jt=Symbol.for("react.forward_ref"),Pt=Symbol.for("react.suspense"),kt=Symbol.for("react.suspense_list"),en=Symbol.for("react.memo"),Xe=Symbol.for("react.lazy"),st=Symbol.for("react.scope"),ut=Symbol.for("react.debug_trace_mode"),Bt=Symbol.for("react.legacy_hidden"),mn=Symbol.for("react.default_value"),Dt=Symbol.iterator;function Nt(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case Ft:return"Fragment";case Et:return"Portal";case ze:return"Profiler";case Ve:return"StrictMode";case Pt:return"Suspense";case kt:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case Tt:return(p.displayName||"Context")+".Consumer";case dt:return(p._context.displayName||"Context")+".Provider";case jt:var S=p.render;return p=p.displayName,p||(p=S.displayName||S.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case en:return S=p.displayName||null,S!==null?S:Nt(p.type)||"Memo";case Xe:S=p._payload,p=p._init;try{return Nt(p(S))}catch{}}return null}var rt={};function pt(p,S){if(p=p.contextTypes,!p)return rt;var O={},P;for(P in p)O[P]=S[P];return O}var Rt=null;function Pe(p,S){if(p!==S){p.context._currentValue2=p.parentValue,p=p.parent;var O=S.parent;if(p===null){if(O!==null)throw Error(r(401))}else{if(O===null)throw Error(r(401));Pe(p,O)}S.context._currentValue2=S.value}}function nt(p){p.context._currentValue2=p.parentValue,p=p.parent,p!==null&&nt(p)}function Ye(p){var S=p.parent;S!==null&&Ye(S),p.context._currentValue2=p.value}function ht(p,S){if(p.context._currentValue2=p.parentValue,p=p.parent,p===null)throw Error(r(402));p.depth===S.depth?Pe(p,S):ht(p,S)}function Ge(p,S){var O=S.parent;if(O===null)throw Error(r(402));p.depth===O.depth?Pe(p,O):Ge(p,O),S.context._currentValue2=S.value}function xn(p){var S=Rt;S!==p&&(S===null?Ye(p):p===null?nt(S):S.depth===p.depth?Pe(S,p):S.depth>p.depth?ht(S,p):Ge(S,p),Rt=p)}var ct={isMounted:function(){return!1},enqueueSetState:function(p,S){p=p._reactInternals,p.queue!==null&&p.queue.push(S)},enqueueReplaceState:function(p,S){p=p._reactInternals,p.replace=!0,p.queue=[S]},enqueueForceUpdate:function(){}};function En(p,S,O,P){var X=p.state!==void 0?p.state:null;p.updater=ct,p.props=O,p.state=X;var q={queue:[],replace:!1};p._reactInternals=q;var oe=S.contextType;if(p.context=typeof oe=="object"&&oe!==null?oe._currentValue2:P,oe=S.getDerivedStateFromProps,typeof oe=="function"&&(oe=oe(O,X),X=oe==null?X:Ce({},X,oe),p.state=X),typeof S.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function"))if(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&ct.enqueueReplaceState(p,p.state,null),q.queue!==null&&0<q.queue.length)if(S=q.queue,oe=q.replace,q.queue=null,q.replace=!1,oe&&S.length===1)p.state=S[0];else{for(q=oe?S[0]:p.state,X=!0,oe=oe?1:0;oe<S.length;oe++){var me=S[oe];me=typeof me=="function"?me.call(p,q,O,P):me,me!=null&&(X?(X=!1,q=Ce({},q,me)):Ce(q,me))}p.state=q}else q.queue=null}var tn={id:1,overflow:""};function hr(p,S,O){var P=p.id;p=p.overflow;var X=32-Qn(P)-1;P&=~(1<<X),O+=1;var q=32-Qn(S)+X;if(30<q){var oe=X-X%5;return q=(P&(1<<oe)-1).toString(32),P>>=oe,X-=oe,{id:1<<32-Qn(S)+X|O<<X|P,overflow:q+p}}return{id:1<<q|O<<X|P,overflow:p}}var Qn=Math.clz32?Math.clz32:So,ai=Math.log,It=Math.LN2;function So(p){return p>>>=0,p===0?32:31-(ai(p)/It|0)|0}function Jt(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var xo=typeof Object.is=="function"?Object.is:Jt,fn=null,qt=null,Kn=null,ot=null,Xn=!1,Zn=!1,tr=0,kn=null,Cr=0;function zt(){if(fn===null)throw Error(r(321));return fn}function li(){if(0<Cr)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function nr(){return ot===null?Kn===null?(Xn=!1,Kn=ot=li()):(Xn=!0,ot=Kn):ot.next===null?(Xn=!1,ot=ot.next=li()):(Xn=!0,ot=ot.next),ot}function Eo(){qt=fn=null,Zn=!1,Kn=null,Cr=0,ot=kn=null}function Mr(p,S){return typeof S=="function"?S(p):S}function ui(p,S,O){if(fn=zt(),ot=nr(),Xn){var P=ot.queue;if(S=P.dispatch,kn!==null&&(O=kn.get(P),O!==void 0)){kn.delete(P),P=ot.memoizedState;do P=p(P,O.action),O=O.next;while(O!==null);return ot.memoizedState=P,[P,S]}return[ot.memoizedState,S]}return p=p===Mr?typeof S=="function"?S():S:O!==void 0?O(S):S,ot.memoizedState=p,p=ot.queue={last:null,dispatch:null},p=p.dispatch=to.bind(null,fn,p),[ot.memoizedState,p]}function eo(p,S){if(fn=zt(),ot=nr(),S=S===void 0?null:S,ot!==null){var O=ot.memoizedState;if(O!==null&&S!==null){var P=O[1];e:if(P===null)P=!1;else{for(var X=0;X<P.length&&X<S.length;X++)if(!xo(S[X],P[X])){P=!1;break e}P=!0}if(P)return O[0]}}return p=p(),ot.memoizedState=[p,S],p}function to(p,S,O){if(25<=Cr)throw Error(r(301));if(p===fn)if(Zn=!0,p={action:O,next:null},kn===null&&(kn=new Map),O=kn.get(S),O===void 0)kn.set(S,p);else{for(S=O;S.next!==null;)S=S.next;S.next=p}}function no(){throw Error(r(394))}function mr(){}var gr={readContext:function(p){return p._currentValue2},useContext:function(p){return zt(),p._currentValue2},useMemo:eo,useReducer:ui,useRef:function(p){fn=zt(),ot=nr();var S=ot.memoizedState;return S===null?(p={current:p},ot.memoizedState=p):S},useState:function(p){return ui(Mr,p)},useInsertionEffect:mr,useLayoutEffect:function(){},useCallback:function(p,S){return eo(function(){return p},S)},useImperativeHandle:mr,useEffect:mr,useDebugValue:mr,useDeferredValue:function(p){return zt(),p},useTransition:function(){return zt(),[!1,no]},useId:function(){var p=qt.treeContext,S=p.overflow;p=p.id,p=(p&~(1<<32-Qn(p)-1)).toString(32)+S;var O=Ko;if(O===null)throw Error(r(404));return S=tr++,p=":"+O.idPrefix+"R"+p,0<S&&(p+="H"+S.toString(32)),p+":"},useMutableSource:function(p,S){return zt(),S(p._source)},useSyncExternalStore:function(p,S,O){if(O===void 0)throw Error(r(407));return O()}},Ko=null,si=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function rr(p){return console.error(p),null}function vr(){}function gn(p,S,O,P,X,q,oe,me,be){var Ee=[],We=new Set;return S={destination:null,responseState:S,progressiveChunkSize:P===void 0?12800:P,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:We,pingedTasks:Ee,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:X===void 0?rr:X,onAllReady:q===void 0?vr:q,onShellReady:oe===void 0?vr:oe,onShellError:me===void 0?vr:me,onFatalError:be===void 0?vr:be},O=Fr(S,0,null,O,!1,!1),O.parentFlushed=!0,p=at(S,p,null,O,We,rt,null,tn),Ee.push(p),S}function at(p,S,O,P,X,q,oe,me){p.allPendingTasks++,O===null?p.pendingRootTasks++:O.pendingTasks++;var be={node:S,ping:function(){var Ee=p.pingedTasks;Ee.push(be),Ee.length===1&&Dn(p)},blockedBoundary:O,blockedSegment:P,abortSet:X,legacyContext:q,context:oe,treeContext:me};return X.add(be),be}function Fr(p,S,O,P,X,q){return{status:0,id:-1,index:S,parentFlushed:!1,chunks:[],children:[],formatContext:P,boundary:O,lastPushedText:X,textEmbedded:q}}function Dr(p,S){if(p=p.onError(S),p!=null&&typeof p!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof p+'" instead');return p}function tt(p,S){var O=p.onShellError;O(S),O=p.onFatalError,O(S),p.destination!==null?(p.status=2,p.destination.destroy(S)):(p.status=1,p.fatalError=S)}function Pr(p,S,O,P,X){for(fn={},qt=S,tr=0,p=O(P,X);Zn;)Zn=!1,tr=0,Cr+=1,ot=null,p=O(P,X);return Eo(),p}function Br(p,S,O,P){var X=O.render(),q=P.childContextTypes;if(q!=null){var oe=S.legacyContext;if(typeof O.getChildContext!="function")P=oe;else{O=O.getChildContext();for(var me in O)if(!(me in q))throw Error(r(108,Nt(P)||"Unknown",me));P=Ce({},oe,O)}S.legacyContext=P,Kt(p,S,X),S.legacyContext=oe}else Kt(p,S,X)}function ro(p,S){if(p&&p.defaultProps){S=Ce({},S),p=p.defaultProps;for(var O in p)S[O]===void 0&&(S[O]=p[O]);return S}return S}function vt(p,S,O,P,X){if(typeof O=="function")if(O.prototype&&O.prototype.isReactComponent){X=pt(O,S.legacyContext);var q=O.contextType;q=new O(P,typeof q=="object"&&q!==null?q._currentValue2:X),En(q,O,P,X),Br(p,S,q,O)}else{q=pt(O,S.legacyContext),X=Pr(p,S,O,P,q);var oe=tr!==0;if(typeof X=="object"&&X!==null&&typeof X.render=="function"&&X.$$typeof===void 0)En(X,O,P,q),Br(p,S,X,O);else if(oe){P=S.treeContext,S.treeContext=hr(P,1,0);try{Kt(p,S,X)}finally{S.treeContext=P}}else Kt(p,S,X)}else if(typeof O=="string"){switch(X=S.blockedSegment,q=ge(X.chunks,O,P,p.responseState,X.formatContext),X.lastPushedText=!1,oe=X.formatContext,X.formatContext=W(oe,O,P),io(p,S,q),X.formatContext=oe,O){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:X.chunks.push("</",O,">")}X.lastPushedText=!1}else{switch(O){case Bt:case ut:case Ve:case ze:case Ft:Kt(p,S,P.children);return;case kt:Kt(p,S,P.children);return;case st:throw Error(r(343));case Pt:e:{O=S.blockedBoundary,X=S.blockedSegment,q=P.fallback,P=P.children,oe=new Set;var me={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:oe,errorDigest:null},be=Fr(p,X.chunks.length,me,X.formatContext,!1,!1);X.children.push(be),X.lastPushedText=!1;var Ee=Fr(p,0,null,X.formatContext,!1,!1);Ee.parentFlushed=!0,S.blockedBoundary=me,S.blockedSegment=Ee;try{if(io(p,S,P),p.responseState.generateStaticMarkup||Ee.lastPushedText&&Ee.textEmbedded&&Ee.chunks.push("<!-- -->"),Ee.status=1,yr(me,Ee),me.pendingTasks===0)break e}catch(We){Ee.status=4,me.forceClientRender=!0,me.errorDigest=Dr(p,We)}finally{S.blockedBoundary=O,S.blockedSegment=X}S=at(p,q,O,be,oe,S.legacyContext,S.context,S.treeContext),p.pingedTasks.push(S)}return}if(typeof O=="object"&&O!==null)switch(O.$$typeof){case jt:if(P=Pr(p,S,O.render,P,X),tr!==0){O=S.treeContext,S.treeContext=hr(O,1,0);try{Kt(p,S,P)}finally{S.treeContext=O}}else Kt(p,S,P);return;case en:O=O.type,P=ro(O,P),vt(p,S,O,P,X);return;case dt:if(X=P.children,O=O._context,P=P.value,q=O._currentValue2,O._currentValue2=P,oe=Rt,Rt=P={parent:oe,depth:oe===null?0:oe.depth+1,context:O,parentValue:q,value:P},S.context=P,Kt(p,S,X),p=Rt,p===null)throw Error(r(403));P=p.parentValue,p.context._currentValue2=P===mn?p.context._defaultValue:P,p=Rt=p.parent,S.context=p;return;case Tt:P=P.children,P=P(O._currentValue2),Kt(p,S,P);return;case Xe:X=O._init,O=X(O._payload),P=ro(O,P),vt(p,S,O,P,void 0);return}throw Error(r(130,O==null?O:typeof O,""))}}function Kt(p,S,O){if(S.node=O,typeof O=="object"&&O!==null){switch(O.$$typeof){case Je:vt(p,S,O.type,O.props,O.ref);return;case Et:throw Error(r(257));case Xe:var P=O._init;O=P(O._payload),Kt(p,S,O);return}if(G(O)){oo(p,S,O);return}if(O===null||typeof O!="object"?P=null:(P=Dt&&O[Dt]||O["@@iterator"],P=typeof P=="function"?P:null),P&&(P=P.call(O))){if(O=P.next(),!O.done){var X=[];do X.push(O.value),O=P.next();while(!O.done);oo(p,S,X)}return}throw p=Object.prototype.toString.call(O),Error(r(31,p==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":p))}typeof O=="string"?(P=S.blockedSegment,P.lastPushedText=ae(S.blockedSegment.chunks,O,p.responseState,P.lastPushedText)):typeof O=="number"&&(P=S.blockedSegment,P.lastPushedText=ae(S.blockedSegment.chunks,""+O,p.responseState,P.lastPushedText))}function oo(p,S,O){for(var P=O.length,X=0;X<P;X++){var q=S.treeContext;S.treeContext=hr(q,P,X);try{io(p,S,O[X])}finally{S.treeContext=q}}}function io(p,S,O){var P=S.blockedSegment.formatContext,X=S.legacyContext,q=S.context;try{return Kt(p,S,O)}catch(be){if(Eo(),typeof be=="object"&&be!==null&&typeof be.then=="function"){O=be;var oe=S.blockedSegment,me=Fr(p,oe.chunks.length,null,oe.formatContext,oe.lastPushedText,!0);oe.children.push(me),oe.lastPushedText=!1,p=at(p,S.node,S.blockedBoundary,me,S.abortSet,S.legacyContext,S.context,S.treeContext).ping,O.then(p,p),S.blockedSegment.formatContext=P,S.legacyContext=X,S.context=q,xn(q)}else throw S.blockedSegment.formatContext=P,S.legacyContext=X,S.context=q,xn(q),be}}function Rr(p){var S=p.blockedBoundary;p=p.blockedSegment,p.status=3,Wt(this,S,p)}function Ao(p,S,O){var P=p.blockedBoundary;p.blockedSegment.status=3,P===null?(S.allPendingTasks--,S.status!==2&&(S.status=2,S.destination!==null&&S.destination.push(null))):(P.pendingTasks--,P.forceClientRender||(P.forceClientRender=!0,p=O===void 0?Error(r(432)):O,P.errorDigest=S.onError(p),P.parentFlushed&&S.clientRenderedBoundaries.push(P)),P.fallbackAbortableTasks.forEach(function(X){return Ao(X,S,O)}),P.fallbackAbortableTasks.clear(),S.allPendingTasks--,S.allPendingTasks===0&&(P=S.onAllReady,P()))}function yr(p,S){if(S.chunks.length===0&&S.children.length===1&&S.children[0].boundary===null){var O=S.children[0];O.id=S.id,O.parentFlushed=!0,O.status===1&&yr(p,O)}else p.completedSegments.push(S)}function Wt(p,S,O){if(S===null){if(O.parentFlushed){if(p.completedRootSegment!==null)throw Error(r(389));p.completedRootSegment=O}p.pendingRootTasks--,p.pendingRootTasks===0&&(p.onShellError=vr,S=p.onShellReady,S())}else S.pendingTasks--,S.forceClientRender||(S.pendingTasks===0?(O.parentFlushed&&O.status===1&&yr(S,O),S.parentFlushed&&p.completedBoundaries.push(S),S.fallbackAbortableTasks.forEach(Rr,p),S.fallbackAbortableTasks.clear()):O.parentFlushed&&O.status===1&&(yr(S,O),S.completedSegments.length===1&&S.parentFlushed&&p.partialBoundaries.push(S)));p.allPendingTasks--,p.allPendingTasks===0&&(p=p.onAllReady,p())}function Dn(p){if(p.status!==2){var S=Rt,O=si.current;si.current=gr;var P=Ko;Ko=p.responseState;try{var X=p.pingedTasks,q;for(q=0;q<X.length;q++){var oe=X[q],me=p,be=oe.blockedSegment;if(be.status===0){xn(oe.context);try{Kt(me,oe,oe.node),me.responseState.generateStaticMarkup||be.lastPushedText&&be.textEmbedded&&be.chunks.push("<!-- -->"),oe.abortSet.delete(oe),be.status=1,Wt(me,oe.blockedBoundary,be)}catch(sn){if(Eo(),typeof sn=="object"&&sn!==null&&typeof sn.then=="function"){var Ee=oe.ping;sn.then(Ee,Ee)}else{oe.abortSet.delete(oe),be.status=4;var We=oe.blockedBoundary,St=sn,Ot=Dr(me,St);if(We===null?tt(me,St):(We.pendingTasks--,We.forceClientRender||(We.forceClientRender=!0,We.errorDigest=Ot,We.parentFlushed&&me.clientRenderedBoundaries.push(We))),me.allPendingTasks--,me.allPendingTasks===0){var nn=me.onAllReady;nn()}}}finally{}}}X.splice(0,q),p.destination!==null&&jr(p,p.destination)}catch(sn){Dr(p,sn),tt(p,sn)}finally{Ko=P,si.current=O,O===gr&&xn(S)}}}function Tr(p,S,O){switch(O.parentFlushed=!0,O.status){case 0:var P=O.id=p.nextSegmentId++;return O.lastPushedText=!1,O.textEmbedded=!1,p=p.responseState,S.push('<template id="'),S.push(p.placeholderPrefix),p=P.toString(16),S.push(p),S.push('"></template>');case 1:O.status=2;var X=!0;P=O.chunks;var q=0;O=O.children;for(var oe=0;oe<O.length;oe++){for(X=O[oe];q<X.index;q++)S.push(P[q]);X=un(p,S,X)}for(;q<P.length-1;q++)S.push(P[q]);return q<P.length&&(X=S.push(P[q])),X;default:throw Error(r(390))}}function un(p,S,O){var P=O.boundary;if(P===null)return Tr(p,S,O);if(P.parentFlushed=!0,P.forceClientRender)return p.responseState.generateStaticMarkup||(P=P.errorDigest,S.push("<!--$!-->"),S.push("<template"),P&&(S.push(' data-dgst="'),P=B(P),S.push(P),S.push('"')),S.push("></template>")),Tr(p,S,O),p=p.responseState.generateStaticMarkup?!0:S.push("<!--/$-->"),p;if(0<P.pendingTasks){P.rootSegmentID=p.nextSegmentId++,0<P.completedSegments.length&&p.partialBoundaries.push(P);var X=p.responseState,q=X.nextSuspenseID++;return X=X.boundaryPrefix+q.toString(16),P=P.id=X,Le(S,p.responseState,P),Tr(p,S,O),S.push("<!--/$-->")}if(P.byteSize>p.progressiveChunkSize)return P.rootSegmentID=p.nextSegmentId++,p.completedBoundaries.push(P),Le(S,p.responseState,P.id),Tr(p,S,O),S.push("<!--/$-->");if(p.responseState.generateStaticMarkup||S.push("<!--$-->"),O=P.completedSegments,O.length!==1)throw Error(r(391));return un(p,S,O[0]),p=p.responseState.generateStaticMarkup?!0:S.push("<!--/$-->"),p}function ko(p,S,O){return Ie(S,p.responseState,O.formatContext,O.id),un(p,S,O),Fe(S,O.formatContext)}function ci(p,S,O){for(var P=O.completedSegments,X=0;X<P.length;X++)fi(p,S,O,P[X]);if(P.length=0,p=p.responseState,P=O.id,O=O.rootSegmentID,S.push(p.startInlineScript),p.sentCompleteBoundaryFunction?S.push('$RC("'):(p.sentCompleteBoundaryFunction=!0,S.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),P===null)throw Error(r(395));return O=O.toString(16),S.push(P),S.push('","'),S.push(p.segmentPrefix),S.push(O),S.push('")<\/script>')}function fi(p,S,O,P){if(P.status===2)return!0;var X=P.id;if(X===-1){if((P.id=O.rootSegmentID)===-1)throw Error(r(392));return ko(p,S,P)}return ko(p,S,P),p=p.responseState,S.push(p.startInlineScript),p.sentCompleteSegmentFunction?S.push('$RS("'):(p.sentCompleteSegmentFunction=!0,S.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),S.push(p.segmentPrefix),X=X.toString(16),S.push(X),S.push('","'),S.push(p.placeholderPrefix),S.push(X),S.push('")<\/script>')}function jr(p,S){try{var O=p.completedRootSegment;if(O!==null&&p.pendingRootTasks===0){un(p,S,O),p.completedRootSegment=null;var P=p.responseState.bootstrapChunks;for(O=0;O<P.length-1;O++)S.push(P[O]);O<P.length&&S.push(P[O])}var X=p.clientRenderedBoundaries,q;for(q=0;q<X.length;q++){var oe=X[q];P=S;var me=p.responseState,be=oe.id,Ee=oe.errorDigest,We=oe.errorMessage,St=oe.errorComponentStack;if(P.push(me.startInlineScript),me.sentClientRenderFunction?P.push('$RX("'):(me.sentClientRenderFunction=!0,P.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),be===null)throw Error(r(395));if(P.push(be),P.push('"'),Ee||We||St){P.push(",");var Ot=ue(Ee||"");P.push(Ot)}if(We||St){P.push(",");var nn=ue(We||"");P.push(nn)}if(St){P.push(",");var sn=ue(St);P.push(sn)}if(!P.push(")<\/script>")){p.destination=null,q++,X.splice(0,q);return}}X.splice(0,q);var _r=p.completedBoundaries;for(q=0;q<_r.length;q++)if(!ci(p,S,_r[q])){p.destination=null,q++,_r.splice(0,q);return}_r.splice(0,q);var vn=p.partialBoundaries;for(q=0;q<vn.length;q++){var An=vn[q];e:{X=p,oe=S;var yn=An.completedSegments;for(me=0;me<yn.length;me++)if(!fi(X,oe,An,yn[me])){me++,yn.splice(0,me);var or=!1;break e}yn.splice(0,me),or=!0}if(!or){p.destination=null,q++,vn.splice(0,q);return}}vn.splice(0,q);var Pn=p.completedBoundaries;for(q=0;q<Pn.length;q++)if(!ci(p,S,Pn[q])){p.destination=null,q++,Pn.splice(0,q);return}Pn.splice(0,q)}finally{p.allPendingTasks===0&&p.pingedTasks.length===0&&p.clientRenderedBoundaries.length===0&&p.completedBoundaries.length===0&&S.push(null)}}function br(p,S){try{var O=p.abortableTasks;O.forEach(function(P){return Ao(P,p,S)}),O.clear(),p.destination!==null&&jr(p,p.destination)}catch(P){Dr(p,P),tt(p,P)}}function Ir(){}function zr(p,S,O,P){var X=!1,q=null,oe="",me={push:function(Ee){return Ee!==null&&(oe+=Ee),!0},destroy:function(Ee){X=!0,q=Ee}},be=!1;if(p=gn(p,fe(O,S?S.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Ir,void 0,function(){be=!0},void 0,void 0),Dn(p),br(p,P),p.status===1)p.status=2,me.destroy(p.fatalError);else if(p.status!==2&&p.destination===null){p.destination=me;try{jr(p,me)}catch(Ee){Dr(p,Ee),tt(p,Ee)}}if(X)throw q;if(!be)throw Error(r(426));return oe}return ga.renderToNodeStream=function(){throw Error(r(207))},ga.renderToStaticMarkup=function(p,S){return zr(p,S,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ga.renderToStaticNodeStream=function(){throw Error(r(208))},ga.renderToString=function(p,S){return zr(p,S,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ga.version="18.2.0",ga}var ss={};/**
|
|
66
66
|
* @license React
|
|
67
67
|
* react-dom-server.browser.production.min.js
|
|
68
68
|
*
|
|
@@ -70,9 +70,9 @@ Error generating stack: `+m.message+`
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the MIT license found in the
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var
|
|
74
|
-
`),pt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
|
|
75
|
-
`&&h.push(rt),
|
|
76
|
-
`?h.push(rt,b(N)):h.push(b(""+N)))}return typeof
|
|
77
|
-
`&&h.push(rt),V;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":h.push(Fe(_));for(var Zt in N)if(K.call(N,Zt)&&(V=N[Zt],V!=null))switch(Zt){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,_));default:Xe(h,C,Zt,V)}return h.push(ut),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Nt(h,N,_,C);case"html":return Z.insertionMode===0&&h.push(nt),Nt(h,N,_,C);default:if(_.indexOf("-")===-1&&typeof N.is!="string")return Nt(h,N,_,C);h.push(Fe(_)),ne=V=null;for(Ze in N)if(K.call(N,Ze)&&(pe=N[Ze],pe!=null))switch(Ze){case"children":V=pe;break;case"dangerouslySetInnerHTML":ne=pe;break;case"style":Rt(h,C,pe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:R(Ze)&&typeof pe!="function"&&typeof pe!="symbol"&&h.push(It,b(Ze),Ft,b(_e(pe)),kt)}return h.push(st),Pt(h,ne,V),V}}var ht=w("</"),Ge=w(">"),Sn=w('<template id="'),ct=w('"></template>'),xn=w("<!--$-->"),tn=w('<!--$?--><template id="'),pr=w('"></template>'),Vn=w("<!--$!-->"),ro=w("<!--/$-->"),jt=w("<template"),_i=w('"'),Jt=w(' data-dgst="');w(' data-msg="'),w(' data-stck="');var wi=w("></template>");function fn(h,_,N){if(u(h,tn),N===null)throw Error(r(395));return u(h,N),c(h,pr)}var qt=w('<div hidden id="'),zn=w('">'),it=w("</div>"),Qn=w('<svg aria-hidden="true" style="display:none" id="'),Xn=w('">'),er=w("</svg>"),En=w('<math aria-hidden="true" style="display:none" id="'),Mr=w('">'),Tt=w("</math>"),io=w('<table hidden id="'),tr=w('">'),Si=w("</table>"),Lr=w('<table hidden><tbody id="'),oo=w('">'),Gr=w("</tbody></table>"),ei=w('<table hidden><tr id="'),ti=w('">'),hr=w("</tr></table>"),mr=w('<table hidden><colgroup id="'),ji=w('">'),ao=w("</colgroup></table>");function nr(h,_,N,C){switch(N.insertionMode){case 0:case 1:return u(h,qt),u(h,_.segmentPrefix),u(h,b(C.toString(16))),c(h,zn);case 2:return u(h,Qn),u(h,_.segmentPrefix),u(h,b(C.toString(16))),c(h,Xn);case 3:return u(h,En),u(h,_.segmentPrefix),u(h,b(C.toString(16))),c(h,Mr);case 4:return u(h,io),u(h,_.segmentPrefix),u(h,b(C.toString(16))),c(h,tr);case 5:return u(h,Lr),u(h,_.segmentPrefix),u(h,b(C.toString(16))),c(h,oo);case 6:return u(h,ei),u(h,_.segmentPrefix),u(h,b(C.toString(16))),c(h,ti);case 7:return u(h,mr),u(h,_.segmentPrefix),u(h,b(C.toString(16))),c(h,ji);default:throw Error(r(397))}}function gr(h,_){switch(_.insertionMode){case 0:case 1:return c(h,it);case 2:return c(h,er);case 3:return c(h,Tt);case 4:return c(h,Si);case 5:return c(h,Gr);case 6:return c(h,hr);case 7:return c(h,ao);default:throw Error(r(397))}}var mn=w('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),at=w('$RS("'),Cr=w('","'),Br=w('")<\/script>'),tt=w('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Fr=w('$RC("'),Pr=w('","'),ni=w('")<\/script>'),vt=w('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),zt=w('$RX("'),ri=w('"'),ii=w(")<\/script>"),Kr=w(","),Ti=/[<\u2028\u2029]/g;function vr(h){return JSON.stringify(h).replace(Ti,function(_){switch(_){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Wt=Object.assign,Bn=Symbol.for("react.element"),Rr=Symbol.for("react.portal"),un=Symbol.for("react.fragment"),xi=Symbol.for("react.strict_mode"),lo=Symbol.for("react.profiler"),uo=Symbol.for("react.provider"),Ir=Symbol.for("react.context"),yr=Symbol.for("react.forward_ref"),jr=Symbol.for("react.suspense"),Tr=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.scope"),B=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),U=Symbol.for("react.default_value"),ie=Symbol.iterator;function me(h){if(h==null)return null;if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case un:return"Fragment";case Rr:return"Portal";case lo:return"Profiler";case xi:return"StrictMode";case jr:return"Suspense";case Tr:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case Ir:return(h.displayName||"Context")+".Consumer";case uo:return(h._context.displayName||"Context")+".Provider";case yr:var _=h.render;return h=h.displayName,h||(h=_.displayName||_.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case p:return _=h.displayName||null,_!==null?_:me(h.type)||"Memo";case S:_=h._payload,h=h._init;try{return me(h(_))}catch{}}return null}var be={};function Ee(h,_){if(h=h.contextTypes,!h)return be;var N={},C;for(C in h)N[C]=_[C];return N}var We=null;function St(h,_){if(h!==_){h.context._currentValue=h.parentValue,h=h.parent;var N=_.parent;if(h===null){if(N!==null)throw Error(r(401))}else{if(N===null)throw Error(r(401));St(h,N)}_.context._currentValue=_.value}}function Ot(h){h.context._currentValue=h.parentValue,h=h.parent,h!==null&&Ot(h)}function nn(h){var _=h.parent;_!==null&&nn(_),h.context._currentValue=h.value}function sn(h,_){if(h.context._currentValue=h.parentValue,h=h.parent,h===null)throw Error(r(402));h.depth===_.depth?St(h,_):sn(h,_)}function br(h,_){var N=_.parent;if(N===null)throw Error(r(402));h.depth===N.depth?St(h,N):br(h,N),_.context._currentValue=_.value}function gn(h){var _=We;_!==h&&(_===null?nn(h):h===null?Ot(_):_.depth===h.depth?St(_,h):_.depth>h.depth?sn(_,h):br(_,h),We=h)}var Hn={isMounted:function(){return!1},enqueueSetState:function(h,_){h=h._reactInternals,h.queue!==null&&h.queue.push(_)},enqueueReplaceState:function(h,_){h=h._reactInternals,h.replace=!0,h.queue=[_]},enqueueForceUpdate:function(){}};function vn(h,_,N,C){var Z=h.state!==void 0?h.state:null;h.updater=Hn,h.props=N,h.state=Z;var V={queue:[],replace:!1};h._reactInternals=V;var ne=_.contextType;if(h.context=typeof ne=="object"&&ne!==null?ne._currentValue:C,ne=_.getDerivedStateFromProps,typeof ne=="function"&&(ne=ne(N,Z),Z=ne==null?Z:Wt({},Z,ne),h.state=Z),typeof _.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function"))if(_=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),_!==h.state&&Hn.enqueueReplaceState(h,h.state,null),V.queue!==null&&0<V.queue.length)if(_=V.queue,ne=V.replace,V.queue=null,V.replace=!1,ne&&_.length===1)h.state=_[0];else{for(V=ne?_[0]:h.state,Z=!0,ne=ne?1:0;ne<_.length;ne++){var pe=_[ne];pe=typeof pe=="function"?pe.call(h,V,N,C):pe,pe!=null&&(Z?(Z=!1,V=Wt({},V,pe)):Wt(V,pe))}h.state=V}else V.queue=null}var rr={id:1,overflow:""};function Fn(h,_,N){var C=h.id;h=h.overflow;var Z=32-An(C)-1;C&=~(1<<Z),N+=1;var V=32-An(_)+Z;if(30<V){var ne=Z-Z%5;return V=(C&(1<<ne)-1).toString(32),C>>=ne,Z-=ne,{id:1<<32-An(_)+Z|N<<Z|C,overflow:V+h}}return{id:1<<V|N<<Z|C,overflow:h}}var An=Math.clz32?Math.clz32:so,zr=Math.log,oi=Math.LN2;function so(h){return h>>>=0,h===0?32:31-(zr(h)/oi|0)|0}function Hr(h,_){return h===_&&(h!==0||1/h===1/_)||h!==h&&_!==_}var Xt=typeof Object.is=="function"?Object.is:Hr,ir=null,ai=null,zi=null,yt=null,_r=!1,rn=!1,kn=0,yn=null,Ar=0;function li(){if(ir===null)throw Error(r(321));return ir}function co(){if(0<Ar)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function ui(){return yt===null?zi===null?(_r=!1,zi=yt=co()):(_r=!0,yt=zi):yt.next===null?(_r=!1,yt=yt.next=co()):(_r=!0,yt=yt.next),yt}function Hi(){ai=ir=null,rn=!1,zi=null,Ar=0,yt=yn=null}function ma(h,_){return typeof _=="function"?_(h):_}function qr(h,_,N){if(ir=li(),yt=ui(),_r){var C=yt.queue;if(_=C.dispatch,yn!==null&&(N=yn.get(C),N!==void 0)){yn.delete(C),C=yt.memoizedState;do C=h(C,N.action),N=N.next;while(N!==null);return yt.memoizedState=C,[C,_]}return[yt.memoizedState,_]}return h=h===ma?typeof _=="function"?_():_:N!==void 0?N(_):_,yt.memoizedState=h,h=yt.queue={last:null,dispatch:null},h=h.dispatch=Po.bind(null,ir,h),[yt.memoizedState,h]}function Ai(h,_){if(ir=li(),yt=ui(),_=_===void 0?null:_,yt!==null){var N=yt.memoizedState;if(N!==null&&_!==null){var C=N[1];e:if(C===null)C=!1;else{for(var Z=0;Z<C.length&&Z<_.length;Z++)if(!Xt(_[Z],C[Z])){C=!1;break e}C=!0}if(C)return N[0]}}return h=h(),yt.memoizedState=[h,_],h}function Po(h,_,N){if(25<=Ar)throw Error(r(301));if(h===ir)if(rn=!0,h={action:N,next:null},yn===null&&(yn=new Map),N=yn.get(_),N===void 0)yn.set(_,h);else{for(_=N;_.next!==null;)_=_.next;_.next=h}}function ga(){throw Error(r(394))}function Ei(){}var qi={readContext:function(h){return h._currentValue},useContext:function(h){return li(),h._currentValue},useMemo:Ai,useReducer:qr,useRef:function(h){ir=li(),yt=ui();var _=yt.memoizedState;return _===null?(h={current:h},yt.memoizedState=h):_},useState:function(h){return qr(ma,h)},useInsertionEffect:Ei,useLayoutEffect:function(){},useCallback:function(h,_){return Ai(function(){return h},_)},useImperativeHandle:Ei,useEffect:Ei,useDebugValue:Ei,useDeferredValue:function(h){return li(),h},useTransition:function(){return li(),[!1,ga]},useId:function(){var h=ai.treeContext,_=h.overflow;h=h.id,h=(h&~(1<<32-An(h)-1)).toString(32)+_;var N=fo;if(N===null)throw Error(r(404));return _=kn++,h=":"+N.idPrefix+"R"+h,0<_&&(h+="H"+_.toString(32)),h+":"},useMutableSource:function(h,_){return li(),_(h._source)},useSyncExternalStore:function(h,_,N){if(N===void 0)throw Error(r(407));return N()}},fo=null,Nn=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function or(h){return console.error(h),null}function wr(){}function Ui(h,_,N,C,Z,V,ne,pe,Ae){var Ze=[],Ue=new Set;return _={destination:null,responseState:_,progressiveChunkSize:C===void 0?12800:C,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ue,pingedTasks:Ze,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Z===void 0?or:Z,onAllReady:V===void 0?wr:V,onShellReady:ne===void 0?wr:ne,onShellError:pe===void 0?wr:pe,onFatalError:Ae===void 0?wr:Ae},N=ft(_,0,null,N,!1,!1),N.parentFlushed=!0,h=po(_,h,null,N,Ue,be,null,rr),Ze.push(h),_}function po(h,_,N,C,Z,V,ne,pe){h.allPendingTasks++,N===null?h.pendingRootTasks++:N.pendingTasks++;var Ae={node:_,ping:function(){var Ze=h.pingedTasks;Ze.push(Ae),Ze.length===1&&Dt(h)},blockedBoundary:N,blockedSegment:C,abortSet:Z,legacyContext:V,context:ne,treeContext:pe};return Z.add(Ae),Ae}function ft(h,_,N,C,Z,V){return{status:0,id:-1,index:_,parentFlushed:!1,chunks:[],children:[],formatContext:C,boundary:N,lastPushedText:Z,textEmbedded:V}}function si(h,_){if(h=h.onError(_),h!=null&&typeof h!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof h+'" instead');return h}function Ur(h,_){var N=h.onShellError;N(_),N=h.onFatalError,N(_),h.destination!==null?(h.status=2,D(h.destination,_)):(h.status=1,h.fatalError=_)}function Vi(h,_,N,C,Z){for(ir={},ai=_,kn=0,h=N(C,Z);rn;)rn=!1,kn=0,Ar+=1,yt=null,h=N(C,Z);return Hi(),h}function Zn(h,_,N,C){var Z=N.render(),V=C.childContextTypes;if(V!=null){var ne=_.legacyContext;if(typeof N.getChildContext!="function")C=ne;else{N=N.getChildContext();for(var pe in N)if(!(pe in V))throw Error(r(108,me(C)||"Unknown",pe));C=Wt({},ne,N)}_.legacyContext=C,Pn(h,_,Z),_.legacyContext=ne}else Pn(h,_,Z)}function Ko(h,_){if(h&&h.defaultProps){_=Wt({},_),h=h.defaultProps;for(var N in h)_[N]===void 0&&(_[N]=h[N]);return _}return _}function Ro(h,_,N,C,Z){if(typeof N=="function")if(N.prototype&&N.prototype.isReactComponent){Z=Ee(N,_.legacyContext);var V=N.contextType;V=new N(C,typeof V=="object"&&V!==null?V._currentValue:Z),vn(V,N,C,Z),Zn(h,_,V,N)}else{V=Ee(N,_.legacyContext),Z=Vi(h,_,N,C,V);var ne=kn!==0;if(typeof Z=="object"&&Z!==null&&typeof Z.render=="function"&&Z.$$typeof===void 0)vn(Z,N,C,V),Zn(h,_,Z,N);else if(ne){C=_.treeContext,_.treeContext=Fn(C,1,0);try{Pn(h,_,Z)}finally{_.treeContext=C}}else Pn(h,_,Z)}else if(typeof N=="string"){switch(Z=_.blockedSegment,V=Ye(Z.chunks,N,C,h.responseState,Z.formatContext),Z.lastPushedText=!1,ne=Z.formatContext,Z.formatContext=Me(ne,N,C),on(h,_,V),Z.formatContext=ne,N){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Z.chunks.push(ht,b(N),Ge)}Z.lastPushedText=!1}else{switch(N){case X:case B:case xi:case lo:case un:Pn(h,_,C.children);return;case Tr:Pn(h,_,C.children);return;case O:throw Error(r(343));case jr:e:{N=_.blockedBoundary,Z=_.blockedSegment,V=C.fallback,C=C.children,ne=new Set;var pe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ne,errorDigest:null},Ae=ft(h,Z.chunks.length,pe,Z.formatContext,!1,!1);Z.children.push(Ae),Z.lastPushedText=!1;var Ze=ft(h,0,null,Z.formatContext,!1,!1);Ze.parentFlushed=!0,_.blockedBoundary=pe,_.blockedSegment=Ze;try{if(on(h,_,C),Ze.lastPushedText&&Ze.textEmbedded&&Ze.chunks.push(Je),Ze.status=1,jo(pe,Ze),pe.pendingTasks===0)break e}catch(Ue){Ze.status=4,pe.forceClientRender=!0,pe.errorDigest=si(h,Ue)}finally{_.blockedBoundary=N,_.blockedSegment=Z}_=po(h,V,N,Ae,ne,_.legacyContext,_.context,_.treeContext),h.pingedTasks.push(_)}return}if(typeof N=="object"&&N!==null)switch(N.$$typeof){case yr:if(C=Vi(h,_,N.render,C,Z),kn!==0){N=_.treeContext,_.treeContext=Fn(N,1,0);try{Pn(h,_,C)}finally{_.treeContext=N}}else Pn(h,_,C);return;case p:N=N.type,C=Ko(N,C),Ro(h,_,N,C,Z);return;case uo:if(Z=C.children,N=N._context,C=C.value,V=N._currentValue,N._currentValue=C,ne=We,We=C={parent:ne,depth:ne===null?0:ne.depth+1,context:N,parentValue:V,value:C},_.context=C,Pn(h,_,Z),h=We,h===null)throw Error(r(403));C=h.parentValue,h.context._currentValue=C===U?h.context._defaultValue:C,h=We=h.parent,_.context=h;return;case Ir:C=C.children,C=C(N._currentValue),Pn(h,_,C);return;case S:Z=N._init,N=Z(N._payload),C=Ko(N,C),Ro(h,_,N,C,void 0);return}throw Error(r(130,N==null?N:typeof N,""))}}function Pn(h,_,N){if(_.node=N,typeof N=="object"&&N!==null){switch(N.$$typeof){case Bn:Ro(h,_,N.type,N.props,N.ref);return;case Rr:throw Error(r(257));case S:var C=N._init;N=C(N._payload),Pn(h,_,N);return}if(xe(N)){bn(h,_,N);return}if(N===null||typeof N!="object"?C=null:(C=ie&&N[ie]||N["@@iterator"],C=typeof C=="function"?C:null),C&&(C=C.call(N))){if(N=C.next(),!N.done){var Z=[];do Z.push(N.value),N=C.next();while(!N.done);bn(h,_,Z)}return}throw h=Object.prototype.toString.call(N),Error(r(31,h==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":h))}typeof N=="string"?(C=_.blockedSegment,C.lastPushedText=Et(_.blockedSegment.chunks,N,h.responseState,C.lastPushedText)):typeof N=="number"&&(C=_.blockedSegment,C.lastPushedText=Et(_.blockedSegment.chunks,""+N,h.responseState,C.lastPushedText))}function bn(h,_,N){for(var C=N.length,Z=0;Z<C;Z++){var V=_.treeContext;_.treeContext=Fn(V,C,Z);try{on(h,_,N[Z])}finally{_.treeContext=V}}}function on(h,_,N){var C=_.blockedSegment.formatContext,Z=_.legacyContext,V=_.context;try{return Pn(h,_,N)}catch(Ae){if(Hi(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){N=Ae;var ne=_.blockedSegment,pe=ft(h,ne.chunks.length,null,ne.formatContext,ne.lastPushedText,!0);ne.children.push(pe),ne.lastPushedText=!1,h=po(h,_.node,_.blockedBoundary,pe,_.abortSet,_.legacyContext,_.context,_.treeContext).ping,N.then(h,h),_.blockedSegment.formatContext=C,_.legacyContext=Z,_.context=V,gn(V)}else throw _.blockedSegment.formatContext=C,_.legacyContext=Z,_.context=V,gn(V),Ae}}function Io(h){var _=h.blockedBoundary;h=h.blockedSegment,h.status=3,Ja(this,_,h)}function va(h,_,N){var C=h.blockedBoundary;h.blockedSegment.status=3,C===null?(_.allPendingTasks--,_.status!==2&&(_.status=2,_.destination!==null&&_.destination.close())):(C.pendingTasks--,C.forceClientRender||(C.forceClientRender=!0,h=N===void 0?Error(r(432)):N,C.errorDigest=_.onError(h),C.parentFlushed&&_.clientRenderedBoundaries.push(C)),C.fallbackAbortableTasks.forEach(function(Z){return va(Z,_,N)}),C.fallbackAbortableTasks.clear(),_.allPendingTasks--,_.allPendingTasks===0&&(C=_.onAllReady,C()))}function jo(h,_){if(_.chunks.length===0&&_.children.length===1&&_.children[0].boundary===null){var N=_.children[0];N.id=_.id,N.parentFlushed=!0,N.status===1&&jo(h,N)}else h.completedSegments.push(_)}function Ja(h,_,N){if(_===null){if(N.parentFlushed){if(h.completedRootSegment!==null)throw Error(r(389));h.completedRootSegment=N}h.pendingRootTasks--,h.pendingRootTasks===0&&(h.onShellError=wr,_=h.onShellReady,_())}else _.pendingTasks--,_.forceClientRender||(_.pendingTasks===0?(N.parentFlushed&&N.status===1&&jo(_,N),_.parentFlushed&&h.completedBoundaries.push(_),_.fallbackAbortableTasks.forEach(Io,h),_.fallbackAbortableTasks.clear()):N.parentFlushed&&N.status===1&&(jo(_,N),_.completedSegments.length===1&&_.parentFlushed&&h.partialBoundaries.push(_)));h.allPendingTasks--,h.allPendingTasks===0&&(h=h.onAllReady,h())}function Dt(h){if(h.status!==2){var _=We,N=Nn.current;Nn.current=qi;var C=fo;fo=h.responseState;try{var Z=h.pingedTasks,V;for(V=0;V<Z.length;V++){var ne=Z[V],pe=h,Ae=ne.blockedSegment;if(Ae.status===0){gn(ne.context);try{Pn(pe,ne,ne.node),Ae.lastPushedText&&Ae.textEmbedded&&Ae.chunks.push(Je),ne.abortSet.delete(ne),Ae.status=1,Ja(pe,ne.blockedBoundary,Ae)}catch(xt){if(Hi(),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"){var Ze=ne.ping;xt.then(Ze,Ze)}else{ne.abortSet.delete(ne),Ae.status=4;var Ue=ne.blockedBoundary,Mt=xt,_n=si(pe,Mt);if(Ue===null?Ur(pe,Mt):(Ue.pendingTasks--,Ue.forceClientRender||(Ue.forceClientRender=!0,Ue.errorDigest=_n,Ue.parentFlushed&&pe.clientRenderedBoundaries.push(Ue))),pe.allPendingTasks--,pe.allPendingTasks===0){var Zt=pe.onAllReady;Zt()}}}finally{}}}Z.splice(0,V),h.destination!==null&&zo(h,h.destination)}catch(xt){si(h,xt),Ur(h,xt)}finally{fo=C,Nn.current=N,N===qi&&gn(_)}}}function Qi(h,_,N){switch(N.parentFlushed=!0,N.status){case 0:var C=N.id=h.nextSegmentId++;return N.lastPushedText=!1,N.textEmbedded=!1,h=h.responseState,u(_,Sn),u(_,h.placeholderPrefix),h=b(C.toString(16)),u(_,h),c(_,ct);case 1:N.status=2;var Z=!0;C=N.chunks;var V=0;N=N.children;for(var ne=0;ne<N.length;ne++){for(Z=N[ne];V<Z.index;V++)u(_,C[V]);Z=ho(h,_,Z)}for(;V<C.length-1;V++)u(_,C[V]);return V<C.length&&(Z=c(_,C[V])),Z;default:throw Error(r(390))}}function ho(h,_,N){var C=N.boundary;if(C===null)return Qi(h,_,N);if(C.parentFlushed=!0,C.forceClientRender)C=C.errorDigest,c(_,Vn),u(_,jt),C&&(u(_,Jt),u(_,b(_e(C))),u(_,_i)),c(_,wi),Qi(h,_,N);else if(0<C.pendingTasks){C.rootSegmentID=h.nextSegmentId++,0<C.completedSegments.length&&h.partialBoundaries.push(C);var Z=h.responseState,V=Z.nextSuspenseID++;Z=w(Z.boundaryPrefix+V.toString(16)),C=C.id=Z,fn(_,h.responseState,C),Qi(h,_,N)}else if(C.byteSize>h.progressiveChunkSize)C.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(C),fn(_,h.responseState,C.id),Qi(h,_,N);else{if(c(_,xn),N=C.completedSegments,N.length!==1)throw Error(r(391));ho(h,_,N[0])}return c(_,ro)}function Kn(h,_,N){return nr(_,h.responseState,N.formatContext,N.id),ho(h,_,N),gr(_,N.formatContext)}function To(h,_,N){for(var C=N.completedSegments,Z=0;Z<C.length;Z++)mo(h,_,N,C[Z]);if(C.length=0,h=h.responseState,C=N.id,N=N.rootSegmentID,u(_,h.startInlineScript),h.sentCompleteBoundaryFunction?u(_,Fr):(h.sentCompleteBoundaryFunction=!0,u(_,tt)),C===null)throw Error(r(395));return N=b(N.toString(16)),u(_,C),u(_,Pr),u(_,h.segmentPrefix),u(_,N),c(_,ni)}function mo(h,_,N,C){if(C.status===2)return!0;var Z=C.id;if(Z===-1){if((C.id=N.rootSegmentID)===-1)throw Error(r(392));return Kn(h,_,C)}return Kn(h,_,C),h=h.responseState,u(_,h.startInlineScript),h.sentCompleteSegmentFunction?u(_,at):(h.sentCompleteSegmentFunction=!0,u(_,mn)),u(_,h.segmentPrefix),Z=b(Z.toString(16)),u(_,Z),u(_,Cr),u(_,h.placeholderPrefix),u(_,Z),c(_,Br)}function zo(h,_){i=new Uint8Array(512),a=0;try{var N=h.completedRootSegment;if(N!==null&&h.pendingRootTasks===0){ho(h,_,N),h.completedRootSegment=null;var C=h.responseState.bootstrapChunks;for(N=0;N<C.length-1;N++)u(_,C[N]);N<C.length&&c(_,C[N])}var Z=h.clientRenderedBoundaries,V;for(V=0;V<Z.length;V++){var ne=Z[V];C=_;var pe=h.responseState,Ae=ne.id,Ze=ne.errorDigest,Ue=ne.errorMessage,Mt=ne.errorComponentStack;if(u(C,pe.startInlineScript),pe.sentClientRenderFunction?u(C,zt):(pe.sentClientRenderFunction=!0,u(C,vt)),Ae===null)throw Error(r(395));u(C,Ae),u(C,ri),(Ze||Ue||Mt)&&(u(C,Kr),u(C,b(vr(Ze||"")))),(Ue||Mt)&&(u(C,Kr),u(C,b(vr(Ue||"")))),Mt&&(u(C,Kr),u(C,b(vr(Mt)))),c(C,ii)}Z.splice(0,V);var _n=h.completedBoundaries;for(V=0;V<_n.length;V++)To(h,_,_n[V]);_n.splice(0,V),g(_),i=new Uint8Array(512),a=0;var Zt=h.partialBoundaries;for(V=0;V<Zt.length;V++){var xt=Zt[V];e:{Z=h,ne=_;var ci=xt.completedSegments;for(pe=0;pe<ci.length;pe++)if(!mo(Z,ne,xt,ci[pe])){pe++,ci.splice(0,pe);var ya=!1;break e}ci.splice(0,pe),ya=!0}if(!ya){h.destination=null,V++,Zt.splice(0,V);return}}Zt.splice(0,V);var fi=h.completedBoundaries;for(V=0;V<fi.length;V++)To(h,_,fi[V]);fi.splice(0,V)}finally{g(_),h.allPendingTasks===0&&h.pingedTasks.length===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0&&_.close()}}function Ho(h,_){try{var N=h.abortableTasks;N.forEach(function(C){return va(C,h,_)}),N.clear(),h.destination!==null&&zo(h,h.destination)}catch(C){si(h,C),Ur(h,C)}}return ns.renderToReadableStream=function(h,_){return new Promise(function(N,C){var Z,V,ne=new Promise(function(Ue,Mt){V=Ue,Z=Mt}),pe=Ui(h,ue(_?_.identifierPrefix:void 0,_?_.nonce:void 0,_?_.bootstrapScriptContent:void 0,_?_.bootstrapScripts:void 0,_?_.bootstrapModules:void 0),ae(_?_.namespaceURI:void 0),_?_.progressiveChunkSize:void 0,_?_.onError:void 0,V,function(){var Ue=new ReadableStream({type:"bytes",pull:function(Mt){if(pe.status===1)pe.status=2,D(Mt,pe.fatalError);else if(pe.status!==2&&pe.destination===null){pe.destination=Mt;try{zo(pe,Mt)}catch(_n){si(pe,_n),Ur(pe,_n)}}},cancel:function(){Ho(pe)}},{highWaterMark:0});Ue.allReady=ne,N(Ue)},function(Ue){ne.catch(function(){}),C(Ue)},Z);if(_&&_.signal){var Ae=_.signal,Ze=function(){Ho(pe,Ae.reason),Ae.removeEventListener("abort",Ze)};Ae.addEventListener("abort",Ze)}Dt(pe)})},ns.version="18.2.0",ns}var Ua,Mv;Ua=WF(),Mv=GF(),Mn.version=Ua.version,Mn.renderToString=Ua.renderToString,Mn.renderToStaticMarkup=Ua.renderToStaticMarkup,Mn.renderToNodeStream=Ua.renderToNodeStream,Mn.renderToStaticNodeStream=Ua.renderToStaticNodeStream,Mn.renderToReadableStream=Mv.renderToReadableStream;function Lf(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function e3(t){if(Array.isArray(t))return Lf(t)}function t3(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function n3(t,r){if(t){if(typeof t=="string")return Lf(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Lf(t,r)}}function r3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
78
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mo(t){return e3(t)||t3(t)||n3(t)||r3()}function Lv(t,r,i,a,u,c){var g=a-i,y=r+i<=t.offset;if(y)return Object.assign({},t,{offset:t.offset+g});var b=r>=t.offset&&r+i<=t.offset+t.length;if(b)return Object.assign({},t,{length:t.length+g});var w=t.offset>=r&&t.offset+t.length<=r+i&&u>0;if(w)return Object.assign({},t,{offset:t.offset+u});var D=t.offset<r&&t.offset+t.length<=r+i&&t.offset+t.length>r&&u>0;if(D)return[Object.assign({},t,{length:r-t.offset}),Object.assign({},t,{offset:r+u,length:t.offset-r+t.length})];var K=t.offset>=r&&t.offset+t.length>r+i&&r+i>t.offset&&c>0;return K?[Object.assign({},t,{offset:t.offset+u,length:r+i-t.offset}),Object.assign({},t,{offset:r+i+u+c,length:t.offset+t.length-(r+i)})]:t}const rs=function(t,r){return t.offset===r.offset?r.length-t.length:t.offset-r.offset};var Cv={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\n":"<br/>"};const i3=function(t){for(var r=Mo(t.text),i=t.entityRanges.sort(rs),a=t.inlineStyleRanges.sort(rs),u="",c=function(y){var b=r[y];if(Cv[b]!==void 0){var w=Cv[b],D=Mo(u).length;u+=w;var K=function(L){return Lv(L,D,b.length,w.length,0,0)};i=i.map(K),a=a.map(K)}else u+=b},g=0;g<r.length;g++)c(g);return Object.assign({},t,{text:u,inlineStyleRanges:a,entityRanges:i})};function is(t){return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},is(t)}var o3=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Va(t){if(o3.indexOf(t.type)!==-1)return Mn.renderToStaticMarkup(t);var r=Mn.renderToStaticMarkup(P.cloneElement(t,{},"\r")).split("\r");return bi(r.length>1,"convertToHTML: Element of type ".concat(t.type," must render children")),bi(r.length<3,"convertToHTML: Element of type ".concat(t.type," cannot use carriage return character")),{start:r[0],end:r[1]}}function a3(t){return P.isValidElement(t)&&P.Children.count(t.props.children)>0}function os(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(t==null||typeof t=="string")return t;if(P.isValidElement(t)){if(a3(t))return Mn.renderToStaticMarkup(t);var i=Va(t);if(r!==null&&is(i)==="object"){var a=i.start,u=i.end;return a+r+u}return i}if(bi(Object.prototype.hasOwnProperty.call(t,"start")&&Object.prototype.hasOwnProperty.call(t,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),r!==null){var c=t.start,g=t.end;return c+r+g}return t}var Bv=function t(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"start";if(P.isValidElement(r)){var a=Va(r);if(typeof a=="string")return 0;var u=a[i].length,c=P.Children.toArray(r.props.children)[0];return u+(c&&P.isValidElement(c)?t(c,i):0)}return is(r)==="object"&&r[i]?r[i].length:0},Fv=function(){var t=arguments.length>1?arguments[1]:void 0;return t};const l3=function(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fv,a=Mo(t.text),u=i;if(i.__isMiddleware&&(u=i(Fv)),Object.prototype.hasOwnProperty.call(t,"entityRanges")&&t.entityRanges.length>0){for(var c=t.entityRanges.sort(rs),g=t.inlineStyleRanges,y=function(w){var D=c[w],K=r[D.key],L=a.slice(D.offset,D.offset+D.length).join(""),T=u(K,L),F=os(T,L),R=void 0;F||F===""?R=Mo(F):R=L;var j=Bv(T,"start"),G=Bv(T,"end"),Y=function(J,le){return le>w||Object.prototype.hasOwnProperty.call(J,"style")?Lv(J,D.offset,D.length,R.length,j,G):J},W=function(J){return J.reduce(function(le,Se,_e){var Ie=Y(Se,_e);return Array.isArray(Ie)?le.concat(Ie):le.concat([Ie])},[])};c=W(c),g=W(g),a=[].concat(Mo(a.slice(0,D.offset)),Mo(R),Mo(a.slice(D.offset+D.length)))},b=0;b<c.length;b++)y(b);return Object.assign({},t,{text:a.join(""),inlineStyleRanges:g,entityRanges:c})}return t},Pv=function(t){return function(r){return typeof t=="function"?t(r):t[r]}},Kv=function(t,r){return function(){var i=t.apply(void 0,arguments);return i??r.apply(void 0,arguments)}};function Rv(t){switch(t){case"BOLD":return P.createElement("strong",null);case"ITALIC":return P.createElement("em",null);case"UNDERLINE":return P.createElement("u",null);case"CODE":return P.createElement("code",null);default:return{start:"",end:""}}}var Cf=function(t,r){return t.filter(function(i){return!r.some(function(a){return a.style===i.style})})},u3=function(t,r){return r.reduceRight(function(i,a){var u=i[i.length-1];return bi(u.style===a.style,"Style ".concat(u.style," to be removed doesn't match expected ").concat(a.style)),i.slice(0,-1)},t)},s3=function(t,r){return r.filter(function(i){return t>=i.offset&&t<i.offset+i.length})},c3=function(t,r){var i=t.offset<=r.offset,a=t.offset+t.length>=r.offset+r.length;return i&&a},f3=function(t,r){var i=r.offset+r.length,a=t.offset+t.length;return i-a},d3=function(t,r){for(var i=0;i<t.length;)if(r.every(c3.bind(null,t[i])))i++;else return t.slice(i);return[]},p3=function(t,r,i){return r+os(t(i.style)).start},h3=function(t,r,i){return os(t(i.style)).end+r},Iv=function(t){return function(r){return t(r)}};Iv.__isMiddleware=!0;const m3=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Iv;bi(t!=null,"Expected raw block to be non-null");var i;r.__isMiddleware===!0?i=r(Rv):i=Kv(Pv(r),Pv(Rv));for(var a="",u=[],c=t.inlineStyleRanges.sort(rs),g=Mo(t.text),y=0;y<g.length;y++){var b=s3(y,c),w=Cf(u,b),D=Cf(b,u),K=Cf(u,w),L=d3(K,D),T=L.concat(D).sort(f3),F=T.reduce(p3.bind(null,i),""),R=w.concat(L).reduce(h3.bind(null,i),"");a+=R+F+g[y],u=u3(u,L.concat(w)),u=u.concat(T),bi(u.length===b.length,"Character ".concat(y,": ").concat(u.length-b.length," styles left on stack that should no longer be there"))}return a=u.reduceRight(function(j,G){return j+os(i(G.style)).end},a),a},Bf=function(t){return function(r){return typeof t=="function"?t(r):t[r.type]}};function g3(t){return P.isValidElement(t)&&P.Children.count(t.props.children)>0}function v3(t){return bi(t!=null,"Expected block HTML value to be non-null"),typeof t=="string"?t:P.isValidElement(t)?g3(t)?Mn.renderToStaticMarkup(t):Va(t):Object.prototype.hasOwnProperty.call(t,"element")&&P.isValidElement(t.element)?Object.assign({},t,Va(t.element)):(bi(Object.prototype.hasOwnProperty.call(t,"start")&&Object.prototype.hasOwnProperty.call(t,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),t)}function Qa(t,r){if(bi(t!=null,"Expected block HTML value to be non-null"),typeof t.nest=="function"){var i=Va(t.nest(r)),a=i.start,u=i.end;return Object.assign({},t,{nestStart:a,nestEnd:u})}if(P.isValidElement(t.nest)){var c=Va(t.nest),g=c.start,y=c.end;return Object.assign({},t,{nestStart:g,nestEnd:y})}return bi(Object.prototype.hasOwnProperty.call(t,"nestStart")&&Object.prototype.hasOwnProperty.call(t,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),t}var y3=["1","a","i"];const jv={unstyled:P.createElement("p",null),paragraph:P.createElement("p",null),"header-one":P.createElement("h1",null),"header-two":P.createElement("h2",null),"header-three":P.createElement("h3",null),"header-four":P.createElement("h4",null),"header-five":P.createElement("h5",null),"header-six":P.createElement("h6",null),"code-block":P.createElement("pre",null),blockquote:P.createElement("blockquote",null),"unordered-list-item":{element:P.createElement("li",null),nest:P.createElement("ul",null)},"ordered-list-item":{element:P.createElement("li",null),nest:function(t){var r=y3[t%3];return P.createElement("ol",{type:r})}},media:P.createElement("figure",null),atomic:P.createElement("figure",null)};var b3=function(t,r){return r},Tv=function(t){var r=t.styleToHTML,i=r===void 0?{}:r,a=t.blockToHTML,u=a===void 0?{}:a,c=t.entityToHTML,g=c===void 0?b3:c;return function(y){bi(y!=null,"Expected contentState to be non-null");var b;u.__isMiddleware===!0?b=u(Bf(jv)):b=Kv(Bf(u),Bf(jv));var w=Nv.convertToRaw(y),D=[],K=w.blocks.map(function(L){var T=L.type,F=L.depth,R="",j="",G=b(L);if(!G)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(L.type));if(!G.nest)R=D.reduceRight(function(_e,Ie){return _e+Qa(b(Ie),F).nestEnd},""),D=[];else for(;F+1!==D.length||T!==D[F].type;)if(F+1===D.length){var Y=D[F];R+=Qa(b(Y),F).nestEnd,j+=Qa(b(L),F).nestStart,D[F]=L}else if(F+1<D.length){var W=D[D.length-1];R+=Qa(b(W),F).nestEnd,D=D.slice(0,-1)}else j+=Qa(b(L),F).nestStart,D.push(L);var J=m3(l3(i3(L),w.entityMap,g),i),le=v3(b(L)),Se;return typeof le=="string"?Se=le:Se=le.start+J+le.end,J.length===0&&Object.prototype.hasOwnProperty.call(le,"empty")&&(P.isValidElement(le.empty)?Se=Mn.renderToStaticMarkup(le.empty):Se=le.empty),R+j+Se}).join("");return K=D.reduce(function(L,T){return L+Qa(b(T),T.depth).nestEnd},K),K}};const _3=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r.length===1&&Object.prototype.hasOwnProperty.call(r[0],"_map")&&r[0].getBlockMap!=null?Tv({}).apply(void 0,r):Tv.apply(void 0,r)};var Ff="/home/travis/build/20minutes/hela/src/components/molecules/Article/ArticleVideo/ArticleVideo.tsx";const w3=({html:t,caption:r=""})=>P.createElement("figure",{className:"c-media",role:"group",__self:void 0,__source:{fileName:Ff,lineNumber:10,columnNumber:3}},P.createElement("div",{className:"c-media__content c-media__content--video",dangerouslySetInnerHTML:{__html:t},__self:void 0,__source:{fileName:Ff,lineNumber:11,columnNumber:5}}),r&&P.createElement(Lt,{as:"figcaption",size:"xs",mt:"s",color:"grey-300",className:"c-media__caption",__self:void 0,__source:{fileName:Ff,lineNumber:18,columnNumber:7}},r));var Xa="/home/travis/build/20minutes/hela/src/components/molecules/Citation/Citation.tsx";const S3=({citationText:t,citationAuthor:r,colorVariant:i,...a})=>{const u=c=>{switch(c){case"entertainment":case"sport":case"planet":return`diode-rubric-${c}`;default:return"diode-leaning"}};return P.createElement(Qt,{...a,pl:{sm:"l"},__self:void 0,__source:{fileName:Xa,lineNumber:29,columnNumber:5}},P.createElement(Gn,{size:[29,27],name:u(i),className:"c-divider-section__icon",__self:void 0,__source:{fileName:Xa,lineNumber:30,columnNumber:7}}),P.createElement(Qt,{my:"s",__self:void 0,__source:{fileName:Xa,lineNumber:35,columnNumber:7}},P.createElement($a,{as:"h1",fontFamily:"source-serif-pro",size:"m",weight:"regular",__self:void 0,__source:{fileName:Xa,lineNumber:36,columnNumber:9}},'"',t,'"')),r&&P.createElement(Qt,{__self:void 0,__source:{fileName:Xa,lineNumber:41,columnNumber:9}},P.createElement(Lt,{size:"m",weight:"bold",__self:void 0,__source:{fileName:Xa,lineNumber:42,columnNumber:11}},r)))};var as="/home/travis/build/20minutes/hela/src/helpers/draftjsHtmlHelper.tsx";const x3=t=>(t.entityMap===void 0&&(t.entityMap={}),_3({styleToHTML:r=>{switch(r){case"ITALIC":return P.createElement(Lt,{as:"span",italic:!0,__self:void 0,__source:{fileName:as,lineNumber:20,columnNumber:18}});case"BOLD":return P.createElement(Lt,{as:"span",weight:"bold",__self:void 0,__source:{fileName:as,lineNumber:22,columnNumber:18}});case"GRAY":return P.createElement(Lt,{as:"span",color:"grey-500",__self:void 0,__source:{fileName:as,lineNumber:24,columnNumber:18}});case"RED":case"BLUE":case"PURPLE":case"PINK":return P.createElement(Lt,{as:"span",color:r.toLowerCase(),__self:void 0,__source:{fileName:as,lineNumber:29,columnNumber:18}});default:return null}},blockToHTML:r=>{switch(r.type){case"unordered-list-item":return{start:"<li>",end:"</li>",nest:"<ul>",nestStart:"<ul>",nestEnd:"</ul>"};case"ordered-list-item":return{start:"<li>",end:"</li>",nest:"<ol>",nestStart:"<ol>",nestEnd:"</ol>"};case"blockquote":return Mn.renderToStaticMarkup(P.createElement(S3,{citationText:r.text}));default:return null}},entityToHTML:(r,i)=>{switch(r.type){case"button":case"LINK":{const a=r.data.buttonProps||r.data;return Mn.renderToStaticMarkup(P.createElement(Uv,{href:a.url,rel:a.nofollow&&"nofollow"||a.sponsored&&"sponsored"||void 0,target:a.targetBlank?"_blank":void 0,variant:r.type==="button"?"primary":void 0,children:a.label?a.label:i}))}case"article":return Mn.renderToStaticMarkup(P.createElement(Y3,{label:"Lire Aussi",title:r.data.articleProps.meta.title,link:r.data.articleProps.meta.canonical,isTargetBlank:r.data.isTargetBlank,isNofollow:r.data.isNofollow,isSponsored:r.data.isSponsored}));case"html":return Mn.renderToStaticMarkup(P.createElement("div",{dangerouslySetInnerHTML:{__html:r.data.htmlProps.html}}));case"image":return Mn.renderToStaticMarkup(P.createElement(fP,{type:Fa.photo,src:r.data.imageProps.src,caption:r.data.imageProps.meta.caption}));case"digiteka":return Mn.renderToStaticMarkup(P.createElement(w3,{html:r.data.videoProps.html}));case"iframely":return Mn.renderToStaticMarkup(P.createElement(N3,{html:r.data.embedProps.html}));default:return i}}})(Nv.convertFromRaw(t)));function Ln(t){return P.forwardRef(t)}var zv="/home/travis/build/20minutes/hela/src/components/atoms/Button/Button.tsx";const Lo=Ln(({as:t="button",variant:r="primary",children:i,iconProps:a,...u},c)=>P.createElement(gt,{...u,as:t,ref:c,alignItems:"center",gap:"xxs",className:ot("c-btn",{[`c-btn--${r}`]:r},u?.className),__self:void 0,__source:{fileName:zv,lineNumber:22,columnNumber:5}},a&&P.createElement(Gn,{...a,__self:void 0,__source:{fileName:zv,lineNumber:30,columnNumber:21}}),i));Lo.displayName="Button";var ls="/home/travis/build/20minutes/hela/src/components/atoms/Divider/Divider.tsx";const E3=Ln(({text:t,color:r="black",thickness:i="thin",...a},u)=>{const c=P.createElement(ss,{bg:r,align:"center",className:ot("c-divider__line",{[`c-divider__line--${i}`]:i!=="thin"}),__self:void 0,__source:{fileName:ls,lineNumber:15,columnNumber:7}});return P.createElement(gt,{...a,ref:u,className:ot("c-divider",{"c-divider--has-text":!!t},a?.className),__self:void 0,__source:{fileName:ls,lineNumber:25,columnNumber:7}},t?P.createElement(P.Fragment,null,c,P.createElement(ss,{px:"xxs-2",className:"c-divider__text",__self:void 0,__source:{fileName:ls,lineNumber:37,columnNumber:13}},P.createElement(Lt,{size:"xxs",color:r,textTransform:"uppercase",__self:void 0,__source:{fileName:ls,lineNumber:38,columnNumber:15}},t)),c):c)});var k3="/home/travis/build/20minutes/hela/src/components/atoms/Embed/Embed.tsx";const N3=({html:t})=>P.createElement("div",{dangerouslySetInnerHTML:{__html:t},__self:void 0,__source:{fileName:k3,lineNumber:8,columnNumber:3}});var Pf="/home/travis/build/20minutes/hela/src/components/atoms/Icon/Icon.tsx";const Gn=Ln(({name:t,size:r=28,withBorder:i=!1,isRounded:a=!1,...u},c)=>{const g=Array.isArray(r)?r?.[0]:r,y=Array.isArray(r)?r?.[1]:r;return P.createElement(Qt,{...u,ref:c,className:ot("c-icon",i&&"c-icon--withBorder",a&&"c-icon--isRounded",u?.className),__self:void 0,__source:{fileName:Pf,lineNumber:100,columnNumber:7}},P.createElement("svg",{width:g,height:y,__self:void 0,__source:{fileName:Pf,lineNumber:110,columnNumber:9}},P.createElement("use",{xlinkHref:`#${t}`,__self:void 0,__source:{fileName:Pf,lineNumber:111,columnNumber:11}})))});var O3="/home/travis/build/20minutes/hela/src/components/atoms/Img/Img.tsx";const Kf=({src:t="",defaultFormat:r,formats:i,alt:a="",sizes:u,...c})=>{const g=r.split("x"),y=g[0],b=g[1];let w,D=`data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='${y}'%20height='${b}'%3E%3C/svg%3E`;return t&&(D=t.replace(/%format/,r),i!==void 0&&i.length>0&&(w=i.map(K=>`${t.replace(/%format/,K)} ${K.split("x")[0]}w`))),P.createElement(Qt,{...c,as:"img",width:y,height:b,src:D,srcSet:w&&w.join(", "),sizes:u||void 0,alt:a,className:ot("c-img",c?.className),__self:void 0,__source:{fileName:O3,lineNumber:36,columnNumber:5}})};var D3="/home/travis/build/20minutes/hela/src/components/atoms/InlineSeparator/InlineSeparator.tsx";const Rf=({size:t,...r})=>P.createElement(Lt,{as:"span",size:t||"s",...r,__self:void 0,__source:{fileName:D3,lineNumber:5,columnNumber:3}},"\u2022");var Co="/home/travis/build/20minutes/hela/src/components/atoms/Input/Input.tsx";Ln(({id:t,className:r,color:i,required:a,label:u,icon:c,positionIcon:g="left",isIconButton:y=!1,iconButtonProps:b,variant:w,msg:D,msgProps:K,...L},T)=>P.createElement("div",{ref:T,className:"c-input",__self:void 0,__source:{fileName:Co,lineNumber:39,columnNumber:5}},u&&P.createElement("label",{htmlFor:t,className:"c-input__label",__self:void 0,__source:{fileName:Co,lineNumber:41,columnNumber:9}},u,a&&P.createElement("abbr",{className:"c-input__label__abbr",title:"(ce champ est obligatoire)",__self:void 0,__source:{fileName:Co,lineNumber:44,columnNumber:13}},"*")),P.createElement("div",{className:"c-input-container",__self:void 0,__source:{fileName:Co,lineNumber:50,columnNumber:7}},c&&(y?P.createElement(Lo,{className:ot("c-input-container__icon",`c-input-container__icon--${g}`),iconProps:{name:c,size:18},variant:"ghost",color:i||"black",...b,__self:void 0,__source:{fileName:Co,lineNumber:53,columnNumber:13}}):P.createElement(Gn,{className:ot("c-input-container__icon",`c-input-container__icon--${g}`),name:c,size:18,__self:void 0,__source:{fileName:Co,lineNumber:67,columnNumber:13}})),P.createElement("input",{id:t,className:ot("c-input-container__input",{[`c-input-container__input--has-icon--${g}`]:c,[`c-input-container__input--${w}`]:w},r),required:a,...L,__self:void 0,__source:{fileName:Co,lineNumber:76,columnNumber:9}})),D&&P.createElement(Lt,{dangerouslySetInnerHTML:{__html:D},role:"alert",...K,__self:void 0,__source:{fileName:Co,lineNumber:90,columnNumber:15}})));var If="/home/travis/build/20minutes/hela/src/components/atoms/Label/Label.tsx";const Hv=({children:t,bg:r,color:i,hasDot:a=!1,isUppercase:u=!0,size:c,className:g,...y})=>P.createElement(gt,{inline:!0,p:r?"xxs-2":void 0,bg:r,color:i,className:ot("c-label",g),alignItems:"center",...y,__self:void 0,__source:{fileName:If,lineNumber:24,columnNumber:3}},a&&P.createElement(Rf,{mr:"xxs-2",size:c||"xxs",__self:void 0,__source:{fileName:If,lineNumber:33,columnNumber:16}}),P.createElement(Lt,{as:"span",size:c||"xxs",weight:"bold",textTransform:u?"uppercase":void 0,__self:void 0,__source:{fileName:If,lineNumber:34,columnNumber:5}},t)),M3=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Av=t=>{if(t.propValue!==void 0){if(typeof t.propValue!="boolean"){const r=M3(typeof t.propValue=="number"?t.propValue.toString():t.propValue);return t.className?`${t.className}-${r}@${t.defaultModifier}`:`${r}@${t.defaultModifier}`}if(!t.className)throw new Error('It is necessary to define the argument "className" !');return`${t.className}@${t.defaultModifier}`}},Vt=t=>{if(t.propValue&&["boolean","string","number"].includes(typeof t.propValue)||!t.propValue){const r=Av({className:t.className,defaultModifier:t.defaultModifier||"xs",propValue:t.propValue});return r?[r]:[]}return Object.entries(t.propValue).reduce((r,[i,a])=>{const u=Av({className:t.className,defaultModifier:i,propValue:a});return u&&r.push(u),r},[])},us=t=>typeof t.props=="object"?Object.keys(t.props).reduce((r,i)=>(t.systemPropNames.includes(i)||(r[i]=t.props[i]),r),{}):{},L3=t=>ot(...Vt({className:"bg",defaultModifier:"light",propValue:t.bg}),...Vt({className:"color",defaultModifier:"light",propValue:t.color})),C3=t=>ot(Object.entries(t).filter(([r])=>Object.keys(yp).includes(r)).reduce((r,[i,a])=>(r.push(...Vt({className:i,propValue:a})),r),[])),B3=t=>ot(Object.entries(t).filter(([r])=>Object.keys(vp).includes(r)).reduce((r,[i,a])=>(r.push(...Vt({className:i,propValue:a})),r),[])),F3=({textAlign:t,weight:r,textTransform:i,textDecoration:a,italic:u,fontFamily:c})=>ot(Vt({className:"text",propValue:t}),Vt({className:"font-weight",propValue:r}),{[`text-transform-${i}`]:!!i,[`text-decoration-${a}`]:!!a,"text-italic":!!u,[`font-${c}`]:!!c}),P3=t=>ot(C3(t),L3(t),B3(t)),K3=t=>ot(...Vt({propValue:t.align,className:"self"})),qv=t=>ot(...Vt({propValue:t.alignItems,className:"items"}),...Vt({propValue:t.alignContent,className:"content"}),...Vt({propValue:t.justifyContent,className:"justify"}),...Vt({propValue:t.gap,className:"gap"}),...Vt({propValue:t.gapX,className:"gap-x"}),...Vt({propValue:t.gapY,className:"gap-y"})),R3=({inline:t=!1,direction:r,wrap:i,...a})=>ot(...Vt({propValue:t,className:t?"inline-flex":"flex"}),...Vt({propValue:r,className:"direction"}),...Vt({propValue:i}),qv(a)),I3=({basis:t,shrink:r,grow:i,...a})=>ot(...Vt({propValue:t,className:"basis"}),...Vt({propValue:r,className:"shrink"}),...Vt({propValue:i,className:"grow"}),K3(a));var j3="/home/travis/build/20minutes/hela/src/components/atoms/Layout/Box/Box.tsx";const Qt=Ln(({as:t="div",children:r,...i},a)=>P.createElement(t,{...us({props:i,systemPropNames:Object.keys(y_)}),ref:a,className:ot(P3(i),i?.className),__self:void 0,__source:{fileName:j3,lineNumber:12,columnNumber:3}},r));Qt.displayName="Box";const T3=({colsNumber:t,gap:r,gapX:i,gapY:a,children:u,...c})=>P.createElement(Qt,{...c,className:ot("grid",...Vt({className:"grid-cols-number",propValue:t}),...Vt({className:"grid-gap",propValue:r}),...Vt({className:"grid-gap-row",propValue:i}),...Vt({className:"grid-gap-col",propValue:a}),ot(qv(c),c?.className)),children:u});var z3="/home/travis/build/20minutes/hela/src/components/atoms/Layout/Flex/Flex.tsx";const gt=Ln(({as:t="div",children:r,...i},a)=>P.createElement(Qt,{...us({props:i,systemPropNames:Object.keys(m_)}),as:t,ref:a,className:ot(R3(i),i?.className),__self:void 0,__source:{fileName:z3,lineNumber:13,columnNumber:3}},r));var H3="/home/travis/build/20minutes/hela/src/components/atoms/Layout/Flex/FlexItem/FlexItem.tsx";const ss=Ln(({as:t="div",children:r,...i},a)=>P.createElement(Qt,{...us({props:i,systemPropNames:Object.keys(h_)}),as:t,ref:a,className:ot(I3(i),i?.className),__self:void 0,__source:{fileName:H3,lineNumber:13,columnNumber:5}},r));var A3="/home/travis/build/20minutes/hela/src/components/atoms/Link/Link.tsx";const Uv=Ln(({as:t="a",children:r,color:i,variant:a,...u},c)=>{if(a&&i)throw new Error("You can't use color and variant props together");return P.createElement(Qt,{...u,as:t,ref:c,color:a?void 0:i||"ultramarine",className:ot("c-link",{[`c-btn c-btn--${a}`]:a&&!i},u?.className),__self:void 0,__source:{fileName:A3,lineNumber:18,columnNumber:7}},r)});var q3=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],U3="Tab",V3="Escape";function Ri(t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=t,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}Ri.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=Vl('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(r){r.addEventListener("click",this._show)}.bind(this));const t=this.$el;return this._closers=Vl("[data-a11y-dialog-hide]",this.$el).filter(function(r){return r.closest('[aria-modal="true"], [data-a11y-dialog]')===t}).concat(Vl('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(r){r.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},Ri.prototype.show=function(t){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,Vv(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",t),this)},Ri.prototype.hide=function(t){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",t),this):this},Ri.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(t){t.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(t){t.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},Ri.prototype.on=function(t,r){return typeof this._listeners[t]>"u"&&(this._listeners[t]=[]),this._listeners[t].push(r),this},Ri.prototype.off=function(t,r){var i=(this._listeners[t]||[]).indexOf(r);return i>-1&&this._listeners[t].splice(i,1),this},Ri.prototype._fire=function(t,r){var i=this._listeners[t]||[],a=new CustomEvent(t,{detail:r});this.$el.dispatchEvent(a),i.forEach(function(u){u(this.$el,r)}.bind(this))},Ri.prototype._bindKeypress=function(t){const r=document.activeElement;r&&r.closest('[aria-modal="true"]')!==this.$el||(this.shown&&t.key===V3&&this.$el.getAttribute("role")!=="alertdialog"&&(t.preventDefault(),this.hide(t)),this.shown&&t.key===U3&&Z3(this.$el,t))},Ri.prototype._maintainFocus=function(t){this.shown&&!t.target.closest('[aria-modal="true"]')&&!t.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&Vv(this.$el)};function Q3(t){return Array.prototype.slice.call(t)}function Vl(t,r){return Q3((r||document).querySelectorAll(t))}function Vv(t){var r=t.querySelector("[autofocus]")||t;r.focus()}function X3(t){return Vl(q3.join(","),t).filter(function(r){return!!(r.offsetWidth||r.offsetHeight||r.getClientRects().length)})}function Z3(t,r){var i=X3(t),a=i.indexOf(document.activeElement);r.shiftKey&&a===0?(i[i.length-1].focus(),r.preventDefault()):!r.shiftKey&&a===i.length-1&&(i[0].focus(),r.preventDefault())}function jf(){Vl("[data-a11y-dialog]").forEach(function(t){new Ri(t)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",jf):window.requestAnimationFrame?window.requestAnimationFrame(jf):window.setTimeout(jf,16));var $3="/home/travis/build/20minutes/hela/src/components/atoms/Pipe/Pipe.tsx";function Qv(){return P.createElement("div",{className:"c-pipe",__self:this,__source:{fileName:$3,lineNumber:4,columnNumber:10}})}var cs="/home/travis/build/20minutes/hela/src/components/atoms/ReadAlso/ReadAlso.tsx";const Y3=({title:t,link:r,label:i,isTargetBlank:a,isNofollow:u,isSponsored:c})=>P.createElement("div",{className:"c-read-also",__self:void 0,__source:{fileName:cs,lineNumber:21,columnNumber:3}},P.createElement(Hv,{color:"grey-600",__self:void 0,__source:{fileName:cs,lineNumber:22,columnNumber:5}},i),P.createElement(Qv,{__self:void 0,__source:{fileName:cs,lineNumber:23,columnNumber:5}}),P.createElement(Uv,{href:r,className:"c-read-also__link",target:a?"_blank":void 0,rel:u&&"isNofollow"||c&&"isSponsored"||void 0,__self:void 0,__source:{fileName:cs,lineNumber:24,columnNumber:5}},t)),J3=()=>{const t=document.documentElement.scrollTop;let r=document.documentElement.scrollHeight-document.documentElement.clientHeight;const i=document.querySelector(".js-limit-scroll-progress-bar");i&&(r=i.scrollHeight-document.documentElement.clientHeight+(window.pageYOffset+i.getBoundingClientRect().top));const a=Math.round(t/r*100),u=document.querySelector(".c-progress__bar");u&&(u.style.width=`${a}%`,a>=100&&(u.style.width="100%"))},W3=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",J3)};var Xv="/home/travis/build/20minutes/hela/src/components/atoms/ScrollProgressBar/ScrollProgressBar.tsx";Ln(({variant:t,progressColor:r="ultramarine"},i)=>(dc(()=>{W3()},[]),P.createElement(Qt,{ref:i,bg:"grey-100",className:ot("c-progress",{[`c-progress--${t}`]:t}),__self:void 0,__source:{fileName:Xv,lineNumber:21,columnNumber:7}},P.createElement(Qt,{className:"c-progress__bar",bg:r,style:{width:"0%"},__self:void 0,__source:{fileName:Xv,lineNumber:26,columnNumber:9}}))));const G3=({navigatedList:t,nextBtn:r,prevBtn:i})=>{t&&(t.scrollLeft>0&&(t.scrollLeft+t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible"),r.classList.remove("o-nav-button--visible"),i.classList.add("o-nav-button--visible")),t.clientWidth<t.scrollWidth?r.classList.add("o-nav-button--visible"):(i.classList.remove("o-nav-button--visible"),r.classList.remove("o-nav-button--visible")),t.scrollLeft+t.clientWidth===t.scrollWidth&&r.classList.remove("o-nav-button--visible"))},eP=({navigatedList:t,nextBtn:r,prevBtn:i,sliderVariant:a})=>{if(t)if(t.scrollWidth-t.clientWidth>t.clientWidth){let u=t.scrollLeft;switch(a){case"partners":u+=t.clientWidth+32;break;case"rubrics":u+=t.clientWidth-36;break;default:u+=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:u,behavior:"smooth"}),i.classList.add("o-nav-button--visible"),u+t.clientWidth>=t.scrollWidth&&r.classList.remove("o-nav-button--visible")}else{const u=t.scrollWidth-t.clientWidth;t.scrollTo({left:u,behavior:"smooth"}),r.classList.remove("o-nav-button--visible"),i.classList.add("o-nav-button--visible")}},tP=({navigatedList:t,nextBtn:r,prevBtn:i,sliderVariant:a})=>{if(t)if(t.clientWidth<t.scrollLeft){let u=t.scrollLeft;switch(a){case"partners":u-=t.clientWidth+32;break;case"rubrics":u-=t.clientWidth-36;break;default:u-=Math.ceil(t.clientWidth*.6);break}t.scrollTo({left:u,behavior:"smooth"}),r.classList.add("o-nav-button--visible"),u===0&&i.classList.remove("o-nav-button--visible")}else t.scrollTo({left:0,behavior:"smooth"}),i.classList.remove("o-nav-button--visible"),t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible")},nP=({navigatedList:t,nextBtn:r,prevBtn:i})=>{G3({navigatedList:t,nextBtn:r,prevBtn:i})},rP=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:i}=r.dataset;if(r){const a=r.querySelector(".js-navigation-container__list"),u=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");a&&a.clientWidth<a.scrollWidth&&u?.classList.add("o-nav-button--visible"),u?.addEventListener("click",eP.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:c,sliderVariant:i})),c?.addEventListener("click",tP.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:c,sliderVariant:i}))}}},iP=()=>{const t=document.querySelectorAll(".js-navigation-container");for(const r of Array.from(t)){const{sliderVariant:i}=r.dataset;if(r){const a=r.querySelector(".js-navigation-container__list"),u=r.querySelector(".o-nav-button--next-button"),c=r.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",nP.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:c,sliderVariant:i}))}}};var Za="/home/travis/build/20minutes/hela/src/components/atoms/Slider/Slider.tsx";const oP=t=>{switch(t){case"primary":return{light:"white",dark:"grey-700"};case"secondary":return{light:"grey-100",dark:"grey-700"};default:return}};Ln(({layout:t,children:r,itemsGap:i,buttonsBackground:a,sliderVariant:u="default",...c},g)=>(dc(()=>{t===Dr.DESKTOP&&(rP(),iP())},[]),P.createElement(Qt,{...c,ref:g,className:ot("c-slider js-navigation-container",c?.className),"data-slider-variant":u,__self:void 0,__source:{fileName:Za,lineNumber:40,columnNumber:7}},P.createElement(Qt,{className:"c-slider__viewport js-navigation-container__list",__self:void 0,__source:{fileName:Za,lineNumber:46,columnNumber:9}},P.createElement(gt,{className:"c-slider__list",alignItems:"center",gap:i,__self:void 0,__source:{fileName:Za,lineNumber:47,columnNumber:11}},r)),t===Dr.DESKTOP&&P.createElement(Qt,{className:"c-slider__buttons-container",__self:void 0,__source:{fileName:Za,lineNumber:52,columnNumber:11}},Array.from(["previous","next"],y=>P.createElement(Qt,{key:y,bg:a&&oP(a),pr:a&&y==="previous"?"m":void 0,pl:a&&y==="next"?"m":void 0,className:ot(`c-slider__button-container c-slider__button-container--${y} o-nav-button o-nav-button--${y}-button`,{"c-slider__button-container--has-background":a},{[`c-slider__button-container--${u}`]:u}),__self:void 0,__source:{fileName:Za,lineNumber:54,columnNumber:15}},P.createElement(Lo,{variant:"round",iconProps:{name:"chevron",size:12},__self:void 0,__source:{fileName:Za,lineNumber:67,columnNumber:17}})))))));var fs="/home/travis/build/20minutes/hela/src/components/atoms/Switch/Switch.tsx";const aP=Ln(({id:t,className:r,label:i,isChecked:a=!1},u)=>P.createElement("div",{className:"switch",__self:void 0,__source:{fileName:fs,lineNumber:14,columnNumber:5}},P.createElement("label",{htmlFor:t,className:"switch-label",__self:void 0,__source:{fileName:fs,lineNumber:15,columnNumber:7}},i),P.createElement("button",{type:"button",ref:u,id:t,className:ot("switch-button",r),role:"switch","aria-checked":a,__self:void 0,__source:{fileName:fs,lineNumber:18,columnNumber:7}},P.createElement("span",{"aria-hidden":a,__self:void 0,__source:{fileName:fs,lineNumber:26,columnNumber:9}},a?"on":"off"))));aP.displayName="Switch";var lP="/home/travis/build/20minutes/hela/src/components/atoms/Tag/Tag.tsx";Ln(({as:t="a",id:r,link:i,variant:a="primary",children:u,...c},g)=>P.createElement(Qt,{...c,as:t,ref:g,href:i,className:ot("c-tags",`c-tags--${a}`,c?.className),"data-id":r,__self:void 0,__source:{fileName:lP,lineNumber:15,columnNumber:5}},u));var uP="/home/travis/build/20minutes/hela/src/components/atoms/Typography/Typography.tsx";const Zv=Ln(({as:t="p",children:r,...i},a)=>P.createElement(Qt,{...us({props:i,systemPropNames:Object.keys(b_)}),as:t,ref:a,className:ot(F3(i),i?.className),__self:void 0,__source:{fileName:uP,lineNumber:14,columnNumber:5}},r));var sP="/home/travis/build/20minutes/hela/src/components/atoms/Typography/Heading/Heading.tsx";const $a=Ln(({as:t="h1",size:r,children:i,...a},u)=>P.createElement(Zv,{...a,as:t,ref:u,className:ot(Vt({className:"heading",propValue:r}),a?.className),__self:void 0,__source:{fileName:sP,lineNumber:15,columnNumber:5}},i));var cP="/home/travis/build/20minutes/hela/src/components/atoms/Typography/Text/Text.tsx";const Lt=Ln(({as:t="p",size:r,children:i,...a},u)=>P.createElement(Zv,{...a,as:t,ref:u,className:ot(Vt({className:"text",propValue:r}),a?.className),__self:void 0,__source:{fileName:cP,lineNumber:14,columnNumber:3}},i));var no="/home/travis/build/20minutes/hela/src/components/molecules/Article/ArticleCover/ArticleCover.tsx";const fP=({type:t=Fa.photo,src:r,caption:i,source:a,credits:u,isCaptionInside:c=!1,layout:g=Dr.MOBILE})=>{let y="320x204",b="100vw";const w=["1444x920","722x460","640x408","320x204"];return g===Dr.DESKTOP&&(y="722x460",b="(min-width: 45.125rem) 45.125rem, 100vw"),P.createElement("figure",{className:"c-media",__self:void 0,__source:{fileName:no,lineNumber:35,columnNumber:5}},t===Fa.photo&&P.createElement("div",{className:"c-media__content",__self:void 0,__source:{fileName:no,lineNumber:37,columnNumber:9}},P.createElement(Kf,{src:r,defaultFormat:y,formats:w,sizes:b,alt:i,__self:void 0,__source:{fileName:no,lineNumber:38,columnNumber:11}})),[Fa.video,Fa.podcast].includes(t)&&P.createElement("div",{className:"c-media__content c-media__content--video",dangerouslySetInnerHTML:{__html:r},__self:void 0,__source:{fileName:no,lineNumber:48,columnNumber:9}}),i&&P.createElement(Lt,{as:"figcaption",size:"xs",mt:c?"0":"s",px:c?"l":"0",pb:c?"l":"0",color:c?"white":"grey-300",className:ot("c-media__caption",{"c-media__caption--inside":c}),__self:void 0,__source:{fileName:no,lineNumber:56,columnNumber:9}},i,u&&P.createElement(P.Fragment,null,P.createElement(Lt,{as:"span",color:c?"white":"grey-300",size:"xs",mx:"xxs",__self:void 0,__source:{fileName:no,lineNumber:70,columnNumber:15}},"-"),P.createElement(Lt,{as:"span",color:c?"white":"grey-300",size:"xxs",__self:void 0,__source:{fileName:no,lineNumber:73,columnNumber:15}},u)),a&&P.createElement(P.Fragment,null,P.createElement(Lt,{as:"span",color:c?"white":"grey-300",size:"xs",mx:"xxs",__self:void 0,__source:{fileName:no,lineNumber:80,columnNumber:15}},"-"),P.createElement(Lt,{as:"span",color:c?"white":"grey-300",size:"xxs",__self:void 0,__source:{fileName:no,lineNumber:83,columnNumber:15}},a))))};var dP="/home/travis/build/20minutes/hela/src/components/molecules/Card/Card/Card.tsx";const $v=Ln(({as:t="a",link:r,children:i,...a},u)=>P.createElement(gt,{...a,as:t,ref:u,href:r,justifyContent:a?.justifyContent||"between",className:"c-card",__self:void 0,__source:{fileName:dP,lineNumber:12,columnNumber:3}},i));var Bo="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardExtraSmall/CardExtraSmall.tsx";const pP=({link:t,title:r,cardHeaderProps:i,cardImageProps:a,socialBarProps:u,cardFooterProps:c,...g})=>P.createElement($v,{...g,p:g!=null&&g.bg?"s":void 0,link:t,direction:"column",className:"c-card-extra-small",__self:void 0,__source:{fileName:Bo,lineNumber:28,columnNumber:3}},P.createElement(ss,{__self:void 0,__source:{fileName:Bo,lineNumber:35,columnNumber:5}},P.createElement(Jv,{...i,mb:"xxs-2",__self:void 0,__source:{fileName:Bo,lineNumber:36,columnNumber:7}}),P.createElement(gt,{justifyContent:"between",gap:"m",__self:void 0,__source:{fileName:Bo,lineNumber:37,columnNumber:7}},P.createElement($a,{as:"h4",size:"xxs",fontFamily:"source-serif-pro",className:"c-card-extra-small__title",__self:void 0,__source:{fileName:Bo,lineNumber:38,columnNumber:9}},r),a&&P.createElement(Wv,{...a,defaultFormat:"130x82",formats:["130x82"],sizes:"8.125rem",alt:r,className:"c-card-extra-small__img",__self:void 0,__source:{fileName:Bo,lineNumber:47,columnNumber:11}}))),u&&P.createElement(Gv,{...u,variant:"simple",mt:"xs",__self:void 0,__source:{fileName:Bo,lineNumber:58,columnNumber:24}}),c&&P.createElement(Yv,{...c,mt:"xs",__self:void 0,__source:{fileName:Bo,lineNumber:59,columnNumber:25}}));var Tf="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardFooter/CardFooter.tsx";const Yv=({text:t,secondaryText:r,bg:i,...a})=>P.createElement(gt,{...a,justifyContent:"between",alignItems:"center",gap:"s",__self:void 0,__source:{fileName:Tf,lineNumber:13,columnNumber:3}},P.createElement(Lt,{as:"span",size:"xs",bg:i||void 0,p:i?"xxs":void 0,__self:void 0,__source:{fileName:Tf,lineNumber:14,columnNumber:5}},t),r&&P.createElement(Lt,{as:"span",size:"xxs-3",color:"grey-300",textTransform:"uppercase",__self:void 0,__source:{fileName:Tf,lineNumber:18,columnNumber:7}},r));var Ya="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardHeader/CardHeader.tsx";const Jv=({headline:t,leftSubheader:r,rightSubheader:i,size:a="xxs",...u})=>P.createElement(gt,{...u,alignItems:"center",gap:"xxs-2",color:"grey-400",__self:void 0,__source:{fileName:Ya,lineNumber:15,columnNumber:3}},r&&P.createElement(P.Fragment,null,P.createElement(Lt,{as:"span",size:a,color:r.color,weight:"bold",__self:void 0,__source:{fileName:Ya,lineNumber:18,columnNumber:9}},r.text),P.createElement(Rf,{size:a,__self:void 0,__source:{fileName:Ya,lineNumber:21,columnNumber:9}})),P.createElement(Hv,{color:t.color,bg:t.bg,size:a,__self:void 0,__source:{fileName:Ya,lineNumber:24,columnNumber:5}},t.text),i&&P.createElement(P.Fragment,null,P.createElement(Rf,{size:a,__self:void 0,__source:{fileName:Ya,lineNumber:29,columnNumber:9}}),P.createElement(Lt,{as:"time",size:a,color:i.color,__self:void 0,__source:{fileName:Ya,lineNumber:30,columnNumber:9}},i.text)));var Ql="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardImage/CardImage.tsx";const hP=t=>{switch(t){case"small":return 20;case"medium":return 28;default:return 40}},Wv=({cover:t,formats:r,defaultFormat:i,sizes:a,alt:u,caption:c,...g})=>{const y=P.createElement(Kf,{...!c&&g,src:t,defaultFormat:i,formats:r,sizes:a,alt:u,__self:void 0,__source:{fileName:Ql,lineNumber:29,columnNumber:5}});return P.createElement(Qt,{...c&&g,className:ot("c-card-img",g?.className),__self:void 0,__source:{fileName:Ql,lineNumber:40,columnNumber:5}},c?P.createElement(P.Fragment,null,P.createElement(gt,{color:"white",alignItems:"center",gap:c.size==="small"?"xxs-2":"xxs",className:ot("c-card-img__caption",{[`c-card-img__caption--${c.size||"big"}`]:!0}),__self:void 0,__source:{fileName:Ql,lineNumber:43,columnNumber:11}},P.createElement(Gn,{name:c.iconName,size:hP(c.size||"big"),__self:void 0,__source:{fileName:Ql,lineNumber:51,columnNumber:13}}),P.createElement(Lt,{size:c.size==="small"?"xxs-2":"xxs",weight:"bold",__self:void 0,__source:{fileName:Ql,lineNumber:52,columnNumber:13}},c.text)),y):y)};var Fo="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardMedium/CardMedium.tsx";const mP=({link:t,title:r,cardHeaderProps:i,cardImageProps:a,socialBarProps:u,cardFooterProps:c,bg:g,radius:y,...b})=>P.createElement($v,{...b,link:t,direction:"column",bg:g,radius:g?y||"xxs":void 0,__self:void 0,__source:{fileName:Fo,lineNumber:30,columnNumber:3}},P.createElement(ss,{__self:void 0,__source:{fileName:Fo,lineNumber:31,columnNumber:5}},a&&P.createElement(Wv,{...a,formats:["480x308","414x265","346x222"],defaultFormat:"480x308",sizes:"(min-width: 30rem) 21.625rem, 100vw",alt:r,mb:"xs",style:g?{borderRadius:"unset"}:void 0,__self:void 0,__source:{fileName:Fo,lineNumber:33,columnNumber:9}}),P.createElement(Qt,{px:g?"s":void 0,__self:void 0,__source:{fileName:Fo,lineNumber:43,columnNumber:7}},P.createElement(Jv,{...i,mb:"xxs-2",__self:void 0,__source:{fileName:Fo,lineNumber:44,columnNumber:9}}),P.createElement($a,{as:"h3",size:"m",fontFamily:"oswald",className:"c-card-medium__title",__self:void 0,__source:{fileName:Fo,lineNumber:45,columnNumber:9}},r))),u&&P.createElement(Gv,{...u,variant:"simple",mt:"m",__self:void 0,__source:{fileName:Fo,lineNumber:50,columnNumber:24}}),c&&P.createElement(Yv,{...c,mt:"m",p:g?"s":void 0,__self:void 0,__source:{fileName:Fo,lineNumber:51,columnNumber:25}})),gP=(t,r)=>{r.stopImmediatePropagation(),r.preventDefault();const i=r.currentTarget,a=document.querySelectorAll(".js-collapse__button"),u=document.querySelectorAll('[role="tabpanel"]'),c=i.getAttribute("aria-controls"),g=Object.values(u).find(y=>y.id===c);if(i.getAttribute("aria-expanded")==="true"){i.setAttribute("aria-expanded","false"),g?.setAttribute("aria-hidden","true");return}a.forEach(y=>{y.setAttribute("aria-expanded","false")}),u.forEach(y=>{y.setAttribute("aria-hidden","true")}),i.setAttribute("aria-expanded","true"),g&&g.removeAttribute("aria-hidden")},vP=(t=document.querySelector(".js-collapse__button"))=>{t&&document.querySelectorAll(".c-collapse__button").forEach(r=>{r.addEventListener("click",gP.bind(!1,t))})};var Xl="/home/travis/build/20minutes/hela/src/components/molecules/Collapse/Collapse.tsx";Ln(({title:t,index:r,isOpen:i,color:a,bg:u,iconProps:c,btnProps:g,children:y},b)=>{const w=P.useRef(null);return dc(()=>{w.current&&vP(w.current)},[]),P.createElement("div",{className:"c-collapse js-collapse",ref:b,__self:void 0,__source:{fileName:Xl,lineNumber:29,columnNumber:7}},P.createElement(Qt,{...g,ref:w,as:"button",type:"button",id:`c-collapse__button-${r}`,className:ot("c-collapse__button js-collapse__button",g?.className),"aria-controls":`c-collapse__content-${r}`,"aria-expanded":i||"false",__self:void 0,__source:{fileName:Xl,lineNumber:30,columnNumber:9}},P.createElement($a,{as:"h5",size:"xxs",color:a||"black",__self:void 0,__source:{fileName:Xl,lineNumber:40,columnNumber:11}},t),P.createElement(Gn,{...c,name:"chevron",size:16,className:ot("c-collapse__icon",c?.className),__self:void 0,__source:{fileName:Xl,lineNumber:43,columnNumber:11}})),P.createElement(gt,{direction:"column",p:"m",id:`c-collapse__content-${r}`,"aria-hidden":i?!i:"true","aria-labelledby":`c-collapse__button-${r}`,bg:u||void 0,className:"c-collapse__list",role:"tabpanel",__self:void 0,__source:{fileName:Xl,lineNumber:50,columnNumber:9}},y))});var Zl="/home/travis/build/20minutes/hela/src/components/molecules/Horoscope/HoroscopeTopicCard/HoroscopeTopicCard.tsx";Ln(({icon:t,title:r,content:i,...a},u)=>P.createElement(Qt,{...a,ref:u,className:ot("c-horoscope-topic-card",a?.className),__self:void 0,__source:{fileName:Zl,lineNumber:15,columnNumber:5}},P.createElement(gt,{alignItems:"center",mb:"s",__self:void 0,__source:{fileName:Zl,lineNumber:16,columnNumber:7}},P.createElement(Gn,{className:"c-horoscope-topic-card__icon",name:t,size:21,__self:void 0,__source:{fileName:Zl,lineNumber:17,columnNumber:9}}),P.createElement($a,{as:"h3",size:"xs",__self:void 0,__source:{fileName:Zl,lineNumber:18,columnNumber:9}},r)),P.createElement(Lt,{size:"m",__self:void 0,__source:{fileName:Zl,lineNumber:22,columnNumber:7}},i)));var pn="/home/travis/build/20minutes/hela/src/components/molecules/InfoBanner/InfoBanner.tsx";const yP=({cover:t="https://placehold.jp/%format.png",description:r,variant:i="default",title:a,link:u,closeButton:c,...g})=>i==="framed"?typeof r=="string"?null:P.createElement(gt,{...g,className:ot("c-info-banner",g?.className),color:"black",bg:"grey-100",p:"s",__self:void 0,__source:{fileName:pn,lineNumber:34,columnNumber:7}},P.createElement(gt,{className:"c-info-banner__container",gap:"s",alignItems:"start",__self:void 0,__source:{fileName:pn,lineNumber:41,columnNumber:9}},P.createElement(gt,{className:"c-info-banner__content",direction:"column",justifyContent:"between",__self:void 0,__source:{fileName:pn,lineNumber:42,columnNumber:11}},P.createElement(Lt,{size:"s",color:"black",dangerouslySetInnerHTML:{__html:x3(r)},__self:void 0,__source:{fileName:pn,lineNumber:43,columnNumber:13}})))):i==="alert"&&typeof r=="string"?P.createElement(gt,{...g,className:ot("c-info-banner","c-info-banner--alert",g?.className),alignItems:"center",justifyContent:"center",gap:"s",color:"white",bg:"red",p:"s",__self:void 0,__source:{fileName:pn,lineNumber:59,columnNumber:7}},P.createElement(gt,{className:"c-info-banner__container",gap:"s",alignItems:"start",__self:void 0,__source:{fileName:pn,lineNumber:69,columnNumber:9}},P.createElement(gt,{as:"a",className:"c-info-banner__visual",...u||{},__self:void 0,__source:{fileName:pn,lineNumber:70,columnNumber:11}},P.createElement(Kf,{src:t,defaultFormat:"130x82",formats:["130x82"],sizes:"8.125rem",alt:a,className:"c-info-banner__cover",__self:void 0,__source:{fileName:pn,lineNumber:71,columnNumber:13}})),P.createElement(gt,{className:"c-info-banner__content",direction:"column",justifyContent:{xs:"between"},__self:void 0,__source:{fileName:pn,lineNumber:80,columnNumber:11}},P.createElement(Lt,{className:"c-info-banner__title",color:"red",bg:"white",px:"xxs-2",mb:"xxs-2",size:"s",weight:"bold",__self:void 0,__source:{fileName:pn,lineNumber:85,columnNumber:13}},a),P.createElement(Lt,{as:u?"a":void 0,size:"s",color:"white",...u||{},__self:void 0,__source:{fileName:pn,lineNumber:96,columnNumber:13}},r),c&&P.createElement(Lo,{...c,variant:"ghost",className:"c-info-banner__close",__self:void 0,__source:{fileName:pn,lineNumber:100,columnNumber:15}},P.createElement(Gn,{name:"close",size:12,color:"white",__self:void 0,__source:{fileName:pn,lineNumber:101,columnNumber:17}}))))):P.createElement(gt,{...g,className:ot("c-info-banner",g?.className),color:"black",bg:"grey-100",p:"s",__self:void 0,__source:{fileName:pn,lineNumber:111,columnNumber:5}},P.createElement(gt,{className:"c-info-banner__container",gap:"s",alignItems:"start",__self:void 0,__source:{fileName:pn,lineNumber:118,columnNumber:7}},P.createElement(gt,{className:"c-info-banner__content",direction:"column",justifyContent:{xs:"between"},__self:void 0,__source:{fileName:pn,lineNumber:119,columnNumber:9}},P.createElement($a,{as:"h5",size:"xxs",color:"black",mb:"xs",__self:void 0,__source:{fileName:pn,lineNumber:124,columnNumber:11}},a),P.createElement(Lt,{as:u?"a":void 0,size:"s",color:i==="alert"?"white":"black",...u||{},__self:void 0,__source:{fileName:pn,lineNumber:127,columnNumber:11}},typeof r=="string"?r:""),c&&P.createElement(Lo,{...c,variant:"ghost",className:"c-info-banner__close",__self:void 0,__source:{fileName:pn,lineNumber:136,columnNumber:13}},P.createElement(Gn,{name:"close",size:12,color:"white",__self:void 0,__source:{fileName:pn,lineNumber:137,columnNumber:15}})))));var Ii="/home/travis/build/20minutes/hela/src/components/molecules/SmartBanner/SmartBanner.tsx";const bP=({installButton:t,closeButton:r})=>P.createElement(gt,{className:"c-smart-banner u-skin-darkBlue",alignItems:"center",gap:"xs",__self:void 0,__source:{fileName:Ii,lineNumber:10,columnNumber:3}},P.createElement(Lo,{...r,variant:"ghost",iconProps:{name:"close",size:10},color:"white",p:"0",__self:void 0,__source:{fileName:Ii,lineNumber:11,columnNumber:5}}),P.createElement(Gn,{name:"logo",size:35,bg:"white",color:"ultramarine",className:"c-smart-banner__logo",__self:void 0,__source:{fileName:Ii,lineNumber:21,columnNumber:5}}),P.createElement(Qt,{__self:void 0,__source:{fileName:Ii,lineNumber:22,columnNumber:5}},P.createElement(gt,{__self:void 0,__source:{fileName:Ii,lineNumber:23,columnNumber:7}},P.createElement(Lt,{size:"xxs",weight:"bold",className:"c-smart-banner__title",mb:"xxs-2",__self:void 0,__source:{fileName:Ii,lineNumber:24,columnNumber:9}},"20\xA0Minutes"),P.createElement(gt,{gap:"xxs-2",ml:"xxs-2",alignItems:"start",__self:void 0,__source:{fileName:Ii,lineNumber:27,columnNumber:9}},[0,1,2,3].map(i=>P.createElement(Gn,{name:"star",size:11,key:i,__self:void 0,__source:{fileName:Ii,lineNumber:29,columnNumber:13}})))),P.createElement(Lt,{size:"xxs-2",__self:void 0,__source:{fileName:Ii,lineNumber:33,columnNumber:7}},"Retrouvez l\u2019actualit\xE9 sur notre application")),P.createElement(Lo,{...t,color:"ultramarine",bg:"white",className:"c-smart-banner__btn",__self:void 0,__source:{fileName:Ii,lineNumber:35,columnNumber:5}},"Installer"));var Cn="/home/travis/build/20minutes/hela/src/components/molecules/SocialBar/SocialBar.tsx";const Gv=({variant:t="advanced",commentCount:r,commentAnchor:i,shareCount:a,layout:u,rubricColor:c,...g})=>{const y=P.createElement(P.Fragment,null,P.createElement(gt,{as:"span",className:"c-social__icon",alignItems:"center",justifyContent:"center",bg:t==="simple"?"grey-100":void 0,__self:void 0,__source:{fileName:Cn,lineNumber:26,columnNumber:7}},P.createElement(Gn,{size:20,name:"comment",__self:void 0,__source:{fileName:Cn,lineNumber:33,columnNumber:9}})),P.createElement(Lt,{as:"span",size:t==="simple"?"xxs":"xxs-2",color:t==="simple"?"black":"white",bg:t==="advanced"?c||"ultramarine":void 0,className:"c-social__count",__self:void 0,__source:{fileName:Cn,lineNumber:35,columnNumber:7}},r)),b=P.createElement(P.Fragment,null,P.createElement(gt,{className:"c-social__items",alignItems:"center",as:"div",__self:void 0,__source:{fileName:Cn,lineNumber:49,columnNumber:7}},i?P.createElement("a",{href:`#${i}`,__self:void 0,__source:{fileName:Cn,lineNumber:50,columnNumber:26}},y):y),P.createElement(gt,{className:"c-social__items",alignItems:"center",__self:void 0,__source:{fileName:Cn,lineNumber:52,columnNumber:7}},P.createElement(gt,{as:"span",className:"c-social__icon",alignItems:"center",justifyContent:"center",bg:t==="simple"?"grey-100":void 0,__self:void 0,__source:{fileName:Cn,lineNumber:53,columnNumber:9}},P.createElement(Gn,{size:20,name:"share",__self:void 0,__source:{fileName:Cn,lineNumber:60,columnNumber:11}})),P.createElement(Lt,{as:"span",size:t==="simple"?"xxs":"xxs-2",color:t==="simple"?"black":"white",bg:t==="advanced"?c||"ultramarine":void 0,className:"c-social__count",__self:void 0,__source:{fileName:Cn,lineNumber:62,columnNumber:9}},a)));return P.createElement(gt,{...g,alignItems:"center",gap:"l",direction:t==="advanced"&&u===Dr.DESKTOP?"column":void 0,className:ot("c-social",{"c-social--sidebar":t==="advanced"&&u===Dr.DESKTOP},{"c-social--bar":t==="advanced"&&u===Dr.MOBILE},{"c-social--reaction":t==="simple"}),justifyContent:(t==="simple"?"between":void 0)||(t==="advanced"&&u===Dr.DESKTOP?"start":void 0),bg:t==="advanced"&&u===Dr.MOBILE?"white":void 0,__self:void 0,__source:{fileName:Cn,lineNumber:76,columnNumber:5}},t==="simple"?P.createElement(gt,{alignItems:"center",gap:"xxs",__self:void 0,__source:{fileName:Cn,lineNumber:94,columnNumber:9}},b):b,t!=="simple"&&u===Dr.DESKTOP?P.createElement(P.Fragment,null,P.createElement(Qv,{__self:void 0,__source:{fileName:Cn,lineNumber:102,columnNumber:11}}),P.createElement(gt,{className:"c-social__items",alignItems:"center",__self:void 0,__source:{fileName:Cn,lineNumber:103,columnNumber:11}},P.createElement(Gn,{size:20,name:"bookmark",__self:void 0,__source:{fileName:Cn,lineNumber:104,columnNumber:13}})),P.createElement(gt,{className:"c-social__items",alignItems:"center",__self:void 0,__source:{fileName:Cn,lineNumber:106,columnNumber:11}},P.createElement(Gn,{size:20,name:"report",__self:void 0,__source:{fileName:Cn,lineNumber:107,columnNumber:13}}))):P.createElement(gt,{as:"span",className:"c-social__icon",alignItems:"center",justifyContent:"center",bg:t==="simple"?"grey-100":void 0,__self:void 0,__source:{fileName:Cn,lineNumber:111,columnNumber:9}},P.createElement(Gn,{size:20,name:"bookmark",__self:void 0,__source:{fileName:Cn,lineNumber:118,columnNumber:11}})))},ds={appBanner:{storageName:"20mnAppBanner"},breakingNews:{containerId:"c-alert-info",storageName:"20mnBreakingNews"},storageDelay:864e5},_P=()=>{const{storageName:t}=ds.appBanner,[r,i]=P.useState(cc(t)),a=P.useRef(null),u=P.useRef(null),c=P.useMemo(()=>{var g,y;return!!(!(((g=document.getElementById(ds.breakingNews.containerId))==null?void 0:g.children.length)!==0||(y=cc(ds.breakingNews.storageName))!=null&&y.opened)&&(!r||r!=null&&r.opened||r!=null&&r.time&&r.time+ds.storageDelay<Date.now()))},[r]);return P.useEffect(()=>{c&&i({opened:!0})},[c]),P.useEffect(()=>{r&&localStorage.setItem(t,JSON.stringify(r))},[r]),c?P.createElement(bP,{closeButton:{ref:a,onClick:()=>{a.current&&pp(a.current,"close-app-banner","action"),i({opened:!1,time:new Date().getTime()})}},installButton:{ref:u,onClick:()=>{u.current&&pp(u.current,"open-store-app-banner","action"),i({opened:!1,time:new Date().getTime()});const g=navigator?.userAgent||navigator?.platform||"unknown";window.location.href=/iPhone|iPad|iPod/i.test(g)?"https://apps.apple.com/fr/app/20-minutes-news-en-continu/id308834491":"https://play.google.com/store/apps/details?id=com.backelite.vingtminutes&hl=fr"}}}):null};function ey(t,r){const i=r||{};return i.headers=i.headers||new Headers,i.headers.append("Content-Type","application/json"),fetch(t,i).then(a=>{if(a.ok)return a;throw new Error(`Fetch error: ${a.statusText}`)}).then(a=>a.json())}var wP=Object.defineProperty,SP=Object.defineProperties,xP=Object.getOwnPropertyDescriptors,ty=Object.getOwnPropertySymbols,EP=Object.prototype.hasOwnProperty,kP=Object.prototype.propertyIsEnumerable,ny=(t,r,i)=>r in t?wP(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,NP=(t,r)=>{for(var i in r||(r={}))EP.call(r,i)&&ny(t,i,r[i]);if(ty)for(var i of ty(r))kP.call(r,i)&&ny(t,i,r[i]);return t},OP=(t,r)=>SP(t,xP(r));const zf={appBanner:{containerId:"c-app-banner",storageName:"20mnAppBanner"},breakingNews:{storageName:"20mnBreakingNews"},storageDelay:18e4},DP=()=>{var t;const[r,i]=P.useState(cc(zf.breakingNews.storageName));P.useEffect(()=>{r&&localStorage.setItem(zf.breakingNews.storageName,JSON.stringify(r))},[r]),P.useEffect(()=>{var u;if(r&&!r.opened||r!=null&&r.opened&&r!=null&&r.time&&r.time+zf.storageDelay>new Date().getTime())return;const{apiHost:c,imgHost:g}=document.body.dataset,y=new Headers;(u=window.envVariables)!=null&&u.apiAuthKey&&y.append("auth-key",window.envVariables.apiAuthKey);const b=[`${c}/?id=getBreakingNews&variables=%7B%22brandId%22%3A%22QnJhbmQ6MjBtaW51dGVz%22%7D`,{headers:y}];ey(...b).then(w=>{var D,K,L,T,F,R,j,G,Y,W,J,le,Se,_e,Ie,ve,xe,we;const he=(R=(F=(T=(L=(K=(D=w?.data)==null?void 0:D.brand)==null?void 0:K.node)==null?void 0:L.home)==null?void 0:T.node)==null?void 0:F.homeBreakingNews)==null?void 0:R.node,ge=(G=(j=he?.content)==null?void 0:j.editorial_model)==null?void 0:G.toLowerCase(),De=(W=(Y=he?.content)==null?void 0:Y[ge])==null?void 0:W.node;if(!(De!=null&&De.title)||!(De!=null&&De.url_current))throw new Error("No data found...");let je;if(he!=null&&he.with_photo&&(_e=(Se=(le=(J=De?.medias)==null?void 0:J[0])==null?void 0:le.photo)==null?void 0:Se.node)!=null&&_e.id){const Ce=atob(De.medias[0].photo.node.id).replace("Photo:","");je=`${g}/${Ce}/147x96_${(we=(xe=(ve=(Ie=De?.medias)==null?void 0:Ie.photo)==null?void 0:ve.node)==null?void 0:xe.slug)!=null?we:"media"}`}i({opened:!0,time:new Date().getTime(),data:{description:De.title,url:De.url_current,imageUrl:je}})}).catch(w=>{console.error("20mn> Error while loading the breaking news:",w)})},[]);const a=()=>{i(u=>OP(NP({},u||{}),{opened:!1}))};return r!=null&&r.opened&&r!=null&&r.data?P.createElement(yP,{variant:"alert",title:"ALERTE INFO",description:r.data.description,cover:r.data.imageUrl,link:(t=r?.data)!=null&&t.url?{href:r.data.url}:void 0,closeButton:{onClick:a}}):null},ry=new Intl.RelativeTimeFormat("fr",{numeric:"auto"}),MP=new Intl.DateTimeFormat("fr",{year:"numeric",month:"short",day:"numeric",timeZone:"Europe/Paris"}),LP=t=>{const r=new Date().getTime(),i=new Date(t).getTime(),a=(i-r)/6e4;let u=ry.format(Math.round(a),"minutes");return a<=-60&&(u=ry.format(Math.ceil(a/60),"hours"),a<=-60*24&&(u=MP.format(i))),u};var CP=Object.defineProperty,BP=Object.defineProperties,FP=Object.getOwnPropertyDescriptors,iy=Object.getOwnPropertySymbols,PP=Object.prototype.hasOwnProperty,KP=Object.prototype.propertyIsEnumerable,oy=(t,r,i)=>r in t?CP(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,$l=(t,r)=>{for(var i in r||(r={}))PP.call(r,i)&&oy(t,i,r[i]);if(iy)for(var i of iy(r))KP.call(r,i)&&oy(t,i,r[i]);return t},Hf=(t,r)=>BP(t,FP(r));const RP=({articles:t,layout:r,seeMoreLink:i})=>{const a=c=>{var g;return c.rightSubheader&&new Date((g=c.rightSubheader)==null?void 0:g.text).getTime()?Hf($l({},c),{rightSubheader:{text:LP(c.rightSubheader.text)}}):$l({},c)};let u=P.createElement(Qt,null,t.map(c=>P.createElement(Qt,{key:c.title},P.createElement(E3,{color:"grey-200",my:"s"}),P.createElement(pP,Hf($l({},c),{cardHeaderProps:a(c.cardHeaderProps),mx:"s"})))));return r===Dr.DESKTOP&&(u=P.createElement(T3,{colsNumber:2,gap:"l"},t.map(c=>P.createElement(mP,Hf($l({key:c.title},c),{cardHeaderProps:a(c.cardHeaderProps)}))))),P.createElement(P.Fragment,null,u,i&&P.createElement(gt,{justifyContent:"center",mt:"m"},P.createElement(Lo,$l({variant:"secondary",as:"button"},i))))},IP=t=>typeof window>"u"&&typeof Buffer<"u"?Buffer.from(t,"base64").toString("utf-8"):decodeURIComponent(escape(window?.atob(t))),jP=t=>{const r=IP(t).split(":");return r.length===2?r[1]:""},TP=t=>{const r=i=>`${i}`.padStart(2,"0");return`${r(Math.floor(t/60))}:${r(t-Math.floor(t/60)*60)}`},zP=t=>{var r;let i="";return(r=t.medias)==null||r.forEach(a=>{var u,c,g,y,b,w;if(a.illustration===!0&&a.type==="photo"&&(c=(u=a.photo)==null?void 0:u.node)!=null&&c.id){const D=(y=(g=a.photo)==null?void 0:g.node)!=null&&y.slug?`%format_${(w=(b=a.photo)==null?void 0:b.node)==null?void 0:w.slug}`:"%format";i=`${t.imgEndpoint}/${jP(a.photo.node.id)}/${D}`}}),i},HP=t=>{var r;let i;return(r=t.medias)==null||r.forEach(a=>{var u,c;if(a.type==="podcast"&&(i={caption:{iconName:"podcast",size:t.iconSize}}),a.type==="video"){const g=(u=a.video)!=null&&u.duration?Number((c=a.video)==null?void 0:c.duration):null;i={caption:{iconName:"video",size:t.iconSize,text:g?TP(g):""}}}}),i},AP=(t,r=!0)=>t&&__.includes(t)?`${t}`:r?"default":void 0;var qP=Object.defineProperty,ay=Object.getOwnPropertySymbols,UP=Object.prototype.hasOwnProperty,VP=Object.prototype.propertyIsEnumerable,ly=(t,r,i)=>r in t?qP(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,QP=(t,r)=>{for(var i in r||(r={}))UP.call(r,i)&&ly(t,i,r[i]);if(ay)for(var i of ay(r))VP.call(r,i)&&ly(t,i,r[i]);return t};const XP=t=>{var r,i,a,u,c,g,y;return(y=((g=(c=(u=(a=(i=(r=t.data)==null?void 0:r.brand)==null?void 0:i.node)==null?void 0:a.tag)==null?void 0:u.node)==null?void 0:c.publishableContents)==null?void 0:g.edges)||[])==null?void 0:y.reduce((b,w)=>{var D,K,L,T,F,R,j,G,Y;return!((D=w?.node)!=null&&D.title)||!((K=w?.node)!=null&&K.label)||!((L=w?.node)!=null&&L.url)||!((T=w?.node)!=null&&T.medias)||b.push({link:new URL(w.node.url,t.pageEndpoint).href,title:w.node.short_title||w.node.title,cardImageProps:QP({cover:zP({medias:w.node.medias,imgEndpoint:t.imgEndpoint})},HP({medias:w.node.medias,iconSize:t.layout===Dr.MOBILE?"small":"medium"})),cardHeaderProps:{headline:{text:w.node.label,color:AP((j=(R=(F=w?.node)==null?void 0:F.rubric)==null?void 0:R.node)==null?void 0:j.theme)},rightSubheader:{text:w.node.published_at||""}},socialBarProps:{commentCount:(G=w.node.comments_count)!=null?G:0,shareCount:(Y=w.node.facebook_count)!=null?Y:0}}),b},[])};var ZP=Object.defineProperty,$P=Object.defineProperties,YP=Object.getOwnPropertyDescriptors,uy=Object.getOwnPropertySymbols,JP=Object.prototype.hasOwnProperty,WP=Object.prototype.propertyIsEnumerable,sy=(t,r,i)=>r in t?ZP(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Af=(t,r)=>{for(var i in r||(r={}))JP.call(r,i)&&sy(t,i,r[i]);if(uy)for(var i of uy(r))WP.call(r,i)&&sy(t,i,r[i]);return t},qf=(t,r)=>$P(t,YP(r));const GP=t=>{const{layout:r,articles:i,variablesForQuery:a,seeMoreLink:u}=t,[c,g]=P.useState(a),[y,b]=P.useState(i),[w,D]=P.useState(!1),K=()=>{D(!0),g(L=>qf(Af({},L),{offset:c.offset+c.limit}))};return P.useEffect(()=>{var L;if(JSON.stringify(a)!==JSON.stringify(c)&&c.hasNextPage){const{apiHost:T}=document.body.dataset,F=new Headers;(L=window.envVariables)!=null&&L.apiAuthKey&&F.append("auth-key",window.envVariables.apiAuthKey);const R=[`${T}/?id=getTagArticles&variables=${encodeURIComponent(JSON.stringify(c))}`,{headers:F}];ey(...R).then(j=>{const G=XP({layout:r,pageEndpoint:window.envVariables.pageEndpoint,imgEndpoint:window.envVariables.imgEndpoint,data:j?.data});G.length>0&&b(Y=>[...Y,...G]),G.length<c.limit&&g(Y=>qf(Af({},Y),{hasNextPage:!1})),D(!1)}).catch(j=>{console.error("20mn> Error while loading articles:",j)})}},[c]),P.createElement(P.Fragment,null,P.createElement(RP,{layout:r,articles:y,seeMoreLink:c.hasNextPage?qf(Af({},u),{disabled:w,onClick:K}):void 0}),P.createElement("script",{dangerouslySetInnerHTML:{__html:`window.__staticHydrationData = { ...(window.__staticHydrationData || {}), ...${JSON.stringify({articleListBottomContainer:t})} };`}}))};var e2=Object.defineProperty,cy=Object.getOwnPropertySymbols,t2=Object.prototype.hasOwnProperty,n2=Object.prototype.propertyIsEnumerable,fy=(t,r,i)=>r in t?e2(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,r2=(t,r)=>{for(var i in r||(r={}))t2.call(r,i)&&fy(t,i,r[i]);if(cy)for(var i of cy(r))n2.call(r,i)&&fy(t,i,r[i]);return t};const i2=()=>{const t=document.getElementById("c-alert-info");if(t){const r=uc.createRoot(t);r&&r.render(P.createElement(DP,null))}},o2=()=>{const t=document.getElementById("c-app-banner");if(t){const r=uc.createRoot(t);r&&r.render(P.createElement(_P,null))}},a2=()=>{var t;const r=document.getElementById("article-list-bottom-container"),i=(t=window?.__staticHydrationData)==null?void 0:t.articleListBottomContainer;r&&i&&uc.hydrateRoot(r,P.createElement(GP,r2({},i)))},Uf=(t,r)=>{t.style.transform=`translateY(${r==="show"?"0":"-100%"})`,t.style.transition="transform .4s ease"},dy=({headerMini:t,header:r})=>{document.documentElement.scrollTop>r.offsetHeight?Uf(t,"show"):Uf(t,"hidden"),window.removeEventListener("scroll",dy.bind(!1,{headerMini:t,header:r}))},l2=()=>{const t=document.querySelector(".c-header-mini");if(t){const r=document.documentElement.scrollTop,i=document.querySelector(".c-header");i&&(r>i.offsetHeight&&Uf(t,"show"),window.addEventListener("scroll",dy.bind(!1,{headerMini:t,header:i})))}},py=()=>{T0(),G0(),c_(),i_(),d_(),n_(),i2(),o2(),l2(),a2()};return py(),ap.main=py,ap}({},null,React,ReactDOM);
|
|
73
|
+
*/var Xv;function G3(){if(Xv)return ss;Xv=1;var t=D;function r(h){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+h,N=1;N<arguments.length;N++)_+="&args[]="+encodeURIComponent(arguments[N]);return"Minified React error #"+h+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=null,i=0;function l(h,_){if(_.length!==0)if(512<_.length)0<i&&(h.enqueue(new Uint8Array(o.buffer,0,i)),o=new Uint8Array(512),i=0),h.enqueue(_);else{var N=o.length-i;N<_.length&&(N===0?h.enqueue(o):(o.set(_.subarray(0,N),i),h.enqueue(o),_=_.subarray(N)),o=new Uint8Array(512),i=0),o.set(_,i),i+=_.length}}function c(h,_){return l(h,_),!0}function g(h){o&&0<i&&(h.enqueue(new Uint8Array(o.buffer,0,i)),o=null,i=0)}var v=new TextEncoder;function b(h){return v.encode(h)}function w(h){return v.encode(h)}function L(h,_){typeof h.error=="function"?h.error(_):h.close()}var R=Object.prototype.hasOwnProperty,M=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,z={},B={};function T(h){return R.call(B,h)?!0:R.call(z,h)?!1:M.test(h)?B[h]=!0:(z[h]=!0,!1)}function I(h,_,N,F,Z,U,ne){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=F,this.attributeNamespace=Z,this.mustUseProperty=N,this.propertyName=h,this.type=_,this.sanitizeURL=U,this.removeEmptyString=ne}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(h){G[h]=new I(h,0,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var _=h[0];G[_]=new I(_,1,!1,h[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){G[h]=new I(h,2,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){G[h]=new I(h,2,!1,h,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(h){G[h]=new I(h,3,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){G[h]=new I(h,3,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){G[h]=new I(h,4,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){G[h]=new I(h,6,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){G[h]=new I(h,5,!1,h.toLowerCase(),null,!1,!1)});var Y=/[\-:]([a-z])/g;function W(h){return h[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(h){var _=h.replace(Y,W);G[_]=new I(_,1,!1,h,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(h){var _=h.replace(Y,W);G[_]=new I(_,1,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var _=h.replace(Y,W);G[_]=new I(_,1,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){G[h]=new I(h,1,!1,h.toLowerCase(),null,!1,!1)}),G.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){G[h]=new I(h,1,!1,h.toLowerCase(),null,!0,!0)});var J={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},le=["Webkit","ms","Moz","O"];Object.keys(J).forEach(function(h){le.forEach(function(_){_=_+h.charAt(0).toUpperCase()+h.substring(1),J[_]=J[h]})});var Se=/["'&<>]/;function _e(h){if(typeof h=="boolean"||typeof h=="number")return""+h;h=""+h;var _=Se.exec(h);if(_){var N="",F,Z=0;for(F=_.index;F<h.length;F++){switch(h.charCodeAt(F)){case 34:_=""";break;case 38:_="&";break;case 39:_="'";break;case 60:_="<";break;case 62:_=">";break;default:continue}Z!==F&&(N+=h.substring(Z,F)),Z=F+1,N+=_}h=Z!==F?N+h.substring(Z,F):N}return h}var je=/([A-Z])/g,ve=/^ms-/,xe=Array.isArray,we=w("<script>"),he=w("<\/script>"),ge=w('<script src="'),Le=w('<script type="module" src="'),Ie=w('" async=""><\/script>'),Fe=/(<\/|<)(s)(cript)/gi;function Ae(h,_,N,F){return""+_+(N==="s"?"\\u0073":"\\u0053")+F}function ue(h,_,N,F,Z){h=h===void 0?"":h,_=_===void 0?we:w('<script nonce="'+_e(_)+'">');var U=[];if(N!==void 0&&U.push(_,b((""+N).replace(Fe,Ae)),he),F!==void 0)for(N=0;N<F.length;N++)U.push(ge,b(_e(F[N])),Ie);if(Z!==void 0)for(F=0;F<Z.length;F++)U.push(Le,b(_e(Z[F])),Ie);return{bootstrapChunks:U,startInlineScript:_,placeholderPrefix:w(h+"P:"),segmentPrefix:w(h+"S:"),boundaryPrefix:h+"B:",idPrefix:h,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function fe(h,_){return{insertionMode:h,selectedValue:_}}function ae(h){return fe(h==="http://www.w3.org/2000/svg"?2:h==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Ce(h,_,N){switch(_){case"select":return fe(1,N.value!=null?N.value:N.defaultValue);case"svg":return fe(2,null);case"math":return fe(3,null);case"foreignObject":return fe(1,null);case"table":return fe(4,null);case"thead":case"tbody":case"tfoot":return fe(5,null);case"colgroup":return fe(7,null);case"tr":return fe(6,null)}return 4<=h.insertionMode||h.insertionMode===0?fe(1,null):h}var Je=w("<!-- -->");function Et(h,_,N,F){return _===""?F:(F&&h.push(Je),h.push(b(_e(_))),!0)}var Ft=new Map,Ve=w(' style="'),ze=w(":"),dt=w(";");function Tt(h,_,N){if(typeof N!="object")throw Error(r(62));_=!0;for(var F in N)if(R.call(N,F)){var Z=N[F];if(Z!=null&&typeof Z!="boolean"&&Z!==""){if(F.indexOf("--")===0){var U=b(_e(F));Z=b(_e((""+Z).trim()))}else{U=F;var ne=Ft.get(U);ne!==void 0||(ne=w(_e(U.replace(je,"-$1").toLowerCase().replace(ve,"-ms-"))),Ft.set(U,ne)),U=ne,Z=typeof Z=="number"?Z===0||R.call(J,F)?b(""+Z):b(Z+"px"):b(_e((""+Z).trim()))}_?(_=!1,h.push(Ve,U,ze,Z)):h.push(dt,U,ze,Z)}}_||h.push(kt)}var jt=w(" "),Pt=w('="'),kt=w('"'),en=w('=""');function Xe(h,_,N,F){switch(N){case"style":Tt(h,_,F);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){if(_=G.hasOwnProperty(N)?G[N]:null,_!==null){switch(typeof F){case"function":case"symbol":return;case"boolean":if(!_.acceptsBooleans)return}switch(N=b(_.attributeName),_.type){case 3:F&&h.push(jt,N,en);break;case 4:F===!0?h.push(jt,N,en):F!==!1&&h.push(jt,N,Pt,b(_e(F)),kt);break;case 5:isNaN(F)||h.push(jt,N,Pt,b(_e(F)),kt);break;case 6:!isNaN(F)&&1<=F&&h.push(jt,N,Pt,b(_e(F)),kt);break;default:_.sanitizeURL&&(F=""+F),h.push(jt,N,Pt,b(_e(F)),kt)}}else if(T(N)){switch(typeof F){case"function":case"symbol":return;case"boolean":if(_=N.toLowerCase().slice(0,5),_!=="data-"&&_!=="aria-")return}h.push(jt,b(N),Pt,b(_e(F)),kt)}}}var st=w(">"),ut=w("/>");function Bt(h,_,N){if(_!=null){if(N!=null)throw Error(r(60));if(typeof _!="object"||!("__html"in _))throw Error(r(61));_=_.__html,_!=null&&h.push(b(""+_))}}function mn(h){var _="";return t.Children.forEach(h,function(N){N!=null&&(_+=N)}),_}var Dt=w(' selected=""');function Nt(h,_,N,F){h.push(Pe(N));var Z=N=null,U;for(U in _)if(R.call(_,U)){var ne=_[U];if(ne!=null)switch(U){case"children":N=ne;break;case"dangerouslySetInnerHTML":Z=ne;break;default:Xe(h,F,U,ne)}}return h.push(st),Bt(h,Z,N),typeof N=="string"?(h.push(b(_e(N))),null):N}var rt=w(`
|
|
74
|
+
`),pt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Rt=new Map;function Pe(h){var _=Rt.get(h);if(_===void 0){if(!pt.test(h))throw Error(r(65,h));_=w("<"+h),Rt.set(h,_)}return _}var nt=w("<!DOCTYPE html>");function Ye(h,_,N,F,Z){switch(_){case"select":h.push(Pe("select"));var U=null,ne=null;for(qe in N)if(R.call(N,qe)){var pe=N[qe];if(pe!=null)switch(qe){case"children":U=pe;break;case"dangerouslySetInnerHTML":ne=pe;break;case"defaultValue":case"value":break;default:Xe(h,F,qe,pe)}}return h.push(st),Bt(h,ne,U),U;case"option":ne=Z.selectedValue,h.push(Pe("option"));var He=pe=null,Ze=null,qe=null;for(U in N)if(R.call(N,U)){var Ct=N[U];if(Ct!=null)switch(U){case"children":pe=Ct;break;case"selected":Ze=Ct;break;case"dangerouslySetInnerHTML":qe=Ct;break;case"value":He=Ct;default:Xe(h,F,U,Ct)}}if(ne!=null)if(N=He!==null?""+He:mn(pe),xe(ne)){for(F=0;F<ne.length;F++)if(""+ne[F]===N){h.push(Dt);break}}else""+ne===N&&h.push(Dt);else Ze&&h.push(Dt);return h.push(st),Bt(h,qe,pe),pe;case"textarea":h.push(Pe("textarea")),qe=ne=U=null;for(pe in N)if(R.call(N,pe)&&(He=N[pe],He!=null))switch(pe){case"children":qe=He;break;case"value":U=He;break;case"defaultValue":ne=He;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Xe(h,F,pe,He)}if(U===null&&ne!==null&&(U=ne),h.push(st),qe!=null){if(U!=null)throw Error(r(92));if(xe(qe)&&1<qe.length)throw Error(r(93));U=""+qe}return typeof U=="string"&&U[0]===`
|
|
75
|
+
`&&h.push(rt),U!==null&&h.push(b(_e(""+U))),null;case"input":h.push(Pe("input")),He=qe=pe=U=null;for(ne in N)if(R.call(N,ne)&&(Ze=N[ne],Ze!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":He=Ze;break;case"defaultValue":pe=Ze;break;case"checked":qe=Ze;break;case"value":U=Ze;break;default:Xe(h,F,ne,Ze)}return qe!==null?Xe(h,F,"checked",qe):He!==null&&Xe(h,F,"checked",He),U!==null?Xe(h,F,"value",U):pe!==null&&Xe(h,F,"value",pe),h.push(ut),null;case"menuitem":h.push(Pe("menuitem"));for(var wn in N)if(R.call(N,wn)&&(U=N[wn],U!=null))switch(wn){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:Xe(h,F,wn,U)}return h.push(st),null;case"title":h.push(Pe("title")),U=null;for(Ct in N)if(R.call(N,Ct)&&(ne=N[Ct],ne!=null))switch(Ct){case"children":U=ne;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:Xe(h,F,Ct,ne)}return h.push(st),U;case"listing":case"pre":h.push(Pe(_)),ne=U=null;for(He in N)if(R.call(N,He)&&(pe=N[He],pe!=null))switch(He){case"children":U=pe;break;case"dangerouslySetInnerHTML":ne=pe;break;default:Xe(h,F,He,pe)}if(h.push(st),ne!=null){if(U!=null)throw Error(r(60));if(typeof ne!="object"||!("__html"in ne))throw Error(r(61));N=ne.__html,N!=null&&(typeof N=="string"&&0<N.length&&N[0]===`
|
|
76
|
+
`?h.push(rt,b(N)):h.push(b(""+N)))}return typeof U=="string"&&U[0]===`
|
|
77
|
+
`&&h.push(rt),U;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":h.push(Pe(_));for(var Zt in N)if(R.call(N,Zt)&&(U=N[Zt],U!=null))switch(Zt){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,_));default:Xe(h,F,Zt,U)}return h.push(ut),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Nt(h,N,_,F);case"html":return Z.insertionMode===0&&h.push(nt),Nt(h,N,_,F);default:if(_.indexOf("-")===-1&&typeof N.is!="string")return Nt(h,N,_,F);h.push(Pe(_)),ne=U=null;for(Ze in N)if(R.call(N,Ze)&&(pe=N[Ze],pe!=null))switch(Ze){case"children":U=pe;break;case"dangerouslySetInnerHTML":ne=pe;break;case"style":Tt(h,F,pe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:T(Ze)&&typeof pe!="function"&&typeof pe!="symbol"&&h.push(jt,b(Ze),Pt,b(_e(pe)),kt)}return h.push(st),Bt(h,ne,U),U}}var ht=w("</"),Ge=w(">"),xn=w('<template id="'),ct=w('"></template>'),En=w("<!--$-->"),tn=w('<!--$?--><template id="'),hr=w('"></template>'),Qn=w("<!--$!-->"),ai=w("<!--/$-->"),It=w("<template"),So=w('"'),Jt=w(' data-dgst="');w(' data-msg="'),w(' data-stck="');var xo=w("></template>");function fn(h,_,N){if(l(h,tn),N===null)throw Error(r(395));return l(h,N),c(h,hr)}var qt=w('<div hidden id="'),Kn=w('">'),ot=w("</div>"),Xn=w('<svg aria-hidden="true" style="display:none" id="'),Zn=w('">'),tr=w("</svg>"),kn=w('<math aria-hidden="true" style="display:none" id="'),Cr=w('">'),zt=w("</math>"),li=w('<table hidden id="'),nr=w('">'),Eo=w("</table>"),Mr=w('<table hidden><tbody id="'),ui=w('">'),eo=w("</tbody></table>"),to=w('<table hidden><tr id="'),no=w('">'),mr=w("</tr></table>"),gr=w('<table hidden><colgroup id="'),Ko=w('">'),si=w("</colgroup></table>");function rr(h,_,N,F){switch(N.insertionMode){case 0:case 1:return l(h,qt),l(h,_.segmentPrefix),l(h,b(F.toString(16))),c(h,Kn);case 2:return l(h,Xn),l(h,_.segmentPrefix),l(h,b(F.toString(16))),c(h,Zn);case 3:return l(h,kn),l(h,_.segmentPrefix),l(h,b(F.toString(16))),c(h,Cr);case 4:return l(h,li),l(h,_.segmentPrefix),l(h,b(F.toString(16))),c(h,nr);case 5:return l(h,Mr),l(h,_.segmentPrefix),l(h,b(F.toString(16))),c(h,ui);case 6:return l(h,to),l(h,_.segmentPrefix),l(h,b(F.toString(16))),c(h,no);case 7:return l(h,gr),l(h,_.segmentPrefix),l(h,b(F.toString(16))),c(h,Ko);default:throw Error(r(397))}}function vr(h,_){switch(_.insertionMode){case 0:case 1:return c(h,ot);case 2:return c(h,tr);case 3:return c(h,zt);case 4:return c(h,Eo);case 5:return c(h,eo);case 6:return c(h,mr);case 7:return c(h,si);default:throw Error(r(397))}}var gn=w('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),at=w('$RS("'),Fr=w('","'),Dr=w('")<\/script>'),tt=w('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Pr=w('$RC("'),Br=w('","'),ro=w('")<\/script>'),vt=w('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Kt=w('$RX("'),oo=w('"'),io=w(")<\/script>"),Rr=w(","),Ao=/[<\u2028\u2029]/g;function yr(h){return JSON.stringify(h).replace(Ao,function(_){switch(_){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Wt=Object.assign,Dn=Symbol.for("react.element"),Tr=Symbol.for("react.portal"),un=Symbol.for("react.fragment"),ko=Symbol.for("react.strict_mode"),ci=Symbol.for("react.profiler"),fi=Symbol.for("react.provider"),jr=Symbol.for("react.context"),br=Symbol.for("react.forward_ref"),Ir=Symbol.for("react.suspense"),zr=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.scope"),P=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),q=Symbol.for("react.default_value"),oe=Symbol.iterator;function me(h){if(h==null)return null;if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case un:return"Fragment";case Tr:return"Portal";case ci:return"Profiler";case ko:return"StrictMode";case Ir:return"Suspense";case zr:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case jr:return(h.displayName||"Context")+".Consumer";case fi:return(h._context.displayName||"Context")+".Provider";case br:var _=h.render;return h=h.displayName,h||(h=_.displayName||_.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case p:return _=h.displayName||null,_!==null?_:me(h.type)||"Memo";case S:_=h._payload,h=h._init;try{return me(h(_))}catch{}}return null}var be={};function Ee(h,_){if(h=h.contextTypes,!h)return be;var N={},F;for(F in h)N[F]=_[F];return N}var We=null;function St(h,_){if(h!==_){h.context._currentValue=h.parentValue,h=h.parent;var N=_.parent;if(h===null){if(N!==null)throw Error(r(401))}else{if(N===null)throw Error(r(401));St(h,N)}_.context._currentValue=_.value}}function Ot(h){h.context._currentValue=h.parentValue,h=h.parent,h!==null&&Ot(h)}function nn(h){var _=h.parent;_!==null&&nn(_),h.context._currentValue=h.value}function sn(h,_){if(h.context._currentValue=h.parentValue,h=h.parent,h===null)throw Error(r(402));h.depth===_.depth?St(h,_):sn(h,_)}function _r(h,_){var N=_.parent;if(N===null)throw Error(r(402));h.depth===N.depth?St(h,N):_r(h,N),_.context._currentValue=_.value}function vn(h){var _=We;_!==h&&(_===null?nn(h):h===null?Ot(_):_.depth===h.depth?St(_,h):_.depth>h.depth?sn(_,h):_r(_,h),We=h)}var An={isMounted:function(){return!1},enqueueSetState:function(h,_){h=h._reactInternals,h.queue!==null&&h.queue.push(_)},enqueueReplaceState:function(h,_){h=h._reactInternals,h.replace=!0,h.queue=[_]},enqueueForceUpdate:function(){}};function yn(h,_,N,F){var Z=h.state!==void 0?h.state:null;h.updater=An,h.props=N,h.state=Z;var U={queue:[],replace:!1};h._reactInternals=U;var ne=_.contextType;if(h.context=typeof ne=="object"&&ne!==null?ne._currentValue:F,ne=_.getDerivedStateFromProps,typeof ne=="function"&&(ne=ne(N,Z),Z=ne==null?Z:Wt({},Z,ne),h.state=Z),typeof _.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function"))if(_=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),_!==h.state&&An.enqueueReplaceState(h,h.state,null),U.queue!==null&&0<U.queue.length)if(_=U.queue,ne=U.replace,U.queue=null,U.replace=!1,ne&&_.length===1)h.state=_[0];else{for(U=ne?_[0]:h.state,Z=!0,ne=ne?1:0;ne<_.length;ne++){var pe=_[ne];pe=typeof pe=="function"?pe.call(h,U,N,F):pe,pe!=null&&(Z?(Z=!1,U=Wt({},U,pe)):Wt(U,pe))}h.state=U}else U.queue=null}var or={id:1,overflow:""};function Pn(h,_,N){var F=h.id;h=h.overflow;var Z=32-Hn(F)-1;F&=~(1<<Z),N+=1;var U=32-Hn(_)+Z;if(30<U){var ne=Z-Z%5;return U=(F&(1<<ne)-1).toString(32),F>>=ne,Z-=ne,{id:1<<32-Hn(_)+Z|N<<Z|F,overflow:U+h}}return{id:1<<U|N<<Z|F,overflow:h}}var Hn=Math.clz32?Math.clz32:di,Kr=Math.log,ao=Math.LN2;function di(h){return h>>>=0,h===0?32:31-(Kr(h)/ao|0)|0}function Ar(h,_){return h===_&&(h!==0||1/h===1/_)||h!==h&&_!==_}var Xt=typeof Object.is=="function"?Object.is:Ar,ir=null,lo=null,Ho=null,yt=null,wr=!1,rn=!1,Nn=0,bn=null,Hr=0;function uo(){if(ir===null)throw Error(r(321));return ir}function pi(){if(0<Hr)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function so(){return yt===null?Ho===null?(wr=!1,Ho=yt=pi()):(wr=!0,yt=Ho):yt.next===null?(wr=!1,yt=yt.next=pi()):(wr=!0,yt=yt.next),yt}function Vo(){lo=ir=null,rn=!1,Ho=null,Hr=0,yt=bn=null}function va(h,_){return typeof _=="function"?_(h):_}function Vr(h,_,N){if(ir=uo(),yt=so(),wr){var F=yt.queue;if(_=F.dispatch,bn!==null&&(N=bn.get(F),N!==void 0)){bn.delete(F),F=yt.memoizedState;do F=h(F,N.action),N=N.next;while(N!==null);return yt.memoizedState=F,[F,_]}return[yt.memoizedState,_]}return h=h===va?typeof _=="function"?_():_:N!==void 0?N(_):_,yt.memoizedState=h,h=yt.queue={last:null,dispatch:null},h=h.dispatch=Ti.bind(null,ir,h),[yt.memoizedState,h]}function qo(h,_){if(ir=uo(),yt=so(),_=_===void 0?null:_,yt!==null){var N=yt.memoizedState;if(N!==null&&_!==null){var F=N[1];e:if(F===null)F=!1;else{for(var Z=0;Z<F.length&&Z<_.length;Z++)if(!Xt(_[Z],F[Z])){F=!1;break e}F=!0}if(F)return N[0]}}return h=h(),yt.memoizedState=[h,_],h}function Ti(h,_,N){if(25<=Hr)throw Error(r(301));if(h===ir)if(rn=!0,h={action:N,next:null},bn===null&&(bn=new Map),N=bn.get(_),N===void 0)bn.set(_,h);else{for(_=N;_.next!==null;)_=_.next;_.next=h}}function ya(){throw Error(r(394))}function No(){}var Uo={readContext:function(h){return h._currentValue},useContext:function(h){return uo(),h._currentValue},useMemo:qo,useReducer:Vr,useRef:function(h){ir=uo(),yt=so();var _=yt.memoizedState;return _===null?(h={current:h},yt.memoizedState=h):_},useState:function(h){return Vr(va,h)},useInsertionEffect:No,useLayoutEffect:function(){},useCallback:function(h,_){return qo(function(){return h},_)},useImperativeHandle:No,useEffect:No,useDebugValue:No,useDeferredValue:function(h){return uo(),h},useTransition:function(){return uo(),[!1,ya]},useId:function(){var h=lo.treeContext,_=h.overflow;h=h.id,h=(h&~(1<<32-Hn(h)-1)).toString(32)+_;var N=hi;if(N===null)throw Error(r(404));return _=Nn++,h=":"+N.idPrefix+"R"+h,0<_&&(h+="H"+_.toString(32)),h+":"},useMutableSource:function(h,_){return uo(),_(h._source)},useSyncExternalStore:function(h,_,N){if(N===void 0)throw Error(r(407));return N()}},hi=null,On=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ar(h){return console.error(h),null}function Sr(){}function Qo(h,_,N,F,Z,U,ne,pe,He){var Ze=[],qe=new Set;return _={destination:null,responseState:_,progressiveChunkSize:F===void 0?12800:F,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:qe,pingedTasks:Ze,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Z===void 0?ar:Z,onAllReady:U===void 0?Sr:U,onShellReady:ne===void 0?Sr:ne,onShellError:pe===void 0?Sr:pe,onFatalError:He===void 0?Sr:He},N=ft(_,0,null,N,!1,!1),N.parentFlushed=!0,h=mi(_,h,null,N,qe,be,null,or),Ze.push(h),_}function mi(h,_,N,F,Z,U,ne,pe){h.allPendingTasks++,N===null?h.pendingRootTasks++:N.pendingTasks++;var He={node:_,ping:function(){var Ze=h.pingedTasks;Ze.push(He),Ze.length===1&&Lt(h)},blockedBoundary:N,blockedSegment:F,abortSet:Z,legacyContext:U,context:ne,treeContext:pe};return Z.add(He),He}function ft(h,_,N,F,Z,U){return{status:0,id:-1,index:_,parentFlushed:!1,chunks:[],children:[],formatContext:F,boundary:N,lastPushedText:Z,textEmbedded:U}}function co(h,_){if(h=h.onError(_),h!=null&&typeof h!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof h+'" instead');return h}function qr(h,_){var N=h.onShellError;N(_),N=h.onFatalError,N(_),h.destination!==null?(h.status=2,L(h.destination,_)):(h.status=1,h.fatalError=_)}function Xo(h,_,N,F,Z){for(ir={},lo=_,Nn=0,h=N(F,Z);rn;)rn=!1,Nn=0,Hr+=1,yt=null,h=N(F,Z);return Vo(),h}function $n(h,_,N,F){var Z=N.render(),U=F.childContextTypes;if(U!=null){var ne=_.legacyContext;if(typeof N.getChildContext!="function")F=ne;else{N=N.getChildContext();for(var pe in N)if(!(pe in U))throw Error(r(108,me(F)||"Unknown",pe));F=Wt({},ne,N)}_.legacyContext=F,Bn(h,_,Z),_.legacyContext=ne}else Bn(h,_,Z)}function ji(h,_){if(h&&h.defaultProps){_=Wt({},_),h=h.defaultProps;for(var N in h)_[N]===void 0&&(_[N]=h[N]);return _}return _}function Ii(h,_,N,F,Z){if(typeof N=="function")if(N.prototype&&N.prototype.isReactComponent){Z=Ee(N,_.legacyContext);var U=N.contextType;U=new N(F,typeof U=="object"&&U!==null?U._currentValue:Z),yn(U,N,F,Z),$n(h,_,U,N)}else{U=Ee(N,_.legacyContext),Z=Xo(h,_,N,F,U);var ne=Nn!==0;if(typeof Z=="object"&&Z!==null&&typeof Z.render=="function"&&Z.$$typeof===void 0)yn(Z,N,F,U),$n(h,_,Z,N);else if(ne){F=_.treeContext,_.treeContext=Pn(F,1,0);try{Bn(h,_,Z)}finally{_.treeContext=F}}else Bn(h,_,Z)}else if(typeof N=="string"){switch(Z=_.blockedSegment,U=Ye(Z.chunks,N,F,h.responseState,Z.formatContext),Z.lastPushedText=!1,ne=Z.formatContext,Z.formatContext=Ce(ne,N,F),on(h,_,U),Z.formatContext=ne,N){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Z.chunks.push(ht,b(N),Ge)}Z.lastPushedText=!1}else{switch(N){case X:case P:case ko:case ci:case un:Bn(h,_,F.children);return;case zr:Bn(h,_,F.children);return;case O:throw Error(r(343));case Ir:e:{N=_.blockedBoundary,Z=_.blockedSegment,U=F.fallback,F=F.children,ne=new Set;var pe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ne,errorDigest:null},He=ft(h,Z.chunks.length,pe,Z.formatContext,!1,!1);Z.children.push(He),Z.lastPushedText=!1;var Ze=ft(h,0,null,Z.formatContext,!1,!1);Ze.parentFlushed=!0,_.blockedBoundary=pe,_.blockedSegment=Ze;try{if(on(h,_,F),Ze.lastPushedText&&Ze.textEmbedded&&Ze.chunks.push(Je),Ze.status=1,Ki(pe,Ze),pe.pendingTasks===0)break e}catch(qe){Ze.status=4,pe.forceClientRender=!0,pe.errorDigest=co(h,qe)}finally{_.blockedBoundary=N,_.blockedSegment=Z}_=mi(h,U,N,He,ne,_.legacyContext,_.context,_.treeContext),h.pingedTasks.push(_)}return}if(typeof N=="object"&&N!==null)switch(N.$$typeof){case br:if(F=Xo(h,_,N.render,F,Z),Nn!==0){N=_.treeContext,_.treeContext=Pn(N,1,0);try{Bn(h,_,F)}finally{_.treeContext=N}}else Bn(h,_,F);return;case p:N=N.type,F=ji(N,F),Ii(h,_,N,F,Z);return;case fi:if(Z=F.children,N=N._context,F=F.value,U=N._currentValue,N._currentValue=F,ne=We,We=F={parent:ne,depth:ne===null?0:ne.depth+1,context:N,parentValue:U,value:F},_.context=F,Bn(h,_,Z),h=We,h===null)throw Error(r(403));F=h.parentValue,h.context._currentValue=F===q?h.context._defaultValue:F,h=We=h.parent,_.context=h;return;case jr:F=F.children,F=F(N._currentValue),Bn(h,_,F);return;case S:Z=N._init,N=Z(N._payload),F=ji(N,F),Ii(h,_,N,F,void 0);return}throw Error(r(130,N==null?N:typeof N,""))}}function Bn(h,_,N){if(_.node=N,typeof N=="object"&&N!==null){switch(N.$$typeof){case Dn:Ii(h,_,N.type,N.props,N.ref);return;case Tr:throw Error(r(257));case S:var F=N._init;N=F(N._payload),Bn(h,_,N);return}if(xe(N)){_n(h,_,N);return}if(N===null||typeof N!="object"?F=null:(F=oe&&N[oe]||N["@@iterator"],F=typeof F=="function"?F:null),F&&(F=F.call(N))){if(N=F.next(),!N.done){var Z=[];do Z.push(N.value),N=F.next();while(!N.done);_n(h,_,Z)}return}throw h=Object.prototype.toString.call(N),Error(r(31,h==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":h))}typeof N=="string"?(F=_.blockedSegment,F.lastPushedText=Et(_.blockedSegment.chunks,N,h.responseState,F.lastPushedText)):typeof N=="number"&&(F=_.blockedSegment,F.lastPushedText=Et(_.blockedSegment.chunks,""+N,h.responseState,F.lastPushedText))}function _n(h,_,N){for(var F=N.length,Z=0;Z<F;Z++){var U=_.treeContext;_.treeContext=Pn(U,F,Z);try{on(h,_,N[Z])}finally{_.treeContext=U}}}function on(h,_,N){var F=_.blockedSegment.formatContext,Z=_.legacyContext,U=_.context;try{return Bn(h,_,N)}catch(He){if(Vo(),typeof He=="object"&&He!==null&&typeof He.then=="function"){N=He;var ne=_.blockedSegment,pe=ft(h,ne.chunks.length,null,ne.formatContext,ne.lastPushedText,!0);ne.children.push(pe),ne.lastPushedText=!1,h=mi(h,_.node,_.blockedBoundary,pe,_.abortSet,_.legacyContext,_.context,_.treeContext).ping,N.then(h,h),_.blockedSegment.formatContext=F,_.legacyContext=Z,_.context=U,vn(U)}else throw _.blockedSegment.formatContext=F,_.legacyContext=Z,_.context=U,vn(U),He}}function zi(h){var _=h.blockedBoundary;h=h.blockedSegment,h.status=3,Ga(this,_,h)}function ba(h,_,N){var F=h.blockedBoundary;h.blockedSegment.status=3,F===null?(_.allPendingTasks--,_.status!==2&&(_.status=2,_.destination!==null&&_.destination.close())):(F.pendingTasks--,F.forceClientRender||(F.forceClientRender=!0,h=N===void 0?Error(r(432)):N,F.errorDigest=_.onError(h),F.parentFlushed&&_.clientRenderedBoundaries.push(F)),F.fallbackAbortableTasks.forEach(function(Z){return ba(Z,_,N)}),F.fallbackAbortableTasks.clear(),_.allPendingTasks--,_.allPendingTasks===0&&(F=_.onAllReady,F()))}function Ki(h,_){if(_.chunks.length===0&&_.children.length===1&&_.children[0].boundary===null){var N=_.children[0];N.id=_.id,N.parentFlushed=!0,N.status===1&&Ki(h,N)}else h.completedSegments.push(_)}function Ga(h,_,N){if(_===null){if(N.parentFlushed){if(h.completedRootSegment!==null)throw Error(r(389));h.completedRootSegment=N}h.pendingRootTasks--,h.pendingRootTasks===0&&(h.onShellError=Sr,_=h.onShellReady,_())}else _.pendingTasks--,_.forceClientRender||(_.pendingTasks===0?(N.parentFlushed&&N.status===1&&Ki(_,N),_.parentFlushed&&h.completedBoundaries.push(_),_.fallbackAbortableTasks.forEach(zi,h),_.fallbackAbortableTasks.clear()):N.parentFlushed&&N.status===1&&(Ki(_,N),_.completedSegments.length===1&&_.parentFlushed&&h.partialBoundaries.push(_)));h.allPendingTasks--,h.allPendingTasks===0&&(h=h.onAllReady,h())}function Lt(h){if(h.status!==2){var _=We,N=On.current;On.current=Uo;var F=hi;hi=h.responseState;try{var Z=h.pingedTasks,U;for(U=0;U<Z.length;U++){var ne=Z[U],pe=h,He=ne.blockedSegment;if(He.status===0){vn(ne.context);try{Bn(pe,ne,ne.node),He.lastPushedText&&He.textEmbedded&&He.chunks.push(Je),ne.abortSet.delete(ne),He.status=1,Ga(pe,ne.blockedBoundary,He)}catch(xt){if(Vo(),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"){var Ze=ne.ping;xt.then(Ze,Ze)}else{ne.abortSet.delete(ne),He.status=4;var qe=ne.blockedBoundary,Ct=xt,wn=co(pe,Ct);if(qe===null?qr(pe,Ct):(qe.pendingTasks--,qe.forceClientRender||(qe.forceClientRender=!0,qe.errorDigest=wn,qe.parentFlushed&&pe.clientRenderedBoundaries.push(qe))),pe.allPendingTasks--,pe.allPendingTasks===0){var Zt=pe.onAllReady;Zt()}}}finally{}}}Z.splice(0,U),h.destination!==null&&Hi(h,h.destination)}catch(xt){co(h,xt),qr(h,xt)}finally{hi=F,On.current=N,N===Uo&&vn(_)}}}function Zo(h,_,N){switch(N.parentFlushed=!0,N.status){case 0:var F=N.id=h.nextSegmentId++;return N.lastPushedText=!1,N.textEmbedded=!1,h=h.responseState,l(_,xn),l(_,h.placeholderPrefix),h=b(F.toString(16)),l(_,h),c(_,ct);case 1:N.status=2;var Z=!0;F=N.chunks;var U=0;N=N.children;for(var ne=0;ne<N.length;ne++){for(Z=N[ne];U<Z.index;U++)l(_,F[U]);Z=gi(h,_,Z)}for(;U<F.length-1;U++)l(_,F[U]);return U<F.length&&(Z=c(_,F[U])),Z;default:throw Error(r(390))}}function gi(h,_,N){var F=N.boundary;if(F===null)return Zo(h,_,N);if(F.parentFlushed=!0,F.forceClientRender)F=F.errorDigest,c(_,Qn),l(_,It),F&&(l(_,Jt),l(_,b(_e(F))),l(_,So)),c(_,xo),Zo(h,_,N);else if(0<F.pendingTasks){F.rootSegmentID=h.nextSegmentId++,0<F.completedSegments.length&&h.partialBoundaries.push(F);var Z=h.responseState,U=Z.nextSuspenseID++;Z=w(Z.boundaryPrefix+U.toString(16)),F=F.id=Z,fn(_,h.responseState,F),Zo(h,_,N)}else if(F.byteSize>h.progressiveChunkSize)F.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(F),fn(_,h.responseState,F.id),Zo(h,_,N);else{if(c(_,En),N=F.completedSegments,N.length!==1)throw Error(r(391));gi(h,_,N[0])}return c(_,ai)}function Rn(h,_,N){return rr(_,h.responseState,N.formatContext,N.id),gi(h,_,N),vr(_,N.formatContext)}function Ai(h,_,N){for(var F=N.completedSegments,Z=0;Z<F.length;Z++)vi(h,_,N,F[Z]);if(F.length=0,h=h.responseState,F=N.id,N=N.rootSegmentID,l(_,h.startInlineScript),h.sentCompleteBoundaryFunction?l(_,Pr):(h.sentCompleteBoundaryFunction=!0,l(_,tt)),F===null)throw Error(r(395));return N=b(N.toString(16)),l(_,F),l(_,Br),l(_,h.segmentPrefix),l(_,N),c(_,ro)}function vi(h,_,N,F){if(F.status===2)return!0;var Z=F.id;if(Z===-1){if((F.id=N.rootSegmentID)===-1)throw Error(r(392));return Rn(h,_,F)}return Rn(h,_,F),h=h.responseState,l(_,h.startInlineScript),h.sentCompleteSegmentFunction?l(_,at):(h.sentCompleteSegmentFunction=!0,l(_,gn)),l(_,h.segmentPrefix),Z=b(Z.toString(16)),l(_,Z),l(_,Fr),l(_,h.placeholderPrefix),l(_,Z),c(_,Dr)}function Hi(h,_){o=new Uint8Array(512),i=0;try{var N=h.completedRootSegment;if(N!==null&&h.pendingRootTasks===0){gi(h,_,N),h.completedRootSegment=null;var F=h.responseState.bootstrapChunks;for(N=0;N<F.length-1;N++)l(_,F[N]);N<F.length&&c(_,F[N])}var Z=h.clientRenderedBoundaries,U;for(U=0;U<Z.length;U++){var ne=Z[U];F=_;var pe=h.responseState,He=ne.id,Ze=ne.errorDigest,qe=ne.errorMessage,Ct=ne.errorComponentStack;if(l(F,pe.startInlineScript),pe.sentClientRenderFunction?l(F,Kt):(pe.sentClientRenderFunction=!0,l(F,vt)),He===null)throw Error(r(395));l(F,He),l(F,oo),(Ze||qe||Ct)&&(l(F,Rr),l(F,b(yr(Ze||"")))),(qe||Ct)&&(l(F,Rr),l(F,b(yr(qe||"")))),Ct&&(l(F,Rr),l(F,b(yr(Ct)))),c(F,io)}Z.splice(0,U);var wn=h.completedBoundaries;for(U=0;U<wn.length;U++)Ai(h,_,wn[U]);wn.splice(0,U),g(_),o=new Uint8Array(512),i=0;var Zt=h.partialBoundaries;for(U=0;U<Zt.length;U++){var xt=Zt[U];e:{Z=h,ne=_;var fo=xt.completedSegments;for(pe=0;pe<fo.length;pe++)if(!vi(Z,ne,xt,fo[pe])){pe++,fo.splice(0,pe);var _a=!1;break e}fo.splice(0,pe),_a=!0}if(!_a){h.destination=null,U++,Zt.splice(0,U);return}}Zt.splice(0,U);var po=h.completedBoundaries;for(U=0;U<po.length;U++)Ai(h,_,po[U]);po.splice(0,U)}finally{g(_),h.allPendingTasks===0&&h.pingedTasks.length===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0&&_.close()}}function Vi(h,_){try{var N=h.abortableTasks;N.forEach(function(F){return ba(F,h,_)}),N.clear(),h.destination!==null&&Hi(h,h.destination)}catch(F){co(h,F),qr(h,F)}}return ss.renderToReadableStream=function(h,_){return new Promise(function(N,F){var Z,U,ne=new Promise(function(qe,Ct){U=qe,Z=Ct}),pe=Qo(h,ue(_?_.identifierPrefix:void 0,_?_.nonce:void 0,_?_.bootstrapScriptContent:void 0,_?_.bootstrapScripts:void 0,_?_.bootstrapModules:void 0),ae(_?_.namespaceURI:void 0),_?_.progressiveChunkSize:void 0,_?_.onError:void 0,U,function(){var qe=new ReadableStream({type:"bytes",pull:function(Ct){if(pe.status===1)pe.status=2,L(Ct,pe.fatalError);else if(pe.status!==2&&pe.destination===null){pe.destination=Ct;try{Hi(pe,Ct)}catch(wn){co(pe,wn),qr(pe,wn)}}},cancel:function(){Vi(pe)}},{highWaterMark:0});qe.allReady=ne,N(qe)},function(qe){ne.catch(function(){}),F(qe)},Z);if(_&&_.signal){var He=_.signal,Ze=function(){Vi(pe,He.reason),He.removeEventListener("abort",Ze)};He.addEventListener("abort",Ze)}Lt(pe)})},ss.version="18.2.0",ss}var Za,Zv;Za=W3(),Zv=G3(),Fn.version=Za.version,Fn.renderToString=Za.renderToString,Fn.renderToStaticMarkup=Za.renderToStaticMarkup,Fn.renderToNodeStream=Za.renderToNodeStream,Fn.renderToStaticNodeStream=Za.renderToStaticNodeStream,Fn.renderToReadableStream=Zv.renderToReadableStream;function qf(t,r){(r==null||r>t.length)&&(r=t.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=t[o];return i}function eP(t){if(Array.isArray(t))return qf(t)}function tP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nP(t,r){if(t){if(typeof t=="string")return qf(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return qf(t,r)}}function rP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pi(t){return eP(t)||tP(t)||nP(t)||rP()}function $v(t,r,o,i,l,c){var g=i-o,v=r+o<=t.offset;if(v)return Object.assign({},t,{offset:t.offset+g});var b=r>=t.offset&&r+o<=t.offset+t.length;if(b)return Object.assign({},t,{length:t.length+g});var w=t.offset>=r&&t.offset+t.length<=r+o&&l>0;if(w)return Object.assign({},t,{offset:t.offset+l});var L=t.offset<r&&t.offset+t.length<=r+o&&t.offset+t.length>r&&l>0;if(L)return[Object.assign({},t,{length:r-t.offset}),Object.assign({},t,{offset:r+l,length:t.offset-r+t.length})];var R=t.offset>=r&&t.offset+t.length>r+o&&r+o>t.offset&&c>0;return R?[Object.assign({},t,{offset:t.offset+l,length:r+o-t.offset}),Object.assign({},t,{offset:r+o+l+c,length:t.offset+t.length-(r+o)})]:t}const cs=function(t,r){return t.offset===r.offset?r.length-t.length:t.offset-r.offset};var Yv={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\n":"<br/>"};const oP=function(t){for(var r=Pi(t.text),o=t.entityRanges.sort(cs),i=t.inlineStyleRanges.sort(cs),l="",c=function(v){var b=r[v];if(Yv[b]!==void 0){var w=Yv[b],L=Pi(l).length;l+=w;var R=function(M){return $v(M,L,b.length,w.length,0,0)};o=o.map(R),i=i.map(R)}else l+=b},g=0;g<r.length;g++)c(g);return Object.assign({},t,{text:l,inlineStyleRanges:i,entityRanges:o})};function fs(t){return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fs(t)}var iP=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function $a(t){if(iP.indexOf(t.type)!==-1)return Fn.renderToStaticMarkup(t);var r=Fn.renderToStaticMarkup(D.cloneElement(t,{},"\r")).split("\r");return wo(r.length>1,"convertToHTML: Element of type ".concat(t.type," must render children")),wo(r.length<3,"convertToHTML: Element of type ".concat(t.type," cannot use carriage return character")),{start:r[0],end:r[1]}}function aP(t){return D.isValidElement(t)&&D.Children.count(t.props.children)>0}function ds(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(t==null||typeof t=="string")return t;if(D.isValidElement(t)){if(aP(t))return Fn.renderToStaticMarkup(t);var o=$a(t);if(r!==null&&fs(o)==="object"){var i=o.start,l=o.end;return i+r+l}return o}if(wo(Object.prototype.hasOwnProperty.call(t,"start")&&Object.prototype.hasOwnProperty.call(t,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),r!==null){var c=t.start,g=t.end;return c+r+g}return t}var Jv=function t(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"start";if(D.isValidElement(r)){var i=$a(r);if(typeof i=="string")return 0;var l=i[o].length,c=D.Children.toArray(r.props.children)[0];return l+(c&&D.isValidElement(c)?t(c,o):0)}return fs(r)==="object"&&r[o]?r[o].length:0},Wv=function(){var t=arguments.length>1?arguments[1]:void 0;return t};const lP=function(t,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wv,i=Pi(t.text),l=o;if(o.__isMiddleware&&(l=o(Wv)),Object.prototype.hasOwnProperty.call(t,"entityRanges")&&t.entityRanges.length>0){for(var c=t.entityRanges.sort(cs),g=t.inlineStyleRanges,v=function(w){var L=c[w],R=r[L.key],M=i.slice(L.offset,L.offset+L.length).join(""),z=l(R,M),B=ds(z,M),T=void 0;B||B===""?T=Pi(B):T=M;var I=Jv(z,"start"),G=Jv(z,"end"),Y=function(J,le){return le>w||Object.prototype.hasOwnProperty.call(J,"style")?$v(J,L.offset,L.length,T.length,I,G):J},W=function(J){return J.reduce(function(le,Se,_e){var je=Y(Se,_e);return Array.isArray(je)?le.concat(je):le.concat([je])},[])};c=W(c),g=W(g),i=[].concat(Pi(i.slice(0,L.offset)),Pi(T),Pi(i.slice(L.offset+L.length)))},b=0;b<c.length;b++)v(b);return Object.assign({},t,{text:i.join(""),inlineStyleRanges:g,entityRanges:c})}return t},Gv=function(t){return function(r){return typeof t=="function"?t(r):t[r]}},ey=function(t,r){return function(){var o=t.apply(void 0,arguments);return o??r.apply(void 0,arguments)}};function ty(t){switch(t){case"BOLD":return D.createElement("strong",null);case"ITALIC":return D.createElement("em",null);case"UNDERLINE":return D.createElement("u",null);case"CODE":return D.createElement("code",null);default:return{start:"",end:""}}}var Uf=function(t,r){return t.filter(function(o){return!r.some(function(i){return i.style===o.style})})},uP=function(t,r){return r.reduceRight(function(o,i){var l=o[o.length-1];return wo(l.style===i.style,"Style ".concat(l.style," to be removed doesn't match expected ").concat(i.style)),o.slice(0,-1)},t)},sP=function(t,r){return r.filter(function(o){return t>=o.offset&&t<o.offset+o.length})},cP=function(t,r){var o=t.offset<=r.offset,i=t.offset+t.length>=r.offset+r.length;return o&&i},fP=function(t,r){var o=r.offset+r.length,i=t.offset+t.length;return o-i},dP=function(t,r){for(var o=0;o<t.length;)if(r.every(cP.bind(null,t[o])))o++;else return t.slice(o);return[]},pP=function(t,r,o){return r+ds(t(o.style)).start},hP=function(t,r,o){return ds(t(o.style)).end+r},ny=function(t){return function(r){return t(r)}};ny.__isMiddleware=!0;const mP=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ny;wo(t!=null,"Expected raw block to be non-null");var o;r.__isMiddleware===!0?o=r(ty):o=ey(Gv(r),Gv(ty));for(var i="",l=[],c=t.inlineStyleRanges.sort(cs),g=Pi(t.text),v=0;v<g.length;v++){var b=sP(v,c),w=Uf(l,b),L=Uf(b,l),R=Uf(l,w),M=dP(R,L),z=M.concat(L).sort(fP),B=z.reduce(pP.bind(null,o),""),T=w.concat(M).reduce(hP.bind(null,o),"");i+=T+B+g[v],l=uP(l,M.concat(w)),l=l.concat(z),wo(l.length===b.length,"Character ".concat(v,": ").concat(l.length-b.length," styles left on stack that should no longer be there"))}return i=l.reduceRight(function(I,G){return I+ds(o(G.style)).end},i),i},Qf=function(t){return function(r){return typeof t=="function"?t(r):t[r.type]}};function gP(t){return D.isValidElement(t)&&D.Children.count(t.props.children)>0}function vP(t){return wo(t!=null,"Expected block HTML value to be non-null"),typeof t=="string"?t:D.isValidElement(t)?gP(t)?Fn.renderToStaticMarkup(t):$a(t):Object.prototype.hasOwnProperty.call(t,"element")&&D.isValidElement(t.element)?Object.assign({},t,$a(t.element)):(wo(Object.prototype.hasOwnProperty.call(t,"start")&&Object.prototype.hasOwnProperty.call(t,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),t)}function Ya(t,r){if(wo(t!=null,"Expected block HTML value to be non-null"),typeof t.nest=="function"){var o=$a(t.nest(r)),i=o.start,l=o.end;return Object.assign({},t,{nestStart:i,nestEnd:l})}if(D.isValidElement(t.nest)){var c=$a(t.nest),g=c.start,v=c.end;return Object.assign({},t,{nestStart:g,nestEnd:v})}return wo(Object.prototype.hasOwnProperty.call(t,"nestStart")&&Object.prototype.hasOwnProperty.call(t,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),t}var yP=["1","a","i"];const ry={unstyled:D.createElement("p",null),paragraph:D.createElement("p",null),"header-one":D.createElement("h1",null),"header-two":D.createElement("h2",null),"header-three":D.createElement("h3",null),"header-four":D.createElement("h4",null),"header-five":D.createElement("h5",null),"header-six":D.createElement("h6",null),"code-block":D.createElement("pre",null),blockquote:D.createElement("blockquote",null),"unordered-list-item":{element:D.createElement("li",null),nest:D.createElement("ul",null)},"ordered-list-item":{element:D.createElement("li",null),nest:function(t){var r=yP[t%3];return D.createElement("ol",{type:r})}},media:D.createElement("figure",null),atomic:D.createElement("figure",null)};var bP=function(t,r){return r},oy=function(t){var r=t.styleToHTML,o=r===void 0?{}:r,i=t.blockToHTML,l=i===void 0?{}:i,c=t.entityToHTML,g=c===void 0?bP:c;return function(v){wo(v!=null,"Expected contentState to be non-null");var b;l.__isMiddleware===!0?b=l(Qf(ry)):b=ey(Qf(l),Qf(ry));var w=Uv.convertToRaw(v),L=[],R=w.blocks.map(function(M){var z=M.type,B=M.depth,T="",I="",G=b(M);if(!G)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(M.type));if(!G.nest)T=L.reduceRight(function(_e,je){return _e+Ya(b(je),B).nestEnd},""),L=[];else for(;B+1!==L.length||z!==L[B].type;)if(B+1===L.length){var Y=L[B];T+=Ya(b(Y),B).nestEnd,I+=Ya(b(M),B).nestStart,L[B]=M}else if(B+1<L.length){var W=L[L.length-1];T+=Ya(b(W),B).nestEnd,L=L.slice(0,-1)}else I+=Ya(b(M),B).nestStart,L.push(M);var J=mP(lP(oP(M),w.entityMap,g),o),le=vP(b(M)),Se;return typeof le=="string"?Se=le:Se=le.start+J+le.end,J.length===0&&Object.prototype.hasOwnProperty.call(le,"empty")&&(D.isValidElement(le.empty)?Se=Fn.renderToStaticMarkup(le.empty):Se=le.empty),T+I+Se}).join("");return R=L.reduce(function(M,z){return M+Ya(b(z),z.depth).nestEnd},R),R}};const _P=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return r.length===1&&Object.prototype.hasOwnProperty.call(r[0],"_map")&&r[0].getBlockMap!=null?oy({}).apply(void 0,r):oy.apply(void 0,r)};var Xf="/home/travis/build/20minutes/hela/src/components/molecules/Article/ArticleVideo/ArticleVideo.tsx";const wP=({html:t,caption:r=""})=>D.createElement("figure",{className:"c-media",role:"group",__self:void 0,__source:{fileName:Xf,lineNumber:10,columnNumber:3}},D.createElement("div",{className:"c-media__content c-media__content--video",dangerouslySetInnerHTML:{__html:t},__self:void 0,__source:{fileName:Xf,lineNumber:11,columnNumber:5}}),r&&D.createElement(Mt,{as:"figcaption",size:"xs",mt:"s",color:"grey-300",className:"c-media__caption",__self:void 0,__source:{fileName:Xf,lineNumber:18,columnNumber:7}},r));var Ja="/home/travis/build/20minutes/hela/src/components/molecules/Citation/Citation.tsx";const SP=({citationText:t,citationAuthor:r,colorVariant:o,...i})=>{const l=c=>{switch(c){case"entertainment":case"sport":case"planet":return`diode-rubric-${c}`;default:return"diode-leaning"}};return D.createElement(Ht,{...i,pl:{sm:"l"},__self:void 0,__source:{fileName:Ja,lineNumber:29,columnNumber:5}},D.createElement(er,{size:[29,27],name:l(o),className:"c-divider-section__icon",__self:void 0,__source:{fileName:Ja,lineNumber:30,columnNumber:7}}),D.createElement(Ht,{my:"s",__self:void 0,__source:{fileName:Ja,lineNumber:35,columnNumber:7}},D.createElement(Ia,{as:"h1",fontFamily:"source-serif-pro",size:"m",weight:"regular",__self:void 0,__source:{fileName:Ja,lineNumber:36,columnNumber:9}},'"',t,'"')),r&&D.createElement(Ht,{__self:void 0,__source:{fileName:Ja,lineNumber:41,columnNumber:9}},D.createElement(Mt,{size:"m",weight:"bold",__self:void 0,__source:{fileName:Ja,lineNumber:42,columnNumber:11}},r)))};var ps="/home/travis/build/20minutes/hela/src/helpers/draftjsHtmlHelper.tsx";const xP=t=>(t.entityMap===void 0&&(t.entityMap={}),_P({styleToHTML:r=>{switch(r){case"ITALIC":return D.createElement(Mt,{as:"span",italic:!0,__self:void 0,__source:{fileName:ps,lineNumber:20,columnNumber:18}});case"BOLD":return D.createElement(Mt,{as:"span",weight:"bold",__self:void 0,__source:{fileName:ps,lineNumber:22,columnNumber:18}});case"GRAY":return D.createElement(Mt,{as:"span",color:"grey-500",__self:void 0,__source:{fileName:ps,lineNumber:24,columnNumber:18}});case"RED":case"BLUE":case"PURPLE":case"PINK":return D.createElement(Mt,{as:"span",color:r.toLowerCase(),__self:void 0,__source:{fileName:ps,lineNumber:29,columnNumber:18}});default:return null}},blockToHTML:r=>{switch(r.type){case"unordered-list-item":return{start:"<li>",end:"</li>",nest:"<ul>",nestStart:"<ul>",nestEnd:"</ul>"};case"ordered-list-item":return{start:"<li>",end:"</li>",nest:"<ol>",nestStart:"<ol>",nestEnd:"</ol>"};case"blockquote":return Fn.renderToStaticMarkup(D.createElement(SP,{citationText:r.text}));default:return null}},entityToHTML:(r,o)=>{switch(r.type){case"button":case"LINK":{const i=r.data.buttonProps||r.data;return Fn.renderToStaticMarkup(D.createElement(Pp,{href:i.url,rel:i.nofollow&&"nofollow"||i.sponsored&&"sponsored"||void 0,target:i.targetBlank?"_blank":void 0,variant:r.type==="button"?"primary":void 0,children:i.label?i.label:o}))}case"article":return Fn.renderToStaticMarkup(D.createElement(lw,{label:"Lire Aussi",title:r.data.articleProps.meta.title,link:r.data.articleProps.meta.canonical,isTargetBlank:r.data.isTargetBlank,isNofollow:r.data.isNofollow,isSponsored:r.data.isSponsored}));case"html":return Fn.renderToStaticMarkup(D.createElement("div",{dangerouslySetInnerHTML:{__html:r.data.htmlProps.html}}));case"image":return Fn.renderToStaticMarkup(D.createElement(EP,{type:Ra.photo,src:r.data.imageProps.src,caption:r.data.imageProps.meta.caption}));case"digiteka":return Fn.renderToStaticMarkup(D.createElement(wP,{html:r.data.videoProps.html}));case"iframely":return Fn.renderToStaticMarkup(D.createElement(j_,{html:r.data.embedProps.html}));default:return o}}})(Uv.convertFromRaw(t)));var oi="/home/travis/build/20minutes/hela/src/components/molecules/Article/ArticleCover/ArticleCover.tsx";const EP=({type:t=Ra.photo,src:r,caption:o,source:i,credits:l,isCaptionInside:c=!1,layout:g=Un.MOBILE})=>{let v="320x204",b="100vw";const w=["1444x920","722x460","640x408","320x204"];return g===Un.DESKTOP&&(v="722x460",b="(min-width: 45.125rem) 45.125rem, 100vw"),D.createElement("figure",{className:"c-media",__self:void 0,__source:{fileName:oi,lineNumber:35,columnNumber:5}},t===Ra.photo&&D.createElement("div",{className:"c-media__content",__self:void 0,__source:{fileName:oi,lineNumber:37,columnNumber:9}},D.createElement(Ec,{src:r,defaultFormat:v,formats:w,sizes:b,alt:o,__self:void 0,__source:{fileName:oi,lineNumber:38,columnNumber:11}})),[Ra.video,Ra.podcast].includes(t)&&D.createElement("div",{className:"c-media__content c-media__content--video",dangerouslySetInnerHTML:{__html:r},__self:void 0,__source:{fileName:oi,lineNumber:48,columnNumber:9}}),o&&D.createElement(Mt,{as:"figcaption",size:"xs",mt:c?"0":"s",px:c?"l":"0",pb:c?"l":"0",color:c?"white":"grey-300",className:it("c-media__caption",{"c-media__caption--inside":c}),__self:void 0,__source:{fileName:oi,lineNumber:56,columnNumber:9}},o,l&&D.createElement(D.Fragment,null,D.createElement(Mt,{as:"span",color:c?"white":"grey-300",size:"xs",mx:"xxs",__self:void 0,__source:{fileName:oi,lineNumber:70,columnNumber:15}},"-"),D.createElement(Mt,{as:"span",color:c?"white":"grey-300",size:"xxs",__self:void 0,__source:{fileName:oi,lineNumber:73,columnNumber:15}},l)),i&&D.createElement(D.Fragment,null,D.createElement(Mt,{as:"span",color:c?"white":"grey-300",size:"xs",mx:"xxs",__self:void 0,__source:{fileName:oi,lineNumber:80,columnNumber:15}},"-"),D.createElement(Mt,{as:"span",color:c?"white":"grey-300",size:"xxs",__self:void 0,__source:{fileName:oi,lineNumber:83,columnNumber:15}},i))))};var kP="/home/travis/build/20minutes/hela/src/components/molecules/Card/Card/Card.tsx";const iy=Mn(({as:t="a",link:r,children:o,...i},l)=>D.createElement(mt,{...i,as:t,ref:l,href:r,justifyContent:i?.justifyContent||"between",className:"c-card",__self:void 0,__source:{fileName:kP,lineNumber:12,columnNumber:3}},o));var Bi="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardExtraSmall/CardExtraSmall.tsx";const NP=({link:t,title:r,cardHeaderProps:o,cardImageProps:i,socialBarProps:l,cardFooterProps:c,...g})=>D.createElement(iy,{...g,p:g!=null&&g.bg?"s":void 0,link:t,direction:"column",className:"c-card-extra-small",__self:void 0,__source:{fileName:Bi,lineNumber:28,columnNumber:3}},D.createElement(Su,{__self:void 0,__source:{fileName:Bi,lineNumber:35,columnNumber:5}},D.createElement(ly,{...o,mb:"xxs-2",__self:void 0,__source:{fileName:Bi,lineNumber:36,columnNumber:7}}),D.createElement(mt,{justifyContent:"between",gap:"m",__self:void 0,__source:{fileName:Bi,lineNumber:37,columnNumber:7}},D.createElement(Ia,{as:"h4",size:"xxs",fontFamily:"source-serif-pro",className:"c-card-extra-small__title",__self:void 0,__source:{fileName:Bi,lineNumber:38,columnNumber:9}},r),i&&D.createElement(uy,{...i,defaultFormat:"130x82",formats:["130x82"],sizes:"8.125rem",alt:r,className:"c-card-extra-small__img",__self:void 0,__source:{fileName:Bi,lineNumber:47,columnNumber:11}}))),l&&D.createElement(dy,{...l,variant:"simple",mt:"xs",__self:void 0,__source:{fileName:Bi,lineNumber:58,columnNumber:24}}),c&&D.createElement(ay,{...c,mt:"xs",__self:void 0,__source:{fileName:Bi,lineNumber:59,columnNumber:25}}));var Zf="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardFooter/CardFooter.tsx";const ay=({text:t,secondaryText:r,bg:o,...i})=>D.createElement(mt,{...i,justifyContent:"between",alignItems:"center",gap:"s",__self:void 0,__source:{fileName:Zf,lineNumber:13,columnNumber:3}},D.createElement(Mt,{as:"span",size:"xs",bg:o||void 0,p:o?"xxs":void 0,__self:void 0,__source:{fileName:Zf,lineNumber:14,columnNumber:5}},t),r&&D.createElement(Mt,{as:"span",size:"xxs-3",color:"grey-300",textTransform:"uppercase",__self:void 0,__source:{fileName:Zf,lineNumber:18,columnNumber:7}},r));var Wa="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardHeader/CardHeader.tsx";const ly=({headline:t,leftSubheader:r,rightSubheader:o,size:i="xxs",...l})=>D.createElement(mt,{...l,alignItems:"center",gap:"xxs-2",color:"grey-400",__self:void 0,__source:{fileName:Wa,lineNumber:15,columnNumber:3}},r&&D.createElement(D.Fragment,null,D.createElement(Mt,{as:"span",size:i,color:r.color,weight:"bold",__self:void 0,__source:{fileName:Wa,lineNumber:18,columnNumber:9}},r.text),D.createElement(kc,{size:i,__self:void 0,__source:{fileName:Wa,lineNumber:21,columnNumber:9}})),D.createElement(Mp,{color:t.color,bg:t.bg,size:i,__self:void 0,__source:{fileName:Wa,lineNumber:24,columnNumber:5}},t.text),o&&D.createElement(D.Fragment,null,D.createElement(kc,{size:i,__self:void 0,__source:{fileName:Wa,lineNumber:29,columnNumber:9}}),D.createElement(Mt,{as:"time",size:i,color:o.color,__self:void 0,__source:{fileName:Wa,lineNumber:30,columnNumber:9}},o.text)));var Zl="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardImage/CardImage.tsx";const OP=t=>{switch(t){case"small":return 20;case"medium":return 28;default:return 40}},uy=({cover:t,formats:r,defaultFormat:o,sizes:i,alt:l,caption:c,...g})=>{const v=D.createElement(Ec,{...!c&&g,src:t,defaultFormat:o,formats:r,sizes:i,alt:l,__self:void 0,__source:{fileName:Zl,lineNumber:29,columnNumber:5}});return D.createElement(Ht,{...c&&g,className:it("c-card-img",g?.className),__self:void 0,__source:{fileName:Zl,lineNumber:40,columnNumber:5}},c?D.createElement(D.Fragment,null,D.createElement(mt,{color:"white",alignItems:"center",gap:c.size==="small"?"xxs-2":"xxs",className:it("c-card-img__caption",{[`c-card-img__caption--${c.size||"big"}`]:!0}),__self:void 0,__source:{fileName:Zl,lineNumber:43,columnNumber:11}},D.createElement(er,{name:c.iconName,size:OP(c.size||"big"),__self:void 0,__source:{fileName:Zl,lineNumber:51,columnNumber:13}}),D.createElement(Mt,{size:c.size==="small"?"xxs-2":"xxs",weight:"bold",__self:void 0,__source:{fileName:Zl,lineNumber:52,columnNumber:13}},c.text)),v):v)};var Ri="/home/travis/build/20minutes/hela/src/components/molecules/Card/CardMedium/CardMedium.tsx";const LP=({link:t,title:r,cardHeaderProps:o,cardImageProps:i,socialBarProps:l,cardFooterProps:c,bg:g,radius:v,...b})=>D.createElement(iy,{...b,link:t,direction:"column",bg:g,radius:g?v||"xxs":void 0,__self:void 0,__source:{fileName:Ri,lineNumber:30,columnNumber:3}},D.createElement(Su,{__self:void 0,__source:{fileName:Ri,lineNumber:31,columnNumber:5}},i&&D.createElement(uy,{...i,formats:["480x308","414x265","346x222"],defaultFormat:"480x308",sizes:"(min-width: 30rem) 21.625rem, 100vw",alt:r,mb:"xs",style:g?{borderRadius:"unset"}:void 0,__self:void 0,__source:{fileName:Ri,lineNumber:33,columnNumber:9}}),D.createElement(Ht,{px:g?"s":void 0,__self:void 0,__source:{fileName:Ri,lineNumber:43,columnNumber:7}},D.createElement(ly,{...o,mb:"xxs-2",__self:void 0,__source:{fileName:Ri,lineNumber:44,columnNumber:9}}),D.createElement(Ia,{as:"h3",size:"m",fontFamily:"oswald",className:"c-card-medium__title",__self:void 0,__source:{fileName:Ri,lineNumber:45,columnNumber:9}},r))),l&&D.createElement(dy,{...l,variant:"simple",mt:"m",__self:void 0,__source:{fileName:Ri,lineNumber:50,columnNumber:24}}),c&&D.createElement(ay,{...c,mt:"m",p:g?"s":void 0,__self:void 0,__source:{fileName:Ri,lineNumber:51,columnNumber:25}})),CP=(t,r)=>{r.stopImmediatePropagation(),r.preventDefault();const o=r.currentTarget,i=document.querySelectorAll(".js-collapse__button"),l=document.querySelectorAll('[role="tabpanel"]'),c=o.getAttribute("aria-controls"),g=Object.values(l).find(v=>v.id===c);if(o.getAttribute("aria-expanded")==="true"){o.setAttribute("aria-expanded","false"),g?.setAttribute("aria-hidden","true");return}i.forEach(v=>{v.setAttribute("aria-expanded","false")}),l.forEach(v=>{v.setAttribute("aria-hidden","true")}),o.setAttribute("aria-expanded","true"),g&&g.removeAttribute("aria-hidden")},MP=(t=document.querySelector(".js-collapse__button"))=>{t&&document.querySelectorAll(".c-collapse__button").forEach(r=>{r.addEventListener("click",CP.bind(!1,t))})};var $l="/home/travis/build/20minutes/hela/src/components/molecules/Collapse/Collapse.tsx";Mn(({title:t,index:r,isOpen:o,color:i,bg:l,iconProps:c,btnProps:g,children:v},b)=>{const w=D.useRef(null);return wc(()=>{w.current&&MP(w.current)},[]),D.createElement("div",{className:"c-collapse js-collapse",ref:b,__self:void 0,__source:{fileName:$l,lineNumber:29,columnNumber:7}},D.createElement(Ht,{...g,ref:w,as:"button",type:"button",id:`c-collapse__button-${r}`,className:it("c-collapse__button js-collapse__button",g?.className),"aria-controls":`c-collapse__content-${r}`,"aria-expanded":o||"false",__self:void 0,__source:{fileName:$l,lineNumber:30,columnNumber:9}},D.createElement(Ia,{as:"h5",size:"xxs",color:i||"black",__self:void 0,__source:{fileName:$l,lineNumber:40,columnNumber:11}},t),D.createElement(er,{...c,name:"chevron",size:16,className:it("c-collapse__icon",c?.className),__self:void 0,__source:{fileName:$l,lineNumber:43,columnNumber:11}})),D.createElement(mt,{direction:"column",p:"m",id:`c-collapse__content-${r}`,"aria-hidden":o?!o:"true","aria-labelledby":`c-collapse__button-${r}`,bg:l||void 0,className:"c-collapse__list",role:"tabpanel",__self:void 0,__source:{fileName:$l,lineNumber:50,columnNumber:9}},v))});var Yl="/home/travis/build/20minutes/hela/src/components/molecules/Horoscope/HoroscopeTopicCard/HoroscopeTopicCard.tsx";Mn(({icon:t,title:r,content:o,...i},l)=>D.createElement(Ht,{...i,ref:l,className:it("c-horoscope-topic-card",i?.className),__self:void 0,__source:{fileName:Yl,lineNumber:15,columnNumber:5}},D.createElement(mt,{alignItems:"center",mb:"s",__self:void 0,__source:{fileName:Yl,lineNumber:16,columnNumber:7}},D.createElement(er,{className:"c-horoscope-topic-card__icon",name:t,size:21,__self:void 0,__source:{fileName:Yl,lineNumber:17,columnNumber:9}}),D.createElement(Ia,{as:"h3",size:"xs",__self:void 0,__source:{fileName:Yl,lineNumber:18,columnNumber:9}},r)),D.createElement(Mt,{size:"m",__self:void 0,__source:{fileName:Yl,lineNumber:22,columnNumber:7}},o)));var pn="/home/travis/build/20minutes/hela/src/components/molecules/InfoBanner/InfoBanner.tsx";const FP=({cover:t="https://placehold.jp/%format.png",description:r,variant:o="default",title:i,link:l,closeButton:c,...g})=>o==="framed"?typeof r=="string"?null:D.createElement(mt,{...g,className:it("c-info-banner",g?.className),color:"black",bg:"grey-100",p:"s",__self:void 0,__source:{fileName:pn,lineNumber:34,columnNumber:7}},D.createElement(mt,{className:"c-info-banner__container",gap:"s",alignItems:"start",__self:void 0,__source:{fileName:pn,lineNumber:41,columnNumber:9}},D.createElement(mt,{className:"c-info-banner__content",direction:"column",justifyContent:"between",__self:void 0,__source:{fileName:pn,lineNumber:42,columnNumber:11}},D.createElement(Mt,{size:"s",color:"black",dangerouslySetInnerHTML:{__html:xP(r)},__self:void 0,__source:{fileName:pn,lineNumber:43,columnNumber:13}})))):o==="alert"&&typeof r=="string"?D.createElement(mt,{...g,className:it("c-info-banner","c-info-banner--alert",g?.className),alignItems:"center",justifyContent:"center",gap:"s",color:"white",bg:"red",p:"s",__self:void 0,__source:{fileName:pn,lineNumber:59,columnNumber:7}},D.createElement(mt,{className:"c-info-banner__container",gap:"s",alignItems:"start",__self:void 0,__source:{fileName:pn,lineNumber:69,columnNumber:9}},D.createElement(mt,{as:"a",className:"c-info-banner__visual",...l||{},__self:void 0,__source:{fileName:pn,lineNumber:70,columnNumber:11}},D.createElement(Ec,{src:t,defaultFormat:"130x82",formats:["130x82"],sizes:"8.125rem",alt:i,className:"c-info-banner__cover",__self:void 0,__source:{fileName:pn,lineNumber:71,columnNumber:13}})),D.createElement(mt,{className:"c-info-banner__content",direction:"column",justifyContent:{xs:"between"},__self:void 0,__source:{fileName:pn,lineNumber:80,columnNumber:11}},D.createElement(Mt,{className:"c-info-banner__title",color:"red",bg:"white",px:"xxs-2",mb:"xxs-2",size:"s",weight:"bold",__self:void 0,__source:{fileName:pn,lineNumber:85,columnNumber:13}},i),D.createElement(Mt,{as:l?"a":void 0,size:"s",color:"white",...l||{},__self:void 0,__source:{fileName:pn,lineNumber:96,columnNumber:13}},r),c&&D.createElement(Ni,{...c,variant:"ghost",className:"c-info-banner__close",__self:void 0,__source:{fileName:pn,lineNumber:100,columnNumber:15}},D.createElement(er,{name:"close",size:12,color:"white",__self:void 0,__source:{fileName:pn,lineNumber:101,columnNumber:17}}))))):D.createElement(mt,{...g,className:it("c-info-banner",g?.className),color:"black",bg:"grey-100",p:"s",__self:void 0,__source:{fileName:pn,lineNumber:111,columnNumber:5}},D.createElement(mt,{className:"c-info-banner__container",gap:"s",alignItems:"start",__self:void 0,__source:{fileName:pn,lineNumber:118,columnNumber:7}},D.createElement(mt,{className:"c-info-banner__content",direction:"column",justifyContent:{xs:"between"},__self:void 0,__source:{fileName:pn,lineNumber:119,columnNumber:9}},D.createElement(Ia,{as:"h5",size:"xxs",color:"black",mb:"xs",__self:void 0,__source:{fileName:pn,lineNumber:124,columnNumber:11}},i),D.createElement(Mt,{as:l?"a":void 0,size:"s",color:o==="alert"?"white":"black",...l||{},__self:void 0,__source:{fileName:pn,lineNumber:127,columnNumber:11}},typeof r=="string"?r:""),c&&D.createElement(Ni,{...c,variant:"ghost",className:"c-info-banner__close",__self:void 0,__source:{fileName:pn,lineNumber:136,columnNumber:13}},D.createElement(er,{name:"close",size:12,color:"white",__self:void 0,__source:{fileName:pn,lineNumber:137,columnNumber:15}})))));var ii={};Object.defineProperty(ii,"__esModule",{value:!0}),ii.StickyShareButtons=cy=ii.InlineShareButtons=ii.InlineReactionButtons=ii.InlineFollowButtons=void 0;var Gr=DP(D);function DP(t){return t&&t.__esModule?t:{default:t}}function hs(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hs=function(r){return typeof r}:hs=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hs(t)}function ms(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function sy(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function gs(t,r,o){return r&&sy(t.prototype,r),o&&sy(t,o),t}function vs(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&$f(t,r)}function $f(t,r){return $f=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},$f(t,r)}function ys(t){var r=RP();return function(){var o=bs(t),i;if(r){var l=bs(this).constructor;i=Reflect.construct(o,arguments,l)}else i=o.apply(this,arguments);return PP(this,i)}}function PP(t,r){return r&&(hs(r)==="object"||typeof r=="function")?r:BP(t)}function BP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function RP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function bs(t){return bs=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},bs(t)}var _s=function(t,r){var o=t.props.config||{enabled:!0};o=JSON.parse(JSON.stringify(o));var i=window.onShareThisLoaded,l=function b(){if(!b.complete){if(!o.id){var w="sharethis-"+Date.now();o.id=w}t.buttons.current&&(t.buttons.current.id=o.id,window.__sharethis__.load(r,o)),i&&i(),b.complete=!0}};if(window.onShareThisLoaded=l,document.getElementById("sharethis-js"))window.__sharethis__&&window.onShareThisLoaded();else{var c=document.createElement("script");c.setAttribute("id","sharethis-js");var g={property:o.property||"",product:r,source:"reactjs"},v=Object.keys(g).map(function(b){return b+"="+g[b]}).join("&");c.src="https://platform-api.sharethis.com/js/sharethis.js?"+v,c.async=!0,document.body.appendChild(c)}},TP=function(t){vs(o,t);var r=ys(o);function o(i){var l;return ms(this,o),l=r.call(this,i),l.buttons=Gr.default.createRef(),l}return gs(o,[{key:"componentDidMount",value:function(){_s(this,"inline-follow-buttons")}},{key:"render",value:function(){return Gr.default.createElement("div",{ref:this.buttons})}}]),o}(Gr.default.Component);ii.InlineFollowButtons=TP;var jP=function(t){vs(o,t);var r=ys(o);function o(i){var l;return ms(this,o),l=r.call(this,i),l.buttons=Gr.default.createRef(),l}return gs(o,[{key:"componentDidMount",value:function(){_s(this,"inline-share-buttons")}},{key:"render",value:function(){return Gr.default.createElement("div",{ref:this.buttons})}}]),o}(Gr.default.Component),cy=ii.InlineShareButtons=jP,IP=function(t){vs(o,t);var r=ys(o);function o(i){var l;return ms(this,o),l=r.call(this,i),l.buttons=Gr.default.createRef(),l}return gs(o,[{key:"componentDidMount",value:function(){_s(this,"inline-reaction-buttons")}},{key:"render",value:function(){return Gr.default.createElement("div",{ref:this.buttons})}}]),o}(Gr.default.Component);ii.InlineReactionButtons=IP;var zP=function(t){vs(o,t);var r=ys(o);function o(i){var l;return ms(this,o),l=r.call(this,i),l.buttons=Gr.default.createRef(),l}return gs(o,[{key:"componentDidMount",value:function(){_s(this,"sticky-share-buttons")}},{key:"render",value:function(){return Gr.default.createElement("div",{ref:this.buttons})}}]),o}(Gr.default.Component);ii.StickyShareButtons=zP;var fy="/home/travis/build/20minutes/hela/src/components/molecules/ShareBar/ShareBar.tsx";const KP=({networks:t=["sharethis"],...r})=>{const o={width:t.length?`${38*t.length+20}px`:"inherit"};return D.createElement(Ht,{p:"xxs-2",...r,className:"c-share-bar",style:o,radius:"m",__self:void 0,__source:{fileName:fy,lineNumber:44,columnNumber:5}},D.createElement(cy,{config:{alignment:"center",color:"social",enabled:!0,font_size:18,labels:null,language:"en",networks:t,padding:8,radius:15,show_total:!1,size:30},__self:void 0,__source:{fileName:fy,lineNumber:45,columnNumber:7}}))};var zo="/home/travis/build/20minutes/hela/src/components/molecules/SmartBanner/SmartBanner.tsx";const AP=({installButton:t,closeButton:r})=>D.createElement(mt,{className:"c-smart-banner u-skin-darkBlue",alignItems:"center",gap:"xs",__self:void 0,__source:{fileName:zo,lineNumber:10,columnNumber:3}},D.createElement(Ni,{...r,variant:"ghost",iconProps:{name:"close",size:10},color:"white",p:"0",__self:void 0,__source:{fileName:zo,lineNumber:11,columnNumber:5}}),D.createElement(er,{name:"logo",size:35,bg:"white",color:"ultramarine",className:"c-smart-banner__logo",__self:void 0,__source:{fileName:zo,lineNumber:21,columnNumber:5}}),D.createElement(Ht,{__self:void 0,__source:{fileName:zo,lineNumber:22,columnNumber:5}},D.createElement(mt,{__self:void 0,__source:{fileName:zo,lineNumber:23,columnNumber:7}},D.createElement(Mt,{size:"xxs",weight:"bold",className:"c-smart-banner__title",mb:"xxs-2",__self:void 0,__source:{fileName:zo,lineNumber:24,columnNumber:9}},"20\xA0Minutes"),D.createElement(mt,{gap:"xxs-2",ml:"xxs-2",alignItems:"start",__self:void 0,__source:{fileName:zo,lineNumber:27,columnNumber:9}},[0,1,2,3].map(o=>D.createElement(er,{name:"star",size:11,key:o,__self:void 0,__source:{fileName:zo,lineNumber:29,columnNumber:13}})))),D.createElement(Mt,{size:"xxs-2",__self:void 0,__source:{fileName:zo,lineNumber:33,columnNumber:7}},"Retrouvez l\u2019actualit\xE9 sur notre application")),D.createElement(Ni,{...t,color:"ultramarine",bg:"white",className:"c-smart-banner__btn",__self:void 0,__source:{fileName:zo,lineNumber:35,columnNumber:5}},"Installer")),HP=(t,r)=>{const o=document.querySelector(t);o&&o.classList.toggle(r)};var hn="/home/travis/build/20minutes/hela/src/components/molecules/SocialBar/SocialBar.tsx";const dy=({variant:t="advanced",commentCount:r,commentAnchor:o,shareCount:i,networks:l=["sharethis"],layout:c,rubricColor:g,saveAction:v,reportAction:b,...w})=>{const L=D.createElement(D.Fragment,null,D.createElement(mt,{as:"span",className:"c-social__icon",alignItems:"center",justifyContent:"center",bg:t==="simple"?"grey-100":void 0,...c===Un.MOBILE&&{id:"mbrs-social-comments-container"},__self:void 0,__source:{fileName:hn,lineNumber:33,columnNumber:7}},D.createElement(er,{size:20,name:"comment",__self:void 0,__source:{fileName:hn,lineNumber:43,columnNumber:9}})),D.createElement(Mt,{as:"span",size:t==="simple"?"xxs":"xxs-2",color:t==="simple"?"black":"white",bg:t==="advanced"?g||"ultramarine":void 0,className:"c-social__count",__self:void 0,__source:{fileName:hn,lineNumber:45,columnNumber:7}},r)),R=D.createElement(D.Fragment,null,D.createElement(mt,{className:"c-social__items",alignItems:"center",as:"div",__self:void 0,__source:{fileName:hn,lineNumber:59,columnNumber:7}},o?D.createElement("a",{href:`#${o}`,__self:void 0,__source:{fileName:hn,lineNumber:60,columnNumber:26}},L):L),D.createElement(mt,{className:"c-social__items",alignItems:"center",onClick:()=>HP(".c-social__sharebar__container","c-social__sharebar__container--hidden"),__self:void 0,__source:{fileName:hn,lineNumber:62,columnNumber:7}},D.createElement(mt,{as:"span",className:"c-social__icon",alignItems:"center",justifyContent:"center",bg:t==="simple"?"grey-100":void 0,__self:void 0,__source:{fileName:hn,lineNumber:69,columnNumber:9}},D.createElement(er,{size:20,name:"share",__self:void 0,__source:{fileName:hn,lineNumber:76,columnNumber:11}})),D.createElement(Mt,{as:"span",size:t==="simple"?"xxs":"xxs-2",color:t==="simple"?"black":"white",bg:t==="advanced"?g||"ultramarine":void 0,className:"c-social__count",__self:void 0,__source:{fileName:hn,lineNumber:78,columnNumber:9}},i),c===Un.DESKTOP&&D.createElement("div",{className:"c-social__sharebar__container c-social__sharebar__container--hidden",__self:void 0,__source:{fileName:hn,lineNumber:88,columnNumber:11}},D.createElement(KP,{networks:l,__self:void 0,__source:{fileName:hn,lineNumber:89,columnNumber:13}}))));return D.createElement(mt,{...w,alignItems:"center",gap:"l",direction:t==="advanced"&&c===Un.DESKTOP?"column":void 0,className:it("c-social",{"c-social--sidebar":t==="advanced"&&c===Un.DESKTOP},{"c-social--bar":t==="advanced"&&c===Un.MOBILE},{"c-social--reaction":t==="simple"}),justifyContent:(t==="simple"?"between":void 0)||(t==="advanced"&&c===Un.DESKTOP?"start":void 0),bg:t==="advanced"&&c===Un.MOBILE?"white":void 0,__self:void 0,__source:{fileName:hn,lineNumber:97,columnNumber:5}},t==="simple"?D.createElement(mt,{alignItems:"center",gap:"xxs",__self:void 0,__source:{fileName:hn,lineNumber:115,columnNumber:9}},R):R,t!=="simple"&&c===Un.DESKTOP&&(!!b||!!v)&&D.createElement(D.Fragment,null,D.createElement(Rp,{__self:void 0,__source:{fileName:hn,lineNumber:125,columnNumber:13}}),!!v&&D.createElement(mt,{className:"c-social__items",alignItems:"center",__self:void 0,__source:{fileName:hn,lineNumber:127,columnNumber:15}},D.createElement(er,{size:20,name:"bookmark",onClick:v,__self:void 0,__source:{fileName:hn,lineNumber:128,columnNumber:17}})),!!b&&D.createElement(mt,{className:"c-social__items",alignItems:"center",__self:void 0,__source:{fileName:hn,lineNumber:132,columnNumber:15}},D.createElement(er,{size:20,name:"report",__self:void 0,__source:{fileName:hn,lineNumber:133,columnNumber:17}}))),!!v&&!(t!=="simple"&&c===Un.DESKTOP)&&D.createElement(mt,{as:"span",className:"c-social__icon",alignItems:"center",justifyContent:"center",bg:t==="simple"?"grey-100":void 0,__self:void 0,__source:{fileName:hn,lineNumber:139,columnNumber:9}},D.createElement(er,{size:20,name:"bookmark",onClick:v,__self:void 0,__source:{fileName:hn,lineNumber:146,columnNumber:11}})))},ws={appBanner:{storageName:"20mnAppBanner"},breakingNews:{containerId:"c-alert-info",storageName:"20mnBreakingNews"},storageDelay:864e5},VP=()=>{const{storageName:t}=ws.appBanner,[r,o]=D.useState(bc(t)),i=D.useRef(null),l=D.useRef(null),c=D.useMemo(()=>{var g,v;return!!(!(((g=document.getElementById(ws.breakingNews.containerId))==null?void 0:g.children.length)!==0||(v=bc(ws.breakingNews.storageName))!=null&&v.opened)&&(!r||r!=null&&r.opened||r!=null&&r.time&&r.time+ws.storageDelay<Date.now()))},[r]);return D.useEffect(()=>{c&&o({opened:!0})},[c]),D.useEffect(()=>{r&&localStorage.setItem(t,JSON.stringify(r))},[r]),c?D.createElement(AP,{closeButton:{ref:i,onClick:()=>{i.current&&xp(i.current,"close-app-banner","action"),o({opened:!1,time:new Date().getTime()})}},installButton:{ref:l,onClick:()=>{l.current&&xp(l.current,"open-store-app-banner","action"),o({opened:!1,time:new Date().getTime()});const g=navigator?.userAgent||navigator?.platform||"unknown";window.location.href=/iPhone|iPad|iPod/i.test(g)?"https://apps.apple.com/fr/app/20-minutes-news-en-continu/id308834491":"https://play.google.com/store/apps/details?id=com.backelite.vingtminutes&hl=fr"}}}):null};function py(t,r){const o=r||{};return o.headers=o.headers||new Headers,o.headers.append("Content-Type","application/json"),fetch(t,o).then(i=>{if(i.ok)return i;throw new Error(`Fetch error: ${i.statusText}`)}).then(i=>i.json())}var qP=Object.defineProperty,UP=Object.defineProperties,QP=Object.getOwnPropertyDescriptors,hy=Object.getOwnPropertySymbols,XP=Object.prototype.hasOwnProperty,ZP=Object.prototype.propertyIsEnumerable,my=(t,r,o)=>r in t?qP(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,$P=(t,r)=>{for(var o in r||(r={}))XP.call(r,o)&&my(t,o,r[o]);if(hy)for(var o of hy(r))ZP.call(r,o)&&my(t,o,r[o]);return t},YP=(t,r)=>UP(t,QP(r));const Yf={appBanner:{containerId:"c-app-banner",storageName:"20mnAppBanner"},breakingNews:{storageName:"20mnBreakingNews"},storageDelay:18e4},JP=()=>{var t;const[r,o]=D.useState(bc(Yf.breakingNews.storageName));D.useEffect(()=>{r&&localStorage.setItem(Yf.breakingNews.storageName,JSON.stringify(r))},[r]),D.useEffect(()=>{var l;if(r&&!r.opened||r!=null&&r.opened&&r!=null&&r.time&&r.time+Yf.storageDelay>new Date().getTime())return;const{apiHost:c,imgHost:g}=document.body.dataset,v=new Headers;(l=window.envVariables)!=null&&l.apiAuthKey&&v.append("auth-key",window.envVariables.apiAuthKey);const b=[`${c}/?id=getBreakingNews&variables=%7B%22brandId%22%3A%22QnJhbmQ6MjBtaW51dGVz%22%7D`,{headers:v}];py(...b).then(w=>{var L,R,M,z,B,T,I,G,Y,W,J,le,Se,_e,je,ve,xe,we;const he=(T=(B=(z=(M=(R=(L=w?.data)==null?void 0:L.brand)==null?void 0:R.node)==null?void 0:M.home)==null?void 0:z.node)==null?void 0:B.homeBreakingNews)==null?void 0:T.node,ge=(G=(I=he?.content)==null?void 0:I.editorial_model)==null?void 0:G.toLowerCase(),Le=(W=(Y=he?.content)==null?void 0:Y[ge])==null?void 0:W.node;if(!(Le!=null&&Le.title)||!(Le!=null&&Le.url_current))throw new Error("No data found...");let Ie;if(he!=null&&he.with_photo&&(_e=(Se=(le=(J=Le?.medias)==null?void 0:J[0])==null?void 0:le.photo)==null?void 0:Se.node)!=null&&_e.id){const Fe=atob(Le.medias[0].photo.node.id).replace("Photo:","");Ie=`${g}/${Fe}/147x96_${(we=(xe=(ve=(je=Le?.medias)==null?void 0:je.photo)==null?void 0:ve.node)==null?void 0:xe.slug)!=null?we:"media"}`}o({opened:!0,time:new Date().getTime(),data:{description:Le.title,url:Le.url_current,imageUrl:Ie}})}).catch(w=>{console.error("20mn> Error while loading the breaking news:",w)})},[]);const i=()=>{o(l=>YP($P({},l||{}),{opened:!1}))};return r!=null&&r.opened&&r!=null&&r.data?D.createElement(FP,{variant:"alert",title:"ALERTE INFO",description:r.data.description,cover:r.data.imageUrl,link:(t=r?.data)!=null&&t.url?{href:r.data.url}:void 0,closeButton:{onClick:i}}):null},gy=new Intl.RelativeTimeFormat("fr",{numeric:"auto"}),WP=new Intl.DateTimeFormat("fr",{year:"numeric",month:"short",day:"numeric",timeZone:"Europe/Paris"}),GP=t=>{const r=new Date().getTime(),o=new Date(t).getTime(),i=(o-r)/6e4;let l=gy.format(Math.round(i),"minutes");return i<=-60&&(l=gy.format(Math.ceil(i/60),"hours"),i<=-60*24&&(l=WP.format(o))),l};var eB=Object.defineProperty,tB=Object.defineProperties,nB=Object.getOwnPropertyDescriptors,vy=Object.getOwnPropertySymbols,rB=Object.prototype.hasOwnProperty,oB=Object.prototype.propertyIsEnumerable,yy=(t,r,o)=>r in t?eB(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,Jl=(t,r)=>{for(var o in r||(r={}))rB.call(r,o)&&yy(t,o,r[o]);if(vy)for(var o of vy(r))oB.call(r,o)&&yy(t,o,r[o]);return t},Jf=(t,r)=>tB(t,nB(r));const iB=({articles:t,layout:r,seeMoreLink:o})=>{const i=c=>{var g;return c.rightSubheader&&new Date((g=c.rightSubheader)==null?void 0:g.text).getTime()?Jf(Jl({},c),{rightSubheader:{text:GP(c.rightSubheader.text)}}):Jl({},c)};let l=D.createElement(Ht,null,t.map(c=>D.createElement(Ht,{key:c.title},D.createElement(R_,{color:"grey-200",my:"s"}),D.createElement(NP,Jf(Jl({},c),{cardHeaderProps:i(c.cardHeaderProps),mx:"s"})))));return r===Un.DESKTOP&&(l=D.createElement(Y_,{colsNumber:2,gap:"l"},t.map(c=>D.createElement(LP,Jf(Jl({key:c.title},c),{cardHeaderProps:i(c.cardHeaderProps)}))))),D.createElement(D.Fragment,null,l,o&&D.createElement(mt,{justifyContent:"center",mt:"m"},D.createElement(Ni,Jl({variant:"secondary",as:"button"},o))))},aB=t=>typeof window>"u"&&typeof Buffer<"u"?Buffer.from(t,"base64").toString("utf-8"):decodeURIComponent(escape(window?.atob(t))),lB=t=>{const r=aB(t).split(":");return r.length===2?r[1]:""},uB=t=>{const r=o=>`${o}`.padStart(2,"0");return`${r(Math.floor(t/60))}:${r(t-Math.floor(t/60)*60)}`},sB=t=>{var r;let o="";return(r=t.medias)==null||r.forEach(i=>{var l,c,g,v,b,w;if(i.illustration===!0&&i.type==="photo"&&(c=(l=i.photo)==null?void 0:l.node)!=null&&c.id){const L=(v=(g=i.photo)==null?void 0:g.node)!=null&&v.slug?`%format_${(w=(b=i.photo)==null?void 0:b.node)==null?void 0:w.slug}`:"%format";o=`${t.imgEndpoint}/${lB(i.photo.node.id)}/${L}`}}),o},cB=t=>{var r;let o;return(r=t.medias)==null||r.forEach(i=>{var l,c;if(i.type==="podcast"&&(o={caption:{iconName:"podcast",size:t.iconSize}}),i.type==="video"){const g=(l=i.video)!=null&&l.duration?Number((c=i.video)==null?void 0:c.duration):null;o={caption:{iconName:"video",size:t.iconSize,text:g?uB(g):""}}}}),o},fB=(t,r=!0)=>t&&P_.includes(t)?`${t}`:r?"default":void 0;var dB=Object.defineProperty,by=Object.getOwnPropertySymbols,pB=Object.prototype.hasOwnProperty,hB=Object.prototype.propertyIsEnumerable,_y=(t,r,o)=>r in t?dB(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,mB=(t,r)=>{for(var o in r||(r={}))pB.call(r,o)&&_y(t,o,r[o]);if(by)for(var o of by(r))hB.call(r,o)&&_y(t,o,r[o]);return t};const gB=t=>{var r,o,i,l,c,g,v;return(v=((g=(c=(l=(i=(o=(r=t.data)==null?void 0:r.brand)==null?void 0:o.node)==null?void 0:i.tag)==null?void 0:l.node)==null?void 0:c.publishableContents)==null?void 0:g.edges)||[])==null?void 0:v.reduce((b,w)=>{var L,R,M,z,B,T,I,G,Y;return!((L=w?.node)!=null&&L.title)||!((R=w?.node)!=null&&R.label)||!((M=w?.node)!=null&&M.url)||!((z=w?.node)!=null&&z.medias)||b.push({link:new URL(w.node.url,t.pageEndpoint).href,title:w.node.short_title||w.node.title,cardImageProps:mB({cover:sB({medias:w.node.medias,imgEndpoint:t.imgEndpoint})},cB({medias:w.node.medias,iconSize:t.layout===Un.MOBILE?"small":"medium"})),cardHeaderProps:{headline:{text:w.node.label,color:fB((I=(T=(B=w?.node)==null?void 0:B.rubric)==null?void 0:T.node)==null?void 0:I.theme)},rightSubheader:{text:w.node.published_at||""}},socialBarProps:{commentCount:(G=w.node.comments_count)!=null?G:0,shareCount:(Y=w.node.facebook_count)!=null?Y:0}}),b},[])};var vB=Object.defineProperty,yB=Object.defineProperties,bB=Object.getOwnPropertyDescriptors,wy=Object.getOwnPropertySymbols,_B=Object.prototype.hasOwnProperty,wB=Object.prototype.propertyIsEnumerable,Sy=(t,r,o)=>r in t?vB(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,Wf=(t,r)=>{for(var o in r||(r={}))_B.call(r,o)&&Sy(t,o,r[o]);if(wy)for(var o of wy(r))wB.call(r,o)&&Sy(t,o,r[o]);return t},Gf=(t,r)=>yB(t,bB(r));const SB=t=>{const{layout:r,articles:o,variablesForQuery:i,seeMoreLink:l}=t,[c,g]=D.useState(i),[v,b]=D.useState(o),[w,L]=D.useState(!1),R=()=>{L(!0),g(M=>Gf(Wf({},M),{offset:c.offset+c.limit}))};return D.useEffect(()=>{var M;if(JSON.stringify(i)!==JSON.stringify(c)&&c.hasNextPage){const{apiHost:z}=document.body.dataset,B=new Headers;(M=window.envVariables)!=null&&M.apiAuthKey&&B.append("auth-key",window.envVariables.apiAuthKey);const T=[`${z}/?id=getTagArticles&variables=${encodeURIComponent(JSON.stringify(c))}`,{headers:B}];py(...T).then(I=>{const G=gB({layout:r,pageEndpoint:window.envVariables.pageEndpoint,imgEndpoint:window.envVariables.imgEndpoint,data:I?.data});G.length>0&&b(Y=>[...Y,...G]),G.length<c.limit&&g(Y=>Gf(Wf({},Y),{hasNextPage:!1})),L(!1)}).catch(I=>{console.error("20mn> Error while loading articles:",I)})}},[c]),D.createElement(D.Fragment,null,D.createElement(iB,{layout:r,articles:v,seeMoreLink:c.hasNextPage?Gf(Wf({},l),{disabled:w,onClick:R}):void 0}),D.createElement("script",{dangerouslySetInnerHTML:{__html:`window.__staticHydrationData = { ...(window.__staticHydrationData || {}), ...${JSON.stringify({articleListBottomContainer:t})} };`}}))};var xB=Object.defineProperty,xy=Object.getOwnPropertySymbols,EB=Object.prototype.hasOwnProperty,kB=Object.prototype.propertyIsEnumerable,Ey=(t,r,o)=>r in t?xB(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,NB=(t,r)=>{for(var o in r||(r={}))EB.call(r,o)&&Ey(t,o,r[o]);if(xy)for(var o of xy(r))kB.call(r,o)&&Ey(t,o,r[o]);return t};const OB=()=>{const t=document.getElementById("c-alert-info");if(t){const r=vc.createRoot(t);r&&r.render(D.createElement(JP,null))}},LB=()=>{const t=document.getElementById("c-app-banner");if(t){const r=vc.createRoot(t);r&&r.render(D.createElement(VP,null))}},CB=()=>{var t;const r=document.getElementById("article-list-bottom-container"),o=(t=window?.__staticHydrationData)==null?void 0:t.articleListBottomContainer;r&&o&&vc.hydrateRoot(r,D.createElement(SB,NB({},o)))},ed=(t,r)=>{t.style.transform=`translateY(${r==="show"?"0":"-100%"})`,t.style.transition="transform .4s ease"},ky=({headerMini:t,header:r})=>{document.documentElement.scrollTop>r.offsetHeight?ed(t,"show"):ed(t,"hidden"),window.removeEventListener("scroll",ky.bind(!1,{headerMini:t,header:r}))},MB=()=>{const t=document.querySelector(".c-header-mini");if(t){const r=document.documentElement.scrollTop,o=document.querySelector(".c-header");o&&(r>o.offsetHeight&&ed(t,"show"),window.addEventListener("scroll",ky.bind(!1,{headerMini:t,header:o})))}},Ny=()=>{W0(),d_(),x_(),v_(),k_(),m_(),OB(),LB(),MB(),CB()};return Ny(),gp.main=Ny,gp}({},null,React,ReactDOM);
|